:root {
  --navy: #0b3974;
  --blue: #0d5798;
  --sky: #eaf4fb;
  --sky-2: #f5f9fc;
  --ink: #172235;
  --muted: #5b6675;
  --line: #d9e3ec;
  --white: #ffffff;
  --success: #176b4d;
  --warning: #8a5a00;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(11, 57, 116, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ffbe3d; outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: .7rem 1rem;
  border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }

.topbar { background: #f4f8fb; border-bottom: 1px solid var(--line); font-size: .9rem; }
.topbar .inner, .header-inner, .footer .inner, .notice-strip .inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}
.topbar .inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.site-header { background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 2rem; }
.brand { text-decoration: none; flex: 0 0 auto; }
.logo-slot {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.05;
}
.logo-slot small { display: block; margin-top: .28rem; max-width: 210px; color: var(--muted); font-family: inherit; font-size: .62rem; font-weight: 400; letter-spacing: 0; }
nav { margin-left: auto; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; padding: 0; margin: 0; }
nav a { display: inline-block; padding: .68rem .76rem; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .91rem; font-weight: 650; }
nav a:hover, nav a[aria-current="page"] { background: var(--sky); color: var(--navy); }
.nav-toggle { display: none; margin-left: auto; min-height: 44px; min-width: 70px; border: 1px solid var(--line); background: white; border-radius: 10px; color: var(--navy); font-weight: 700; }

.notice-strip { background: var(--navy); color: var(--white); }
.notice-strip .inner { padding: .62rem 0; font-weight: 650; text-align: center; }

.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(13,87,152,.13), transparent 29rem),
    linear-gradient(135deg, #f7fbfe 0%, #eef6fb 54%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 5.4rem 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 4rem; align-items: center; }
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 800; margin-bottom: .7rem; }
h1, h2, h3 { color: #102d58; font-family: Georgia, "Times New Roman", serif; line-height: 1.16; margin-top: 0; }
h1 { font-size: clamp(2.8rem, 6vw, 5.35rem); letter-spacing: -.035em; margin-bottom: 1rem; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.65rem); margin-bottom: .7rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.lede { max-width: 760px; color: #3f4d60; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .78rem 1.05rem;
  border: 2px solid var(--navy);
  border-radius: 11px;
  background: var(--navy);
  color: white;
  text-decoration: none;
  font-weight: 760;
}
.button:hover { background: #082f62; }
.button.secondary { background: white; color: var(--navy); }
.button.secondary:hover { background: var(--sky); }
.fine { color: var(--muted); font-size: .88rem; }
.quick-card { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; }
dl { margin-bottom: 0; }
dt { color: var(--navy); font-weight: 800; margin-top: .9rem; }
dd { margin: .15rem 0 0; }

section { padding: 4.6rem 0; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.alt { background: var(--sky-2); border-top: 1px solid #e9eff5; border-bottom: 1px solid #e9eff5; }
.grid-3, .grid-4 { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 15px; padding: 1.35rem; box-shadow: 0 5px 18px rgba(22,53,84,.045); }
.card p:last-child { margin-bottom: 0; }
.task-card .icon, .icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 12px; background: var(--sky); color: var(--navy); font-weight: 850; }
.status { display: inline-block; padding: .25rem .55rem; border-radius: 999px; background: #fff3d6; color: #734d00; font-size: .73rem; font-weight: 800; }
.provider-card { padding: 0; overflow: hidden; }
.provider-photo { position: relative; background: #eef3f7; aspect-ratio: 4 / 3; overflow: hidden; }
.provider-photo img { width: 100%; height: 100%; object-fit: cover; }
.demo-badge, .illustrative-badge { position: absolute; top: .7rem; left: .7rem; z-index: 2; padding: .35rem .5rem; background: rgba(11,57,116,.92); color: white; border-radius: 7px; font-size: .67rem; letter-spacing: .08em; font-weight: 900; }
.provider-body { padding: 1.25rem; }
.portrait-disclosure { margin: 0 0 1.5rem; padding: .85rem 1rem; border-left: 4px solid var(--blue); background: var(--sky); border-radius: 0 10px 10px 0; }

.page-hero { padding: 3.6rem 0; background: linear-gradient(135deg, #f8fbfd, #edf6fb); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.35rem, 5vw, 4.2rem); margin-bottom: .6rem; }
.prose { max-width: 850px; }
.prose h2 { margin-top: 2.5rem; font-size: 1.8rem; }
.prose h3 { margin-top: 2rem; }
.prose li { margin-bottom: .55rem; }
.callout { margin: 1.3rem 0; padding: 1rem 1.1rem; border-left: 5px solid var(--blue); background: var(--sky); border-radius: 0 12px 12px 0; }
.legal-status { margin: 1rem 0 1.5rem; padding: .78rem 1rem; border: 1px solid #e8c266; border-radius: 10px; background: #fff8e7; color: #6e4c00; font-weight: 700; }

.info-band { background: linear-gradient(135deg, #0a356d, #0d5798); color: white; }
.info-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.info-band h2, .info-band p { color: white; }

.concept-board { background: #f4f7fa; }
.concept-board figure { margin: 0; }
.concept-board img { width: 100%; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.concept-board figcaption { margin-top: .8rem; color: var(--muted); font-size: .9rem; }

.footer { background: #071f42; color: #dbe8f7; padding: 3.2rem 0 0; }
.footer h2, .footer h3 { color: white; }
.footer .inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer a { color: #e9f5ff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: .45rem 0; }
.footer-bottom { width: min(1180px, calc(100% - 2rem)); margin: 2rem auto 0; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.15); color: #aabbd0; font-size: .86rem; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding: .65rem 0; }
  .nav-toggle { display: inline-block; }
  nav { display: none; flex-basis: 100%; margin: 0; }
  nav[data-open="true"] { display: block; }
  nav ul { display: grid; grid-template-columns: 1fr 1fr; padding-bottom: .55rem; }
  nav a { width: 100%; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-band .container { align-items: flex-start; flex-direction: column; }
  .footer .inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .topbar .inner { align-items: flex-start; flex-direction: column; gap: .15rem; padding: .45rem 0; }
  .site-header { position: static; }
  nav ul { grid-template-columns: 1fr; }
  .hero-inner { padding: 3rem 0; }
  h1 { font-size: 2.75rem; }
  section { padding: 3.4rem 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer .inner { grid-template-columns: 1fr; }
  .button { width: 100%; }
}

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

/* Local imagery */
.site-logo { width: 150px; height: auto; object-fit: contain; }
.hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); }
.hero-visual { min-width: 0; display: grid; gap: 1rem; }
.hero-photo-wrap, .photo-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.hero-photo { width: 100%; aspect-ratio: 16 / 8.2; object-fit: cover; }
.hero-photo-wrap figcaption, .photo-card figcaption { padding: .65rem .8rem; color: var(--muted); background: white; font-size: .8rem; }
.media-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 2.2rem; align-items: start; }
.photo-card img { width: 100%; min-height: 330px; object-fit: cover; }
@media (max-width: 900px) { .media-split { grid-template-columns: 1fr; } .site-logo { width: 135px; } }

/* Prominent patient portal treatment */
.portal-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .82rem 1.25rem;
  border: 2px solid var(--navy);
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: .96rem;
  font-weight: 850;
  letter-spacing: .01em;
  white-space: nowrap;
}
.portal-cta:hover { background: #082f62; color: #fff; }
.portal-primary {
  min-height: 58px;
  padding: .95rem 1.5rem;
  font-size: 1.08rem;
  box-shadow: 0 8px 18px rgba(11,57,116,.16);
}
.portal-card-button { width: 100%; margin-top: .2rem; }
.footer-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .62rem .9rem;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 9px;
  background: rgba(255,255,255,.09);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}
.contact-phone { font-size: 1.35rem; font-weight: 800; }
.portal-entry {
  margin: 0 0 2rem;
  padding: 1.8rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f7fbfe, #eaf4fb);
}
.portal-entry h2 { margin-bottom: .5rem; }
.portal-page-button { margin: .5rem 0 .7rem; }

@media (max-width: 900px) {
  .portal-cta { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; margin-left: 0; }
  nav { order: 4; }
}
@media (max-width: 600px) {
  .portal-cta { width: 100%; order: 3; }
  .nav-toggle { order: 2; margin-left: auto; }
  nav { order: 4; }
}


/* Contact form */
.contact-form { margin-top: 1.6rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label:not(.check-row) { display: block; margin-bottom: .38rem; color: var(--navy); font-weight: 800; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select { width: 100%; min-height: 48px; border: 1px solid #aebdcb; border-radius: 9px; background: #fff; color: var(--ink); padding: .7rem .78rem; font: inherit; }
.field input:focus, .field select:focus { border-color: var(--blue); }
.check-row { display: flex; align-items: flex-start; gap: .7rem; font-weight: 700; }
.check-row input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: .18rem; }
.contact-submit { margin-top: .25rem; }
.contact-submit:disabled { opacity: .62; cursor: wait; }
.form-status { min-height: 1.6rem; margin-top: .9rem; font-weight: 750; }
.form-status.success { color: var(--success); }
.form-status.error { color: #8a1c1c; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .field-full { grid-column: auto; } }

/* Real Google Maps embed on Contact page */
.map-card { min-height: 420px; }
.google-map { display: block; width: 100%; min-height: 390px; border: 0; background: #eef3f8; }
.map-card figcaption a { font-weight: 800; }
@media (max-width: 600px) { .map-card { min-height: 360px; } .google-map { min-height: 330px; } }

/* Responsive hardening: keep later component rules from overriding mobile layout. */
html, body { max-width: 100%; overflow-x: clip; }
h1, h2, h3, p, li, a, dd, figcaption { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .header-inner { gap: .75rem 1rem; }
  .hero-inner,
  .media-split { grid-template-columns: minmax(0, 1fr); }
  .hero-inner > *,
  .media-split > *,
  .hero-visual,
  .prose { min-width: 0; }
  .photo-card img { min-height: 0; max-height: 520px; }
}

@media (max-width: 600px) {
  .topbar .inner,
  .header-inner,
  .footer .inner,
  .notice-strip .inner,
  .hero-inner,
  .container,
  .footer-bottom { width: min(100% - 1.25rem, 1180px); }

  .header-inner { min-height: 0; padding: .6rem 0; }
  .brand { max-width: calc(100% - 86px); }
  .site-logo { width: 120px; max-height: 58px; }
  .nav-toggle { min-width: 70px; min-height: 46px; margin-left: auto; }
  nav { width: 100%; }
  nav ul { gap: .2rem; padding: .3rem 0 .5rem; }
  nav a { min-height: 46px; padding: .72rem .8rem; }
  .portal-cta { width: 100%; min-height: 50px; margin-left: 0; white-space: normal; text-align: center; }

  .hero-inner { padding: 2.6rem 0; gap: 1.5rem; }
  h1 { font-size: clamp(2.15rem, 11vw, 2.75rem); }
  h2 { font-size: clamp(1.65rem, 8vw, 2.05rem); }
  .page-hero { padding: 2.6rem 0; }
  .page-hero h1 { font-size: clamp(2.05rem, 10vw, 2.65rem); }
  .lede { font-size: 1.05rem; }
  section { padding: 2.9rem 0; }

  .hero-actions { flex-direction: column; }
  .hero-actions > *,
  .info-band .button,
  .contact-submit { width: 100%; }
  .quick-card,
  .card,
  .contact-form,
  .portal-entry { padding: 1.1rem; }
  .provider-card { padding: 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .callout { padding: .9rem; }
  .google-map { min-height: 300px; }
}

@media (max-width: 360px) {
  .topbar .inner,
  .header-inner,
  .footer .inner,
  .notice-strip .inner,
  .hero-inner,
  .container,
  .footer-bottom { width: calc(100% - 1rem); }
  .site-logo { width: 110px; }
  h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.95rem; }
}

/* Review-ready service and legal content */
.review-banner {
  display: grid;
  grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr);
  gap: .65rem 1.2rem;
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid #dcae42;
  border-radius: 12px;
  background: #fff8e7;
  color: #614300;
}
.review-banner strong { color: #513700; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.service-card { position: relative; padding-top: 1.65rem; border-top: 4px solid var(--blue); }
.service-card h2, .card-heading { font-size: 1.4rem; }
.service-kicker, .document-label {
  display: inline-block;
  margin-bottom: .65rem;
  color: var(--blue);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legal-document {
  margin: 2rem 0;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.legal-document > :first-child { margin-top: 0; }
.legal-document h2 { margin-top: .25rem; }
.legal-document h3 { margin-top: 1.8rem; }
.legal-document li { margin-bottom: .55rem; }
.notice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.notice-card { display: flex; flex-direction: column; }
.notice-card p { flex: 1 1 auto; }
.notice-card a { font-weight: 750; }
.legal-toc { columns: 2; column-gap: 2rem; }
.legal-toc li { break-inside: avoid; margin-bottom: .55rem; }
.effective-date { color: var(--muted); font-size: .92rem; font-weight: 700; }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .review-banner, .service-grid, .notice-grid { grid-template-columns: 1fr; }
  .legal-document { padding: 1.1rem; }
  .legal-toc { columns: 1; }
}
