/* ===== CSS Custom Properties ===== */
:root {
    --midnight: #0A2342;
    --midnight-light: #13315C;
    --midnight-dark: #061829;
    --mint: #5EEAD4;
    --mint-light: #99F6E4;
    --mint-dark: #2DD4BF;
    --cream: #F8F7F4;
    --cream-dark: #EDEDE8;
    --white: #FFFFFF;
    --text-dark: #0A2342;
    --text-light: #F8F7F4;
    --text-muted: #6B7F94;
    --text-muted-light: rgba(248, 247, 244, 0.6);
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 1px 3px rgba(10, 35, 66, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 35, 66, 0.1);
    --shadow-lg: 0 8px 40px rgba(10, 35, 66, 0.12);
    --shadow-xl: 0 16px 60px rgba(10, 35, 66, 0.15);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    -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 {
    list-style: none;
}

/* ===== Utility ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--mint);
    color: var(--midnight);
}

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

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

.btn-outline:hover {
    border-color: var(--mint);
    color: var(--mint);
}

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

.btn-light:hover {
    background: var(--cream);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-full {
    width: 100%;
}

/* ===== Eyebrow ===== */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mint-dark);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--midnight);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 35, 66, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(94, 234, 212, 0.1);
    transition: background 0.3s ease;
}

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

.nav-logo {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

.nav-logo-accent {
    color: var(--mint);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted-light);
    transition: color 0.25s ease;
}

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

.nav-cta {
    background: var(--mint);
    color: var(--midnight) !important;
    padding: 0.5rem 1.125rem;
    border-radius: var(--radius-sm);
    font-weight: 500 !important;
    transition: all 0.25s ease !important;
}

.nav-cta:hover {
    background: var(--mint-light);
    color: var(--midnight) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

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

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

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--white);
    transition: color 0.25s ease;
}

.mobile-menu-link:hover {
    color: var(--mint);
}

.mobile-menu-cta {
    margin-top: var(--space-sm);
    background: var(--mint);
    color: var(--midnight);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
}

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

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 2;
    padding: var(--space-3xl) 0;
}

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

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

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

.hero-highlight {
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--mint);
    opacity: 0.3;
    border-radius: 2px;
}

.hero-subheadline {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted-light);
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

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

.hero-contact-strip {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.hero-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-muted-light);
}

.hero-contact-item svg {
    color: var(--mint);
    flex-shrink: 0;
}

/* Hero Image Block */
.hero-image-block {
    position: relative;
    height: 70vh;
    min-height: 500px;
}

.hero-image-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 80%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.hero-image-accent {
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 55%;
    height: 45%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 4px solid var(--midnight);
    box-shadow: var(--shadow-lg);
}

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

.hero-badge {
    position: absolute;
    bottom: 48%;
    left: 10%;
    background: var(--mint);
    color: var(--midnight);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    z-index: 3;
}

.hero-badge svg {
    flex-shrink: 0;
}

/* Hero Pattern */
.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(94, 234, 212, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(94, 234, 212, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* ===== Services ===== */
.services {
    padding: var(--space-4xl) 0;
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .section-title {
    max-width: 640px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(94, 234, 212, 0.3);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--midnight);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint);
    margin-bottom: var(--space-md);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: var(--space-xs);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ===== About ===== */
.about {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

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

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-pattern {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 40%;
    background: var(--mint);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.2;
}

.about-eyebrow {
    color: var(--mint-dark);
}

.about-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--midnight);
    margin-bottom: var(--space-lg);
}

.about-title em {
    font-style: italic;
    color: var(--mint-dark);
}

.about-content > p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.about-value {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.about-value-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mint-dark);
    opacity: 0.5;
    line-height: 1;
    padding-top: 4px;
    flex-shrink: 0;
}

.about-value h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 4px;
}

.about-value p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== New Patients ===== */
.new-patients {
    padding: var(--space-4xl) 0;
    background: var(--midnight);
}

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

.new-patients-content .section-eyebrow {
    color: var(--mint);
}

.new-patients-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.new-patients-content > p {
    font-size: 1rem;
    color: var(--text-muted-light);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.new-patient-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.new-patient-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--text-muted-light);
}

.new-patient-list li svg {
    color: var(--mint);
    flex-shrink: 0;
}

.new-patients-cta {
    display: flex;
    justify-content: flex-end;
}

.new-patients-card {
    background: var(--midnight-light);
    border: 1px solid rgba(94, 234, 212, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    max-width: 360px;
    width: 100%;
}

.new-patients-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: var(--space-sm);
}

.new-patients-card-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.new-patients-card-phone {
    margin-bottom: var(--space-sm);
}

.new-patients-card-phone a {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mint);
    transition: color 0.25s ease;
}

.new-patients-card-phone a:hover {
    color: var(--mint-light);
}

.new-patients-card-note {
    font-size: 0.875rem;
    color: var(--text-muted-light);
    margin-bottom: var(--space-lg);
}

/* ===== Contact ===== */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--cream);
}

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

.contact-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--midnight);
    margin-bottom: var(--space-xl);
}

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

.contact-detail {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    background: var(--midnight);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint);
    flex-shrink: 0;
}

.contact-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: 1rem;
    color: var(--midnight);
    line-height: 1.6;
}

.contact-detail-value a {
    color: var(--midnight);
    transition: color 0.25s ease;
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.contact-form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: var(--space-lg);
}

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

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--cream);
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--mint-dark);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}

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

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

.form-success {
    display: none;
    text-align: center;
    padding: var(--space-md);
    background: rgba(94, 234, 212, 0.1);
    border-radius: var(--radius-sm);
    color: var(--midnight);
    font-weight: 500;
    margin-top: var(--space-md);
}

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

/* ===== Footer ===== */
.footer {
    background: var(--midnight-dark);
    padding: var(--space-3xl) 0 var(--space-lg);
}

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

.footer-brand {
    color: var(--white);
}

.footer-logo-accent {
    color: var(--mint);
}

.footer-brand p {
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-muted-light);
    line-height: 1.6;
    max-width: 280px;
}

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

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted-light);
    transition: color 0.25s ease;
}

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

.footer-contact {
    text-align: right;
    color: var(--text-muted-light);
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-contact a {
    color: var(--mint);
    font-weight: 500;
    transition: color 0.25s ease;
}

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

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

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
.reveal {
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.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 (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-contact-strip {
        justify-content: center;
    }
    
    .hero-image-block {
        height: 50vh;
        min-height: 350px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-container,
    .new-patients-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .new-patients-cta {
        justify-content: center;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-3xl) 0 var(--space-2xl);
    }
    
    .hero-container {
        padding: var(--space-xl) 0;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }
    
    .hero-image-block {
        height: 40vh;
        min-height: 280px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        margin-bottom: var(--space-2xl);
    }
    
    .services,
    .about,
    .new-patients,
    .contact {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-image-block {
        height: 35vh;
        min-height: 240px;
    }
    
    .new-patients-card {
        padding: var(--space-lg);
    }
    
    .contact-form-wrapper {
        padding: var(--space-lg);
    }
}
