/* ==========================================================================
   AIM - Autism Integrative Medicine — Shared Stylesheet
   ========================================================================== */

:root {
  --navy: #163A5C;
  --navy-dark: #0E2439;
  --navy-soft: #1F4C74;
  --gold: #EFA91C;
  --gold-dark: #C98A0D;
  --gold-light: #FBD98A;
  --cream: #FAF6EE;
  --cream-deep: #F1E9D8;
  --white: #FFFFFF;
  --header-yellow: #F8F28E;
  --header-blue: #3690DB;
  --header-green: #429783;
  --text: #262B33;
  --text-muted: #5C6572;
  --border: #E4DCC8;
  --shadow: 0 10px 30px rgba(14, 36, 57, 0.10);
  --shadow-sm: 0 4px 14px rgba(14, 36, 57, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.22;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text); }
a { color: var(--navy-soft); text-decoration: none; }
a:hover { color: var(--gold-dark); }

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--badge-offset { padding-top: 110px; }
@media (max-width: 700px) { .section--badge-offset { padding-top: 90px; } }
.section--cream { background: var(--cream-deep); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #D9E2EA; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(239, 169, 28, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header { background: var(--header-yellow); }

.header-top {
  background: var(--header-yellow);
  padding: 8px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}
.brand-center {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex-shrink: 1;
}
.brand-logo { height: 64px; width: auto; max-width: 100%; flex-shrink: 1; }

/* ---------- Header utility actions (Call / Get Started) ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.btn-call,
.btn-getstarted {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-call {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-call .icon-sm { width: 14px; height: 14px; stroke: var(--navy); flex-shrink: 0; }
.btn-call:hover { background: var(--navy); color: var(--white); }
.btn-call:hover .icon-sm { stroke: var(--white); }
.btn-getstarted {
  background: var(--navy);
  border: 2px solid var(--navy);
  color: var(--white);
}
.btn-getstarted:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--gold-light); transform: translateY(-1px); }

@media (max-width: 1080px) {
  .btn-call span { display: none; }
  .btn-call { padding: 9px 12px; }
}
@media (max-width: 980px) {
  .header-top { flex-wrap: wrap; }
  .header-actions { width: 100%; justify-content: center; }
  .btn-call span { display: inline; }
  .btn-call { padding: 9px 16px; }
}
@media (max-width: 560px) {
  .btn-call span { display: none; }
  .btn-call { padding: 11px 14px; }
  .header-actions { gap: 10px; }
}
.brand-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.625rem;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.header-nav-row {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-blue);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(14, 36, 57, 0.16);
}
.nav-wrap {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 14px 14px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.is-active { background: var(--navy-dark); color: var(--gold-light); }
.nav-cta { margin-left: 6px; }
.nav-cta a { background: var(--navy-dark); color: var(--white); font-weight: 700; }
.nav-cta a:hover { background: var(--navy); color: var(--gold-light); }

.nav-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 980px) {
  .header-top { padding: 16px 24px 4px; }
  .brand-center { gap: 14px; }
  .brand-logo { height: 73px; }
  .brand-title { font-size: 1.875rem; }
  .nav-wrap { justify-content: flex-start; padding: 11px 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 0;
    top: var(--mobile-header-h, 128px);
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    justify-content: flex-start;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; color: var(--navy-dark); }
  .nav-links a:hover, .nav-links a.is-active { background: var(--navy); color: var(--white); }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-cta a { color: var(--white); }
}
@media (max-width: 560px) {
  .brand-center { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .brand-logo { height: auto; width: min(82vw, 330px); }
  .brand-title { font-size: 1.4375rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,169,28,0.28) 0%, rgba(239,169,28,0) 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.15rem; color: #DCE6EF; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid rgba(255,255,255,0.12);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.hero--page { padding: 64px 0 60px; }
.hero--page .hero-grid { grid-template-columns: 1fr; text-align: center; }
.hero--page .lead { max-width: 640px; margin: 0 auto; }
.hero--page .hero-actions { justify-content: center; }
.breadcrumb { font-size: 0.85rem; color: var(--gold-light); margin-bottom: 14px; }
.breadcrumb a { color: var(--gold-light); }

.hero--centered h1 { text-align: center; }
.hero--centered .lead { text-align: center; margin-left: auto; margin-right: auto; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .hero-actions { justify-content: center; }
}

/* ---------- Hero: text over photo ---------- */
.hero--photo {
  background: var(--navy-dark) center center / cover no-repeat;
  padding: 128px 0 108px;
}
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,36,57,0.78) 0%, rgba(14,36,57,0.55) 45%, rgba(14,36,57,0.88) 100%);
}
.hero--photo::after { content: none; }
.hero--photo h1,
.hero--photo p.lead {
  text-shadow: 0 2px 16px rgba(9,22,36,0.45);
}
.hero--photo .eyebrow {
  box-shadow: 0 2px 16px rgba(9,22,36,0.3);
}
@media (max-width: 700px) {
  .hero--photo { padding: 96px 0 80px; }
}
/* Home hero: centered headline, photo framed on the faces */
.hero--home {
  background-position: center 30%;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 64px;
}
.hero--home .container { width: 100%; }
.hero--home h1 { margin-bottom: 0; }
@media (max-width: 700px) {
  .hero--home { min-height: 380px; padding-bottom: 40px; }
}
.home-lead {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.hero--home h1 { text-align: center; }
.hero--home::before {
  background: linear-gradient(180deg, rgba(14,36,57,0.42) 0%, rgba(14,36,57,0.22) 45%, rgba(14,36,57,0.50) 100%);
}
.hero--home h1, .hero--home p.lead { text-shadow: 0 2px 18px rgba(9,22,36,0.7), 0 1px 3px rgba(9,22,36,0.5); }
.hero--home p.lead { color: #FFFFFF; }

/* ---------- Hero floating badge (overlaps hero's bottom edge) ---------- */
.hero-badge-wrap { position: relative; height: 0; }
.hero-badge {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--navy-dark);
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .hero-badge { font-size: 0.82rem; padding: 12px 18px; white-space: normal; width: calc(100% - 48px); }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -46px;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 20px 18px;
  text-align: center;
}
.stat-card .num { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--navy); }
.stat-card .label { font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 760px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
}

/* ---------- Services infographic ---------- */
.services-hub {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  justify-content: center;
  gap: 22px;
  align-items: stretch;
  position: relative;
}
.service-node {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 18px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.service-node:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-node .icon-badge { margin-left: auto; margin-right: auto; }
.service-node h3 { font-size: 1.03rem; margin-bottom: 8px; }
.service-node p { font-size: 0.88rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 14px; }
.service-node .node-link { font-size: 0.85rem; font-weight: 600; color: var(--navy-soft); }
.service-node .node-link:hover { color: var(--gold-dark); }

@media (max-width: 980px) {
  .services-hub { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .services-hub { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .services-hub { grid-template-columns: 1fr; }
}

/* ---------- Icon badge (reused in service nodes, info cards, pay cards) ---------- */
.icon-badge {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-badge svg {
  width: 30px;
  height: 30px;
  stroke: var(--gold-light);
  flex-shrink: 0;
}

/* ---------- Generic content cards / grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 { margin-bottom: 10px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card p + .btn { margin-top: 14px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li svg { flex-shrink: 0; width: 20px; height: 20px; stroke: var(--gold-dark); margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-dark); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--text-muted); }

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
  max-width: 820px;
  margin: 0 auto;
  background: var(--navy-dark);
}
.carousel-track { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(.65,.05,.36,1); }
.carousel-slide { min-width: 100%; height: 100%; position: relative; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.carousel-slide.is-contain img { object-fit: contain; object-position: center center; }
.carousel-slide .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 32px;
  background: linear-gradient(0deg, rgba(14,36,57,0.82) 0%, rgba(14,36,57,0) 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--navy);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background 0.15s ease;
}
.carousel-arrow:hover { background: var(--white); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }
.carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,0.55); cursor: pointer;
}
.carousel-dots button.is-active { background: var(--gold); width: 22px; border-radius: 6px; }
@media (max-width: 700px) {
  .carousel { aspect-ratio: 4/5; }
  .carousel-slide .caption { font-size: 0.98rem; padding: 20px; }
}

/* ---------- Contact form ---------- */
.contact-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-panel .contact-info h3 { margin-bottom: 12px; }
.contact-info ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.contact-info li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: 0.95rem; }
.contact-info li svg { width: 20px; height: 20px; stroke: var(--gold-dark); flex-shrink: 0; margin-top: 2px; }

.form-grid { display: grid; gap: 16px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--cream);
  color: var(--text);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-status { font-size: 0.92rem; margin-top: 10px; display: none; padding: 10px 14px; border-radius: var(--radius-sm); }
.form-status.is-success { display: block; background: #E7F4E8; color: #256B33; }
.form-status.is-error { display: block; background: #FBEAEA; color: #A03636; }

@media (max-width: 860px) {
  .contact-panel { grid-template-columns: 1fr; padding: 28px; }
}

/* ---------- Home: Contact / Payment link tiles ---------- */
.cta-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.cta-tile {
  display: block;
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22, 58, 92, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cta-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cta-tile h3 { margin-bottom: 8px; }
.cta-tile p { color: var(--text-muted); margin-bottom: 16px; }
.cta-tile .icon-badge { margin: 0 auto 18px; }
.cta-tile .node-link { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
@media (max-width: 700px) {
  .cta-tiles { grid-template-columns: 1fr; }
}

/* ---------- Home hero-lite (headline under carousel) ---------- */
.home-intro { text-align: center; max-width: 820px; margin: 0 auto; }
.home-intro h1 { margin-bottom: 18px; }
.home-intro p.lead-dark { font-size: 1.15rem; color: var(--text-muted); font-weight: 400; }

/* ---------- Payments ---------- */
.pay-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  border: 1px solid var(--border);
}
.pay-card h3 { margin-bottom: 6px; }
.pay-card .price { font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); font-weight: 700; margin: 10px 0 18px; }
.pay-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pay-steps li { counter-increment: step; position: relative; padding-left: 40px; color: var(--text-muted); }
.pay-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: var(--navy-dark);
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Callout banner ---------- */
.callout {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
}
.callout h2 { color: var(--white); }
.callout p { color: #D9E2EA; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #C7D2DB; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }
.footer-col h4 { color: var(--white); font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #C7D2DB; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8FA0AF;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page-level content spacing helpers ---------- */
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.small-print { font-size: 0.8rem; color: var(--text-muted); }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: 8px; z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Service-page carousel (top of page) ---------- */
.carousel--page { max-width: 1040px; }
.carousel--page .carousel-slide img { object-position: center center; }
.carousel--page .carousel-slide .caption {
  text-align: center;
  padding: 60px 32px 44px;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(9,22,36,0.5);
}
.carousel--slow .carousel-track { transition-duration: 0.9s; transition-timing-function: ease-in-out; }
.page-intro {
  max-width: 860px;
  margin: 36px auto 0;
  text-align: center;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.65;
  color: var(--text);
}
@media (max-width: 700px) {
  .carousel--page { aspect-ratio: 4/3; }
  .carousel--page .carousel-slide .caption { padding: 40px 18px 36px; }
}
.page-title {
  text-align: center;
  max-width: 900px;
  margin: 40px auto 0;
}
.page-intro--after-title { margin-top: 14px; }
.carousel--page .carousel-slide.is-top img { object-position: center 16%; }

/* ---------- Careers ---------- */
.job-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.job-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.job-card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.job-card-body { padding: 28px; display: flex; flex-direction: column; flex-grow: 1; }
.job-card-body h3 { font-size: 1.35rem; margin-bottom: 12px; }
.job-card-body h3 a { color: var(--navy); }
.job-card-body p { color: var(--text-muted); flex-grow: 1; }
.job-card-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn-navy-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-navy-outline:hover { background: var(--navy); color: var(--white); }
.job-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.job-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--navy);
  background: #EAF3FB; border-radius: 999px; padding: 6px 12px;
}
.job-chip svg, .icon-sm { width: 15px; height: 15px; flex-shrink: 0; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (max-width: 860px) {
  .job-cards, .card-grid--3 { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip img:last-child { display: none; }
}

.job-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white); padding: 48px 0 44px;
}
.job-hero h1 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 860px; }
.job-hero .job-chip { background: rgba(255,255,255,0.14); color: var(--white); }
.job-hero .breadcrumb a { color: var(--gold-light); }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.job-main h2 { font-size: 1.45rem; margin: 1.6em 0 0.6em; }
.job-main h2:first-child { margin-top: 0; }
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.job-list li { display: flex; gap: 12px; align-items: flex-start; }
.job-list li svg { width: 20px; height: 20px; stroke: var(--gold-dark); flex-shrink: 0; margin-top: 3px; }
.job-aside { position: sticky; top: 110px; }
.job-glance { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; }
.job-glance dl { margin: 0 0 20px; }
.job-glance dt { font-size: 0.78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); margin-top: 14px; }
.job-glance dd { margin: 4px 0 0; color: var(--text); font-size: 0.95rem; }
@media (max-width: 900px) {
  .job-layout { grid-template-columns: 1fr; }
  .job-aside { position: static; order: -1; }
}

.apply-panel { max-width: 820px; margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.apply-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.apply-form input[type=file] { padding: 10px; background: var(--cream); }
.req { color: #C0392B; }
.hint { font-weight: 400; color: var(--text-muted); }
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
  .apply-panel { padding: 24px; }
}
.thanks-panel { max-width: 720px; margin: 20px auto; text-align: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 56px 32px; }
.job-card-body .eyebrow { align-self: flex-start; }
.job-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.job-hero-text .job-chips { margin-bottom: 0; }
.job-hero-btn { flex-shrink: 0; font-size: 1.05rem; padding: 15px 34px; }
@media (max-width: 760px) {
  .job-hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ---------- Payments (single checkout) ---------- */
.pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.pay-main { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.pay-form { display: grid; gap: 30px; }
.pay-step { display: grid; gap: 16px; }
.pay-step + .pay-step { border-top: 1px solid var(--border); padding-top: 28px; }
.pay-step-head { display: flex; align-items: center; gap: 12px; }
.pay-step-head h2 { font-size: 1.3rem; margin: 0; }
.pay-step-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--gold-light);
  font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.amount-input { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--cream); max-width: 260px; }
.amount-input span { padding: 0 4px 0 14px; font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.amount-input input { border: none !important; background: transparent !important; font-size: 1.15rem; font-weight: 600; padding-left: 4px !important; }
.amount-input:focus-within { border-color: var(--gold); background: var(--white); }
.card-container { min-height: 90px; }
.card-placeholder { margin: 0; padding: 18px; border: 1.5px dashed var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font-size: 0.95rem; background: var(--cream); }
.pay-btn { font-size: 1.05rem; padding: 15px; }
.pay-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.pay-form .form-note .icon-sm { vertical-align: -2px; stroke: var(--navy); }
.pay-success { text-align: center; padding: 30px 10px; }
.pay-aside { position: sticky; top: 110px; display: grid; gap: 20px; }
.square-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; }
.square-panel p { color: var(--text-muted); font-size: 0.93rem; }
.square-panel .check-list { gap: 10px; font-size: 0.93rem; }
.square-badge { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); margin-bottom: 14px; }
.square-badge svg { width: 26px; height: 26px; stroke: var(--gold-dark); }
.square-panel--help { background: var(--cream-deep); box-shadow: none; }
.square-panel--help h3 { font-size: 1.05rem; margin-bottom: 6px; }
.square-panel--help p { margin: 0; }
@media (max-width: 900px) {
  .pay-layout { grid-template-columns: 1fr; }
  .pay-aside { position: static; }
  .pay-main { padding: 24px; }
}

/* ---------- Contact page (compact) ---------- */
.contact-card { max-width: 960px; margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.contact-strip { list-style: none; margin: 0; padding: 22px 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: var(--cream-deep); }
.contact-strip li { display: flex; gap: 12px; align-items: center; }
.contact-strip svg { width: 22px; height: 22px; stroke: var(--gold-dark); flex-shrink: 0; }
.contact-strip .cs-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.contact-strip a, .contact-strip span:not(.cs-label) { color: var(--navy); font-weight: 600; font-size: 0.98rem; }
.contact-form { padding: 28px 32px 30px; display: grid; gap: 16px; }
.contact-form h2 { font-size: 1.35rem; margin: 0; }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
.contact-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.contact-submit .form-note { margin: 0; max-width: 520px; }
.contact-submit .btn { flex-shrink: 0; padding: 13px 36px; }
@media (max-width: 760px) {
  .contact-strip, .form-row--3 { grid-template-columns: 1fr; }
  .contact-strip, .contact-form { padding-left: 22px; padding-right: 22px; }
  .contact-submit { flex-direction: column-reverse; align-items: stretch; }
}

.hero--slim { padding: 36px 0 32px; }
.hero--slim h1 { margin: 0; }
.callout--compact { padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; }
.callout--compact h2 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
.callout--compact .btn { flex-shrink: 0; }
@media (max-width: 700px) {
  .callout--compact { flex-direction: column; text-align: center; }
}

/* Header sizing: logo 20% larger within the same yellow bar height; nav bar 20% shorter */
@media (min-width: 981px) {
  .header-top { max-width: 1320px; padding-top: 1.5px; padding-bottom: 1.5px; min-height: 80px; }
  .brand-center { flex: 1 1 auto; min-width: 0; }
  .brand-logo { height: 77px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
  .nav-wrap { padding-top: 12px; padding-bottom: 12px; }
  .nav-links a { padding-top: 11px; padding-bottom: 11px; }
}

.eyebrow--pop {
  font-size: 1.02rem; letter-spacing: 0.1em; padding: 10px 24px;
  background: var(--gold); color: var(--navy-dark);
  box-shadow: 0 6px 16px rgba(239,169,28,0.35); margin-bottom: 18px;
}
.focus-head { font-size: 1.2rem; margin-bottom: 14px; }
.page-title--h2style { font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.61rem); }

.home-lead { font-weight: 600; color: var(--navy); }
.hero--home h1 { font-family: "Quicksand", var(--font-head); font-weight: 700; letter-spacing: -0.005em; }
.home-lead { font-size: 1.3rem; }

/* ---------- Header: centered logo on yellow; menu + action buttons on blue ---------- */
.header-top { justify-content: center; }
.nav-wrap { gap: 18px; flex-wrap: nowrap; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-actions .btn-call { border-color: var(--white); color: var(--white); background: transparent; }
.nav-actions .btn-call .icon-sm { stroke: var(--white); }
.nav-actions .btn-call:hover { background: var(--white); color: var(--navy); }
.nav-actions .btn-call:hover .icon-sm { stroke: var(--navy); }
.nav-actions .btn-getstarted { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
.nav-actions .btn-getstarted:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-dark); }
@media (min-width: 981px) {
  .nav-wrap { max-width: 1340px; padding-top: 12px; padding-bottom: 12px; }
  .nav-links { flex-wrap: nowrap; gap: 2px; }
  .nav-links a { padding: 11px 12px; }
  .btn-call span { display: inline; }
}
@media (min-width: 981px) and (max-width: 1240px) {
  .btn-call span { display: none; }
  .btn-call { padding: 9px 12px; }
  .nav-links a { padding: 11px 9px; font-size: 0.88rem; }
}
@media (max-width: 980px) {
  .nav-wrap { justify-content: space-between; }
  .nav-toggle { position: static; transform: none; order: 2; }
  .nav-actions { order: 1; }
  .btn-call span { display: none; }
  .btn-call { padding: 9px 12px; }
}
.header-top .brand-center { flex: 0 1 auto; margin: 0 auto; }
/* Menu centered, phone button pinned to the right of the blue bar */
@media (min-width: 981px) {
  .nav-wrap { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav-wrap .nav-links { grid-column: 2; }
  .nav-wrap .nav-actions { grid-column: 3; justify-self: end; }
}

/* Balance hero title lines */
.hero--home h1 { text-wrap: balance; }

/* Areas We Serve — compact highlighted band */
.areas-band { padding: 36px 0; }
.areas-box { max-width: 1080px; margin: 0 auto; background: var(--navy); color: var(--white); border-radius: 18px; padding: 24px 30px; display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: center; box-shadow: 0 10px 28px rgba(20,40,80,0.16); border-left: 6px solid #F8F28E; }
.areas-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #F8F28E; margin-bottom: 6px; }
.areas-label svg { width: 16px; height: 16px; }
.areas-intro h2 { color: var(--white); font-size: 1.35rem; line-height: 1.3; margin: 0; }
.areas-lists { display: grid; gap: 12px; }
.areas-county h3 { color: #F8F28E; font-size: 0.95rem; margin: 0 0 6px; }
.areas-county ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.areas-county li { background: rgba(255,255,255,0.12); color: var(--white); font-size: 0.86rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
@media (max-width: 820px) {
  .areas-box { grid-template-columns: 1fr; gap: 16px; padding: 22px 20px; text-align: left; }
  .areas-band { padding: 28px 0; }
}
@media (min-width: 821px) {
  .areas-box { max-width: 1060px; grid-template-columns: 250px 1fr; gap: 22px; padding: 22px 26px; }
  .areas-intro h2 { font-size: 1.25rem; }
  .areas-county li { font-size: 0.82rem; padding: 4px 10px; }
  .areas-county ul { gap: 5px; }
}

/* Payments: prominent security note */
.pay-form .form-note.secure-note { font-size: 1.05rem; font-weight: 700; color: var(--navy); text-align: center; margin-top: 10px; line-height: 1.5; }
.pay-form .form-note.secure-note strong { font-weight: 700; }
.pay-form .form-note.secure-note .icon-sm { width: 18px; height: 18px; vertical-align: -3px; }
