/* ==========================================================================
   Beaulieu Blinds — stylesheet
   Theme: equestrian-estate · Layout: boxed editorial hero, centred, asymmetric
   Palette: slate blue-grey + chalk + burnt sienna · Fonts: Marcellus + Jost
   ========================================================================== */

:root {
  --ink: #262e33;
  --slate: #54697a;
  --slate-deep: #37454f;
  --slate-pale: #8fa0ac;
  --chalk: #f5f1e9;
  --chalk-dim: #ece4d4;
  --chalk-line: #ddd3bc;
  --sienna: #b6552d;
  --sienna-deep: #8e4020;
  --white: #fffdf9;
  --line: rgba(38, 46, 51, 0.14);
  --line-soft: rgba(38, 46, 51, 0.08);
  --shadow-lg: 0 30px 70px rgba(38, 46, 51, 0.22);
  --shadow-sm: 0 10px 30px rgba(38, 46, 51, 0.12);
  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
  --radius: 4px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: -0.015em; color: var(--slate-deep); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 2px solid var(--sienna);
  outline-offset: 3px;
  border-radius: 1px;
}
/* lighter ring where the surface behind it is slate-deep */
.locale :focus-visible,
.site-footer :focus-visible,
.cta-close :focus-visible,
.page-hero :focus-visible,
.chat-head :focus-visible,
.nav-links.open :focus-visible {
  outline-color: #e8b795;
}
/* skip-to-content for keyboard users */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--slate-deep); color: var(--chalk);
  padding: 12px 20px; font-size: 0.86rem; letter-spacing: 0.04em;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sienna);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--sienna);
  display: inline-block;
}

.rule {
  width: 64px;
  height: 2px;
  background: var(--sienna);
  border: none;
  margin: 22px 0 0;
  transform-origin: left center;
  transform: scaleX(0);
}
.rule.centre { margin-left: auto; margin-right: auto; }
.rule.in-view { transform: scaleX(1); transition: transform 0.9s cubic-bezier(.4,0,.2,1); }

section { position: relative; }
.section-pad { padding: 104px 0; }
@media (max-width: 720px) {
  .section-pad { padding: 68px 0; }
}

.h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); }
.h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }

.lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--slate);
  max-width: 62ch;
}
.body-copy {
  max-width: 68ch;
  color: var(--ink);
}
.body-copy p + p { margin-top: 1.1em; }

.split-word { display: inline-block; opacity: 0; transform: translateY(0.5em); will-change: transform, opacity; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--sienna);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--sienna-deep); box-shadow: 0 14px 34px rgba(142,64,32,.35); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline.dark { color: var(--slate-deep); border-color: var(--slate-deep); }
.btn-outline.dark:hover { background: var(--slate-deep); color: var(--white); }
.btn svg { width: 16px; height: 16px; }

/* magnetic CTA wrapper */
.magnetic { display: inline-block; }

/* ---- Nav ---- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
  background: rgba(245, 241, 233, 0.0);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; }
.site-nav.solid {
  background: rgba(245, 241, 233, 0.94);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  color: var(--slate-deep);
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links .nav-cta {
  padding: 10px 20px;
  border: 1px solid var(--slate-deep);
  color: var(--slate-deep);
  border-radius: 2px;
  transition: background 0.3s ease, border-color .3s ease, color .3s ease;
}
.nav-links .nav-cta:hover { background: var(--sienna); border-color: var(--sienna); color: var(--white); }
.nav-links .nav-cta::after { display: none; }

.nav-toggle { display: none; width: 30px; height: 22px; position: relative; background: none; border: 0; }
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--slate-deep); transition: all 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 82vw);
    background: var(--slate-deep); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 40px; gap: 24px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--chalk); font-size: 1.05rem; }
  .nav-links .nav-cta { border-color: rgba(255,255,255,0.4); color: var(--chalk); }
  .nav-toggle { display: block; z-index: 600; }
  .site-nav .container { position: relative; }
}

/* inner pages: nav opens over a dark page-hero, so it starts light and
   flips to the standard dark-on-chalk treatment once .solid is applied */
.site-nav.on-dark:not(.solid) .brand-word { color: var(--white); }
.site-nav.on-dark:not(.solid) .nav-links a { color: rgba(255,255,255,0.92); }
.site-nav.on-dark:not(.solid) .nav-links .nav-cta { border-color: rgba(255,255,255,0.6); color: var(--white); }
.site-nav.on-dark:not(.solid) .nav-toggle span { background: var(--white); }

/* ---- Hero (boxed editorial, textured background, centred) ---- */
.hero {
  position: relative;
  padding: 150px 24px 64px;
  background: var(--chalk);
  background-image:
    radial-gradient(circle at 1px 1px, var(--chalk-line) 1px, transparent 1.4px);
  background-size: 26px 26px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--chalk) 0%, rgba(245,241,233,0) 18%, rgba(245,241,233,0) 82%, var(--chalk) 100%);
  pointer-events: none;
}
.hero-inner { max-width: 1000px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.hero .eyebrow { margin: 0 auto 22px; justify-content: center; }
.hero .eyebrow::before, .hero .eyebrow::after { content: ""; width: 22px; height: 1px; background: var(--sienna); display: inline-block; }
.hero h1 { color: var(--slate-deep); margin-bottom: 22px; }
.hero .lede { margin: 0 auto 34px; text-align: center; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 46px; }
.hero-ctas .btn-outline.dark { color: var(--slate-deep); border-color: var(--slate-deep); }
.hero-ctas .btn-outline.dark:hover { background: var(--slate-deep); color: var(--white); }

.trust-row {
  display: flex; gap: 34px; justify-content: center; flex-wrap: wrap;
  margin: 0 auto 54px; max-width: 900px;
}
.trust-row li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--slate); }
.trust-row svg { width: 18px; height: 18px; color: var(--sienna); flex-shrink: 0; }

.hero-frame {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--chalk-line);
}
.hero-frame .frame-inner { position: relative; aspect-ratio: 16/9.4; overflow: hidden; }
.hero-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}
/* Scrim exists only to float the caption — the photograph itself stays open.
   Weight is concentrated in the bottom fifth, nothing above the midpoint. */
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(38,46,51,0) 0%,
    rgba(38,46,51,0.03) 55%,
    rgba(38,46,51,0.26) 80%,
    rgba(38,46,51,0.62) 100%);
}
.hero-caption {
  position: absolute; left: 28px; right: 28px; bottom: 24px;
  color: var(--white); font-size: 0.82rem; letter-spacing: 0.05em;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  text-shadow: 0 1px 8px rgba(38,46,51,0.55);
}
.hero-caption span { opacity: 0.92; }
@media (max-width: 560px) {
  .hero-caption { font-size: 0.74rem; left: 18px; right: 18px; bottom: 16px; }
}

/* ---- Marquee ---- */
.marquee-band {
  background: var(--slate-deep);
  color: var(--chalk);
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--chalk);
  opacity: 0.88;
  padding: 0 34px;
  white-space: nowrap;
  position: relative;
}
.marquee-track span::after {
  content: "◆"; position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
  font-size: 0.5rem; color: var(--sienna); opacity: 0.9;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Fence-line signature moment ---- */
.fence-wrap { background: var(--chalk); padding: 6px 0 0; }
.fence-svg { width: 100%; height: auto; display: block; }
.fence-line { fill: none; stroke: var(--slate); stroke-width: 2; }
.fence-line.rail-top { stroke: var(--slate-pale); }
.fence-post { fill: var(--slate-deep); }
.fence-accent { fill: var(--sienna); }

/* ---- Section headers ---- */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.centre { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head .lede { margin-top: 18px; }

/* ---- Product grid ---- */
.products { background: var(--white); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  background: var(--white);
  padding: 40px 30px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.product-card:hover { background: var(--chalk); transform: translateY(-4px); }
.line-icon { width: 52px; height: 52px; color: var(--slate-deep); transition: color 0.3s ease; }
.product-card:hover .line-icon { color: var(--sienna); }
.product-card h3 { font-size: 1.14rem; }

/* ---- Product photo thumbnail (hover zoom lives on the wrapper) ---- */
.pthumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--chalk-dim);
  aspect-ratio: 4 / 3;
}
.pthumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.product-card:hover .pthumb img,
.mini-card:hover .pthumb img { transform: scale(1.055); }
/* thin sienna underline that wipes across the photo on hover */
.pthumb::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--sienna);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .pthumb::after,
.mini-card:hover .pthumb::after { transform: scaleX(1); }
.product-card p { color: var(--slate); font-size: 0.94rem; }
.card-link {
  margin-top: auto;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sienna);
  display: inline-flex; align-items: center; gap: 6px;
}
.card-link svg { width: 13px; height: 13px; transition: transform 0.25s ease; }
.product-card:hover .card-link svg { transform: translateX(4px); }

/* ---- Editorial photo section (asymmetric) ---- */
.editorial { background: var(--chalk-dim); }
.editorial-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 26px;
  align-items: start;
}
.editorial-grid .col-a { display: grid; gap: 26px; }
.editorial-grid .col-b { margin-top: 74px; display: grid; gap: 26px; }
@media (max-width: 860px) {
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-grid .col-b { margin-top: 0; }
}
.photo-card { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.4,0,.2,1); }
.photo-card:hover img { transform: scale(1.05); }
.photo-card.tall { aspect-ratio: 4/5; }
.photo-card.wide { aspect-ratio: 5/4; }
.photo-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 22px;
  background: linear-gradient(180deg, transparent, rgba(38,46,51,0.82));
  color: var(--white); font-size: 0.85rem; letter-spacing: 0.02em;
}

/* ---- Locale storytelling ---- */
.locale { background: var(--slate-deep); color: var(--chalk); }
.locale h2, .locale h3 { color: var(--white); }
.locale .eyebrow { color: #d8a281; }
.locale .eyebrow::before { background: #d8a281; }
.locale .rule { background: #d8a281; }
.locale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 860px) { .locale-grid { grid-template-columns: 1fr; gap: 40px; } }
.locale .body-copy { color: rgba(245,241,233,0.86); }
.fact-list { display: grid; gap: 22px; margin-top: 8px; }
.fact-list li { display: flex; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.fact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-num { font-family: var(--font-display); font-size: 1.5rem; color: #d8a281; flex-shrink: 0; width: 44px; }
.fact-list p { color: rgba(245,241,233,0.82); font-size: 0.96rem; }
.fact-list strong { color: var(--white); font-weight: 500; display: block; margin-bottom: 4px; font-family: var(--font-body); letter-spacing: 0.01em; }

/* ---- Process ---- */
.process { background: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { position: relative; padding-top: 26px; }
.process-step::before {
  content: "";
  position: absolute; top: 0; left: 0; width: 40px; height: 1px; background: var(--line);
}
.step-index { font-family: var(--font-display); font-size: 2.6rem; color: var(--chalk-line); line-height: 1; margin-bottom: 14px; display: block; }
.process-step h3 { font-size: 1.08rem; margin-bottom: 10px; color: var(--slate-deep); }
.process-step p { color: var(--slate); font-size: 0.93rem; }

/* ---- Areas chips ---- */
.areas-band { background: var(--chalk-dim); }
.areas-list { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.area-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--slate-deep);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.area-chip svg { width: 14px; height: 14px; color: var(--sienna); }
.area-chip:hover { background: var(--slate-deep); border-color: var(--slate-deep); color: var(--white); transform: translateY(-2px); }
.area-chip:hover svg { color: #d8a281; }

/* ---- FAQ ---- */
.faq { background: var(--white); }
.faq-list { max-width: 800px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--slate-deep);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  position: relative; width: 22px; height: 22px; flex-shrink: 0;
}
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute; background: var(--sienna); transition: transform 0.3s ease;
}
.faq-toggle::before { left: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-toggle::after { top: 0; left: 50%; width: 1.5px; height: 100%; transform: translateX(-50%); }
.faq-item[open] .faq-toggle::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item summary:hover { color: var(--sienna); }
.faq-item summary { transition: color 0.25s ease; }
.faq-item .faq-body { padding: 0 4px 26px; color: var(--slate); max-width: 66ch; font-size: 0.98rem; }
.faq-item[open] .faq-body { animation: faqOpen 0.42s cubic-bezier(.22,.61,.36,1) both; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Closing CTA ---- */
.cta-close {
  position: relative;
  background: var(--slate-deep);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}
.cta-glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(182,85,45,0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(143,160,172,0.28), transparent 50%);
  filter: blur(40px);
  animation: driftGlow 16s ease-in-out infinite alternate;
}
@keyframes driftGlow {
  0% { transform: translate(-4%, -2%) scale(1); }
  100% { transform: translate(4%, 3%) scale(1.12); }
}
.cta-close .container { position: relative; z-index: 2; }
.cta-close h2 { color: var(--white); }
.cta-close .lede { color: rgba(245,241,233,0.82); margin: 18px auto 34px; }
.cta-close .hero-ctas { margin-bottom: 0; }

/* ---- Enquiry form ---- */
.enquire { background: var(--chalk); }
.enquire-wrap {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start;
}
@media (max-width: 900px) { .enquire-wrap { grid-template-columns: 1fr; gap: 40px; } }
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; gap: 8px; margin-bottom: 20px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 520px) { .form-row.two { grid-template-columns: 1fr; } }
.form-row label { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }
.form-row input, .form-row select, .form-row textarea {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px 14px;
  background: var(--chalk);
  color: var(--ink);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--sienna); background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.popia-note { font-size: 0.82rem; color: var(--slate); margin-top: 18px; line-height: 1.55; }
.form-status {
  margin-top: 16px; font-size: 0.9rem; line-height: 1.55;
  color: var(--slate-deep); display: none;
  padding: 12px 14px; border-left: 2px solid var(--sienna);
  background: rgba(182, 85, 45, 0.06);
}
.form-status.show { display: block; }
.form-status.error { color: var(--sienna-deep); border-left-color: var(--sienna-deep); }

/* ---- Footer ---- */
.site-footer { background: var(--slate-deep); color: var(--chalk); padding: 70px 0 34px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-word { color: var(--white); }
.footer-tagline { color: rgba(245,241,233,0.72); max-width: 40ch; font-size: 0.95rem; margin-top: 14px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #d8a281; margin-bottom: 16px; font-weight: 500; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(245,241,233,0.82); font-size: 0.92rem; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { padding-top: 30px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.82rem; color: rgba(245,241,233,0.6); }
.footer-bottom .popia { max-width: 60ch; }

/* ---- reveal utility ----
   A .stagger block animates its CHILDREN, never itself — so the container must
   stay visible. Without this override it inherits .reveal's opacity:0, nothing
   ever animates it back, and the whole block (product grid, editorial columns,
   process steps, fact list) renders invisible. */
.reveal { opacity: 0; transform: translateY(34px); }
.reveal.stagger { opacity: 1; transform: none; }
.reveal.stagger > * { opacity: 0; transform: translateY(24px); }

/* ---- Chat widget ---- */
.chat-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--sienna); color: var(--white); border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(142,64,32,0.4);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), background 0.3s ease;
}
.chat-launcher:hover { transform: scale(1.07); background: var(--sienna-deep); }
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher .chat-icon-close { display: none; }
.chat-launcher.open .chat-icon-chat { display: none; }
.chat-launcher.open .chat-icon-close { display: block; }

.chat-panel {
  position: fixed; right: 24px; bottom: 98px; z-index: 899;
  width: 360px; max-width: calc(100vw - 32px);
  height: 500px; max-height: calc(100vh - 150px);
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.98);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
  border: 1px solid var(--line);
}
.chat-panel.open {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
  visibility: visible;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s;
}
.chat-head { background: var(--slate-deep); color: var(--white); padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.chat-head .brand-mark { width: 28px; height: 28px; }
.chat-head-text strong { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.chat-head-text span { font-size: 0.76rem; color: rgba(245,241,233,0.7); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--chalk); }
.chat-msg { max-width: 84%; padding: 11px 14px; border-radius: 12px; font-size: 0.88rem; line-height: 1.5; }
.chat-msg.bot { background: var(--white); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 3px; color: var(--ink); }
.chat-msg.user { background: var(--sienna); color: var(--white); align-self: flex-end; border-bottom-right-radius: 3px; }
.chat-msg.popia { font-size: 0.76rem; color: var(--slate); background: transparent; border: none; padding: 0 4px; }
.chat-msg.bot, .chat-msg.user { animation: chatIn 0.32s cubic-bezier(.22,.61,.36,1) both; }
@keyframes chatIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* typing indicator */
.chat-typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 15px; }
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--slate-pale);
  animation: chatDot 1.1s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.16s; }
.chat-typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes chatDot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-msg.bot, .chat-msg.user { animation: none; }
  .chat-typing span { animation: none; opacity: 0.6; }
}
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 2px 4px; }
.chat-chip {
  border: 1px solid var(--slate-deep); color: var(--slate-deep); background: var(--white);
  padding: 8px 14px; border-radius: 999px; font-size: 0.8rem; transition: background 0.2s ease, color 0.2s ease;
}
.chat-chip:hover { background: var(--slate-deep); color: var(--white); }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.chat-input-row input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 0.88rem; background: var(--chalk); }
.chat-input-row input:focus { outline: none; border-color: var(--sienna); }
.chat-send { width: 40px; height: 40px; border-radius: 50%; background: var(--sienna); color: var(--white); border: none; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.chat-send:hover { background: var(--sienna-deep); }
.chat-send svg { width: 17px; height: 17px; }

/* ---- Inner-page hero (products/areas) ---- */
.page-hero {
  padding: 158px 0 74px;
  background: var(--slate-deep);
  color: var(--chalk);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(182,85,45,0.22), transparent 55%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: #d8a281; }
.page-hero .eyebrow::before { background: #d8a281; }
.page-hero h1 { color: var(--white); margin-top: 16px; max-width: 20ch; }
.page-hero .lede { color: rgba(245,241,233,0.82); margin-top: 20px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: rgba(245,241,233,0.6); margin-bottom: 22px; }
.breadcrumb a { color: rgba(245,241,233,0.85); }
.breadcrumb a:hover { color: var(--white); }

/* Lead photograph on a product page — the product itself, never a room shot */
.product-lead {
  background: var(--white);
  padding: 0;
  margin: 0;
}
.product-lead .container { padding-top: 0; }
.product-lead figure {
  margin: -40px 0 0;
  max-width: 900px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--chalk-line);
  background: var(--chalk-dim);
}
.product-lead img {
  width: 100%; height: 100%;
  aspect-ratio: 16 / 8.6;
  object-fit: cover; display: block;
}
.product-lead figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 26px 20px;
  background: linear-gradient(180deg, transparent, rgba(38,46,51,0.8));
  color: var(--white);
  font-size: 0.85rem; letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .product-lead figure { margin-top: -34px; }
  .product-lead img { aspect-ratio: 4 / 3; }
}

.content-block { background: var(--white); }
.content-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; gap: 40px; } }
.content-grid .body-copy h3 { margin: 34px 0 12px; font-size: 1.3rem; color: var(--slate-deep); }
.content-grid .body-copy ul { display: grid; gap: 10px; margin-top: 14px; }
.content-grid .body-copy ul li { position: relative; padding-left: 24px; color: var(--ink); }
.content-grid .body-copy ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 1px; background: var(--sienna); }

.side-card {
  background: var(--chalk-dim);
  border-radius: var(--radius);
  padding: 32px;
  position: sticky;
  top: 110px;
}
.side-card h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sienna); margin-bottom: 14px; }
.side-card p { color: var(--slate); font-size: 0.92rem; margin-bottom: 20px; }
.side-card .btn-primary { width: 100%; justify-content: center; }

.related-products { background: var(--chalk-dim); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 780px) { .mini-grid { grid-template-columns: 1fr; } }
.mini-card { background: var(--white); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.mini-card .line-icon { width: 42px; height: 42px; color: var(--slate-deep); margin-bottom: 14px; }
.mini-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.mini-card p { font-size: 0.88rem; color: var(--slate); margin-bottom: 14px; }

/* ---- Area page specifics ---- */
.area-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 780px) { .area-facts { grid-template-columns: 1fr; } }
.area-fact { background: var(--white); padding: 34px 30px; }
.area-fact .fact-num { color: var(--chalk-line); font-family: var(--font-display); font-size: 2.2rem; }
.area-fact h4 { font-size: 1.02rem; margin: 10px 0 8px; color: var(--slate-deep); font-family: var(--font-display); font-weight: 400; }
.area-fact p { color: var(--slate); font-size: 0.92rem; }

.other-areas { background: var(--white); }
.other-areas-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 780px) { .other-areas-list { grid-template-columns: repeat(2, 1fr); } }
.other-area-card { background: var(--chalk-dim); padding: 26px; border-radius: var(--radius); transition: background 0.25s ease, transform 0.25s ease; }
.other-area-card:hover { background: var(--slate-deep); color: var(--white); transform: translateY(-3px); }
.other-area-card:hover p { color: rgba(245,241,233,0.8); }
.other-area-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.other-area-card p { font-size: 0.85rem; color: var(--slate); }

/* prefers-reduced-motion — every animated surface is named here, and every
   reveal target is forced visible so nothing can ever be stranded at opacity 0 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .split-word, .reveal, .reveal.stagger > *,
  .reveal > *, .fact-list li, .product-card, .process-step {
    opacity: 1 !important;
    transform: none !important;
  }
  .rule { transform: scaleX(1) !important; }
  .marquee-track { animation: none !important; transform: none !important; }
  .cta-glow { animation: none !important; transform: none !important; }
  .hero-frame img { transform: none !important; }
  .pthumb img { transition: none !important; }
  .product-card:hover .pthumb img,
  .mini-card:hover .pthumb img { transform: none !important; }
  .pthumb::after { transform: scaleX(1) !important; }
  .fence-line, .fence-post {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .faq-item[open] .faq-body { animation: none !important; }
}


/* 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}


/* ==========================================================================
   THE FIELD GUIDE (guide.html) — Rung 1/2/3 of the lead ladder
   Same palette, same fonts, same motion vocabulary as the rest of the site.
   ========================================================================== */

/* ---- Guide hero: boxed editorial on the textured chalk ground ---- */
.guide-hero {
  position: relative;
  padding: 150px 24px 0;
  background: var(--chalk);
  background-image: radial-gradient(circle at 1px 1px, var(--chalk-line) 1px, transparent 1.4px);
  background-size: 26px 26px;
}
.guide-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--chalk) 0%, rgba(245,241,233,0) 22%, rgba(245,241,233,0) 78%, var(--chalk) 100%);
  pointer-events: none;
}
.guide-hero .hero-inner { position: relative; z-index: 2; max-width: 940px; }
.guide-hero .breadcrumb { color: var(--slate); justify-content: center; }
.guide-hero .breadcrumb a { color: var(--slate); }
.guide-hero .breadcrumb a:hover { color: var(--sienna); }
.guide-hero h1 { color: var(--slate-deep); margin-bottom: 22px; }
.guide-hero .eyebrow { margin: 0 auto 20px; justify-content: center; }
.guide-hero .eyebrow::after { content: ""; width: 22px; height: 1px; background: var(--sienna); display: inline-block; }

.guide-meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 14px; margin: 30px auto 34px; max-width: 780px;
}
.guide-meta li {
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--slate); border: 1px solid var(--chalk-line);
  background: rgba(255,253,249,0.7);
  padding: 7px 14px; border-radius: 999px;
}
.guide-lead-figure {
  position: relative; z-index: 2;
  max-width: 1080px; margin: 54px auto 0;
  border: 1px solid var(--chalk-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg); background: var(--chalk-dim);
}
.guide-lead-figure img { width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; }
.guide-lead-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 26px 20px;
  background: linear-gradient(180deg, transparent, rgba(38,46,51,0.84));
  color: var(--white); font-size: 0.86rem; letter-spacing: 0.02em;
}
.guide-lead-figure figcaption b { font-weight: 600; margin-right: 8px; }

/* ---- Contents strip ---- */
.guide-index { background: var(--white); border-bottom: 1px solid var(--line); padding: 26px 0; }
.guide-index ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 26px;
}
@media (max-width: 900px) { .guide-index ol { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .guide-index ol { grid-template-columns: 1fr; } }
.guide-index a {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 0.86rem; color: var(--slate); padding: 4px 0;
  transition: color 0.25s ease;
}
.guide-index a:hover { color: var(--sienna); }
.guide-index .n { font-family: var(--font-display); color: var(--chalk-line); font-size: 1rem; }

/* ---- Guide sections ---- */
.guide-section { background: var(--white); padding: 96px 0; }
.guide-section.alt { background: var(--chalk-dim); }
.guide-section.tint { background: var(--chalk); }
@media (max-width: 720px) { .guide-section { padding: 66px 0; } }
.guide-section .section-head { max-width: 720px; }
.guide-section .section-head h2 { margin-top: 14px; }
.guide-section .section-head p { margin-top: 18px; color: var(--slate); font-size: 1.05rem; max-width: 62ch; }

.guide-prose { max-width: 68ch; color: var(--ink); }
.guide-prose p + p { margin-top: 1.05em; }
.guide-prose h3 {
  font-size: 1.32rem; color: var(--slate-deep);
  margin: 34px 0 12px;
}
.guide-prose ul { display: grid; gap: 10px; margin: 16px 0 0; }
.guide-prose ul li { position: relative; padding-left: 24px; }
.guide-prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 10px; height: 1px; background: var(--sienna);
}
.guide-prose sup { font-size: 0.68em; color: var(--sienna); letter-spacing: 0.02em; }
.guide-prose sup a { color: inherit; }
.guide-prose sup a:hover { text-decoration: underline; }

/* pull-quote style fact strip */
.fact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-top: 46px;
}
@media (max-width: 860px) { .fact-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .fact-strip { grid-template-columns: 1fr; } }
.fact-strip div { background: var(--white); padding: 28px 24px; }
.guide-section.alt .fact-strip div { background: var(--chalk); }
.fact-strip b {
  display: block; font-family: var(--font-display); font-size: 1.9rem;
  color: var(--slate-deep); line-height: 1.1; margin-bottom: 8px; font-weight: 400;
}
.fact-strip span { font-size: 0.88rem; color: var(--slate); }

/* ---- Signature figure: the sun-path arc ---- */
.sunpath {
  margin: 52px 0 0; background: var(--chalk);
  border: 1px solid var(--chalk-line); border-radius: var(--radius);
  padding: 26px 22px 18px; box-shadow: var(--shadow-sm);
}
.guide-section.alt .sunpath, .guide-section.tint .sunpath { background: var(--white); }
.sunpath svg { width: 100%; height: auto; display: block; }
.sunpath figcaption { font-size: 0.86rem; color: var(--slate); margin-top: 14px; max-width: 70ch; }
.sp-arc { fill: none; stroke-width: 2; stroke-linecap: round; }
.sp-dec { stroke: var(--sienna); }
.sp-jun { stroke: var(--slate-pale); }
.sp-house { fill: var(--slate-deep); }
.sp-glass { fill: var(--chalk-dim); }
.sp-ground { stroke: var(--chalk-line); stroke-width: 2; }
.sp-ray { stroke: var(--sienna); stroke-width: 1.4; }
.sp-ray.cool { stroke: var(--slate-pale); }
.sp-label { font-family: var(--font-body); font-size: 12px; fill: var(--slate); letter-spacing: 0.06em; }
.sp-label.hot { fill: var(--sienna-deep); }

/* ---- Elevation cards ---- */
.elev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 44px; }
@media (max-width: 780px) { .elev-grid { grid-template-columns: 1fr; } }
.elev {
  background: var(--white); padding: 34px 30px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.3s ease;
}
.guide-section.alt .elev { background: var(--chalk); }
.elev:hover { background: var(--chalk-dim); }
.elev-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.elev-head h3 { font-size: 1.22rem; color: var(--slate-deep); }
.elev-head .tag {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sienna); border: 1px solid rgba(182,85,45,0.35);
  border-radius: 999px; padding: 3px 10px;
}
.elev-head .tag.cool { color: var(--slate); border-color: rgba(84,105,122,0.35); }
.elev p { color: var(--slate); font-size: 0.96rem; }
.elev .rooms { font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-pale); }

/* ---- Recommendation cards ---- */
.rec-list { display: grid; gap: 20px; margin-top: 44px; }
.rec {
  display: grid; grid-template-columns: 1fr 210px; gap: 30px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 32px;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.guide-section.alt .rec { background: var(--chalk); }
.rec:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); border-color: var(--chalk-line); }
@media (max-width: 780px) { .rec { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; } }
.rec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 12px; }
.rec-head h3 { font-size: 1.24rem; color: var(--slate-deep); }
.rec-head .where { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sienna); }
.rec-body p { color: var(--ink); font-size: 0.98rem; }
.rec-trade {
  margin-top: 16px; padding: 14px 16px;
  background: rgba(182, 85, 45, 0.055); border-left: 2px solid var(--sienna);
}
.rec-trade b {
  display: block; font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sienna-deep); margin-bottom: 6px; font-weight: 600;
}
.rec-trade p { font-size: 0.92rem; color: var(--slate); }
.rec-side { display: flex; align-items: flex-start; }
.rec-add {
  width: 100%; background: transparent; border: 1px solid var(--slate-deep);
  color: var(--slate-deep); border-radius: 2px; padding: 13px 16px;
  font-size: 0.84rem; letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.rec-add:hover { background: var(--slate-deep); color: var(--white); }
.rec-add.is-added { background: var(--sienna); border-color: var(--sienna); color: var(--white); cursor: default; opacity: 1; }
.rec-add[disabled] { cursor: default; }

/* ---- Guide figures ---- */
.guide-figure {
  margin: 48px 0 0; position: relative; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--chalk-line);
}
.guide-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 24px 20px;
  background: linear-gradient(180deg, transparent, rgba(38,46,51,0.86));
  color: var(--white); font-size: 0.86rem; line-height: 1.55;
}
.guide-figure figcaption b { display: block; font-weight: 600; margin-bottom: 3px; }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 780px) { .fig-pair { grid-template-columns: 1fr; } }
.fig-pair .guide-figure { margin-top: 44px; }

/* ---- Dark band (estate rules) ---- */
.band-dark { background: var(--slate-deep); color: var(--chalk); padding: 96px 0; }
@media (max-width: 720px) { .band-dark { padding: 66px 0; } }
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .eyebrow { color: #d8a281; }
.band-dark .eyebrow::before { background: #d8a281; }
.band-dark .rule { background: #d8a281; }
.band-dark .guide-prose { color: rgba(245,241,233,0.86); }
.band-dark .guide-prose strong { color: var(--white); }
.band-dark .guide-prose ul li::before { background: #d8a281; }
.band-dark .section-head p { color: rgba(245,241,233,0.8); }
.band-dark .guide-prose sup { color: #d8a281; }

/* ---- "What we would check on site" ---- */
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 40px; margin-top: 44px; }
@media (max-width: 780px) { .check-list { grid-template-columns: 1fr; } }
.check-item { position: relative; padding-top: 22px; border-top: 1px solid var(--line); }
.check-item h4 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.1rem; color: var(--slate-deep); margin-bottom: 8px;
}
.check-item p { color: var(--slate); font-size: 0.95rem; }

/* ---- Inline capture (personalised guide) ---- */
.inline-capture {
  margin-top: 48px; background: var(--white);
  border: 1px solid var(--chalk-line); border-left: 3px solid var(--sienna);
  border-radius: var(--radius); padding: 34px 34px 30px; box-shadow: var(--shadow-sm);
}
.inline-capture h3 { font-size: 1.32rem; color: var(--slate-deep); margin-bottom: 10px; }
.inline-capture > p { color: var(--slate); font-size: 0.96rem; max-width: 64ch; }
.inline-capture form { margin-top: 22px; }
@media (max-width: 620px) { .inline-capture { padding: 26px 22px; } }

/* ---- The ladder band (Rung 3 + Rung 2) ---- */
.ladder-band { position: relative; background: var(--slate-deep); color: var(--chalk); overflow: hidden; padding: 100px 0; }
@media (max-width: 720px) { .ladder-band { padding: 68px 0; } }
.ladder-band .cta-glow { position: absolute; inset: -20%; }
.ladder-band .container { position: relative; z-index: 2; }
.ladder-band h2, .ladder-band h3 { color: var(--white); }
.ladder-band .eyebrow { color: #d8a281; }
.ladder-band .eyebrow::before { background: #d8a281; }
.ladder-band .rule { background: #d8a281; }
.ladder-band .section-head p { color: rgba(245,241,233,0.84); }
.ladder-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 54px; align-items: start; }
@media (max-width: 920px) { .ladder-grid { grid-template-columns: 1fr; gap: 36px; } }
.promise { display: grid; gap: 16px; }
.promise li { display: flex; gap: 12px; align-items: flex-start; color: rgba(245,241,233,0.88); font-size: 0.95rem; }
.promise svg { width: 20px; height: 20px; color: #d8a281; flex-shrink: 0; margin-top: 2px; }
.scarcity {
  margin-top: 26px; padding: 16px 18px;
  border-left: 2px solid #d8a281; background: rgba(216,162,129,0.09);
  color: rgba(245,241,233,0.9); font-size: 0.92rem; line-height: 1.6;
}
.carried-note { margin-top: 18px; font-size: 0.9rem; color: rgba(245,241,233,0.74); }

/* form card sitting on the dark band */
.ladder-band .form-card { background: var(--white); padding: 34px; }
@media (max-width: 520px) { .ladder-band .form-card { padding: 24px 20px; } }
.ladder-band .form-card h3 { color: var(--slate-deep); }
fieldset.interest-set { border: 0; padding: 0; margin: 0 0 20px; }
fieldset.interest-set legend {
  font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--slate); padding: 0; margin-bottom: 10px;
}
fieldset.interest-set legend span { text-transform: none; letter-spacing: 0; color: var(--slate-pale); }
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
@media (max-width: 560px) { .interest-grid { grid-template-columns: 1fr; } }
.interest-grid label {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 0.88rem; color: var(--ink); cursor: pointer; line-height: 1.4;
}
.interest-grid input { margin-top: 3px; accent-color: var(--sienna); flex-shrink: 0; }
.form-success {
  display: none; margin-top: 18px; padding: 20px 22px;
  background: var(--white); border-left: 3px solid var(--sienna);
  border-radius: var(--radius); color: var(--ink);
}
.form-success.show { display: block; }
.form-success h3 { font-size: 1.16rem; color: var(--slate-deep); margin-bottom: 8px; }
.form-success p { font-size: 0.95rem; color: var(--slate); }
.form-success p + p { margin-top: 10px; }
.form-success a { color: var(--sienna); text-decoration: underline; }
.inline-capture .form-success { background: var(--chalk); }

/* ---- Rung 2: the ballpark window list ---- */
.ballpark {
  margin: 4px 0 22px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--chalk);
}
.ballpark > summary {
  list-style: none; cursor: pointer; display: flex; gap: 14px;
  align-items: center; justify-content: space-between;
  padding: 16px 18px; font-size: 0.92rem; color: var(--slate-deep);
  transition: color 0.25s ease;
}
.ballpark > summary::-webkit-details-marker { display: none; }
.ballpark > summary:hover { color: var(--sienna); }
.ballpark .chev { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.3s ease; }
.ballpark[open] .chev { transform: rotate(180deg); }
.bp-inner { padding: 4px 18px 20px; border-top: 1px solid var(--line); }
.bp-pairing { font-size: 0.9rem; color: var(--slate); line-height: 1.6; margin: 16px 0 18px; }
.bp-pairing strong { color: var(--slate-deep); font-weight: 600; }
.bp-print-head { display: none; }
.bp-scroll { overflow-x: auto; }
.bp-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.bp-table th {
  text-align: left; font-family: var(--font-body); font-weight: 500;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate); padding: 0 8px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.bp-table td { padding: 7px 8px 7px 0; vertical-align: middle; }
.bp-table input, .bp-table select {
  width: 100%; min-width: 96px; border: 1px solid var(--line); border-radius: 2px;
  padding: 9px 10px; background: var(--white); color: var(--ink); font-size: 0.86rem;
}
.bp-table input:focus, .bp-table select:focus { outline: none; border-color: var(--sienna); }
.bp-table td.bp-rm { width: 34px; }
.bp-remove {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--slate); font-size: 1rem; line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.bp-remove:hover { background: var(--sienna); border-color: var(--sienna); color: var(--white); }
.bp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.bp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--white); color: var(--slate-deep);
  border-radius: 2px; padding: 11px 16px; font-size: 0.84rem;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.bp-btn svg { width: 15px; height: 15px; }
.bp-btn:hover { border-color: var(--sienna); color: var(--sienna); }
.bp-count { margin-top: 14px; font-size: 0.86rem; color: var(--slate-deep); }
.bp-foot { margin-top: 10px; font-size: 0.8rem; color: var(--slate); line-height: 1.55; }
.bp-holder { margin: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* mobile: rows become stacked cards */
@media (max-width: 640px) {
  .bp-table, .bp-table tbody, .bp-table tr, .bp-table td { display: block; width: 100%; }
  .bp-table thead { position: absolute; left: -9999px; }
  .bp-table tr.bp-row {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--white); padding: 14px 14px 8px; margin-bottom: 12px; position: relative;
  }
  .bp-table td { padding: 0 0 10px; }
  .bp-table td::before {
    content: attr(data-lbl);
    display: block; font-size: 0.68rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--slate); 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-table input, .bp-table select { min-width: 0; }
}

/* ---- Sources ---- */
.sources ol { counter-reset: src; display: grid; gap: 14px; max-width: 88ch; }
.sources li {
  position: relative; padding-left: 34px;
  font-size: 0.9rem; color: var(--slate); line-height: 1.6;
}
.sources li::before {
  counter-increment: src; content: "[" counter(src) "]";
  position: absolute; left: 0; top: 0; color: var(--sienna); font-size: 0.82rem;
}
.sources a { color: var(--slate-deep); text-decoration: underline; text-underline-offset: 2px; }
.sources a:hover { color: var(--sienna); }
.sources .note {
  margin-top: 26px; padding: 18px 20px; background: var(--white);
  border-left: 2px solid var(--chalk-line); font-size: 0.86rem; color: var(--slate); max-width: 82ch;
}

/* ---- Guide closing ---- */
.guide-close {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  background: var(--chalk-dim); border-radius: var(--radius); padding: 46px 44px;
}
@media (max-width: 820px) { .guide-close { grid-template-columns: 1fr; padding: 34px 26px; } }
.guide-close h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin: 12px 0 12px; }
.guide-close p { color: var(--slate); max-width: 52ch; }
.guide-close .hero-ctas { margin-bottom: 0; justify-content: flex-start; }

/* guide cross-link card used on the homepage and area pages */
.guide-plug {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: stretch;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 860px) { .guide-plug { grid-template-columns: 1fr; } }
.guide-plug .gp-copy { padding: 46px 44px; }
@media (max-width: 560px) { .guide-plug .gp-copy { padding: 30px 24px; } }
.guide-plug h2 { margin: 14px 0 16px; }
.guide-plug p { color: var(--slate); max-width: 56ch; }
.guide-plug ul { display: grid; gap: 8px; margin: 20px 0 26px; }
.guide-plug ul li { position: relative; padding-left: 22px; font-size: 0.94rem; color: var(--slate); }
.guide-plug ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 1px; background: var(--sienna); }
.guide-plug .gp-photo { position: relative; min-height: 280px; background: var(--chalk-dim); }
.guide-plug .gp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side-card .guide-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-size: 0.84rem; color: var(--sienna); text-decoration: underline; text-underline-offset: 3px;
}

/* ---- Print: the ballpark walk-the-house sheet ---- */
@media print {
  body.bp-printing .site-nav,
  body.bp-printing .guide-hero,
  body.bp-printing .guide-index,
  body.bp-printing .guide-section,
  body.bp-printing .band-dark,
  body.bp-printing .site-footer,
  body.bp-printing .chat-widget,
  body.bp-printing .ladder-band .section-head,
  body.bp-printing .ladder-band .ladder-side,
  body.bp-printing .ladder-band .cta-glow,
  body.bp-printing .ladder-tail,
  body.bp-printing .bp-actions,
  body.bp-printing .bp-count,
  body.bp-printing .ballpark > summary,
  body.bp-printing .interest-set,
  body.bp-printing .form-row,
  body.bp-printing .popia-note,
  body.bp-printing .form-status,
  body.bp-printing .form-success,
  body.bp-printing button[type="submit"] { display: none !important; }

  body.bp-printing { background: #fff; color: #000; }
  body.bp-printing .ladder-band { background: #fff !important; color: #000 !important; padding: 0 !important; }
  body.bp-printing .ladder-grid { display: block !important; }
  body.bp-printing .form-card { border: 0 !important; box-shadow: none !important; padding: 0 !important; background: #fff !important; }
  body.bp-printing .ballpark { border: 0 !important; background: #fff !important; margin: 0 !important; }
  body.bp-printing .bp-inner { border: 0 !important; padding: 0 !important; }
  body.bp-printing .bp-print-head { display: block; margin-bottom: 14px; }
  body.bp-printing .bp-print-head h2 { font-size: 1.4rem; color: #000; }
  body.bp-printing .bp-print-head p { font-size: 0.86rem; margin-top: 6px; }
  body.bp-printing .bp-pairing { font-size: 0.82rem; }
  body.bp-printing .bp-table { display: table !important; width: 100%; }
  body.bp-printing .bp-table thead { position: static !important; display: table-header-group !important; }
  body.bp-printing .bp-table tbody { display: table-row-group !important; }
  body.bp-printing .bp-table tr { display: table-row !important; }
  body.bp-printing .bp-table th, body.bp-printing .bp-table td {
    display: table-cell !important; border-bottom: 1px solid #999;
    padding: 12px 6px !important; color: #000;
  }
  body.bp-printing .bp-table td::before { content: none !important; }
  body.bp-printing .bp-table td.bp-rm { display: none !important; }
  body.bp-printing .bp-table input, body.bp-printing .bp-table select {
    border: 0 !important; background: transparent !important; font-size: 0.9rem; color: #000;
    -webkit-appearance: none; appearance: none;
  }
  body.bp-printing .bp-foot { font-size: 0.76rem; }
}

/* ---- Motion safety for the guide ---- */
@media (prefers-reduced-motion: reduce) {
  .sp-arc, .sp-ray { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .rec, .elev, .check-item { opacity: 1 !important; transform: none !important; }
}
