/* ============================================================
   Sunil Thummala, MD — Neurology Practice Site
   Design tokens
   ============================================================ */

:root {
  /* Blues drawn from the practice logo */
  --navy-950: #0a2a45;
  --navy-800: #0f3a5f;
  --navy-700: #14507f;
  --blue-500: #2f8fcb;
  --blue-300: #7fc0e8;
  --mist-50: #f5f9fc;
  --mist-100: #e9f1f7;
  --white: #ffffff;
  --ink-900: #17232e;
  --ink-600: #47586a;

  /* Lime reserved strictly for interactive elements */
  --lime-500: #c6d94a;
  --lime-600: #aec334;
  --lime-ink: #2c3410;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(10, 42, 69, 0.08);
  --shadow-md: 0 12px 32px rgba(10, 42, 69, 0.12);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--mist-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy-700);
  text-decoration-color: var(--lime-500);
  text-decoration-thickness: 2px;
}
a:hover { color: var(--blue-500); }

:focus-visible {
  outline: 3px solid var(--lime-500);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-950);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1vw + 0.9rem, 1.5rem); }

p { margin: 0 0 1em; color: var(--ink-600); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-500);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--lime-500);
  display: inline-block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
section.tight { padding: 44px 0; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--lime-500);
  color: var(--lime-ink);
}
.btn-primary:hover {
  background: var(--lime-600);
  color: var(--lime-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--lime-500);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-navy {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-700);
}
.btn-outline-navy:hover {
  border-color: var(--lime-600);
  background: var(--mist-100);
  color: var(--navy-950);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ Header / Nav ============ */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 3px 14px rgba(10, 42, 69, 0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 24px;
}
.nav-top {
  background: var(--white);
  border-bottom: 1px solid var(--mist-100);
}
.nav-top .nav-wrap {
  min-height: 128px;
  gap: 30px;
  padding-block: 12px;
}
.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-950);
}
.brand img {
  height: 112px;
  width: 112px;
  flex: 0 0 112px;
  border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-text .practice-name {
  margin-bottom: 3px;
  color: var(--blue-500);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.65vw, 1.42rem);
  font-weight: 700;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 1.05vw, 0.98rem);
  white-space: nowrap;
}
.brand-text span { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-500); font-weight: 700; }

.practice-meta {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}
.practice-meta > span,
.practice-meta > a {
  display: flex;
  flex-direction: column;
  color: var(--navy-950);
  line-height: 1.3;
  text-decoration: none;
}
.practice-meta small {
  color: var(--ink-600);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.practice-meta strong { font-size: 0.82rem; }
.practice-meta a:hover strong { color: var(--blue-500); }

.nav-rail {
  position: sticky;
  top: 0;
  z-index: 55;
  background: var(--navy-950);
}
.nav-rail .nav-wrap { min-height: 44px; }
.main-nav { display: flex; align-items: stretch; gap: 34px; align-self: stretch; }
.main-nav a {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { border-bottom-color: var(--lime-500); color: var(--white); }

.nav-contact {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  background: var(--lime-500);
  color: var(--lime-ink);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
  transition: background 0.2s ease;
}
.nav-contact:hover { background: var(--lime-600); }
.nav-toggle {
  display: none;
  flex-shrink: 0;
  background: var(--mist-50);
  border: 1px solid var(--mist-100);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 9px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--navy-950); }

@media (max-width: 880px) {
  .nav-top .nav-wrap { min-height: 92px; gap: 12px; padding: 10px 18px; }
  .brand { flex: 1; }
  .brand img { height: 70px; width: 70px; flex-basis: 70px; }
  .brand-text .practice-name {
    margin-bottom: 2px;
    font-size: 1rem;
  }
  .brand-text strong {
    font-size: 0.78rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .brand-text span { font-size: 0.62rem; }
  .practice-meta { display: none; }
  .nav-rail { position: relative; }
  .nav-rail .nav-wrap {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 18px 18px;
    background: var(--navy-950);
    box-shadow: var(--shadow-md);
  }
  .nav-rail:has(.main-nav.open) .nav-wrap { display: block; }
  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    min-height: 48px;
    padding-inline: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--lime-500); }
  .nav-contact {
    min-height: 48px;
    justify-content: center;
    margin-top: 14px;
    border-radius: var(--radius-sm);
  }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 520px) {
  .brand { gap: 10px; }
  .brand img { height: 64px; width: 64px; flex-basis: 64px; }
  .brand-text .practice-name { font-size: 0.9rem; }
  .brand-text strong { font-size: 0.7rem; }
  .brand-text span { font-size: 0.56rem; }
}

@media (max-width: 440px) {
  .brand-text > span:last-child { display: none; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-800) 62%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 46px 0 54px;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 3.5vw, 4rem);
  line-height: 0.98;
  max-width: 27ch;
  margin-bottom: 0.28em;
}
.hero .eyebrow { color: var(--blue-300); }
.hero .eyebrow::before { background: var(--lime-500); }
.hero p.lede { color: #cfe1ef; font-size: 1rem; max-width: 105ch; }
.hero-disclaimer {
  color: #9fc1d7;
  font-size: 0.76rem;
  line-height: 1.55;
  max-width: 105ch;
  margin: 0;
}
.hero .btn-row { margin-top: 18px; flex-wrap: nowrap; }
.hero-trust {
  display: flex; flex-wrap: nowrap; gap: 10px 22px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.hero-trust span {
  font-size: 0.85rem; color: #b9cfe0; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.hero-trust span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime-500); flex-shrink: 0;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.hero-carousel {
  position: relative;
  width: 100%;
  min-width: 0;
}

.hero-carousel-window {
  overflow: hidden;
  width: 100%;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hero-carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: heroCarouselScroll 34s linear infinite;
  will-change: transform;
}

.hero-carousel:hover .hero-carousel-track { animation-play-state: paused; }

.hero-carousel-card {
  position: relative;
  flex: 0 0 clamp(190px, 18vw, 320px);
  width: clamp(190px, 18vw, 320px);
  height: clamp(190px, 18vw, 320px);
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 22px 54px rgba(0, 16, 30, 0.34);
}

.hero-carousel-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@keyframes heroCarouselScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Neural pathway signature motif */
.pathway-bg {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0.35; pointer-events: none;
}
.pathway-bg svg { width: 100%; height: 100%; }
.pathway-line { fill: none; stroke: var(--blue-500); stroke-width: 1.4; opacity: 0.55; }
.pathway-node { fill: var(--lime-500); }
.pathway-node.dim { fill: var(--blue-300); opacity: 0.7; }

@keyframes pulseNode {
  0%, 100% { opacity: 0.35; r: 3; }
  50% { opacity: 1; r: 5; }
}
.pathway-node.pulse { animation: pulseNode 3.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .pathway-node.pulse { animation: none; }
  .hero-carousel-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ Divider motif between sections ============ */
.pathway-divider { display: flex; justify-content: center; padding: 6px 0 0; }
.pathway-divider svg { width: 220px; height: 28px; }

/* ============ Cards ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-art { order: initial; }
  .hero {
    padding: 28px 0 42px;
  }
  .hero h1 {
    font-size: clamp(2.05rem, 8.6vw, 2.85rem);
    line-height: 1.02;
    max-width: 100%;
  }
  .hero p.lede {
    font-size: 0.98rem;
    max-width: 100%;
  }
  .hero .btn-row {
    gap: 12px;
    flex-wrap: wrap;
  }
  .hero-carousel-window {
    padding-top: 0;
  }
  .hero-carousel-card {
    flex-basis: 160px;
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.45rem);
  }
  .hero p.lede {
    font-size: 0.96rem;
  }
  .hero-trust {
    gap: 10px 16px;
    flex-wrap: wrap;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--mist-100);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.4em; }
.card .tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--navy-700);
  background: var(--mist-100);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 12px;
}

.condition-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.condition-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.97rem; color: var(--ink-900);
}
.condition-list li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime-500); margin-top: 7px; flex-shrink: 0;
}

/* ============ Panels ============ */
.panel-navy {
  background: var(--navy-950); color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.panel-navy h2, .panel-navy h3 { color: var(--white); }
.panel-navy p { color: #cfe1ef; }
.panel-mist { background: var(--mist-100); border-radius: var(--radius-lg); padding: 48px; }

/* ============ Two-col section ============ */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* ============ Office team ============ */
.office-team {
  padding-top: 32px;
  padding-bottom: 52px;
}
.office-team__heading {
  margin-bottom: 22px;
  text-align: center;
}
.office-team__heading h2 { margin-bottom: 0; }
.office-team__figure { margin: 0; }
.office-team__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #dbe7ef;
  border-radius: var(--radius-lg);
  background: var(--mist-100);
  box-shadow: var(--shadow-md);
}
.office-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.office-team__caption {
  padding: 20px 16px 0;
  text-align: center;
  color: var(--ink-600);
}
.office-team__caption > span { display: block; }
.office-team__caption > span:first-child {
  margin-bottom: 5px;
  font-size: 0.9rem;
}
.office-team__names {
  color: var(--navy-950);
  font-weight: 700;
}
.office-team__names span {
  padding: 0 7px;
  color: var(--blue-500);
}
.office-team__bios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.office-team__bio {
  padding: 28px;
  border: 1px solid #dbe7ef;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.office-team__bio h3 {
  margin-bottom: 5px;
}
.office-team__role {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mist-100);
  color: var(--navy-700);
  font-size: 0.92rem;
  font-weight: 700;
}
.office-team__bio p:last-child { margin: 0; }
@media (max-width: 700px) {
  .office-team {
    padding-top: 20px;
    padding-bottom: 40px;
  }
  .office-team__heading {
    margin-bottom: 16px;
    text-align: left;
  }
  .office-team__photo {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
  }
  .office-team__caption {
    padding-top: 16px;
    text-align: left;
  }
  .office-team__names span { padding: 0 4px; }
  .office-team__bios {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }
  .office-team__bio { padding: 22px; }
}

/* ============ CTA banner ============ */
.cta-banner {
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: #cfe1ef; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-banner .btn-row { justify-content: center; }

/* ============ Locations / Contact ============ */
.location-card {
  background: var(--white); border: 1px solid var(--mist-100);
  border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm);
}
.location-card h3 { color: var(--navy-950); }
.location-card .addr { font-style: normal; color: var(--ink-600); margin-bottom: 14px; }
.location-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 0.94rem; margin: 0; }
.location-card dt { font-weight: 700; color: var(--navy-700); }
.location-card dd { margin: 0; color: var(--ink-900); }
.location-card iframe { width: 100%; border: 0; border-radius: var(--radius-sm); margin-top: 16px; }
.contact-feature {
  position: relative;
  margin: 28px 0 18px;
  padding: 80px 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(127,192,232,0.24), transparent 28%),
    linear-gradient(135deg, var(--navy-950), var(--navy-700));
  overflow: hidden;
}
.contact-feature::after {
  content: ""; position: absolute; width: 340px; height: 340px; right: -140px; bottom: -190px;
  border: 1px solid rgba(198,217,74,0.32); border-radius: 50%;
}
.contact-layout {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  gap: 62px; align-items: center;
}
.contact-intro h2 { color: var(--white); font-size: clamp(2rem, 3.2vw, 3rem); }
.contact-intro .eyebrow { color: var(--blue-300); }
.contact-lede { color: #d7e6f1; font-size: 1.08rem; max-width: 45ch; }
.contact-promise {
  display: grid; gap: 2px; margin: 26px 0; padding: 20px 22px;
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
}
.contact-promise strong { color: var(--blue-300); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.contact-promise a { color: var(--white); font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.contact-promise span { color: #b9cfe0; font-size: 0.85rem; }
.contact-form {
  background: var(--white); border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-lg); padding: 38px; box-shadow: 0 24px 70px rgba(4,24,39,0.28);
}
.form-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 24px; }
.form-heading h3 { flex: 1 1 280px; font-size: 1.75rem; margin: 0; }
.form-heading p { margin: 0; font-size: 0.78rem; }
.form-step {
  width: 100%; color: var(--blue-500); text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 800;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.form-field { display: grid; gap: 7px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { color: var(--navy-800); font-weight: 700; font-size: 0.9rem; }
.form-field label span { color: var(--ink-600); font-weight: 500; }
.form-field label .required-label { color: #a84032; font-weight: 800; }
.form-field small { color: var(--ink-600); font-size: 0.75rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid #aebfcd; border-radius: 10px;
  background: #fbfdff; color: var(--ink-900); font: inherit; padding: 13px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.form-field textarea {
  resize: vertical; min-height: 190px; line-height: 1.55;
  background: linear-gradient(#fff, #fff) padding-box, var(--mist-100);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #8192a1; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--blue-500); outline: none; background: var(--white);
  box-shadow: 0 0 0 4px rgba(47,143,203,0.14);
}
.message-field { padding: 16px; background: var(--mist-50); border: 1px solid var(--mist-100); border-radius: var(--radius-md); }
.message-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-600); font-size: 0.73rem; }
.privacy-note, .care-note {
  border-left: 4px solid var(--lime-500); background: var(--mist-100);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 16px;
  color: var(--ink-600); font-size: 0.9rem;
}
.contact-feature .privacy-note {
  background: rgba(255,255,255,0.1); border-left-color: var(--lime-500);
  color: #d7e6f1; max-width: 48ch;
}
.form-submit { width: 100%; justify-content: center; font-size: 1rem; }
.form-submit:disabled { cursor: wait; opacity: 0.68; }
.submit-help { text-align: center; margin: 10px 0 0; font-size: 0.76rem; }
.care-note { margin-top: 22px; }
.care-note-dark { background: rgba(255,255,255,0.1); color: #d9e7f1 !important; }
.form-status { min-height: 1.5em; margin: 12px 0 0; font-size: 0.9rem; }
.form-status.is-success { color: #247044; font-weight: 700; }
.form-status.is-error { color: #a84032; font-weight: 700; }
.form-trap {
  position: absolute !important; left: -10000px !important; top: auto !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
}
@media (max-width: 880px) {
  .contact-layout, .form-grid { grid-template-columns: 1fr; }
  .form-field-full { grid-column: auto; }
  .contact-form { padding: 24px; }
  .contact-feature { padding: 56px 0; }
}

/* ============ Contact page refined layout ============ */
.contact-page { background: #f6f9fc; }
.contact-hero {
  background: linear-gradient(135deg, rgba(10,42,69,0.98), rgba(20,80,127,0.96)), var(--navy-950);
  color: var(--white);
  padding: 62px 0 54px;
  overflow: hidden;
  position: relative;
}
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(127,192,232,0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(127,192,232,0.07) 1px, transparent 1px);
  background-size: 74px 74px;
  opacity: 0.5;
}
.contact-hero .container { position: relative; z-index: 1; }
.contact-hero h1 { color: var(--white); font-size: clamp(2.4rem, 4vw, 4rem); max-width: 740px; }
.contact-hero p { color: #d7e8f4; max-width: 700px; font-size: 1.08rem; }
.contact-command { margin-top: -20px; position: relative; z-index: 4; }
.contact-shell {
  background: var(--white);
  border: 1px solid #dfeaf2;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(10,42,69,0.16);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
}
.contact-rail {
  background: #0b304e;
  color: var(--white);
  padding: 34px;
  display: grid;
  align-content: start;
  gap: 24px;
}
.contact-rail h2,
.contact-rail h3 { color: var(--white); }
.contact-rail p { color: #c9ddeb; }
.contact-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: #d9ea74;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--lime-500);
  box-shadow: 0 0 0 5px rgba(198,217,74,0.14);
}
.contact-call {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.07);
}
.contact-call span {
  color: #9fc6dd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-call a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 650;
  text-decoration: none;
}
.contact-facts { display: grid; gap: 12px; margin: 0; }
.contact-facts div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 12px;
}
.contact-facts dt { color: #9fc6dd; font-size: 0.78rem; font-weight: 800; }
.contact-facts dd { margin: 0; color: var(--white); }
.contact-facts a { color: var(--white); }
.contact-privacy {
  margin: 0;
  color: #d7e8f4;
  font-size: 0.86rem;
  border-left: 3px solid var(--lime-500);
  padding-left: 14px;
}
.contact-form-zone { padding: 34px; }
.contact-form-zone .contact-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.contact-form-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  border-bottom: 1px solid #e4edf4;
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.contact-form-top h2 { font-size: 1.7rem; margin-bottom: 4px; }
.contact-form-top p { margin: 0; max-width: 48ch; }
.contact-required {
  color: #8b3d34;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  padding-top: 4px;
}
.contact-form-zone .form-grid { align-items: start; }
.contact-form-zone .form-field { min-height: 112px; align-content: start; }
.contact-form-zone .form-field input,
.contact-form-zone .form-field select { min-height: 54px; }
.contact-form-zone .form-field small,
.contact-field-note { min-height: 18px; display: block; }
.contact-form-zone .message-field { min-height: 0; }
.contact-locations { padding: 52px 0 28px; }
.contact-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 20px;
}
.contact-section-title p { max-width: 56ch; margin: 0; }
.contact-location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.contact-location {
  background: var(--white);
  border: 1px solid #e1ebf2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10,42,69,0.08);
}
.contact-location-main { padding: 24px; }
.contact-location-main h3 { margin-bottom: 6px; }
.contact-location-main address { color: var(--ink-600); font-style: normal; }
.contact-location-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact-chip {
  border: 1px solid #d8e5ef;
  background: #f8fbfd;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-700);
  text-decoration: none;
}
.contact-location iframe { display: block; width: 100%; height: 190px; border: 0; }
.contact-online-band { padding: 34px 0 66px; }
.contact-online {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--mist-100);
  border: 1px solid #dce8f1;
  border-radius: 14px;
  padding: 28px;
}
.contact-online p { margin: 0; }
@media (max-width: 920px) {
  .contact-shell,
  .contact-location-grid,
  .contact-online { grid-template-columns: 1fr; }
  .contact-form-top,
  .contact-section-title { display: block; }
  .contact-required { display: block; margin-top: 10px; }
}

/* ============ Footer ============ */
.site-footer {
  background: var(--navy-950); color: #b9cfe0; padding: 32px 0 18px; margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: minmax(300px, 1.35fr) minmax(190px, 0.8fr) minmax(250px, 1fr); gap: clamp(40px, 7vw, 90px);
  padding-bottom: 0;
}
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.site-footer a { color: #b9cfe0; text-decoration: none; }
.site-footer a:hover { color: var(--lime-500); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-brand img { height: 52px; width: 52px; flex: 0 0 52px; border-radius: 50%; }
.footer-brand strong { font-family: var(--font-display); color: var(--white); font-size: 0.98rem; line-height: 1.3; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 0.88rem; }
.footer-legal-inline {
  display: flex; flex-direction: column; gap: 2px;
  color: #7f9bb3; font-size: 0.68rem; line-height: 1.5;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 28px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid > div:first-child { grid-column: auto; }
}

/* ============ Page hero (interior pages) ============ */
.page-hero {
  background: linear-gradient(135deg, rgba(10,42,69,0.98), rgba(20,80,127,0.96)), var(--navy-950);
  color: var(--white);
  padding: 62px 0 54px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(127,192,232,0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(127,192,232,0.07) 1px, transparent 1px);
  background-size: 74px 74px;
  opacity: 0.5;
}
.page-hero .pathway-bg { display: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 4vw, 4rem);
  max-width: 740px;
  margin-bottom: 0.45em;
}
.page-hero p { color: #d7e8f4; max-width: 700px; font-size: 1.08rem; }
.breadcrumb { font-size: 0.85rem; color: var(--blue-300); margin-bottom: 14px; }
.breadcrumb a { color: var(--blue-300); }

/* ============ Utility ============ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge {
  font-size: 0.78rem; font-weight: 700; color: var(--navy-700);
  background: var(--mist-100); border-radius: 999px; padding: 6px 14px;
}
