/* =============================================================================
   MATERIA — Main stylesheet
   -----------------------------------------------------------------------------
   1. Design tokens (colours, fonts, spacing)
   2. Base / reset
   3. Layout helpers
   4. Header & navigation
   5. Search overlay
   6. Hero
   7. Section headings & text
   8. Media / image placeholders
   9. Product grid & cards
  10. Feature cards, guides, finish rows (About, Accessories, Hygiene)
  11. Sub-navigation (in-page chips)
  12. Product detail page
  13. Gallery & lightbox
  14. Contact page
  15. Footer
  16. Utilities & responsive tweaks
   ============================================================================= */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  --ink: #181715;          /* primary text, logo colour */
  --ink-soft: #3b3935;
  --muted: #666158;        /* secondary text (passes WCAG AA on white, stone and sand) */
  --stone: #f5f2ed;        /* page background tint */
  --sand: #ebe5dc;         /* placeholder & panel background */
  --line: #ddd6cb;         /* hairlines */
  --white: #ffffff;
  --accent: #9a7b5b;       /* warm bronze accent, used sparingly */

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;          /* max content width */
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 128px); /* vertical rhythm between sections */
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------------ 2. BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ---------------------------------------------------------------- 3. LAYOUT */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tint { background: var(--stone); }
.section--dark { background: var(--ink); color: var(--stone); }
main { min-height: 60vh; }

/* -------------------------------------------------------- 4. HEADER & NAV */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
}
/* The frosted background lives on a pseudo-element. A backdrop-filter on the
   header itself would become the containing block for the fixed mobile menu
   panel and squash it into the header (menu links unclickable). */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a {
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  padding: 6px 0; position: relative; white-space: nowrap; color: var(--ink-soft);
}
.nav a::after { /* hairline underline on hover / active */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; }
.icon-btn svg { width: 19px; height: 19px; stroke: var(--ink); fill: none; stroke-width: 1.3; }
.menu-btn { display: none; }

/* --------------------------------------------------------- 5. SEARCH OVERLAY */
.search {
  position: fixed; inset: 0; z-index: 100; background: rgba(255, 255, 255, .98);
  display: none; flex-direction: column; padding-top: 12vh;
}
.search.is-open { display: flex; }
.search__field { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.search__field input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); color: var(--ink);
}
.search__results { margin-top: 28px; max-height: 62vh; overflow: auto; }
.search__result { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.search__result:hover .search__name { color: var(--accent); }
.search__name { font-family: var(--font-display); font-size: 21px; transition: color .2s; }
.search__meta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.search__empty { color: var(--muted); }

/* ------------------------------------------------------------------ 6. HERO */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
  /* Fallback stone gradient shows until a hero photo is added */
  background: linear-gradient(135deg, #2b2925 0%, #4a453e 55%, #6d665b 100%);
}
.hero--short { min-height: 0; }
.hero--short .wrap { padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero.hero--short h1 { font-size: clamp(36px, 4.8vw, 64px); max-width: 22ch; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { /* soft shade so white text always reads over any photo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.08) 30%, rgba(0,0,0,.55) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { font-size: clamp(40px, 6.2vw, 84px); font-weight: 300; max-width: 15ch; letter-spacing: .005em; }
.hero .eyebrow { color: rgba(255, 255, 255, .8); }

/* --------------------------------------------- 7. SECTION HEADINGS & TEXT */
.eyebrow { display: block; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 400; }
.h2 { font-size: clamp(32px, 4vw, 52px); }
.h3 { font-size: clamp(24px, 2.6vw, 32px); }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 62ch; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head .lead { margin: 0; }
.group-title { font-size: clamp(36px, 5vw, 64px); font-weight: 300; margin-bottom: 18px; }
.collection { padding-top: 72px; }
.collection:first-of-type { padding-top: 24px; }
.collection__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 32px; }
.collection__count { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
/* Placeholder copy (TODO in catalogue.js) — visible but clearly unfinished */
.todo { color: var(--muted); font-style: italic; }

/* ------------------------------------------- 8. MEDIA & IMAGE PLACEHOLDERS */
/* Every image sits in a .media box. If the photo is missing the <img> removes
   itself (see main.js) and the stone placeholder with the MATERIA "M" shows. */
.media {
  position: relative; margin: 0; overflow: hidden; background: var(--sand);
  aspect-ratio: var(--ratio, 4 / 5);
}
.media__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px); color: rgba(24, 23, 21, .12);
  background: linear-gradient(145deg, #efeae2 0%, #e3dcd1 100%);
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

/* ----------------------------------------------- 9. PRODUCT GRID & CARDS */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 44px 28px; }
.card { display: flex; flex-direction: column; }
.card__link { display: block; }
.card__link:hover .media img { transform: scale(1.04); }
/* Product photos are room scenes (3:2 or 4:3), so fill a 4:3 frame instead of
   letterboxing them inside a white square */
.card .media { --ratio: 4 / 3; }
/* Once a photo has loaded, swap the stone placeholder for white (main.js marks .is-loaded) */
.card .media.is-loaded, .pd .media.is-loaded { background: var(--white); }
.media.is-loaded .media__ph { display: none; }
.card__name { font-family: var(--font-display); font-size: 21px; line-height: 1.25; margin-top: 18px; }
.card__dims { font-size: 13px; letter-spacing: .04em; color: var(--muted); margin: 6px 0 0; }
.card__actions { display: flex; gap: 22px; margin-top: auto; padding-top: 10px; }
.card__more:hover, .card__more--enquire { color: var(--ink); border-color: var(--ink); }
.card__more--enquire:hover { color: var(--accent); border-color: var(--accent); }
.card__more { display: inline-block; margin-top: 10px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s; }

/* ------------------------- 10. FEATURE CARDS, GUIDES, FINISH ROWS, SPLITS */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev .split__media { order: 2; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature .media { --ratio: 4 / 3; margin-bottom: 24px; }
.feature h3 { font-size: 26px; margin-bottom: 10px; }

.guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; border-top: 1px solid var(--line); }
.guide { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.guide__title { font-family: var(--font-display); font-size: 22px; }
.guide__dl { white-space: nowrap; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; color: var(--muted); transition: color .2s; }
.guide:hover .guide__dl { color: var(--ink); }

.finishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 32px 22px; }
.finish .media { --ratio: 3 / 2; }
.finish__name { font-family: var(--font-display); font-size: 19px; margin-top: 14px; }
.finish__text { font-size: 14px; color: var(--muted, #6b6560); margin-top: 6px; }
.group-banner { margin-bottom: clamp(24px, 4vw, 48px); }
.group-banner .split__media { max-width: 460px; justify-self: end; width: 100%; }

.range { padding: 56px 0; border-top: 1px solid var(--line); }
.range:first-child { border-top: 0; }
.range .media { --ratio: 5 / 4; }
.range__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 10px; }
.range__thumbs .media { --ratio: 1 / 1; }

/* Home hero: welcome copy on a stone panel beside the landing image */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); min-height: calc(100vh - var(--header-h)); background: var(--sand); }
.home-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px); }
.home-hero__copy .eyebrow { color: var(--accent); }
.home-hero h1 { font-size: clamp(38px, 4.6vw, 64px); font-weight: 400; max-width: 14ch; margin-bottom: 28px; }
.home-hero__sub { font-weight: 500; font-size: 15px; letter-spacing: .04em; color: var(--ink); margin: 0 0 6px; }
.home-hero__copy p:not(.home-hero__sub) { color: var(--ink-soft); max-width: 46ch; margin: 0 0 14px; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.home-hero__media .media { height: 100%; --ratio: auto; min-height: 360px; }

/* About Us + text-only Product Features */
.section--sand { background: var(--sand); }
.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__text .lead { margin: 0 0 18px; }
.about__features-title { margin: clamp(56px, 7vw, 88px) 0 28px; }
.features--text .feature { border-top: 1px solid var(--ink); padding-top: 22px; }
.features--text .feature p { color: var(--ink-soft); margin: 0 0 12px; }
.ticks { list-style: none; margin: 0; padding: 0; color: var(--ink-soft); }
.ticks li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--accent); }
.text-link { display: inline-block; margin-top: 6px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.text-link:hover { color: var(--accent); }

/* Product Guides: heading left, download list right */
.guides-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.rule { display: block; width: 40px; height: 1px; background: var(--accent); margin-bottom: 24px; }
.guides-layout__intro { color: var(--muted); max-width: 40ch; margin-top: 16px; }
.guides--list { grid-template-columns: 1fr; }

/* Tiles linking to the product pages on the home page */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); }
.tile { position: relative; display: block; color: var(--white); }
.tile .media { --ratio: 4 / 5; }
.tile .media img { filter: brightness(.82); }
.tile:hover .media img { transform: scale(1.04); }
.tile__label { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 1; }
.tile__label h3 { font-size: clamp(24px, 2.4vw, 34px); color: var(--white); }
.tile .media__ph { color: rgba(255,255,255,.18); background: linear-gradient(145deg, #4a453e, #2b2925); }

/* ----------------------------------------- 11. SUB-NAV (in-page chips) */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.chip { flex: none; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); transition: all .2s; }
.chip:hover, .chip.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
/* Grouped bar: "Group name  [chip] [chip]  |  Next group  [chip]" */
.subnav--grouped .wrap { gap: 0; align-items: center; }
.subnav__group { display: flex; align-items: center; gap: 8px; flex: none; padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--line); }
.subnav__group:last-child { border-right: 0; margin-right: 0; }
.subnav__label { flex: none; font-family: var(--font-display); font-size: 18px; color: var(--ink); padding: 4px 6px 4px 0; transition: color .2s; }
.subnav__label:hover, .subnav__label.is-active { color: var(--accent); }
/* Wide screens: wrap the grouped bar so every group is visible (no hidden overflow) */
@media (min-width: 861px) {
  .subnav--grouped .wrap { flex-wrap: wrap; row-gap: 10px; overflow: visible; }
  .subnav--grouped .subnav__group { border-right: 0; padding-right: 0; margin-right: 36px; flex: 0 1 auto; flex-wrap: wrap; row-gap: 8px; min-width: 0; }
  html:has(.subnav--grouped) { scroll-padding-top: calc(var(--header-h) + 140px); }
  /* Compact chips so the wrapped (sticky) bar doesn't eat the laptop screen */
  .subnav--grouped .wrap { padding-top: 10px; padding-bottom: 10px; row-gap: 6px; }
  .subnav--grouped .chip { padding: 6px 13px; font-size: 11px; }
  .subnav--grouped .subnav__label { font-size: 17px; }
}

/* -------------------------------------------- 12. PRODUCT DETAIL PAGE */
.crumbs { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 28px 0 0; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 10px; }
.pd { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 88px); padding: 40px 0 var(--section); align-items: start; }
.pd__main .media { --ratio: 4 / 3; cursor: zoom-in; }
.pd__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.pd__thumbs button { padding: 0; opacity: .6; transition: opacity .2s; }
.pd__thumbs button.is-active, .pd__thumbs button:hover { opacity: 1; }
.pd__thumbs .media { --ratio: 1 / 1; }
.pd__info { position: sticky; top: calc(var(--header-h) + 32px); }
.pd__info h1 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 300; margin-bottom: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 18px;
  padding: 16px 30px; background: var(--ink); color: var(--white);
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; transition: background .25s;
}
.btn:hover { background: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.pd__meta { margin-top: 40px; border-top: 1px solid var(--line); }
.pd__meta div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pd__meta dt { color: var(--muted); }
.pd__meta dd { margin: 0; text-align: right; }

/* ---------------------------------------------- 13. GALLERY & LIGHTBOX */
.gallery-group { margin-bottom: 72px; }
.masonry { columns: 3 280px; column-gap: 14px; }
/* Gallery: equal square tiles; a short last row sits in the middle (snag list Rev 01) */
.gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.gallery-grid .media { --ratio: 1 / 1; width: calc((100% - 28px) / 3); cursor: zoom-in; }
@media (max-width: 600px) { .gallery-grid .media { width: calc((100% - 14px) / 2); } }
/* "Call or WhatsApp" contact links */
.call-or { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.site-footer .call-or { color: inherit; opacity: .7; }
.wa-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; white-space: nowrap; }
.wa-icon { width: 18px; height: 18px; flex: none; color: #25d366; }
.masonry .media { break-inside: avoid; margin-bottom: 14px; cursor: zoom-in; }
.masonry .media:nth-child(3n + 1) { --ratio: 4 / 5; }
.masonry .media:nth-child(3n + 2) { --ratio: 1 / 1; }
.masonry .media:nth-child(3n + 3) { --ratio: 3 / 4; }

.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(16, 15, 14, .96); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 84vh; object-fit: contain; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next, .lightbox.is-single .lightbox__count { display: none; }
.lightbox__btn { position: absolute; color: var(--white); width: 56px; height: 56px; display: grid; place-items: center; font-size: 28px; font-family: var(--font-display); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.6); font-size: 11px; letter-spacing: .24em; }

/* ------------------------------------------------------ 14. CONTACT */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.region { border-top: 1px solid var(--ink); padding-top: 22px; }
.region h3 { font-size: 24px; margin-bottom: 10px; }
.region a:hover { color: var(--accent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 10px 0; font: inherit; color: var(--ink); outline: 0; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }

/* ------------------------------------------------------- 15. FOOTER */
.site-footer { background: var(--ink); color: rgba(245, 242, 237, .72); padding: 80px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer img { height: 64px; width: auto; margin-bottom: 20px; }
.site-footer h4 { font-family: var(--font-body); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; font-weight: 400; }
.site-footer li { margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a:hover { color: var(--white); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; letter-spacing: .06em; }

/* ------------------------------------------- 16. UTILITIES & RESPONSIVE */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  /* Mobile menu panel */
  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 24px var(--gutter); overflow: auto;
  }
  .nav.is-open a { font-family: var(--font-display); font-size: 30px; letter-spacing: 0; text-transform: none; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav.is-open a::after { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .brand img { height: 42px; }
  .section-head, .split, .pd, .footer-grid, .about, .guides-layout { grid-template-columns: 1fr; }
  .home-hero { grid-template-columns: 1fr; min-height: 0; }
  .home-hero__media { order: -1; }
  .home-hero__media .media { --ratio: 16 / 10; height: auto; min-height: 0; }
  .split--rev .split__media { order: 0; }
  .features, .regions, .tiles { grid-template-columns: 1fr; }
  .guides, .form { grid-template-columns: 1fr; }
  .pd__info { position: static; }
  .footer-base { flex-direction: column; }
}
/* Phones: two-up product grid so a catalogue page isn't one giant card per screen */
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .card__name { font-size: 17px; margin-top: 12px; }
  .card__dims { font-size: 12px; }
  .card__actions { flex-wrap: wrap; gap: 0 14px; padding-top: 4px; }
  .card__more { letter-spacing: .14em; }
  .finishes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .finish__name { font-size: 17px; }
  .collection__head { flex-wrap: wrap; gap: 4px 16px; }
}
/* Tablets portrait: three-up instead of two giant cards */
@media (min-width: 601px) and (max-width: 860px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 20px; }
}
/* Touch screens: give the small uppercase text links a finger-sized hit area
   (extra padding, cancelled by negative margin so the look doesn't change) */
@media (pointer: coarse) {
  .card__more, .text-link, .guide__dl { padding-top: 16px; padding-bottom: 3px; margin-top: -4px; }
  .site-footer li a, .region a { display: inline-block; padding: 4px 0; }
  a.collection__count { padding: 12px 0; margin: -12px 0; }
  .crumbs a { display: inline-block; padding: 12px 0; margin: -12px 0; }
}
/* Large screens: use more of the width and step the body text up a touch */
@media (min-width: 1680px) {
  :root { --wrap: 1440px; }
  body { font-size: 17px; }
}
@media (min-width: 2200px) {
  :root { --wrap: 1680px; --header-h: 96px; }
  body { font-size: 18px; }
  .brand img { height: 60px; }
  .nav a { font-size: 12.5px; }
  .lead { font-size: 20px; }
  .card__name { font-size: 23px; }
}
/* Home hero: line the copy up with the logo / content column on wide screens */
@media (min-width: 861px) {
  .home-hero__copy { padding-left: max(clamp(24px, 5vw, 72px), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
