:root {
    --navy-900: #07154f;
    --navy-800: #0d2366;
    --navy-700: #173778;
    --teal-700: #237f7a;
    --teal-600: #329b94;
    --teal-100: #ddf4f1;
    --teal-50: #f0faf8;
    --ink: #101828;
    --body: #344054;
    --muted: #667085;
    --border: #eaecf0;
    --page: #f8fafc;
    --white: #fff;
    --success: #18794e;
    --container: 1200px;
    --shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--body);
    background: var(--white);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-700); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f0b429; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; color: var(--white); background: var(--navy-900); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.public-container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow-container { max-width: 850px; }
.formatted-content {
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.public-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.header-row { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.logo-link { display: flex; align-items: center; }
.logo-link img { display: block; width: 190px; height: 58px; object-fit: contain; mix-blend-mode: multiply; }
.main-navigation { display: flex; align-items: center; gap: 22px; }
.main-navigation a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-size: 0.94rem; font-weight: 650; }
.main-navigation a:hover { color: var(--teal-700); }
.main-navigation .header-action { padding: 0 18px; color: var(--white); background: var(--teal-700); border-radius: 10px; }
.main-navigation .header-action:hover { color: var(--white); background: var(--navy-800); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 11px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--navy-900); }

.home-hero { padding: clamp(64px, 9vw, 112px) 0; overflow: hidden; background: radial-gradient(circle at 85% 18%, rgba(69, 179, 170, 0.18), transparent 28%), linear-gradient(145deg, #fff 0%, var(--teal-50) 100%); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr); align-items: center; gap: clamp(40px, 7vw, 88px); }
.section-kicker { margin: 0 0 12px; color: var(--teal-700); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; }
.home-hero h1, .page-hero h1 { margin: 0; color: var(--navy-900); font-size: clamp(2.5rem, 6vw, 4.8rem); letter-spacing: -0.05em; line-height: 1.02; }
.hero-lead, .page-hero p:last-child { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 1.14rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border: 2px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 750; }
.primary-button { color: var(--white); background: var(--teal-700); }
.primary-button:hover { background: var(--navy-800); }
.secondary-button { color: var(--navy-800); background: var(--white); border-color: var(--navy-800); }
.trust-panel { padding: clamp(22px, 3.5vw, 32px); color: var(--white); background: var(--navy-900); border-radius: 22px; box-shadow: var(--shadow); }
.trust-panel img { display: block; width: 108px; margin: 0 auto 14px; border-radius: 50%; }
.trust-panel h2 { margin: 0; color: var(--white); font-size: clamp(1.5rem, 2.5vw, 1.95rem); }
.trust-panel ul { margin: 17px 0 0; padding: 0; list-style: none; }
.trust-panel li { padding: 9px 0; border-top: 1px solid rgba(255,255,255,0.18); }

.public-section { padding: clamp(64px, 8vw, 96px) 0; }
.soft-section { background: var(--page); }
.section-heading { max-width: 760px; margin-bottom: 40px; }
.section-heading h2, .cta-section h2 { margin: 0; color: var(--navy-900); font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.035em; }
.specialty-grid, .doctor-grid, .feature-grid, .contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.specialty-card, .doctor-card, .feature-card, .contact-card { padding: 28px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; }
.specialty-card > span, .feature-card > span, .contact-card > span { display: grid; width: 38px; height: 38px; color: var(--teal-700); background: var(--teal-100); border-radius: 50%; place-items: center; font-weight: 800; }
.specialty-card h2, .specialty-card h3, .doctor-card h3, .feature-card h2, .contact-card h2 { margin: 22px 0 8px; font-size: 1.2rem; }
.specialty-card p, .doctor-card p, .feature-card p, .contact-card p { margin: 0; color: var(--muted); }
.specialty-directory { display: grid; gap: 24px; }
.specialty-directory-card { overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: 18px; }
.specialty-directory-card > header { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 16px; padding: 28px; background: linear-gradient(135deg,var(--teal-100),var(--white)); }
.specialty-directory-card > header h2 { margin: 0 0 8px; }
.specialty-directory-card > header p { margin: 0; color: var(--muted); }
.specialty-symbol { display: grid; width: 38px; height: 38px; color: var(--teal-700); background: var(--white); border-radius: 50%; place-items: center; font-weight: 800; }
.specialty-professionals { padding: 24px 28px 28px; }
.specialty-professionals h3 { margin: 0 0 16px; font-size: 1rem; }
.specialty-professionals ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.specialty-professionals li a { display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: 14px; min-height: 96px; padding: 12px; color: inherit; border: 1px solid var(--border); border-radius: 14px; text-decoration: none; }
.specialty-professionals li a:hover, .specialty-professionals li a:focus-visible { border-color: var(--teal-700); box-shadow: 0 8px 24px rgba(5,82,79,.10); }
.specialty-professionals li strong, .specialty-professionals li small { display: block; }
.specialty-professionals li small { margin-top: 3px; color: var(--muted); }
.specialty-professional-photo, .specialty-professional-photo img { width: 72px; height: 72px; border-radius: 50%; }
.specialty-professional-photo { display: grid; overflow: hidden; color: var(--white); background: var(--teal-700); place-items: center; font-weight: 800; }
.specialty-professional-photo img { object-fit: cover; object-position: center top; }
.specialty-professionals .text-link { display: inline-block; margin-top: 7px; }
.specialty-empty { margin: 0; color: var(--muted); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; margin-top: 28px; color: var(--teal-700); font-weight: 750; }
.doctor-avatar { display: grid; width: 72px; height: 72px; margin-bottom: 20px; color: var(--white); background: var(--navy-800); border-radius: 50%; place-items: center; font-weight: 800; }
.doctor-photo { display: block; width: 100%; height: 280px; margin-bottom: 20px; border-radius: 12px; object-fit: cover; object-position: center top; }
.appointment-professional-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 16px; }
.appointment-professional-card .button { grid-column: 1 / -1; }
.appointment-professional-photo, .appointment-professional-placeholder { width: 76px; height: 76px; border-radius: 50%; }
.appointment-professional-photo { object-fit: cover; object-position: center top; }
.appointment-professional-placeholder { display: grid; color: var(--white); background: var(--navy-800); place-items: center; font-weight: 800; }
.team-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.team-heading .text-link { flex: 0 0 auto; margin-bottom: 8px; }
.professional-slide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; animation: carousel-fade 500ms ease; }
.professional-slide[hidden] { display: none; }
.home-professional-card { overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 12px 30px rgba(13, 47, 61, 0.08); }
.professional-card-link { display: block; height: 100%; padding: 24px; color: inherit; text-decoration: none; }
.professional-card-link:focus-visible { outline: 3px solid var(--teal-700); outline-offset: -4px; }
.home-professional-photo, .home-professional-placeholder { display: grid; width: 112px; height: 112px; margin: 0 auto 20px; border: 4px solid var(--teal-100); border-radius: 50%; place-items: center; }
.home-professional-photo { object-fit: cover; object-position: center top; }
.home-professional-placeholder { color: var(--white); background: var(--navy-800); font-size: 1.4rem; font-weight: 800; }
.home-professional-card .specialty-badge { margin: 0 auto; }
.home-professional-card h3 { margin: 14px 0 8px; text-align: center; }
.professional-credentials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; color: var(--muted); font-size: 0.86rem; }
.professional-credentials span + span::before { margin-right: 8px; content: "•"; }
.home-professional-card .text-link { width: 100%; justify-content: center; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.carousel-controls p { min-width: 110px; margin: 0; color: var(--muted); text-align: center; }
.carousel-button { width: 44px; height: 44px; color: var(--navy-800); background: var(--white); border: 1px solid var(--border); border-radius: 50%; cursor: pointer; font-size: 1.25rem; }
.carousel-button:hover, .carousel-button:focus-visible { color: var(--white); background: var(--teal-700); }
.professional-profile-layout { display: grid; grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 7vw, 88px); }
.professional-profile-photo, .professional-profile-placeholder { width: min(100%, 420px); aspect-ratio: 4 / 5; border-radius: 28px; box-shadow: var(--shadow); }
.professional-profile-photo { object-fit: cover; object-position: center top; }
.professional-profile-placeholder { display: grid; color: var(--white); background: var(--navy-800); place-items: center; font-size: 3rem; font-weight: 800; }
.profile-credentials { justify-content: flex-start; margin: 18px 0; font-size: 1rem; }
@keyframes carousel-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .team-heading { display: block; } .professional-slide { grid-template-columns: 1fr; } .professional-profile-layout { grid-template-columns: 1fr; } .professional-profile-photo, .professional-profile-placeholder { max-width: 320px; margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .professional-slide { animation: none; } }
.specialty-badge, .status-badge { display: inline-flex; width: fit-content; padding: 5px 10px; color: var(--teal-700) !important; background: var(--teal-100); border-radius: 999px; font-size: 0.78rem; font-weight: 750; }
.registration { margin-bottom: 12px !important; font-size: 0.86rem; }
.steps-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
.public-steps { margin: 0; padding: 0; list-style: none; counter-reset: public-step; }
.public-steps li { display: grid; grid-template-columns: 54px 1fr; padding: 20px 0; border-bottom: 1px solid var(--border); counter-increment: public-step; }
.public-steps li::before { grid-row: span 2; color: var(--teal-700); content: counter(public-step, decimal-leading-zero); font-weight: 800; }
.public-steps span { color: var(--muted); }

.page-hero { padding: clamp(64px, 8vw, 100px) 0; background: linear-gradient(145deg, var(--page), var(--teal-50)); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.information-note { margin-top: 34px; padding: 24px; background: #fff7e0; border-left: 4px solid #8a5a00; border-radius: 10px; }
.information-note h2 { margin: 0; font-size: 1.1rem; }
.information-note p { margin: 6px 0 0; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item h3 { margin: 0; }
.faq-item button { display: flex; width: 100%; min-height: 64px; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; color: var(--ink); text-align: left; background: transparent; border: 0; font: inherit; font-weight: 750; cursor: pointer; }
.faq-item button span { color: var(--teal-700); font-size: 1.4rem; }
.faq-item button[aria-expanded="true"] span { transform: rotate(45deg); }
.faq-item [role="region"] p { margin: 0; padding: 0 40px 22px 0; color: var(--muted); }
.contact-grid { align-items: stretch; }
.status-badge { margin-top: 22px !important; }

.appointment-shell { max-width: 960px; }
.appointment-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; counter-reset: progress; }
.appointment-progress li { padding: 12px; color: var(--muted); background: var(--page); border-bottom: 3px solid var(--border); counter-increment: progress; font-size: 0.86rem; font-weight: 700; }
.appointment-progress li::before { margin-right: 6px; content: counter(progress); }
.appointment-progress .is-current { color: var(--navy-900); background: var(--teal-50); border-color: var(--teal-700); }
[data-appointment-form] { padding: clamp(24px, 5vw, 44px); background: var(--white); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
[data-appointment-form] fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
[data-appointment-form] legend { margin-bottom: 24px; color: var(--navy-900); font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 750; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; accent-color: var(--teal-700); }
.choice-card span { display: flex; min-height: 94px; padding: 20px 48px 20px 20px; background: var(--page); border: 2px solid var(--border); border-radius: 12px; flex-direction: column; justify-content: center; }
.choice-card input:checked + span { background: var(--teal-50); border-color: var(--teal-700); }
.choice-card input:focus-visible + span { outline: 3px solid #f0b429; outline-offset: 3px; }
.choice-card small, .field-help { color: var(--muted); }
.choice-card[hidden] { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid label { display: grid; gap: 7px; color: var(--ink); font-weight: 700; }
.form-grid input { min-height: 48px; padding: 10px 12px; color: var(--ink); background: var(--white); border: 1px solid #98a2b3; border-radius: 10px; font: inherit; }
.consent-field { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; }
.consent-field input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--teal-700); }
.appointment-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.form-message { min-height: 28px; margin-top: 18px; color: #b42318; font-weight: 700; }
.empty-state, .confirmation-card { padding: 24px; background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 12px; }
.confirmation-card h2 { margin-top: 0; color: var(--navy-900); }

.cta-section { padding: 64px 0; color: var(--white); background: var(--teal-700); }
.cta-layout { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-section h2, .cta-section p { color: var(--white); }
.cta-section p { margin-bottom: 0; }
.light-kicker { color: var(--teal-100); }
.light-button { color: var(--navy-900); background: var(--white); }

.public-footer { padding: 64px 0 24px; color: #dbe4ff; background: var(--navy-900); }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); gap: 32px; }
.public-footer h2 { margin: 0 0 14px; color: var(--white); font-size: 1rem; }
.public-footer p { margin: 0 0 10px; }
.public-footer a { display: block; width: fit-content; min-height: 40px; color: var(--white); }
.social-links { display: grid; gap: 8px; }
.social-links a { display: flex; width: 100%; min-height: 42px; align-items: center; gap: 10px; padding: 7px 10px; text-decoration: none; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; }
.social-links a:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.45); }
.social-links span, .social-icon { width: 26px; height: 26px; flex: 0 0 auto; color: var(--navy-900); background: var(--teal-100); border-radius: 50%; }
.social-links span { display: grid; place-items: center; font-size: 0.76rem; font-weight: 850; }
.social-icon { padding: 5px; }
.conversion-card-image { display: block; width: 100%; max-height: 620px; margin-bottom: 20px; border-radius: 12px; object-fit: contain; background: var(--page); }
.conversion-slide { width: min(100%, 620px); margin: 0 auto; animation: carousel-fade 650ms ease; }
.conversion-slide[hidden] { display: none; }
.conversion-slide h3 { margin: 20px 0 8px; color: var(--navy-900); font-size: 1.25rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.18); font-size: 0.84rem; }
.cookie-consent { position: fixed; right: 20px; bottom: 20px; left: 20px; z-index: 1000; display: flex; max-width: 1180px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 24px; padding: 20px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 50px rgba(7,21,79,0.2); }
.cookie-consent[hidden] { display: none; }
.cookie-consent h2 { margin: 0 0 6px; color: var(--navy-900); font-size: 1.05rem; }
.cookie-consent p { max-width: 680px; margin: 0; color: var(--muted); font-size: 0.9rem; }
.cookie-actions { display: flex; flex: 0 0 auto; gap: 10px; }

@media (max-width: 980px) {
    .menu-toggle { display: block; }
    .main-navigation { position: absolute; top: 76px; right: 0; left: 0; display: none; align-items: stretch; padding: 18px 20px 24px; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); flex-direction: column; }
    .main-navigation.is-open { display: flex; }
    .main-navigation a { padding: 6px 10px; }
    .main-navigation .header-action { justify-content: center; }
    .hero-layout, .steps-layout { grid-template-columns: 1fr; gap: 40px; }
    .specialty-grid, .doctor-grid, .feature-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .public-container { width: min(calc(100% - 32px), var(--container)); }
    .logo-link img { width: 154px; height: 50px; }
    .button-row, .button { width: 100%; }
    .specialty-grid, .doctor-grid, .feature-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .specialty-professionals ul { grid-template-columns: 1fr; }
    .specialty-directory-card > header, .specialty-professionals { padding: 20px; }
    .trust-panel { border-radius: 16px; }
    .cta-layout, .footer-bottom { align-items: flex-start; flex-direction: column; }
    .light-button { width: 100%; }
    .appointment-progress { grid-template-columns: repeat(2, 1fr); }
    .choice-grid, .form-grid { grid-template-columns: 1fr; }
    .appointment-actions { align-items: stretch; flex-direction: column-reverse; }
    .cookie-consent, .cookie-actions { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
