/* ============================================================
   Kyalami Blinds — stylesheet
   Theme: equestrian-estate · basalt + dune + burnished orange
   Fonts: Zilla Slab (display) + Assistant (body)
   ============================================================ */

:root {
  --ink: #23262b;
  --basalt: #2c2f35;
  --basalt-soft: #3a3e46;
  --basalt-line: #4b4f58;
  --dune: #ece0c8;
  --dune-mid: #ded0af;
  --dune-light: #faf5ea;
  --paper: #fffdf8;
  --white: #ffffff;
  --orange: #bd6330;
  --orange-deep: #73513e;
  --orange-glow: #d98a4f;
  --text-soft: #6b6558;
  --text-on-dark: #ece3d3;
  --text-on-dark-soft: #b3ac9c;

  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Assistant", "Segoe UI", sans-serif;

  --section-pad: clamp(64px, 9vw, 104px);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: inherit;
}

p { margin: 0 0 1em; max-width: 68ch; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 56px);
  padding-right: clamp(20px, 5vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--orange);
  transform-origin: left;
}

.rule {
  height: 1px;
  width: 100%;
  background: var(--basalt-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.rule.light { background: var(--dune-mid); }
.rule.in-view { transform: scaleX(1); }

section { padding: var(--section-pad) 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}
.section-head p { color: var(--text-soft); font-size: 1.05rem; }

/* focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2.5px solid var(--orange);
  outline-offset: 3px;
}

/* ---------------- reveal animation hooks ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- Nav ---------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav.solid {
  background: rgba(250, 245, 234, 0.96);
  backdrop-filter: blur(6px);
  padding: 14px 0;
  box-shadow: 0 8px 24px rgba(35,38,43,0.08);
  border-bottom-color: var(--dune-mid);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  transition: color 0.4s var(--ease);
}
.site-nav.solid .brand,
.dark-page .brand { color: var(--ink); }
.brand svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a {
  color: var(--text-on-dark);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.site-nav.solid .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
  color: var(--orange);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 6px 18px rgba(189,99,48,0.0);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(189,99,48,0.28); }

.nav-toggle {
  display: none;
  width: 40px; height: 34px;
  border: none; background: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--text-on-dark);
  transition: all 0.3s var(--ease);
}
.site-nav.solid .nav-toggle span,
.dark-page .nav-toggle span { background: var(--ink); }

/* ---------------- Split hero ---------------- */
.hero {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(340px, 46%) 1fr;
  min-height: 100vh;
}
.hero-panel {
  background: linear-gradient(175deg, var(--basalt) 0%, var(--ink) 100%);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(120px, 14vw, 160px) clamp(28px, 5vw, 64px) 64px;
  position: relative;
}
.hero-panel::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.18));
  pointer-events: none;
}
.hero-eyebrow {
  color: var(--orange-glow);
}
.hero-panel h1 {
  font-size: clamp(2.5rem, 4.3vw, 4.2rem);
  color: var(--white);
  max-width: 13ch;
}
.hero-panel h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
}
@media (prefers-reduced-motion: reduce) {
  .hero-panel h1 .word { opacity: 1; transform: none; }
}
.hero-reveal {
  opacity: 0;
  transform: translateY(20px);
}
@media (prefers-reduced-motion: reduce) {
  .hero-reveal { opacity: 1; transform: none; }
}

.hero-sub {
  color: var(--text-on-dark-soft);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-top: 18px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
  will-change: transform;
}
.btn-solid {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(189,99,48,0.0);
}
.btn-solid:hover { background: var(--orange-deep); box-shadow: 0 12px 28px rgba(189,99,48,0.35); }
.btn-outline {
  border-color: rgba(236,227,211,0.5);
  color: var(--text-on-dark);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.dark-page .btn-outline,
section .btn-outline.on-light {
  border-color: var(--ink);
  color: var(--ink);
}
section .btn-outline.on-light:hover { background: var(--ink); color: var(--white); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 30px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--basalt-line);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-on-dark-soft);
  max-width: 20ch;
}
.trust-item svg { flex-shrink: 0; color: var(--orange-glow); }

.hero-photo {
  position: relative;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(35,38,43,0.35), rgba(35,38,43,0) 40%);
  z-index: 1;
}

/* ---------------- Marquee ---------------- */
.marquee {
  background: var(--ink);
  color: var(--dune);
  overflow: hidden;
  padding: 15px 0;
  border-top: 1px solid var(--basalt-line);
  border-bottom: 1px solid var(--basalt-line);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
.marquee span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  font-weight: 500;
  padding: 0 2.2em;
  white-space: nowrap;
  color: var(--dune);
  opacity: 0.9;
}
.marquee span::after { content: "—"; margin-left: 2.2em; color: var(--orange); opacity: 0.8; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- Products grid ---------------- */
.products-section { background: var(--dune-light); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--dune-mid);
  border: 1px solid var(--dune-mid);
}
.product-card {
  background: var(--paper);
  padding: 34px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
}
.product-card:hover { background: var(--white); transform: translateY(-4px); box-shadow: 0 18px 30px rgba(35,38,43,0.08); z-index: 2; }
.product-icon { color: var(--ink); }
.product-icon .accent { stroke: var(--orange); }
.product-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0;
}
.product-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 0;
  flex-grow: 1;
}
.product-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.product-link svg { transition: transform 0.25s var(--ease); }
.product-card:hover .product-link svg { transform: translateX(4px); }

/* ---------------- Editorial photo section ---------------- */
.editorial {
  background: var(--paper);
}
.editorial-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.ed-figure {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.ed-figure img { width: 100%; height: 100%; object-fit: cover; }
.ed-main { grid-row: 1 / 3; min-height: 560px; }
.ed-sub { min-height: 271px; }
.ed-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 24px 20px;
  background: linear-gradient(0deg, rgba(35,38,43,0.82), rgba(35,38,43,0));
  color: var(--white);
}
.ed-caption .tag {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-glow);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.ed-caption p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--white);
  margin: 0;
  max-width: 32ch;
}

/* ---------------- Locale storytelling + fence animation ---------------- */
.locale {
  background: var(--basalt);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.locale .section-head p { color: var(--text-on-dark-soft); }
.locale .eyebrow { color: var(--orange-glow); }
.locale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 2;
}
.locale-copy p { color: var(--text-on-dark-soft); }
.locale-copy strong { color: var(--white); font-weight: 600; }
.locale-facts {
  display: grid;
  gap: 22px;
}
.locale-fact {
  border-left: 2px solid var(--orange);
  padding-left: 18px;
}
.locale-fact h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--white);
  margin-bottom: 6px;
}
.locale-fact p { font-size: 0.94rem; color: var(--text-on-dark-soft); margin: 0; }

.fence-wrap {
  margin-top: 64px;
  position: relative;
  z-index: 2;
}
.fence-wrap svg { width: 100%; height: auto; display: block; }
.fence-line {
  fill: none;
  stroke: var(--dune-mid);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.fence-line.accent {
  stroke: var(--orange);
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1.6s var(--ease) .15s;
}
.fence-post {
  fill: var(--dune-mid);
  opacity: 0;
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: bottom;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fence-wrap.in-view .fence-line { stroke-dashoffset: 0; }
.fence-wrap.in-view .fence-post { opacity: 1; transform: scaleY(1); }
.horizon-glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  width: 900px;
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(189,99,48,0.22), transparent 70%);
  z-index: 1;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(-54%, 0) scale(1); }
  to   { transform: translate(-46%, -6%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .horizon-glow { animation: none; }
  .fence-line, .fence-line.accent { transition: none; stroke-dashoffset: 0; }
  .fence-post { transition: none; opacity: 1; transform: none; }
}

/* ---------------- Process ---------------- */
.process { background: var(--dune-light); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  position: relative;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 26px; left: 6%; right: 6%;
  height: 1px;
  background: var(--dune-mid);
}
.process-step { position: relative; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--orange);
  background: var(--dune-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border: 1.5px solid var(--dune-mid);
  border-radius: 50%;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.process-step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.process-step p { font-size: 0.92rem; color: var(--text-soft); }

/* ---------------- Area chips ---------------- */
.areas-section { background: var(--paper); }
.area-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.area-chip {
  border: 1.5px solid var(--dune-mid);
  padding: 14px 24px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s var(--ease);
}
.area-chip svg { color: var(--orange); transition: transform .3s var(--ease); }
.area-chip:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.area-chip:hover svg { transform: translateX(4px); color: var(--orange-glow); }

/* ---------------- FAQ ---------------- */
.faq { background: var(--dune-light); }
.faq-list { max-width: 780px; }
.faq-item {
  border-bottom: 1px solid var(--dune-mid);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  flex-shrink: 0;
  width: 26px; height: 26px;
  position: relative;
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.faq-toggle::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-toggle::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-item[open] .faq-toggle::after { transform: translateX(-50%) rotate(90deg) scaleX(0); }
.faq-item[open] summary { color: var(--orange); }
.faq-body { padding: 0 4px 26px; color: var(--text-soft); max-width: 62ch; }
.faq-body p { margin: 0; }

/* ---------------- Closing CTA ---------------- */
.closing-cta {
  position: relative;
  background: linear-gradient(175deg, var(--ink), var(--basalt));
  color: var(--white);
  overflow: hidden;
  text-align: center;
}
.closing-glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 780px; max-height: 780px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(189,99,48,0.32), transparent 72%);
  top: -20%; left: 50%;
  transform: translateX(-50%);
  animation: driftglow 18s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes driftglow {
  from { transform: translate(-56%, -4%) scale(1); }
  to   { transform: translate(-44%, 6%) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) { .closing-glow { animation: none; } }
.closing-cta .wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.closing-cta h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); max-width: 16ch; color: var(--white); }
.closing-cta p { color: var(--text-on-dark-soft); font-size: 1.08rem; max-width: 50ch; }
.closing-cta .btn-solid { margin-top: 10px; }

/* ---------------- Enquiry form ---------------- */
.enquiry { background: var(--paper); }
.enquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.enquiry-info h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.enquiry-info p { color: var(--text-soft); }
.enquiry-info ul { display: grid; gap: 14px; margin-top: 24px; }
.enquiry-info li { display: flex; gap: 12px; font-size: 0.95rem; align-items: flex-start; }
.enquiry-info li svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.field input, .field select, .field textarea {
  border: 1.5px solid var(--dune-mid);
  background: var(--dune-light);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.25s var(--ease), background .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange);
  background: var(--white);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
}
.popia {
  font-size: 0.82rem;
  color: var(--text-soft);
  max-width: 46ch;
  line-height: 1.55;
}
.form-success {
  display: none;
  background: var(--dune-light);
  border: 1.5px solid var(--orange);
  padding: 28px;
  border-radius: 2px;
}
.form-success.show { display: block; }
.form-success h3 { margin-bottom: 8px; font-size: 1.2rem; }
.form-success p { color: var(--text-soft); margin: 0; }
form.hide { display: none; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-soft);
  padding: 64px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--basalt-line);
}
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand p { color: var(--text-on-dark-soft); font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-glow);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.92rem; color: var(--text-on-dark-soft); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  font-size: 0.82rem;
}
.footer-bottom .popia { color: var(--text-on-dark-soft); }

/* ---------------- Chat widget ---------------- */
.chat-launcher {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(35,38,43,0.32);
  z-index: 200;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.chat-launcher:hover { transform: translateY(-3px) scale(1.04); background: var(--orange-deep); }
.chat-launcher .icon-close { display: none; }
.chat-launcher.open .icon-chat { display: none; }
.chat-launcher.open .icon-close { display: block; }

.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 26px;
  width: min(370px, calc(100vw - 40px));
  max-height: min(560px, calc(100vh - 140px));
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(35,38,43,0.28);
  z-index: 200;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
  border: 1px solid var(--dune-mid);
}
.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chat-head {
  background: linear-gradient(175deg, var(--basalt), var(--ink));
  color: var(--white);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-head .brand { color: var(--white); font-size: 1.02rem; }
.chat-head .sub { font-size: 0.76rem; color: var(--text-on-dark-soft); margin-top: 2px; }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--dune-light);
}
.chat-msg {
  max-width: 84%;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.chat-msg.bot {
  background: var(--white);
  border: 1px solid var(--dune-mid);
  border-bottom-left-radius: 3px;
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--orange);
  color: var(--white);
  border-bottom-right-radius: 3px;
  align-self: flex-end;
}
.chat-msg.popia {
  background: transparent;
  border: 1px dashed var(--dune-mid);
  font-size: 0.76rem;
  color: var(--text-soft);
  align-self: stretch;
  max-width: 100%;
}
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  max-width: 100%;
}
.chat-chip {
  border: 1.5px solid var(--orange);
  color: var(--orange);
  background: var(--white);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.25s var(--ease);
}
.chat-chip:hover { background: var(--orange); color: var(--white); }
.chat-foot {
  border-top: 1px solid var(--dune-mid);
  padding: 12px;
  display: flex;
  gap: 8px;
  background: var(--paper);
}
.chat-foot input {
  flex: 1;
  border: 1.5px solid var(--dune-mid);
  border-radius: 20px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: var(--dune-light);
}
.chat-foot input:focus { outline: none; border-color: var(--orange); }
.chat-foot button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s var(--ease);
}
.chat-foot button:hover { background: var(--orange-deep); }

/* ---------------- Sub-page banner (products/areas) ---------------- */
.page-banner {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.page-banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(35,38,43,0.80) 0%, rgba(35,38,43,0.18) 58%, rgba(35,38,43,0.42) 100%);
}
.page-banner .wrap { position: relative; z-index: 2; padding-bottom: 64px; padding-top: 160px; }
.page-banner .eyebrow { color: var(--orange-glow); }
.page-banner h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); color: var(--white); max-width: 18ch; }
.page-banner p { color: var(--text-on-dark-soft); max-width: 54ch; font-size: 1.05rem; }

.content-block { max-width: 780px; }
.content-block h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-top: 1.4em; }
.content-block h2:first-child { margin-top: 0; }
.content-block p { color: var(--text-soft); }
.content-block a, .locale-copy a, .enquiry-info a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: rgba(189,99,48,0.4);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: text-decoration-color 0.25s var(--ease);
}
.content-block a:hover, .locale-copy a:hover, .enquiry-info a:hover { text-decoration-color: var(--orange); }
.content-block ul.tick-list { display: grid; gap: 12px; margin: 20px 0; }
.content-block ul.tick-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.content-block ul.tick-list svg { color: var(--orange); flex-shrink: 0; margin-top: 4px; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.side-card {
  background: var(--dune-light);
  border: 1px solid var(--dune-mid);
  padding: 30px;
  border-radius: 2px;
  position: sticky;
  top: 110px;
}
.side-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.side-card ul { display: grid; gap: 10px; margin-bottom: 20px; }
.side-card li { font-size: 0.9rem; color: var(--text-soft); display: flex; gap: 10px; }
.side-card li svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }

.mini-cta {
  background: var(--dune);
  padding: 56px 0;
  text-align: center;
}
.mini-cta h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.mini-cta p { color: var(--text-soft); margin: 0 auto 26px; }
.mini-cta .btn-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-on-dark-soft);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-on-dark-soft); }
.breadcrumb a:hover { color: var(--white); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-photo { min-height: 60vh; order: -1; }
  .hero-panel { padding-top: 56px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .editorial-grid { grid-template-columns: 1fr; }
  .ed-main { min-height: 380px; }
  .locale-grid { grid-template-columns: 1fr; gap: 36px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-grid::before { display: none; }
  .enquiry-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 110px 32px 40px; gap: 26px; transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15); }
  .nav-links.open { transform: translateX(0); visibility: visible; transition: transform 0.4s var(--ease), visibility 0s; }
  .nav-links a, .nav-links .nav-cta { color: var(--ink) !important; }
  .nav-toggle { display: flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .chat-panel { right: 14px; bottom: 92px; }
  .chat-launcher { right: 16px; bottom: 16px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}


/* roller shutters are shading products, not security products — see design-brief.md */
.rs-note{font-size:.94rem;line-height:1.6;opacity:.85;margin:14px 0 0;
  padding:12px 14px;border-left:2px solid currentColor}
.rs-note strong{font-weight:600}

/* pthumb-injected */
/* --- product photo thumbnails (replaced the old line-drawn icons) --- */
.pthumb{width:100%!important;height:auto!important;max-width:none!important;
  aspect-ratio:4/3;overflow:hidden;display:block;margin:0 0 18px;
  background:rgba(0,0,0,.04)}
.pthumb img{width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.product-card:hover .pthumb img,.cell:hover .pthumb img,.card:hover .pthumb img,
.related-card:hover .pthumb img{transform:scale(1.045)}
@media (prefers-reduced-motion:reduce){
  .pthumb img{transition:none}
  .product-card:hover .pthumb img,.cell:hover .pthumb img,.card:hover .pthumb img,
  .related-card:hover .pthumb img{transform:none}}

/* ============================================================
   Review pass — craft additions (Aug 2026)
   ============================================================ */

/* card photos sit on the card's own rhythm, not the injected margin */
.product-card .pthumb { margin: 0; }

/* thin accent rule that draws itself in under a section heading */
.section-head .rule { margin-top: 26px; background: var(--orange); opacity: .55; }
.section-head .rule.light { background: var(--orange-glow); opacity: .7; }
@media (prefers-reduced-motion: reduce) {
  .rule { transform: scaleX(1); transition: none; }
}

/* Blind repairs — a full-width strip closing the product grid */
.product-card.repair-card {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 34px;
  background: var(--dune-light);
  padding: 30px 26px;
}
.product-card.repair-card:hover { background: var(--white); transform: none; box-shadow: none; }
.product-card.repair-card .pthumb {
  width: 32%!important;
  flex: 0 0 32%;
  margin: 0;
}
.product-card.repair-card .repair-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.product-card.repair-card .eyebrow { margin-bottom: 0; }
.product-card.repair-card h3 { font-size: 1.32rem; }
.product-card.repair-card p { max-width: 62ch; }
.product-card.repair-card:hover .pthumb img { transform: scale(1.045); }
@media (max-width: 720px) {
  .product-card.repair-card { flex-direction: column; align-items: stretch; gap: 18px; }
  .product-card.repair-card .pthumb { width: 100%!important; flex: none; }
}

/* Product spotlight figure inside a product page's content column */
.product-shot {
  margin: 34px 0 6px;
  border: 1px solid var(--dune-mid);
  border-radius: 2px;
  overflow: hidden;
  background: var(--dune-light);
}
.product-shot img { width: 100%; height: auto; display: block; }
.product-shot figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.97rem;
  color: var(--text-soft);
  padding: 14px 18px 16px;
}

/* keyboard users get the same reveal as everyone else */
.reveal:focus-within { opacity: 1; transform: none; }

/* the sticky nav must not sit on top of a heading you just jumped to */
section[id], header[id] { scroll-margin-top: 92px; }

/* FAQ answer opens with a little lift rather than snapping in */
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-item[open] .faq-body { animation: faqIn 0.35s var(--ease) both; }
.faq-item summary { transition: color 0.25s var(--ease); }
.faq-item summary:hover { color: var(--orange); }
@media (prefers-reduced-motion: reduce) { .faq-item[open] .faq-body { animation: none; } }

::selection { background: var(--orange); color: var(--white); }

/* ============================================================
   THE LEAD LADDER — Paddock Light field guide, ballpark tool,
   free-measure close.  Rung 1 guide.html · Rung 2 window table ·
   Rung 3 the free expert measure.
   Uses only the tokens declared at the top of this file.
   ============================================================ */

/* ---------------- Rung 1: guide hero (split, like the homepage) ---------------- */
.guide-hero {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(340px, 48%) 1fr;
  min-height: 88vh;
}
.guide-hero-panel {
  background: linear-gradient(175deg, var(--basalt) 0%, var(--ink) 100%);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(120px, 13vw, 156px) clamp(28px, 5vw, 64px) 60px;
  position: relative;
}
.guide-hero-panel::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.18));
  pointer-events: none;
}
.guide-hero-panel .eyebrow { color: var(--orange-glow); }
.guide-hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  color: var(--white);
  margin-bottom: 0;
}
.guide-hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
}
@media (prefers-reduced-motion: reduce) {
  .guide-hero h1 .word { opacity: 1; transform: none; }
}
.guide-hero h1 .lede {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.36em;
  line-height: 1.34;
  letter-spacing: -0.005em;
  color: var(--dune-mid);
  margin-top: 16px;
  max-width: 24ch;
}
.guide-hero .sub {
  color: var(--text-on-dark-soft);
  font-size: 1.06rem;
  max-width: 48ch;
  margin-top: 22px;
}
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}
.guide-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--basalt-line);
  padding: 7px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-on-dark-soft);
  border-radius: 2px;
}
.guide-meta span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--orange);
  flex-shrink: 0;
}
.guide-hero-photo { position: relative; overflow: hidden; }
.guide-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.guide-hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(35,38,43,0.5), rgba(35,38,43,0) 46%);
  z-index: 1;
}
.guide-hero-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 30px 26px 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.97rem;
  color: var(--white);
  max-width: 46ch;
}

/* ---------------- Contents rail ---------------- */
.contents {
  background: var(--dune-light);
  border-top: 1px solid var(--dune-mid);
  border-bottom: 1px solid var(--dune-mid);
  padding: 18px 0;
}
.contents .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.contents .lbl {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--orange);
  margin-right: 8px;
}
.contents a {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid var(--dune-mid);
  border-radius: 2px;
  padding: 7px 14px;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.contents a:hover { color: var(--ink); border-color: var(--orange); background: var(--paper); }

/* ---------------- Guide sections and prose ---------------- */
.guide-section { padding: var(--section-pad) 0; background: var(--paper); }
.guide-section.tinted { background: var(--dune-light); }
.guide-section.dark {
  background: var(--basalt);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.guide-section.dark .eyebrow { color: var(--orange-glow); }
.guide-section.dark h2, .guide-section.dark h3 { color: var(--white); }
.guide-section.dark p { color: var(--text-on-dark-soft); }
.guide-section.dark .section-head p { color: var(--text-on-dark-soft); }

.guide-prose { max-width: 68ch; }
.guide-prose p { color: var(--text-soft); }
.guide-prose p strong { color: var(--ink); font-weight: 600; }
.guide-prose h3 { font-size: 1.2rem; margin: 34px 0 12px; }
.guide-prose ul.dashed { display: grid; gap: 12px; margin: 0 0 20px; }
.guide-prose ul.dashed li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
  font-size: 0.97rem;
}
.guide-prose ul.dashed li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 12px; height: 1.5px;
  background: var(--orange);
}
.guide-prose a, .sources a, .lead-thanks a, .form-success a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: rgba(189,99,48,0.4);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: text-decoration-color .25s var(--ease);
}
.guide-prose a:hover, .sources a:hover { text-decoration-color: var(--orange); }

.guide-figure {
  margin: 42px 0 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.guide-figure img { width: 100%; height: auto; display: block; }
.guide-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 24px 18px;
  background: linear-gradient(0deg, rgba(35,38,43,0.86), rgba(35,38,43,0));
  color: var(--white);
  font-size: 0.87rem;
}
.guide-figure figcaption b {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.guide-figure.plain { border: 1px solid var(--dune-mid); }
.guide-figure.plain figcaption {
  position: static;
  background: var(--dune-light);
  color: var(--text-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.96rem;
  padding: 14px 18px 16px;
}
.guide-figure.plain figcaption b {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9rem;
}

/* ---------------- Elevation cards ---------------- */
.elev-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--dune-mid);
  border: 1px solid var(--dune-mid);
  margin-top: 42px;
}
.elev-card { background: var(--paper); padding: 30px 28px; }
.guide-section.tinted .elev-card { background: var(--dune-light); }
.elev-card .compass { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.elev-card .compass svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--orange); }
.elev-card .compass b { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; }
.elev-card p { font-size: 0.94rem; color: var(--text-soft); margin-bottom: 12px; }
.elev-card p:last-child { margin-bottom: 0; }
.elev-card .verdict {
  border-top: 1px solid var(--dune-mid);
  margin-top: 16px;
  padding-top: 14px;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.elev-card .verdict em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--orange);
}

/* ---------------- Product recommendations ---------------- */
.rec-list { display: grid; gap: 18px; margin-top: 42px; }
.rec {
  background: var(--paper);
  border: 1px solid var(--dune-mid);
  border-left: 3px solid var(--orange);
  border-radius: 2px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 30px;
  align-items: start;
}
.rec-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rec-head h3 { font-size: 1.18rem; margin-bottom: 0; }
.rec-head .where {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--orange);
}
.rec-body { grid-column: 1; }
.rec-body p { font-size: 0.95rem; color: var(--text-soft); margin-bottom: 12px; }
.rec-body p:last-child { margin-bottom: 0; }
.rec-trade {
  background: var(--dune-light);
  border-left: 2px solid var(--dune-mid);
  padding: 13px 16px;
  margin-top: 14px;
}
.rec-trade b {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
  margin-bottom: 5px;
}
.rec-trade p { font-size: 0.89rem; margin: 0; }
.rec-side { grid-column: 2; grid-row: 2; align-self: start; }
.rec-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  border-radius: 2px;
  padding: 11px 20px;
  font-size: 0.83rem;
  font-weight: 700;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.rec-add::before { content: "+"; font-size: 1.05rem; line-height: 1; }
.rec-add:hover { background: var(--orange); color: var(--white); }
.rec-add.is-added {
  background: var(--dune-light);
  border-color: var(--dune-mid);
  color: var(--text-soft);
  cursor: default;
}
.rec-add.is-added::before { content: "\2713"; font-size: 0.85rem; }
.rec-add[disabled] { opacity: 1; }

/* ---------------- On-site checklist ---------------- */
.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 34px;
  margin-top: 42px;
  counter-reset: chk;
}
.check-item { border-top: 1px solid var(--dune-mid); padding-top: 20px; }
.guide-section.dark .check-item { border-top-color: var(--basalt-line); }
.check-item::before {
  counter-increment: chk;
  content: counter(chk, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.check-item h4 { font-size: 1.04rem; margin-bottom: 7px; }
.check-item p { font-size: 0.92rem; color: var(--text-soft); margin: 0; }
.guide-section.dark .check-item h4 { color: var(--white); }
.guide-section.dark .check-item p { color: var(--text-on-dark-soft); }
.guide-section.dark .check-item::before { color: var(--orange-glow); }

/* ---------------- Sources ---------------- */
.sources {
  background: var(--paper);
  border: 1px solid var(--dune-mid);
  border-radius: 2px;
  padding: 32px 34px;
  margin-top: 34px;
}
.sources ol { margin: 0; padding-left: 20px; color: var(--text-soft); font-size: 0.89rem; list-style: decimal; }
.sources li { margin-bottom: 11px; }
.sources .note {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--dune-mid);
  max-width: none;
}

/* ---------------- Rung 3: the close ---------------- */
.ladder-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 56px; align-items: start; }
.ladder-side p { color: var(--text-soft); }
.guide-section.dark .ladder-side p { color: var(--text-on-dark-soft); }
.promise { display: grid; gap: 14px; margin-top: 26px; }
.promise-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--text-soft); }
.guide-section.dark .promise-item { color: var(--text-on-dark-soft); }
.promise-item svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--orange); }
.guide-section.dark .promise-item svg { color: var(--orange-glow); }
.capacity-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--dune-mid);
  font-size: 0.9rem;
  color: var(--text-soft);
}
.guide-section.dark .capacity-note { border-top-color: var(--basalt-line); color: var(--text-on-dark-soft); }

.form-card {
  background: var(--paper);
  border: 1px solid var(--dune-mid);
  border-radius: 2px;
  padding: 30px 30px 26px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-card .field { margin-bottom: 18px; }
.form-card .form-row .field { margin-bottom: 0; }
.legend {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 9px;
}
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.interest-grid label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-soft);
  padding: 5px 0;
  cursor: pointer;
}
.interest-grid input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; accent-color: var(--orange); }
.interest-grid input:checked + span { color: var(--ink); font-weight: 600; }
.carry-note {
  font-size: 0.84rem;
  color: var(--text-soft);
  background: var(--dune-light);
  border-left: 2px solid var(--orange);
  padding: 10px 13px;
  margin: 9px 0 0;
}
.carry-note strong { color: var(--ink); }

.lead-thanks {
  background: var(--dune-light);
  border: 1.5px solid var(--orange);
  border-radius: 2px;
  padding: 26px 28px;
  margin-top: 18px;
}
.lead-thanks h3, .form-success h3 { font-size: 1.2rem; margin-bottom: 10px; }
.lead-thanks p { color: var(--text-soft); font-size: 0.93rem; margin-bottom: 10px; }
.lead-thanks p:last-child, .form-success p:last-child { margin-bottom: 0; }
form.is-sent { display: none; }

/* ---------------- Rung 2: the ballpark window table ---------------- */
.ballpark {
  margin: 4px 0 18px;
  border: 1px dashed var(--dune-mid);
  border-radius: 2px;
  background: var(--dune-light);
}
.ballpark > summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.ballpark > summary::-webkit-details-marker { display: none; }
.ballpark > summary:hover { color: var(--orange); }
.ballpark > summary .chev {
  width: 15px; height: 15px;
  flex-shrink: 0;
  color: var(--orange);
  transition: transform .3s var(--ease);
}
.ballpark[open] > summary .chev { transform: rotate(180deg); }
.bp-inner { padding: 0 20px 22px; }
.bp-pairing { font-size: 0.89rem; color: var(--text-soft); margin-bottom: 18px; max-width: 66ch; }
.bp-pairing strong { color: var(--ink); font-weight: 600; }
.bp-scroll { overflow-x: auto; }
.bp-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.bp-table th {
  text-align: left;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
  padding: 0 8px 9px 0;
  border-bottom: 1px solid var(--dune-mid);
  white-space: nowrap;
}
.bp-table td { padding: 7px 8px 7px 0; vertical-align: middle; }
.bp-table input, .bp-table select {
  width: 100%;
  min-width: 94px;
  border: 1px solid var(--dune-mid);
  background: var(--paper);
  border-radius: 2px;
  padding: 9px 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
  transition: border-color .22s var(--ease);
}
.bp-table input:focus, .bp-table select:focus { outline: none; border-color: var(--orange); }
.bp-table td.bp-rm { width: 34px; padding-right: 0; }
.bp-remove {
  width: 30px; height: 30px;
  border: 1px solid var(--dune-mid);
  border-radius: 2px;
  background: var(--paper);
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .22s var(--ease), color .22s var(--ease);
}
.bp-remove:hover { border-color: var(--orange); color: var(--orange); }
.bp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.bp-btn {
  background: var(--paper);
  border: 1px solid var(--dune-mid);
  border-radius: 2px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .22s var(--ease), color .22s var(--ease);
}
.bp-btn:hover { border-color: var(--orange); color: var(--orange); }
.bp-btn svg { width: 14px; height: 14px; }
.bp-count { font-size: 0.82rem; color: var(--text-soft); margin: 12px 0 0; }
.bp-foot { font-size: 0.79rem; color: var(--text-soft); margin: 12px 0 0; line-height: 1.6; }
.bp-print-head { display: none; }
.bp-holder { display: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* the field-guide link that sits under the hero CTAs on a dark panel */
.hero-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dune-mid);
  border-bottom: 1px solid rgba(222,208,175,0.35);
  padding-bottom: 6px;
  max-width: 48ch;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.hero-guide-link em { font-family: var(--font-display); font-style: italic; color: var(--white); }
.hero-guide-link svg { flex-shrink: 0; color: var(--orange-glow); transition: transform .25s var(--ease); }
.hero-guide-link:hover { color: var(--white); border-color: var(--orange); }
.hero-guide-link:hover svg { transform: translateX(4px); }

/* field-guide teaser band on the homepage */
.guide-teaser { background: var(--dune); }
.guide-teaser .teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.guide-teaser .teaser-shot { border: 1px solid var(--dune-mid); border-radius: 2px; overflow: hidden; margin: 0; }
.guide-teaser .teaser-shot img { width: 100%; height: auto; display: block; }
.guide-teaser h2 { font-size: clamp(1.9rem, 3.1vw, 2.7rem); }
.guide-teaser p { color: var(--text-soft); }
.guide-teaser .btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* the small guide prompt inside an area page's sidebar */
.side-guide {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--dune-mid);
  font-size: 0.88rem;
  color: var(--text-soft);
}
.side-guide a { color: var(--orange); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Ladder responsive ---------------- */
@media (max-width: 1080px) {
  .guide-hero { grid-template-columns: 1fr; min-height: auto; }
  .guide-hero-photo { min-height: 52vh; order: -1; }
  .guide-hero-panel { padding-top: 56px; }
  .ladder-grid { grid-template-columns: 1fr; gap: 40px; }
  .elev-grid, .check-list { grid-template-columns: 1fr; }
  .guide-teaser .teaser-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 720px) {
  .rec { grid-template-columns: 1fr; padding: 24px 22px; }
  .rec-side { grid-column: 1; grid-row: auto; }
  .sources { padding: 24px 20px; }
  .interest-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px 22px; }
}
@media (max-width: 640px) {
  /* window rows become stacked cards */
  .bp-scroll { overflow-x: visible; }
  .bp-table, .bp-table tbody, .bp-table tr, .bp-table td { display: block; width: 100%; }
  .bp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bp-table tr.bp-row {
    background: var(--paper);
    border: 1px solid var(--dune-mid);
    border-radius: 2px;
    padding: 14px 14px 6px;
    margin-bottom: 12px;
    position: relative;
  }
  .bp-table td { padding: 0 0 10px; }
  .bp-table td[data-lbl]::before {
    content: attr(data-lbl);
    display: block;
    font-size: 0.63rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
    font-weight: 700;
    margin-bottom: 5px;
  }
  .bp-table td.bp-rm { position: absolute; top: 10px; right: 10px; width: auto; padding: 0; }
  .bp-table td.bp-rm::before { content: none; }
  .bp-inner { padding: 0 14px 18px; }
  .ballpark > summary { padding: 15px 14px; }
}

/* ---------------- Print: walk the house with paper ---------------- */
@media print {
  body { background: #fff; color: #000; }
  .site-nav, .marquee, .contents, .guide-hero, .guide-figure, .closing-cta,
  .site-footer, .chat-launcher, .chat-panel, .fence-wrap, .horizon-glow,
  .bp-actions, .bp-remove, .ballpark > summary, .bp-pairing, .popia,
  .legal-links { display: none !important; }
  .ballpark { border: none; background: #fff; margin: 0; }
  .bp-inner { padding: 0; }
  .bp-print-head { display: block; margin-bottom: 16px; }
  .bp-print-head h2 { font-size: 1.5rem; margin-bottom: 6px; }
  .bp-print-head p { font-size: 0.86rem; color: #444; }
  .bp-table input, .bp-table select { border: 1px solid #999; background: #fff; }
  .bp-table th { border-bottom: 1px solid #666; }
  .form-card { border: none; padding: 0; }
  body.bp-printing .guide-section, body.bp-printing section { padding: 0 !important; }
  body.bp-printing .guide-prose, body.bp-printing .rec-list, body.bp-printing .elev-grid,
  body.bp-printing .check-list, body.bp-printing .sources, body.bp-printing .section-head,
  body.bp-printing .ladder-side, body.bp-printing .form-row, body.bp-printing .interest-grid,
  body.bp-printing .field:not(.bp-holder), body.bp-printing .form-success,
  body.bp-printing .lead-thanks, body.bp-printing .rule, body.bp-printing .bp-count,
  body.bp-printing .bp-foot, body.bp-printing form > button { display: none !important; }
  body.bp-printing .ladder-grid { display: block !important; }
}
