/* =============================================================
   Ragsdale Roofing — ragsdaleroofing.com
   "Coastal Navy" design system
   Palette: white paper, brand navy, brand blue accent
   Type: Montserrat (display sans) + Karla (body sans)

   --navy and --brand are sampled straight off the official logo
   (assets/img/ragsdale-logo-navy.png): the palm, roofline and RAGSDALE
   wordmark are #001C4B, the ROOFING wordmark and its rules are #0F5DB8.
   Every other value in this block is derived from those two so the site
   and the mark stay in the same family.
   ============================================================= */

:root {
  --surface: #F6F9FD;
  --surface-2: #EDF3FB;
  --surface-3: #DCE7F6;
  --navy: #001C4B;
  --navy-soft: #14315F;
  --navy-mute: #56698C;
  --brand: #0F5DB8;
  --brand-deep: #0A4590;
  --brand-dark: #073068;
  --brand-tint: #DBE8FA;
  --line: #CBDAEE;
  --line-dark: #0B2A5C;
  --white: #FFFFFF;
  --ok: #2E7D52;
  --err: #B3261E;

  /* Muted body copy on navy surfaces (footer, hero floods, CTA panels). */
  --on-navy-mute: #A9BBD6;
  /* Bright body copy on navy surfaces, and the lifted accent for links. */
  --on-navy: #EAF1FB;
  --brand-light: #4A8BD8;

  --font-display: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Karla", "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 74rem;
  --wrap-narrow: 50rem;
  --radius: 1.1rem;
  --radius-sm: .55rem;
  --shadow: 0 1.2rem 2.6rem rgba(0, 28, 75, .12);
  --pad-section: clamp(3.5rem, 8vw, 6.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--brand); color: var(--navy); }

.skip-link {
  position: absolute; left: -999rem; top: 0; z-index: 300;
  background: var(--navy); color: var(--surface); padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0; text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--surface); }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.28rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .01em; }
.accent-i { font-style: normal; font-weight: 700; color: var(--brand-deep); }
.on-navy .accent-i { color: var(--brand); }

/* Kicker — numbered section label */
.kicker {
  display: flex; align-items: center; gap: .8rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brand-dark);
  margin-bottom: 1.1rem;
}
.kicker::after { content: ""; height: 1px; width: 3.4rem; background: currentColor; opacity: .55; }
.on-navy .kicker { color: var(--brand); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: var(--pad-section); }
.section-tint { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-navy, .on-navy { background: var(--navy); color: var(--surface); }
.on-navy a { color: var(--brand); }
.on-navy a:hover { color: var(--brand-tint); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head p { margin-top: .9rem; color: var(--navy-mute); font-size: 1.1rem; }
.on-navy .section-head p { color: var(--on-navy-mute); }
.center { text-align: center; }
.center .kicker { justify-content: center; }
.center.section-head, .section-head.center { margin-inline: auto; }

.grid-2 { display: grid; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.grid-3 { display: grid; gap: 1.4rem; }
@media (min-width: 46rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 52rem) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 100rem; border: 2px solid var(--navy);
  background: var(--navy); color: var(--surface);
  font-weight: 700; font-size: 1rem; letter-spacing: .015em;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--white); transform: translateY(-2px); }
.btn-brand { background: var(--brand); border-color: var(--brand); color: var(--navy); }
.btn-brand:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--surface); }
.on-navy .btn-ghost { color: var(--surface); border-color: var(--surface); }
.on-navy .btn-ghost:hover { background: var(--surface); color: var(--navy); }
/* .on-navy a (brand-blue links) must not repaint button text: brand-on-brand
   is invisible. Restate each button's own text color at higher specificity. */
.on-navy a.btn { color: var(--surface); }
.on-navy a.btn:hover { color: var(--white); }
.on-navy a.btn-brand { color: var(--navy); }
.on-navy a.btn-brand:hover { color: var(--white); }
.on-navy a.btn-ghost { color: var(--surface); }
.on-navy a.btn-ghost:hover { color: var(--navy); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- Fixed social rail (left edge, all pages) ---------- */
.social-rail {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  z-index: 45; display: flex; flex-direction: column; gap: .55rem;
}
.social-rail a {
  display: flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; background: var(--navy); color: var(--surface);
  border-radius: var(--radius-sm); box-shadow: 0 .3rem .9rem rgba(0, 28, 75, .28);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.social-rail a:hover { background: var(--brand-deep); color: var(--white); transform: translateX(3px); }
.social-rail svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 62rem) { .social-rail { display: none; } }

/* ---------- Promo banner ---------- */
.promo-bar {
  background: var(--navy); color: var(--surface);
  font-size: .95rem; text-align: center; padding: .55rem 1rem;
  position: relative; z-index: 60;
}
.promo-bar strong { color: var(--brand); font-weight: 700; }
.promo-bar a {
  color: var(--surface); font-weight: 700; margin-left: .55rem;
  text-decoration: underline; text-decoration-color: var(--brand);
}
.promo-bar a:hover { color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.2rem;
  padding-block: .7rem; max-width: var(--wrap); margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand:hover { color: var(--navy); }
.brand-logo { height: 5rem; width: auto; }
@media (max-width: 46rem) { .brand-logo { height: 3.5rem; } }

.site-nav > ul { display: flex; align-items: center; gap: .1rem; list-style: none; padding: 0; }
.site-nav a { text-decoration: none; color: var(--navy-soft); font-weight: 700; font-size: .97rem; padding: .55rem .8rem; border-radius: var(--radius-sm); display: block; }
.site-nav a:hover { color: var(--navy); background: var(--surface-3); }
.site-nav a[aria-current="page"], .site-nav li.is-active > a { color: var(--brand-dark); }
.has-sub { position: relative; }
.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: .35rem; opacity: .6; }
.sub-menu {
  position: absolute; top: calc(100% + .4rem); left: 0; min-width: 16.5rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: .5rem; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { padding: .5rem .75rem; font-weight: 600; font-size: .93rem; }
.sub-menu .sub-label { font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--navy-mute); padding: .55rem .75rem .25rem; }
.header-call { white-space: nowrap; }
.header-call .btn { padding: .7rem 1.25rem; font-size: .95rem; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--navy); border-radius: var(--radius-sm);
  width: 2.7rem; height: 2.7rem; cursor: pointer; padding: 0; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; content: ""; width: 1.25rem; height: 2px; background: var(--navy); position: relative; transition: transform .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 64rem) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: 0; top: 0; z-index: 40;
    background: var(--surface); padding: 7.5rem 1.6rem 2rem;
    overflow-y: auto; display: none;
  }
  .nav-open .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .site-nav a { font-size: 1.15rem; padding: .7rem .6rem; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 .4rem .9rem; }
  .sub-menu a { font-size: 1rem; color: var(--navy-mute); }
  .has-sub > a::after { content: ""; }
  .header-call { display: none; }
  .nav-call-mobile { margin-top: 1.4rem; }
}
@media (min-width: 64.01rem) { .nav-call-mobile { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.2rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.15fr 1fr; } }
.hero h1 { margin-bottom: 1.2rem; }
.hero-lede { font-size: 1.18rem; color: var(--navy-soft); max-width: 34rem; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; font-weight: 700; font-size: .92rem; color: var(--navy-soft); }
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points svg { width: 1rem; height: 1rem; color: var(--brand-deep); flex: none; }

.hero-figure { position: relative; }
.hero-figure .frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative; z-index: 2; background: var(--white);
}
.hero-figure::before {
  content: ""; position: absolute; inset: 1.6rem -1.1rem -1.1rem 1.6rem;
  border-radius: var(--radius); background: var(--brand); opacity: .9; z-index: 1;
}
.hero-badge {
  position: absolute; z-index: 3; left: -0.9rem; bottom: 1.6rem;
  background: var(--navy); color: var(--surface); border-radius: var(--radius-sm);
  padding: .75rem 1.05rem; box-shadow: var(--shadow);
  display: flex; gap: .65rem; align-items: center; font-size: .88rem; line-height: 1.3;
}
.hero-badge svg { width: 1.7rem; height: 1.7rem; color: var(--brand); flex: none; }
.hero-badge strong { display: block; font-size: .98rem; }

/* Moving hero: full-bleed video background behind the homepage hero.
   The poster image doubles as the background while the video loads (and stays
   put for reduced-motion users, where the video itself is hidden). */
.hero-flood { background: var(--navy); }
.hero-flood .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("/assets/img/hero-poster.jpg") center / cover no-repeat var(--navy);
}
.hero-flood .hero-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Scrim under the hero copy. The poster is bright exactly where the lede sits,
   so the left end is weighted enough to hold body-text contrast and is released
   by ~85% so the roof itself still reads. */
.hero-flood .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0, 28, 75, .74) 0%, rgba(0, 28, 75, .52) 34%, rgba(0, 28, 75, .18) 62%, rgba(0, 28, 75, 0) 85%);
}
.hero-flood .wrap { position: relative; z-index: 1; }
.hero-flood .hero-lede { color: var(--on-navy); }
/* --brand is a mid blue and fails contrast against the poster; lift the kicker
   to the light tint on flood heroes only. */
.hero-flood .kicker { color: var(--brand-light); }
/* Homepage hero accent: upright bold, brightened — the italic serif read
   soft against the video background. */
.hero-flood .accent-i { font-style: normal; font-weight: 700; color: var(--brand-light); }
.hero-flood .hero-points { color: var(--surface); }
.hero-flood .hero-points svg { color: var(--brand); }
.hero-figure-flood { align-self: end; justify-self: end; min-height: 8rem; }
.hero-figure-flood .hero-badge { position: static; display: inline-flex; }
/* .hero-figure::before is the offset colour block that sits behind a framed
   hero photo. The homepage hero has no .frame, only the badge, so the block had
   nothing to back and rendered as a loose rectangle colliding with the badge. */
.hero-figure-flood::before { content: none; }
@media (max-width: 55.99rem) { .hero-figure-flood { justify-self: start; min-height: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-flood .hero-bg video { display: none; }
}

/* Interior page heroes: real photography behind the ink panel. Each page sets
   its own image via the --hero-img custom property on the section. */
/* Interior page heroes: the photo lives on a ::before so it can slowly
   Ken Burns (zoom/pan) for subtle motion on every page. The ink gradient
   sits on ::after above it; content sits above both. */
.page-hero.has-photo { background-image: none; }
.page-hero.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--hero-img) center / cover no-repeat;
  transform: scale(1.05);
  animation: heroKenBurns 26s ease-in-out infinite alternate;
  will-change: transform;
}
/* Weighted like the homepage scrim, and for the same reason: several hero
   photos (the Savannah aerial especially) are bright exactly where the copy
   sits, and a text-shadow alone could not carry it. Released by ~88% so the
   photograph still reads on the right. */
.page-hero.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(0, 28, 75, .78) 0%, rgba(0, 28, 75, .56) 38%, rgba(0, 28, 75, .22) 64%, rgba(0, 28, 75, 0) 88%);
}
.page-hero.has-photo > .wrap { position: relative; z-index: 2; }
@keyframes heroKenBurns {
  from { transform: scale(1.05) translate(0, 0); }
  to   { transform: scale(1.15) translate(-2%, -1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero.has-photo::before { animation: none; transform: scale(1); }
}
/* With the lighter overlay, give hero text a soft shadow so it stays readable
   over bright areas of the photo. */
.page-hero.has-photo h1,
.page-hero.has-photo .page-lede,
.page-hero.has-photo .crumbs { text-shadow: 0 2px 6px rgba(0, 0, 0, .95), 0 1px 18px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .9); }
/* Keep the interior-hero lede bright white over the photo. */
.page-hero.has-photo .page-lede { color: var(--on-navy); }
/* The h1 accent inherits --brand-deep, a dark mid-blue that disappears against
   a photograph. Lift it to the light tint, same as the homepage hero. */
.page-hero.has-photo .accent-i { color: var(--brand-light); }
.page-hero.has-photo .crumbs { color: var(--on-navy-mute); }

/* Trust strip */
.trust-strip { border-block: 1px solid var(--line); background: var(--surface-2); padding-block: 1rem; }
.trust-strip ul {
  list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center;
  gap: .4rem 1.1rem; font-weight: 700; font-size: .9rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--navy-soft);
}
.trust-strip li { display: flex; align-items: center; gap: 1.1rem; }
.trust-strip li:not(:last-child)::after { content: "✦"; color: var(--brand-deep); font-size: .8em; }

/* ---------- Ledger (numbered service rows) ---------- */
.ledger { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.on-navy .ledger { border-color: var(--line-dark); }
.ledger li { border-bottom: 1px solid var(--line); }
.on-navy .ledger li { border-color: var(--line-dark); }
.ledger a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem); padding: 1.35rem .35rem;
  text-decoration: none; color: inherit; transition: background .16s ease, padding .16s ease;
}
.ledger a:hover { background: var(--brand-tint); padding-inline: 1rem; color: inherit; }
.on-navy .ledger a:hover { background: var(--navy-soft); }
.ledger .idx { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--brand-deep); min-width: 2.2rem; }
.on-navy .ledger .idx { color: var(--brand); }
.ledger .ledger-body h3 { margin-bottom: .2rem; }
.ledger .ledger-body p { color: var(--navy-mute); font-size: .98rem; max-width: 44rem; }
.on-navy .ledger .ledger-body p { color: var(--on-navy-mute); }
.ledger .arrow { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-deep); transition: transform .16s ease; }
.on-navy .ledger .arrow { color: var(--brand); }
.ledger a:hover .arrow { transform: translateX(.4rem); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; height: 100%;
}
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--navy-mute); font-size: .99rem; }
.card .card-icon { width: 2.6rem; height: 2.6rem; color: var(--brand-deep); margin-bottom: 1rem; }
/* Material cards: a real photo of the roofing material, flush to the card's
   top corners, above the heading. */
.card { overflow: hidden; }
.card .card-photo {
  display: block; width: calc(100% + 3.2rem); max-width: none;
  margin: -1.8rem -1.6rem 1.3rem; height: 11rem; object-fit: cover;
}
.card-link { text-decoration: none; color: inherit; display: block; height: 100%; transition: transform .18s ease, box-shadow .18s ease; border-radius: var(--radius); }
.card-link:hover { transform: translateY(-4px); color: inherit; }
.card-link:hover .card { box-shadow: var(--shadow); border-color: var(--brand); }

/* Stat band */
.stat-band { display: grid; gap: 1.6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 46rem) { .stat-band { grid-template-columns: repeat(4, 1fr); } }
.stat .stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 600; color: var(--brand); line-height: 1; }
.stat .stat-label { font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: .5rem; color: var(--on-navy-mute); }

/* ---------- Prose (long-form) ---------- */
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .45rem; }
.prose blockquote {
  border-left: 3px solid var(--brand); padding: .4rem 0 .4rem 1.3rem;
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--navy-soft);
}
.prose figure.framed { margin-block: 2rem; }
.prose figure.framed img, .prose figure.framed svg { border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { font-size: .88rem; color: var(--navy-mute); margin-top: .6rem; }
.lead { font-size: 1.2rem; color: var(--navy-soft); }

/* Checklist */
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist li + li { margin-top: .8rem; }
.checklist svg { width: 1.25rem; height: 1.25rem; color: var(--brand-deep); flex: none; margin-top: .25rem; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy); color: var(--surface); padding-block: clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.page-hero::after {
  content: "◆ ◆ ◆"; position: absolute; right: 2rem; bottom: 1.4rem;
  color: var(--brand); opacity: .5; letter-spacing: 1.2rem; font-size: .7rem;
}
.page-hero .crumbs { margin-bottom: 1.3rem; }
.page-hero h1 { max-width: 50rem; }
.page-hero .page-lede { margin-top: 1.1rem; max-width: 42rem; font-size: 1.15rem; color: var(--on-navy-mute); }
.crumbs { font-size: .85rem; font-weight: 700; letter-spacing: .05em; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.crumbs li:not(:first-child)::before { content: "/"; margin-right: .5rem; color: var(--brand); }
.crumbs a { color: var(--on-navy-mute); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--surface); }

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.25rem .2rem; font-family: var(--font-display); font-size: 1.18rem; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--brand-deep); transition: transform .2s ease; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 .2rem 1.4rem; color: var(--navy-soft); max-width: 46rem; }
.faq-item .faq-body > * + * { margin-top: .8rem; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; height: 100%; display: flex; flex-direction: column; gap: 1.1rem;
}
.quote-card .stars { color: var(--brand-deep); letter-spacing: .18em; font-size: .95rem; }
.quote-card blockquote { font-family: var(--font-display); font-size: 1.08rem; font-style: italic; line-height: 1.5; color: var(--navy-soft); flex: 1; }
.quote-card figcaption { font-weight: 700; font-size: .93rem; }
.quote-card figcaption span { display: block; font-weight: 400; color: var(--navy-mute); font-size: .85rem; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.gallery-filters button {
  border: 2px solid var(--navy); background: transparent; border-radius: 100rem;
  padding: .5rem 1.15rem; font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.gallery-filters button:hover { background: var(--surface-3); }
.gallery-filters button[aria-pressed="true"] { background: var(--navy); color: var(--surface); }
.gallery-grid { display: grid; gap: 1.4rem; }
@media (min-width: 40rem) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item figcaption { padding: 1rem 1.15rem 1.2rem; }
.gallery-item figcaption strong { display: block; font-family: var(--font-display); font-size: 1.08rem; }
.gallery-item figcaption span { color: var(--navy-mute); font-size: .9rem; }
.gallery-item[hidden] { display: none; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; }
.field label .req { color: var(--brand-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-deep); outline: none; box-shadow: 0 0 0 3px var(--brand-tint); }
.field .hint { font-size: .84rem; color: var(--navy-mute); margin-top: .3rem; }
.form-note { font-size: .88rem; color: var(--navy-mute); }

/* ---------- CTA panel ---------- */
.cta-panel {
  background: var(--navy); color: var(--surface); border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 3.6rem); position: relative; overflow: hidden;
}
.cta-panel::before {
  content: ""; position: absolute; right: -4rem; top: -4rem; width: 16rem; height: 16rem;
  border-radius: 50%; border: 2.2rem solid var(--brand); opacity: .28;
}
.cta-panel h2 { max-width: 30ch; position: relative; }
.cta-panel p { margin-top: .9rem; max-width: 46rem; color: var(--on-navy-mute); position: relative; }
.cta-panel .hero-ctas { margin-top: 1.6rem; margin-bottom: 0; position: relative; }

/* Phone link big */
/* white-space: nowrap because the footer column is narrow enough that the
   number broke as "(843) 489-" / "8966"; a phone number split across lines
   reads as two numbers. The upper clamp bound comes down to match. */
.tel-big { font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 600; color: var(--brand); text-decoration: none; white-space: nowrap; }
.tel-big:hover { color: var(--brand-tint); }

/* ---------- Sidebar layout (service/location pages) ---------- */
.split-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 56rem) { .split-layout { grid-template-columns: 1.7fr 1fr; } }
.sidebar { display: grid; gap: 1.4rem; position: sticky; top: 6.5rem; }
.sidebar-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.sidebar-card.ink { background: var(--navy); color: var(--surface); border-color: var(--navy); }
.sidebar-card h3 { font-size: 1.25rem; margin-bottom: .8rem; }
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card li + li { margin-top: .1rem; }
.sidebar-card li a { display: block; padding: .45rem .4rem; text-decoration: none; font-weight: 600; border-radius: var(--radius-sm); color: var(--navy-soft); }
.sidebar-card li a:hover { background: var(--brand-tint); color: var(--navy); }
.sidebar-card li a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-tint); }
.sidebar-card p { font-size: .95rem; }
.sidebar-card .btn { width: 100%; margin-top: 1rem; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card .post-media { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.post-card .card { border-radius: 0 0 var(--radius) var(--radius); border-top: 0; flex: 1; }
.post-meta { font-size: .84rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: .5rem; }
.article-head { max-width: var(--wrap-narrow); margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-mute); }
.footer-cta { border-bottom: 1px solid var(--line-dark); padding-block: 2.6rem; }
.footer-cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.site-footer .btn-ghost { color: var(--surface); border-color: var(--surface); }
.site-footer .btn-ghost:hover { background: var(--surface); color: var(--navy); }
.footer-cta h2 { color: var(--surface); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.footer-main { padding-block: 3.2rem 2rem; }
.footer-grid { display: grid; gap: 2.4rem; }
@media (min-width: 46rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-grid h4 { color: var(--surface); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li + li { margin-top: .5rem; }
.footer-grid a { color: var(--on-navy-mute); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); }
.footer-brand .brand-logo-footer { width: 12.5rem; height: auto; margin-bottom: 1.2rem; opacity: .95; }
.footer-brand p { font-size: .95rem; max-width: 24rem; }
.footer-social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.footer-social a {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--line-dark); border-radius: 50%; color: var(--on-navy-mute);
}
.footer-social a:hover { border-color: var(--brand); color: var(--brand); }
.footer-social svg { width: 1.15rem; height: 1.15rem; }
.footer-legal { border-top: 1px solid var(--line-dark); padding-block: 1.4rem; font-size: .85rem; }
.footer-legal .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; justify-content: space-between; }

/* Mobile sticky call bar */
.mobile-call-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 45;
  display: none; grid-template-columns: 1fr 1fr;
  background: var(--navy); border-top: 2px solid var(--brand);
}
.mobile-call-bar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem .5rem; color: var(--surface); text-decoration: none; font-weight: 700; font-size: .95rem;
}
.mobile-call-bar a + a { border-left: 1px solid var(--line-dark); }
.mobile-call-bar svg { width: 1.1rem; height: 1.1rem; color: var(--brand); }
@media (max-width: 46rem) {
  .mobile-call-bar { display: grid; }
  body { padding-bottom: 3.4rem; }
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.framed-img { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.framed-img img { width: 100%; height: auto; }
.eyebrow-note { font-size: .9rem; font-weight: 700; color: var(--brand-dark); letter-spacing: .04em; }
.divider-flourish { text-align: center; color: var(--brand-deep); letter-spacing: 1rem; padding-block: .4rem; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
