/* ========================================
   Raymond Thomas, MD — Medical Practice
   Clean Minimalist · Emerald & Cream
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #064e3b;
    --emerald-900: #022c22;
    
    --cream-50: #fdfcf8;
    --cream-100: #faf5eb;
    --cream-200: #f5edd6;
    --cream-300: #ede2be;
    --cream-400: #e2d09a;
    
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--stone-800);
    background: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--emerald-900);
}

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
    color: var(--emerald-900);
}

.section-title.light {
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--stone-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.lead {
    font-size: 1.15rem;
    color: var(--stone-700);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 14px 32px;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-700);
    color: #ffffff;
    border-color: var(--emerald-700);
}

.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
}

.btn-light {
    background: #ffffff;
    color: var(--emerald-800);
    border-color: #ffffff;
}

.btn-light:hover {
    background: var(--cream-100);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 1px 0 var(--stone-200);
}

.navbar.scrolled .logo-text {
    color: var(--emerald-900);
}

.navbar.scrolled .nav-links a {
    color: var(--stone-700);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    transition: color var(--transition);
}

.navbar.scrolled .logo-mark {
    color: var(--emerald-700);
    border-color: var(--emerald-700);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: 0.01em;
    transition: color var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: #ffffff;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 1.5px;
    background: #ffffff;
    transition: all var(--transition);
    display: block;
}

.navbar.scrolled .mobile-menu-toggle span {
    background: var(--stone-700);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 4px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -4px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(2, 44, 34, 0.88) 0%,
        rgba(6, 78, 59, 0.82) 50%,
        rgba(4, 120, 87, 0.72) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 80px;
    max-width: 720px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-300);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 400;
}

.hero-title em {
    font-style: italic;
    color: var(--emerald-200);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

/* --- Sections --- */
.section {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 72px;
}

/* --- About --- */
.about {
    background: var(--cream-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--emerald-200);
    border-radius: 4px;
    z-index: -1;
}

.about-content .section-title {
    margin-bottom: 20px;
}

.about-content p {
    color: var(--stone-600);
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--stone-200);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--stone-700);
}

.feature-item svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* --- Services --- */
.services {
    background: var(--emerald-800);
}

.services .section-label {
    color: var(--emerald-300);
}

.services .section-title {
    color: #ffffff;
}

.services .section-subtitle {
    color: rgba(255, 255, 255, 0.65);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 40px 32px;
    transition: all var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(110, 231, 183, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-300);
    margin-bottom: 24px;
}

.service-card h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* --- Approach --- */
.approach {
    background: var(--cream-100);
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.approach-content .section-title {
    margin-bottom: 20px;
}

.approach-content p {
    color: var(--stone-600);
    margin-bottom: 16px;
}

.approach-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    background: var(--emerald-700);
}

.cta-box {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-box .section-label {
    color: var(--emerald-300);
}

.cta-box .section-title {
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    justify-content: center;
}

/* --- Location --- */
.location {
    background: var(--cream-50);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.location-content .section-title {
    margin-bottom: 36px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 36px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-item svg {
    color: var(--emerald-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-800);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    font-size: 0.95rem;
    color: var(--stone-600);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--emerald-700);
    text-decoration: underline;
}

.location-map {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.location-map img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--emerald-800);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
}

.map-overlay svg {
    color: var(--emerald-300);
}

/* --- Footer --- */
.footer {
    background: var(--stone-900);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer .logo-text {
    color: #ffffff;
}

.footer .logo-mark {
    color: var(--emerald-400);
    border-color: var(--emerald-600);
}

.footer-brand p {
    color: var(--stone-500);
    font-size: 0.925rem;
    line-height: 1.7;
    margin-top: 20px;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stone-400);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--stone-500);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--emerald-400);
}

.footer-contact a {
    color: var(--stone-500);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--emerald-400);
}

.footer-contact li {
    font-size: 0.9rem;
    color: var(--stone-500);
}

.footer-bottom {
    border-top: 1px solid var(--stone-800);
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--stone-600);
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .approach-grid,
    .location-grid {
        gap: 48px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        inset: 0;
        background: var(--emerald-900);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .nav-links a:hover {
        color: #ffffff;
    }
    
    .hero-content {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .about-grid,
    .approach-grid,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .about-image::before {
        top: -10px;
        left: -10px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-overlay {
        bottom: 16px;
        left: 16px;
        font-size: 0.8rem;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-scroll {
        display: none;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
