/* =================================================================
   Cascadia Lumberworks
   Brand from the original site (logo, safety orange, bark brown),
   presented with a clean, modern layout. Type: Cairo (as in the logo) for
   headings, menu and buttons; Barlow for body text.
   ================================================================= */

:root {
  --bg: #FBF8F4;
  --surface: #fff;
  --sand: #F3ECE3;
  --sand-2: #EAE0D4;
  --line: #E6DCD0;
  --line-2: #D6C9BB;
  --ink: #1C1510;
  --text: #4B3F37;
  --muted: #7E6F63;
  --orange: #E35300;       /* buttons: white text stays readable */
  --orange-hi: #FF6000;    /* brand orange for small accents */
  --orange-dark: #BF4500;
  --orange-soft: #FFF1E7;
  --bark: #2B2119;
  --bark-2: #1C1510;
  --green: #2F7A3E;
  --red: #B42318;
  --line-3: #BFAF9F;       /* hover borders */
  --solid: #1C1510;        /* dark-on-light solid fills (selected chips, dark buttons) */
  --on-solid: #fff;
  --header-bg: rgba(251, 248, 244, .92);
  --invalid-bg: #FFF8F7;
  --ok-bg: #E9F5EC;
  --photo-filter: none;

  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Cairo", "Barlow", system-ui, sans-serif;
  --max: 1240px;
  --r: 14px;
  --r-lg: 22px;
  color-scheme: light;
}

/* ---------- dark theme: warm bark browns, same orange ---------- */
html[data-theme=dark] {
  --bg: #15100C;
  --surface: #1E1812;
  --sand: #251D16;
  --sand-2: #30261D;
  --line: #33281F;
  --line-2: #4A3B2E;
  --line-3: #65513F;
  --ink: #F5EEE7;
  --text: #CFC1B4;
  --muted: #9D8C7E;
  --orange: #E35300;
  --orange-hi: #FF7A26;
  --orange-dark: #FF9152;
  --orange-soft: #3A2416;
  --bark: #0E0A07;
  --bark-2: #0A0705;
  --green: #74D08A;
  --red: #FF8B7E;
  --solid: #F5EEE7;
  --on-solid: #15100C;
  --header-bg: rgba(21, 16, 12, .9);
  --invalid-bg: #3A1B16;
  --ok-bg: #18301F;
  --photo-filter: brightness(.9) contrast(1.02);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; font-family: var(--head); font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(38px, 4.8vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(30px, 3.3vw, 42px); letter-spacing: -.02em; }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0; }
strong, b { font-weight: 600; color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--solid); color: var(--on-solid); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }
.link { color: var(--orange-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.link:hover { color: var(--ink); }
.arrow-link { font-family: var(--head); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); border-bottom: 1.5px solid var(--orange-hi); padding-bottom: 2px; }
.arrow-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.arrow-link:hover svg { transform: translateX(3px); }
.lede { font-size: 19px; line-height: 1.55; max-width: 56ch; }
.label { font-family: var(--head); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--orange-dark); }
.label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn { font-family: var(--head); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 22px; border: 1.5px solid transparent; border-radius: 10px; font-weight: 600; font-size: 17px; line-height: 1.2; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-dark { background: var(--solid); color: var(--on-solid); }
.btn-dark:hover { opacity: .88; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: #1C1510; }
.btn-light:hover { background: #F3ECE3; }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 16px; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-color: var(--line); }
.header-in { max-width: var(--max); margin: 0 auto; padding: 10px 28px; display: flex; align-items: center; gap: 32px; min-height: 88px; }
.logo { flex: none; }
.logo img { height: 68px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav a { position: relative; font-family: var(--head); font-weight: 600; font-size: 16.5px; color: var(--ink); padding: 8px 12px; transition: color .2s; }
.main-nav a:hover, .main-nav a[aria-current=page], .main-nav a.is-section { color: var(--orange-dark); }
/* underline: grows in from the left on hover, stays under the current page */
/* Whole-pixel line whose width grows (no scaling), so it stays exactly 3px thick the whole way across. */
.nav-bar { position: absolute; left: 12px; bottom: 2px; width: 0; height: 3px; border-radius: 3px; background: var(--orange-hi); transition: width .3s cubic-bezier(.2, .8, .2, 1); }
.main-nav a:hover .nav-bar { width: calc(100% - 24px); }
.main-nav a[aria-current=page] .nav-bar, .main-nav a.is-section .nav-bar { width: calc(100% - 24px); view-transition-name: nav-bar; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.req-btn { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--line-2); border-radius: 10px; color: var(--ink); background: var(--surface); }
.req-btn:hover, .req-btn[aria-current=page] { border-color: var(--ink); }
.req-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.req-count { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--orange); color: #fff; font-size: 12.5px; font-weight: 700; display: none; place-items: center; line-height: 1; border: 2px solid var(--bg); }
.req-count.has { display: grid; }
.req-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.25); } }
.theme-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-btn:hover { border-color: var(--ink); }
.theme-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .to-light, html[data-theme=dark] .theme-btn .to-dark { display: none; }
html[data-theme=dark] .theme-btn .to-light { display: block; }
.card-img img, .hero-photo img, .story img, .svc img, .svc-row img, .special img, .ritem img { filter: var(--photo-filter); }
.menu-btn { display: none; width: 48px; height: 48px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }
.menu-btn .x, .menu-btn[aria-expanded=true] .bars { display: none; }
.menu-btn[aria-expanded=true] .x { display: block; }
.mobile-nav { display: none; }
@media (max-width: 1000px) {
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: grid; }
  .header-actions { margin-left: auto; }
  .logo img { height: 50px; }
  .header-in { min-height: 70px; padding: 8px 20px; gap: 16px; }
  .mobile-nav { display: block; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .mobile-nav.open { max-height: 560px; border-top: 1px solid var(--line); }
  .mobile-nav a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--line); font-family: var(--head); font-weight: 600; font-size: 18px; color: var(--ink); }
  .mobile-nav a[aria-current=page], .mobile-nav a.is-section { font-weight: 700; color: var(--orange-dark); box-shadow: inset 4px 0 0 var(--orange-hi); }
  .mobile-nav .mobile-cta { margin: 14px 20px 18px; border: 0; text-align: center; color: #fff; font-weight: 600; }
}

/* ---------- home hero ---------- */
.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero h1 span { color: var(--orange); }
.hero-search { display: flex; gap: 8px; margin-top: 32px; padding: 6px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 14px; max-width: 560px; }
.hero-search:focus-within { border-color: var(--ink); }
.hero-search svg.s { width: 22px; height: 22px; flex: none; margin: 0 2px 0 12px; align-self: center; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; padding: 8px 4px; }
.hero-search input::placeholder { color: #9A8B80; }
.hero-search .btn { min-height: 46px; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 15px; color: var(--muted); }
.quick a { padding: 5px 12px; border-radius: 999px; background: var(--sand); color: var(--ink); font-weight: 500; }
.quick a:hover { background: var(--sand-2); }
.hero-photo { position: relative; margin: 0; }
.hero-photo .main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.hero-photo .inset { position: absolute; left: -36px; bottom: -36px; width: 42%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); border: 6px solid var(--bg); }
.hero-photo figcaption { position: absolute; right: 16px; bottom: 16px; padding: 6px 12px; border-radius: 8px; background: rgba(28, 21, 16, .72); color: #fff; font-size: 14px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { margin: 0 0 24px 24px; }
  .hero-photo .inset { left: -24px; bottom: -24px; }
}

/* ---------- facts strip ---------- */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts ul { list-style: none; margin: 0 auto; padding: 0 28px; max-width: var(--max); display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { display: flex; gap: 14px; padding: 26px 28px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts li:first-child { padding-left: 0; }
.facts svg { width: 26px; height: 26px; flex: none; margin-top: 2px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.facts b { display: block; font-family: var(--head); font-weight: 700; font-size: 19px; line-height: 1.3; }
.facts span { font-size: 15.5px; }
.facts a { color: var(--orange-dark); font-weight: 600; }
@media (max-width: 860px) { .facts ul { grid-template-columns: 1fr; } .facts li, .facts li:first-child { padding: 18px 0; } .facts li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding-top: 0; }
.sand { background: var(--sand); }
.dark { background: var(--bark); color: #D8CBBE; }
.dark h2, .dark h3 { color: #fff; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.sec-head p { margin-top: 12px; max-width: 54ch; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* inner page header */
.page-head { padding: 28px 0 40px; }
.page-head h1 { font-size: clamp(38px, 4.6vw, 56px); }
.page-head p { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--muted); padding-top: 24px; margin-bottom: 18px; }
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--line-2); }

/* ---------- product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.size-tag { position: absolute; left: 14px; top: 14px; padding: 3px 11px; border-radius: 8px; background: rgba(255, 255, 255, .94); color: #1C1510; font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1.4; }
.best-tag { position: absolute; right: 14px; top: 14px; padding: 5px 10px; border-radius: 8px; background: #1C1510; color: #fff; font-weight: 600; font-size: 13px; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card-kicker { font-size: 14.5px; color: var(--muted); }
.card h3 { margin-top: 2px; font-size: 23px; }
.card-sum { margin-top: 8px; font-size: 16px; }
.card-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; }
.card-foot .price { font-family: var(--head); font-weight: 700; color: var(--ink); }
.card-go { font-family: var(--head); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--orange-dark); }
.card-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.card:hover .card-go svg { transform: translateX(3px); }
.order-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 28px; padding: 18px 22px; border-radius: var(--r); background: var(--sand); }
.order-note p { display: flex; gap: 10px; align-items: flex-start; }
.order-note svg { width: 20px; height: 20px; flex: none; margin-top: 3px; fill: none; stroke: var(--orange-dark); stroke-width: 1.8; stroke-linecap: round; }

/* ---------- services (home, dark band) ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; padding: 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .25s ease, border-color .25s ease; }
/* the whole card is the link, so hovering anywhere on it reacts like hovering "Learn more" */
.svc:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.svc:hover .arrow-link svg, .svc:focus-visible .arrow-link svg { transform: translateX(3px); }
.svc .arrow-link { transition: border-color .25s ease; }
.svc:hover .arrow-link { border-color: #fff; }
.svc img { width: 180px; height: 180px; object-fit: cover; border-radius: var(--r); }
.svc h3 { font-size: 25px; }
.svc p { margin: 8px 0 14px; }
.svc .arrow-link { color: #fff; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .svc { grid-template-columns: 1fr; } .svc img { width: 100%; height: auto; aspect-ratio: 16 / 10; } }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: 64px; align-items: start; }
.why-intro { position: sticky; top: 120px; }
.why-intro p { margin: 16px 0 28px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.why-item { padding: 24px 0; border-top: 1px solid var(--line-2); }
.why-item svg { width: 28px; height: 28px; fill: none; stroke: var(--orange); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.why-item h3 { margin-top: 12px; }
.why-item p { margin-top: 6px; font-size: 16px; }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr; gap: 32px; } .why-intro { position: static; } }
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } }

/* ---------- story band ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story figure { margin: 0; }
.story img { width: 100%; border-radius: var(--r-lg); }
.story img.tall { max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; }
.story h2 { margin-top: 12px; }
.story p { margin-top: 16px; }
.story .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.story.flip figure { order: 2; justify-self: end; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: 32px; } .story.flip figure { order: 0; justify-self: start; } .story img.tall { max-width: 100%; aspect-ratio: 4 / 3; } }

/* ---------- contact (split) ---------- */
.contact-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-split h2 { margin: 12px 0 16px; }
.contact-lines { margin-top: 32px; display: grid; gap: 4px; }
.contact-lines a, .contact-lines span { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-weight: 600; color: var(--ink); font-size: 18px; word-break: break-word; }
.contact-lines a:hover { color: var(--orange-dark); }
.contact-lines .big { font-family: var(--head); font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.contact-lines svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.form-card h3 { margin-bottom: 4px; }
.form-card .form-intro { font-size: 15.5px; margin-bottom: 20px; }
@media (max-width: 960px) { .contact-split { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .form-card { padding: 22px 18px; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .f-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: 15.5px; color: var(--ink); padding: 0; display: flex; justify-content: space-between; gap: 8px; width: 100%; }
.field > legend { margin-bottom: 8px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 14px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--bg); font-size: 16.5px; color: var(--ink); transition: border-color .15s, background .15s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: var(--line-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--ink); background: var(--surface); }
.field input::placeholder, .field textarea::placeholder { color: #A0928A; }
.field .invalid { border-color: var(--red); background: var(--invalid-bg); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.pick span { display: inline-block; padding: 9px 15px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface); font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.pick label:hover span { border-color: var(--line-3); }
.pick input:checked + span { border-color: var(--solid); background: var(--solid); color: var(--on-solid); }
.pick input:focus-visible + span { outline: 3px solid var(--orange-hi); outline-offset: 2px; }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form-status.err { color: var(--red); }
.hp { position: absolute; left: -9999px; }
.form-done { display: none; text-align: center; padding: 24px 8px; }
.form-done svg { width: 56px; height: 56px; margin: 0 auto 12px; padding: 13px; border-radius: 50%; background: var(--ok-bg); stroke: var(--green); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.form-done h3 { font-size: 24px; }
.form-done p { margin: 8px 0 20px; }
.form.sent > :not(.form-done) { display: none; }
.form.sent .form-done { display: block; }

/* ---------- catalog page ---------- */
.cat-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--head); padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 500; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--line-3); }
.chip[aria-pressed=true] { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.cat-search { margin-left: auto; width: min(340px, 100%); }
.cat-search .hero-search { margin: 0; max-width: none; padding: 4px; }
.cat-search input { padding: 8px 4px; }
.cat-blurb { margin: -8px 0 22px; }
.cat-group + .cat-group { margin-top: 56px; }
.cat-group > h2 { font-size: 30px; }
.cat-group > p { margin: 4px 0 22px; }
.empty { text-align: center; padding: 48px 24px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty h3 { margin-bottom: 8px; }
@media (max-width: 700px) { .cat-search { margin-left: 0; width: 100%; } }
.special { margin: 48px 0 96px; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 28px; padding: 16px 28px 16px 16px; border-radius: var(--r-lg); background: var(--sand); }
.special img { width: 220px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
.special h2 { font-size: 28px; }
.special p { margin-top: 4px; }
@media (max-width: 860px) { .special { grid-template-columns: 1fr; padding: 16px 16px 24px; gap: 16px; } .special img { width: 100%; } .special > div, .special > a { margin: 0 8px; } .special > a { justify-self: start; } }

/* ---------- product page ---------- */
.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; padding: 8px 0 80px; align-items: start; }
.pd-img { position: sticky; top: 104px; }
.pd-img .card-img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.pd-img .size-tag { font-size: 22px; padding: 5px 14px; }
.pd .label { margin-bottom: 8px; }
.pd .lede { margin-top: 12px; }
.pd-price { margin-top: 24px; padding: 16px 0; border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.pd-price b { font-family: var(--head); font-weight: 700; font-size: 26px; }
.pd-price span { font-size: 15.5px; color: var(--muted); }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.specs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 14px; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.pd form { margin-top: 28px; display: grid; gap: 22px; }
.qty-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; }
.qty { justify-self: start; display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface); height: 48px; }
.qty button { width: 44px; border: 0; background: transparent; font-size: 21px; color: var(--ink); cursor: pointer; }
.qty button:hover { background: var(--sand); }
.qty input { width: 56px; border: 0; text-align: center; font-weight: 600; font-size: 17px; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pd-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.pd-note { display: flex; gap: 10px; font-size: 15px; color: var(--muted); }
.pd-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.related { border-top: 1px solid var(--line); padding: 64px 0 96px; }
@media (max-width: 900px) { .pd { grid-template-columns: 1fr; gap: 28px; } .pd-img { position: static; } }
@media (max-width: 480px) { .pd-actions, .qty-row { grid-template-columns: 1fr; } }

/* ---------- request list page ---------- */
.req { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; padding-bottom: 96px; }
.req-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.req-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.req-panel-head button { border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; padding: 4px; }
.req-panel-head button:hover { color: var(--red); }
.ritem { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; }
.ritem + .ritem { border-top: 1px solid var(--line); }
.ritem img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; }
.ritem h3 { font-size: 19px; }
.ritem h3 a:hover { color: var(--orange-dark); }
.ritem .opts { font-size: 15px; color: var(--muted); }
.r-side { display: flex; align-items: center; gap: 8px; }
.r-side .qty { height: 42px; }
.r-side .qty button { width: 36px; }
.r-side .qty input { width: 44px; }
.rm { width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.rm:hover { color: var(--red); border-color: var(--red); }
.rm svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.req-empty { padding: 56px 24px; text-align: center; }
.req-empty svg { width: 44px; height: 44px; margin: 0 auto 12px; fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.req-empty p { margin: 8px auto 22px; max-width: 44ch; }
.req .form-card { position: sticky; top: 104px; }
@media (max-width: 980px) { .req { grid-template-columns: 1fr; } .req .form-card { position: static; } }
@media (max-width: 560px) { .ritem { grid-template-columns: 72px 1fr; padding: 16px; } .ritem img { width: 72px; height: 52px; } .r-side { grid-column: 1 / -1; justify-content: space-between; } }

/* ---------- services page ---------- */
.svc-rows { display: grid; gap: 24px; }
.svc-row { display: grid; grid-template-columns: 280px 1fr auto; gap: 36px; align-items: center; padding: 20px 32px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); scroll-margin-top: 110px; }
.svc-row img { width: 280px; height: 220px; object-fit: cover; border-radius: var(--r); }
.svc-row h2 { font-size: 34px; }
.svc-row p { margin-top: 10px; max-width: 52ch; }
@media (max-width: 960px) { .svc-row { grid-template-columns: 220px 1fr; } .svc-row img { width: 220px; height: 200px; } .svc-row .btn { grid-column: 2; justify-self: start; } }
@media (max-width: 640px) { .svc-row { grid-template-columns: 1fr; padding: 16px 16px 24px; gap: 18px; } .svc-row img { width: 100%; height: auto; aspect-ratio: 16 / 10; } .svc-row .btn { grid-column: auto; } .svc-row > div { padding: 0 6px; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.step { padding: 28px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line-2); }
.step svg { width: 28px; height: 28px; fill: none; stroke: var(--orange); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { margin-top: 12px; }
.step p { margin-top: 6px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step, .step + .step { padding: 22px 0; border-left: 0; } .step + .step { border-top: 1px solid var(--line-2); } }

/* ---------- footer ---------- */
.site-footer { background: var(--bark); color: #CDBFB2; }
.footer-in { max-width: var(--max); margin: 0 auto; padding: 64px 28px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { width: 170px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; font-size: 16px; }
.site-footer h2 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #EFE6DD; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .f-contact .phone { font-family: var(--head); font-size: 24px; font-weight: 800; color: #fff; }
.site-footer .f-contact p + p { margin-top: 6px; }
.footer-bar { max-width: calc(var(--max) - 56px); margin: 0 auto; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14.5px; color: #A8998C; }
@media (max-width: 900px) { .footer-in { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-in { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 1296px) { .footer-bar { margin: 0 28px; } }
@media (max-width: 600px) { .footer-bar { margin: 0 20px; } .footer-in { padding-inline: 20px; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 160%); display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 12px; background: #2B2119; color: #fff; border: 1px solid rgba(255, 255, 255, .12); font-weight: 500; box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .4); transition: transform .3s ease, visibility 0s .3s; max-width: calc(100vw - 32px); visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .3s ease; }
.toast a { color: #FFB27A; font-weight: 600; text-decoration: underline; white-space: nowrap; }

/* hCaptcha widget (Web3Forms): reserve its height so the form does not jump when it loads */
.h-captcha { min-height: 78px; max-width: 100%; overflow: hidden; }

/* =================================================================
   Motion and polish. Everything below is skipped for visitors who
   ask their device to reduce motion, and browsers that don't support
   a feature just show the page normally (nothing is ever hidden).
   ================================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* ---------- micro-interactions ---------- */
  .btn { transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .2s; }
  .btn:active { transform: translateY(1px) scale(.985); }
  .btn-primary:hover { box-shadow: 0 8px 20px -10px rgba(227, 83, 0, .7); }
  .btn svg, .arrow-link svg, .card-go svg { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
  .btn:hover svg { transform: translateX(3px); }
  .card { transition: border-color .25s, transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(43, 33, 25, .45); }
  .quick a, .chip, .pick span, .req-btn, .theme-btn, .menu-btn, .rm, .qty button { transition: background .15s, border-color .15s, color .15s, transform .12s; }
  .quick a:hover { transform: translateY(-1px); }
  .chip:active, .pick label:active span, .req-btn:active, .theme-btn:active, .menu-btn:active, .rm:active, .qty button:active { transform: scale(.94); }
  .field input, .field textarea, .field select { transition: border-color .15s, background .15s, box-shadow .2s; }
  .field input:focus, .field textarea:focus, .field select:focus, .hero-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 96, 0, .14); }
  .hero-search { transition: border-color .15s, box-shadow .2s; }
  .site-footer a { transition: color .2s ease; }
  /* text links fade their colour instead of switching instantly */
  .contact-lines a, .link, .crumbs a, .facts a, .ritem h3 a, .req-panel-head button, .main-nav a, .mobile-nav a { transition: color .25s ease; }
  .contact-lines a svg { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
  .contact-lines a:hover svg { transform: translateX(2px); }

  /* request list icon gives a little bounce when something is added */
  .req-btn.bump svg { animation: nudge .5s cubic-bezier(.3, 1.6, .5, 1); }
  @keyframes nudge { 30% { transform: translateY(-3px) rotate(-8deg); } 60% { transform: translateY(0) rotate(5deg); } }

  /* "Added" confirmation on the product page button */
  .btn.added { background: var(--green); }
  html[data-theme=dark] .btn.added { color: #0E1A11; }

  /* light / dark icon turns in when it changes */
  .theme-btn svg { animation: icon-in .45s cubic-bezier(.2, .8, .2, 1); }
  @keyframes icon-in { from { opacity: 0; transform: rotate(-90deg) scale(.6); } }

  /* mobile menu items slide in one after another */
  .mobile-nav.open a { animation: slide-in .35s cubic-bezier(.2, .8, .2, 1) both; }
  .mobile-nav.open a:nth-child(2) { animation-delay: .03s; } .mobile-nav.open a:nth-child(3) { animation-delay: .06s; }
  .mobile-nav.open a:nth-child(4) { animation-delay: .09s; } .mobile-nav.open a:nth-child(5) { animation-delay: .12s; }
  .mobile-nav.open a:nth-child(6) { animation-delay: .15s; } .mobile-nav.open a:nth-child(7) { animation-delay: .18s; }
  .mobile-nav.open a:nth-child(8) { animation-delay: .21s; }
  @keyframes slide-in { from { opacity: 0; transform: translateX(-12px); } }

  /* home hero: a short, staggered entrance on load */
  .hero .label, .hero h1, .hero .lede, .hero .hero-search, .hero .quick { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .hero h1 { animation-delay: .06s; } .hero .lede { animation-delay: .12s; } .hero .hero-search { animation-delay: .18s; } .hero .quick { animation-delay: .24s; }
  .hero-photo .main { animation: photo-in .9s cubic-bezier(.2, .8, .2, 1) .1s both; }
  .hero-photo .inset { animation: inset-in .8s cubic-bezier(.2, .8, .2, 1) .35s both; }
  /* entrance/reveal animations move with `translate`, leaving `transform` free for hover effects to transition smoothly */
  @keyframes rise { from { opacity: 0; translate: 0 14px; } }
  @keyframes inset-in { from { opacity: 0; transform: translateY(14px); } }
  @keyframes photo-in { from { opacity: 0; transform: scale(.97); } }

  /* ---------- scroll-linked animations (CSS only, no JavaScript on scroll) ---------- */
  @supports (animation-timeline: view()) {
    .sec-head, .facts li, .cards .card, .order-note, .svc, .why-intro, .why-item, .story > figure, .story > div,
    .contact-split > *, .step, .svc-row, .special {
      animation: reveal both cubic-bezier(.2, .7, .2, 1);
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
    /* stagger items that sit side by side */
    .cards .card:nth-child(3n+2), .facts li:nth-child(2), .why-item:nth-child(2n), .step:nth-child(2), .svc:nth-child(2) { animation-range: entry 6% entry 44%; }
    .cards .card:nth-child(3n+3), .facts li:nth-child(3), .step:nth-child(3) { animation-range: entry 12% entry 50%; }
    @keyframes reveal { from { opacity: 0; translate: 0 26px; } }

    /* photos settle as they scroll in */
    .story img, .svc-row img { animation: settle both linear; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes settle { from { transform: scale(1.06); } }
  }

  @supports (animation-timeline: scroll()) {
    /* the small hero photo drifts up a little as the page scrolls */
    .hero-photo .inset { animation: inset-in .8s cubic-bezier(.2, .8, .2, 1) .35s both, drift linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 640px; }
    @keyframes drift { to { translate: 0 -38px; } }
    /* header logo eases smaller once you start scrolling (desktop; the mobile header is already compact) */
    @media (min-width: 1001px) {
      .logo img { animation: logo-shrink linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
      @keyframes logo-shrink { to { height: 56px; } }
      .header-in { animation: header-shrink linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
      @keyframes header-shrink { to { min-height: 74px; } }
    }
  }

  /* ---------- page transitions (browser-native View Transitions) ---------- */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .2s ease both; }
  ::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
  /* between pages the header stays put while the orange underline glides to the new menu item */
  html:not(.theme-vt)::view-transition-old(site-header) { display: none; }
  html:not(.theme-vt)::view-transition-new(site-header) { animation: none; }
  ::view-transition-group(nav-bar) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
  /* switching light / dark is a simple crossfade of the whole page */
  html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation-duration: .35s; animation-name: vt-fade; transform: none; }
  html.theme-vt::view-transition-old(root) { animation-direction: reverse; }
  @keyframes vt-fade { from { opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- "Website managed and maintained by IEQ Technology" credit ----------
   One shared SVG (assets/ieq-credit.svg) painted in the current text colour through a CSS mask,
   so it can fade colour on hover like a text link. */
.ieq-credit,.site-footer .ieq-credit{display:inline-flex;flex:none;color:#A8998C;transition:color .25s ease}
.ieq-credit span{display:block;height:32px;aspect-ratio:1215/213;background:currentColor;-webkit-mask:url(../assets/ieq-credit.svg) center/contain no-repeat;mask:url(../assets/ieq-credit.svg) center/contain no-repeat}
.site-footer .ieq-credit:hover,.site-footer .ieq-credit:focus-visible{color:#fff;text-decoration:none}
.footer-bar{align-items:center}
