/* ============================================================
   KwikTape — "Story Pole" design system
   Warm mortar + ink charcoal base, blueprint-indigo structure,
   five course colors as a functional accent system.
   ============================================================ */

:root {
  /* Base */
  --ink:        #14171d;
  --ink-2:      #262b35;
  --ink-3:      #444c5b;
  --paper:      #f5f1e9;
  --paper-2:    #ece5d8;
  --paper-3:    #e2d9c8;
  --white:      #fffdf8;

  /* Structural accent — blueprint indigo */
  --blue:       #1d3c66;
  --blue-2:     #2f5e9e;
  --blue-ink:   #11233f;

  /* Warm secondary — brick clay (used sparingly) */
  --clay:       #9c4a2e;

  /* Functional course colors (the product DNA + the scale motif) */
  --t-yellow:   #f3b41b;
  --t-red:      #d4392e;
  --t-green:    #2f9e57;
  --t-blue:     #2f6fb0;
  --t-orange:   #ef7d2e;

  /* Lines & shadow */
  --line:       rgba(20,23,29,.12);
  --line-2:     rgba(20,23,29,.20);
  --line-light: rgba(255,253,248,.16);
  --shadow-sm:  0 1px 2px rgba(20,23,29,.06), 0 2px 8px rgba(20,23,29,.05);
  --shadow:     0 4px 12px rgba(20,23,29,.08), 0 12px 32px rgba(20,23,29,.10);
  --shadow-lg:  0 8px 24px rgba(20,23,29,.12), 0 28px 64px rgba(20,23,29,.18);

  /* Type */
  --display: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Layout */
  --wrap: 1200px;
  --gut: clamp(1.1rem, 4vw, 2rem);
  --radius: 4px;
  --radius-lg: 10px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-stretch: 112%;
  color: var(--ink);
}

/* ---------- Utilities ---------- */
.wrap { width: min(100% - 2*var(--gut), var(--wrap)); margin-inline: auto; }
.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blue-2);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block;
}
.eyebrow.center { justify-content: center; }
.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;
}
.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--ink); color: var(--white); padding: .7rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius); z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--display); font-weight: 700; font-stretch: 108%;
  letter-spacing: .01em; font-size: .98rem;
  padding: .92em 1.5em; border-radius: var(--radius);
  border: 2px solid transparent; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.btn-accent { background: var(--t-orange); color: var(--ink); }
.btn-accent:hover { background: #ff8d3e; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-on-dark.btn-ghost { color: var(--white); border-color: var(--line-light); }
.btn-on-dark.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn svg { width: 1.05em; height: 1.05em; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: .76rem; letter-spacing: .04em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; }
.topbar a { color: var(--paper); transition: color .2s; }
.topbar a:hover { color: var(--t-yellow); }
.topbar .tb-right { display: flex; gap: 1.4rem; align-items: center; }
.topbar .dot { color: var(--t-green); }
@media (max-width: 720px){ .topbar .tb-hide { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,241,233,.86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(245,241,233,.95); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .7rem 0; }

.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand-mark { width: 38px; height: 44px; flex-shrink: 0; }
.brand-name { font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: 1.32rem; letter-spacing: -.02em; line-height: 1; }
.brand-name span { color: var(--blue-2); }
.brand-sub { display:block; font-family: var(--mono); font-size: .58rem; letter-spacing: .26em; color: var(--ink-3); margin-top: 3px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; padding: 0; }
.nav-links a {
  display: block; padding: .55rem .85rem; border-radius: var(--radius);
  font-weight: 500; font-size: .96rem; color: var(--ink-2); transition: color .2s, background .2s;
  position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); background: rgba(29,60,102,.07); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-weight: 600; font-size: .92rem; color: var(--ink); padding: .4rem .2rem; }
.nav-phone:hover { color: var(--blue); }
.nav-phone svg { width: 1em; height: 1em; color: var(--blue-2); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--white); align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px){
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.2rem; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .85rem .4rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links .m-cta { margin-top: .9rem; }
  .nav-links .m-cta .btn { width: 100%; }
  .nav .nav-cta .btn-accent { display: none; }
  .nav .nav-phone { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("images/build-wall-2.jpg") center/cover no-repeat;
  opacity: .20; filter: grayscale(.3) contrast(1.05);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(17,20,26,.97) 0%, rgba(17,20,26,.86) 46%, rgba(17,20,26,.55) 100%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-eyebrow { color: var(--t-yellow); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6.4vw, 4.7rem);
  margin: 1.1rem 0 .2rem;
  font-stretch: 118%;
}
.hero h1 .hl { color: var(--t-orange); }
.hero-lead { font-size: clamp(1.06rem, 1.7vw, 1.28rem); color: rgba(245,241,233,.82); max-width: 33ch; margin: 1.2rem 0 1.9rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-light); }
.hero-trust .ht { display: flex; flex-direction: column; }
.hero-trust .ht b { font-family: var(--display); font-size: 1.6rem; font-stretch: 112%; color: var(--white); line-height: 1; }
.hero-trust .ht span { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: rgba(245,241,233,.62); margin-top: .35rem; text-transform: uppercase; }

/* Coursing scale — signature motif */
.hero-scale { position: relative; justify-self: center; }
.scale-card {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-lg); width: min(360px, 80vw);
  border: 1px solid rgba(255,255,255,.4);
}
.scale-card h3 { font-size: 1.05rem; font-stretch: 108%; }
.scale-card .sc-sub { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); letter-spacing: .04em; margin: .25rem 0 1.1rem; }
.scale-list { display: flex; flex-direction: column; gap: .5rem; }
.scale-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: .7rem; padding: .35rem 0; border-top: 1px dashed var(--line); }
.scale-row:first-child { border-top: 0; }
.scale-chip { width: 18px; height: 18px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.scale-name { font-weight: 600; font-size: .92rem; }
.scale-name small { color: var(--ink-3); font-weight: 400; font-family: var(--mono); font-size: .72rem; margin-left: .3rem; }
.scale-val { font-family: var(--mono); font-size: .82rem; font-weight: 500; color: var(--blue); }

@media (max-width: 880px){
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-scale { justify-self: start; margin-top: .5rem; }
}

/* ============================================================
   BENEFIT BADGES (Splash "Free Proof / Low Min / Fast")
   ============================================================ */
.badges { background: var(--white); border-bottom: 1px solid var(--line); }
.badges .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.badge { display: flex; gap: 1rem; align-items: flex-start; padding: 2rem clamp(1rem,2.4vw,1.8rem); }
.badge + .badge { border-left: 1px solid var(--line); }
.badge-ico {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: var(--radius);
  background: rgba(29,60,102,.08); color: var(--blue); display: grid; place-items: center;
}
.badge-ico svg { width: 26px; height: 26px; }
.badge h3 { font-size: 1.12rem; font-stretch: 106%; }
.badge p { font-size: .92rem; color: var(--ink-3); margin-top: .3rem; }
@media (max-width: 760px){
  .badges .wrap { grid-template-columns: 1fr; }
  .badge + .badge { border-left: 0; border-top: 1px solid var(--line); }
  .badge { padding: 1.4rem .2rem; }
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.tight { padding: clamp(2.6rem, 5vw, 4rem) 0; }
.section-head { max-width: 64ch; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: .8rem 0 .6rem; }
.section-head p { font-size: 1.08rem; color: var(--ink-3); }
.bg-paper2 { background: var(--paper-2); }
.bg-white { background: var(--white); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink h2, .bg-ink h3 { color: var(--white); }
.bg-ink .section-head p { color: rgba(245,241,233,.72); }
.bg-blue { background: var(--blue); color: var(--paper); }
.bg-blue h2, .bg-blue h3 { color: var(--white); }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s, border-color .28s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-media { position: relative; aspect-ratio: 4/3; background: var(--paper-3); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-tag {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--white); padding: .3rem .6rem; border-radius: 3px;
}
.card-tag.accent { background: var(--t-orange); color: var(--ink); }
.card-body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.22rem; font-stretch: 104%; }
.card-body p { font-size: .94rem; color: var(--ink-3); margin: .5rem 0 1rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.card-price { font-family: var(--mono); font-weight: 600; }
.card-price b { font-family: var(--display); font-size: 1.5rem; font-stretch: 108%; color: var(--blue); }
.card-price small { display: block; font-size: .72rem; color: var(--ink-3); letter-spacing: .04em; }
.card-link { font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--blue-2); display: inline-flex; align-items: center; gap: .35em; }
.card-link svg { width: .9em; height: .9em; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ============================================================
   POWER / EDITORIAL (split with image)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3.2; object-fit: cover; }
.split-media .scale-rail { position: absolute; }
.split-body h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin: .7rem 0 1rem; }
.split-body p { color: var(--ink-3); margin-bottom: 1rem; }
.bg-ink .split-body p { color: rgba(245,241,233,.78); }
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .8rem; margin: 1.4rem 0 1.8rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; }
.check-list svg { width: 1.3em; height: 1.3em; color: var(--t-green); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 820px){
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.flip .split-media { order: 0; }
}

/* Vertical color rail decoration */
.vrail { display: inline-flex; flex-direction: column; gap: 3px; width: 12px; }
.vrail span { height: 14px; border-radius: 2px; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px){ .pricing-wrap { grid-template-columns: 1fr; } }

.price-table { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table .pt-head {
  background: var(--ink); color: var(--paper); padding: 1rem 1.4rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.price-table .pt-head h3 { color: var(--white); font-size: 1.15rem; font-stretch: 106%; }
.price-table .pt-head span { font-family: var(--mono); font-size: .74rem; color: rgba(245,241,233,.7); }
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem 1.4rem; border-top: 1px solid var(--line); transition: background .2s;
}
.price-row:hover { background: var(--paper); }
.price-row .pr-name { font-weight: 600; font-size: 1rem; }
.price-row .pr-name small { display: block; font-weight: 400; color: var(--ink-3); font-size: .85rem; margin-top: .15rem; }
.price-row .pr-price { font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: 1.42rem; color: var(--blue); white-space: nowrap; }
.price-row.featured { background: rgba(243,180,27,.12); }
.price-row.featured .pr-name::after {
  content: "Best value"; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--t-yellow); color: var(--ink); padding: .12rem .45rem; border-radius: 3px; margin-left: .6rem; vertical-align: middle;
}
.pt-note { padding: 1rem 1.4rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); font-family: var(--mono); background: var(--paper-2); }

/* PayPal add-to-cart controls inside the price table */
.price-row { grid-template-columns: 1fr auto; }
.pr-buy { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.pp-form { display: flex; align-items: center; gap: .5rem; margin: 0; }
.pp-select {
  font: inherit; font-size: .82rem; padding: .42rem .55rem; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: var(--white); color: var(--ink); max-width: 168px;
}
.pp-select:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(47,94,158,.15); }
.pr-add {
  display: inline-flex; align-items: center; gap: .4em; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: .86rem;
  background: var(--blue); color: var(--white); border: 0; border-radius: var(--radius);
  padding: .5rem .85rem; transition: background .2s, transform .15s;
}
.pr-add:hover { background: var(--blue-ink); transform: translateY(-1px); }
.pr-add svg { width: 1em; height: 1em; }
.cart-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.cart-bar .cb-trust { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: .5rem; }
.cart-bar .cb-trust svg { width: 1.1em; height: 1.1em; color: var(--t-green); }
.btn-paypal { background: #ffc439; color: #11233f; }
.btn-paypal:hover { background: #ffb71c; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-paypal svg { width: 1.1em; height: 1.1em; }
@media (max-width: 560px){
  .price-row { grid-template-columns: 1fr; }
  .pr-buy { align-items: stretch; }
  .pp-form { justify-content: space-between; }
  .pp-select { max-width: none; flex: 1; }
}

.order-card {
  position: sticky; top: 96px;
  background: var(--blue); color: var(--paper); border-radius: var(--radius-lg);
  padding: 1.8rem 1.7rem; box-shadow: var(--shadow);
}
.order-card h3 { color: var(--white); font-size: 1.3rem; }
.order-card p { color: rgba(245,241,233,.82); font-size: .95rem; margin: .7rem 0 1.2rem; }
.order-card .oc-row { display: flex; gap: .8rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line-light); font-size: .95rem; }
.order-card .oc-row svg { width: 1.2em; height: 1.2em; color: var(--t-yellow); flex-shrink: 0; }
.order-card .btn { width: 100%; margin-top: 1.3rem; }
.order-card .oc-phone { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; }

/* Color legend strip */
.legend { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.legend-item { text-align: center; }
.legend-swatch { height: 64px; border-radius: var(--radius); box-shadow: inset 0 -10px 18px rgba(0,0,0,.15), var(--shadow-sm); position: relative; display: grid; place-items: center; }
.legend-swatch b { font-family: var(--display); font-stretch: 110%; font-size: 1.5rem; color: rgba(20,23,29,.55); }
.legend-num { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); margin-top: .6rem; letter-spacing: .06em; }
.legend-name { font-weight: 600; font-size: .95rem; margin-top: .1rem; }
.legend-oc { font-family: var(--mono); font-size: .82rem; color: var(--blue); margin-top: .15rem; }
@media (max-width: 620px){ .legend { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   GALLERY STRIP
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery a { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; background: var(--paper-3); display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.gallery a:hover img { transform: scale(1.07); }
.gallery a::after {
  content: attr(data-cap); position: absolute; inset: auto 0 0 0; padding: 1.4rem .7rem .5rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--white);
  background: linear-gradient(transparent, rgba(17,20,26,.8)); opacity: 0; transition: opacity .3s;
}
.gallery a:hover::after { opacity: 1; }
@media (max-width: 720px){ .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem 1.6rem; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: 2.4rem;
  color: var(--paper-3); line-height: 1; display: block; margin-bottom: .6rem;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--ink-3); font-size: .95rem; margin-top: .5rem; }
@media (max-width: 760px){ .steps { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 1.3rem 3rem 1.3rem 0;
  font-family: var(--display); font-weight: 700; font-stretch: 104%; font-size: 1.1rem; color: var(--ink);
  position: relative; display: flex; gap: .5rem;
}
.faq-q::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--blue-2); font-weight: 400; transition: transform .3s; font-family: var(--body);
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 0 1.4rem; color: var(--ink-3); }
.faq-a-inner p + p { margin-top: .7rem; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { position: relative; overflow: hidden; text-align: center; }
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: url("images/finished-wall.jpg") center/cover; opacity: .14;
}
.cta-banner .wrap { position: relative; z-index: 2; }
.cta-banner h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.cta-banner p { color: rgba(245,241,233,.82); max-width: 52ch; margin: 1rem auto 2rem; font-size: 1.1rem; }
.cta-banner .hero-cta { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(245,241,233,.72); padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { margin: 1rem 0; max-width: 34ch; font-size: .92rem; }
.foot-scale { display: flex; gap: 4px; margin-top: 1.2rem; }
.foot-scale span { width: 28px; height: 8px; border-radius: 2px; }
.footer-col h4 { color: var(--white); font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a, .footer-col address { color: rgba(245,241,233,.72); font-size: .92rem; font-style: normal; transition: color .2s; }
.footer-col a:hover { color: var(--t-yellow); }
.footer-col address { line-height: 1.7; }
.footer-bottom { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-light); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--mono); font-size: .76rem; color: rgba(245,241,233,.5); }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   STICKY MOBILE CALL BAR
   ============================================================ */
.mobile-bar { display: none; }
@media (max-width: 760px){
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--white); border-top: 1px solid var(--line-2); box-shadow: 0 -4px 18px rgba(20,23,29,.12);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem; font-family: var(--display); font-weight: 700; font-size: .98rem; }
  .mobile-bar a svg { width: 1.1em; height: 1.1em; }
  .mobile-bar .mb-call { color: var(--ink); }
  .mobile-bar .mb-order { background: var(--blue); color: var(--white); }
  body { padding-bottom: 56px; }
}

/* ============================================================
   FORMS
   ============================================================ */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line-2); border-radius: var(--radius);
  font: inherit; background: var(--paper); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(47,94,158,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }

/* Info list (contact) */
.info-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.3rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-ico { width: 44px; height: 44px; border-radius: var(--radius); background: rgba(29,60,102,.08); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.info-ico svg { width: 22px; height: 22px; }
.info-list h3 { font-size: 1.05rem; font-stretch: 104%; }
.info-list a, .info-list address { color: var(--ink-3); font-style: normal; }
.info-list a:hover { color: var(--blue); }

/* Contact two-column layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }

/* Spec rail (about) */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.stat { text-align: center; padding: 1.6rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(2rem,4vw,2.8rem); color: var(--blue); line-height: 1; }
.stat span { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--ink-3); margin-top: .5rem; display: block; text-transform: uppercase; }
@media (max-width: 680px){ .stat-grid { grid-template-columns: 1fr 1fr; } }

/* Page hero (interior pages) */
.page-hero { background: var(--ink); color: var(--paper); padding: clamp(2.6rem,5vw,4.2rem) 0; position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: url("images/brick-texture.jpg") center/cover; opacity:.12; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .7rem 0 .5rem; }
.page-hero p { color: rgba(245,241,233,.78); max-width: 56ch; font-size: 1.08rem; }
.crumbs { font-family: var(--mono); font-size: .78rem; color: rgba(245,241,233,.6); display: flex; gap: .5rem; }
.crumbs a:hover { color: var(--t-yellow); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover, .gallery a:hover img { transform: none; }
}

/* Prose */
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.1rem; color: var(--ink-2); }
.prose h2 { font-size: 1.7rem; margin: 2rem 0 .8rem; }
.prose h3 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
