/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
    --terracotta: #B56C4F;
    --terracotta-light: #C9856D;
    --terracotta-dark: #9A5A40;
    --terracotta-50: #FBF5F3;
    --terracotta-100: #F5E8E3;
    
    --sand: #F5F0EB;
    --sand-light: #FAF7F4;
    --sand-dark: #E8E0D8;
    
    --ink: #2A2420;
    --ink-light: #4A4038;
    --ink-muted: #7A7068;
    --ink-faint: #A89E96;
    
    --white: #FFFFFF;
    --bg: #FAF7F4;
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    
    --shadow-sm: 0 1px 2px rgba(42, 36, 32, 0.04);
    --shadow-md: 0 4px 16px rgba(42, 36, 32, 0.06);
    --shadow-lg: 0 8px 32px rgba(42, 36, 32, 0.08);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ========================================
   Skip Link
   ======================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--terracotta);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 14px;
    font-weight: 500;
}

.skip-link:focus {
    top: 16px;
}

/* ========================================
   Container
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 48px;
    }
}

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

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--terracotta-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--sand-dark);
}

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

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
}

/* ========================================
   Section Headers
   ======================================== */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--ink);
}

.section-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-muted);
    max-width: 560px;
}

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

/* ========================================
   Header
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 247, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--sand-dark);
}

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

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

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.logo-type {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

.desktop-nav a {
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-muted);
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    position: relative;
}

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

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

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

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--ink);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    text-align: center;
}

.mobile-menu-content nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-content nav a {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    padding: 12px 0;
    transition: color 0.2s ease;
}

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

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    transition: color 0.2s ease;
}

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

/* ========================================
   Hero
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--sand);
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

.hero-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 80px;
}

.hero-left {
    max-width: 540px;
}

.hero-tagline {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-tagline::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--terracotta);
}

.hero-headline {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

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

.hero-description {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

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

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

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

.stat-number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--terracotta);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

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

.hero-right {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.hero-image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--terracotta);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ========================================
   Services
   ======================================== */
.services {
    background: var(--sand);
    padding: 96px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--sand-dark);
    transition: all 0.3s var(--ease-out);
}

.service-card:hover {
    border-color: var(--terracotta-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.service-card h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--ink);
}

.service-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-muted);
}

/* ========================================
   About
   ======================================== */
.about {
    background: var(--white);
    padding: 96px 0;
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 6/5;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-image-accent {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 80px;
    height: 80px;
    border-top: 2px solid var(--terracotta);
    border-left: 2px solid var(--terracotta);
    border-radius: var(--radius-sm) 0 0 0;
    opacity: 0.4;
}

.about-content {
    max-width: 520px;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-muted);
    margin-bottom: 20px;
}

.about-values {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.value-item {
    padding-left: 20px;
    border-left: 2px solid var(--terracotta-100);
}

.value-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 6px;
}

.value-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-muted);
}

/* ========================================
   Patient Experience
   ======================================== */
.patient-experience {
    background: var(--sand);
    padding: 96px 0;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 64px;
}

.experience-card {
    padding: 36px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--sand-dark);
    transition: all 0.3s var(--ease-out);
}

.experience-card:hover {
    border-color: var(--terracotta-100);
    box-shadow: var(--shadow-md);
}

.experience-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    color: var(--terracotta-100);
    line-height: 1;
    margin-bottom: 16px;
}

.experience-card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--ink);
}

.experience-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-muted);
}

.experience-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.experience-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/1;
    object-fit: cover;
}

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

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

.contact-info {
    max-width: 480px;
}

.contact-intro {
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink-muted);
    margin-bottom: 40px;
}

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

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terracotta-50);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact-detail span,
.contact-detail a {
    display: block;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
}

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

.contact-detail-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 2px;
}

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

.form-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 32px;
    color: var(--ink);
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-light);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--sand-dark);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s ease;
    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(--ink-faint);
}

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

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px;
    text-align: center;
}

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

.form-success p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-muted);
    max-width: 320px;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--ink);
    color: var(--sand);
    padding: 72px 0 0;
}

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

.footer-brand p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--ink-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta-light);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--ink-muted);
    padding: 6px 0;
    transition: color 0.2s ease;
}

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

.footer-contact p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--sand);
    transition: color 0.2s ease;
}

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

.footer-hours {
    margin-top: 12px;
    font-size: 13px !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--ink-muted);
}

.footer-legal {
    font-size: 12px !important;
    color: rgba(168, 158, 150, 0.6) !important;
}

/* ========================================
   Scroll Reveal
   ======================================== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        padding-bottom: 100px;
    }
    
    .hero-wave svg {
        height: 100px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
    
    .experience-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding-top: 0;
    }
    
    .hero-container {
        padding-top: 0;
        align-items: center;
    }
    
    .hero-image-wrapper {
        position: sticky;
        top: 100px;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .stat-divider {
        display: none;
    }
}
