/* The Medical - Optimized Stylesheet (system fonts, lean) */

:root {
    --primary: #003d4c;
    --primary-dark: #002933;
    --accent: #d4a574;
    --accent-dark: #b8895b;
    --teal: #4a9b9e;
    --cream: #f5f0e8;
    --sand: #ebe3d3;
    --text: #1a1a1a;
    --text-light: #5a5a5a;
    --text-muted: #8a8a8a;
    --bg: #ffffff;
    --bg-alt: #faf7f2;
    --border: #e8e4db;
    --shadow: 0 2px 10px rgba(0, 61, 76, 0.06);
    --shadow-lg: 0 6px 24px rgba(0, 61, 76, 0.1);
    --radius: 8px;
    --radius-lg: 14px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: .5em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
p { margin-bottom: 1rem; color: var(--text-light); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top-bar {
    background: var(--primary);
    color: #fff;
    font-size: .85rem;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar-left, .top-bar-right {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.top-bar a { color: #fff; opacity: .9; }
.top-bar a:hover { opacity: 1; color: var(--accent); }
.btn-small {
    background: var(--accent);
    color: var(--primary) !important;
    padding: 5px 14px;
    border-radius: 18px;
    font-weight: 600;
    opacity: 1 !important;
}
.btn-small:hover { background: #fff; }

/* Header */
.main-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 20px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
}
.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--primary);
}
.logo-text strong { font-weight: 700; }

.main-nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.nav-link {
    padding: 7px 10px;
    color: var(--text);
    font-size: .88rem;
    font-weight: 500;
    border-radius: 5px;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--bg-alt);
}

.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    min-width: 190px;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
    z-index: 50;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-size: .88rem;
}
.dropdown-menu a:hover { background: var(--bg-alt); color: var(--primary); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 26px;
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
    text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); color: var(--primary); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--primary); }

/* Hero */
.hero {
    background: var(--cream);
    padding: 60px 0 80px;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-content h1 { margin-bottom: 18px; }
.hero-content h1 em { font-style: italic; color: var(--accent-dark); }
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 26px;
    max-width: 500px;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.hero-image {
    position: relative;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--teal);
}
.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-align: center;
    padding: 30px;
}
.hero-image-placeholder::before {
    content: '+';
    display: block;
    font-size: 3.5rem;
    opacity: .5;
    margin-bottom: 10px;
    font-weight: 300;
}

/* Stats */
.stats-bar {
    background: #fff;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-bar.inline {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-top: -30px;
    position: relative;
    z-index: 2;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    text-align: center;
}
.stat-item { padding: 10px; }
.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: .82rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--primary); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.8); }
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 44px;
}
.section-eyebrow {
    display: inline-block;
    color: var(--accent-dark);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-header p { font-size: 1.02rem; margin-top: 12px; }

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 22px;
    border: 1px solid var(--border);
    transition: border-color .2s, box-shadow .2s;
}
.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}
.service-card-icon {
    width: 50px;
    height: 50px;
    background: var(--cream);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: var(--primary);
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { font-size: .92rem; margin-bottom: 14px; }
.service-card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: .88rem;
}
.service-card-link::after { content: ' →'; }

/* Locations */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.location-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px;
    border: 1px solid var(--border);
    transition: border-color .2s;
}
.location-card:hover { border-color: var(--accent); }
.location-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.location-card .address {
    color: var(--text-light);
    font-size: .88rem;
    margin-bottom: 12px;
}
.location-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .88rem;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}
.team-card { text-align: center; }
.team-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: var(--cream);
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary);
}
.team-card h4 { margin-bottom: 2px; font-size: 1.05rem; }
.team-role { color: var(--accent-dark); font-size: .85rem; font-weight: 500; }

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.testimonial {
    background: #fff;
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.testimonial-text { font-style: italic; margin-bottom: 14px; color: var(--text); }
.testimonial-author { font-weight: 600; color: var(--primary); }
.testimonial-location { font-size: .82rem; color: var(--text-muted); }
.stars { color: var(--accent); margin-bottom: 8px; letter-spacing: 1px; }

/* Page hero */
.page-hero {
    background: var(--primary);
    color: #fff;
    padding: 56px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p {
    color: rgba(255,255,255,.82);
    font-size: 1.05rem;
    max-width: 680px;
}
.breadcrumb {
    font-size: .82rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 16px;
}
.breadcrumb a { color: var(--accent); }

/* Content blocks */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}
.content-block h2 { margin-bottom: 18px; }
.content-block ul { padding-left: 18px; margin-bottom: 18px; }
.content-block li { margin-bottom: 8px; color: var(--text-light); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.value-card {
    padding: 24px 22px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.value-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
}

/* CTA */
.cta-banner {
    background: var(--primary);
    padding: 56px 0;
    color: #fff;
}
.cta-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: center;
}
.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { color: rgba(255,255,255,.82); margin: 0; font-size: 1rem; }
.cta-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Footer */
.site-footer {
    background: #0a1f26;
    color: #d6d6d6;
    padding: 56px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-brand p {
    color: #a0a0a0;
    margin: 16px 0;
    max-width: 300px;
    font-size: .9rem;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo .logo-mark { background: var(--accent); color: var(--primary); }
.footer-logo .logo-text { color: #fff; }
.social { display: flex; gap: 8px; }
.social a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.08);
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: .85rem;
}
.social a:hover { background: var(--accent); color: var(--primary); }

.footer-col h4 {
    color: #fff;
    font-family: var(--font);
    font-size: .88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #a0a0a0; font-size: .86rem; }
.footer-col a:hover { color: var(--accent); }

.partners {
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 22px;
    text-align: center;
}
.partners h5 {
    color: #a0a0a0;
    font-family: var(--font);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
    margin-bottom: 14px;
}
.partner-logos {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    opacity: .75;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    font-size: .82rem;
    color: #808080;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: #808080; }
.footer-legal a:hover { color: var(--accent); }

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
label {
    display: block;
    font-weight: 500;
    font-size: .86rem;
    margin-bottom: 6px;
    color: var(--primary);
}
input, textarea, select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: .92rem;
    background: #fff;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}
textarea { min-height: 130px; resize: vertical; }

/* Tables */
.price-table {
    width: 100%;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    border-collapse: collapse;
}
.price-table th, .price-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.price-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .8rem;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--bg-alt); }
.price-table .price {
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 1.05rem;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.blog-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color .2s;
}
.blog-card:hover { border-color: var(--accent); }
.blog-image {
    aspect-ratio: 16/10;
    background: var(--primary);
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--font-display);
    font-size: 2.2rem;
    opacity: .85;
}
.blog-content { padding: 22px; }
.blog-meta {
    display: flex;
    gap: 12px;
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.blog-category {
    color: var(--accent-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.blog-content h3 { font-size: 1.15rem; margin-bottom: 10px; }

/* Conditions list */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.condition-tag {
    background: #fff;
    padding: 11px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: .86rem;
    color: var(--text);
    display: block;
    transition: background .2s, color .2s;
}
.condition-tag:hover {
    background: var(--primary);
    color: #fff;
}

/* FAQ */
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-question {
    padding: 16px 20px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    transition: transform .2s;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s, padding .25s;
}
.faq-item.open .faq-answer { padding: 0 20px 16px; max-height: 500px; }

/* Responsive */
@media (max-width: 1100px) {
    .main-nav .nav-link { padding: 7px 8px; font-size: .82rem; }
}

@media (max-width: 960px) {
    .hero-inner, .two-col { grid-template-columns: 1fr; gap: 30px; }
    .hero-image { height: 300px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-inner { grid-template-columns: 1fr; text-align: center; }
    .cta-buttons { justify-content: center; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .hero { padding: 50px 0 60px; }

    .menu-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: #fff;
        flex-direction: column;
        padding: 70px 20px 20px;
        align-items: stretch;
        box-shadow: var(--shadow-lg);
        transition: right .25s;
        overflow-y: auto;
        z-index: 99;
    }
    body.menu-open .main-nav { right: 0; }
    body.menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 90;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 14px;
    }
}

@media (max-width: 600px) {
    .top-bar-inner { justify-content: center; font-size: .76rem; }
    .top-bar-left, .top-bar-right { gap: 12px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .section { padding: 44px 0; }
}
