/* ==========================================================================
   אלוף הגגות - design system
   Brand tokens carried over from the WordPress build:
   primary #FF8F00, CTA #FF6600, accent #61CE70, typeface Assistant.
   ========================================================================== */

:root {
  /* brand */
  --brand: #ff8f00;
  --brand-cta: #ff6600;
  --brand-cta-hover: #e55a00;
  --brand-soft: #fff5ed;
  --brand-ring: rgba(255, 143, 0, .28);
  --accent: #2fa84f;

  /* neutrals */
  --ink: #14181d;
  --ink-2: #3d4650;
  --ink-3: #667080;
  --line: #e4e8ee;
  --line-2: #eef1f5;
  --bg: #ffffff;
  --bg-2: #f7f9fc;
  --bg-3: #eff3f8;

  /* system */
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 29, .05), 0 1px 3px rgba(20, 24, 29, .06);
  --shadow: 0 4px 12px rgba(20, 24, 29, .07), 0 2px 4px rgba(20, 24, 29, .04);
  --shadow-lg: 0 18px 40px rgba(20, 24, 29, .11), 0 4px 12px rgba(20, 24, 29, .06);
  --wrap: 1180px;
  --wrap-narrow: 780px;
  --header-h: 72px;

  --step--1: clamp(.83rem, .8rem + .12vw, .9rem);
  --step-0: clamp(1rem, .96rem + .18vw, 1.09rem);
  --step-1: clamp(1.16rem, 1.09rem + .32vw, 1.36rem);
  --step-2: clamp(1.36rem, 1.24rem + .55vw, 1.7rem);
  --step-3: clamp(1.6rem, 1.4rem + .9vw, 2.15rem);
  --step-4: clamp(1.9rem, 1.55rem + 1.5vw, 2.85rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: Assistant, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Form controls do not inherit the page typeface by default in any browser -
   without this, buttons inside embedded widgets fall back to Arial. */
button, input, select, textarea, optgroup { font-family: inherit; font-size: inherit; }
img, video, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.28; font-weight: 800; letter-spacing: -.011em; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1.05em; }
a { color: var(--brand-cta-hover); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--brand-cta); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; inset-inline-start: 0; top: -100px; z-index: 999;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.2rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.2rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: clamp(2.4rem, 1.5rem + 3vw, 4.2rem); }
.section--tint { background: var(--bg-2); }
.section--brand { background: linear-gradient(160deg, #fff8f0 0%, #fff 62%); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img { width: auto; height: 52px; }

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.tel-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--brand-cta); color: #fff; font-weight: 800;
  padding: .58rem 1.05rem; border-radius: 999px; text-decoration: none;
  box-shadow: 0 2px 10px rgba(255, 102, 0, .3);
  white-space: nowrap; font-size: .97rem;
  transition: background .18s ease, transform .18s ease;
}
.tel-btn:hover { background: var(--brand-cta-hover); color: #fff; transform: translateY(-1px); }
.tel-btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.tel-btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.tel-btn--ghost:hover { background: var(--bg-2); color: var(--ink); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius-sm); cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* primary nav */
.nav { display: flex; }
.nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .5rem .72rem; border-radius: var(--radius-sm);
  color: var(--ink-2); font-weight: 700; font-size: .96rem; text-decoration: none;
  transition: background .15s ease, color .15s ease; white-space: nowrap;
}
.nav a:hover, .nav a:focus-visible { background: var(--brand-soft); color: var(--brand-cta-hover); }
.nav a[aria-current="page"] { color: var(--brand-cta-hover); background: var(--brand-soft); }

.has-sub { position: relative; }
.has-sub > button {
  display: inline-flex; align-items: center; gap: .28rem;
  padding: .5rem .72rem; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .96rem; color: var(--ink-2);
  border-radius: var(--radius-sm); font-family: inherit;
  white-space: nowrap;
}
.has-sub > button:hover { background: var(--brand-soft); color: var(--brand-cta-hover); }
.has-sub > button svg { width: 13px; height: 13px; fill: currentColor; transition: transform .2s ease; }
.has-sub > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.subnav {
  position: absolute; inset-inline-start: 0; top: calc(100% + .35rem);
  min-width: 250px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .4rem; list-style: none; margin: 0; display: none; z-index: 70;
}
.has-sub > button[aria-expanded="true"] + .subnav { display: block; }
.subnav a { padding: .55rem .7rem; font-weight: 600; font-size: .94rem; }

/* Open the dropdown on hover for pointer devices; the click/keyboard path in
   site.js stays as the accessible fallback and for touch. */
@media (hover: hover) and (pointer: fine) and (min-width: 1201px) {
  .has-sub:hover > .subnav,
  .has-sub:focus-within > .subnav { display: block; }
  .has-sub:hover > button { background: var(--brand-soft); color: var(--brand-cta-hover); }
  .has-sub:hover > button svg { transform: rotate(180deg); }
  /* bridge the gap so the menu does not close while travelling to it */
  .has-sub::after {
    content: ""; position: absolute; inset-inline: 0; top: 100%; height: .5rem;
  }
}

@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: .6rem 1.1rem 1.2rem;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav a, .has-sub > button { width: 100%; text-align: start; padding: .72rem .6rem; font-size: 1.02rem; }
  .has-sub > button { justify-content: space-between; }
  .subnav { position: static; display: none; box-shadow: none; border: 0; border-inline-start: 2px solid var(--line); border-radius: 0; margin-inline-start: .55rem; padding-inline-start: .3rem; }
  .header-actions .tel-btn span { display: none; }
  .header-actions .tel-btn { padding: .58rem .72rem; }
}
@media (max-width: 480px) {
  .brand img { height: 42px; }
}

/* ---------- hero ---------- */
.hero { background: linear-gradient(165deg, #fff6ec 0%, #ffffff 58%); padding-block: clamp(1.8rem, 1rem + 3vw, 3.4rem) clamp(1.6rem, 1rem + 2vw, 2.6rem); border-bottom: 1px solid var(--line-2); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 1rem + 2.4vw, 3rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; align-items: start; } }
.hero h1 { margin-bottom: .35em; }
.hero-lede { font-size: var(--step-1); color: var(--ink-2); font-weight: 600; margin-bottom: 1.3rem; }
.hero-lede p:last-child { margin-bottom: 0; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1.3rem 0; }
.hero-cta .btn { flex: 0 1 auto; }
.hero-cta .btn span { display: inline-flex; align-items: baseline; gap: .38rem; }
.hero-cta .btn b { font-weight: 800; letter-spacing: .01em; }
.hero-cta .btn--ghost b { color: var(--brand-cta-hover); }
@media (max-width: 520px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

.trust-row { display: flex; flex-wrap: wrap; gap: .5rem .55rem; margin-block: 1.2rem 0; padding: 0; list-style: none; }
.trust-row li {
  display: inline-flex; align-items: center; gap: .38rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .32rem .78rem; font-size: .89rem; font-weight: 700; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.trust-row svg { width: 15px; height: 15px; fill: var(--accent); flex: none; }

/* ---------- content + sidebar layout ----------
   Mirrors the WordPress build: ~760px article beside a ~360px aside.
   In RTL the first grid column lands on the right, as in the original. */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(1.6rem, 1rem + 2.4vw, 3rem);
  align-items: start;
}
.layout-main { min-width: 0; }
@media (max-width: 1040px) {
  .layout { grid-template-columns: 1fr; }
}

.layout-side { display: grid; gap: 1.1rem; min-width: 0; }
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.side-card__title {
  margin: 0;
  padding: .85rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-cta) 100%);
  letter-spacing: -.01em;
}
.side-card__body { padding: 1.1rem; }
.side-card__body > :first-child { margin-top: 0; }
.side-card__body > :last-child { margin-bottom: 0; }
.side-card__body .form-sub { margin-bottom: .85rem; }
/* sidebar link lists stack rather than form a grid */
.side-card__body .link-grid { grid-template-columns: 1fr; gap: .4rem; }
.side-card__body figure.media { margin: 0; }
.side-card__body figure.media figcaption { display: none; }
.side-card__body .video-wrap video,
.side-card__body .video-wrap iframe { aspect-ratio: 16 / 10; }
.side-card__body h2, .side-card__body h3 { font-size: 1.02rem; margin-bottom: .5em; }
.side-card__body p { font-size: .95rem; }
/* the sidebar sticks once the reader scrolls past the tall article */
@media (min-width: 1041px) {
  .layout-side { position: sticky; top: calc(var(--header-h) + 1rem); }
  .layout-side.is-tall { position: static; }
}

/* ---------- embedded custom widgets (calculator, tip, comparison tables) ----
   Their original stylesheets are scoped to `.embed` at build time; this makes
   sure they inherit the site typeface and never overflow their column. */
.embed { font-family: inherit; max-width: 100%; }
.embed * { font-family: inherit !important; }
.embed img { max-width: 100%; height: auto; }
.embed table { width: 100%; }

/* ---------- cards & CTA ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card-pad { padding: clamp(1.15rem, .9rem + 1vw, 1.75rem); }
.card--sticky { position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 900px) { .card--sticky { position: static; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 800; font-size: 1.02rem; line-height: 1.2;
  padding: .82rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; font-family: inherit;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn--primary { background: var(--brand-cta); color: #fff; box-shadow: 0 4px 14px rgba(255, 102, 0, .32); }
.btn--primary:hover { background: var(--brand-cta-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 102, 0, .38); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { padding: .95rem 1.7rem; font-size: 1.08rem; }

/* ---------- forms ---------- */
.lead-form { display: grid; gap: .68rem; }
.lead-form .field { display: grid; gap: .3rem; }
.lead-form label { font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.lead-form input, .lead-form textarea, .lead-form select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .72rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-form input:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring);
}
.lead-form textarea { min-height: 92px; resize: vertical; }
.lead-form .form-note { font-size: .82rem; color: var(--ink-3); margin: 0; }
.form-status { margin: .2rem 0 0; font-weight: 700; font-size: .93rem; }
.form-status[data-state="ok"] { color: var(--accent); }
.form-status[data-state="err"] { color: #c8371f; }
.form-title { font-size: var(--step-2); margin-bottom: .15em; }
.form-sub { color: var(--ink-3); font-size: .95rem; margin-bottom: 1rem; }
/* Honeypot. Clipped rather than pushed off-canvas: a negative offset would
   extend the RTL scroll area and escape body's overflow clipping.
   Selector must out-specify `.lead-form input`. */
.lead-form input.hp-field {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; opacity: 0; pointer-events: none;
}

/* ---------- prose (article body - content preserved 1:1) ---------- */
.prose { font-size: var(--step-0); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--step-3); margin-top: 2.1em; padding-top: .1em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.7em; }
.prose h4 { font-size: var(--step-1); margin-top: 1.5em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-inline-start: 1.35em; }
.prose li { margin-bottom: .45em; }
.prose ul { list-style: none; padding-inline-start: 0; }
.prose ul > li { position: relative; padding-inline-start: 1.55em; }
.prose ul > li::before {
  content: ""; position: absolute; inset-inline-start: .3em; top: .62em;
  width: .5em; height: .5em; border-radius: 50%; background: var(--brand);
}
.prose ol { padding-inline-start: 1.4em; }
.prose ol > li::marker { font-weight: 800; color: var(--brand-cta-hover); }
.prose img { border-radius: var(--radius); margin-block: 1.6em; box-shadow: var(--shadow); }
.prose a { font-weight: 700; }
.prose strong, .prose b { font-weight: 800; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.2em; }
.prose blockquote {
  margin: 1.6em 0; padding: .9em 1.2em; border-inline-start: 4px solid var(--brand);
  background: var(--brand-soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }

/* tables - the pricing tables are a core content asset, keep them readable */
.table-scroll { overflow-x: auto; margin-block: 1.7em; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.prose table, table.data { width: 100%; border-collapse: collapse; font-size: .97rem; background: #fff; }
.table-scroll > table { margin: 0; border: 0; }
.prose th, .prose td, table.data th, table.data td { padding: .78rem .95rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.prose thead th, table.data thead th { background: var(--bg-3); font-weight: 800; color: var(--ink); white-space: nowrap; border-bottom: 2px solid var(--line); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: #fcfdff; }
.prose td p:last-child { margin-bottom: 0; }
.prose td p { margin-bottom: .35em; }

/* ---------- table of contents ---------- */
.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); margin-block: 1.6em; overflow: hidden; }
.toc > summary {
  cursor: pointer; padding: .9rem 1.1rem; font-weight: 800; font-size: 1.02rem;
  list-style: none; display: flex; align-items: center; gap: .5rem;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after {
  content: ""; margin-inline-start: auto; width: .55em; height: .55em; flex: none;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translate(-.1em, -.1em); transition: transform .2s ease;
}
.toc[open] > summary::after { transform: rotate(-135deg) translate(-.1em, -.1em); }
.toc > summary svg { width: 18px; height: 18px; fill: var(--brand-cta); flex: none; }
.toc ol { margin: 0; padding: 0 1.1rem 1rem 1.1rem; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: .3em; padding-inline-start: 1.7em; position: relative; }
.toc li::before { content: counter(toc) "."; position: absolute; inset-inline-start: 0; font-weight: 800; color: var(--brand-cta); font-size: .92rem; }
.toc a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.toc a:hover { color: var(--brand-cta-hover); text-decoration: underline; }
.toc .lvl-3 { padding-inline-start: 2.9em; font-size: .95rem; }
.toc .lvl-3::before { inset-inline-start: 1.2em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .6rem; margin-block: 1.4em; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease; }
.faq-item[open] { border-color: var(--brand); box-shadow: var(--shadow); }
.faq-item > summary {
  cursor: pointer; list-style: none; padding: 1rem 1.15rem;
  font-weight: 800; font-size: 1.03rem; color: var(--ink);
  display: flex; align-items: center; gap: .8rem; line-height: 1.45;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: ""; margin-inline-start: auto; flex: none;
  width: .55em; height: .55em;
  border-right: 2.5px solid var(--brand-cta); border-bottom: 2.5px solid var(--brand-cta);
  transform: rotate(45deg) translate(-.1em, -.1em);
  transition: transform .2s ease;
}
.faq-item[open] > summary::after { transform: rotate(-135deg) translate(-.1em, -.1em); }
.faq-body { padding: 0 1.15rem 1.15rem; color: var(--ink-2); }
.faq-body > :last-child { margin-bottom: 0; }

/* ---------- link lists (service areas / services) ---------- */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .55rem; list-style: none; padding: 0; margin: 0; }
.link-grid a {
  display: flex; align-items: center; gap: .55rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .68rem .85rem; font-weight: 700; font-size: .95rem;
  color: var(--ink-2); text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.link-grid a:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-cta-hover); transform: translateY(-1px); }
.link-grid a::before {
  content: ""; flex: none; width: .42em; height: .42em; border-radius: 50%; background: var(--brand);
}
.link-grid li.is-plain { display: flex; align-items: center; gap: .55rem; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .68rem .85rem; font-weight: 600; font-size: .95rem; color: var(--ink-2); }

/* ---------- media ---------- */
figure.media { margin: 1.8em 0; }
figure.media img { margin: 0; }
figure.media figcaption { font-size: .88rem; color: var(--ink-3); text-align: center; margin-top: .6em; }
.video-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-wrap video, .video-wrap iframe { width: 100%; display: block; aspect-ratio: 16 / 9; border: 0; }

/* click-to-play YouTube facade */
.video-facade { position: relative; }
.video-play {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: #000; position: relative; line-height: 0;
}
.video-play img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .92; transition: opacity .2s ease, transform .3s ease; }
.video-play:hover img { opacity: 1; transform: scale(1.02); }
.video-play__btn {
  position: absolute; inset: 0; margin: auto;
  width: 66px; height: 46px; border-radius: 12px;
  background: rgba(220, 30, 30, .93);
  display: flex; align-items: center; justify-content: center;
  transition: background .18s ease, transform .18s ease;
}
.video-play:hover .video-play__btn { background: #e62117; transform: scale(1.08); }
.video-play__btn svg { width: 26px; height: 26px; fill: #fff; }
.video-play:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; margin-block: 1.6em; }
.gallery img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 0; width: 100%; }

.imagebox { display: grid; gap: .8rem; text-align: center; }
.imagebox img { margin-inline: auto; border-radius: var(--radius); }

/* ---------- callouts from original custom HTML ---------- */
.note {
  background: var(--brand-soft); border: 1px solid #ffd8b0;
  border-inline-start: 4px solid var(--brand); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin-block: 1.6em;
}
.note > :last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: #14181d; color: #aab3bf; padding-block: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem) 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.8rem 1.6rem; }
.site-footer h3 { color: #fff; font-size: 1.02rem; margin-bottom: .85em; letter-spacing: -.005em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .42em; }
.site-footer a { color: #aab3bf; text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-brand img { height: 54px; width: auto; margin-bottom: .9rem; background: #fff; border-radius: 10px; padding: 6px 9px; }
.footer-contact li { display: flex; align-items: center; gap: .5rem; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--brand); flex: none; }
.social { display: flex; gap: .5rem; margin-top: 1.1rem; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .16s ease, transform .16s ease;
}
.social a:hover { background: var(--brand); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; fill: #fff; }
.footer-bottom {
  margin-top: 2.4rem; border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.15rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem;
  align-items: center; justify-content: space-between; font-size: .88rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }

/* ---------- sticky mobile call bar ---------- */
.callbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 55; display: none;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: .55rem .7rem;
  padding-bottom: calc(.55rem + env(safe-area-inset-bottom));
  gap: .5rem; box-shadow: 0 -4px 18px rgba(20, 24, 29, .09);
}
.callbar .btn { flex: 1; padding: .74rem .8rem; font-size: 1rem; }
@media (max-width: 760px) { .callbar { display: flex; } body { padding-bottom: 68px; } }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .87rem; color: var(--ink-3); padding-block: .85rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .5rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.crumbs a { color: var(--ink-3); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--brand-cta-hover); text-decoration: underline; }
.crumbs li + li::before { content: "‹"; margin-inline-end: .5rem; color: var(--line); }
.crumbs [aria-current="page"] { color: var(--ink-2); font-weight: 700; }

/* ---------- accessibility widget ---------- */
.a11y-btn {
  position: fixed; inset-inline-start: 14px; bottom: 14px; z-index: 80;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: #1a56c4; color: #fff; box-shadow: var(--shadow-lg);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .18s ease;
}
.a11y-btn:hover { transform: scale(1.06); }
.a11y-btn svg { width: 27px; height: 27px; fill: #fff; }
@media (max-width: 760px) { .a11y-btn { bottom: 78px; width: 44px; height: 44px; } .a11y-btn svg { width: 23px; height: 23px; } }
.a11y-panel {
  position: fixed; inset-inline-start: 14px; bottom: 74px; z-index: 81;
  width: min(292px, calc(100vw - 28px)); background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1rem; display: none;
}
.a11y-panel.is-open { display: block; }
@media (max-width: 760px) { .a11y-panel { bottom: 130px; } }
.a11y-panel h2 { font-size: 1.05rem; margin-bottom: .7rem; }
.a11y-panel .a11y-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .42rem; }
.a11y-panel button.a11y-opt {
  font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer;
  padding: .58rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--ink-2); text-align: center;
}
.a11y-panel button.a11y-opt:hover { border-color: var(--brand); background: var(--brand-soft); }
.a11y-panel button.a11y-opt[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.a11y-panel .a11y-reset { grid-column: 1 / -1; background: #fff; }
.a11y-panel .a11y-statement { display: block; margin-top: .7rem; font-size: .84rem; text-align: center; }

/* a11y modes applied to <html> */
html.a11y-contrast { filter: contrast(1.32) saturate(1.28); }
html.a11y-dark { filter: invert(1) hue-rotate(180deg); background: #fff; }
html.a11y-dark img, html.a11y-dark video, html.a11y-dark .a11y-btn { filter: invert(1) hue-rotate(180deg); }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: .16em; font-weight: 800 !important; }
html.a11y-readable, html.a11y-readable body, html.a11y-readable * { font-family: Arial, "Segoe UI", sans-serif !important; letter-spacing: .012em !important; }
html.a11y-bigspace, html.a11y-bigspace body { line-height: 2.05 !important; word-spacing: .13em !important; }
html.a11y-nomotion * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .callbar, .a11y-btn, .a11y-panel, .cta-band, form { display: none !important; }
  body { padding: 0; }
  .prose img { box-shadow: none; }
}

/* ---------- blog archive ---------- */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.post-list li {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding-inline-start: 1.2rem;
  padding: 1.1rem 1.2rem; background: #fff; box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.post-list li:hover { border-color: var(--brand); box-shadow: var(--shadow); }
/* cancel the .prose bullet: these are cards, not list items */
.prose .post-list > li::before { content: none; }
.prose .post-list > li { padding-inline-start: 1.2rem; }
.post-list a { text-decoration: none; }
.post-list h3 { margin: 0 0 .35em; font-size: var(--step-1); color: var(--ink); }
.post-list a:hover h3 { color: var(--brand-cta-hover); }
.post-list p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* ==========================================================================
   Homepage landing layout
   Only the homepage uses this; every other page keeps the article + sidebar
   layout that mirrors the WordPress build.
   ========================================================================== */

.hp-eyebrow {
  font-size: .95rem; font-weight: 800; letter-spacing: .02em;
  color: var(--brand); margin: 0 0 .6rem;
}

/* ---------- hero ---------- */
.hp-hero {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-block: clamp(3rem, 2rem + 7vw, 7rem);
  border-bottom: 4px solid var(--brand-cta);
}
.hp-hero__inner { max-width: 760px; }
.hp-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: .6em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}
.hp-hero .hp-eyebrow { color: #ffc46b; }
.hp-hero__cta { display: flex; flex-wrap: wrap; gap: .65rem; }
.hp-hero__cta .btn span { display: inline-flex; align-items: baseline; gap: .38rem; }
.btn--outline {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  backdrop-filter: blur(4px);
}
.btn--outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 560px) {
  .hp-hero__cta { flex-direction: column; align-items: stretch; }
  .hp-hero__cta .btn { width: 100%; }
}

/* ---------- trust strip ---------- */
.hp-trust { background: #fff; border-bottom: 1px solid var(--line); padding-block: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.hp-trust__title { text-align: center; font-size: var(--step-2); margin-bottom: 1.4rem; }
.hp-trust__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem .6rem; list-style: none; margin: 0; padding: 0;
}
.hp-trust__grid li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .5rem; padding: .4rem .6rem;
  border-inline-start: 1px solid var(--line-2);
}
.hp-trust__grid li:first-child { border-inline-start: 0; }
@media (max-width: 720px) { .hp-trust__grid li { border-inline-start: 0; } }
.hp-trust__icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-cta);
  display: inline-flex; align-items: center; justify-content: center;
}
.hp-trust__icon svg { width: 23px; height: 23px; fill: currentColor; }
.hp-trust__icon svg[fill="none"] { fill: none; }
.hp-trust__text { font-weight: 700; font-size: .95rem; color: var(--ink-2); line-height: 1.4; }

/* ---------- service cards ---------- */
.hp-services { padding-block: clamp(2.4rem, 1.6rem + 3vw, 4rem); background: var(--bg-2); }
.hp-sec-head { margin-bottom: 1.5rem; }
.hp-sec-head h2 { font-size: var(--step-3); margin: 0; }
.hp-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .9rem; list-style: none; margin: 0; padding: 0;
}
.hp-card {
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, #2b333d 0%, #171c22 100%);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow); min-height: 132px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hp-card a {
  display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem;
  height: 100%; min-height: 132px; padding: 1rem 1.05rem;
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1.02rem;
}
.hp-card a:hover { color: #fff; }
.hp-card svg { width: 20px; height: 20px; flex: none; color: var(--brand); transition: transform .2s ease; }
.hp-card:hover svg { transform: translateX(-4px); }

/* ---------- lead + calculator ---------- */
.hp-lead { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.4rem, 1rem + 2vw, 2.6rem); align-items: start; }
@media (max-width: 900px) { .hp-lead { grid-template-columns: 1fr; } }

/* ---------- dark band ---------- */
.hp-band {
  background: linear-gradient(150deg, #1b2129 0%, #2a323d 100%);
  color: #e6ebf1;
  padding-block: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  text-align: center;
}
.hp-band h2 { color: #fff; font-size: var(--step-3); }
.hp-band p { color: #c7d0da; }
.hp-band a:not(.btn) { color: #ffcb8a; }
.hp-band__cta { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.6rem; }
.hp-band__cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.hp-band__cta .btn--ghost:hover { background: #fff; color: var(--ink); }
