/* ==========================================================================
   Delta Construction — Site Styles
   Brand: navy-teal #073044 | pale mint #E4EFEF | off-white #FAFBFC
   ========================================================================== */

:root {
  --navy: #073044;
  --navy-soft: #0d4560;
  --accent: #0f7a5c;
  --accent-dark: #0b5f47;
  --mint: #E4EFEF;
  --offwhite: #FAFBFC;
  --white: #ffffff;
  --text: #24343d;
  --text-muted: #56676f;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow: 0 2px 12px rgba(7, 48, 68, 0.08);
  --shadow-md: 0 6px 20px rgba(7, 48, 68, 0.1);
  --shadow-lg: 0 8px 30px rgba(7, 48, 68, 0.12);
  --shadow-focus-accent: 0 0 0 4px rgba(15, 122, 92, 0.18);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
}

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

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-weight: 800;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42em;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4.5rem 0;
}

.section-mint {
  background: var(--mint);
}

.section-white {
  background: var(--white);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  font-family: inherit;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(7, 48, 68, 0.22);
}

.btn-primary:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(7, 48, 68, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(7, 48, 68, 0.18);
}

/* "Get a Quote" buttons — accent green regardless of base variant */
.btn-quote {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(15, 122, 92, 0.28);
}

.btn-quote:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 122, 92, 0.32);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

/* ---------- Sticky nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
}

.site-nav.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.site-nav :focus-visible {
  outline-color: var(--white);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
  transition: padding 0.35s var(--ease);
}

.site-nav.is-scrolled .nav-inner {
  padding: 0.55rem 1.25rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
  transition: width 0.35s var(--ease), height 0.35s var(--ease);
}

.site-nav.is-scrolled .nav-brand img {
  width: 30px;
  height: 30px;
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--white);
  padding: 0.4rem 0.1rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: right 0.28s var(--ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  right: 0;
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.nav-cta:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    order: 3;
  }

  .nav-links-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 0.5rem 1.25rem 1.25rem;
  }

  .nav-links-wrap.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    justify-content: center;
  }
}

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

.hero {
  padding: 6.5rem 0 5.5rem;
  background-image: linear-gradient(rgba(250, 251, 252, 0.86), rgba(250, 251, 252, 0.86)), url("assets/hero/rhodes-ave.webp");
  background-size: cover;
  background-position: center 65%;
}

.hero-grid {
  display: grid;
  max-width: 46em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

/* Credibility line — sits under the service cards, reinforcing the
   Commercial positioning at the moment a visitor is evaluating it */
.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(7, 48, 68, 0.14);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.trust-line svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .trust-line {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.6rem;
    font-size: 0.82rem;
    text-align: left;
  }

  .trust-line svg {
    margin-top: 0.12rem;
  }

  .license-line-text {
    align-items: flex-start;
    text-align: left;
  }
}

/* Trust block — groups the credibility line with the licensed/insured
   line under one shared divider instead of stacking two separate rules */
.trust-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(7, 48, 68, 0.14);
}

.trust-block .trust-line {
  margin: 0;
  padding-top: 0;
  border-top: none;
}

/* Mobile: left-align the whole block and its rows into one shared left
   column. Placed after the base .trust-block rule so it wins on source
   order (equal specificity) — otherwise the base align-items:center
   re-centers the shorter license row and breaks the column alignment. */
@media (max-width: 560px) {
  .trust-block {
    align-items: flex-start;
    gap: 0.85rem;
  }

  .trust-block .trust-line {
    align-self: stretch;
  }
}

.license-line {
  color: var(--navy-soft);
}

.license-line-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.35;
  letter-spacing: normal;
}

.license-line-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Standalone use (e.g. About page, with no preceding trust-line) */
.license-line--standalone {
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(7, 48, 68, 0.14);
}

/* ---------- Sticky mobile click-to-call ---------- */

.mobile-call-bar {
  display: none;
}

@media (max-width: 760px) {
  body {
    /* Match the sticky call bar's true rendered height so the footer meets it
       flush with no leftover background strip. Bar height = 0.9rem*2 vertical
       padding + 0.95rem*1.65 text line-height ≈ 53.9px; use 53px so the bar
       always fully covers the padding region (no gap) plus the safe-area inset
       for notched phones. */
    padding-bottom: calc(53px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-call-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 400;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
    padding-bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    box-shadow: 0 -4px 16px rgba(7, 48, 68, 0.18);
  }

  .mobile-call-bar svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .mobile-call-bar:active {
    background: var(--accent-dark);
  }
}

/* ---------- See the Delta Difference (home carousel) ---------- */

.ba-carousel-wrap {
  position: relative;
}

.ba-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 340px);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.25rem 1rem;
  margin: 2rem -0.25rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-soft) transparent;
}

/* Featured variant — "See the Difference" sliders, sized up so the
   before/after detail actually reads (fewer tiles per view, on purpose) */
.ba-carousel-wrap--featured .ba-carousel {
  grid-auto-columns: min(90vw, 680px);
  gap: 2rem;
}

.ba-carousel-wrap--featured .ba-tile-media {
  aspect-ratio: 6 / 5;
}

.ba-carousel::-webkit-scrollbar {
  height: 8px;
}

.ba-carousel::-webkit-scrollbar-thumb {
  background: rgba(7, 48, 68, 0.25);
  border-radius: 10px;
}

.carousel-controls {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.carousel-btn:active {
  transform: translateY(0) scale(0.95);
}

@media (max-width: 640px) {
  .carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
  }

  .carousel-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

.ba-tile {
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ba-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.ba-tile-media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

.ba-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ba-tile-body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.ba-tile-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.ba-tile-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.ba-tile-link {
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.ba-tile:hover .ba-tile-link {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Flush CTA bar — attached directly under a slider-only tile's image,
   replacing a floating/orphaned link with an intentional footer bar */
.ba-tile-cta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.25s var(--ease);
}

.ba-tile-cta-bar:hover {
  background: var(--accent);
}

.ba-tile-cta-bar span {
  transition: transform 0.25s var(--ease);
}

.ba-tile-cta-bar:hover span {
  transform: translateX(3px);
}

/* ---------- Option A: Portfolio index cards ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 780px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.portfolio-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.portfolio-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.portfolio-card:hover .portfolio-card-media img {
  transform: scale(1.03);
}

.portfolio-card-body {
  padding: 1.75rem;
}

.portfolio-scope-tag {
  display: inline-block;
  background: rgba(15, 122, 92, 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.9rem;
}

.portfolio-card-body h3 {
  margin-bottom: 0.6rem;
}

.portfolio-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* True interactive drag slider */
.ba-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  --pos: 50%;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-touch-callout: none;
}

.ba-slider img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

.ba-slider-after {
  position: absolute;
  inset: 0;
}

.ba-slider-after img {
  width: 100%;
}

.ba-slider-before {
  position: absolute;
  inset: 0;
  width: var(--pos);
  overflow: hidden;
}

.ba-slider-before img {
  width: var(--slider-w, 100%);
  max-width: none;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(7, 48, 68, 0.2);
}

.ba-slider-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ba-slider:hover .ba-slider-handle-btn,
.ba-slider:active .ba-slider-handle-btn {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 10px 28px rgba(7, 48, 68, 0.28);
}

.ba-tag {
  position: absolute;
  bottom: 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: rgba(7, 48, 68, 0.75);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  pointer-events: none;
}

.ba-tag-before {
  left: 0.7rem;
}

.ba-tag-after {
  right: 0.7rem;
  background: var(--accent);
  color: var(--white);
}

/* First-slider drag hint — nudges the handle on first view, then fades */
.ba-slider.is-hinting .ba-slider-before,
.ba-slider.is-hinting .ba-slider-handle {
  transition: left 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), width 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.ba-slider-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(38px);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(7, 48, 68, 0.88);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 3;
}

.ba-slider-hint.is-visible {
  opacity: 1;
}

.ba-slider-hint.is-hidden {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ba-slider.is-hinting .ba-slider-before,
  .ba-slider.is-hinting .ba-slider-handle {
    transition: none;
  }
}

/* ---------- Keep Up with Delta (Facebook Page Plugin feed) ---------- */

.fb-intro {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

/* Two-column: live feed + permanent Follow card. Stacks on narrow screens. */
.fb-feed-layout {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

/* Live feed column. The plugin sits flush inside the card — no inner padding —
   so Facebook's own white chrome reads as the card itself. */
.fb-feed-embed {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  min-height: 480px;
  overflow: hidden;
  /* Facebook renders at most 500px wide; cap the card so the plugin always
     fills it edge-to-edge (matters in the stacked single-column layout). */
  max-width: 500px;
  margin-inline: auto;
  width: 100%;
}

/* The SDK sizes the plugin from its container element's width, so .fb-page
   must span the full card — a shrink-to-fit width makes Facebook render a
   narrow iframe with cropped posts and dead space beside it. */
.fb-feed-embed .fb-page {
  display: block;
  width: 100%;
}

/* The plugin renders an iframe up to 500px wide; keep it tidy on all screens */
.fb-feed-embed .fb-page,
.fb-feed-embed .fb-page span,
.fb-feed-embed iframe {
  max-width: 100% !important;
}

/* In-frame fallback (revealed by script.js if the plugin can't load) */
.fb-feed-fallback {
  text-align: center;
  max-width: 360px;
  margin: auto;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
}

.fb-feed-fallback svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  color: var(--navy);
}

.fb-feed-fallback p {
  margin: 0 0 1.5rem;
}

/* Permanent Follow CTA card */
.fb-follow-card {
  border-radius: var(--radius-lg);
  background: var(--mint);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
}

.fb-follow-icon {
  width: 44px;
  height: 44px;
  color: var(--navy);
  margin-bottom: 1rem;
}

.fb-follow-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.fb-follow-card p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.fb-follow-card .btn svg {
  width: 20px;
  height: 20px;
}

/* Desktop two-column: blurb cards stretch to the embed's full height with
   their content vertically centered, and the Google row mirrors the Facebook
   row (blurb left, embed right). */
@media (min-width: 901px) {
  .fb-feed-layout {
    align-items: stretch;
  }

  .fb-follow-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .gbp-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  }

  .gbp-layout .gbp-embed {
    order: 2;
  }

  /* Fill the stretched card so the map never leaves white space below it */
  .gbp-embed iframe {
    height: 100%;
    min-height: 420px;
  }
}

/* Stack before the side card gets squeezed: below ~900px the second column
   would drop under ~300px, which is too narrow to read comfortably. */
@media (max-width: 900px) {
  .fb-feed-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .fb-feed-embed {
    min-height: 0;
  }
}

/* Google Business Profile section (reuses the fb-feed two-column layout) */
.gbp-heading {
  margin-bottom: 0.75rem;
}

.gbp-embed {
  min-height: 0;
  padding: 0.75rem;
}

.gbp-embed iframe {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 0.5rem);
  display: block;
}

/* The follow card is mint; on the mint section, flip the Google card to white */
.gbp-card {
  background: var(--white);
}

.gbp-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ---------- Testimonials ---------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
}

.testimonial-quote {
  color: var(--text);
  font-size: 0.95rem;
  font-style: italic;
  margin: 0;
  flex-grow: 1;
}

.testimonial-attribution {
  font-weight: 700;
  color: var(--navy-soft);
  font-size: 0.85rem;
  margin: 0;
}

.testimonials-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 1.5rem 0 0;
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  max-width: 640px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #dce4e6;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #b7c8ce;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus-accent);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23073044' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 18px;
  padding-right: 2.6rem;
  cursor: pointer;
}

.form-status {
  margin-top: 1rem;
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  color: #1a6b45;
}

.form-status.error {
  display: block;
  color: #a33030;
}

/* Quote request form (Contact page) — lean into the accent green */
#quote-form {
  border-top: 4px solid var(--accent);
}

#quote-form h3 {
  position: relative;
  padding-bottom: 0.85rem;
  margin-bottom: 1.4rem;
}

#quote-form h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

#quote-form .form-grid > div:focus-within label {
  color: var(--accent);
}

#quote-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7a5c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
}

#quote-form .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(15, 122, 92, 0.28);
}

#quote-form .btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 10px 24px rgba(15, 122, 92, 0.32);
}

/* ---------- Cards ---------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card svg {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin: 0;
}

/* ---------- Split (about preview) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.read-more {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
}

/* ---------- Projects strip / gallery ---------- */

.showcase-cta {
  margin-top: 2rem;
}

/* Before/after room detail */
.room-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2rem 0 0.9rem;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .before-after {
    grid-template-columns: 1fr;
  }
}

.ba-pane .ph,
.ba-pane img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.ba-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-soft);
  margin-bottom: 0.4rem;
}

/* In-gallery interactive slider (larger than home tiles) */
.room-slider-wrap {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

/* ---------- Projects grid + detail modal ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 780px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-card-title {
  margin-bottom: 1rem;
}

.project-card-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: ew-resize;
}

.project-card-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 1rem 0 1.1rem;
}

.project-card-open {
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
}

/* Modal / detail view */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.project-modal.is-open {
  display: block;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 48, 68, 0.55);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.25s var(--ease);
}

.project-modal-panel {
  position: relative;
  z-index: 1;
  background: var(--offwhite);
  max-width: 860px;
  width: min(92vw, 860px);
  max-height: 88vh;
  margin: 6vh auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  padding: 2.5rem 2rem 3rem;
  animation: modalIn 0.3s var(--ease);
}

@media (max-width: 640px) {
  .project-modal-panel {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    padding: 4.5rem 1.25rem 3rem;
  }

  /* Service-area map modal: fill nearly the whole screen with a small,
     consistent gap on all four sides, and let the map grow to fill it. */
  .project-modal[data-service-modal] .project-modal-panel {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    height: calc(100vh - 28px);
    height: calc(100dvh - 28px);
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    margin: 14px auto;
    border-radius: var(--radius-lg);
    padding: 3.5rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .project-modal[data-service-modal] .project-modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  .project-modal[data-service-modal] .service-map-lead {
    margin-bottom: 0.9rem;
  }

  /* Map frame flexes to consume all space below the heading/intro. */
  .project-modal[data-service-modal] .service-map-frame {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
  }

  .project-modal[data-service-modal] #service-map {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .project-modal[data-service-modal] .service-map-legend {
    flex: 0 0 auto;
    margin-top: 0.6rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  z-index: 2;
}

.project-modal-close:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

.project-modal-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.9rem;
}

.cover-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}

.project-modal-rooms {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.project-modal-room .room-heading {
  margin-top: 0;
}

.room-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.9rem;
  margin-bottom: 0;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- About page ---------- */

.prose p {
  max-width: 46em;
  color: var(--text);
  font-size: 1.05rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 860px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.1rem;
}

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

.about-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2.5rem;
}

.about-split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

@media (max-width: 860px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-split-media {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
  }
}

.role {
  color: var(--navy-soft);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  counter-reset: step;
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Process (left) + testimonials (right) two-column layout — About page */
.process-proof-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}

.process-proof-grid .steps {
  grid-template-columns: 1fr;
}

.testimonials-grid--stacked {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .process-proof-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.9rem 1.75rem;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

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

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
}

.info-card h3 {
  margin-bottom: 1rem;
}

.info-card-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.85rem 0 1rem;
}

.info-card-heading svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.info-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.info-row svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
}

.info-row a {
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Service area map (opens in a modal from Contact page) ---------- */

.service-area-cta {
  margin: 0.25rem 0 1.75rem;
}

.service-area-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.service-area-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.service-area-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.service-map-lead {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 42em;
  margin-bottom: 1.75rem;
}

.service-map-lead a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.service-map-lead a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.service-map-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--mint);
  border: 1px solid rgba(7, 48, 68, 0.08);
}

/* Real basemap (Leaflet) container. */
#service-map {
  width: 100%;
  height: 440px;
  background: var(--mint);
}

@media (max-width: 640px) {
  #service-map {
    height: 320px;
  }
}

/* Quiet the Leaflet chrome to match the site. */
#service-map.leaflet-container {
  font-family: inherit;
}

#service-map .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.75);
  color: #7d949a;
}

#service-map .leaflet-control-attribution a {
  color: var(--navy);
}

#service-map .leaflet-bar a {
  color: var(--navy);
}

/* Restrained city labels drawn over the map. */
.service-city-label {
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  color: var(--navy);
  white-space: nowrap;
  text-shadow:
    0 0 3px #FAFBFC, 0 0 3px #FAFBFC,
    0 0 3px #FAFBFC, 0 0 3px #FAFBFC;
  transform: translate(9px, -6px);
  pointer-events: none;
}

.service-city-label.is-hub {
  font-size: 13px;
}

.service-map-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.service-map-legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(13, 69, 96, 0.12);
  border: 1px solid rgba(13, 69, 96, 0.35);
  flex-shrink: 0;
}

.service-map-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(13, 69, 96, 0.5);
  border: 1px solid #ffffff;
  flex-shrink: 0;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.hours-table td {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(7, 48, 68, 0.08);
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Case study page (full-interior-transformation.html) ---------- */

.cs-hero {
  padding: 2.75rem 0 2.25rem;
}

.cs-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}

.cs-breadcrumb {
  margin-bottom: 1.25rem;
}

.cs-breadcrumb a {
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--navy-soft);
  transition: color 0.2s var(--ease);
}

.cs-breadcrumb a:hover {
  color: var(--accent);
}

.cs-hero-lead {
  font-size: 1.1rem;
  max-width: 40em;
  margin-bottom: 0;
}

/* Two-column hero: text beside a contained image frame that flatters
   both portrait and landscape lead images (no short-banner crop). */
.cs-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.cs-hero-text {
  min-width: 0;
}

.cs-hero-media {
  margin: 0;
  min-width: 0;
}

.cs-hero-media img {
  display: block;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cs-hero-media figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 460px;
}

@media (min-width: 820px) {
  .cs-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.75rem;
    margin-top: 1.75rem;
  }

  .cs-hero-media img,
  .cs-hero-media figcaption {
    max-width: none;
  }

  .cs-hero-media img {
    aspect-ratio: 4 / 5;
    max-height: 460px;
  }
}

/* At a Glance stat card */
.cs-glance-section {
  padding: 3.5rem 0;
}

.cs-glance {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 1.5rem;
}

.cs-glance-title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.cs-glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0;
}

.cs-glance-item dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.cs-glance-item dd {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.4;
}

.cs-glance-item--wide {
  grid-column: 1 / -1;
}

.cs-glance-item--wide dd {
  font-size: 0.97rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .cs-glance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Narrative sections */
.cs-narrative .prose p {
  max-width: 46em;
}

/* Story section — sticky "In This Story" nav + challenge + room-by-room */
.cs-story-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.cs-story-nav {
  position: sticky;
  top: 6rem;
}

.cs-story-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.cs-story-nav-list {
  position: relative;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  border-left: 2px solid rgba(7, 48, 68, 0.1);
}

/* Accent progress fill that descends down the TOC track as the reader
   scrolls through the story sections. Height is driven from JS via the
   --toc-progress custom property (see script.js scroll-spy). */
.cs-story-nav-list::before {
  content: "";
  position: absolute;
  top: 0;
  left: -2px;
  width: 2px;
  height: var(--toc-progress, 0px);
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.35s var(--ease);
}

.cs-story-nav-list a {
  position: relative;
  display: block;
  padding: 0.4rem 0 0.4rem 1rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cs-story-nav-list a:hover,
.cs-story-nav-list a:focus-visible {
  color: var(--navy);
  border-left-color: var(--accent);
}

/* Active section — highlighted as the scroll-spy "ticks down" the list */
.cs-story-nav-list a.is-active {
  color: var(--accent);
  font-weight: 700;
  border-left-color: var(--accent);
}

/* Filled tick marker sitting on the track next to the active item */
.cs-story-nav-list a.is-active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--white);
}

/* Landing offset so clicked sections clear the sticky site nav */
#at-a-glance,
.cs-story-content h2[id],
.cs-room {
  scroll-margin-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .cs-story-nav-list::before {
    transition: none;
  }
}

.cs-story-nav-cta {
  display: flex;
  width: 100%;
  justify-content: center;
}

.cs-story-nav-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0.6rem 0 0;
}

@media (max-width: 900px) {
  .cs-story-grid {
    grid-template-columns: 1fr;
  }

  .cs-story-nav {
    position: static;
    margin-bottom: 2.5rem;
  }

  .cs-story-nav-list {
    columns: 2;
  }

  /* The single-track progress fill/marker doesn't map onto the stacked
     2-column TOC — keep just the accent text/border highlight there. */
  .cs-story-nav-list::before {
    display: none;
  }

  .cs-story-nav-list a.is-active::before {
    display: none;
  }
}

/* Inline stat row (replaces a separate full-width band) */
.cs-story-stats {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(7, 48, 68, 0.12);
  display: flex;
  flex-wrap: wrap;
}

.cs-story-stats li {
  padding: 0 2rem;
  border-left: 1px solid rgba(7, 48, 68, 0.12);
}

.cs-story-stats li:first-child {
  padding-left: 0;
  border-left: 0;
}

.cs-story-stats strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cs-story-stats span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .cs-story-stats {
    flex-direction: column;
    gap: 1.25rem;
  }

  .cs-story-stats li {
    padding: 0;
    border: 0;
  }
}

.cs-story-work-eyebrow {
  margin-top: 3rem;
}

/* Room-by-room list */
.cs-rooms {
  display: grid;
  gap: 3.5rem;
  margin-top: 2.5rem;
}

.cs-room .room-heading {
  margin-top: 0;
}

.room-num {
  color: var(--accent);
  margin-right: 0.6em;
}

/* Scope of work grid */
.cs-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 860px) {
  .cs-scope-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cs-scope-grid {
    grid-template-columns: 1fr;
  }
}

.cs-scope-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cs-scope-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cs-scope-item svg {
  width: 40px;
  height: 40px;
  margin-bottom: 0.9rem;
}

.cs-scope-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.cs-scope-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Timeline */
.cs-timeline {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: phase;
  position: relative;
}

.cs-timeline-phase {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(7, 48, 68, 0.06);
  padding: 1.9rem 1.75rem;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cs-timeline-phase:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Connector arrows between phases (desktop) */
.cs-timeline-phase + .cs-timeline-phase::before {
  content: "\2192";
  position: absolute;
  left: -1.32rem;
  top: 2.2rem;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}

.cs-timeline-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.cs-timeline-phase h3 {
  margin-bottom: 0.4rem;
}

.cs-timeline-phase p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0;
}

@media (max-width: 900px) {
  .cs-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-timeline-phase + .cs-timeline-phase::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .cs-timeline {
    grid-template-columns: 1fr;
  }

  .cs-timeline-phase + .cs-timeline-phase::before {
    content: "\2193";
    left: 1.75rem;
    top: -1.55rem;
    display: block;
  }
}

.cs-timeline-link {
  margin: 2rem 0 0;
  font-size: 0.95rem;
}

.cs-timeline-link a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cs-timeline-link a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Editorial pull quote */
.cs-quote-section {
  background: var(--mint);
  padding: 4rem 0;
}

.cs-quote {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
  border: 0;
  padding: 0;
}

.cs-quote p {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  position: relative;
}

.cs-quote cite {
  display: block;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Inline insight callouts — interspersed between rooms in "The Work" */
.cs-insight-callout {
  margin-top: 1.5rem;
  background: rgba(15, 122, 92, 0.07);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.5rem;
}

.cs-insight-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.cs-insight-label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cs-insight-callout h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.cs-insight-callout p:last-child {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0;
}

/* Closing CTA */
.cs-cta {
  text-align: center;
}

.cs-cta .lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-lockup img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-wordmark {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.3;
}

.site-footer a {
  color: var(--white);
  font-weight: 600;
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-top: 0.5rem;
}

.social-link svg {
  width: 20px;
  height: 20px;
}
