/* ==========================================================================
   Groenkloof Blinds — stylesheet
   Theme: heritage-reserve · Palette: sea-glass green + salt white + rope beige
   Fonts: Marcellus (display) + Jost (body/UI)
   ========================================================================== */

:root {
  --ink: #182720;
  --ink-soft: #3a4c41;
  --sea: #5f8d78;
  --sea-deep: #3f6552;
  --sea-pale: #e4ede8;
  --salt: #f8f6ef;
  --salt-dim: #efeadd;
  --rope: #c39c60;
  --rope-deep: #92784e;
  --line: rgba(24, 39, 32, 0.14);
  --shadow: rgba(20, 32, 26, 0.22);
  --radius: 2px;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: clamp(64px, 9vw, 104px);
  --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;
  background: var(--salt);
  color: var(--ink);
  font-family: 'Jost', 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Marcellus', 'Georgia', serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sea-deep);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--rope-deep);
}

.rule {
  width: 64px;
  height: 1px;
  background: var(--rope-deep);
  transform-origin: left;
  transform: scaleX(0);
  margin: 0 0 1.4em;
}
.rule.in-view { transform: scaleX(1); transition: transform 0.9s var(--ease); }

section { padding: var(--section-pad) 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: 'Jost', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
}
.btn-solid {
  background: var(--sea-deep);
  color: var(--salt);
  border-color: var(--sea-deep);
}
.btn-solid:hover { background: var(--ink); border-color: var(--ink); box-shadow: 0 10px 24px -12px var(--shadow); }
.btn-outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn:focus-visible { outline: 2px solid var(--rope); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 20px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav.solid {
  background: rgba(248, 246, 239, 0.94);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px var(--shadow);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; flex: none; color: var(--rope); }
.nav.solid .brand-mark { color: var(--sea-deep); }
.brand-word { color: var(--salt); transition: color .35s var(--ease); }
.nav.solid .brand-word { color: var(--ink); }
.brand-word .name { display: block; font-family: 'Marcellus', serif; font-size: 1.2rem; letter-spacing: 0.01em; }
.brand-word .sub { display: block; font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.75; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--salt);
  position: relative;
  padding: 4px 0;
  transition: color .35s var(--ease);
}
.nav.solid .nav-links a { color: var(--ink-soft); }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .btn { margin-left: 6px; }
.nav.solid .btn-outline { color: var(--ink); border-color: var(--ink); }
.nav .btn-outline { color: var(--salt); border-color: var(--salt); padding: 10px 22px; font-size: 0.76rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--salt); transition: background .3s; }
.nav.solid .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--salt);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
}
/* Scrim, shaped rather than flat. The hero photograph is a bright white-walled
   heritage room, so a single even wash either drowns the picture or leaves white
   type unreadable on the plaster. Instead: a gentle vertical pass over the whole
   frame (enough for the nav), and a second pass that darkens only the left text
   column and fades out by ~three-quarters across. Result — the headline sits on
   ~0.7 combined alpha, and the right two-thirds of the room stays clearly
   visible. Layer order matters: the first listed paints on top. */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(13,21,17,0.34) 0%,
      rgba(13,21,17,0.10) 18%,
      rgba(13,21,17,0.16) 42%,
      rgba(13,21,17,0.68) 100%),
    linear-gradient(97deg,
      rgba(13,21,17,0.74) 0%,
      rgba(13,21,17,0.68) 26%,
      rgba(13,21,17,0.54) 55%,
      rgba(13,21,17,0.12) 80%,
      rgba(13,21,17,0) 100%);
}
@media (max-width: 860px) {
  /* Narrow screens: the copy spans the full width, so there is no left column to
     darken — the shaping has to be top-to-bottom. The clear window sits high, in
     the band above the eyebrow, and the scrim ramps in from there. Measured
     against the actual photograph: headline median ~5:1, sub-line ~8:1. */
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(13,21,17,0.40) 0%,
      rgba(13,21,17,0.22) 11%,
      rgba(13,21,17,0.58) 30%,
      rgba(13,21,17,0.72) 62%,
      rgba(13,21,17,0.90) 100%);
  }
}
.hero-inner {
  position: relative; z-index: 2;
  padding-bottom: clamp(48px, 8vw, 96px);
  padding-top: 160px;
  max-width: 680px;
}
/* A soft shadow rather than a heavier scrim: it buys legibility over the bright
   plaster in the photograph without taking another 10% off the picture. */
.hero-inner { text-shadow: 0 1px 2px rgba(13,21,17,0.32), 0 2px 22px rgba(13,21,17,0.42); }
.hero-inner .btn { text-shadow: none; }
.hero .eyebrow { color: #eef4f0; }
.hero .eyebrow::before { background: var(--rope); }
.hero h1 {
  color: var(--salt);
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  margin-bottom: 0.42em;
}
.hero h1 .word { display: inline-block; overflow: hidden; }
.hero h1 .word span { display: inline-block; transform: translateY(110%); }
.hero-sub {
  font-size: 1.08rem;
  color: #e9efe9;
  max-width: 46ch;
  margin-bottom: 2em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 2.6em; }
.hero .btn-outline { border-color: rgba(248,246,239,0.7); }

.trust-row { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: #eef2ee; }
.trust-item svg { width: 18px; height: 18px; flex: none; color: var(--rope); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--salt);
  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 42s linear infinite;
}
.marquee-track span {
  font-family: 'Marcellus', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #dbe6df;
  padding: 0 2.2rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
}
.marquee-track span::after { content: '•'; color: var(--rope); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; overflow-x: auto; } }

/* ---------- Reveal utility ---------- */
/* Reveal targets start hidden ONLY when JS is running to bring them back. The
   .js class is set by main.js at the top of the document; without it (JS off,
   script blocked, or an error before the observer binds) every reveal target
   renders statically visible. Content must never be trapped at opacity 0. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.in-view { opacity: 1; transform: translateY(0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-stagger.in-view > * { transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* Reduced motion: everything is present and still. No reveals, no draw-ins,
   no word-stagger, no parallax handoff — just the finished page. */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .reveal.in-view { opacity: 1 !important; transform: none !important; transition: none !important; }
  .rule, .rule.in-view { transform: scaleX(1) !important; transition: none !important; }
  .hero h1 .word span { transform: none !important; }
  .hero-media img { transform: none !important; }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }
.section-alt { background: var(--salt-dim); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.product-card {
  background: var(--salt);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .3s var(--ease);
}
.product-card:hover { background: var(--sea-pale); }
.product-icon { width: 52px; height: 52px; color: var(--sea-deep); }
.product-card h3 { font-size: 1.16rem; margin-bottom: 0.15em; }
.product-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.2em; flex-grow: 1; }
.product-link {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--sea-deep); display: inline-flex; align-items: center; gap: 6px;
}
.product-link svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.product-card:hover .product-link svg { transform: translateX(4px); }

/* ---------- Editorial photo section ---------- */
.editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 18px;
}
.ed-a { grid-column: 1 / 8; grid-row: 1 / 3; }
.ed-b { grid-column: 8 / 13; grid-row: 1 / 2; }
.ed-c { grid-column: 8 / 13; grid-row: 2 / 3; }
.ed-figure { position: relative; overflow: hidden; }
.ed-figure img { width: 100%; height: 100%; object-fit: cover; }
.ed-a img { aspect-ratio: 4/5; }
.ed-b img, .ed-c img { aspect-ratio: 16/10; }
.ed-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 22px;
  background: linear-gradient(0deg, rgba(15,24,19,0.78), rgba(15,24,19,0));
  color: var(--salt);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ---------- Locale storytelling ---------- */
.locale {
  position: relative;
  background: var(--ink);
  color: var(--salt);
  overflow: hidden;
}
.locale .eyebrow { color: #cfe0d7; }
.locale .eyebrow::before { background: var(--rope); }
.locale h2 { color: var(--salt); }
.locale-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: start; position: relative; z-index: 2; }
.locale-copy p { color: #d9e3dc; }
.locale-facts { display: grid; gap: 22px; margin-top: 1.6em; }
.locale-fact { border-top: 1px solid rgba(255,255,255,0.16); padding-top: 16px; }
.locale-fact h4 { color: var(--rope); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-family: 'Jost', sans-serif; margin-bottom: 0.5em; }
.locale-fact p { color: #d9e3dc; font-size: 0.94rem; margin: 0; }

.canopy-stage {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,0.14);
}
.canopy-stage svg { width: 100%; height: 100%; display: block; }
.canopy-dapple { opacity: 0; transition: opacity 1.4s ease; }
.canopy-dapple.lit { opacity: var(--dapple-op, 0.85); }
.canopy-line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}
.canopy-line.drawn { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .canopy-dapple { opacity: var(--dapple-op, 0.85) !important; }
  .canopy-line { stroke-dashoffset: 0 !important; }
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.process-step { position: relative; padding-top: 18px; border-top: 1px solid var(--line); }
.process-num { font-family: 'Marcellus', serif; font-size: 2.6rem; color: var(--sea); display: block; margin-bottom: 0.3em; }
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.process-step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Area chips ---------- */
.area-chips { display: flex; flex-wrap: wrap; gap: 14px; }
.area-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem; font-weight: 500;
  background: var(--salt);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.area-chip:hover { border-color: var(--sea-deep); background: var(--sea-pale); transform: translateY(-2px); }
.area-chip svg { width: 14px; height: 14px; color: var(--rope-deep); }

/* ---------- FAQ ---------- */
.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: 24px;
  padding: 26px 4px;
  font-family: 'Marcellus', serif;
  font-size: 1.12rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 20px; height: 20px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--sea-deep);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-icon::before { width: 16px; height: 1.6px; }
.faq-icon::after { width: 1.6px; height: 16px; transition: transform .3s var(--ease); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-body { padding: 0 4px 28px; color: var(--ink-soft); max-width: 68ch; }
.faq-body p { margin: 0; }

/* ---------- Closing CTA ---------- */
.cta-section {
  position: relative;
  background: var(--sea-deep);
  color: var(--salt);
  overflow: hidden;
  text-align: center;
}
.cta-glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38% 45% at 20% 30%, rgba(195,156,96,0.35), transparent 70%),
    radial-gradient(45% 50% at 80% 70%, rgba(248,246,239,0.16), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(-2%, -2%) scale(1); }
  to { transform: translate(3%, 3%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .cta-glow { animation: none; } }
.cta-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta-section h2 { color: var(--salt); }
.cta-section p { color: #eaf1ec; margin: 0 auto 1.8em; }
.cta-section .btn-solid { background: var(--rope); border-color: var(--rope); color: var(--ink); }
.cta-section .btn-solid:hover { background: var(--salt); border-color: var(--salt); }
.cta-section .btn-outline { border-color: rgba(248,246,239,0.6); }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.magnetic { will-change: transform; }

/* ---------- Enquiry form ---------- */
.enquire-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.form-card {
  background: var(--salt-dim);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--salt);
  font-family: 'Jost', sans-serif;
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sea-deep);
}
.field textarea { resize: vertical; min-height: 100px; }
.popia-note {
  font-size: 0.8rem; color: var(--ink-soft); margin: 6px 0 20px; padding-left: 26px; position: relative;
}
.popia-note svg { position: absolute; left: 0; top: 2px; width: 16px; height: 16px; color: var(--sea-deep); }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.show { display: block; }
.form-success svg { width: 46px; height: 46px; color: var(--sea-deep); margin: 0 auto 18px; }
.enquire-side h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.enquire-list { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 16px; }
.enquire-list li { display: flex; gap: 12px; font-size: 0.94rem; color: var(--ink-soft); }
.enquire-list svg { width: 18px; height: 18px; color: var(--rope-deep); flex: none; margin-top: 2px; }

/* ---------- Sub-page hero (products / areas) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--salt);
  padding-top: clamp(120px, 18vw, 168px);
  padding-bottom: 56px;
}
.page-hero .eyebrow { color: #cfe0d7; }
.page-hero .eyebrow::before { background: var(--rope); }
.page-hero h1 { color: var(--salt); font-size: clamp(2.1rem, 4.2vw, 3.2rem); max-width: 18ch; }
.page-hero p { color: #d9e3dc; font-size: 1.02rem; max-width: 60ch; }
.page-hero-crumb { font-size: 0.8rem; color: #9db3a6; margin-bottom: 1.4em; }
.page-hero-crumb a { color: var(--rope); }
.page-hero-crumb a:hover { text-decoration: underline; }

.page-photo { position: relative; overflow: hidden; }
.page-photo img { width: 100%; height: clamp(240px, 40vw, 460px); object-fit: cover; }

.content-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.content-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 1.4em; }
.content-copy h2:first-child { margin-top: 0; }
.content-copy p { color: var(--ink-soft); max-width: 68ch; }
.content-copy ul { padding-left: 1.2em; color: var(--ink-soft); margin: 0 0 1.4em; }
.content-copy li { margin-bottom: 0.5em; max-width: 60ch; }

.side-card {
  background: var(--salt-dim);
  border: 1px solid var(--line);
  padding: 30px;
  position: sticky;
  top: 110px;
}
.side-card h3 { font-size: 1.1rem; margin-bottom: 0.6em; }
.side-card p { font-size: 0.92rem; color: var(--ink-soft); }
.side-card .btn { width: 100%; justify-content: center; margin-top: 14px; }
.side-list { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 12px; }
.side-list li { display: flex; gap: 10px; font-size: 0.88rem; color: var(--ink-soft); }
.side-list svg { width: 16px; height: 16px; color: var(--rope-deep); flex: none; margin-top: 3px; }

.related-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }
.related-row a {
  border: 1px solid var(--line);
  padding: 10px 18px;
  font-size: 0.85rem;
  border-radius: 999px;
  transition: border-color .25s, background .25s;
}
.related-row a:hover { border-color: var(--sea-deep); background: var(--sea-pale); }

.mini-cta {
  background: var(--sea-deep);
  color: var(--salt);
  padding: 56px 0;
  text-align: center;
}
.mini-cta h2 { color: var(--salt); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.mini-cta p { color: #eaf1ec; margin: 0 auto 1.6em; }
.mini-cta .btn-solid { background: var(--rope); border-color: var(--rope); color: var(--ink); }
.mini-cta .btn-solid:hover { background: var(--salt); border-color: var(--salt); }
.mini-cta .btn-outline { border-color: rgba(248,246,239,0.6); }
.mini-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cddad2; padding: 64px 0 36px; }
.footer .brand { margin-bottom: 20px; }
.footer .brand-word .name, .footer .brand-word .sub { color: var(--salt); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 36px; margin-bottom: 24px; }
.footer-statement { max-width: 380px; font-size: 0.92rem; color: #b9c9c0; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rope); margin-bottom: 1em; font-family: 'Jost', sans-serif; }
.footer-col a { display: block; font-size: 0.88rem; color: #cddad2; padding: 5px 0; transition: color .25s; }
.footer-col a:hover { color: var(--salt); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: #93a69b; }
.footer-popia { max-width: 640px; }

/* ---------- Chat widget ---------- */
.chat-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--sea-deep); color: var(--salt);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -10px var(--shadow);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.chat-launcher:hover { transform: scale(1.06); background: var(--ink); }
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher .close-icon { display: none; }
.chat-launcher.open .chat-icon { display: none; }
.chat-launcher.open .close-icon { display: block; }

.chat-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 900;
  width: min(360px, calc(100vw - 44px));
  max-height: min(560px, calc(100vh - 140px));
  background: var(--salt);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -16px var(--shadow);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-head { background: var(--ink); color: var(--salt); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.chat-head .brand-mark { width: 26px; height: 26px; color: var(--rope); flex: none; }
.chat-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-head-text .name { font-family: 'Marcellus', serif; font-size: 1rem; }
.chat-head-text .status { font-size: 0.72rem; color: #b9c9c0; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--salt-dim); }
.chat-msg { max-width: 84%; padding: 10px 13px; font-size: 0.88rem; line-height: 1.5; border-radius: 2px; }
.chat-msg.bot { background: var(--salt); border: 1px solid var(--line); align-self: flex-start; }
.chat-msg.user { background: var(--sea-deep); color: var(--salt); align-self: flex-end; }
.chat-popia { font-size: 0.72rem; color: var(--ink-soft); background: var(--sea-pale); border: 1px solid var(--line); padding: 8px 10px; align-self: stretch; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; background: var(--salt-dim); }
.chat-chips[hidden] { display: none; }
.chat-chip {
  border: 1px solid var(--sea-deep); color: var(--sea-deep); background: var(--salt);
  padding: 8px 13px; font-size: 0.8rem; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s;
}
.chat-chip:hover { background: var(--sea-deep); color: var(--salt); }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--salt); }
.chat-input-row[hidden] { display: none; }
.chat-input-row input {
  flex: 1; border: 1px solid var(--line); padding: 10px 12px; font-family: 'Jost', sans-serif; font-size: 0.88rem;
}
.chat-input-row input:focus { outline: none; border-color: var(--sea-deep); }
.chat-send { background: var(--sea-deep); color: var(--salt); border: none; padding: 0 16px; cursor: pointer; }
.chat-send:hover { background: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .locale-grid { grid-template-columns: 1fr; }
  .canopy-stage { min-height: 320px; }
  .enquire-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--ink); flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 110px 32px 40px; gap: 26px; transform: translateX(100%); transition: transform .4s var(--ease); }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--salt) !important; }
  .nav-toggle { display: flex; z-index: 600; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial { grid-template-columns: 1fr; }
  .ed-a, .ed-b, .ed-c { grid-column: 1 / -1; grid-row: auto; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 130px; }
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 88px; }
  .chat-launcher { right: 16px; bottom: 16px; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--rope-deep);
  outline-offset: 3px;
}

/* 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}}

/* Guard: .pthumb is a PRODUCT-CARD thumbnail frame. If it is ever applied to the
   full-bleed hero or a page lead photo it must not force a 4:3 box on them — and
   the hero image must never carry a CSS transition, because GSAP scrubs its
   transform on scroll and a transition turns that parallax into lag. */
.hero-media.pthumb,
.page-photo.pthumb { aspect-ratio: auto; margin: 0; background: none; }
.hero-media.pthumb { height: 100% !important; }
.hero-media.pthumb img { transition: none; }
.page-photo.pthumb img { height: clamp(240px, 40vw, 460px); }


/* 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}


/* ==========================================================================
   Craft pass — mobile nav, card motion, canopy sun-drift, chat detail
   ========================================================================== */

/* ---- Mobile nav: backdrop, animated bars, scroll lock ---- */
.nav-scrim {
  position: fixed; inset: 0; z-index: 480;
  background: rgba(13, 21, 17, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.nav-scrim.show { opacity: 1; pointer-events: auto; }
@media (min-width: 861px) { .nav-scrim { display: none; } }
body.nav-open { overflow: hidden; }

.nav-toggle span {
  transform-origin: center;
  transition: background .3s var(--ease), transform .35s var(--ease), opacity .25s var(--ease);
}
.nav-toggle.open span { background: var(--salt); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:hover span { background: var(--rope); }
.nav.solid .nav-toggle:hover span { background: var(--sea-deep); }

/* ---- Product cards: photo frame + lift ---- */
.product-card .pthumb { margin: 0 0 18px; }

/* Repairs is a service, not a product line, so it takes the full width of the
   final row rather than orphaning a cell at every breakpoint. */
.product-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  gap: 34px;
}
.product-card--wide .pthumb {
  flex: 0 0 clamp(220px, 32%, 380px);
  margin: 0;
  aspect-ratio: auto;
  align-self: stretch;
  min-height: 190px;
  position: relative;
}
.product-card--wide .pthumb img { position: absolute; inset: 0; height: 100%; }
.product-card--wide .wide-copy { display: flex; flex-direction: column; justify-content: center; }
.product-card--wide .eyebrow { margin-bottom: 0.7em; }
.product-card--wide h3 { font-size: 1.5rem; margin-bottom: 0.35em; }
.product-card--wide p { max-width: 68ch; flex-grow: 0; }
.product-card--wide .product-link { align-self: flex-start; margin-top: 6px; }
@media (max-width: 720px) {
  .product-card--wide { flex-direction: column; align-items: stretch; gap: 0; }
  .product-card--wide .pthumb { flex: none; margin: 0 0 18px; }
}
.product-card {
  transition: background .3s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -30px var(--shadow); }
.product-link { transition: color .25s var(--ease), gap .25s var(--ease); }
.product-card:hover .product-link { color: var(--rope-deep); gap: 10px; }
@media (prefers-reduced-motion: reduce) {
  .product-card:hover { transform: none; }
}

/* ---- Editorial figures: slow photographic push ---- */
.ed-figure img { transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.ed-figure:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .ed-figure img, .ed-figure:hover img { transition: none; transform: none; }
}

/* ---- Signature moment: the sun moving through the canopy ----
   The hero promises light "that moves through the canopy all day". This is that
   sentence, drawn: a warm rope-toned light source that crosses the stage while
   the dapples underneath breathe in and out of it. */
.canopy-stage { isolation: isolate; }
.canopy-sun {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(30% 34% at 18% 22%, rgba(195,156,96,0.30), rgba(195,156,96,0) 70%);
  animation: sunwalk 26s ease-in-out infinite alternate;
}
.canopy-stage svg { position: relative; z-index: 1; }
@keyframes sunwalk {
  from { transform: translate3d(-6%, 0, 0) scale(1); opacity: 0.75; }
  50%  { opacity: 1; }
  to   { transform: translate3d(46%, 9%, 0) scale(1.18); opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  .canopy-sun { animation: none; transform: translate3d(16%, 4%, 0); }
}

/* ---- FAQ: warmer open state ---- */
.faq-item summary { transition: color .25s var(--ease); }
.faq-item summary:hover { color: var(--sea-deep); }
.faq-item[open] summary { color: var(--sea-deep); }
.faq-icon::before, .faq-icon::after { transition: background .25s var(--ease), transform .3s var(--ease), opacity .3s var(--ease); }
.faq-item[open] .faq-icon::before { background: var(--rope-deep); }
.faq-body { animation: faqIn .45s var(--ease) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .faq-body { animation: none; } }

/* ---- Form: clearer focus, honest hint text ---- */
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 0 0 0 3px rgba(95, 141, 120, 0.16);
}
.field-hint { font-size: 0.78rem; color: var(--ink-soft); opacity: 0.85; margin: 6px 0 0; }
.form-error { color: #8c3a2b; font-size: 0.8rem; margin: 6px 0 0; display: none; }
.form-error.show { display: block; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #8c3a2b; }

/* ---- Chat: typing indicator + transcript rhythm ---- */
.chat-typing { display: inline-flex; gap: 5px; align-items: center; }
.chat-typing i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--sea-deep);
  animation: blip 1.1s ease-in-out infinite;
}
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blip { 0%, 60%, 100% { opacity: .28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .chat-typing i { animation: none; opacity: .6; } }
.chat-msg { animation: msgIn .32s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chat-msg { animation: none; } }
.chat-launcher:focus-visible { outline: 2px solid var(--rope); outline-offset: 3px; }
.chat-launcher .dot {
  position: absolute; top: 12px; right: 13px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--rope); border: 2px solid var(--sea-deep);
}
.chat-launcher.open .dot { display: none; }

/* ---- Skip link: visible when focused ---- */
.skip-link:focus { left: 12px !important; top: 12px !important; }
