/* ==========================================================================
   Homepage sections (order matches the live page)
   ========================================================================== */

/* ------------------------------ HERO ------------------------------ */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: clamp(540px, calc(100svh - var(--header-h) - 48px), 800px);
  background: var(--vd-blue-900);
  color: var(--vd-ivory-100);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
/* Even blue shading over the whole banner video. Chris, 2026-11-11: "add the shading back, cut it to 50% of what it was,
   and make it cover the entire banner". The old shading was 72-84% blue behind the headline and faded to clear on the
   right; this is one flat layer at half that strength (40%) everywhere. Change --hero-shade to adjust it (0 = none).
   The old left-heavy gradient is kept in docs/01-content-media-mapping.md section F. The headline's dark halo and the
   "Watch Video" button's light backing help the text on the brightest frames. */
.hero { --hero-shade: 0.4; }
.hero__scrim { position: absolute; inset: 0; background: rgba(11, 47, 74, var(--hero-shade)); }
.hero .btn--ghost-light { background: rgba(11, 47, 74, 0.4); backdrop-filter: blur(4px); }
.hero .btn--ghost-light:hover { background: rgba(246, 243, 237, 0.22); }
.hero__content {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  /* Bottom padding trimmed 2026-11-11 (was clamp(116px, 11vw, 176px)) so the headline sits a little lower: about 40px on desktop. */
  padding-block: clamp(64px, 9vw, 132px) clamp(88px, 8.4vw, 132px);
}
.hero__title { margin: 0; color: var(--vd-ivory-100); font-size: var(--fs-h1); text-shadow: 0 0 3px rgba(8, 31, 49, 0.95), 0 2px 12px rgba(8, 31, 49, 0.85), 0 5px 40px rgba(8, 31, 49, 0.8); }
.hero__title-em { display: block; font-style: italic; color: var(--vd-taupe-300); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.1rem; }
.hero__toggle {
  position: absolute; right: var(--gutter); bottom: clamp(80px, 8vw, 104px);
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  background: rgba(11, 47, 74, 0.42); color: var(--vd-ivory-100);
  border: 1px solid rgba(246, 243, 237, 0.6); border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background-color var(--dur) var(--ease);
}
.hero__toggle:hover { background: rgba(11, 47, 74, 0.7); }
.hero__toggle .icon { width: 18px; height: 18px; }
.hero__toggle .icon-play { display: none; margin-left: 2px; }
.hero__toggle[data-playing="false"] .icon-pause { display: none; }
.hero__toggle[data-playing="false"] .icon-play { display: block; }

/* ------------------------- HERO INFO CARD ------------------------- */
.hero-info { position: relative; z-index: 3; margin-top: calc(-1 * clamp(46px, 5vw, 66px)); }
.info-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: clamp(20px, 3.2vw, 56px);
  padding: clamp(24px, 2.8vw, 38px) clamp(24px, 3.4vw, 52px);
  background: var(--vd-white);
  border: 1px solid var(--vd-line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.info-card h2 { margin: 0 0 0.55rem; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.375rem); }
.info-card__welcome .btn { margin-top: 0.35rem; }
.info-card__office { padding-left: clamp(20px, 3.2vw, 56px); border-left: 1px solid var(--vd-line); }
.info-card__office p { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--color-text-muted); }
.info-card__office a { color: var(--vd-ink); text-decoration-color: var(--vd-taupe-500); }
.scroll-cue {
  display: grid; place-items: center; width: 58px; height: 58px;
  color: var(--vd-blue-700); text-decoration: none;
  border: 1px solid var(--vd-taupe-500); border-radius: 50%;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.scroll-cue:hover { background: var(--vd-blue-700); border-color: var(--vd-blue-700); color: var(--vd-ivory-100); }
.scroll-cue .icon { width: 20px; height: 20px; }

/* --------------------- SPLIT SECTIONS (intro / difference) --------------------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 80px); align-items: center; }
.split__text { grid-column: 1 / span 5; }
.split__text p { font-size: var(--fs-body); }
.split__text .btn { margin-top: 1.6rem; }
.split__media { grid-column: 7 / -1; }
.split__media img { width: 100%; border-radius: var(--radius-md); }
.split--reverse .split__media { grid-column: 1 / span 6; grid-row: 1; }
.split--reverse .split__text { grid-column: 8 / -1; grid-row: 1; }
.intro { padding-top: calc(var(--section-y) * 0.82); }

/* ------------------------------ MARQUEE ------------------------------ */
/* Deep-blue band with ivory italic words. Recolored 2026-11-11 at Chris's request (it was dark-taupe words on ivory
   between two hairlines). */
.marquee { overflow: hidden; background: var(--vd-blue-900); padding-block: clamp(18px, 2.4vw, 32px); }
.marquee__track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; align-items: center; }
.marquee__item {
  display: flex; align-items: center; white-space: nowrap;
  padding-inline: clamp(20px, 3vw, 46px);
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem); line-height: 1.12;
  color: var(--vd-ivory-100);
}
.marquee__item::after { content: "+"; margin-left: clamp(40px, 6vw, 92px); font-style: normal; font-weight: 300; color: var(--vd-taupe-500); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee__item { padding-block: 4px; }
}

/* ----------------------------- EMERGENCY ----------------------------- */
.emergency { padding-block: clamp(40px, 5vw, 72px) 0; }
.emergency__panel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 4.6vw, 68px) clamp(28px, 5vw, 76px);
  background: var(--vd-blue-700); color: var(--vd-ivory-100);
  border-radius: var(--radius-md);
}
.emergency__title { max-width: 24ch; margin: 0; color: var(--vd-ivory-100); font-size: clamp(2rem, 1.3rem + 2vw, 3.1rem); }
.emergency__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------ SERVICES ------------------------------ */
.services { margin-top: var(--section-y); background: var(--vd-white); border-block: 1px solid var(--vd-line); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.service-card .card-media { aspect-ratio: 4 / 5; }
.service-card .card-media img { object-position: var(--fx, 50%) var(--fy, 26%); }
.card-title { font-size: var(--fs-h3); font-family: var(--font-serif); font-weight: 500; line-height: 1.15; color: var(--vd-blue-900); }
.service-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-top: clamp(32px, 4vw, 56px); }
.service-links a {
  padding: 0.62em 1.25em;
  border: 1px solid var(--vd-line); border-radius: var(--radius-sm);
  font-size: var(--fs-ui); font-weight: 450; color: var(--vd-blue-700); text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.service-links a:hover { background: var(--vd-ivory-100); border-color: var(--vd-taupe-500); color: var(--vd-blue-900); }

/* ---------------------------- TESTIMONIALS ---------------------------- */
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; max-width: none; }
.section-head--row > div { max-width: 46rem; }
.section-head--row .btn { margin-top: 0; flex: none; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }

/* ------------------------------ JOURNEY CTA ------------------------------ */
.journey { background: var(--vd-blue-900); color: var(--vd-ivory-100); padding-block: clamp(56px, 7vw, 96px); }
.journey__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 56px; }
.journey h2 { margin: 0; color: var(--vd-ivory-100); font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); }
.journey .btn { min-height: 56px; padding-inline: 2.1em; }

/* -------------------------------- BLOG -------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.post-card .card-media { aspect-ratio: 4 / 3; }
.post-card .card-media img { object-position: 50% 40%; }

/* --------------------------------- FAQ --------------------------------- */
/* Requested 2026-11-11 (not on the live site): blue section between the blog and "Let's Connect".
   Native <details> accordion: works without JavaScript, is keyboard accessible, and every answer stays in the HTML. */
.faq { background: var(--vd-blue-700); color: var(--vd-ivory-100); }
.faq__layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__intro h2 { margin: 0 0 1.1rem; color: var(--vd-ivory-100); }
.faq__intro p { max-width: 30ch; margin: 0 0 0.9rem; color: rgba(246, 243, 237, 0.9); font-size: var(--fs-lead); }
.faq__intro .faq__help { margin-bottom: 0; font-size: var(--fs-body); }
.faq__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }

.faq__list { border-top: 1px solid rgba(246, 243, 237, 0.24); }
.faq__item { border-bottom: 1px solid rgba(246, 243, 237, 0.24); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 1.35rem 0; list-style: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: 2px; border-radius: var(--radius-md); }
.faq__q {
  margin: 0; font-family: var(--font-serif); font-weight: 500; line-height: 1.22; color: var(--vd-ivory-100);
  font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.8rem);
  transition: color var(--dur) var(--ease);
}
.faq__item summary:hover .faq__q { color: var(--vd-taupe-300); }
.faq__icon {
  position: relative; flex: none; width: 36px; height: 36px;
  border: 1px solid rgba(216, 204, 185, 0.65); border-radius: 50%;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px;
  background: var(--vd-taupe-300); transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }   /* plus; turns into a minus when open */
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item summary:hover .faq__icon { background: rgba(246, 243, 237, 0.08); border-color: var(--vd-taupe-300); }
.faq__a { max-width: 64ch; padding: 0 clamp(0px, 5vw, 64px) 1.7rem 0; }
.faq__a p { margin: 0 0 0.85rem; color: rgba(246, 243, 237, 0.92); }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a .faq__more { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 1.15rem; font-size: var(--fs-ui); font-weight: 500; }
.faq__a .faq__more a { color: var(--vd-taupe-300); text-decoration-color: rgba(216, 204, 185, 0.55); }
.faq__a .faq__more a:hover { color: var(--vd-white); text-decoration-color: var(--vd-white); }
.faq__item[open] .faq__a { animation: faq-in 0.35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq + .contact { padding-top: var(--section-y); }   /* the contact card normally hugs the blog above it; it now follows the blue FAQ */
@media (max-width: 899px) {
  .faq__layout { grid-template-columns: 1fr; gap: 36px; }
  .faq__intro { position: static; }
  .faq__intro p { max-width: 36ch; }
}
@media (max-width: 559px) {
  .faq__item summary { padding-block: 1.15rem; gap: 16px; }
  .faq__icon { width: 32px; height: 32px; }
  .faq__actions .btn { flex: 1 1 100%; }
}

/* ------------------------------- CONTACT ------------------------------- */
.contact { padding-top: 0; }
.contact-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--vd-white);
  border: 1px solid var(--vd-line); border-radius: var(--radius-md);
  overflow: hidden;
}
.contact-card__media { position: relative; min-height: 360px; }
.contact-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.contact-card__body { padding: clamp(28px, 4.4vw, 68px); }
.contact-card__body h2 { max-width: 21ch; margin-bottom: 1.6rem; font-size: clamp(2rem, 1.3rem + 2vw, 2.9rem); }

/* ------------------------------ RESPONSIVE ------------------------------ */
@media (max-width: 1023px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid > :last-child { grid-column: 1 / -1; }
  .post-grid > :last-child .card-media { aspect-ratio: 16 / 7; }
}
@media (max-width: 899px) {
  .split, .split--reverse { display: flex; flex-direction: column; align-items: stretch; gap: 32px; }
  .split--reverse .split__media { order: -1; }
  .emergency__panel { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-card__media { min-height: 0; aspect-ratio: 16 / 9; }
  .info-card { grid-template-columns: 1fr; gap: 22px; }
  .scroll-cue { display: none; }
  .info-card__office { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--vd-line); }
}
@media (max-width: 699px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-tile img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
  .gform_fields { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .post-grid > :last-child .card-media { aspect-ratio: 4 / 3; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__toggle { top: 14px; bottom: auto; }   /* away from the stacked buttons so tap targets never crowd */
}
@media (max-width: 559px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card .card-media { aspect-ratio: 4 / 4.4; }
}
