:root {
  --midnight: #061629;
  --navy: #0a2340;
  --navy-2: #102f50;
  --teal: #1ca69c;
  --teal-action: #087b78;
  --teal-bright: #52ddd0;
  --periwinkle: #8298ff;
  --violet: #9988ff;
  --ice: #eaf7fa;
  --ivory: #fbfaf6;
  --white: #ffffff;
  --ink: #10283d;
  --slate: #5d7183;
  --line: #d8e7ea;
  --success: #16745b;
  --danger: #9a3434;
  --shadow: 0 28px 80px rgba(6, 22, 41, 0.14);
  --shadow-soft: 0 16px 44px rgba(6, 22, 41, 0.09);
  --radius: 28px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

html {
  color-scheme: light;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[contenteditable]:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--periwinkle);
  outline-offset: 3px;
}

.container {
  margin-inline: auto;
  max-width: 1240px;
  padding-inline: 24px;
  width: 100%;
}

.skip-link {
  background: var(--white);
  border-radius: 0 0 10px 10px;
  color: var(--navy);
  font-weight: 800;
  left: 1rem;
  padding: 0.8rem 1rem;
  position: fixed;
  top: -100px;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

.emergency-strip {
  background: var(--midnight);
  color: #dbe9f2;
  font-size: 0.76rem;
  position: relative;
  z-index: 92;
}

.emergency-strip__inner {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-height: 34px;
}

.emergency-strip strong {
  color: var(--teal-bright);
}

.emergency-strip a {
  color: #ffffff;
  font-weight: 750;
  margin-left: auto;
}

.site-header {
  background: rgba(251, 250, 246, 0.88);
  border-bottom: 1px solid rgba(216, 231, 234, 0.88);
  backdrop-filter: blur(22px);
  position: sticky;
  top: 0;
  transition: box-shadow 180ms ease, background 180ms ease;
  z-index: 90;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 35px rgba(6, 22, 41, 0.1);
}

.header-shell {
  align-items: center;
  display: flex;
  gap: 1.2rem;
  min-height: 88px;
}

.brand {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  height: 58px;
  object-fit: contain;
  width: 67px;
}

.brand span {
  display: grid;
  gap: 0.1rem;
}

.brand strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--slate);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-nav {
  align-items: center;
  display: flex;
  gap: clamp(0.65rem, 1.5vw, 1.2rem);
  margin-left: auto;
}

.primary-nav > a:not(.button) {
  color: #3c5266;
  font-size: 0.82rem;
  font-weight: 720;
  text-decoration: none;
}

.primary-nav > a:not(.button):hover {
  color: var(--teal);
}

.button {
  align-items: center;
  background: linear-gradient(135deg, var(--teal-action), #0b6573);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(28, 166, 156, 0.22);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 0.75rem;
  justify-content: center;
  min-height: 50px;
  padding: 0.8rem 1.15rem 0.8rem 1.3rem;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button > span + span,
.button > span[aria-hidden] {
  font-size: 1rem;
}

.button:hover {
  box-shadow: 0 18px 40px rgba(28, 166, 156, 0.3);
  transform: translateY(-2px);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(42, 102, 117, 0.23);
  box-shadow: none;
  color: var(--navy);
}

.button--secondary:hover {
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.nav-appointment {
  min-height: 45px;
  padding-block: 0.6rem;
}

.doctor-login-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(42, 102, 117, 0.24);
  border-radius: 999px;
  color: var(--navy);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 800;
  gap: 0.35rem;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.doctor-login-link:hover {
  background: #ffffff;
  border-color: rgba(42, 102, 117, 0.42);
  transform: translateY(-1px);
}

.doctor-login-link span {
  color: var(--teal);
  font-size: 0.8rem;
}

.menu-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
  display: none;
  height: 50px;
  margin-left: auto;
  padding: 0;
  position: relative;
  width: 50px;
}

.menu-toggle span {
  background: var(--navy);
  display: block;
  height: 2px;
  margin: 5px auto;
  transition: transform 160ms ease, opacity 160ms ease;
  width: 20px;
}

.menu-toggle b {
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: var(--serif);
}

.lead {
  color: #536b7d;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.75;
}

.button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-hero {
  background:
    radial-gradient(circle at var(--light-x, 68%) var(--light-y, 34%), rgba(130, 152, 255, 0.16), transparent 20rem),
    radial-gradient(circle at 74% 45%, rgba(82, 221, 208, 0.14), transparent 29rem),
    linear-gradient(140deg, #07172a 0%, #0b2440 56%, #102b49 100%);
  color: #ffffff;
  min-height: 710px;
  overflow: hidden;
  padding: 5.2rem 0 0;
  position: relative;
}

.home-hero::after {
  background: linear-gradient(180deg, transparent, rgba(6, 22, 41, 0.46));
  bottom: 0;
  content: "";
  height: 30%;
  inset-inline: 0;
  pointer-events: none;
  position: absolute;
}

.home-hero__grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.78fr);
  min-height: 515px;
  position: relative;
  z-index: 2;
}

.home-hero__copy {
  padding-bottom: 3rem;
}

.home-hero .eyebrow {
  align-items: center;
  color: #a9c3d3;
  display: flex;
  gap: 0.65rem;
}

.status-dot {
  background: var(--teal-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(82, 221, 208, 0.11), 0 0 22px rgba(82, 221, 208, 0.62);
  height: 7px;
  width: 7px;
}

.home-hero h1 {
  font-size: clamp(3.1rem, 6vw, 6.15rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
  margin: 0;
  max-width: 10ch;
}

.home-hero h1 span {
  background: linear-gradient(90deg, var(--teal-bright), #b3c0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.home-hero .lead {
  color: #bdcedb;
  margin: 1.6rem 0 2rem;
  max-width: 620px;
}

.home-hero .button--secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.request-note {
  color: #92a9b9;
  font-size: 0.78rem;
  margin-top: 1rem;
}

.doctor-visual {
  align-self: end;
  min-height: 540px;
  perspective: 1000px;
  position: relative;
}

.doctor-visual > img {
  bottom: 0;
  filter: drop-shadow(0 35px 42px rgba(0, 0, 0, 0.34));
  height: auto;
  left: 50%;
  max-height: 600px;
  object-fit: contain;
  position: absolute;
  transform: translateX(-50%);
  width: min(100%, 540px);
  z-index: 3;
}

.doctor-visual::before {
  background: radial-gradient(circle, rgba(82, 221, 208, 0.18), rgba(130, 152, 255, 0.08) 48%, transparent 70%);
  border: 1px solid rgba(133, 235, 225, 0.15);
  border-radius: 48% 52% 46% 54%;
  content: "";
  inset: 5% 2% 4%;
  position: absolute;
  transform: rotate(-5deg);
}

.doctor-orbit {
  border: 1px solid rgba(128, 183, 212, 0.2);
  border-radius: 50%;
  height: 440px;
  left: 50%;
  position: absolute;
  top: 43%;
  transform: translate(-50%, -50%) rotate(-12deg);
  width: 440px;
}

.doctor-orbit::before,
.doctor-orbit::after {
  border: 1px solid rgba(130, 152, 255, 0.16);
  border-radius: 50%;
  content: "";
  inset: 9%;
  position: absolute;
}

.doctor-orbit::after {
  inset: 20%;
}

.doctor-orbit i {
  background: var(--teal-bright);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(82, 221, 208, 0.9);
  height: 7px;
  position: absolute;
  width: 7px;
}

.doctor-orbit i:nth-child(1) { left: 8%; top: 30%; }
.doctor-orbit i:nth-child(2) { right: 16%; top: 15%; }
.doctor-orbit i:nth-child(3) { bottom: 12%; right: 20%; }

.trust-ribbon {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 94px;
  position: relative;
  z-index: 3;
}

.trust-ribbon span {
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #c6d5df;
  display: flex;
  font-size: 0.78rem;
  font-weight: 650;
  gap: 0.7rem;
  padding: 1rem 1.3rem;
}

.trust-ribbon span:last-child { border: 0; }
.trust-ribbon b { color: var(--teal-bright); font-family: var(--serif); }

.neural-field {
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  position: absolute;
}

.neural-field::before,
.neural-field::after {
  border: 1px solid rgba(130, 152, 255, 0.15);
  border-radius: 48%;
  content: "";
  height: 42rem;
  position: absolute;
  right: -10rem;
  top: -12rem;
  transform: rotate(24deg);
  width: 54rem;
}

.neural-field::after {
  height: 30rem;
  right: 10%;
  top: 8%;
  transform: rotate(-18deg);
  width: 30rem;
}

.neural-field i {
  background: #93b4d0;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(130, 152, 255, 0.8);
  height: 4px;
  position: absolute;
  width: 4px;
}

.neural-field i:nth-child(1) { left: 5%; top: 22%; }
.neural-field i:nth-child(2) { left: 16%; top: 64%; }
.neural-field i:nth-child(3) { left: 31%; top: 12%; }
.neural-field i:nth-child(4) { left: 39%; top: 73%; }
.neural-field i:nth-child(5) { left: 55%; top: 21%; }
.neural-field i:nth-child(6) { left: 61%; top: 63%; }
.neural-field i:nth-child(7) { left: 70%; top: 34%; }
.neural-field i:nth-child(8) { left: 81%; top: 17%; }
.neural-field i:nth-child(9) { left: 88%; top: 56%; }
.neural-field i:nth-child(10) { left: 93%; top: 28%; }
.neural-field i:nth-child(11) { left: 47%; top: 45%; }
.neural-field i:nth-child(12) { left: 26%; top: 42%; }
.neural-field i:nth-child(13) { left: 75%; top: 78%; }

.section {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}

.section--ivory { background: var(--ivory); }
.section--ice { background: linear-gradient(140deg, var(--ice), #f6fbfc); }
.section--contact { background: #f2f6f5; }

.section--navy {
  background:
    radial-gradient(circle at 82% 10%, rgba(130, 152, 255, 0.14), transparent 25rem),
    var(--midnight);
  color: #ffffff;
}

.section--navy .eyebrow { color: var(--teal-bright); }
.section--navy .section-heading p { color: #a9bdcb; }

.section-heading {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 760px;
}

.section-heading h2 {
  color: inherit;
  font-size: clamp(2.25rem, 4.3vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
}

.section-heading > p:last-child {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.75;
  margin: 1.2rem 0 0;
}

.intro-split {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 0.9fr 0.65fr 0.62fr;
}

.portrait-stack {
  position: relative;
}

.portrait-stack > img {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.portrait-note {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  bottom: 1rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.25rem;
  left: -2rem;
  padding: 1rem 1.1rem;
  position: absolute;
  right: 1rem;
}

.portrait-note span {
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portrait-note strong { color: var(--navy); font-family: var(--serif); }

.intro-copy p {
  color: var(--slate);
  line-height: 1.8;
  margin: 0 0 1.8rem;
}

.condition-grid,
.service-grid,
.value-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.glass-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(216, 231, 234, 0.92);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 1.45rem;
}

.section--navy .glass-card {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
}

.condition-card {
  display: flex;
  flex-direction: column;
  min-height: 255px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.condition-card:hover {
  border-color: rgba(82, 221, 208, 0.5);
  transform: translateY(-5px);
}

.condition-card h3,
.service-grid h3,
.value-grid h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 1.5rem 0 0.6rem;
}

.condition-card p,
.service-grid p,
.value-grid p {
  color: var(--slate);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

.section--navy .condition-card p { color: #9eb4c3; }

.condition-card a {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: auto;
  padding-top: 1.2rem;
  text-decoration: none;
}

.section--navy .condition-card a { color: var(--teal-bright); }

.card-number,
.service-grid article > span:first-child,
.value-grid article > span:first-child {
  color: var(--teal);
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 750;
}

.section-action {
  margin-top: 2rem;
}

.section--navy .section-action .button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.pathway-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pathway {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 285px;
  padding: 1.6rem;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.pathway:hover {
  border-color: rgba(28, 166, 156, 0.5);
  transform: translateY(-5px);
}

.pathway--primary {
  background: linear-gradient(145deg, var(--navy), #17425e);
  color: #ffffff;
}

.pathway > span:first-child {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pathway--primary > span:first-child { color: var(--teal-bright); }

.pathway h3 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 2.2rem 0 0.8rem;
}

.pathway p {
  color: var(--slate);
  font-size: 0.86rem;
  line-height: 1.7;
  margin: 0;
}

.pathway--primary p { color: #adc0cc; }
.pathway > span:last-child { color: var(--teal); font-size: 1.1rem; margin-top: auto; padding-top: 1.2rem; }

.visit-layout,
.two-col {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: 0.85fr 1fr;
}

.visit-layout > div:first-child > p,
.two-col > div > p {
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

.checklist-preview {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #d5eaed;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  display: grid;
  list-style: none;
  margin: 0;
  padding: 1.2rem;
}

.checklist-preview li {
  align-items: center;
  border-bottom: 1px solid #d9e8eb;
  display: flex;
  gap: 0.8rem;
  min-height: 58px;
}

.checklist-preview li:last-child { border: 0; }

.checklist-preview span {
  align-items: center;
  background: #dff5f1;
  border-radius: 50%;
  color: var(--success);
  display: inline-flex;
  flex: 0 0 29px;
  height: 29px;
  justify-content: center;
}

.resource-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.4fr 0.75fr;
}

.resource-feature {
  background: var(--navy);
  border-radius: 26px;
  color: #ffffff;
  display: grid;
  grid-row: span 2;
  grid-template-columns: 0.95fr 1fr;
  overflow: hidden;
}

.resource-feature img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.resource-feature > div {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.resource-feature span,
.resource-small > span {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-feature h3,
.resource-small h3 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 1.2rem 0 0.7rem;
}

.resource-feature p { color: #adc0cc; line-height: 1.7; }
.resource-feature a,
.resource-small a { color: var(--teal); font-weight: 800; margin-top: auto; text-decoration: none; }

.resource-small {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.resource-small h3 { color: var(--navy); font-size: 1.45rem; }
.resource-small p { color: var(--slate); font-size: 0.86rem; line-height: 1.65; }

.contact-preview,
.contact-layout {
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: 0.8fr 1fr;
}

.contact-lines {
  display: grid;
  gap: 0.75rem;
}

.contact-lines span {
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 760;
  padding-bottom: 0.75rem;
}

.contact-lines a {
  text-decoration: none;
}

.map-placeholder {
  align-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(82, 221, 208, 0.22), transparent 13rem),
    var(--navy);
  border-radius: 28px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 390px;
  overflow: hidden;
  padding: 2rem;
  position: relative;
  text-align: center;
}

.map-placeholder > *:not(.map-grid) { position: relative; z-index: 1; }
.map-placeholder .icon { color: var(--teal-bright); font-size: 2.5rem; }
.map-placeholder strong,
.map-placeholder h2 { font-family: var(--serif); font-size: 1.8rem; margin: 0.6rem 0; }
.map-placeholder span,
.map-placeholder p { color: #a9bdcb; }
.map-placeholder .button {
  background: linear-gradient(135deg, #149b99, #08717b);
  border: 2px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-top: 1rem;
  text-shadow: 0 1px 2px rgba(0, 25, 42, 0.28);
}

.map-placeholder .button span {
  color: #ffffff;
}

.map-placeholder .button:hover,
.map-placeholder .button:focus-visible {
  background: linear-gradient(135deg, #18aaa7, #087d88);
  box-shadow: 0 18px 42px rgba(8, 113, 123, 0.42);
  color: #ffffff;
}

.map-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  inset: 0;
  position: absolute;
  transform: perspective(600px) rotateX(58deg) scale(1.3);
}

.emergency-wrap { padding-bottom: clamp(4rem, 8vw, 8rem); }

.emergency-card {
  align-items: center;
  background: #fff7f2;
  border: 1px solid #edd9cc;
  border-radius: 22px;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  padding: 1.3rem;
}

.emergency-card .icon {
  align-items: center;
  background: #ffe4d4;
  border-radius: 50%;
  color: #8b4b2d;
  display: flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.emergency-card strong { color: #71381f; }
.emergency-card p { color: #775d50; font-size: 0.8rem; line-height: 1.55; margin: 0.25rem 0 0; }
.emergency-card > a { color: #71381f; font-size: 0.78rem; font-weight: 800; white-space: nowrap; }

.page-hero {
  background:
    radial-gradient(circle at 80% 15%, rgba(130, 152, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 10% 80%, rgba(28, 166, 156, 0.08), transparent 22rem),
    linear-gradient(145deg, #f7fbfb, #edf5f5);
  overflow: hidden;
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.page-hero__grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
}

.page-hero__grid--single {
  grid-template-columns: minmax(0, 860px);
}

.page-hero h1 {
  color: var(--navy);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
  margin: 0;
}

.page-hero .lead {
  margin: 1.5rem 0 2rem;
  max-width: 730px;
}

.breadcrumbs {
  align-items: center;
  color: #718898;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.72rem;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.breadcrumbs a { color: var(--teal); font-weight: 700; text-decoration: none; }

.media-frame {
  background: #dfecee;
  border: 1px solid #cedee3;
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.media-frame img {
  height: 100%;
  object-fit: cover;
  position: relative;
  width: 100%;
  z-index: 1;
}

.media-frame--hero {
  aspect-ratio: 4 / 5;
  max-height: 650px;
}

.media-frame--hero img { object-position: center top; }
.media-glow { background: linear-gradient(180deg, transparent 55%, rgba(6, 22, 41, 0.42)); inset: 0; position: absolute; z-index: 2; }

.search-box {
  display: grid;
  gap: 0.55rem;
  max-width: 660px;
}

.search-box span {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.search-box input {
  background: #ffffff;
  border: 1px solid #cbdde1;
  border-radius: 16px;
  min-height: 56px;
  padding: 0.8rem 1rem;
  width: 100%;
}

.search-box input:focus {
  border-color: var(--teal);
}

.filter-status {
  color: var(--slate);
  font-size: 0.78rem;
  margin: 0.8rem 0 1.5rem;
}

.empty-state {
  border: 1px dashed #bfd4d8;
  border-radius: 22px;
  color: var(--slate);
  margin-top: 1rem;
  padding: 2rem;
  text-align: center;
}

.empty-state h2 { color: var(--navy); font-size: 1.5rem; }

.article-layout,
.legal-layout,
.form-layout {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
}

.prose {
  color: #3e5669;
  font-size: 1rem;
  line-height: 1.85;
  max-width: 820px;
}

.prose h2 {
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 2.6rem 0 1rem;
}

.prose h2:first-child { margin-top: 0; }
.prose ul { display: grid; gap: 0.65rem; padding-left: 1.2rem; }
.prose li::marker { color: var(--teal); }

.notice {
  background: #eef8f7;
  border: 1px solid #c8e6e2;
  border-radius: 18px;
  color: #416563;
  margin: 2rem 0;
  padding: 1.2rem 1.3rem;
}

.notice strong { color: #166c65; }
.notice p { margin: 0.4rem 0 0; }

.mini-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-grid > div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
}

.mini-grid span { color: var(--teal); font-family: var(--serif); font-size: 0.78rem; }
.mini-grid p { color: var(--ink); font-size: 0.86rem; line-height: 1.55; margin: 0.7rem 0 0; }

.article-side {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 135px;
}

.article-side .glass-card h2 { font-family: var(--serif); }
.article-side ol { color: var(--slate); display: grid; font-size: 0.85rem; gap: 0.8rem; padding-left: 1.2rem; }
.article-side .emergency-card { grid-template-columns: auto 1fr; }
.article-side .emergency-card > a { grid-column: 2; }

.detail-list {
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}

.detail-list > div {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 0.42fr 1fr;
  padding: 1rem 0;
}

.detail-list dt { color: var(--slate); font-size: 0.78rem; font-weight: 700; }
.detail-list dd { color: var(--navy); font-weight: 720; margin: 0; }

.service-grid,
.value-grid {
  margin-bottom: 2rem;
}

.parent-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.parent-detail-grid .glass-card {
  min-height: 235px;
}

.service-grid article,
.value-grid article {
  min-height: 210px;
}

.warning-list {
  counter-reset: warning-sign;
  display: grid;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.warning-list li {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--navy);
  counter-increment: warning-sign;
  display: grid;
  font-size: 0.9rem;
  font-weight: 670;
  gap: 0.9rem;
  grid-template-columns: 38px 1fr;
  line-height: 1.5;
  padding: 0.85rem 1rem;
}

.warning-list li::before {
  align-items: center;
  background: var(--navy);
  border-radius: 11px;
  color: var(--teal-bright);
  content: counter(warning-sign, decimal-leading-zero);
  display: flex;
  font-family: var(--serif);
  font-size: 0.72rem;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.timeline {
  display: grid;
  gap: 0;
  max-width: 900px;
}

.timeline article {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 60px 1fr;
  min-height: 145px;
  position: relative;
}

.timeline article::before {
  background: #c9e3e2;
  content: "";
  height: 100%;
  left: 27px;
  position: absolute;
  top: 0;
  width: 1px;
}

.timeline article:last-child::before { height: 32px; }
.timeline article > span {
  align-items: center;
  background: var(--navy);
  border: 6px solid var(--ivory);
  border-radius: 50%;
  color: var(--teal-bright);
  display: flex;
  font-family: var(--serif);
  height: 56px;
  justify-content: center;
  position: relative;
  width: 56px;
  z-index: 1;
}

.timeline h2 { color: var(--navy); font-size: 1.6rem; margin: 0.4rem 0; }
.timeline p { color: var(--slate); line-height: 1.7; margin: 0; }

.checklist-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: clamp(1.2rem, 4vw, 2.5rem);
}

.checklist-head {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.checklist-head h2 { color: var(--navy); font-size: 2rem; margin: 0; }
.checklist-head p { color: var(--slate); }
.checklist-head > span { background: var(--ice); border-radius: 999px; color: var(--teal); font-size: 0.75rem; font-weight: 800; padding: 0.7rem 0.9rem; white-space: nowrap; }

.interactive-checklist {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.interactive-checklist label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: auto auto 1fr;
  min-height: 62px;
  padding: 0.7rem;
}

.interactive-checklist label:has(input:checked) {
  background: #eef9f5;
  border-color: #a7d9cd;
}

.interactive-checklist input { height: 20px; width: 20px; }
.interactive-checklist label > span { color: var(--teal); font-family: var(--serif); font-size: 0.72rem; }
.interactive-checklist b { font-size: 0.83rem; }

.managed-form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.2rem, 4vw, 2.3rem);
}

.form-heading span {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-heading h2 {
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  margin: 0.5rem 0;
}

.form-heading p { color: var(--slate); line-height: 1.65; margin: 0; }

.managed-form fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 1.5rem 0 0;
}

.managed-form legend {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 0 0 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .wide { grid-column: 1 / -1; }

.managed-form label,
.portal-side-panel label {
  color: var(--navy);
  display: grid;
  font-size: 0.78rem;
  font-weight: 760;
  gap: 0.45rem;
}

.managed-form input:not([type="checkbox"]):not([type="file"]),
.managed-form select,
.managed-form textarea,
.portal-side-panel input:not([type="checkbox"]) {
  background: #fbfdfd;
  border: 1px solid #c9dade;
  border-radius: 13px;
  min-height: 50px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.managed-form textarea { min-height: 110px; resize: vertical; }
.managed-form input:focus,
.managed-form select:focus,
.managed-form textarea:focus { border-color: var(--teal); }

.managed-form [aria-invalid="true"] {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(154, 52, 52, 0.1);
}

.consent {
  align-items: start;
  background: #f4f8f8;
  border-radius: 14px;
  display: grid !important;
  gap: 0.7rem !important;
  grid-template-columns: auto 1fr;
  line-height: 1.55;
  padding: 0.9rem;
}

.consent input { height: 20px; margin-top: 1px; width: 20px; }

.honeypot {
  height: 0 !important;
  left: -10000px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  width: 0 !important;
}

.form-status {
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.55;
  padding: 0.9rem 1rem;
}

.form-status.is-error { background: #fff0ef; border: 1px solid #ebc3c0; color: #812d2d; }
.form-status.is-success { background: #eaf8f1; border: 1px solid #b9dfcd; color: #155f49; }
.form-status.is-loading { background: var(--ice); border: 1px solid #c8e4e6; color: var(--navy); }

.form-side {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 135px;
}

.form-side > h2 { color: var(--navy); font-size: 2rem; margin: 0; }
.form-side > p,
.form-side > ol { color: var(--slate); line-height: 1.75; }
.form-side ol { display: grid; gap: 0.8rem; padding-left: 1.2rem; }
.form-side .emergency-card { grid-template-columns: auto 1fr; }
.form-side .emergency-card > a { grid-column: 2; }

.contact-cards {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-cards .glass-card {
  display: flex;
  flex-direction: column;
  min-height: 175px;
}

.contact-cards span { color: var(--teal); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-cards strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.28;
  margin: 1rem 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.contact-cards strong[data-config="email"] {
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  letter-spacing: -0.015em;
}
.contact-cards a { color: var(--teal); font-size: 0.8rem; font-weight: 800; margin-top: auto; text-decoration: none; }
.contact-cards small { color: var(--slate); line-height: 1.5; }
.map-placeholder--large { min-height: 100%; }

.map-embed {
  background: #dce7e5;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  min-height: 390px;
  overflow: hidden;
  position: relative;
}

.map-embed iframe {
  border: 0;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.map-embed--large {
  min-height: 100%;
}

.map-embed__button {
  bottom: 18px;
  box-shadow: 0 14px 34px rgba(0, 25, 42, 0.28);
  position: absolute;
  right: 18px;
  z-index: 2;
}

.map-embed__button span {
  color: #ffffff;
}

.location-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-grid .glass-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
}

.location-grid h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 1rem 0 0.8rem;
}

.location-grid p {
  color: var(--slate);
  line-height: 1.7;
}

.location-grid .button {
  margin-top: auto;
  width: fit-content;
}

.footer-contact > a {
  color: #c5d6df;
  line-height: 1.65;
  text-decoration-color: rgba(82, 221, 208, 0.5);
  text-underline-offset: 0.2em;
}

.blog-layout {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 300px 1fr;
}

.blog-filters {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 130px;
}

.filter-buttons {
  display: grid;
  gap: 0.4rem;
}

.filter-buttons button {
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: var(--slate);
  cursor: pointer;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.filter-buttons button:hover,
.filter-buttons button.active { background: #e8f4f3; color: var(--teal); font-weight: 800; }

.portal-callout {
  background: var(--navy);
  border-radius: 20px;
  color: #ffffff;
  padding: 1.2rem;
}

.portal-callout > span { color: var(--teal-bright); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
.portal-callout h2 { font-size: 1.5rem; margin: 1rem 0 0.5rem; }
.portal-callout p { color: #a9bdcb; font-size: 0.8rem; line-height: 1.6; }
.portal-callout .button { width: 100%; }

.blog-feed { display: grid; gap: 1rem; }
.blog-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.blog-card img { aspect-ratio: 16 / 8; border-radius: 16px; margin-bottom: 1.2rem; object-fit: cover; width: 100%; }
.blog-meta { align-items: center; color: var(--slate); display: flex; font-size: 0.72rem; justify-content: space-between; }
.blog-meta span { color: var(--teal); font-weight: 800; text-transform: uppercase; }
.blog-card h2 { color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 520; letter-spacing: -0.03em; margin: 1.2rem 0 0.7rem; }
.blog-card > p { color: var(--slate); line-height: 1.7; }
.blog-card details { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.blog-card summary { color: var(--teal); cursor: pointer; font-weight: 800; }
.article-content { color: #405769; line-height: 1.8; padding-top: 1rem; }
.article-content h2, .article-content h3 { color: var(--navy); font-family: var(--serif); }
.article-content a { color: var(--teal); }

.faq-layout { max-width: 900px; }
.faq-list { display: grid; gap: 0.65rem; margin-top: 2rem; }
.faq-list details { background: #ffffff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.faq-list summary { align-items: center; color: var(--navy); cursor: pointer; display: grid; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; gap: 0.8rem; grid-template-columns: auto 1fr auto; min-height: 70px; padding: 1rem; }
.faq-list summary::marker { display: none; }
.faq-list summary span { color: var(--teal); font-size: 0.72rem; }
.faq-list summary b { color: var(--teal); font-family: var(--sans); transition: transform 160ms ease; }
.faq-list details[open] summary b { transform: rotate(45deg); }
.faq-list details p { border-top: 1px solid var(--line); color: var(--slate); line-height: 1.75; margin: 0; padding: 1rem 1rem 1.3rem 3rem; }

.legal-side {
  background: var(--navy);
  border-radius: 22px;
  color: #ffffff;
  display: grid;
  gap: 0.8rem;
  padding: 1.4rem;
  position: sticky;
  top: 135px;
}

.legal-side span { color: var(--teal-bright); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.legal-side strong { font-family: var(--serif); font-size: 1.4rem; }
.legal-side p { color: #adc0cc; font-size: 0.82rem; line-height: 1.65; margin: 0; }

.portal-login-layout {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.45fr);
  max-width: 900px;
}

.login-form label { display: grid; gap: 0.5rem; }
.portal-safety {
  background: var(--navy);
  border-radius: 26px;
  color: #ffffff;
  padding: 2rem;
}

.portal-safety .icon { color: var(--teal-bright); font-size: 2rem; }
.portal-safety h2 { font-size: 2rem; font-weight: 520; }
.portal-safety p { color: #adc0cc; line-height: 1.7; }
.portal-safety a { color: var(--teal-bright); font-weight: 800; text-decoration: none; }

.portal-loading {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 4rem 1rem;
  text-align: center;
}

.loader {
  animation: spin 850ms linear infinite;
  border: 3px solid #d5e7e8;
  border-radius: 50%;
  border-top-color: var(--teal);
  display: block;
  height: 42px;
  width: 42px;
}

.portal-toolbar {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.portal-toolbar h2 { color: var(--navy); font-size: 2.2rem; margin: 0; }

.portal-editor-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 290px;
}

.portal-editor { gap: 1rem; }
.rich-toolbar { align-items: center; background: #edf5f5; border: 1px solid #c9dade; border-bottom: 0; border-radius: 13px 13px 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.45rem; }
.rich-toolbar button { background: #ffffff; border: 1px solid #d4e1e4; border-radius: 7px; cursor: pointer; min-height: 36px; padding: 0.35rem 0.55rem; }
.rich-editor { background: #ffffff; border: 1px solid #c9dade; border-radius: 0 0 13px 13px; color: var(--ink); font-size: 0.92rem; font-weight: 400; line-height: 1.7; min-height: 320px; padding: 1rem; }
.rich-editor:empty::before { color: #8396a4; content: "Write the article here…"; }
.portal-side-panel { display: grid; gap: 1rem; position: sticky; top: 130px; }
.portal-side-panel h2 { color: var(--navy); font-size: 1.3rem; margin-top: 0; }
.stats { display: grid; gap: 0.5rem; grid-template-columns: repeat(3, 1fr); }
.stats span { color: var(--slate); display: grid; font-size: 0.65rem; text-align: center; }
.stats strong { color: var(--navy); font-family: var(--serif); font-size: 1.5rem; }
.portal-side-panel details summary { color: var(--navy); cursor: pointer; font-weight: 800; }
.portal-side-panel details form { display: grid; gap: 0.8rem; margin-top: 1rem; }
.saved-posts { margin-top: 3rem; }
.saved-post-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.saved-post {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
}
.saved-post img { aspect-ratio: 16 / 9; border-radius: 12px; object-fit: cover; width: 100%; }
.saved-post h3 { color: var(--navy); font-family: var(--serif); font-size: 1.3rem; margin: 1rem 0 0.5rem; }
.saved-post p { color: var(--slate); font-size: 0.8rem; line-height: 1.6; }
.saved-post .button-row { margin-top: auto; }
.saved-post .button { min-height: 42px; padding: 0.55rem 0.8rem; }
.status-badge { border-radius: 999px; font-size: 0.66rem; font-weight: 800; padding: 0.35rem 0.55rem; }
.status-badge--published { background: #daf1e7; color: #18684f; }
.status-badge--draft { background: #eceef8; color: #53638f; }

.preview-dialog {
  background: #ffffff;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  max-height: 86vh;
  max-width: 780px;
  overflow: auto;
  padding: clamp(1.2rem, 4vw, 3rem);
  width: calc(100% - 2rem);
}

.preview-dialog::backdrop { background: rgba(6, 22, 41, 0.72); backdrop-filter: blur(8px); }
.preview-dialog > button { background: var(--navy); border: 0; border-radius: 50%; color: #ffffff; cursor: pointer; float: right; font-size: 1.4rem; height: 42px; width: 42px; }
.preview-dialog h2 { color: var(--navy); font-size: clamp(2rem, 5vw, 3.5rem); }
.preview-dialog > article > p { color: var(--slate); font-size: 1.05rem; line-height: 1.7; }

.success-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  max-width: 760px;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.success-panel .icon { align-items: center; background: #def4ea; border-radius: 50%; color: var(--success); display: inline-flex; font-size: 1.5rem; height: 60px; justify-content: center; width: 60px; }
.success-panel h2 { color: var(--navy); font-size: 2rem; }
.success-panel p { color: var(--slate); line-height: 1.7; }

.footer {
  background:
    radial-gradient(circle at 10% 0%, rgba(28, 166, 156, 0.16), transparent 22rem),
    var(--midnight);
  color: #ffffff;
  padding: 5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.6fr repeat(3, 0.8fr);
}

.footer h2 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 650;
  margin: 0 0 1rem;
}

.footer section:not(.footer-brand) {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.footer section a,
.footer section p {
  color: #9eb3c1;
  font-size: 0.78rem;
  line-height: 1.55;
  margin: 0;
  text-decoration: none;
}

.footer section a:hover { color: var(--teal-bright); }
.footer-brand img { height: 62px; margin-bottom: 1rem; object-fit: contain; object-position: left; width: 72px; }
.footer-brand h2 { max-width: 300px; }
.footer-brand p { color: #9eb3c1; line-height: 1.7; max-width: 350px; }

.footer-base {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #7f98aa;
  display: grid;
  font-size: 0.68rem;
  gap: 1rem;
  grid-template-columns: auto auto 1fr;
  margin-top: 3rem;
  padding-top: 1.3rem;
}

.footer-base nav { display: flex; gap: 1rem; }
.footer-base a { color: #a5b8c5; }
.footer-note { margin-left: auto; text-align: right; }

.whatsapp-float {
  align-items: center;
  background: linear-gradient(135deg, #1f9f69, #0b7650);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  bottom: 1.2rem;
  box-shadow: 0 18px 42px rgba(11, 118, 80, 0.28);
  color: #ffffff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  position: fixed;
  right: 5.3rem;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
  z-index: 80;
}

.whatsapp-float span {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: inline-flex;
  font-size: 0.72rem;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.whatsapp-float:hover {
  box-shadow: 0 22px 48px rgba(11, 118, 80, 0.36);
  transform: translateY(-2px);
}

.back-to-top {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  bottom: 1.2rem;
  box-shadow: var(--shadow-soft);
  color: #ffffff;
  cursor: pointer;
  height: 48px;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 1.2rem;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  width: 48px;
  z-index: 80;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-actions {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .brand span { display: none; }
  .pathway-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-split { grid-template-columns: 0.9fr 0.7fr; }
  .intro-copy { grid-column: 1 / -1; }
  .condition-grid,
  .service-grid,
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 96px; }
  .emergency-strip__inner span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-shell { min-height: 74px; }
  .brand img { height: 50px; width: 58px; }
  .brand span { display: grid; }
  .doctor-login-link { margin-left: auto; }
  .menu-toggle { display: block; }
  .menu-toggle { margin-left: 0; }
  .primary-nav {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    left: 16px;
    margin: 0;
    max-height: calc(100vh - 130px);
    overflow: auto;
    padding: 0.8rem;
    position: absolute;
    right: 16px;
    top: calc(100% + 0.5rem);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a:not(.button) { border-radius: 12px; font-size: 0.9rem; min-height: 48px; padding: 0.85rem; }
  .nav-appointment { margin-top: 0.4rem; width: 100%; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .home-hero { min-height: 0; padding-top: 3.2rem; }
  .home-hero__grid { gap: 0; grid-template-columns: 1fr; min-height: 0; }
  .home-hero__copy { padding-bottom: 2rem; position: relative; z-index: 4; }
  .home-hero h1 { font-size: clamp(3.2rem, 11vw, 5.3rem); max-width: 11ch; }
  .doctor-visual { justify-self: center; min-height: 530px; width: min(100%, 560px); }
  .trust-ribbon { grid-template-columns: repeat(3, 1fr); }
  .page-hero__grid { grid-template-columns: 1fr; }
  .media-frame--hero { justify-self: center; max-height: 600px; width: min(100%, 520px); }
  .article-layout,
  .legal-layout,
  .form-layout,
  .contact-preview,
  .contact-layout,
  .blog-layout,
  .portal-editor-layout { grid-template-columns: 1fr; }
  .article-side,
  .legal-side,
  .form-side,
  .blog-filters,
  .portal-side-panel { position: static; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-feature { grid-row: auto; }
  .visit-layout,
  .two-col,
  .location-grid { grid-template-columns: 1fr; }
  .portal-login-layout { grid-template-columns: 1fr; }
  .saved-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { grid-template-columns: 1fr; }
  .footer-note { margin: 0; text-align: left; }
}

@media (max-width: 640px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .container { padding-inline: 16px; }
  .emergency-strip__inner { gap: 0.45rem; min-height: 32px; }
  .emergency-strip__inner span { display: none; }
  .emergency-strip a { font-size: 0.7rem; }
  .brand strong { font-size: 0.92rem; }
  .brand small { font-size: 0.59rem; }
  .doctor-login-link { min-height: 38px; padding-inline: 0.65rem; }
  .header-shell { min-height: 70px; }
  .home-hero { padding-top: 2.4rem; }
  .home-hero h1 { font-size: clamp(3rem, 15vw, 4.2rem); line-height: 0.96; }
  .home-hero .lead { font-size: 0.98rem; line-height: 1.65; }
  .home-hero .button-row .button { width: 100%; }
  .map-embed,
  .map-embed--large { min-height: 380px; }
  .map-embed__button { bottom: 12px; left: 12px; right: 12px; width: auto; }
  .doctor-visual { min-height: 430px; }
  .doctor-visual > img { max-height: 470px; }
  .doctor-orbit { height: 330px; width: 330px; }
  .trust-ribbon { border-radius: 18px 18px 0 0; grid-template-columns: 1fr; margin-top: 0; padding-inline: 0; }
  .trust-ribbon span { font-size: 0.7rem; min-height: 62px; padding: 0.7rem; }
  .trust-ribbon span { border-bottom: 1px solid rgba(255,255,255,.1); border-right: 0; }
  .trust-ribbon span:last-child { border-bottom: 0; }
  .section { padding: 4.5rem 0; }
  .section-heading { margin-bottom: 2rem; }
  .section-heading h2 { font-size: clamp(2.25rem, 12vw, 3.2rem); }
  .intro-split { grid-template-columns: 1fr; }
  .intro-copy { grid-column: auto; }
  .portrait-note { left: 0.7rem; }
  .condition-grid,
  .service-grid,
  .value-grid,
  .pathway-grid,
  .contact-cards,
  .saved-post-grid { grid-template-columns: 1fr; }
  .condition-card { min-height: 230px; }
  .pathway { min-height: 230px; }
  .resource-feature { grid-template-columns: 1fr; }
  .resource-feature img { aspect-ratio: 16 / 10; }
  .emergency-card { align-items: start; grid-template-columns: auto 1fr; }
  .emergency-card > a { grid-column: 2; }
  .page-hero { padding: 3.5rem 0; }
  .page-hero h1 { font-size: clamp(2.75rem, 13vw, 4.3rem); }
  .page-hero .button-row .button { width: 100%; }
  .mini-grid,
  .form-grid,
  .interactive-checklist { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .detail-list > div { grid-template-columns: 1fr; }
  .checklist-head { flex-direction: column; }
  .managed-form { border-radius: 22px; padding: 1rem; }
  .timeline article { grid-template-columns: 50px 1fr; }
  .timeline article > span { height: 48px; width: 48px; }
  .timeline article::before { left: 23px; }
  .portal-toolbar { align-items: stretch; flex-direction: column; }
  .portal-toolbar .button { flex: 1; }
  .rich-toolbar { gap: 0.2rem; }
  .rich-toolbar button { font-size: 0.74rem; }
  .footer { padding-top: 3.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .whatsapp-float { display: none; }
  .back-to-top { bottom: calc(78px + env(safe-area-inset-bottom)); right: 0.8rem; }
  .mobile-actions {
    align-items: center;
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    left: 0;
    padding: 0.45rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 85;
  }
  .mobile-actions a {
    align-items: center;
    border-right: 1px solid var(--line);
    color: var(--navy);
    display: flex;
    font-size: 0.7rem;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    text-decoration: none;
  }
  .mobile-actions a:last-child { border: 0; }
}

@media (max-width: 410px) {
  .brand img { height: 44px; width: 50px; }
  .brand strong { font-size: 0.82rem; }
  .brand small { display: none; }
  .doctor-login-link { font-size: 0.66rem; padding-inline: 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .neural-field,
  .doctor-orbit { display: none; }
  .button:hover,
  .whatsapp-float:hover,
  .condition-card:hover,
  .pathway:hover { transform: none; }
}

@media print {
  .emergency-strip,
  .site-header,
  .footer,
  .mobile-actions,
  .whatsapp-float,
  .back-to-top,
  .button-row { display: none !important; }
  body { background: #ffffff; padding: 0; }
  .section { padding: 1rem 0; }
  .checklist-card { border: 0; box-shadow: none; }
}
