/* Enterprise public-site layer. Brand colors remain administrator controlled. */
:root {
  --enterprise-navy: #0b2237;
  --enterprise-slate: #405568;
  --enterprise-line: #d8e2e8;
  --muted: #5a6f77;
  --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 {
  border-radius: 8px;
  font-weight: 700;
  box-shadow: none;
}

.button-primary { box-shadow: 0 6px 18px color-mix(in srgb, var(--teal) 21%, transparent); }
.button-primary:hover { transform: translateY(-1px); }
.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; }
.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;
}

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: #071923; }
html[data-theme=dark] .button-soft { color: var(--teal); }
html[data-theme=dark] .button-light { color: #075c55; }
html[data-theme=dark] .button-quiet { color: #edf6f5; background: #102e35; border-color: #29464d; }
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; }
  .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; }
}
