/* ==========================================================================
   CarePoint Home Health — shared styles
   Teal + navy theme carried over from the previous site. Poppins throughout.
   Base type 18px: most visitors are 55+.
   ========================================================================== */

:root {
  --teal:       #16A79B;
  --teal-dark:  #0E8378;
  --teal-pale:  #E8F5F3;

  --ink:        #1D2B3A;
  --ink-soft:   #5A6B7D;
  --paper:      #FFFFFF;
  --mist:       #F3F8F8;
  --line:       #DCE6E6;

  /* logo accents, used to key the service columns */
  --blue:       #2F5BD8;
  --amber:      #F2A900;
  --plum:       #6B3F73;

  --measure:    64ch;
  --gutter:     clamp(1.25rem, 4vw, 3.5rem);
  --max:        1200px;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: var(--teal-dark); }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1.25rem; z-index: 100; }
.skip:focus { left: 0; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Motion ------------------------------------------------------
   Everything is visible by default. The only entrance is a single, gentle
   page-load sequence on the hero; the stats count up when scrolled to.
   All of it switches off for prefers-reduced-motion.
   ------------------------------------------------------------------------ */

@keyframes riseIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.js .hero .rise,
.js .fork .rise { animation: riseIn .75s var(--ease) both; }
.js .fork .rise:nth-child(1) { animation-delay: .28s; }
.js .fork .rise:nth-child(2) { animation-delay: .38s; }
.js .fork .rise:nth-child(3) { animation-delay: .48s; }
.js .hero-photo.rise { animation-delay: .14s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero .rise, .js .fork .rise { animation: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Header ------------------------------------------------------ */

.masthead { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.masthead .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 86px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-words strong { font-size: 1.42rem; font-weight: 600; letter-spacing: -.02em; }
.brand-words em {
  font-style: normal; font-size: .62rem; font-weight: 600;
  letter-spacing: .19em; color: var(--ink-soft); text-transform: uppercase;
}

.nav { display: flex; gap: 1.35rem; flex-wrap: wrap; margin-left: auto; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: .98rem; font-weight: 500;
  padding: .35rem 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
}
.nav a:hover { color: var(--teal-dark); border-bottom-color: var(--teal); }
.nav a[aria-current="page"] { border-bottom-color: var(--teal); }

.callbar {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--teal); color: #fff; text-decoration: none;
  padding: .65rem 1.2rem; border-radius: 999px;
  font-weight: 600; font-size: 1.02rem; white-space: nowrap;
  transition: background .2s, transform .2s var(--ease);
}
.callbar:hover { background: var(--teal-dark); transform: translateY(-2px); }

/* ---------- Buttons ----------------------------------------------------- */

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: .85rem 1.7rem; border-radius: 8px; font-size: 1.02rem;
  border: 2px solid transparent; transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-quiet { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn-quiet:hover { background: var(--teal); color: #fff; }

/* ---------- Hero -------------------------------------------------------- */

.hero { padding: clamp(2.5rem, 6vw, 4.25rem) 0 0; }
.hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: center; }
.hero p.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 48ch; }
.hero-photo img { border-radius: 14px; box-shadow: 0 18px 40px -22px rgba(29,43,58,.45); }

.fork { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: clamp(2rem,5vw,3.25rem) 0 clamp(2.5rem,6vw,3.75rem); }
@media (min-width: 900px) { .fork { grid-template-columns: repeat(3,1fr); } }

.door {
  display: block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-top: 5px solid var(--teal);
  border-radius: 10px; padding: 1.5rem 1.6rem 1.4rem; background: var(--paper);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.door:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(29,43,58,.5); background: var(--teal-pale); }
.door.job   { border-top-color: var(--blue); }
.door.train { border-top-color: var(--amber); }
.door h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.door p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Proof bar --------------------------------------------------- */

.proof { border-block: 1px solid var(--line); background: var(--teal-pale); padding: clamp(1.75rem,4vw,2.5rem) 0; }
.proof-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2,1fr); align-items: center; }
@media (min-width: 760px) { .proof-grid { grid-template-columns: repeat(4,1fr); } }
.proof-item .num { font-weight: 600; font-size: clamp(2rem,4vw,2.7rem); line-height: 1; display: block; color: var(--teal-dark); }
.proof-item .lab { font-size: .96rem; color: var(--ink-soft); display: block; margin-top: .3rem; }
.proof-seal img { width: 112px; }

/* ---------- Sections ---------------------------------------------------- */

.band { padding: clamp(3rem,7vw,4.75rem) 0; }
.band-mist { background: var(--mist); }
.band > .wrap > h2 { max-width: 24ch; }
.section-intro { color: var(--ink-soft); max-width: 60ch; }

.services { display: grid; gap: 1.75rem; margin-top: 2.25rem; }
@media (min-width: 780px) { .services { grid-template-columns: repeat(3,1fr); } }
.service { border-top: 4px solid var(--line); padding-top: 1.1rem; }
.service:nth-child(1) { border-top-color: var(--teal); }
.service:nth-child(2) { border-top-color: var(--blue); }
.service:nth-child(3) { border-top-color: var(--plum); }
.service h3 { margin-bottom: .4rem; }
.service ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .98rem; }
.service li { margin-bottom: .4rem; }

.accred { display: grid; gap: clamp(1.5rem,4vw,2.75rem); align-items: center; }
@media (min-width: 780px) { .accred { grid-template-columns: 210px 1fr; } }
.accred img { width: 195px; margin-inline: auto; }

.creds { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .85rem; }
@media (min-width: 700px) { .creds { grid-template-columns: 1fr 1fr; } }
.creds li { padding-left: 1.9rem; position: relative; font-size: 1.02rem; max-width: 46ch; }
.creds li::before { content: ""; position: absolute; left: 0; top: .6em; width: 11px; height: 11px; border-radius: 50%; background: var(--teal); }

.coverage { display: grid; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
@media (min-width: 840px) { .coverage { grid-template-columns: 1fr 330px; } }
.coverage img { margin-inline: auto; }

.towns { columns: 2; column-gap: 2rem; list-style: none; padding: 0; margin: 1rem 0 0; }
@media (min-width: 760px) { .towns { columns: 3; } }
.towns li { margin-bottom: .4rem; font-size: .98rem; color: var(--ink-soft); break-inside: avoid; }

/* ---------- FAQ --------------------------------------------------------- */

.faq { margin-top: 2rem; max-width: 74ch; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { font-size: 1.14rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-weight: 700; transition: transform .2s var(--ease); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .85rem 0 0; color: var(--ink-soft); animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ----------------------------------------------------- */

.contact-grid { display: grid; gap: clamp(1.75rem,4vw,3rem); align-items: start; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1fr 560px; } }
.contact-detail { font-size: 1.02rem; }
.contact-detail dt { font-weight: 600; margin-top: 1.15rem; color: var(--teal-dark); }
.contact-detail dd { margin: .15rem 0 0; color: var(--ink-soft); }
.phone-big { font-size: clamp(1.8rem,3.5vw,2.35rem); font-weight: 600; text-decoration: none; color: var(--ink); display: inline-block; }
.phone-big:hover { color: var(--teal-dark); }
.form-shell { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .75rem; overflow: hidden; }
.form-shell iframe { width: 100% !important; border: 0; }

/* ---------- Footer (light, matching the previous site) ------------------ */

.foot { background: var(--mist); color: var(--ink-soft); padding: 3.25rem 0 2rem; font-size: .98rem; border-top: 1px solid var(--line); }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--teal-dark); }
.foot-grid { display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; } }
.foot h4 { color: var(--teal-dark); font-size: 1.02rem; font-weight: 600; margin: 0 0 .8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .5rem; }
.foot p { max-width: 34ch; }
.brand-foot { margin-bottom: .25rem; }
.brand-foot img { width: 46px; height: 46px; }
.colophon { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .89rem; color: var(--ink-soft); }

/* ---------- Nav dropdown ------------------------------------------------ */

.has-sub { position: relative; display: inline-flex; align-items: center; }
.has-sub > a::after { content: "\25BE"; font-size: .7em; margin-left: .35rem; color: var(--ink-soft); }
.sub {
  position: absolute; top: 100%; left: -1rem; min-width: 268px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 36px -20px rgba(29,43,58,.45);
  list-style: none; margin: .5rem 0 0; padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 60;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub li { margin: 0; }
.sub a { display: block; padding: .5rem .75rem; border-radius: 6px; border-bottom: 0; font-size: .95rem; }
.sub a:hover { background: var(--teal-pale); border-bottom: 0; }

/* ---------- Google reviews slider --------------------------------------- */

.slider { position: relative; margin-top: 2rem; }
.slides {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0 0 .5rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; }
@media (min-width: 700px) { .slide { flex-basis: calc(50% - .75rem); } }
@media (min-width: 1020px) { .slide { flex-basis: calc(33.333% - 1rem); } }

.review {
  margin: 0; height: 100%; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem 1.7rem;
  box-shadow: 0 10px 26px -22px rgba(29,43,58,.5);
}
.stars { display: block; letter-spacing: .14em; font-size: 1.05rem; margin-bottom: .7rem; }
.star { color: #D8DEE4; }
.star.on { color: var(--amber); }
.review p { margin: 0 0 1.1rem; font-size: 1.02rem; color: var(--ink); flex: 1 1 auto; }
.review cite { font-style: normal; font-size: .93rem; color: var(--ink-soft); font-weight: 500; }

.slider-controls { display: flex; align-items: center; gap: .9rem; margin-top: 1.4rem; }
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s, color .2s, border-color .2s;
}
.slider-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.slider-dots { display: flex; gap: .5rem; }
.dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 0; background: var(--line); transition: background .2s, transform .2s;
}
.dot.is-on { background: var(--teal); transform: scale(1.3); }

/* ---------- Contact form sizing ----------------------------------------- */

.form-shell { max-width: 560px; }
.form-shell iframe { width: 100% !important; min-width: 0 !important; }

/* ---------- Small screens ---------------------------------------------- */

@media (max-width: 880px) {
  .has-sub > a::after { display: none; }
  .sub { display: none; }
  .brand-words strong { font-size: 1.25rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .masthead .wrap { min-height: 0; padding-block: .9rem; gap: .75rem; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: .9rem 1.1rem; }
  .callbar { margin-left: auto; }
}

/* ---------- Interior page header ---------------------------------------- */

.pagehead { padding: clamp(2.5rem,6vw,4rem) 0 clamp(1.5rem,3vw,2rem); }
.pagehead .lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Service blocks ---------------------------------------------- */

.svc-block { display: grid; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
@media (min-width: 860px) {
  .svc-block { grid-template-columns: 1fr 1fr; }
  .svc-block.reverse > div { order: 2; }
  .svc-block.reverse > img { order: 1; }
}
.svc-block img { border-radius: 12px; }

/* ---------- Tick lists --------------------------------------------------- */

.ticks { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--ink-soft); }
.ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 700;
}
@media (min-width: 720px) { .ticks.two-col { columns: 2; column-gap: 2.5rem; } .ticks.two-col li { break-inside: avoid; } }

.county-list { margin-top: 1.25rem; }

/* ---------- Team review -------------------------------------------------- */

.team-review { max-width: 74ch; margin-top: 1.5rem; }

/* ---------- CTA band ----------------------------------------------------- */

.cta-band { background: var(--teal-pale); border-top: 1px solid var(--line); }

/* ---------- Map ---------------------------------------------------------- */

.map-shell { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 1.5rem; }
.map-shell iframe { display: block; }

/* ---------- Legal page --------------------------------------------------- */

.legal-toc { display: flex; flex-wrap: wrap; gap: .6rem; }
.legal-toc a {
  display: inline-block; padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; text-decoration: none;
  font-size: .95rem; color: var(--ink);
}
.legal-toc a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.legal-body { max-width: 78ch; }
.legal-body h2 { scroll-margin-top: 110px; }
.legal-body h3 { margin-top: 1.75rem; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.hipaa-header {
  font-weight: 600; color: var(--ink) !important; border-left: 4px solid var(--teal);
  padding: .9rem 1.1rem; background: var(--teal-pale); border-radius: 0 8px 8px 0;
}
.paste-me { background: #FFF6E5; border: 1px dashed var(--amber); padding: 1rem 1.2rem; border-radius: 8px; }

/* ---------- Hero: pinwheel watermark ------------------------------------
   The brand mark, oversized and faint, turning very slowly behind the photo.
   It gives the page a sense of life without competing with the content.
   ------------------------------------------------------------------------ */

.hero { position: relative; overflow: hidden; }
.pinwheel {
  position: absolute; top: -14%; right: -13%;
  width: min(620px, 58vw); aspect-ratio: 1; z-index: 0;
  pointer-events: none; opacity: .085;
}
.pinwheel img { width: 100%; height: 100%; }
.js .pinwheel img { animation: turn 90s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.hero .wrap { position: relative; z-index: 1; }

/* photo gets a soft brand-coloured offset behind it */
.hero-photo { position: relative; }
.photo-accent {
  position: absolute; inset: 18px -18px -18px 18px; border-radius: 16px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 55%, var(--plum) 100%);
  opacity: .16; z-index: 0;
}
.hero-photo img { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .js .pinwheel img { animation: none; }
}
@media (max-width: 860px) {
  .pinwheel { width: 70vw; top: -6%; right: -22%; opacity: .06; }
  .photo-accent { inset: 12px -12px -12px 12px; }
}

/* ---------- Footer social icons ----------------------------------------- */

.socials { display: flex; gap: .6rem; margin-top: .25rem; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  transition: background .2s, color .2s, transform .2s var(--ease), border-color .2s;
}
.socials a:hover { background: var(--teal); color: #fff; border-color: var(--teal); transform: translateY(-3px); }
.socials svg { display: block; }

/* =========================================================================
   REFINEMENTS — stronger watermark, brand-coloured socials, centred section
   openings, wider measure, softer modern surfaces.
   ========================================================================= */

/* Watermark: more present, still behind the content */
.pinwheel { opacity: .18; width: min(700px, 62vw); top: -16%; right: -15%; }
.js .pinwheel img { animation-duration: 75s; }
@media (max-width: 860px) { .pinwheel { opacity: .12; } }

/* Stats bar: three columns now the seal has gone */
@media (min-width: 760px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }
.proof-grid { text-align: center; }

/* Brand-coloured social icons */
.socials a { background: #fff; }
.socials .s-fb { color: #1877F2; }
.socials .s-li { color: #0A66C2; }
.socials .s-ig { color: #C13584; }
.socials .s-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.socials .s-li:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.socials .s-ig:hover {
  background: linear-gradient(45deg, #F58529, #DD2A7B 45%, #8134AF 75%, #515BD4);
  color: #fff; border-color: transparent;
}

/* Centred section openings, wider measure, justified body copy */
.band > .wrap > h2,
.band > .wrap > .section-intro { margin-inline: auto; text-align: center; max-width: 62ch; }
.band > .wrap > h2 { max-width: 24ch; }

.section-intro, .service ul, .faq details p, .legal-body p, .legal-body li,
.svc-block p, .coverage p, .accred p {
  text-align: justify; text-justify: inter-word; hyphens: auto;
}
p { max-width: 72ch; }
.hero p.lede { text-align: left; hyphens: none; }
.legal-body { max-width: 82ch; margin-inline: auto; }

/* Centre the buttons that sit directly under a centred intro */
.band > .wrap > p:has(> .btn) { text-align: center; }

/* Modern surfaces: softer corners, lighter shadows, more air */
.band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.door { border-radius: 16px; }
.review { border-radius: 16px; }
.hero-photo img { border-radius: 20px; }
.svc-block img, .coverage img { border-radius: 20px; }
.form-shell { border-radius: 16px; }
.map-shell { border-radius: 16px; }
.service {
  background: #fff; border: 1px solid var(--line); border-top-width: 4px;
  border-radius: 16px; padding: 1.5rem 1.6rem 1.4rem;
  box-shadow: 0 12px 30px -26px rgba(29,43,58,.55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(29,43,58,.55); }
.service h3 { text-align: center; }
.service ul { text-align: left; }

.band-mist .service { background: #fff; }
.cta-band { text-align: center; }
.cta-band .section-intro { margin-inline: auto; }

/* ---------- Fixes: centred buttons, tighter form frame ------------------- */

/* Buttons under a centred intro sat left because the paragraph inherits the
   72ch measure. Give the button row full width and centre it properly. */
.band > .wrap > p:has(.btn),
.cta-band .wrap > p:has(.btn) {
  max-width: none; width: 100%; text-align: center; margin-inline: auto;
}
.band > .wrap > p:has(.btn) .btn { margin-inline: .3rem; }

/* The Jotform card already has its own border and padding — drop ours so the
   form isn't wrapped in a second frame. */
.form-shell {
  background: transparent; border: 0; padding: 0; box-shadow: none;
  max-width: 560px; margin-inline: auto;
}
.form-shell iframe { border-radius: 14px; }

/* Centre the slider's arrows and dots under the cards */
.slider-controls { justify-content: center; }

/* ---------- Contact form: give it room so Jotform uses two columns -------
   Jotform stacks every field vertically below ~480px, which makes the form
   far taller. Keeping the frame wide keeps it short.
   ------------------------------------------------------------------------ */

@media (min-width: 980px) {
  .contact-grid { grid-template-columns: minmax(280px, 1fr) minmax(620px, 700px); }
}
.form-shell {
  background: transparent; border: 0; padding: 0; box-shadow: none;
  max-width: 700px; width: 100%; margin-inline: auto;
}
.form-shell iframe {
  width: 100%; min-width: 100%; border: 0; border-radius: 14px;
  height: 640px; display: block;
}
@media (max-width: 620px) { .form-shell iframe { height: 900px; } }

/* FAQ block should fill the section, not sit in the left half */
.faq { max-width: 860px; margin-inline: auto; }

/* =========================================================================
   LAZY EMBEDS — Jotform and Google Maps only fetch their iframe once the
   visitor scrolls near them, and only fetch once, ever. On a slow mobile
   connection this stops the page feeling like it has stalled, because
   nothing outside our own files loads until it is actually needed.
   ========================================================================= */

.lazy-embed {
  position: relative; width: 100%; min-height: 300px;
  background: #fff; border-radius: 14px; overflow: hidden;
}
.lazy-embed iframe { width: 100%; height: 820px; border: 0; display: block; }
.lazy-embed-map { min-height: 380px; }
.lazy-embed-map iframe { height: 380px; }

.lazy-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .75rem;
  color: var(--ink-soft); font-size: .95rem; background: var(--mist);
}
.lazy-spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--teal);
  animation: spin .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .lazy-spinner { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact form: give the lazy-loaded Jotform room for the Submit button */
.form-shell .lazy-embed { height: 760px; }
.form-shell .lazy-embed iframe { height: 100%; }
@media (max-width: 620px) {
  .form-shell .lazy-embed { height: 1080px; }
}
