/* ==========================================================================
   Riverbend Building Supply — site styles
   --------------------------------------------------------------------------
   BRAND COLOURS: no logo file was supplied, so --brand and --accent below are
   provisional. When the logo is available, replace these two values (and
   their -dark/-tint variants) with colours sampled from the logo.
   ========================================================================== */
:root {
  --brand: #1d4a5e;        /* provisional — replace with logo primary */
  --brand-dark: #133442;
  --brand-tint: #e6eef1;
  --accent: #b86b1c;       /* provisional — timber amber, replace with logo accent */
  --accent-dark: #94540f;
  --charcoal: #23282d;
  --ink: #2f353b;
  --muted: #5b646d;
  --line: #dde1e5;
  --grey: #f3f4f5;
  --white: #ffffff;
  --focus: #1a73e8;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(20, 30, 40, .06), 0 8px 24px rgba(20, 30, 40, .08);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--white); text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--charcoal); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--grey { background: var(--grey); }
.section--dark { background: var(--charcoal); color: #e8eaec; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .9rem; }
.section--dark .eyebrow { color: #e0a965; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 46rem; }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; justify-content: space-between; }
.section-head--split > div { max-width: 46rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .75em 1.4em;
  border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent-dark); color: #fff; }
.btn--primary:hover { background: #7b450b; color: #fff; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); color: #fff; }
.btn--outline { border-color: currentColor; color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--charcoal); }
.btn--light:hover { background: #eef0f2; color: var(--charcoal); }
.btn--ghost-light { border-color: rgba(255,255,255,.85); color: #fff; background: rgba(0,0,0,.08); }
.btn--ghost-light:hover { background: #fff; color: var(--charcoal); }
.btn--sm { min-height: 40px; padding: .5em 1.1em; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--charcoal); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-sub { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-toggle { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none; }
.primary-nav a:hover { background: var(--grey); color: var(--charcoal); }
.primary-nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.primary-nav .nav-cta { margin-left: 10px; }
.primary-nav .nav-cta a { background: var(--accent-dark); color: #fff; border-radius: 999px; padding: 10px 18px; }
.primary-nav .nav-cta a:hover { background: #7b450b; color: #fff; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; color: var(--charcoal); cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, opacity .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0,0,0,.08); display: none; }
  .js .primary-nav.is-open { display: block; }
  .no-js .primary-nav { position: static; display: block; box-shadow: none; border: 0; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; gap: 2px; }
  .primary-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); background: var(--grey); }
  .primary-nav .nav-cta { margin: 10px 0 0; }
  .primary-nav .nav-cta a { text-align: center; padding: 14px 18px; }
  .no-js .header-inner { flex-wrap: wrap; }
}
@media (max-width: 420px) { .brand-sub { display: none; } .brand-name { font-size: 1.02rem; } }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--charcoal); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(15,22,28,.72) 0%, rgba(15,22,28,.35) 55%, rgba(15,22,28,0) 80%),
              linear-gradient(180deg, rgba(15,22,28,.1) 0%, rgba(15,22,28,.3) 45%, rgba(15,22,28,.8) 100%); }
.hero__content { padding: clamp(96px, 16vh, 180px) 0 clamp(48px, 8vw, 88px); max-width: 48rem; }
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero p { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: rgba(255,255,255,.92); max-width: 40rem; }
.hero .btn-row { margin-top: 28px; }
.hero .eyebrow { color: #f0c58f; }

.page-hero { background: var(--grey); padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.page-hero--image { position: relative; isolation: isolate; color: #fff; background: var(--charcoal); border: 0; overflow: hidden; }
.page-hero--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,22,28,.85), rgba(15,22,28,.45)); }
.page-hero--image h1 { color: #fff; } .page-hero--image .lede { color: rgba(255,255,255,.9); }
.page-hero--image .eyebrow { color: #f0c58f; }
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; color: var(--muted); }
.breadcrumb a { color: inherit; }

@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(15,22,28,.45) 0%, rgba(15,22,28,.72) 40%, rgba(15,22,28,.9) 100%); }
  .page-hero--image::after { background: rgba(15,22,28,.78); }
}

/* Cards / grids ------------------------------------------------------------ */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: box-shadow .25s, transform .25s, border-color .25s; }
.card:hover { box-shadow: var(--shadow); }
.service-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.service-card:hover { transform: translateY(-3px); border-color: #c9d2d8; color: inherit; }
.service-card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-bottom: 12px; }
.service-card .icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: .2em; }
.service-card p { color: var(--muted); margin: 0 0 14px; }
.service-card .link-arrow { margin-top: auto; color: var(--brand); }

/* Plan cards */
.plan-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.plan-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.plan-card__media { aspect-ratio: 16 / 10; background: #eef1f3; display: grid; place-items: center; overflow: hidden; }
.plan-card__media { position: relative; }
.plan-card__media img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.plan-card__bg { position: absolute; inset: -20px; background: center / cover no-repeat; filter: blur(18px) saturate(1.1); opacity: .55; }
.plan-card__media--drawing { background: #fff; border-bottom: 1px solid var(--line); }
.plan-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.plan-card__num { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); }
.plan-card h3 { margin: 4px 0 10px; font-size: 1.3rem; }
.plan-card h3 a { color: inherit; text-decoration: none; }
.plan-card h3 a::after { content: ""; position: absolute; inset: 0; }
.plan-card { position: relative; }
.plan-card h3 a:focus-visible { outline: none; }
.plan-card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.spec-chips { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.spec-chips li { font-size: .86rem; font-weight: 600; background: var(--grey); border-radius: 999px; padding: 4px 11px; color: var(--ink); }
.plan-card__type { margin-top: auto; font-size: .9rem; color: var(--muted); }

/* Split feature */
.split { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr 1fr; align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media img { border-radius: var(--radius-lg); width: 100%; }
.split__media figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }

/* Photo mosaic (home preview) */
.mosaic { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.mosaic a { display: block; border-radius: var(--radius); overflow: hidden; background: #ddd; aspect-ratio: 3 / 2; }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic a:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; } .mosaic a:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; } }

/* Contact strip */
.contact-strip { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 32px; }
.contact-item { padding: 22px; border-radius: var(--radius-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.contact-item h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #c9cfd4; margin-bottom: 8px; font-weight: 700; }
.contact-item a, .contact-item p { color: #fff; font-size: 1.02rem; font-weight: 600; margin: 0; overflow-wrap: break-word; }
.contact-item a { text-decoration-color: rgba(255,255,255,.4); }
.contact-item a:hover { text-decoration-color: #fff; }
.contact-item a[href^="mailto"] { font-size: .95rem; }
@media (min-width: 1000px) { .contact-strip { grid-template-columns: .8fr 1.35fr 1fr 1fr; } }
.contact-item .small { font-weight: 400; color: #c9cfd4; font-size: .9rem; margin-top: 4px; }

/* Services page */
.service-block { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.service-block:last-of-type { border-bottom: 0; }
.service-block .split__media img { aspect-ratio: 3 / 2; object-fit: cover; }
.service-block .split__media img.contain { object-fit: contain; background: #eef1f3; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4a5e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 66px; background: var(--grey); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .95rem; }
.steps strong { display: block; color: var(--charcoal); }
.term { background: var(--brand-tint); border-left: 3px solid var(--brand); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .97rem; margin: 0 0 1.2em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink); }
.toc a:hover { border-color: var(--brand); color: var(--brand); }

/* Plans catalogue */
.filters { display: grid; gap: 14px; grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px; margin-bottom: 18px; }
@media (max-width: 980px) { .filters { grid-template-columns: 1fr 1fr; } .filters .field--search { grid-column: 1 / -1; } }
@media (max-width: 520px) { .filters { grid-template-columns: 1fr; } }
.results-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 22px; color: var(--muted); }
.notice { background: #fff7ec; border: 1px solid #f0d6b2; color: #5a3d14; border-radius: var(--radius); padding: 14px 18px; font-size: .95rem; }
.notice strong { color: #4a300c; }
.empty-state { text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); }

/* Plan detail */
.plan-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .plan-layout { grid-template-columns: 1fr; } }
.plan-main-img { border-radius: var(--radius-lg); border: 1px solid var(--line); background: #eef1f3; overflow: hidden; }
.plan-main-img button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.plan-main-img button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.plan-main-img img { width: 100%; max-height: 640px; object-fit: contain; background: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; list-style: none; padding: 0; }
.thumbs button { all: unset; display: block; cursor: pointer; border-radius: 8px; border: 2px solid var(--line); overflow: hidden; aspect-ratio: 4 / 3; background: #fff; width: 100%; box-sizing: border-box; }
.thumbs button[aria-current="true"] { border-color: var(--brand); }
.thumbs button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.thumb-label { font-size: .8rem; color: var(--muted); margin-top: 4px; text-align: center; }
.spec-panel { position: sticky; top: 96px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .98rem; }
.spec-table th { color: var(--muted); font-weight: 600; width: 42%; padding-right: 12px; }
.spec-table td { color: var(--charcoal); font-weight: 600; }
.stack { display: grid; gap: 10px; }
.stack .btn { width: 100%; }
.pdf-viewer { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #e9ecef; }
.pdf-viewer object, .pdf-viewer iframe { display: block; width: 100%; height: min(80vh, 860px); border: 0; }
.pdf-fallback { padding: 28px; text-align: center; background: #fff; }
.pdf-toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: 8px; }
.feature-list { columns: 2 220px; column-gap: 32px; padding-left: 1.1em; }
.feature-list li { break-inside: avoid; margin-bottom: 6px; }

/* Gallery */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip-btn { font: inherit; font-weight: 600; font-size: .95rem; padding: 9px 16px; min-height: 42px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip-btn:hover { border-color: var(--brand); }
.chip-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.gallery figure { margin: 0; }
.gallery button { all: unset; display: block; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; background: #e4e7ea; width: 100%; box-sizing: border-box; }
.gallery button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.gallery img { width: 100%; height: auto; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.025); }
.gallery figcaption { font-size: .93rem; color: var(--muted); padding: 10px 2px 0; }
.gallery .cat { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 2px; }

/* Lightbox */
.lightbox { padding: 0; border: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(12,16,20,.96); color: #fff; }
.lightbox::backdrop { background: rgba(12,16,20,.9); }
.lightbox__inner { position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 12px; }
.lightbox__count { font-size: .92rem; color: #c9cfd4; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #fff; }
.lightbox__caption { text-align: center; padding: 14px 20px 22px; color: #e7eaec; max-width: 60rem; margin: 0 auto; font-size: 1rem; }
.lb-btn { font: inherit; font-weight: 700; display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
@media (max-width: 640px) { .lightbox__stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } .lightbox__caption { padding-bottom: 76px; } }

/* Forms */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 700; color: var(--charcoal); font-size: .97rem; }
.field .opt { font-weight: 500; color: var(--muted); font-size: .88rem; }
.field .req { color: #a3261a; font-weight: 700; }
.field .hint { font-size: .87rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  font: inherit; font-size: 1rem; width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid #b9c1c8; background: #fff; color: var(--charcoal); }
textarea { min-height: 150px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
[aria-invalid="true"] { border-color: #b3261e !important; }
.field-error { color: #a3261a; font-size: .88rem; font-weight: 600; }
.form-status { border-radius: var(--radius); padding: 16px 18px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status--success { background: #e9f6ee; border: 1px solid #a8d8b9; color: #16502c; }
.form-status--error { background: #fdecea; border: 1px solid #f1b7b1; color: #7a1d14; }
.form-status--info { background: var(--brand-tint); border: 1px solid #b9cfd8; color: var(--brand-dark); }
.form-status a { color: inherit; font-weight: 700; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aside-card { background: var(--grey); border-radius: var(--radius-lg); padding: 26px; }
.aside-card h3 { font-size: 1.05rem; margin-top: 18px; }
.aside-card h3:first-child { margin-top: 0; }
.aside-card p { margin-bottom: .4em; }

/* Values */
.values { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.value { padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.value h3 { margin-bottom: .3em; }
.value p { color: var(--muted); margin: 0; }
.fact-row { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 28px 0 0; padding: 0; list-style: none; }
.fact-row li { border-left: 3px solid var(--accent); padding-left: 14px; }
.fact-row strong { display: block; font-size: 1.6rem; color: var(--charcoal); letter-spacing: -0.02em; }
.fact-row span { color: var(--muted); font-size: .92rem; }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 .25em; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); }

/* Footer */
.site-footer { background: #1b1f23; color: #b8c0c7; padding: 64px 0 28px; font-size: .96rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #e3e7ea; text-decoration-color: rgba(255,255,255,.3); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-sub { color: #9aa3ab; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; color: #8f99a2; }

/* Reveal animation (only when JS is running and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
