/* Enterprise public-site layer. Brand colors remain administrator controlled. */
:root {
  --enterprise-navy: #0b2237;
  --enterprise-slate: #405568;
  --enterprise-line: #d8e2e8;
  --muted: #5a6f77;
  --on-teal: #ffffff;
  --on-teal-dark: #071923;
  --radius: 16px;
  --shadow: 0 18px 48px rgb(11 34 55 / 10%);
}

body {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 28%, transparent); outline-offset: 3px; }

.utility-bar { background: var(--enterprise-navy); }
.site-header { box-shadow: 0 1px 0 rgb(11 34 55 / 4%); }
.nav-shell { height: 78px; }
.site-nav { gap: 25px; font-weight: 650; }
.site-nav > a:not(.button) { color: var(--enterprise-slate); }

.button {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: none;
}

.button-primary, .brand-mark { color: var(--on-teal); }
.button-primary { box-shadow: 0 6px 18px color-mix(in srgb, var(--teal) 21%, transparent); }
.button-primary:hover { color: var(--on-teal); background: var(--teal); transform: translateY(-1px); }
.button-soft { color: #075c55; }
.footer-brand .brand-mark { color: #075c55; }
.nav-toggle, .theme-toggle { min-width: 44px; min-height: 44px; }
.button-quiet { border-color: var(--enterprise-line); }

.hero {
  background:
    linear-gradient(rgb(11 34 55 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(11 34 55 / 3%) 1px, transparent 1px),
    linear-gradient(120deg, #f2f7f8 0%, #fff 58%, #f7f4ed 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

.hero h1, .page-hero h1, .profile-main h1, .confirmation-card h1, .policy-hero h1,
.section-head h2, .portal-card h2, .profile-sections article > h2, .booking-intro h2, .site-empty h2 {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 720;
  letter-spacing: -.045em;
}

.hero h1 { max-width: 720px; font-size: clamp(46px, 5.4vw, 70px); }
.eyebrow { letter-spacing: .13em; }
.hero-assurance { color: var(--enterprise-slate); }

.care-card, .doctor-card, .availability-card, .booking-card, .confirmation-card,
.principle-card, .contact-grid article, .value-grid article {
  border-color: var(--enterprise-line);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgb(11 34 55 / 7%);
}

.care-card { padding: 31px; }
.floating-note { background: var(--enterprise-navy); border-radius: 10px; }
.trust-strip { background: rgb(255 255 255 / 82%); }
.trust-strip strong { color: var(--enterprise-navy); }

.section { padding: 88px 0; }
.section-head h2 { font-size: clamp(34px, 4vw, 46px); }
.specialty-card { border-color: var(--enterprise-line); border-radius: 12px; }
.specialty-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgb(11 34 55 / 8%); }

.doctor-avatar { background: linear-gradient(145deg, #e4eef1, #f7f5ef); }
.doctor-card h3 { color: var(--enterprise-navy); }
.portal-card { background: linear-gradient(125deg, color-mix(in srgb, var(--teal) 82%, var(--enterprise-navy)), var(--enterprise-navy)); border-radius: 16px; }

.page-hero {
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--teal) 7%, #fff), #f6f8fa),
    #f6f8fa;
  border-color: var(--enterprise-line);
}

.filter-pills a { border-color: var(--enterprise-line); border-radius: 7px; }
.filter-pills a[aria-current=page], .filter-pills a:hover { background: var(--enterprise-navy); border-color: var(--enterprise-navy); }
.profile-avatar { border-radius: 16px; }
.availability-card { box-shadow: 0 14px 36px rgb(11 34 55 / 9%); }

.booking-card { padding: 36px; }
.booking-wizard { display: block; scroll-margin-top: 116px; }
.wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.wizard-progress button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  gap: 8px;
  padding: 8px;
  color: var(--muted);
  background: var(--mint-2);
  border: 1px solid var(--enterprise-line);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}
.wizard-progress button span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--enterprise-line); }
.wizard-progress .is-active button { color: #075c55; background: var(--mint); border-color: color-mix(in srgb, var(--teal) 35%, var(--enterprise-line)); }
.wizard-progress .is-active button span, .wizard-progress .is-complete button span { color: var(--on-teal); background: var(--teal); }
.wizard-progress button:disabled { cursor: default; opacity: .62; }
.booking-wizard.wizard-ready [data-wizard-step][hidden] { display: none; }
.wizard-panel { min-width: 0; margin: 0; padding: 0; border: 0; }
.wizard-panel > legend { width: 100%; margin: 0 0 4px; padding: 0; color: var(--ink); font-size: 22px; font-weight: 750; letter-spacing: -.025em; }
.wizard-intro { margin: 0 0 24px; color: var(--muted); }
.wizard-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--enterprise-line); }
.wizard-actions > span { margin-right: auto; color: var(--muted); font-size: 13px; font-weight: 650; }
.booking-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 24px; overflow: hidden; background: var(--enterprise-line); border: 1px solid var(--enterprise-line); border-radius: 10px; }
.booking-review > div { min-width: 0; padding: 15px; background: var(--white); }
.booking-review dt { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.booking-review dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--ink); font-weight: 700; }
.security-check { margin-top: 18px; padding: 17px; background: var(--mint-2); border: 1px solid var(--enterprise-line); border-radius: 10px; }
.security-check label { display: grid; gap: 7px; }
.security-metadata-note { margin: 16px 0 0; padding: 13px 15px; color: var(--muted); background: var(--mint-2); border-left: 3px solid var(--teal); border-radius: 7px; font-size: 12px; line-height: 1.6; }
.public-form legend span { border-radius: 8px; }
.field-grid input, .field-grid select, .field-grid textarea { min-height: 46px; border-color: #c9d6de; border-radius: 8px; }
.field-grid textarea { min-height: 116px; }
.consent-field, .support-card, .form-alert, .emergency-note, .confirmation-note { border-radius: 10px; }

.policy-hero, .site-footer { background: var(--enterprise-navy); }
.policy-nav a { border-radius: 6px; }
.policy-content section { border-color: var(--enterprise-line); }
.footer-bottom { border-color: rgb(255 255 255 / 12%); }

html[data-theme=dark] {
  --enterprise-navy: #071923;
  --enterprise-slate: #b2c5c7;
  --enterprise-line: #29464d;
  --on-teal: var(--on-teal-dark);
}

html[data-theme=dark] .hero {
  background:
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(120deg, #0b252c 0%, #081b22 58%, #251e1a 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

html[data-theme=dark] .page-hero { background: linear-gradient(110deg, #102e35, #0a2027); }
html[data-theme=dark] .trust-strip { background: rgb(8 27 34 / 80%); }
html[data-theme=dark] .trust-strip strong, html[data-theme=dark] .doctor-card h3 { color: var(--ink); }
html[data-theme=dark] .button-primary,
html[data-theme=dark] .brand-mark { color: var(--on-teal); }
html[data-theme=dark] .button-soft { color: #55c9b8; }
html[data-theme=dark] .button-light { color: #075c55; }
html[data-theme=dark] .footer-brand .brand-mark { color: #075c55; }
html[data-theme=dark] .button-quiet { color: #edf6f5; background: #102e35; border-color: #29464d; }
html[data-theme=dark] .wizard-progress button, html[data-theme=dark] .security-check, html[data-theme=dark] .security-metadata-note { background: #102e35; }
html[data-theme=dark] .wizard-progress .is-active button { color: #bdece4; background: #12383d; }
html[data-theme=dark] .booking-review > div { background: #0d252c; }
html[data-theme=dark] .skip-link,
html[data-theme=dark] .utility-bar,
html[data-theme=dark] .floating-note,
html[data-theme=dark] .support-card,
html[data-theme=dark] .site-toast { color: #fff; background: #071923; }
html[data-theme=dark] .portal-card { background: linear-gradient(125deg, #0d4f4b, var(--enterprise-navy)); }
html[data-theme=dark] .care-card, html[data-theme=dark] .doctor-card, html[data-theme=dark] .availability-card,
html[data-theme=dark] .booking-card, html[data-theme=dark] .confirmation-card, html[data-theme=dark] .principle-card,
html[data-theme=dark] .contact-grid article, html[data-theme=dark] .value-grid article { border-color: var(--enterprise-line); }

@media (max-width: 1000px) {
  .site-nav { border-radius: 12px; }
  .nav-shell { height: 74px; }
  .section { padding: 74px 0; }
  .booking-layout { gap: 32px; }
}

@media (max-width: 680px) {
  .section { padding: 62px 0; }
  .hero h1 { font-size: 43px; }
  .hero-grid { min-height: auto; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero-actions .button { width: 100%; }
  .hero-assurance { align-items: flex-start; flex-direction: column; gap: 10px; }
  .page-hero { padding: 54px 0; }
  .booking-hero { padding-bottom: 84px; }
  .booking-layout { gap: 26px; margin-top: -72px; }
  .booking-card { min-height: 0; padding: 24px 18px; }
  .wizard-progress button { min-height: 44px; gap: 5px; padding-inline: 5px; font-size: 11px; }
  .wizard-progress button span { width: 21px; height: 21px; }
  .wizard-actions { align-items: stretch; flex-direction: column-reverse; }
  .wizard-actions .button { width: 100%; }
  .wizard-actions > span { align-self: center; margin: 0; }
  .wizard-actions-final { flex-direction: column-reverse; }
  .booking-review { grid-template-columns: 1fr; }
  .site-empty { padding: 48px 8px; }
  .confirmation-card dl > div { padding-inline: 10px; }
  .site-footer { padding-top: 52px; }
  .footer-grid { gap: 28px; }
  .footer-bottom { margin-top: 36px; }
  .footer-bottom { line-height: 1.7; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 38px; }
  .care-card { width: 100%; padding: 23px; }
  .floating-note { right: 8px; bottom: 10px; padding: 13px 16px; }
  .page-hero h1, .profile-main h1, .policy-hero h1 { font-size: 38px; }
  .public-form legend { font-size: 16px; }
}

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