/* =====================================================================
   Maple Ridge Overhead Doors — styles.css
   Layout variant B · slate #2b3440 + safety-orange #f26a1b · Barlow heads
   Static, framework-free. Built on the garagedoors-shared design tokens,
   then differentiated for the rugged / trades-pro voice of this site.
   ===================================================================== */

:root {
  /* ---- Per-site brand (from site-config.json) ---- */
  --brand:        #2b3440;
  --brand-dark:   #1b212a;
  --brand-light:  #e7eaee;
  --accent:       #f26a1b;
  --accent-dark:  #c5500f;
  --font-head: "Barlow", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ---- Shared scale ---- */
  --ink:        #14181f;
  --ink-soft:   #4a5363;
  --line:       #e1e5ea;
  --bg:         #ffffff;
  --bg-soft:    #f4f6f8;
  --white:      #ffffff;
  --success:    #1f9d57;
  --warning:    #e0a32f;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  /* Layout B leans squarer/industrial: smaller radii, harder edges */
  --r-sm: 3px; --r-md: 6px; --r-lg: 10px; --r-pill: 4px;
  --shadow-sm: 0 1px 2px rgba(20,24,31,.07), 0 1px 3px rgba(20,24,31,.09);
  --shadow-md: 0 6px 16px rgba(20,24,31,.10), 0 2px 5px rgba(20,24,31,.07);
  --shadow-lg: 0 22px 48px rgba(20,24,31,.18);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: .2s;

  --t-xs: .8125rem; --t-sm: .9375rem; --t-base: 1rem; --t-lg: 1.125rem;
  --t-xl: clamp(1.25rem, 1.1rem + .6vw, 1.55rem);
  --t-2xl: clamp(1.65rem, 1.3rem + 1.5vw, 2.35rem);
  --t-3xl: clamp(2.1rem, 1.5rem + 2.9vw, 3.5rem);

  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: var(--font-body); font-size: var(--t-base); line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head); line-height: 1.1; color: var(--ink);
  margin: 0 0 var(--s-4); font-weight: 800; letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); letter-spacing: -.02em; text-transform: none; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); font-weight: 700; }
p  { margin: 0 0 var(--s-4); color: var(--ink-soft); }
a  { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { color: var(--ink-soft); }
strong { color: var(--ink); }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--s-9); }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--brand); color: #fff; }
.section--ink h2, .section--ink h3, .section--ink p, .section--ink li { color: #fff; }
.section--tight { padding-block: var(--s-7); }
.center { text-align: center; }
.lede { font-size: var(--t-lg); color: var(--ink-soft); max-width: 60ch; }
.center .lede { margin-inline: auto; }

.eyebrow {
  display: inline-block; color: var(--accent-dark); font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; font-size: var(--t-sm);
  margin-bottom: var(--s-3);
}
.section--ink .eyebrow { color: var(--accent); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
  padding: .6rem 1rem; z-index: 200; border-radius: 0 0 var(--r-md) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: var(--t-base);
  padding: .9rem 1.6rem; border-radius: var(--r-pill); border: 2px solid transparent;
  cursor: pointer; line-height: 1; min-height: 48px; text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--brand-dark); }
.btn--lg { font-size: var(--t-lg); padding: 1.05rem 2rem; min-height: 56px; }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* inline icon inside a heading (e.g. area mini-service cards) */
.miniservice h3 { display: flex; align-items: center; gap: .5rem; }
.miniservice h3 svg { width: 22px; height: 22px; flex: none; color: var(--accent-dark); }
.callout h3 svg, .infocard h3 svg { width: 22px; height: 22px; }

/* ---------- Header / nav ---------- */
.topbar {
  background: var(--brand-dark); color: rgba(255,255,255,.85);
  font-size: var(--t-sm); font-weight: 600;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: .45rem; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar__areas { color: rgba(255,255,255,.75); }
.topbar__phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; letter-spacing: .01em; }

.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-3); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.16rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--brand); }
.brand__mark svg { width: 26px; height: 26px; }
.brand small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }

.nav__links { display: flex; gap: var(--s-2); align-items: center; }
.nav__links > a, .nav__item > button { font-family: var(--font-head); font-weight: 600; color: var(--ink); padding: .5rem .7rem; border-radius: var(--r-sm); background: none; border: 0; cursor: pointer; font-size: 1rem; }
.nav__links > a:hover, .nav__item > button:hover { background: var(--bg-soft); text-decoration: none; }
.nav__cta { background: var(--accent); color: #fff !important; padding: .6rem 1.15rem !important; border-radius: var(--r-pill); font-weight: 800; }
.nav__cta:hover { background: var(--accent-dark); text-decoration: none; }

/* dropdown */
.nav__item { position: relative; }
.nav__item > button::after { content: "▾"; margin-left: .35rem; font-size: .8em; color: var(--ink-soft); }
.nav__menu { position: absolute; top: calc(100% + .35rem); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: var(--s-2); display: none; flex-direction: column; }
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu, .nav__item.is-open .nav__menu { display: flex; }
.nav__menu a { padding: .55rem .7rem; border-radius: var(--r-sm); color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav__menu a:hover { background: var(--bg-soft); text-decoration: none; }
.nav__menu strong { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); padding: .5rem .7rem .2rem; }

.nav__toggle { display: none; background: none; border: 2px solid var(--line); border-radius: var(--r-sm); width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: var(--dur); }
.nav__toggle span::before { position: absolute; top: -7px; }
.nav__toggle span::after { position: absolute; top: 7px; }

/* ---------- Hero (layout B: split slab) ---------- */
.hero { position: relative; background: var(--brand-dark); color: #fff; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; }
.hero__content { padding: var(--s-9) clamp(1rem, 4vw, 3.5rem) var(--s-9) 0; max-width: 640px; }
.hero__media { position: relative; min-height: 460px; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand-dark) 0%, rgba(27,33,42,.35) 22%, rgba(27,33,42,0) 55%); }
.hero h1 { color: #fff; font-size: var(--t-3xl); margin-bottom: var(--s-4); }
.hero h1 .accent { color: var(--accent); }
.hero p { color: rgba(255,255,255,.86); font-size: var(--t-lg); max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__points { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.hero__points li { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.92); font-weight: 600; font-size: var(--t-sm); }
.hero__points li::before { content: ""; width: 9px; height: 9px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); flex: none; }

/* page hero (interior, lighter) */
.pagehero { background: var(--brand); color: #fff; padding-block: var(--s-8) var(--s-7); position: relative; }
.pagehero .breadcrumbs { margin-bottom: var(--s-4); }
.pagehero h1 { color: #fff; max-width: 22ch; }
.pagehero p { color: rgba(255,255,255,.85); max-width: 60ch; font-size: var(--t-lg); }
.pagehero__actions { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Trust strip ---------- */
.trustbar { background: var(--brand-dark); }
.trustbar__inner { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: center; align-items: center; padding-block: var(--s-4); color: rgba(255,255,255,.9); font-weight: 700; font-size: var(--t-sm); }
.trustbar__inner span { display: inline-flex; align-items: center; gap: .5rem; }
.trustbar svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: var(--s-5); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-6); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--brand-light); }
.card h3 { margin-bottom: var(--s-2); }
.card p:last-child { margin-bottom: 0; }
.card__icon { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--brand);
  display: grid; place-items: center; color: #fff; margin-bottom: var(--s-4); }
.card__icon svg { width: 28px; height: 28px; }
.card__link { font-weight: 700; color: var(--accent-dark); display: inline-flex; align-items: center; gap: .35rem; margin-top: var(--s-3); }
.card__link::after { content: "→"; transition: transform var(--dur) var(--ease); }
.card:hover .card__link::after { transform: translateX(4px); }

/* service card with top accent */
.scard { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.scard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.scard__body { padding: var(--s-5) var(--s-6) var(--s-6); display: flex; flex-direction: column; flex: 1; }
.scard__tag { font-size: var(--t-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-dark); margin-bottom: var(--s-2); }

/* feature list (checks) */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.checks li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px;
  background: var(--accent); border-radius: var(--r-sm);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/76% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/76% no-repeat; }
.checks strong { color: var(--ink); }

/* split media + copy */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; object-fit: cover; }
.split__media .badge { position: absolute; bottom: -18px; left: -18px; background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 800; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); box-shadow: var(--shadow-md); line-height: 1.1; }
.split__media .badge b { display: block; font-size: 1.6rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); text-align: center; }
.stats .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); color: var(--accent); line-height: 1; }
.stats .lbl { font-weight: 600; color: var(--ink-soft); font-size: var(--t-sm); margin-top: var(--s-2); }
.section--ink .stats .lbl { color: rgba(255,255,255,.8); }

/* steps */
.steps { counter-reset: step; display: grid; gap: var(--s-5); }
.steps--row { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: var(--s-6); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; background: var(--brand); color: #fff; font-family: var(--font-head);
  font-weight: 800; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 1.2rem; }
.step h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); margin-top: var(--s-3); }

/* reviews */
.review { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-md); padding: var(--s-5) var(--s-6); }
.review__stars { color: var(--accent); letter-spacing: 2px; font-size: 1.05rem; }
.review p { color: var(--ink); font-size: 1.02rem; margin: var(--s-3) 0; }
.review__who { font-weight: 700; color: var(--ink); font-size: var(--t-sm); }
.review__who span { display: block; font-weight: 500; color: var(--ink-soft); }

/* badges row */
.badges { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.badge-pill { display: inline-flex; align-items: center; gap: .45rem; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: .5rem .9rem; font-weight: 700; font-size: var(--t-sm); color: var(--ink); }
.badge-pill svg { width: 18px; height: 18px; color: var(--accent-dark); }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(242,106,27,.25), transparent 70%); }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .container { position: relative; }
.cta-flex { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.cta-flex .lede { color: rgba(255,255,255,.88); margin: 0; }

/* FAQ accordion */
.faq { display: grid; gap: var(--s-3); max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: var(--s-4) var(--s-5);
  font-family: var(--font-head); font-weight: 700; font-size: var(--t-lg); color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.faq__q::after { content: "+"; color: var(--accent-dark); font-size: 1.5rem; line-height: 1; flex: none; transition: transform var(--dur) var(--ease); }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 var(--s-5) var(--s-5); }
.faq__a p:last-child { margin-bottom: 0; }
details.faq__item summary { list-style: none; }
details.faq__item summary::-webkit-details-marker { display: none; }

/* contact / form */
.form { display: grid; gap: var(--s-4); }
.form__row { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: var(--t-sm); color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.form__note { font-size: var(--t-sm); color: var(--ink-soft); }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.infocard { background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: var(--s-7); }
.infocard h3 { color: #fff; }
.infocard a { color: #fff; }
.infocard__row { display: flex; gap: var(--s-3); align-items: flex-start; padding-block: var(--s-3); border-top: 1px solid rgba(255,255,255,.15); }
.infocard__row:first-of-type { border-top: 0; }
.infocard__row svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.infocard__row b { display: block; font-family: var(--font-head); }
.infocard__row span { color: rgba(255,255,255,.82); font-size: var(--t-sm); }

/* breadcrumbs */
.breadcrumbs { font-size: var(--t-sm); color: rgba(255,255,255,.7); }
.breadcrumbs a { color: rgba(255,255,255,.9); }
.breadcrumbs li { display: inline; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; padding: 0 .5rem; color: rgba(255,255,255,.45); }
.section .breadcrumbs { color: var(--ink-soft); }
.section .breadcrumbs a { color: var(--accent-dark); }
.section .breadcrumbs li + li::before { color: var(--line); }

/* ---------- Opener picker ---------- */
.openers { display: grid; gap: var(--s-4); }
.openers__extra { margin-top: var(--s-4); }
.openers__extra[hidden] { display: none; }
.opener { display: grid; grid-template-columns: 180px 1fr; grid-template-areas: "media body" "foot foot";
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.opener:hover { box-shadow: var(--shadow-md); border-color: var(--brand-light); }
.opener__media { grid-area: media; background: var(--bg-soft); display: grid; place-items: center;
  padding: var(--s-4); border-right: 1px solid var(--line); position: relative; }
.opener__media img { width: 100%; max-width: 160px; height: auto; object-fit: contain; }
.opener--noimg .opener__media img { display: none; }
.opener--noimg .opener__media::after { content: "LiftMaster"; font-family: var(--font-head);
  font-weight: 800; letter-spacing: .04em; color: var(--ink-soft); font-size: .85rem; }
.opener__body { grid-area: body; padding: var(--s-5) var(--s-6); }
.opener__badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: var(--s-2); }
.opener__body h3 { font-size: 1.3rem; margin: 0 0 var(--s-2); }
.opener__spec { color: var(--ink-soft); font-size: .95rem; margin: 0 0 var(--s-3); }
.opener__price { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink); margin: 0 0 var(--s-3); }
.opener__from { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.opener__inst { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.otags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.otag { font-size: .78rem; font-weight: 700; padding: .3rem .65rem; border-radius: var(--r-pill);
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); }
.otag--good { background: #e9f6ee; border-color: #bfe3cd; color: #1c7a45; }
.otag--cam { background: #fdeee3; border-color: #f6cda7; color: var(--accent-dark); }
.opener__foot { grid-area: foot; border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: .7rem var(--s-6); display: flex; justify-content: flex-end; align-items: center; }
.opener__quote { font-family: var(--font-head); font-weight: 800; color: var(--accent-dark); }
.opener-toggle { width: 100%; margin-top: var(--s-5); padding: 1rem; background: #fff;
  border: 1.5px dashed var(--line); border-radius: var(--r-md); font-family: var(--font-head);
  font-weight: 700; font-size: var(--t-base); color: var(--ink); cursor: pointer; min-height: 52px;
  display: flex; align-items: center; justify-content: center; gap: .5rem; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.opener-toggle:hover { border-color: var(--accent); color: var(--accent-dark); }
.opener-toggle__hide { display: none; }
.opener-toggle[aria-expanded="true"] .opener-toggle__show { display: none; }
.opener-toggle[aria-expanded="true"] .opener-toggle__hide { display: inline; }
.opener-toggle__chev { transition: transform var(--dur) var(--ease); }
.opener-toggle[aria-expanded="true"] .opener-toggle__chev { transform: rotate(180deg); }
@media (max-width: 600px) {
  .opener { grid-template-columns: 1fr; grid-template-areas: "media" "body" "foot"; }
  .opener__media { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--s-5); }
  .opener__media img { max-width: 200px; }
  .opener__foot { justify-content: stretch; }
  .opener__quote { width: 100%; text-align: center; }
}

/* prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-5); }
.prose ul { padding-left: 1.2rem; display: grid; gap: var(--s-2); }
.prose li { padding-left: .2rem; }

/* area chips */
.arealist { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.arealist a { background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: .5rem 1rem; font-weight: 700; color: var(--ink); font-size: var(--t-sm); }
.arealist a:hover { background: var(--brand); color: #fff; text-decoration: none; border-color: var(--brand); }
.section--ink .arealist a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.section--ink .arealist a:hover { background: var(--accent); border-color: var(--accent); }

/* mini cta inline */
.callout { background: var(--brand-light); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-md); padding: var(--s-5) var(--s-6); }
.callout p:last-child { margin-bottom: 0; }
.callout h3 { margin-bottom: var(--s-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.72); padding-block: var(--s-8) var(--s-5); }
.site-footer h4 { color: #fff; font-size: var(--t-base); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s-4); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.7); font-size: var(--t-sm); margin-top: var(--s-4); }
.footer-phone { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: #fff; display: inline-block; margin-top: var(--s-3); }
.footer-phone:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s-7); padding-top: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; font-size: var(--t-sm); color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.7); }

/* sticky mobile call bar */
.callbar { display: none; }

/* utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: var(--s-4); }
.muted { color: var(--ink-soft); }
.nowrap { white-space: nowrap; }
.hide { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { padding: var(--s-8) 0 var(--s-7); max-width: none; }
  .hero__media { min-height: 300px; order: -1; }
  .hero__media::after { background: linear-gradient(0deg, var(--brand-dark) 0%, rgba(27,33,42,0) 60%); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps--row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav__links { position: fixed; inset: 64px 0 auto; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: var(--s-4); gap: var(--s-1);
    box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform var(--dur) var(--ease); max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav__links.open { transform: translateY(0); }
  .nav__links > a, .nav__item > button { padding: .85rem .7rem; font-size: 1.05rem; width: 100%; text-align: left; justify-content: flex-start; }
  .nav__item { width: 100%; }
  .nav__menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 var(--s-3) var(--s-4); min-width: 0; }
  .nav__item:hover .nav__menu { display: flex; }
  .nav__toggle { display: inline-flex; }
  .nav__cta { text-align: center; justify-content: center; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-flex { flex-direction: column; align-items: flex-start; }
  .form__row { grid-template-columns: 1fr; }
  body { padding-bottom: 64px; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: 1rem .5rem; font-family: var(--font-head); font-weight: 800; }
  .callbar a svg { width: 18px; height: 18px; }
  .callbar__call { background: var(--accent); color: #fff; }
  .callbar__quote { background: var(--brand); color: #fff; }
  .callbar a:hover { text-decoration: none; }
}
@media (max-width: 540px) {
  /* tighten the brand lockup so the title doesn't crowd the hamburger */
  .nav { gap: var(--s-3); }
  .brand { font-size: 1.02rem; line-height: 1.1; }
  .brand small { display: none; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__mark svg { width: 22px; height: 22px; }
}
@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps--row { grid-template-columns: 1fr; }
}

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