/* ===================================
   CSS Custom Properties
   =================================== */
:root {
    --color-navy: #0f172a;
    --color-navy-light: #1e293b;
    --color-navy-lighter: #334155;
    --color-gold: #c9a84c;
    --color-gold-light: #d4b962;
    --color-gold-pale: #f5e6b8;
    --color-cream: #f8f6f3;
    --color-cream-dark: #f0ebe3;
    --color-white: #ffffff;
    --color-text: #1a1a2e;
    --color-text-light: #64748b;
    --color-text-lighter: #94a3b8;
    --color-border: #e8e2d9;
    --color-success: #16a34a;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

ul {
    list-style: none;
}

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

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-navy);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
    color: var(--color-text-light);
}

/* ===================================
   Section Tagline
   =================================== */
.section-tagline {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 12px;
    display: block;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--color-navy-light);
    border-color: var(--color-navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}

.btn-outline:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

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

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

.btn-full {
    width: 100%;
}

/* ===================================
   Navbar
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 246, 243, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 226, 217, 0.5);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-navy);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--color-navy);
    color: var(--color-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 300;
}

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

.nav-links a {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    border-radius: 50px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-navy);
    background: rgba(15, 23, 42, 0.05);
}

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding-top: 76px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.hero-content h1 {
    margin-bottom: 24px;
    color: var(--color-navy);
}

.hero-content h1 em {
    color: var(--color-gold);
    font-style: italic;
}

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

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

.hero-credentials {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.credential {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy-lighter);
    letter-spacing: 0.02em;
}

.credential-dot {
    color: var(--color-gold);
    font-size: 0.6rem;
}

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

.image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 600/750;
}

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--color-gold-pale);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.hero-card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: var(--color-white);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.hero-card-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
}

.hero-card-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.4;
    max-width: 140px;
}

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

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

/* ===================================
   About Section
   =================================== */
.about {
    padding: 100px 0;
    background: var(--color-cream);
}

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

.about-content h2 {
    margin-bottom: 24px;
}

.about-content > p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-content > p:last-of-type {
    margin-bottom: 32px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-values li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.value-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--color-gold-pale);
    color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-top: 2px;
}

.about-values span:last-child {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.about-image {
    position: relative;
}

.about-image-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 500/620;
}

.about-floating-card {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--color-navy);
    padding: 24px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.floating-card-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.floating-card-icon {
    font-size: 1.5rem;
    color: var(--color-gold);
}

.floating-card-content strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-white);
}

.floating-card-content span {
    font-size: 0.8rem;
    color: var(--color-text-lighter);
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: 100px 0;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
}

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

.service-card {
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    background: var(--color-white);
    border-color: var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    color: var(--color-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

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

/* ===================================
   Patients Section
   =================================== */
.patients {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
}

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

.patients-content h2 {
    margin-bottom: 20px;
}

.patients-content > p {
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.patient-groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.patient-group {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.patient-group-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.patient-group h4 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 4px;
}

.patient-group p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.patients-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.patients-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 520/640;
}

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

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--color-cream);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-info {
    padding: 56px 48px;
    background: var(--color-navy);
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.contact-info .section-tagline {
    color: var(--color-gold);
}

.contact-info h2 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--color-text-lighter);
    margin-bottom: 40px;
    font-size: 1rem;
}

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

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

.contact-item-icon {
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
    background: rgba(201, 168, 76, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.contact-item p {
    font-size: 0.95rem;
    color: var(--color-text-lighter);
    line-height: 1.6;
}

.contact-item a {
    color: var(--color-text-lighter);
}

.contact-item a:hover {
    color: var(--color-gold-light);
}

/* Contact Form */
.contact-form-wrapper {
    padding: 56px 48px;
    background: var(--color-cream);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.contact-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: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

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

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

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

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--color-gold-pale);
    color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.form-success h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.95rem;
}

/* ===================================
   Map Section
   =================================== */
.map-section {
    background: var(--color-cream-dark);
}

.map-section iframe {
    filter: grayscale(30%) contrast(1.05);
}

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

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

.footer-brand .logo {
    margin-bottom: 16px;
}

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

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-text-lighter);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-lighter);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9rem;
    color: var(--color-text-lighter);
    margin-bottom: 8px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

/* ===================================
   Scroll Animations
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .hero-container,
    .about-container,
    .patients-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-card {
        left: 20px;
        bottom: 20px;
    }
    
    .about-floating-card {
        right: 20px;
        bottom: -16px;
    }
    
    .contact-info,
    .contact-form-wrapper {
        border-radius: 0;
    }
    
    .contact-wrapper {
        border-radius: var(--radius-xl);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(248, 246, 243, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 76px;
        min-height: auto;
    }
    
    .hero-container {
        padding-top: 24px;
        padding-bottom: 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-card {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 16px;
        display: inline-flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 36px 24px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-floating-card {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 16px;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}
