/* ============================================
   March Tedd L — Primary Care & Family Medicine
   Clean Minimalist · Terracotta + Sand Palette
   ============================================ */

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

:root {
    --terracotta: #B56C4F;
    --terracotta-dark: #9A5A40;
    --terracotta-light: #D4917A;
    --sand: #F5EDE4;
    --sand-light: #FAF6F2;
    --sand-dark: #E8DDD3;
    --charcoal: #2C2C2C;
    --text: #3A3A3A;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text);
    background: var(--sand-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--terracotta);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--terracotta-dark);
}

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 246, 242, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--sand-dark);
    box-shadow: 0 1px 20px rgba(0,0,0,0.04);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--charcoal);
}

.nav-logo:hover {
    color: var(--charcoal);
}

.nav-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--terracotta);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.nav-links a:hover {
    color: var(--terracotta);
}

.nav-cta {
    background: var(--terracotta);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 400;
    transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
    background: var(--terracotta-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--charcoal);
    transition: var(--transition);
    transform-origin: center;
}

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

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--sand-light);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--charcoal);
    font-weight: 400;
}

.mobile-menu-cta {
    margin-top: 16px;
    background: var(--terracotta);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 1rem;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0 60px;
    background: var(--sand-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(181,108,79,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    flex: 1;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 28px;
}

.hero-eyebrow-line {
    width: 32px;
    height: 1px;
    background: var(--terracotta-light);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: italic;
    color: var(--terracotta);
}

.hero-sub {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--charcoal);
}

.hero-stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--sand-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(181,108,79,0.25);
}

.btn-text {
    background: transparent;
    color: var(--text);
    padding: 14px 0;
}

.btn-text:hover {
    color: var(--terracotta);
}

.btn-light {
    background: var(--white);
    color: var(--terracotta);
}

.btn-light:hover {
    background: var(--sand);
    color: var(--terracotta-dark);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 680/860;
}

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

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--terracotta);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.15;
}

/* Hero Scroll */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* --- Section Shared --- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 560px;
}

/* --- Services --- */
.services {
    padding: 120px 0;
    background: var(--white);
}

.services .container {
    max-width: 1200px;
}

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

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.service-card {
    background: var(--sand-light);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    background: var(--white);
    border-color: var(--sand-dark);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(181,108,79,0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    margin-bottom: 24px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--terracotta);
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0;
}

.divider-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: var(--sand-dark);
}

.divider-dot {
    width: 8px;
    height: 8px;
    background: var(--terracotta);
    border-radius: 50%;
    opacity: 0.5;
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--sand-light);
}

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

.about-image {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 580/720;
}

.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    border: 4px solid var(--sand-light);
    aspect-ratio: 320/240;
}

.about-image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    padding: 20px 0;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-features {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text);
}

.about-feature svg {
    color: var(--terracotta);
    flex-shrink: 0;
}

/* --- Philosophy --- */
.philosophy {
    padding: 120px 0;
    background: var(--charcoal);
}

.philosophy-inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-inner .section-eyebrow {
    color: var(--terracotta-light);
}

.philosophy-quote {
    position: relative;
    margin: 40px 0;
}

.philosophy-quote-mark {
    position: absolute;
    top: -20px;
    left: -10px;
    color: var(--terracotta);
    opacity: 0.3;
}

.philosophy-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    color: var(--sand);
    margin-bottom: 20px;
}

.philosophy-quote cite {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--terracotta-light);
}

.philosophy-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(245,237,228,0.7);
}

.philosophy-text em {
    color: var(--sand);
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 100px 0;
    background: var(--terracotta);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.cta-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.cta-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info {
    padding-top: 10px;
}

.contact-details {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail {
    display: flex;
    gap: 20px;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    background: rgba(181,108,79,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-detail a {
    color: var(--terracotta);
}

.contact-detail a:hover {
    color: var(--terracotta-dark);
}

.contact-map {
    margin-top: 40px;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--sand-light);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.contact-form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--sand-dark);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--charcoal);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--sand-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(181,108,79,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
}

.form-success.show {
    display: block;
}

.form-success svg {
    color: var(--terracotta);
    margin-bottom: 16px;
}

.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--sand);
    margin-bottom: 16px;
}

.footer-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--terracotta);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(245,237,228,0.5);
    max-width: 280px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(245,237,228,0.6);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--terracotta-light);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(245,237,228,0.5);
}

.footer-contact a {
    color: var(--terracotta-light);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(245,237,228,0.35);
}

.footer-legal {
    font-size: 0.75rem !important;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        max-width: 480px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image-secondary {
        right: -20px;
        bottom: -20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 80px;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-stat-divider {
        display: none;
    }

    .services {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about {
        padding: 80px 0;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .philosophy {
        padding: 80px 0;
    }

    .cta-banner {
        padding: 80px 0;
    }

    .cta-actions {
        flex-direction: column;
    }

    .contact {
        padding: 80px 0;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-image-wrapper {
        aspect-ratio: 1/1;
    }

    .hero-image-secondary {
        display: none;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
}

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