/* ---------- Design tokens ---------- */
:root{
  /* Palette derived from the official TMR logo:
     forest green #113b22 (TMR letters, ~59% of logo ink) = primary,
     timber brown #5b3e21 (tree trunk) = secondary/warm accent,
     near-black #0a0a0a (TIMBER wordmark) = ink. */
  --ink: #17201a;
  --ink-soft: #35443a;
  --muted: #5f6b62;
  --brand: #2e7d47;
  --brand-light: #7ecf9d;  /* accents sitting on dark surfaces (header, hero, footer) */
  --brand-dark: #113b22;
  --brand-darker: #0c2b18;
  --accent-brown: #5b3e21;
  --bg: #ffffff;
  --bg-alt: #f3f6f3;
  --bg-dark: #101711;
  --border: #dfe5df;
  --radius: 6px;
  --container: 1180px;
  --font-head: "League Spartan", Arial, Helvetica, sans-serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
}

/* Any element also styled with its own `display` must still respect [hidden] —
   author rules otherwise beat the UA stylesheet's [hidden]{display:none} at
   equal specificity. Toggle visibility via the `hidden` attribute/property. */
[hidden]{ display: none !important; }

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4{ font-family: var(--font-head); font-weight: 600; margin: 0; color: var(--brand-darker); }

.skip-link{
  position: absolute; left: -999px; top: 0; background: var(--brand-darker); color: #fff;
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus{ left: 10px; top: 10px; }

.section-inner{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }

#home, #why, #projects, #products, #about, #contact{ scroll-margin-top: 76px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  /* No backdrop-filter here: on iOS Safari a filtered ancestor becomes the
     containing block for position:fixed children, which pinned/clipped the
     mobile nav panel to the header and let its links bleed over the hero. */
  background: rgba(16,23,17,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner{
  max-width: var(--container); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand{ display: flex; align-items: center; gap: 12px; margin-right: auto; }
/* Official logo artwork is dark-on-white, so it sits on a white chip —
   the same treatment as the physical signboard at the warehouse. */
.brand-logo{
  height: 52px; width: auto; display: block;
  background: #fff; padding: 5px 11px; border-radius: 5px;
}
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-name{ font-family: var(--font-head); font-weight: 700; font-size: 19px; color: #fff; letter-spacing: 0.3px; }
.brand-sub{ font-size: 13px; letter-spacing: 0.4px; font-weight: 600; font-style: italic; color: var(--brand-light); white-space: nowrap; }
/* The nowrap slogan collides with the nav at in-between widths — only show
   it when there is comfortably room for both. */
@media (max-width: 1240px){ .brand-text{ display: none; } }



.primary-nav{ display: flex; gap: 28px; }
.primary-nav a{ white-space: nowrap; }
@media (max-width: 1150px){ .primary-nav{ gap: 16px; } }
.primary-nav a{
  color: #f1ede7; font-size: 15.5px; font-weight: 600; letter-spacing: 0.2px;
  position: relative; padding: 4px 0;
}
.primary-nav a::after{
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--brand); transition: width .2s ease;
}
.primary-nav a:hover::after{ width: 100%; }

.header-cta{ display: flex; align-items: center; gap: 16px; }
.phone-chip{ display: none; align-items: center; gap: 6px; color: #f1ede7; font-size: 14px; font-weight: 600; white-space: nowrap; }
.phone-chip svg{ width: 16px; height: 16px; color: var(--brand-light); }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0;
}
.nav-toggle span{ display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius); font-size: 13px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase; border: 1px solid transparent; cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--brand); color: #fff; }
.btn-primary:hover{ background: #37955a; box-shadow: 0 8px 20px rgba(17,59,34,0.28); }
.btn-outline{ background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover{ background: rgba(255,255,255,0.18); }
.btn-ghost{ background: transparent; color: #fff; border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.btn-block{ width: 100%; }

/* ---------- Hero ---------- */
.hero{
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  background: var(--bg-dark); color: #fff; overflow: hidden;
}
.hero-bg{
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 85% 15%, rgba(200,134,58,0.22), transparent 60%),
    linear-gradient(180deg, rgba(12,20,14,0.35), rgba(12,20,14,0.85) 70%, #101711 100%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(25deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 64px),
    #201a14;
}
/* An uploaded hero photo replaces the gradient stack above (inline
   background-image wins), so re-apply a darkening scrim for text contrast. */
.hero-bg.has-image::after{
  content: ""; position: absolute; inset: 0;
  /* Keep the photo bright — only a light veil, deepening just at the very
     bottom; text legibility comes from text-shadow, not from darkening. */
  background: linear-gradient(180deg, rgba(10,16,11,0.08), rgba(10,16,11,0.16) 55%, rgba(10,16,11,0.55) 100%);
}
.hero-bg.has-image ~ .hero-inner .eyebrow,
.hero-bg.has-image ~ .hero-inner h1,
.hero-bg.has-image ~ .hero-inner .hero-points li{
  text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 0 28px rgba(0,0,0,0.35);
}
.hero-bg.has-image ~ .hero-inner .eyebrow{ color: #9ed6b2; }
.hero-inner{
  position: relative; max-width: var(--container); margin: 0 auto; width: 100%;
  padding: 160px 24px 88px;
}
.eyebrow{
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--brand); margin: 0 0 14px;
}
.hero h1{
  color: #fff; font-size: clamp(32px, 5vw, 52px); line-height: 1.12; font-weight: 600;
  max-width: 780px; margin-bottom: 22px;
}
.hero-points{ display: flex; flex-direction: column; gap: 4px; margin-bottom: 34px; }
.hero-points li{ font-size: 18px; font-style: italic; font-weight: 600; color: #f1ede7; }
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Section titles ---------- */
.section-title{
  text-align: center; font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 48px;
}
.section-title-left{ text-align: left; }
.rule{ display: block; width: 56px; height: 3px; background: var(--brand); margin: 16px auto 0; border-radius: 3px; }
.section-title-left .rule{ margin: 16px 0 0; }

/* ---------- Why ---------- */
.why{ padding: 96px 0; background: var(--bg); }
.why-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why-item{ text-align: center; }
.why-item .why-icon{ margin-left: auto; margin-right: auto; }
.why-item p{ max-width: 320px; margin-left: auto; margin-right: auto; }
.why-item h3{ font-size: 20px; margin-bottom: 12px; }
.why-item p{ color: var(--muted); line-height: 1.65; font-size: 15px; margin: 0; }

/* ---------- Products ---------- */
.products{ padding: 96px 0; background: var(--bg-alt); }
.product-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile{
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; padding: 20px;
  color: #fff; isolation: isolate; cursor: default;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile::before{
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(150deg, var(--tile-a, #7a5836), var(--tile-b, #3a2c1e));
}
.tile::after{
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.05) 55%);
}
.tile:hover{ transform: translateY(-4px); box-shadow: 0 14px 30px rgba(36,26,18,0.25); }
.tile .tile-icon{ position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; opacity: 0.85; }
/* The icon is a stand-in identity for tiles WITHOUT a photo — once a real
   product photo is set it just clutters the image, so hide it. */
.tile-has-image .tile-icon{ display: none; }
.tile h3, .tile h4{ color: #fff; font-size: 18px; line-height: 1.25; position: relative; z-index: 1; font-weight: 600; }
/* Tiles carry price/spec lines from Square data — stack content bottom-left. */
.tile{ flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px; }
/* An uploaded photo must not be hidden behind the opaque gradient layer;
   keep only a darker legibility scrim over images. */
.tile-has-image::before{ opacity: 0; }
.tile-has-image::after{ background: linear-gradient(0deg, rgba(0,0,0,0.74), rgba(0,0,0,0.10) 62%); }
.tile-sub{ position: relative; z-index: 1; color: rgba(255,255,255,0.88); font-size: 13px; margin: 0; }
.tile-price{
  position: relative; z-index: 1; margin: 8px 0 0; padding: 4px 11px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 13px;
  border-radius: 999px; letter-spacing: 0.2px;
}

/* Why-pillar icons — mirrors the icon row on TMR's brand card */
.why-icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-alt); border: 1.5px solid var(--brand);
  color: var(--brand-dark); margin-bottom: 14px;
}
.why-icon svg{ width: 26px; height: 26px; }

/* ---------- Downloads ---------- */
.downloads{ padding: 96px 0; background: #fff; }
.dl-wrap{ max-width: 720px; margin: 0 auto; }
.dl-list{ list-style: none; margin: 0; padding: 0; }
.dl-row{
  display: flex; align-items: center; gap: 14px;
  background: #f5f4f2; padding: 14px 18px; margin-bottom: 10px; border-radius: var(--radius);
}
.dl-name{ font-weight: 600; font-size: 14.5px; color: var(--brand-darker); }
.dl-meta{ margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.dl-btn{
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 13px; font-weight: 700; color: var(--brand-darker); text-decoration: none;
  padding: 8px 14px; border: 1px solid var(--line, #ddd8d0); border-radius: var(--radius); background: #fff;
}
.dl-btn:hover{ background: var(--brand-darker); color: #fff; border-color: var(--brand-darker); }
.dl-btn svg{ width: 15px; height: 15px; }
@media (max-width: 560px){
  .dl-row{ flex-wrap: wrap; }
  .dl-meta{ order: 3; margin-left: 0; }
}

/* ---------- /downloads page ---------- */
.page-banner{
  background: var(--bg-dark); color: #fff; padding: 140px 0 56px; text-align: left;
}
.page-banner h1{ color: #fff; font-size: clamp(30px, 4vw, 44px); margin: 0 0 10px; }
.page-banner-sub{ color: #c9d4cb; font-size: 15.5px; margin: 0; }
.dl-page-section{ padding: 56px 0 24px; }
.dl-page-section:last-of-type{ padding-bottom: 88px; }
.dl-page-section .section-title{ margin-bottom: 12px; }
.dl-blurb{ color: var(--muted); font-size: 14.5px; margin: 0 0 22px; max-width: 640px; }
.dl-wrap-left{ max-width: 760px; }
.dl-empty{
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  border: 1.5px dashed var(--border); border-radius: var(--radius);
  padding: 26px 24px; max-width: 760px; background: var(--bg-alt);
}
.dl-empty svg{ width: 26px; height: 26px; color: var(--brand); margin-bottom: 4px; }
.dl-empty p{ margin: 0; font-size: 14.5px; }
.dl-empty .muted{ color: var(--muted); font-size: 13px; }
.gallery-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1000px;
}
.gallery-item{
  display: block; aspect-ratio: 4/3; border-radius: var(--radius);
  background-size: cover; background-position: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-item:hover{ transform: scale(1.02); box-shadow: 0 10px 26px rgba(12,30,18,0.25); }
@media (max-width: 860px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); } }
.primary-nav a.is-active{ color: var(--brand-light); }

.dl-more{ text-align: center; margin: 18px 0 0; }
.dl-more a{ color: var(--brand); font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--brand); }
.dl-more a:hover{ color: var(--brand-dark); border-color: var(--brand-dark); }

/* ---------- Product detail (Layer 2) ---------- */
.tile-img{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  transition: transform .65s cubic-bezier(.2,.6,.25,1);
}
/* ARK-style hover: the photo zooms slowly inside the clipped tile while the
   card lifts; the scrim deepens so the text stays readable over the motion. */
.tile-link:hover .tile-img{ transform: scale(1.09); }
.tile-has-image::after{ transition: background .4s ease; }
.tile-link:hover.tile-has-image::after{
  background: linear-gradient(0deg, rgba(0,0,0,0.8), rgba(0,0,0,0.25) 62%);
}
.gallery-item img{
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius);
  transition: transform .65s cubic-bezier(.2,.6,.25,1);
}
.gallery-item{ overflow: hidden; }
.gallery-item:hover img{ transform: scale(1.08); }
.p-card{ overflow: hidden; }
.p-card-img{ transition: transform .65s cubic-bezier(.2,.6,.25,1); }
.p-card:hover .p-card-img{ transform: scale(1.07); }
@media (prefers-reduced-motion: reduce){
  .tile-img, .gallery-item img, .p-card-img{ transition: none; }
  .tile-link:hover .tile-img, .gallery-item:hover img, .p-card:hover .p-card-img{ transform: none; }
}
.tile-link{ cursor: pointer; }

/* Category page: left mini-tile navigator + product card grid */
.cat-layout{ display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.cat-nav{ position: sticky; top: 90px; }
.cat-nav-title{
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
.cat-mini{
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-size: 13px; font-weight: 600; color: var(--ink-soft); line-height: 1.25;
}
.cat-mini img{ width: 44px; height: 34px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.cat-mini:hover{ background: var(--bg-alt); color: var(--brand-dark); }
.cat-mini.is-current{ background: var(--bg-alt); border-color: var(--brand); color: var(--brand-dark); }
.cat-main h1{ font-size: clamp(24px, 3vw, 34px); margin: 6px 0 10px; }
.p-card-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0 22px;
}
.p-card{
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.p-card:hover{ transform: translateY(-3px); box-shadow: 0 12px 28px rgba(12,30,18,0.14); }
.p-card-img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.p-card-body{ padding: 16px 18px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; }
.p-card-body h3{ font-size: 15.5px; line-height: 1.3; margin: 0; }
.p-card-grade{ font-size: 12px; color: var(--muted); margin: 0; }
.p-card-price{ font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--brand-darker); margin: 4px 0 2px; }
.p-card-unit{ font-size: 13px; font-weight: 500; color: var(--muted); }
.p-card .btn{ margin-top: auto; }
@media (max-width: 1000px){ .p-card-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px){
  .cat-layout{ grid-template-columns: 1fr; }
  .cat-nav{ position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
  .cat-nav-title{ display: none; }
  .cat-mini{ flex-direction: column; min-width: 96px; text-align: center; font-size: 11.5px; }
}
@media (max-width: 560px){ .p-card-grid{ grid-template-columns: 1fr; } }

/* ---------- Item detail (Layer 3) ---------- */
.item-hero{ display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; margin-bottom: 56px; }
.item-image-wrap{
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.item-image{ width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 4px; }
.item-intro h1{ font-size: clamp(24px, 3vw, 34px); margin: 4px 0 6px; }
.item-sku{ font-size: 13px; color: var(--muted); letter-spacing: 0.5px; margin: 0 0 16px; }
.item-benefits-title{ font-weight: 700; font-size: 14px; color: var(--brand-darker); margin: 14px 0 6px; }
.item-benefits{ list-style: none; margin: 0 0 14px; padding: 0; }
.item-benefits li{ font-size: 14px; color: var(--ink-soft); line-height: 1.7; padding-left: 16px; position: relative; }
.item-benefits li::before{ content: "\2022"; color: var(--brand); position: absolute; left: 2px; }
.item-price{ font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--brand-darker); margin: 10px 0 14px; }
.item-opt-label{ display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; color: var(--brand-darker); }
.item-opt-select{
  width: 100%; max-width: 420px; padding: 12px 14px; font-size: 14.5px; font-family: var(--font-body);
  border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.item-opt-select:focus{ outline: 2px solid var(--brand); }
.item-opt-note{ font-size: 13px; color: var(--brand); font-weight: 600; min-height: 18px; margin: 8px 0 0; }
.item-detail-grid{
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  border-top: 1px solid var(--border); padding-top: 44px; margin-bottom: 56px;
}
.detail-heading{
  font-size: 17px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--brand-darker); border-bottom: 2px solid var(--brand);
  display: inline-block; padding-bottom: 6px; margin: 0 0 18px;
}
.spec-table{ width: 100%; border-collapse: collapse; }
.spec-table th{
  text-align: left; font-size: 13px; color: var(--brand-darker); padding: 10px 14px;
  background: var(--bg-alt); width: 38%; vertical-align: top;
}
.spec-table td{ padding: 10px 14px; font-size: 13.5px; color: var(--ink-soft); border-bottom: 1px solid var(--border); }
.similar-heading{ margin-top: 8px; }
.similar-grid{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px){ .similar-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px){ .item-hero, .item-detail-grid{ grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px){ .similar-grid{ grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq{ padding: 88px 0; background: var(--bg-alt); }
.faq-list{ max-width: 760px; margin: 0 auto; }
.faq-item{ background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
.faq-item summary{
  cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; font-size: 15px;
  color: var(--brand-darker); display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: "+"; font-size: 20px; color: var(--brand); margin-left: 14px; }
.faq-item[open] summary::after{ content: "\2212"; }
.faq-item p{ padding: 0 20px 18px; margin: 0; color: var(--ink-soft); line-height: 1.7; font-size: 14.5px; }
.tile-cta{
  position: relative; z-index: 1; margin-top: 8px; font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,0.85); opacity: 0; transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.tile-link:hover .tile-cta{ opacity: 1; transform: none; }
.product-page{ padding: 120px 0 88px; background: var(--bg); }
.breadcrumb{ font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a{ color: var(--brand); font-weight: 600; }
.breadcrumb span{ margin: 0 6px; }
.breadcrumb em{ font-style: normal; }
.product-hero{ display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; margin-bottom: 56px; }
.product-image{
  aspect-ratio: 4/3; border-radius: var(--radius); background-size: cover; background-position: center;
  box-shadow: 0 14px 34px rgba(12,30,18,0.18);
}
.product-intro h1{ font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 6px; }
.product-sub{ color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.product-desc{ color: var(--ink-soft); line-height: 1.75; font-size: 15px; margin: 0 0 18px; }
.product-price{ display: inline-block; font-size: 15px !important; padding: 6px 14px; }
.product-ctas{ display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 14px; }
.btn-outline-dark{ border: 1.5px solid var(--brand-dark); color: var(--brand-dark); background: transparent; }
.btn-outline-dark:hover{ background: var(--brand-dark); color: #fff; }
.product-note{ font-size: 12.5px; color: var(--muted); }
.product-note a{ color: var(--brand); font-weight: 600; }
.variant-table{ width: 100%; max-width: 780px; border-collapse: collapse; margin-top: 6px; }
.variant-table th{
  text-align: left; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); padding: 10px 14px; border-bottom: 2px solid var(--brand);
}
.variant-table td{ padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.variant-table tr:nth-child(even) td{ background: var(--bg-alt); }
.v-price{ font-weight: 700; color: var(--brand-darker); }
.stock{ font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.stock-in{ background: #e2f3e8; color: #1c6b3c; }
.stock-out{ background: #f6e8e6; color: #a04434; }
.stock-poa{ background: var(--bg-alt); color: var(--muted); }
@media (max-width: 780px){ .product-hero{ grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal-body{ padding: 56px 0 88px; background: var(--bg); }
.legal-body .section-inner{ max-width: 780px; }
.legal-body h2{ font-size: 20px; margin: 30px 0 8px; color: var(--brand-darker); }
.legal-body p{ color: var(--ink-soft); line-height: 1.75; font-size: 14.5px; margin: 0 0 8px; }
.legal-contact{ margin-top: 34px !important; padding-top: 18px; border-top: 1px solid var(--border); }
.legal-contact a{ color: var(--brand); font-weight: 600; }

/* ---------- Footer columns ---------- */
.footer-cols{
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 40px;
  padding-top: 56px; padding-bottom: 40px;
}
.f-col h4{ color: #fff; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 14px; }
.f-col a{ display: block; color: #c2cdc4; font-size: 13.5px; padding: 4px 0; }
.f-col a:hover{ color: var(--brand-light); }
.f-brand p{ color: #c2cdc4; font-size: 13.5px; line-height: 1.65; margin: 12px 0 0; }
.f-abn{ color: #8a978c !important; font-size: 12.5px !important; }
.footer-logo{ height: 46px; width: auto; background: #fff; padding: 5px 10px; border-radius: 5px; }
.f-hours{ color: #c2cdc4; font-size: 13px; margin: 8px 0 0; }
.f-socials{ display: flex; gap: 10px; margin-top: 14px; }
.f-socials a{ display: inline-flex; padding: 7px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.f-socials a:hover{ background: var(--brand); }
.f-socials svg{ width: 17px; height: 17px; color: #fff; }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner{
  display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 22px;
}
.footer-bottom-inner p{ margin: 0; font-size: 12.5px; color: #8a978c; }
.footer-legal-links a{ color: #c2cdc4; }
.footer-legal-links a:hover{ color: var(--brand-light); }
@media (max-width: 860px){ .footer-cols{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-cols{ grid-template-columns: 1fr; } }

/* Channel placeholder chips (link not provided yet — added later via admin) */
.msg-btn.is-placeholder{ opacity: 0.45; cursor: default; filter: saturate(0.5); }
.msg-btn.is-placeholder em{ font-style: normal; font-size: 10.5px; font-weight: 600; opacity: 0.9; border: 1px solid rgba(255,255,255,0.6); border-radius: 999px; padding: 1px 6px; margin-left: 2px; }

/* ---------- Message channels ---------- */
/* Even 2x2 grid — four channels always line up, no ragged wrapping. */
.msg-channels{
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin: 4px 0 8px; max-width: 420px;
}
.msg-btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px; border-radius: var(--radius); font-size: 13.5px; font-weight: 700;
  color: #fff; text-decoration: none; background: #40403e; white-space: nowrap;
  transition: filter .15s ease, transform .15s ease;
}
.msg-btn:hover{ filter: brightness(1.12); transform: translateY(-1px); }
.msg-btn svg{ width: 18px; height: 18px; }
.msg-whatsapp{ background: #1faa53; }
.msg-messenger{ background: #0084ff; }
.msg-wechat{ background: #09b83e; }
.msg-instagram{ background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366); }

/* ---------- Map band (Get Directions) ---------- */
.map-band{ position: relative; height: 440px; background: var(--bg); }
.map-band iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.25); }
.map-directions{
  /* bottom-left: the embed's own info card owns the top-left corner and its
     zoom controls own the right edge — keep clear of both (and of Google's
     attribution line along the very bottom). */
  position: absolute; bottom: 52px; left: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-dark); box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.map-directions:hover{ background: var(--brand-darker); }
.map-directions svg{ width: 17px; height: 17px; }
.facebook-link{
  display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 4px;
  color: var(--brand-darker); font-weight: 600; font-size: 14px; text-decoration: none;
  border-bottom: 2px solid var(--brand);
}
.facebook-link:hover{ color: var(--brand); }
.facebook-link svg{ width: 18px; height: 18px; }

/* ---------- About ---------- */
.about{ padding: 96px 0; background: var(--bg); }
.about-inner{ display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.about-copy p{ color: var(--muted); line-height: 1.75; font-size: 15.5px; }
.about-stats{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 28px; border-top: 1px solid var(--border); padding-top: 22px;
}
.about-stats > div{ display: flex; flex-direction: column; padding: 0 20px; border-left: 1px solid var(--border); }
.about-stats > div:first-child{ padding-left: 0; border-left: none; }
.about-stats strong{ font-family: var(--font-head); font-size: 22px; color: var(--brand-darker); }
.about-stats span{ font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.about-panel{
  background: var(--bg-dark); border-radius: var(--radius); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center; color: var(--brand);
}
.truss-art{ width: 65%; height: 65%; }

/* ---------- Contact ---------- */
.contact{ padding: 96px 0; background: var(--bg-alt); }
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-form{ background: #fff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); }
.contact-form h3{ font-size: 18px; margin-bottom: 22px; }
.field{ position: relative; margin-bottom: 18px; }
.field input, .field textarea{
  width: 100%; padding: 16px 14px 8px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14px; background: #fff; color: var(--ink); resize: vertical;
}
.field input:focus, .field textarea:focus{ outline: 2px solid var(--brand); outline-offset: -1px; }
.field label{
  position: absolute; left: 14px; top: 15px; font-size: 14px; color: var(--muted);
  pointer-events: none; transition: all .15s ease; background: #fff; padding: 0 4px;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label{
  top: -8px; font-size: 11px; color: var(--brand-dark); font-weight: 600;
}
.form-note{ min-height: 20px; margin: 12px 0 0; font-size: 13px; color: var(--brand-dark); font-weight: 600; }

/* The info column is a card of equal visual weight to the form beside it. */
.contact-info{ background: #fff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); }
.contact-info .lead{ color: var(--muted); margin-bottom: 20px; }
.contact-info .company-name{ margin-top: 26px; }
.facebook-link{ margin-top: 16px; }
.whatsapp-btn{
  display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff;
  padding: 12px 20px; border-radius: var(--radius); font-weight: 700; font-size: 14px; margin-bottom: 32px;
}
.whatsapp-btn svg{ width: 18px; height: 18px; }
.company-name{ font-size: 22px; margin-bottom: 8px; }
.contact-info h4{ font-size: 15px; margin: 24px 0 8px; }
.contact-info p{ margin: 0 0 6px; font-size: 14.5px; color: var(--ink-soft); }
.contact-info .muted{ color: var(--muted); }
.contact-line span{ color: var(--muted); margin-right: 4px; }
.contact-line a{ font-weight: 600; }
.contact-line a:hover{ color: var(--brand-dark); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--bg-dark); color: #cfc7bd; padding: 32px 0; }
.footer-inner{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.footer-meta{ opacity: 0.6; }

/* ---------- Scroll reveal ----------
   Visible by default so no-JS browsers, crawlers and screenshot tools that
   don't run the IntersectionObserver still see full content. Only hidden
   once JS confirms it can animate it back in (see js-ready class in main.js). */
.reveal{ opacity: 1; transform: none; }
.js-ready .reveal{
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.65,.3,1), transform .7s cubic-bezier(.2,.65,.3,1);
}
.js-ready .reveal.is-visible{ opacity: 1; transform: none; }

/* Staggered entrances: grid children arrive one after another. */
.why-grid .why-item:nth-child(2), .product-grid .tile:nth-child(3n+2),
.p-card-grid .p-card:nth-child(3n+2){ transition-delay: .12s; }
.why-grid .why-item:nth-child(3), .product-grid .tile:nth-child(3n),
.p-card-grid .p-card:nth-child(3n){ transition-delay: .24s; }

/* Hero load sequence: eyebrow -> headline -> points -> buttons. */
.hero .eyebrow.reveal{ transition-delay: .05s; }
.hero h1.reveal{ transition-delay: .18s; }
.hero .hero-points.reveal{ transition-delay: .34s; }
.hero .hero-actions.reveal{ transition-delay: .5s; }

/* Section-title underline draws itself once the title is visible. */
.js-ready .section-title.reveal .rule{ width: 0; transition: width .55s cubic-bezier(.2,.65,.3,1) .3s; }
.js-ready .section-title.reveal.is-visible .rule{ width: 56px; }

/* Why-pillar icons pop in slightly after their card. */
.js-ready .why-item.reveal .why-icon{ transform: scale(.5); opacity: 0; transition: transform .5s cubic-bezier(.34,1.56,.64,1) .25s, opacity .4s ease .25s; }
.js-ready .why-item.reveal.is-visible .why-icon{ transform: scale(1); opacity: 1; }

@media (prefers-reduced-motion: no-preference){
  /* Slow settle on the hero photo. */
  .js-ready .hero-bg.has-image{ animation: heroSettle 9s ease-out both; }
  @keyframes heroSettle{ from{ transform: scale(1.05); } to{ transform: scale(1); } }
  /* One gentle attention pulse on the chat bubble after load. */
  .chat-bubble{ animation: chatPulse 2.4s ease-out 3.5s 2; }
  @keyframes chatPulse{
    0%{ box-shadow: 0 0 0 0 rgba(46,125,71,0.45); }
    60%{ box-shadow: 0 0 0 14px rgba(46,125,71,0); }
    100%{ box-shadow: 0 0 0 0 rgba(46,125,71,0); }
  }
}
@media (prefers-reduced-motion: reduce){
  .js-ready .reveal, .js-ready .section-title.reveal .rule, .js-ready .why-item.reveal .why-icon{
    opacity: 1; transform: none; transition: none; width: 56px;
  }
  html{ scroll-behavior: auto; }
}

/* ---------- Chat widget ---------- */
.chat-widget{ position: fixed; right: 20px; bottom: 20px; z-index: 200; }
.chat-bubble{
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand-dark); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(36,26,18,0.35); transition: transform .15s ease, background .2s ease;
}
.chat-bubble:hover{ transform: translateY(-2px); background: var(--brand-darker); }
.chat-bubble svg{ width: 26px; height: 26px; }
.chat-panel{
  position: absolute; right: 0; bottom: 68px; width: 320px; max-width: calc(100vw - 40px);
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 20px 45px rgba(36,26,18,0.25); display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel-header{
  background: var(--bg-dark); color: #fff; padding: 14px 16px; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.chat-close{ background: none; border: 0; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
.chat-messages{ flex: 1; min-height: 160px; max-height: 320px; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-alt); }
.chat-msg{ max-width: 85%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; }
.chat-msg-visitor{ align-self: flex-end; background: var(--brand-dark); color: #fff; border-bottom-right-radius: 3px; }
.chat-msg-admin{ align-self: flex-start; background: #fff; border: 1px solid var(--border); color: var(--ink); border-bottom-left-radius: 3px; }
.chat-msg-system{ align-self: center; color: var(--muted); font-size: 12px; text-align: center; }
.chat-start{ padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-start input{ padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 14px; }
.chat-send{ display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-send input{ flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 14px; }
.chat-send button{ width: 40px; height: 40px; border-radius: var(--radius); border: 0; background: var(--brand-dark); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-send button svg{ width: 18px; height: 18px; }

@media (max-width: 480px){
  .chat-panel{ width: calc(100vw - 32px); }
  .chat-widget{ right: 16px; bottom: 16px; }
}

/* ---------- Responsive ---------- */
@media (min-width: 900px){
  .phone-chip{ display: inline-flex; }
}

@media (max-width: 900px){
  .primary-nav{
    /* Longhand offsets (not `inset`) for older iOS Safari support. */
    position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
    background: #101711; overflow-y: auto;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .primary-nav.is-open{ opacity: 1; transform: none; pointer-events: auto; }
  .primary-nav a{ width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle{ display: flex; }
  .header-cta .btn{ padding: 10px 16px; font-size: 11.5px; letter-spacing: 0.5px; }
  /* The tagline gets clipped behind the CTA on small screens — the logo
     carries the brand on its own here. */
  .brand-text{ display: none; }
  .brand-logo{ height: 36px; padding: 3px 7px; }

  .why-grid{ grid-template-columns: 1fr; gap: 32px; }
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
  .about-inner{ grid-template-columns: 1fr; gap: 36px; }
  .about-panel{ order: -1; max-width: 260px; margin: 0 auto; }
  .contact-grid{ grid-template-columns: 1fr; gap: 40px; }
  .hero-inner{ padding: 90px 20px 64px; }

  /* Sub-pages: the huge decorative top gap is desktop-only breathing room. */
  .product-page{ padding-top: 28px; }
  .page-banner{ padding: 56px 0 40px; }
  .map-band{ height: 320px; }
  .item-image{ max-height: 300px; }
  .item-hero{ gap: 24px; }
}

@media (max-width: 560px){
  .product-grid{ grid-template-columns: 1fr; }
  .hero{ min-height: 100vh; }
  .about-stats{ grid-template-columns: 1fr; gap: 14px; border-top: none; padding-top: 0; }
  .about-stats > div{ padding: 12px 0 0; border-left: none; border-top: 1px solid var(--border); }
  .about-stats > div:first-child{ border-top: 1px solid var(--border); padding-top: 12px; }
  .contact-form, .contact-info{ padding: 22px 20px; }
  .msg-btn{ font-size: 12.5px; padding: 11px 10px; }
  .legal-body .section-inner, .cat-main{ overflow-wrap: break-word; }
  .footer-cols{ gap: 28px; padding-top: 44px; }
}

/* ---------- Projects (layout mirrors nsformwork.com.au/our-projects) ---------- */
.projects{ padding: 96px 0; background: var(--bg); }
.projects-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 34px; }
.project-card{ text-align: center; }
.project-img-wrap{
  display: block; overflow: hidden; border-radius: var(--radius); margin-bottom: 22px;
}
.project-img{
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  transition: transform .65s cubic-bezier(.2,.6,.25,1);
}
.project-card:hover .project-img{ transform: scale(1.06); }
.project-card h2, .project-card h3{ transition: color .2s ease; }
.project-card:hover h2, .project-card:hover h3{ color: var(--brand-dark); }
/* Cards arrive one after another, matching the other grids. */
.projects-grid .project-card:nth-child(3n+2){ transition-delay: .12s; }
.projects-grid .project-card:nth-child(3n){ transition-delay: .24s; }
/* Page banner entrance sequence (projects/downloads/legal banners). */
.page-banner .eyebrow.reveal{ transition-delay: .05s; }
.page-banner h1.reveal{ transition-delay: .16s; }
.page-banner .page-banner-sub.reveal{ transition-delay: .3s; }
/* The divider under each project title draws itself on reveal. */
.js-ready .project-card.reveal .project-rule{ width: 0; transition: width .5s cubic-bezier(.2,.65,.3,1) .35s; }
.js-ready .project-card.reveal.is-visible .project-rule{ width: 34px; }
@media (prefers-reduced-motion: reduce){
  .project-img, .project-card h2, .project-card h3{ transition: none; }
  .project-card:hover .project-img{ transform: none; }
  .js-ready .project-card.reveal .project-rule{ width: 34px; transition: none; }
}
.project-card h2, .project-card h3{
  color: var(--brand); font-family: var(--font-body); font-weight: 600;
  font-size: 21px; line-height: 1.3; max-width: 330px; margin: 0 auto;
}
.project-rule{ display: block; width: 34px; height: 2px; background: var(--brand-light); margin: 14px auto; }
.project-card p{ color: var(--ink-soft); font-size: 15px; line-height: 1.6; max-width: 320px; margin: 0 auto; }
@media (max-width: 900px){ .projects-grid{ grid-template-columns: 1fr; gap: 40px; } }
