/* ==========================================================================
   ES CARPET AND FLOORING LTD — site stylesheet
   Mobile-first. Vanilla CSS, no framework.
   Brand palette (see README → "Brand"):
     Forest brown #40342E · Warm taupe #A58E7A · Muted terracotta #B96F50
     Soft cream #F7F4EF · Sand beige #E8DED2 · Deep charcoal #292624
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --brown: #40342e;
  --brown-deep: #2c2420;
  --taupe: #a58e7a;
  --taupe-ink: #6f5949;      /* AA-safe taupe for small text on cream */
  --terracotta: #b96f50;
  --terracotta-ink: #96512f; /* AA-safe terracotta for text/buttons */
  --cream: #f7f4ef;
  --sand: #e8ded2;
  --sand-soft: #f0e9e0;
  --charcoal: #292624;
  --white: #fffdfa;
  --line: rgba(64, 52, 46, 0.14);
  --line-strong: rgba(64, 52, 46, 0.28);

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

  --radius-s: 4px;
  --radius: 10px;
  --radius-l: 18px;
  --shadow: 0 18px 40px -22px rgba(41, 38, 36, 0.45);
  --shadow-soft: 0 10px 30px -18px rgba(41, 38, 36, 0.35);

  --container: 1220px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.12; font-weight: 600; color: var(--brown); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
address { font-style: normal; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--brown); color: var(--cream); padding: 0.75rem 1.1rem;
  border-radius: var(--radius-s); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand-soft); }
.section--dark { background: var(--brown); color: #ece4da; }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 600px) and (max-width: 999px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
  .split--reverse > :first-child { order: 2; }
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1, .h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 4.9rem); letter-spacing: -0.015em; line-height: 1.02; }
h2, .h2 { font-family: var(--font-display); font-size: clamp(2.05rem, 4.6vw, 3.3rem); letter-spacing: -0.01em; }
h3, .h3 { font-family: var(--font-body); font-size: 1.14rem; font-weight: 700; letter-spacing: 0; line-height: 1.35; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--terracotta-ink); }
.section--dark h2 em { color: #e2a78c; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.2rem); line-height: 1.7; color: #4b423c; max-width: 60ch; }
.section--dark .lead { color: #d9cec2; }
.muted { color: #5e534c; }
.small { font-size: 0.9rem; }

/* Sample-book style label: "No. 01 — Carpet fitting" */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.1rem;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--taupe-ink);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow b { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em; text-transform: none; color: var(--terracotta-ink); }
.section--dark .eyebrow { color: #cdbba9; }
.section--dark .eyebrow b { color: #e2a78c; }

.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: end; justify-content: space-between; }
.section-head--row > div { max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brown); --btn-fg: var(--cream); --btn-bd: var(--brown);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.8rem 1.5rem;
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); --btn-bg: var(--brown-deep); --btn-bd: var(--brown-deep); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--accent { --btn-bg: var(--terracotta-ink); --btn-bd: var(--terracotta-ink); --btn-fg: #fff; }
.btn--accent:hover { --btn-bg: #7d4227; --btn-bd: #7d4227; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--brown); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--brown); --btn-fg: var(--cream); --btn-bd: var(--brown); }
.btn--light { --btn-bg: var(--cream); --btn-fg: var(--brown); --btn-bd: var(--cream); }
.btn--light:hover { --btn-bg: #fff; --btn-bd: #fff; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--cream); --btn-bd: rgba(247, 244, 239, 0.45); }
.btn--outline-light:hover { --btn-bg: var(--cream); --btn-fg: var(--brown); --btn-bd: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; color: var(--terracotta-ink); text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.text-link svg { width: 18px; height: 18px; flex: none; }
.text-link:hover { color: var(--brown); }
.service-card .text-link, .section-head .text-link { white-space: nowrap; }
.section--dark .text-link { color: #e9b49b; }

/* ---------- Pending-confirmation badge & notes ---------- */
.badge-pending {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.32rem 0.75rem;
  border: 1.5px dashed var(--terracotta-ink); border-radius: 999px;
  background: rgba(185, 111, 80, 0.08);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--terracotta-ink); line-height: 1.3;
}
.badge-pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.section--dark .badge-pending, .badge-pending--light { color: #f0bea6; border-color: #e2a78c; background: rgba(226, 167, 140, 0.1); }
.badge-confirmed {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.32rem 0.75rem;
  border-radius: 999px; background: var(--brown); color: var(--cream);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.note {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1rem 1.15rem; margin: 0 0 1.5rem;
  border-left: 3px solid var(--terracotta); border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(185, 111, 80, 0.08); font-size: 0.93rem; color: #4b3a31;
}
.note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--terracotta-ink); }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--brown); }
.section--dark .note { background: rgba(247, 244, 239, 0.07); color: #e3d8cc; border-color: #e2a78c; }
.section--dark .note strong { color: var(--cream); }
.section--dark .note svg { color: #e2a78c; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header::before {
  /* blur lives on a pseudo-element so it does not become the containing block of the fixed mobile nav */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
body.nav-open .site-header::before { background: var(--cream); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -20px rgba(41, 38, 36, 0.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--brown); flex: none; }
.brand__mark { width: 42px; height: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.42rem; letter-spacing: 0.04em; }
.brand__sub { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.26em; color: var(--taupe-ink); margin-top: 0.3rem; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1.5px solid var(--line-strong); border-radius: 50%;
  background: transparent; cursor: pointer; color: var(--brown);
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.site-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 1.75rem var(--gutter) 2.5rem;
  background: var(--cream); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.95rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--brown); text-decoration: none;
}
.nav-list a[aria-current="page"] { color: var(--terracotta-ink); }
.nav-list a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }
.nav-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.nav-phone { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; text-decoration: none; color: var(--brown); }
.nav-phone svg { width: 18px; height: 18px; color: var(--terracotta-ink); }
body.nav-open { overflow: hidden; }

@media (min-width: 1100px) {
  :root { --header-h: 84px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static; flex-direction: row; align-items: center; gap: 1.75rem;
    padding: 0; background: transparent; overflow: visible;
    visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .nav-list { display: flex; gap: 0.15rem; }
  .nav-list a {
    position: relative; padding: 0.5rem 0.7rem; border: 0; white-space: nowrap;
    font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  }
  .nav-list a::before {
    content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.2rem; height: 1.5px;
    background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
  }
  .nav-list a:hover::before, .nav-list a[aria-current="page"]::before { transform: scaleX(1); }
  .nav-list a[aria-current="page"]::after { display: none; }
  .nav-actions { flex-direction: row; align-items: center; gap: 1.25rem; }
  .site-nav { gap: 1.25rem; }
  .nav-actions .btn { min-height: 44px; padding: 0.6rem 1.25rem; }
}
@media (min-width: 1100px) and (max-width: 1379px) { .nav-phone span:not(.visually-hidden) { display: none; } .nav-actions { gap: 0.9rem; } }
.nav-phone, .btn { white-space: nowrap; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.02fr 0.98fr; } }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.hero__facts a, .hero__facts span { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--brown); text-decoration: none; font-weight: 600; }
.hero__facts svg { width: 18px; height: 18px; color: var(--terracotta-ink); flex: none; }
.hero__facts a:hover { color: var(--terracotta-ink); }

.hero__visual { position: relative; padding: 0 0 2.5rem 0; }
@media (min-width: 600px) { .hero__visual { padding: 0 0 3rem 3rem; } }
.hero__frame { position: relative; border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 120px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 4.4; background: var(--sand); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__tiles { position: absolute; left: 0; bottom: 0; width: clamp(110px, 22vw, 168px); z-index: 2; filter: drop-shadow(0 14px 22px rgba(41, 38, 36, 0.25)); }
@media (max-width: 599px) { .hero__tiles { left: auto; right: 1rem; width: 96px; } }

/* Swatch card overlay — "sample book" feel */
.swatch-card {
  position: absolute; right: 1rem; top: 1rem; z-index: 2;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.85rem 0.65rem 0.7rem; border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.94); box-shadow: var(--shadow-soft);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brown);
}
.swatch-card__chips { display: flex; }
.swatch-card__chips i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; }
.swatch-card__chips i:first-child { margin-left: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero__grid { display: grid; gap: 2.25rem; align-items: end; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1.2fr 0.8fr; } }
.page-hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); margin-bottom: 1.1rem; }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb { margin-bottom: 1.5rem; font-size: 0.85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; color: var(--taupe-ink); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--taupe); }
.breadcrumb a { color: var(--brown); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero__media { border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 80px; overflow: hidden; aspect-ratio: 5 / 3.6; box-shadow: var(--shadow); background: var(--sand); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__pattern { position: absolute; right: -70px; top: -70px; width: 240px; opacity: 0.28; pointer-events: none; z-index: 0; }
.page-hero > .container { position: relative; z-index: 1; }
@media (max-width: 899px) { .page-hero__pattern { display: none; } }

/* ---------- Image frames ---------- */
.media { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--sand); box-shadow: var(--shadow-soft); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 11; }
.media--arch { border-radius: 220px 220px var(--radius-l) var(--radius-l); }
.media-caption {
  position: absolute; left: 0.85rem; bottom: 0.85rem; right: 0.85rem;
  display: inline-block; width: fit-content; max-width: calc(100% - 1.7rem);
  padding: 0.4rem 0.75rem; border-radius: 999px;
  background: rgba(41, 38, 36, 0.72); color: #f3ece4;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
}
.media-stack { position: relative; padding-bottom: 3rem; }
.media-stack .media--inset { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 6px solid var(--cream); border-radius: var(--radius-l); }
.section--sand .media-stack .media--inset { border-color: var(--sand-soft); }

/* ---------- Intro / statement ---------- */
.statement { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.25; color: var(--brown); font-weight: 500; }
.statement em { color: var(--terracotta-ink); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.8rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 1.1rem; height: 1.1rem; border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255,255,255,0.55) 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(255,255,255,0.55) 47% 53%, transparent 53%),
    var(--terracotta);
}
.section--dark .check-list li::before { background-color: #c98767; }

/* ---------- Service cards ---------- */
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.6rem 1.75rem; }
.service-card__num { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--terracotta-ink); margin-bottom: 0.35rem; }
.service-card h3 { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; margin-bottom: 0.65rem; }
.service-card p { color: #4f463f; }
.service-card .badge-pending, .service-card .badge-confirmed { align-self: flex-start; margin-bottom: 1rem; }
.service-card .text-link { margin-top: auto; align-self: flex-start; }
.service-card--pending { background: repeating-linear-gradient(135deg, var(--white) 0 14px, #fbf7f2 14px 28px); border-style: dashed; border-color: rgba(150, 81, 47, 0.4); }

/* ---------- Info tiles / steps ---------- */
.tile { padding: 1.6rem; border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line); height: 100%; }
.section--sand .tile { background: var(--white); }
.section--dark .tile { background: rgba(247, 244, 239, 0.05); border-color: rgba(247, 244, 239, 0.14); }
.section--dark .tile p { color: #d6cabd; }
.tile__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 1.1rem; border-radius: 14px; background: var(--sand); color: var(--brown); }
.section--dark .tile__icon { background: rgba(247, 244, 239, 0.1); color: #f0c3ad; }
.tile__icon svg { width: 26px; height: 26px; }
.tile p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 1.6rem 1.5rem 1.5rem; border-top: 2px solid var(--brown); background: var(--white); border-radius: 0 0 var(--radius) var(--radius); }
.section--sand .steps li { background: var(--white); }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 0.9rem; font-family: var(--font-display); font-size: 2.4rem; font-style: italic; line-height: 1; color: var(--terracotta); }
.steps h3 { margin-bottom: 0.45rem; }
.steps p { margin: 0; color: #50473f; font-size: 0.96rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 0.85rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 1rem; } }
@media (min-width: 1100px) { .gallery { grid-auto-rows: 240px; } }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.4s; }
.gallery__btn:hover img, .gallery__btn:focus-visible img { transform: scale(1.05); }
.gallery__btn:focus-visible { outline-offset: -4px; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 0.9rem 0.8rem;
  background: linear-gradient(transparent, rgba(41, 38, 36, 0.78));
  color: #f6efe7; font-size: 0.82rem; font-weight: 600; pointer-events: none;
}
.gallery-note { margin-top: 1.25rem; font-size: 0.84rem; color: var(--taupe-ink); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 4.5rem 1rem 1.5rem; background: rgba(28, 23, 20, 0.94); }
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.lightbox__img { max-height: calc(100vh - 10rem); width: auto; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.lightbox__caption { color: #eadfd3; font-size: 0.92rem; text-align: center; }
.lightbox__btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(247, 244, 239, 0.35);
  background: rgba(247, 244, 239, 0.08); color: var(--cream); cursor: pointer;
}
.lightbox__btn:hover { background: rgba(247, 244, 239, 0.2); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; } }

/* ---------- Careers highlight / job card ---------- */
.job-card {
  position: relative; display: grid; gap: 1.75rem;
  padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius-l);
  background: var(--brown); color: #e9e0d6; overflow: hidden;
}
@media (min-width: 900px) { .job-card { grid-template-columns: 1.3fr 0.7fr; align-items: center; } }
.job-card h2, .job-card h3 { color: var(--cream); }
.job-card__title { font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 3rem); margin: 0.85rem 0 0.75rem; }
.job-card__pattern { position: absolute; right: -40px; bottom: -40px; width: 220px; opacity: 0.12; pointer-events: none; }
.salary {
  position: relative; padding: 1.5rem; border-radius: var(--radius); background: rgba(247, 244, 239, 0.07); border: 1px solid rgba(247, 244, 239, 0.16);
}
.salary__label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #cdbba9; }
.salary__value { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 600; line-height: 1.05; color: var(--cream); margin: 0.35rem 0 0.25rem; }
.salary__unit { font-size: 0.95rem; color: #dccfc2; }

.job-facts { display: grid; gap: 0; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.job-facts div { display: grid; grid-template-columns: 1fr; gap: 0.2rem; padding: 0.95rem 1.15rem; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .job-facts div { grid-template-columns: 180px 1fr; gap: 1rem; align-items: baseline; } }
.job-facts div:last-child { border-bottom: 0; }
.job-facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--taupe-ink); }
.job-facts dd { margin: 0; font-weight: 600; color: var(--brown); }
.job-facts dd .muted { font-weight: 500; }

.draft-panel { position: relative; padding: clamp(1.5rem, 3.5vw, 2.25rem); border: 1.5px dashed rgba(150, 81, 47, 0.45); border-radius: var(--radius-l); background: var(--white); }
.draft-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.1rem; }
.draft-panel__head h3 { margin: 0; font-family: var(--font-display); font-size: 1.75rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--brown); color: #e8dfd5; padding: clamp(2.25rem, 6vw, 4.5rem); }
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.3fr auto; } }
.cta-band h2 { color: var(--cream); margin-bottom: 0.6rem; }
.cta-band p { margin: 0; color: #d9cdbf; max-width: 56ch; }
.cta-band__texture { position: absolute; inset: 0; opacity: 0.18; background-size: cover; background-position: center; mix-blend-mode: luminosity; }
.cta-band__pattern { position: absolute; right: -50px; top: -50px; width: 240px; opacity: 0.14; }

/* ---------- Material sections (flooring options) ---------- */
.material { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) { .material { grid-template-columns: 0.95fr 1.05fr; } }
.material__label { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.spec-list { display: grid; gap: 0; margin: 0 0 1.5rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.spec-list li { display: grid; grid-template-columns: 1fr; gap: 0.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .spec-list li { grid-template-columns: 170px 1fr; gap: 1.25rem; } }
.spec-list strong { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--taupe-ink); }
.spec-list span { color: #4a413b; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1rem; }
.swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.swatch__chip { aspect-ratio: 1; }
.swatch__name { padding: 0.55rem 0.7rem; font-size: 0.76rem; font-weight: 700; color: var(--brown); line-height: 1.3; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.compare caption { text-align: left; font-weight: 700; padding-bottom: 0.75rem; color: var(--brown); }
.compare th, .compare td { padding: 0.9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--brown); color: var(--cream); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.compare tbody th { color: var(--brown); width: 28%; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.form-card h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--brown); }
.field .optional { font-weight: 500; color: var(--taupe-ink); }
.field .req { color: var(--terracotta-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.8rem 0.95rem;
  border: 1.5px solid #cbbcad; border-radius: var(--radius); background: #fffefc;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2340342E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 18px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--taupe); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(185, 111, 80, 0.35); }
.field .hint { font-size: 0.82rem; color: #6b5f56; }
.field .error { display: none; font-size: 0.84rem; font-weight: 600; color: #a2341b; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b13d22; background: #fff8f6; }
.field.has-error .error { display: block; }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9rem; }
.consent input { width: 20px; height: 20px; margin-top: 0.2rem; accent-color: var(--brown); flex: none; }
.consent.has-error { color: #a2341b; }
.consent a { font-weight: 700; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form-status { display: none; margin-top: 1.25rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); font-size: 0.95rem; }
.form-status.is-visible { display: block; }
.form-status--info { background: #f5ece3; border: 1px solid #dcc6b2; color: #3f3129; }
.form-status--error { background: #fbeae5; border: 1px solid #e6b5a6; color: #7a2814; }
.form-status--success { background: #edf1e8; border: 1px solid #c4cfb7; color: #2f3b25; }
.form-status h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.form-status p { margin-bottom: 0.75rem; }
.form-status p:last-child { margin-bottom: 0; }
.form-status .btn { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.88rem; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 0.85rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 1.2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.contact-item__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--sand); color: var(--brown); }
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__label { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--taupe-ink); margin-bottom: 0.15rem; }
.contact-item a, .contact-item address { font-weight: 700; color: var(--brown); text-decoration: none; word-break: break-word; }
.contact-item a:hover { color: var(--terracotta-ink); text-decoration: underline; }
.map-card { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.map-card__placeholder { display: grid; place-items: center; text-align: center; gap: 0.75rem; padding: 2.25rem 1.5rem; min-height: 260px;
  background:
    linear-gradient(rgba(232, 222, 210, 0.9), rgba(232, 222, 210, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(64,52,46,0.12) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(64,52,46,0.12) 39px 40px);
}
.map-card__placeholder svg { width: 40px; height: 40px; color: var(--terracotta-ink); margin-inline: auto; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); margin-top: 2.6rem; }
.prose h3 { margin-top: 1.75rem; }
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--terracotta-ink); font-weight: 600; }
.toc { padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); margin-bottom: 2rem; }
.toc h2 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 0.75rem; color: var(--taupe-ink); }
.toc ol { margin: 0; columns: 1; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 2rem; } }
.toc a { color: var(--brown); text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; }
.mark-confirm { background: rgba(185, 111, 80, 0.14); border-bottom: 1.5px dashed var(--terracotta-ink); padding: 0 0.2em; border-radius: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-deep); color: #d6cabd; padding-top: clamp(3.5rem, 7vw, 5rem); font-size: 0.94rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.5fr 0.9fr 1.2fr 1fr; } }
.site-footer .brand { color: var(--cream); }
.site-footer .brand__sub { color: #bba692; }
.footer-about { margin-top: 1.25rem; max-width: 36ch; color: #c9bcae; }
.footer-title { font-family: var(--font-body); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #bba692; margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: #efe6dc; text-decoration: none; }
.site-footer a:hover { color: #f0bea6; text-decoration: underline; }
.footer-contact { display: grid; gap: 0.85rem; }
.footer-contact div { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 0.25rem; color: #e2a78c; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; padding-block: 1.5rem; border-top: 1px solid rgba(247, 244, 239, 0.12); font-size: 0.84rem; color: #ad9f92; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Decorative quarter-turn tile pattern ---------- */
.qt-pattern { color: var(--taupe); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .lightbox, .cta-band, form { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Monogram dark tiles on the dark footer */
.site-footer .brand__mark rect[fill="#40342E"] { fill: #4d3f37; stroke: #8a7563; stroke-width: 1; }

/* Let grid children shrink below their min-content width (long emails, tables) */
.split > *, .material > *, .grid > *, .hero__grid > *, .page-hero__grid > * { min-width: 0; }
.text-link { overflow-wrap: anywhere; }
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; } .form-actions .btn { width: 100%; } }
