/* ============================================
   Eye Care Associates of Owosso PC
   Clean Minimalist — Terracotta & Sand
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --terracotta: #C06C44;
    --terracotta-deep: #A85533;
    --terracotta-light: #D4896A;
    --sand: #F5EDE3;
    --sand-light: #FAF6F1;
    --sand-dark: #E8DDD0;
    --cream: #FDF9F4;
    --charcoal: #2C2420;
    --charcoal-light: #4A3F38;
    --muted: #8A7E76;
    --muted-light: #B0A69E;
    --white: #FFFFFF;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --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(--charcoal);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn--primary:hover {
    background: var(--terracotta-deep);
    border-color: var(--terracotta-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(192, 108, 68, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn--ghost:hover {
    background: var(--charcoal);
    color: var(--white);
}

.btn--full {
    width: 100%;
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: var(--space-sm);
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.section-heading em {
    font-style: italic;
    color: var(--terracotta);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 249, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sand-dark);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(44, 36, 32, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--charcoal);
    letter-spacing: 0.01em;
}

.logo-icon {
    color: var(--terracotta);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--charcoal-light);
    transition: color var(--transition);
    position: relative;
}

.nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--terracotta);
    transition: width var(--transition);
}

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

.nav a:not(.btn):hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--charcoal);
    transition: all var(--transition);
}

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

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

.mobile-toggle.active span: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(--cream);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

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

.mobile-menu a {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--charcoal);
    transition: color var(--transition);
}

.mobile-menu a:hover {
    color: var(--terracotta);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero .container {
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-lg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    width: 100%;
}

.hero-content {
    padding-right: var(--space-md);
}

.hero-eyebrow {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.05;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

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

.hero-sub {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--charcoal-light);
    max-width: 480px;
    margin-bottom: var(--space-md);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: var(--space-md);
    border-top: 1px solid var(--sand-dark);
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.hero-detail svg {
    color: var(--terracotta);
    flex-shrink: 0;
}

.hero-visual {
    position: relative;
}

.hero-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 600/760;
    background: var(--sand-dark);
}

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

.hero-accent-card {
    position: absolute;
    bottom: -24px;
    left: -32px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: 0 8px 32px rgba(44, 36, 32, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.accent-card-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--terracotta);
    line-height: 1;
}

.accent-card-label {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.hero-line {
    height: 1px;
    background: linear-gradient(to right, var(--terracotta-light), transparent);
    width: 100%;
    flex-shrink: 0;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--space-2xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 560/420;
    background: var(--sand-dark);
}

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

.about-image-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 320/240;
    border: 6px solid var(--cream);
    box-shadow: 0 8px 32px rgba(44, 36, 32, 0.1);
}

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

.about-content {
    padding-left: var(--space-md);
}

.about-content .lead {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
    font-weight: 300;
}

.about-content p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--charcoal-light);
    margin-bottom: var(--space-sm);
}

.about-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--sand-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--terracotta);
    line-height: 1;
}

.stat-label {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

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

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: var(--space-2xl) 0;
    background: var(--sand-light);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--sand-dark);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(44, 36, 32, 0.08);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    margin-bottom: var(--space-sm);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.625rem;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--muted);
}

/* ============================================
   EXPERIENCE
   ============================================ */
.experience {
    padding: var(--space-2xl) 0;
}

.experience-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.experience-content {
    padding-right: var(--space-md);
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.experience-item {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.experience-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--terracotta-light);
    line-height: 1;
    min-width: 36px;
    padding-top: 0.125rem;
}

.experience-item h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.experience-item p {
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--muted);
}

.experience-visual {
    position: relative;
    height: 600px;
}

.experience-image-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.experience-image-stack img {
    position: absolute;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(44, 36, 32, 0.12);
}

.experience-image-stack img:first-child {
    top: 0;
    right: 0;
    width: 85%;
    height: 55%;
}

.experience-image-stack img:last-child {
    bottom: 0;
    left: 0;
    width: 75%;
    height: 55%;
}

/* ============================================
   VISIT
   ============================================ */
.visit {
    padding: var(--space-2xl) 0;
    background: var(--charcoal);
    color: var(--white);
}

.visit-card {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.visit-content .section-eyebrow {
    color: var(--terracotta-light);
}

.visit-content .section-heading {
    color: var(--white);
}

.visit-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted-light);
    margin-bottom: var(--space-md);
    max-width: 520px;
}

.visit-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.visit-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.visit-info-item svg {
    color: var(--terracotta);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.visit-info-item strong {
    display: block;
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.visit-info-item span,
.visit-info-item a {
    font-size: 0.875rem;
    color: var(--muted-light);
    transition: color var(--transition);
}

.visit-info-item a:hover {
    color: var(--terracotta-light);
}

.visit-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 520/640;
    background: var(--charcoal-light);
}

.visit-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: var(--space-2xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-info {
    padding-right: var(--space-md);
}

.contact-text {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--charcoal-light);
    margin-bottom: var(--space-md);
}

.contact-direct {
    margin-top: var(--space-md);
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--terracotta);
    transition: color var(--transition);
}

.contact-phone:hover {
    color: var(--terracotta-deep);
}

.contact-form-wrap {
    background: var(--sand-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--charcoal);
    background: var(--white);
    border: 1px solid var(--sand-dark);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: border-color var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
}

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

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md);
}

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

.form-success svg {
    color: var(--terracotta);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--charcoal);
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--muted);
    max-width: 320px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--charcoal);
    color: var(--white);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    color: var(--white);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--muted-light);
    margin-top: 0.75rem;
    max-width: 280px;
    line-height: 1.7;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--muted-light);
    transition: color var(--transition);
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-light);
}

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

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

.footer-bottom {
    padding-top: var(--space-md);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .hero-content {
        padding-right: 0;
        order: 2;
    }

    .hero-visual {
        order: 1;
        max-width: 480px;
    }

    .hero-image-wrap {
        aspect-ratio: 4/3;
    }

    .hero-accent-card {
        left: 16px;
        bottom: -16px;
    }

    .about-grid,
    .experience-split,
    .visit-card,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about-content {
        padding-left: 0;
    }

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

    .experience-visual {
        height: 400px;
    }

    .contact-info {
        padding-right: 0;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

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

    .mobile-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: 72px;
    }

    .hero .container {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }

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

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

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

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

    .about-image-secondary {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: var(--space-sm);
    }

    .about-visual {
        display: flex;
        flex-direction: column;
    }

    .visit-info-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-bottom {
        text-align: left;
    }

    .experience-visual {
        height: 320px;
    }

    .experience-image-stack img:first-child {
        width: 90%;
        height: 65%;
    }

    .experience-image-stack img:last-child {
        width: 80%;
        height: 60%;
    }
}

@media (max-width: 480px) {
    :root {
        --space-md: 1.5rem;
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }

    .hero-accent-card {
        left: 0;
        right: 0;
        border-radius: var(--radius-sm);
    }
}
