/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #0A1628;
    color: #E8DFD0;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Typography ─── */
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.15; color: #F5F0E8; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: #B8AFA0; }
.lead { font-size: 1.125rem; color: #C8BFB0; line-height: 1.8; max-width: 560px; }
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 12px;
}
.section-title { margin-bottom: 20px; }
.section-intro { max-width: 600px; margin-bottom: 48px; font-size: 1.05rem; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-gold {
    background: linear-gradient(135deg, #C9A84C 0%, #A07828 100%);
    color: #0A1628;
    border: 1px solid #C9A84C;
}
.btn-gold:hover { background: linear-gradient(135deg, #D4B85C 0%, #B08838 100%); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201, 168, 76, 0.25); }
.btn-outline {
    background: transparent;
    color: #F5F0E8;
    border: 1px solid rgba(245, 240, 232, 0.3);
}
.btn-outline:hover { border-color: #C9A84C; color: #C9A84C; transform: translateY(-2px); }
.btn-outline.gold { color: #C9A84C; border-color: rgba(201, 168, 76, 0.4); }
.btn-outline.gold:hover { border-color: #C9A84C; background: rgba(201, 168, 76, 0.08); }
.btn-full { width: 100%; justify-content: center; }

/* ─── Loader ─── */
#loader {
    position: fixed; inset: 0; z-index: 9999;
    background: #0A1628;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.4; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1); } }

/* ─── Skip Link ─── */
.skip-link {
    position: absolute; top: -100%; left: 16px;
    background: #C9A84C; color: #0A1628;
    padding: 8px 16px; border-radius: 4px;
    font-weight: 600; z-index: 10000;
}
.skip-link:focus { top: 16px; }

/* ─── Header ─── */
#site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}
#site-header.scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem; font-weight: 600;
    color: #F5F0E8;
}
.logo svg { flex-shrink: 0; }
#main-nav ul { display: flex; align-items: center; gap: 32px; }
#main-nav a {
    font-size: 0.875rem; font-weight: 400;
    color: #B8AFA0;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}
#main-nav a:hover { color: #C9A84C; }
#main-nav .btn-gold { padding: 10px 24px; font-size: 0.8125rem; }

/* ─── Mobile Menu ─── */
#menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 101;
}
.bar {
    display: block;
    width: 24px; height: 2px;
    background: #F5F0E8;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
#menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
#menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    #menu-toggle { display: flex; }
    #main-nav {
        position: fixed; inset: 0;
        background: rgba(10, 22, 40, 0.97);
        backdrop-filter: blur(20px);
        display: flex; align-items: center; justify-content: center;
        opacity: 0; visibility: hidden;
        transition: all 0.4s ease;
    }
    #main-nav.open { opacity: 1; visibility: visible; }
    #main-nav ul { flex-direction: column; gap: 28px; text-align: center; }
    #main-nav a { font-size: 1.25rem; color: #E8DFD0; }
    #main-nav .btn-gold { font-size: 1rem; }
}

/* ─── Hero ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.92) 0%,
        rgba(10, 22, 40, 0.80) 40%,
        rgba(10, 22, 40, 0.65) 100%
    );
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 720px;
    padding-top: 80px;
}
.hero-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    color: #F5F0E8;
    line-height: 1.08;
    margin-bottom: 24px;
}
.hero-title br { display: none; }
.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    color: #B8AFA0;
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.75;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.8125rem; color: #8A8070;
    flex-wrap: wrap;
}
.trust-dot {
    width: 4px; height: 4px;
    background: #C9A84C;
    border-radius: 50%;
    opacity: 0.6;
}
.scroll-indicator {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(201, 168, 76, 0.6);
    animation: float 2s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

@media (max-width: 768px) {
    .hero-title br { display: block; }
    .hero-content { padding-top: 60px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ─── Sections ─── */
.section { padding: 100px 0; }
@media (max-width: 768px) { .section { padding: 72px 0; } }

/* ─── Services ─── */
.services { background: #0A1628; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 8px;
    padding: 36px 28px;
    transition: all 0.4s ease;
}
.card:hover {
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(201, 168, 76, 0.05);
}
.card-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 8px;
    margin-bottom: 24px;
}
.card h3 { color: #F5F0E8; margin-bottom: 12px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.0625rem; }
.card p { font-size: 0.9375rem; line-height: 1.7; color: #8A8070; }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ─── About ─── */
.about { background: linear-gradient(180deg, #0A1628 0%, #0D1C30 100%); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-image { position: relative; }
.about-image img {
    width: 100%; height: 560px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(201, 168, 76, 0.15);
}
.about-accent {
    position: absolute;
    bottom: -20px; right: -20px;
    width: 200px; height: 200px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 8px;
    z-index: -1;
}
.about-content .section-title { margin-bottom: 24px; }
.about-content .lead { margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; }
.about-stats {
    display: flex; gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 700;
    color: #C9A84C; line-height: 1;
}
.stat-label { font-size: 0.8125rem; color: #8A8070; letter-spacing: 0.04em; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image img { height: 400px; }
    .about-accent { display: none; }
    .about-stats { gap: 24px; }
}
@media (max-width: 600px) { .about-stats { flex-direction: column; gap: 20px; } }

/* ─── Patient Info ─── */
.patient-info { background: #0A1628; }
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.info-item {
    padding: 32px;
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}
.info-item:hover { border-color: rgba(201, 168, 76, 0.25); }
.info-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem; font-weight: 700;
    color: rgba(201, 168, 76, 0.2);
    line-height: 1; margin-bottom: 12px;
}
.info-item h3 { color: #F5F0E8; margin-bottom: 8px; font-family: 'Inter', sans-serif; font-weight: 600; }
.info-item p { font-size: 0.9375rem; }
.info-item a { color: #C9A84C; text-decoration: underline; text-decoration-color: rgba(201, 168, 76, 0.3); text-underline-offset: 3px; transition: text-decoration-color 0.3s ease; }
.info-item a:hover { text-decoration-color: #C9A84C; }

@media (max-width: 768px) { .info-grid { grid-template-columns: 1fr; } }

/* ─── Location ─── */
.location { background: linear-gradient(180deg, #0D1C30 0%, #0A1628 100%); }
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}
.location-info { display: flex; flex-direction: column; gap: 32px; }
.location-detail { display: flex; gap: 16px; }
.location-detail svg { flex-shrink: 0; margin-top: 2px; }
.location-detail strong { display: block; color: #F5F0E8; font-weight: 600; margin-bottom: 4px; font-size: 0.9375rem; }
.location-detail p { font-size: 0.9375rem; line-height: 1.6; }
.location-detail a { color: #C9A84C; text-decoration: underline; text-decoration-color: rgba(201, 168, 76, 0.3); text-underline-offset: 3px; transition: text-decoration-color 0.3s ease; }
.location-detail a:hover { text-decoration-color: #C9A84C; }
.location-map {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.15);
    min-height: 360px;
}
.location-map iframe { border-radius: 8px; }

@media (max-width: 900px) { .location-grid { grid-template-columns: 1fr; } }

/* ─── Contact ─── */
.contact { background: #0A1628; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.contact-info .section-title { margin-bottom: 20px; }
.contact-info .lead { margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 1rem; font-weight: 500;
    color: #E8DFD0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    transition: color 0.3s ease, border-color 0.3s ease;
}
.contact-link:hover { color: #C9A84C; border-color: rgba(201, 168, 76, 0.3); }
.contact-form {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 8px;
    padding: 40px;
}
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #B8AFA0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 4px;
    padding: 14px 16px;
    color: #F5F0E8;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #5A5040; }
.form-group input:focus,
.form-group textarea:focus {
    border-color: #C9A84C;
    background: rgba(201, 168, 76, 0.04);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8125rem; color: #5A5040; margin-top: 16px; text-align: center; }
.form-success {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 4px;
    color: #C9A84C;
    font-size: 0.9375rem;
    margin-top: 20px;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-form { padding: 28px; } }
@media (max-width: 600px) { .contact-form { padding: 20px; } }

/* ─── Footer ─── */
#site-footer {
    background: #060E1A;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    padding: 56px 0 32px;
}
.footer-top { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem; font-weight: 600;
    color: #F5F0E8;
}
.footer-address, .footer-phone { font-size: 0.9375rem; color: #8A8070; }
.footer-phone a { color: #C9A84C; text-decoration: underline; text-decoration-color: rgba(201, 168, 76, 0.3); text-underline-offset: 3px; }
.footer-divider { height: 1px; background: rgba(201, 168, 76, 0.1); margin-bottom: 24px; }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom p { font-size: 0.8125rem; color: #5A5040; }
.footer-disclaimer { font-size: 0.75rem; color: #3A3530; line-height: 1.6; }

/* ─── Back to Top ─── */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px;
    z-index: 50;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10, 22, 40, 0.9);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 50%;
    color: #C9A84C;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.back-to-top:hover { background: rgba(201, 168, 76, 0.15); transform: translateY(-2px); }

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}
.reveal[data-reveal="left"] { transform: translateX(-24px); }
.reveal[data-reveal="right"] { transform: translateX(24px); }
.reveal.revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] { opacity: 0; transform: translateY(24px); }
    .reveal[data-reveal="left"] { transform: translateX(-24px); }
    .reveal[data-reveal="right"] { transform: translateX(24px); }
}
@media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal] { opacity: 1; transform: none; }
}
</style>
<sm-file path="script.js">
(function () {
    'use strict';

    // ─── Loader ───
    window.addEventListener('load', function () {
        document.getElementById('loader').classList.add('hidden');
    });

    // ─── Header scroll ───
    var header = document.getElementById('site-header');
    var lastScroll = 0;
    window.addEventListener('scroll', function () {
        var current = window.pageYOffset;
        if (current > 60) {
            header.classList.add('scrolled');
        } else {
            header.classList.remove('scrolled');
        }
        lastScroll = current;
    }, { passive: true });

    // ─── Mobile menu ───
    var menuToggle = document.getElementById('menu-toggle');
    var navMenu = document.getElementById('nav-menu');
    menuToggle.addEventListener('click', function () {
        var expanded = menuToggle.getAttribute('aria-expanded') === 'true';
        menuToggle.setAttribute('aria-expanded', String(!expanded));
        navMenu.classList.toggle('open');
        document.body.style.overflow = !expanded ? 'hidden' : '';
    });
    navMenu.querySelectorAll('a').forEach(function (link) {
        link.addEventListener('click', function () {
            menuToggle.setAttribute('aria-expanded', 'false');
            navMenu.classList.remove('open');
            document.body.style.overflow = '';
        });
    });

    // ─── Smooth scroll for anchor links ───
    document.querySelectorAll('a[href^="#"]').forEach(function (anchor) {
        anchor.addEventListener('click', function (e) {
            var target = document.querySelector(this.getAttribute('href'));
            if (target) {
                e.preventDefault();
                var offset = header.offsetHeight + 16;
                var top = target.getBoundingClientRect().top + window.pageYOffset - offset;
                window.scrollTo({ top: top, behavior: 'smooth' });
            }
        });
    });

    // ─── Scroll reveal ───
    if (window.matchMedia('(prefers-reduced-motion: no-preference)').matches) {
        var reveals = document.querySelectorAll('.reveal[data-reveal]');
        if (reveals.length === 0) {
            document.querySelectorAll('section > .container > *, .card, .info-item, .location-detail').forEach(function (el) {
                el.setAttribute('data-reveal', '');
            });
            reveals = document.querySelectorAll('.reveal[data-reveal]');
        }
        var observer = new IntersectionObserver(function (entries) {
            entries.forEach(function (entry) {
                if (entry.isIntersecting) {
                    entry.target.classList.add('revealed');
                    observer.unobserve(entry.target);
                }
            });
        }, { threshold: 0.12, rootMargin: '0px 0px -40px 0px' });
        reveals.forEach(function (el) { observer.observe(el); });
    }

    // ─── Back to top ───
    var backToTop = document.getElementById('back-to-top');
    window.addEventListener('scroll', function () {
        if (window.pageYOffset > 600) {
            backToTop.hidden = false;
        } else {
            backToTop.hidden = true;
        }
    }, { passive: true });
    backToTop.addEventListener('click', function () {
        window.scrollTo({ top: 0, behavior: 'smooth' });
    });

    // ─── Contact form ───
    var form = document.getElementById('contact-form');
    var success = document.getElementById('form-success');
    form.addEventListener('submit', function (e) {
        e.preventDefault();
        var valid = true;
        form.querySelectorAll('[required]').forEach(function (field) {
            if (!field.value.trim()) {
                field.style.borderColor = '#c0392b';
                valid = false;
            } else {
                field.style.borderColor = '';
            }
        });
        if (valid) {
            form.querySelectorAll('.form-group').forEach(function (g) { g.hidden = true; });
            form.querySelector('.btn-gold').hidden = true;
            form.querySelector('.form-note').hidden = true;
            success.hidden = false;
        }
    });
})();
