@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap");

/* ═══════════════════════════════════════════════════════════════════════════
   ROYALE SURFACES — design system
   Palette: steel blue accent on near-black charcoal.
   ═══════════════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Surfaces — three distinct steps so cards read as raised, not flat */
  --bg: #0b0b0b;
  --card: #141414;
  --elev: #1b1b1c;
  --border: #262628;
  --border-strong: #34343a;

  /* Bronze/gold accent scale — matches the icon in the uploaded logo */
  --accent: #947733;
  --accent-soft: #b4a070;
  --accent-deep: #7e652b;
  --accent-dim: rgba(148, 119, 51, 0.1);
  --accent-line: rgba(148, 119, 51, 0.28);

  /* Text — muted is genuinely muted so hierarchy is readable */
  --fg: #f2f2f0;
  --muted: #a3a6ab;
  --faint: #6f7379;
  --white: #fff;

  --danger: #e87878;
  --success: #7fd6a4;
  --warn-amber: #e8c07d;   /* low stock */

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --gutter: 48px;
  --section-y: 96px;
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lift: 0 18px 48px -20px rgba(0, 0, 0, 0.9);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Visible keyboard focus everywhere — never remove without replacement */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

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

/* ── CONTAINER ───────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 768px) {
  :root {
    --gutter: 24px;
    --section-y: 64px;
  }
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Hairline that ties labels to the accent without shouting */
.section-label::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent-line);
  vertical-align: middle;
  margin-left: 12px;
}

.muted {
  color: var(--muted);
}

.lead {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--muted);
  line-height: 1.75;
  max-width: 62ch;
}

/* ── NAVBAR ──────────────────────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════════════
   TOP BAR
   Location, hours, phone — the three things a fabricator checks before ever
   reading the menu. Normal document flow (NOT fixed), so it scrolls away with
   the page; .navbar below is what stays pinned. Once it has scrolled past,
   the sticky navbar simply continues from wherever the page has settled.
   ═══════════════════════════════════════════════════════════════════════════ */

.top-bar {
  background: #14161a;
  color: #cbced3;
  font-size: 12.5px;
}

.top-bar-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 38px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s;
}

a.top-bar-item:hover {
  color: #ffffff;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.top-bar-item.is-static {
  color: #9aa0a8;
}

.top-bar-phone {
  margin-left: auto;
  font-weight: 600;
  color: #ffffff;
}

@media (max-width: 900px) {
  /* Same information repeats in the mobile drawer footer, and the strip eats
     space a small screen cannot spare. */
  .top-bar {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR
   Plain white bar, logo flush left, links, account + CTA flush right. Sticky
   under the top bar rather than fixed at the viewport edge — the browser
   handles the hand-off with no scroll listener needed for positioning.
   ═══════════════════════════════════════════════════════════════════════════ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Same near-black as the top bar above it, so the two read as one
     continuous dark strip with the page's own --card tone in the footer. */
  background: #14161a;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  transition: padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.navbar.scrolled {
  padding: 4px 0;
  box-shadow: 0 2px 20px -6px rgba(0, 0, 0, 0.5);
}

.navbar .container.nav-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  margin-right: 8px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  flex-shrink: 0;
}

.navbar .logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
}

/* Scoped away from .btn-nav: this rule is (0,1,1) and the button is (0,1,0),
   so without the :not() it wins on specificity and flattens the button's
   padding to 4px 0 no matter where .btn-nav sits in the file. */
.navbar .nav-links a:not(.btn-nav) {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.2s;
}

/* Underline grows from the left on hover / current page */
.navbar .nav-links a:not(.btn-nav)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.navbar .nav-links a:not(.btn-nav):hover,
.navbar .nav-links a:not(.btn-nav).active {
  color: var(--accent);
}

.navbar .nav-links a:not(.btn-nav):hover::after,
.navbar .nav-links a:not(.btn-nav).active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ── NAV DROPDOWN (mega-menu) ────────────────────────────────────────────── */
.nav-item {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-trigger .chevron {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 120;
  /* Padding bridges the gap under the trigger so the menu doesn't
     close while the cursor travels down to it. */
  padding-top: 22px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    visibility 0.25s;
}

/* :focus-within means keyboard users get the same menu with no JS */
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover .chevron,
.has-dropdown:focus-within .chevron {
  transform: rotate(180deg);
}

.has-dropdown:hover .nav-trigger,
.has-dropdown:focus-within .nav-trigger {
  color: var(--accent);
}

.dropdown-inner {
  width: 520px;
  background: rgba(17, 17, 18, 0.98);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lift);
  padding: 26px 28px 20px;
}

.dropdown-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--faint);
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.dropdown-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  list-style: none;
}

.dropdown-list a {
  display: block;
  padding: 11px 12px;
  border-left: 2px solid transparent;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.dropdown-list a:hover {
  background: var(--accent-dim);
  border-left-color: var(--accent);
}

.dropdown-name {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
  transition: color 0.2s;
}

.dropdown-list a:hover .dropdown-name {
  color: var(--accent);
}

.dropdown-blurb {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--faint);
}

.dropdown-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent) !important;
}

.dropdown-all svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.dropdown-all:hover svg {
  transform: translateX(5px);
}

/* The trigger's own underline shouldn't react to dropdown hover */
.nav-trigger::after {
  display: none;
}

/* Keep the menu on-screen on narrower desktop widths */
@media (max-width: 1080px) {
  .dropdown-inner {
    width: 440px;
  }
  .dropdown {
    left: auto;
    right: 0;
    transform: translateY(8px);
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    transform: translateY(0);
  }
}

/* ── MOBILE SUBMENU ──────────────────────────────────────────────────────── */
/* The border lives on the <summary>, not the <details> — otherwise an open
   submenu draws a second line under its own links. */
.mobile-sub summary {
  cursor: pointer;
  list-style: none;
  color: var(--muted);
}

.mobile-sub summary::-webkit-details-marker {
  display: none;
}

.mobile-sub[open] summary {
  color: var(--accent);
}

.mobile-sub .chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.mobile-sub[open] .chevron {
  transform: rotate(180deg);
}

@media (max-width: 900px) {
  .mobile-sub {
    border-bottom: none;
  }

  /* Two-column tile grid. A flat list of 8 links ate most of the viewport
     and read as filler; tiles keep the whole category set visible at once. */
  .mobile-cats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 0 12px;
  }

  .mobile-cats a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 62px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 2px solid var(--border-strong);
    transition:
      border-left-color 0.2s,
      background 0.2s;
  }

  .mobile-cats a:active,
  .mobile-cats a:focus-visible {
    background: var(--accent-dim);
    border-left-color: var(--accent);
  }

  .mobile-cats span {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--fg);
  }

  .mobile-cats small {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--faint);
  }

  /* Full-width closing row — the "see everything" escape hatch */
  .mobile-sub-all {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--accent-line);
    background: var(--accent-dim);
    color: var(--accent) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.14em !important;
  }

  .mobile-sub-all svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* The global focus ring sits 3px outside its box, which drew a large
     detached rectangle around full-width menu rows. Tuck it inside. */
  .mobile-menu :focus-visible {
    outline-offset: -2px;
  }
}

/* Single column on very narrow phones so labels never truncate */
@media (max-width: 360px) {
  .mobile-cats {
    grid-template-columns: 1fr;
  }
  .mobile-cats a {
    min-height: 0;
  }
}

/* The !important on colour is gone — the sibling rules are scoped with
   :not(.btn-nav) now, so nothing fights this any more. */
.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  padding: 13px 30px;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.2s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn-nav:hover {
  background: var(--accent-soft);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px var(--accent-line);
}

@media (max-width: 1080px) {
  .btn-nav {
    padding: 12px 22px;
    margin-left: 4px;
  }
}

/* ── MOBILE NAV ──────────────────────────────────────────────────────────── */
.mobile-toggle {
  display: none;
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  /* Padding gives a 44px tap target; the negative margin keeps the
     icon optically flush with the container edge. */
  padding: 12px;
  margin-right: -12px;
  line-height: 0;
}

.burger {
  display: block;
  position: relative;
  width: 24px;
  height: 16px;
}

.burger i {
  position: absolute;
  left: 0;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition:
    transform 0.35s var(--ease),
    opacity 0.2s,
    width 0.35s var(--ease);
}

.burger i:nth-child(1) {
  top: 0;
}
.burger i:nth-child(2) {
  top: 7px;
  width: 68%;
}
.burger i:nth-child(3) {
  top: 14px;
}

/* Morph into an X while the panel is open */
.mobile-toggle[aria-expanded="true"] {
  color: var(--accent);
}
.mobile-toggle[aria-expanded="true"] .burger i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] .burger i:nth-child(2) {
  opacity: 0;
  width: 0;
}
.mobile-toggle[aria-expanded="true"] .burger i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.mobile-menu a {
  color: var(--muted);
}

.mobile-menu a.active {
  color: var(--accent);
}

@media (max-width: 900px) {
  :root {
    /* 8px padding top/bottom + the 66px-tall logo image (taller than the
       40px burger tap target — the logo sets the row height on mobile). The
       mobile panel below is anchored to this, so it must track the bar's
       real height. */
    --nav-h: 82px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
    /* With the link/action groups hidden, only the logo and this button are
       left in the flex row — without this they'd sit side by side against
       the logo instead of anchoring to the far edge of the bar. */
    margin-left: auto;
  }

  /* Constant height on mobile — shrinking on scroll would shift the
     open panel, which is anchored to the bar. */
  .navbar,
  .navbar.scrolled {
    padding: 8px 0;
  }

  /* Full-height panel with its own scroll, so a long menu (7 material
     categories expanded) stays reachable on short screens. */
  .mobile-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    /* Just under .navbar (100) so the bar and its close button stay on top */
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 12px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: var(--bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.3s;
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-menu > a,
  .mobile-menu > .mobile-sub > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    padding: 17px 0;
    border-bottom: 1px solid var(--border);
  }

  /* Stagger the items in — reads as intentional, not a flash of content */
  .mobile-menu.open > * {
    animation: navItemIn 0.45s var(--ease) backwards;
  }
  .mobile-menu.open > *:nth-child(1) { animation-delay: 0.04s; }
  .mobile-menu.open > *:nth-child(2) { animation-delay: 0.08s; }
  .mobile-menu.open > *:nth-child(3) { animation-delay: 0.12s; }
  .mobile-menu.open > *:nth-child(4) { animation-delay: 0.16s; }
  .mobile-menu.open > *:nth-child(5) { animation-delay: 0.20s; }
  .mobile-menu.open > *:nth-child(6) { animation-delay: 0.24s; }
  .mobile-menu.open > *:nth-child(7) { animation-delay: 0.28s; }

  @keyframes navItemIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }

  /* Contact + phone pinned to the bottom of the panel */
  .mobile-foot {
    margin-top: auto;
    padding-top: 32px;
  }

  .mobile-menu .btn-nav {
    display: block;
    text-align: center;
    padding: 16px;
    font-size: 13px;
    color: #000 !important;
  }

  .mobile-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--border-strong);
    color: var(--accent) !important;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
  }

  .mobile-call svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-hours {
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
  }
}

/* Tighten the brand lockup so it never wraps on narrow phones */
@media (max-width: 420px) {
  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }
  .logo-text {
    font-size: 15px;
    letter-spacing: 0.05em;
  }
  .mobile-menu > a,
  .mobile-menu > .mobile-sub > summary {
    font-size: 18px;
  }
}

/* Landscape phones: very little vertical room, so trim the rhythm */
@media (max-width: 900px) and (max-height: 500px) {
  .mobile-menu > a,
  .mobile-menu > .mobile-sub > summary {
    font-size: 16px;
    padding: 11px 0;
  }
  .mobile-foot {
    padding-top: 20px;
  }
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn-primary,
.btn-outline,
.btn-dark,
.btn-quote,
.btn-submit {
  font-family: var(--font-body);
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 16px 36px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition:
    background 0.2s,
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px var(--accent-line);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--fg);
  padding: 16px 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-color: rgba(255, 255, 255, 0.28);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.25s var(--ease);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-dark {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 16px 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition:
    background 0.2s,
    transform 0.25s var(--ease);
}

.btn-dark:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}

/* Text link with an arrow that nudges on hover */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.btn-text svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.25s var(--ease);
}

.btn-text:hover svg {
  transform: translateX(5px);
}

/* ── SCROLL REVEAL ───────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  background: #000;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      var(--bg) 0%,
      rgba(11, 11, 11, 0.6) 45%,
      rgba(11, 11, 11, 0.25) 100%
    ),
    linear-gradient(to right, rgba(11, 11, 11, 0.75) 0%, transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 700;
  line-height: 1.04;
  color: #fff;
  margin-bottom: 22px;
}

.hero p {
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
  max-width: 620px;
  margin-bottom: 38px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Eyebrow pill above the headline */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--accent-line);
  background: rgba(11, 11, 11, 0.5);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 26px;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}




@media (max-width: 600px) {
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* ── PAGE HEADER (shared by every interior page) ─────────────────────────── */
.page-header {
  padding: 168px 0 64px;
}

/* Hairline that anchors the header to the content below it */
.page-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.page-header-main {
  max-width: 68ch;
}

.page-header h1 {
  margin-bottom: 0;
}

.page-header p {
  font-size: 18px;
  color: var(--muted);
  max-width: 65ch;
  margin-top: 18px;
  line-height: 1.75;
}

.page-header-aside {
  flex-shrink: 0;
  padding-bottom: 6px;
}

.page-reviewed {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .page-header {
    padding: 124px 0 40px;
  }
  .page-header-row {
    padding-bottom: 28px;
  }
  .page-header p {
    font-size: 16px;
    margin-top: 14px;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border-strong);
}

.page-header.text-center .breadcrumb {
  justify-content: center;
}

/* ── TRUST SIGNALS ───────────────────────────────────────────────────────── */
.trust-section {
  padding: 80px 0;
  background: var(--card);
  border-block: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.trust-item {
  padding: 8px 48px;
  border-right: 1px solid var(--border);
}

.trust-item:first-child {
  padding-left: 0;
}

.trust-item:last-child {
  padding-right: 0;
  border-right: none;
}

.trust-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
  }
  .trust-item:first-child {
    padding-top: 0;
  }
  .trust-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.trust-icon,
.service-icon,
.contact-info-icon {
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trust-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

.trust-icon svg,
.service-icon svg,
.contact-info-icon svg {
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-icon svg {
  width: 24px;
  height: 24px;
}

/* ── CATEGORIES ──────────────────────────────────────────────────────────── */
.categories-section {
  padding: var(--section-y) 0;
  background: var(--bg);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 44px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  transition:
    border-color 0.3s,
    transform 0.4s var(--ease);
}

.category-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.category-card:hover img {
  transform: scale(1.07);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 62%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.category-overlay h3 {
  color: #fff;
  font-size: 23px;
  margin-bottom: 4px;
}

.category-overlay span {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

/* Text-only tile that closes out the category grid */
.category-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  padding: 28px;
  background: var(--card);
  border-color: var(--border-strong);
}

.category-cta h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.category-cta p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.category-cta svg {
  width: 24px;
  height: 24px;
  margin-top: 14px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.category-cta:hover svg {
  transform: translateX(6px);
}

/* Explanatory copy under a grid — carries keywords and an internal link */
.section-note {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 78ch;
}

.section-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── SERVICES PREVIEW (home) ─────────────────────────────────────────────── */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 980px) {
  .mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .mini-grid {
    grid-template-columns: 1fr;
  }
}

.mini-card {
  background: var(--elev);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent-line);
  padding: 30px 26px;
  transition:
    border-top-color 0.3s,
    transform 0.35s var(--ease);
}

.mini-card:hover {
  border-top-color: var(--accent);
  transform: translateY(-3px);
}

.mini-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.mini-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ── RECENT WORK (home) ──────────────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition:
    border-color 0.3s,
    transform 0.35s var(--ease);
}

.work-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.work-card:hover img {
  transform: scale(1.06);
}

.work-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 10%, transparent 100%);
}

.work-info h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 4px;
}

.work-info span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* ── SERVICE AREAS ───────────────────────────────────────────────────────── */
.areas-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .areas-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.area-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  list-style: none;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (max-width: 480px) {
  .area-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.area-list li {
  background: var(--bg);
  padding: 18px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition:
    background 0.25s,
    color 0.25s;
}

.area-list li:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover,
.faq-item[open] summary {
  color: var(--accent);
}

/* Plus sign that rotates into a minus when the item opens */
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  background:
    linear-gradient(currentColor, currentColor) center/100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center/1px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(90deg);
  background:
    linear-gradient(currentColor, currentColor) center/100% 1px no-repeat;
}

.faq-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  padding-bottom: 24px;
  max-width: 70ch;
}

/* ── TESTIMONIALS ────────────────────────────────────────────────────────── */
.testimonials-section {
  padding: var(--section-y) 0;
  background: var(--card);
  border-block: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial {
  background: var(--elev);
  border: 1px solid var(--border);
  padding: 40px 36px;
  text-align: left;
  transition: border-color 0.3s;
}

.testimonial:hover {
  border-color: var(--accent-line);
}

.quote-icon {
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 20px;
  line-height: 0;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  color: var(--fg);
  line-height: 1.7;
  margin-bottom: 22px;
}

.testimonial cite {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-style: normal;
  color: var(--muted);
}

/* ── CTA BANNER ──────────────────────────────────────────────────────────── */
.cta-banner {
  padding: var(--section-y) 0;
  background: var(--accent);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  margin: 0 auto 38px;
  max-width: 560px;
  line-height: 1.65;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

footer h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 11px;
}

footer ul li a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s;
}

footer ul li a:hover {
  color: var(--accent);
}

.footer-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  max-width: 300px;
  margin-top: 18px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-social {
  display: flex;
  gap: 10px;
  list-style: none;
  margin-top: 24px;
}

.footer-social li {
  margin: 0;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s var(--ease);
}

.footer-social a:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 17px;
  height: 17px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.footer-social a:hover svg {
  stroke: var(--accent);
}

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom p,
.footer-bottom-links a {
  color: var(--faint);
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-bottom-links a {
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ── ABOUT PAGE ──────────────────────────────────────────────────────────── */
.about-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

@media (max-width: 900px) {
  .about-2col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-2col img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid var(--border);
}

.about-body h2 {
  color: var(--accent);
  margin-bottom: 24px;
}

.about-body p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.stats-box {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 64px;
  margin-bottom: 80px;
}

@media (max-width: 600px) {
  .stats-box {
    padding: 40px 28px;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* Reusable 3-up feature grid (about page pillars, blog, etc.) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: var(--section-y);
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 36px;
  transition:
    border-color 0.3s,
    transform 0.35s var(--ease);
}

.feature-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

.feature-card h3 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 21px;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* ── SLAB INVENTORY ──────────────────────────────────────────────────────── */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* On phones 8 filters wrapped into four ragged rows. Turn them into a single
   swipeable rail that bleeds to the screen edges, with the fade on each side
   driven by JS so it only appears when there is actually more to scroll. */
@media (max-width: 768px) {
  /* Block layout so the rail is a full-width block child — that lets the
     negative margins reach the screen edge without resorting to 100vw,
     which would overflow by the scrollbar width. */
  .products-header {
    display: block;
    margin-bottom: 32px;
  }

  .products-header > div:first-child {
    margin-bottom: 22px;
  }

  .filter-bar {
    --fade-l: 0px;
    --fade-r: 0px;

    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-left: var(--gutter);

    /* Escape the container padding so the rail runs edge to edge */
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter);

    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 var(--fade-l),
      #000 calc(100% - var(--fade-r)),
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 var(--fade-l),
      #000 calc(100% - var(--fade-r)),
      transparent 100%
    );
  }

  /* Hide the scrollbar — the fade already signals overflow */
  .filter-bar {
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 12px 20px;
    font-size: 11.5px;
  }

  .filter-count {
    margin-bottom: 20px;
  }
}

.filter-count {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 24px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.product-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.product-card[hidden] {
  display: none;
}

.product-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--elev);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.product-card:hover .product-card-img img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 12px;
}

.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  font-size: 23px;
  margin-bottom: 16px;
}

.product-specs {
  border-top: 1px solid var(--border);
  margin-bottom: 22px;
  flex: 1;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.spec-row .spec-key {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.spec-row .spec-val {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.btn-quote {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 13px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-quote:hover {
  background: var(--accent);
  color: #fff;
}

.filter-empty {
  text-align: center;
  padding: 72px 24px;
  border: 1px dashed var(--border-strong);
  color: var(--muted);
}

/* Callout panel used at the bottom of listing pages */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 56px 48px;
  text-align: center;
  margin-top: 64px;
}

@media (max-width: 600px) {
  .panel {
    padding: 40px 24px;
  }
}

.panel h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 12px;
}

.panel p {
  color: var(--muted);
  font-size: 16px;
  max-width: 56ch;
  margin: 0 auto 28px;
  line-height: 1.75;
}

/* ── SERVICES PAGE ───────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
}

.service-icon svg {
  width: 27px;
  height: 27px;
}

.service-item p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

/* Bulleted spec list — the accent tick keeps it from reading as body copy */
.check-list {
  list-style: none;
  margin: 22px 0;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ── SOURCING ORIGINS ────────────────────────────────────────────────────── */
.origin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (max-width: 860px) {
  .origin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .origin-grid {
    grid-template-columns: 1fr;
  }
}

.origin-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.3s;
}

.origin-card:hover {
  background: var(--card);
}

.origin-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.origin-materials {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}

.origin-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.process-box {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 64px;
  margin-bottom: 64px;
}

/* Five-step variant — the connector rule below targets the 4-up default */
.process-steps-5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1000px) {
  .process-steps-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 32px;
  }
}

@media (max-width: 700px) {
  .process-steps-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 460px) {
  .process-steps-5 {
    grid-template-columns: 1fr;
  }
}

.process-steps-5 .process-step:not(:last-child)::after {
  display: none;
}

@media (max-width: 600px) {
  .process-box {
    padding: 40px 24px;
  }
}

.process-box h2 {
  text-align: center;
  margin-bottom: 48px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 860px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.process-step {
  position: relative;
  padding-top: 8px;
}

/* Connector line between steps on wide screens */
@media (min-width: 861px) {
  .process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 34px;
    right: -32px;
    width: 32px;
    height: 1px;
    background: var(--border-strong);
  }
}

.step-num {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.22;
  line-height: 1;
  margin-bottom: -4px;
}

.step-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.services-cta {
  text-align: center;
}

/* ── GALLERY GRID ────────────────────────────────────────────────────────── */
.gallery-filters {
  justify-content: flex-start;
  margin-bottom: 28px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Occasional wide tile breaks the grid's rhythm so a long page of thumbnails
   doesn't read as a contact sheet. */
.gallery-tile.is-feature {
  grid-column: span 2;
}

@media (max-width: 560px) {
  .gallery-tile.is-feature {
    grid-column: span 1;
  }
}

.gallery-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: zoom-in;
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.35s var(--ease);
}

.gallery-open:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

.gallery-open img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-tile.is-feature .gallery-open img {
  aspect-ratio: 8/3;
}

@media (max-width: 560px) {
  .gallery-tile.is-feature .gallery-open img {
    aspect-ratio: 4/3;
  }
}

.gallery-open:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 22px 20px 18px;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 15%, transparent 100%);
}

.gallery-space {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.gallery-material {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

.gallery-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(11, 11, 11, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.25s,
    transform 0.25s var(--ease);
}

.gallery-open:hover .gallery-zoom,
.gallery-open:focus-visible .gallery-zoom {
  opacity: 1;
  transform: scale(1);
}

.gallery-zoom svg {
  width: 17px;
  height: 17px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ── LIGHTBOX ────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.94);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.lightbox-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  max-width: 1180px;
  max-height: calc(100vh - 48px);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  animation: lbIn 0.3s var(--ease);
}

@keyframes lbIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

.lightbox-inner img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 48px);
  object-fit: cover;
  background: #000;
}

.lightbox-caption {
  padding: 40px 36px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lightbox-caption h2 {
  font-size: 27px;
  margin-bottom: 14px;
}

.lightbox-caption > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 26px;
}

.lightbox-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.lightbox-meta strong {
  color: var(--accent);
  font-weight: 600;
}

.lightbox-meta .btn-text {
  margin-top: 10px;
}

.lightbox-count {
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.lightbox-close,
.lightbox-nav {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 20px;
  height: 20px;
  stroke: var(--fg);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 940px) {
  .lightbox {
    padding: 12px;
    grid-template-columns: 1fr;
    align-content: center;
  }

  .lightbox-inner {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .lightbox-inner img {
    max-height: 45vh;
  }

  .lightbox-caption {
    padding: 26px 22px 30px;
  }

  .lightbox-caption h2 {
    font-size: 22px;
  }

  /* Float the arrows over the bottom of the sheet instead of beside it */
  .lightbox-nav {
    position: absolute;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }
  .lightbox-nav.is-prev {
    left: 20px;
  }
  .lightbox-nav.is-next {
    right: 20px;
  }
}

/* ── GALLERY PAGE (legacy stacked layout) ───────────────────────────────── */
.gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.gallery-item {
  display: flex;
  align-items: center;
  gap: 64px;
}

.gallery-item:nth-child(even) {
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  .gallery-stack {
    gap: 64px;
  }
  .gallery-item,
  .gallery-item:nth-child(even) {
    flex-direction: column;
    gap: 28px;
  }
}

.gallery-img {
  flex: 0 0 64%;
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}

.gallery-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-item:hover .gallery-img img {
  transform: scale(1.05);
}

.gallery-info {
  flex: 1;
}

.gallery-info h2 {
  font-size: clamp(26px, 3vw, 32px);
  margin-bottom: 16px;
}

.gallery-info p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.material-box {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 20px 24px;
  position: relative;
  margin-top: 24px;
}

.material-box span {
  position: absolute;
  top: -9px;
  left: 16px;
  background: var(--bg);
  padding: 0 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.material-box p {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
}

/* ── BLOG ARCHIVE ────────────────────────────────────────────────────────── */
/* Blog and gallery filters are the same rail as the slab filters — they only
   differ in spacing, so they inherit .filter-bar rather than redefining it. */
.blog-filters {
  margin-bottom: 28px;
}

.blog-filters .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-n {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  letter-spacing: 0.06em;
}

.filter-btn.active .filter-n {
  background: rgba(0, 0, 0, 0.18);
}

/* Featured post — the newest article gets the full width */
.post-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.35s var(--ease);
}

.post-feature:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

@media (max-width: 860px) {
  .post-feature {
    grid-template-columns: 1fr;
  }
}

.post-feature-img {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.post-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.post-feature:hover .post-feature-img img {
  transform: scale(1.05);
}

.post-feature-body {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 600px) {
  .post-feature-body {
    padding: 32px 24px;
  }
  .post-feature-img {
    min-height: 220px;
  }
}

.post-feature-body h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
}

.post-feature-body p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
}

/* ── PAGINATION ──────────────────────────────────────────────────────────── */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.pager-nums {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.pager-num,
.pager-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.pager-num:hover,
.pager-arrow:not(.is-disabled):hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pager-num.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pager-arrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
}

.pager-arrow svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pager-arrow.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pager-gap {
  padding: 0 4px;
  color: var(--faint);
}

@media (max-width: 720px) {
  .pager {
    gap: 12px;
    flex-wrap: wrap;
  }
  /* Arrows keep their icon; the word would push the row to two lines */
  .pager-arrow span {
    display: none;
  }
  .pager-arrow {
    min-width: 42px;
    padding: 0;
  }
}

/* ── SINGLE POST ─────────────────────────────────────────────────────────── */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 110;
  background: transparent;
  pointer-events: none;
}

.read-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.1s linear;
}

.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.post-byline-cat {
  padding: 5px 12px;
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
}

/* Secondary to the publish date — only appears when a post has actually been
   revised, so it should read as a footnote, not compete with it. */
.post-byline-updated {
  color: var(--faint);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.post-hero {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 56px;
}

.post-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.post-aside {
  position: sticky;
  top: 110px;
}

@media (max-width: 900px) {
  .post-aside {
    position: static;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
}

.post-toc-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--faint);
  margin-bottom: 14px;
}

.post-toc {
  margin-bottom: 36px;
}

.post-toc ol {
  list-style: none;
  counter-reset: toc;
}

.post-toc li {
  counter-increment: toc;
  margin-bottom: 2px;
}

.post-toc a {
  display: block;
  padding: 8px 0 8px 14px;
  border-left: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  transition:
    color 0.2s,
    border-color 0.2s;
}

.post-toc a:hover,
.post-toc a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.post-share-links {
  display: flex;
  gap: 8px;
}

.post-share-links a,
.copy-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: none;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.post-share-links a:hover,
.copy-link:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.post-share-links svg,
.copy-link svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.post-share-links a:hover svg,
.copy-link:hover svg {
  stroke: var(--accent);
}

.copy-link.is-copied {
  border-color: var(--success);
}

.copy-link.is-copied svg {
  stroke: var(--success);
}

.post-body {
  max-width: 68ch;
}

/* Offset anchor targets so a jumped-to heading isn't hidden by the navbar */
.post-body h2 {
  scroll-margin-top: 110px;
}

.post-cta {
  margin-top: 56px;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
}

@media (max-width: 600px) {
  .post-cta {
    padding: 28px 22px;
  }
}

.post-cta h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.post-cta p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.post-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.post-cta-actions .btn-primary,
.post-cta-actions .btn-outline {
  padding: 13px 28px;
  font-size: 12px;
}

/* Prev / next article */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 72px 0 96px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

@media (max-width: 700px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  transition:
    border-color 0.3s,
    transform 0.3s var(--ease);
}

.post-nav-link:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

.post-nav-link.is-next {
  text-align: right;
  align-items: flex-end;
}

.post-nav-dir {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.post-nav-dir svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-nav-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

/* ── BLOG CARDS ──────────────────────────────────────────────────────────── */
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.post-date {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.post-excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 18px;
}

/* ── CONTACT PAGE ────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

.contact-info-list {
  margin-bottom: 44px;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
}

.contact-info-icon {
  width: 46px;
  height: 46px;
}

.contact-info-icon svg {
  width: 21px;
  height: 21px;
}

.contact-info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 5px;
}

.contact-info-value {
  font-size: 16px;
  line-height: 1.6;
}

.contact-info-value a {
  transition: color 0.2s;
}

.contact-info-value a:hover {
  color: var(--accent);
}

.map-embed {
  width: 100%;
  height: 300px;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(70%) invert(92%) contrast(85%);
}

/* ── FORM ────────────────────────────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 44px 40px;
}

@media (max-width: 600px) {
  .contact-form-wrap {
    padding: 32px 24px;
  }
}

.contact-form-title {
  font-size: 26px;
  margin-bottom: 8px;
}

.contact-form-note {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--faint);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-forgot {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--faint);
  transition: color 0.2s;
}

.form-forgot:hover {
  color: var(--accent);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.form-group textarea {
  min-height: 148px;
  resize: vertical;
}

.form-error {
  display: block;
  color: var(--danger);
  font-size: 12px;
  margin-top: 6px;
}

/* Honeypot — hidden from humans, visible to naive bots */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit {
  width: 100%;
  padding: 17px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition:
    background 0.2s,
    opacity 0.2s;
}

.btn-submit:hover:not(:disabled) {
  background: var(--accent-soft);
}

.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-status {
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
}

.form-status.is-error {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(232, 120, 120, 0.08);
}

.form-success {
  text-align: center;
  padding: 56px 28px;
  background: var(--elev);
  border: 1px solid var(--accent-line);
}

.form-success h3 {
  color: var(--accent);
  margin-bottom: 12px;
}

.form-success p {
  color: var(--muted);
}

.form-privacy {
  font-size: 12px;
  color: var(--faint);
  margin-top: 16px;
  line-height: 1.6;
  text-align: center;
}

.form-privacy a {
  color: var(--muted);
  text-decoration: underline;
}

/* ── LEGAL / PROSE PAGES ─────────────────────────────────────────────────── */
.prose {
  max-width: 72ch;
  padding-bottom: var(--section-y);
}

.prose h2 {
  font-size: 26px;
  margin-top: 48px;
  margin-bottom: 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 22px;
  margin-bottom: 20px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: 200px 0 var(--section-y);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(88px, 16vw, 170px);
  font-weight: 700;
  line-height: 0.9;
  color: var(--accent);
  opacity: 0.2;
  margin-bottom: 8px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.error-links a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.2s;
}

.error-links a:hover {
  color: var(--accent);
}

/* ── UTILITIES ───────────────────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.section-pad {
  padding: var(--section-y) 0;
}

.pt-nav {
  padding-top: 168px;
}

.pb-section {
  padding-bottom: var(--section-y);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 64px 0;
  border: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Uploaded logo replaces the letter mark + wordmark in the header and footer.
   Height leads, width follows — the max-width only exists to stop a very wide
   banner crowding the nav links next to it. */
/* This particular mark is a stacked lockup — mountain glyph over a wordmark
   over a fine-print tagline, all baked into one image — not a wide horizontal
   banner. That composition needs real height before the wordmark reads as
   text rather than a grey smear, which is why this sits taller than a typical
   header logo and the navbar padding below is trimmed to compensate. */
.logo-img {
  height: 68px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

/* The footer panel is taller and has no nav links competing for space. */
footer .logo-img {
  height: 78px;
  max-width: 280px;
}

@media (max-width: 900px) {
  .logo-img {
    height: 50px;
    max-width: 190px;
  }
}

@media (max-width: 420px) {
  .logo-img {
    height: 42px;
    max-width: 150px;
  }
}

/* ═══ SLAB DETAIL ═════════════════════════════════════════════════════════ */
.slab-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .slab-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.slab-photo {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}

.slab-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.slab-info {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 32px 30px;
}

.slab-info h2 {
  font-size: 20px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.slab-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.slab-specs dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.slab-specs dd {
  font-size: 14.5px;
  font-weight: 600;
  text-align: right;
}

.slab-actions {
  display: grid;
  gap: 10px;
  margin: 26px 0 22px;
}

.slab-actions .btn-primary,
.slab-actions .btn-outline {
  text-align: center;
  padding: 15px 24px;
}

.slab-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.slab-note + .slab-note {
  margin-top: 12px;
}

.slab-note a {
  color: var(--accent);
}

/* ═══ GLOSSARY ════════════════════════════════════════════════════════════ */
.glossary-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 16px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.glossary-jump a,
.glossary-jump span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--border);
}

.glossary-jump a {
  color: var(--accent);
  border-color: var(--accent-line);
  transition: background 0.2s;
}

.glossary-jump a:hover {
  background: var(--accent-dim);
}

.glossary-jump span {
  color: var(--faint);
  opacity: 0.35;
}

.glossary-group {
  margin-bottom: 44px;
  scroll-margin-top: 110px;
}

.glossary-letter {
  font-size: 44px;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 18px;
}

.glossary-list > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 110px;
}

.glossary-list dt {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
}

.glossary-list dd {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 80ch;
}

/* ═══ CARE ════════════════════════════════════════════════════════════════ */
.care-block {
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

.care-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.care-head h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.care-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 26px;
}

.care-specs > div {
  background: var(--card);
  padding: 16px 18px;
}

.care-specs dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 5px;
}

.care-specs dd {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.care-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 700px) {
  .care-cols,
  .care-specs {
    grid-template-columns: 1fr;
  }
}

.care-cols h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.cross-list {
  list-style: none;
}

.cross-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.cross-list li::before,
.cross-list li::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 12px;
  width: 11px;
  height: 1.5px;
  background: var(--danger);
}

.cross-list li::before {
  transform: rotate(45deg);
}
.cross-list li::after {
  transform: rotate(-45deg);
}

/* ═══ COMPARE TABLE ═══════════════════════════════════════════════════════ */
.table-scroll {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  border: 1px solid var(--border);
}

.compare-table th {
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.compare-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: var(--card);
}

.compare-table .row-link {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}

.compare-table .row-link:hover {
  color: var(--accent);
}

.compare-table .is-good {
  color: var(--success);
  font-weight: 600;
}

.compare-table .is-bad {
  color: var(--danger);
  font-weight: 600;
}

/* ═══ FINISHES ════════════════════════════════════════════════════════════ */
.finish-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .finish-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.finish-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
}

.finish-body h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.finish-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 74ch;
  margin-bottom: 20px;
}

.finish-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 700px) {
  .finish-meta {
    grid-template-columns: 1fr;
  }
}

.finish-meta dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.finish-meta dd {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ═══ THICKNESS ═══════════════════════════════════════════════════════════ */
.thickness-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .thickness-grid {
    grid-template-columns: 1fr;
  }
}

.thickness-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--border-strong);
  padding: 32px 28px;
}

.thickness-card.is-primary {
  border-top-color: var(--accent);
}

.thickness-size {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.thickness-card h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.thickness-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

/* ═══ BUYING GUIDE ════════════════════════════════════════════════════════ */
.guide-steps {
  display: grid;
  gap: 4px;
}

.guide-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.guide-step:last-child {
  border-bottom: none;
}

@media (max-width: 600px) {
  .guide-step {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.guide-step h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

/* ═══ FAQ GROUPS ══════════════════════════════════════════════════════════ */
.faq-group {
  margin-bottom: 44px;
}

.faq-group-title {
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Dropdown menus now hold up to 7 items — give them room */
@media (min-width: 1081px) {
  .dropdown-inner {
    width: 560px;
  }
}

/* ═══ TRADE ACCOUNT AREA ══════════════════════════════════════════════════ */
.trade-form-wrap {
  max-width: 720px;
  /* The wrapper only constrains width — without this it sits flush against
     the left edge of .container instead of centred on the page. */
  margin-inline: auto;
}

.trade-form-narrow {
  max-width: 440px;
}

.trade-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
}

.trade-who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trade-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.trade-who strong {
  display: block;
  font-size: 14.5px;
}

.trade-who small {
  display: block;
  font-size: 12px;
  color: var(--faint);
  margin-top: 1px;
}

.trade-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.trade-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.trade-links a:hover {
  color: var(--fg);
  border-color: var(--border-strong);
}

.trade-links a.active {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}

.trade-links .trade-out {
  color: var(--faint);
}

.trade-links .trade-out:hover {
  color: var(--danger);
  border-color: rgba(232, 120, 120, 0.4);
}

.trade-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  border-radius: 9px;
}

/* ── Request list ────────────────────────────────────────────────────────── */
.req-lines {
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 24px;
}

.req-line {
  display: grid;
  grid-template-columns: 120px 200px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.req-line:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .req-line {
    grid-template-columns: 90px 1fr auto;
    gap: 14px;
  }
  .req-form {
    grid-column: 1 / -1;
  }
}

.req-line img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}

.req-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.req-info h3 {
  font-size: 19px;
  margin: 4px 0 2px;
}

.req-info h3 a:hover {
  color: var(--accent);
}

.req-sub {
  font-size: 12.5px;
  color: var(--faint);
}

.req-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.req-form label {
  display: block;
}

.req-form label span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 5px;
}

.req-form input[type="number"] {
  width: 76px;
}

.req-form input[type="text"] {
  width: 150px;
}

.req-form .req-notes {
  flex: 1 1 200px;
}

.req-form .req-notes input {
  width: 100%;
}

.req-form input {
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
}

.req-form input:focus {
  border-color: var(--accent);
}

.req-form .btn-quote {
  width: auto;
  padding: 11px 18px;
}

.req-remove button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: border-color 0.2s;
}

.req-remove button:hover {
  border-color: var(--danger);
}

.req-remove svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.req-remove button:hover svg {
  stroke: var(--danger);
}

.req-submit {
  padding: 32px 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
}

.req-submit h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.req-total {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.req-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--faint);
  max-width: 62ch;
}

/* ── Add-to-request on the slab page ─────────────────────────────────────── */
.slab-request {
  padding: 20px;
  margin: 24px 0 16px;
  background: var(--bg);
  border: 1px solid var(--accent-line);
}

.slab-request label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.slab-request-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.slab-request-row input {
  width: 84px;
  flex-shrink: 0;
}

.slab-request-row .btn-primary {
  flex: 1;
  padding: 13px 20px;
  text-align: center;
}

.slab-request input {
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}

.slab-request input[name="notes"] {
  width: 100%;
}

.slab-request input:focus {
  border-color: var(--accent);
}

/* Account link sits between the nav and the Contact button — quieter than a
   button, but present on every page so a trader can actually find it. */
.nav-account {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 9px 14px !important;
  margin-left: 6px;
  border: 1px solid var(--border-strong);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.nav-account svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-account:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-account.is-in {
  border-color: var(--accent-line);
  background: var(--accent-dim);
  color: var(--accent);
}

/* The nav gets crowded before the mobile breakpoint — drop the label first */
@media (max-width: 1180px) {
  .nav-account {
    padding: 9px 11px !important;
    font-size: 0;
    gap: 0;
  }
  .nav-account svg {
    width: 16px;
    height: 16px;
  }
}

/* Add-to-request straight from an inventory card — a signed-in trader should
   never have to open each slab page just to say "four of these". */
.card-request {
  display: flex;
  gap: 8px;
}

.card-request input[type="number"] {
  width: 68px;
  flex-shrink: 0;
  padding: 12px 10px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  text-align: center;
  outline: none;
}

.card-request input[type="number"]:focus {
  border-color: var(--accent);
}

.card-request .btn-quote {
  flex: 1;
  width: auto;
}

.card-inlist {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
}

/* ═══ TRADE ORDERS ════════════════════════════════════════════════════════
   Public-side components. The portal's .msg / .btn-admin classes live in
   admin.css, which this page never loads — reusing them left it unstyled. */
.order-list {
  border: 1px solid var(--border);
  background: var(--card);
}

.order {
  border-bottom: 1px solid var(--border);
}

.order:last-child {
  border-bottom: none;
}

.order > summary {
  display: grid;
  grid-template-columns: 1fr auto auto 20px;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
}

.order > summary::-webkit-details-marker {
  display: none;
}

.order > summary:hover {
  background: var(--elev);
}

.order[open] > summary {
  background: var(--elev);
  border-bottom: 1px solid var(--border);
}

.order-ref strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.order-ref span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}

.order-when {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}

.order-when span {
  color: var(--accent);
  font-weight: 600;
}

/* Status chip — colour carries the meaning at a glance */
.order-state {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid var(--border-strong);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}

.order-state.is-new {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}

.order-state.is-quoted,
.order-state.is-ready {
  color: #e8c07d;
  border-color: rgba(232, 192, 125, 0.4);
  background: rgba(232, 192, 125, 0.08);
}

.order-state.is-confirmed,
.order-state.is-completed {
  color: var(--success);
  border-color: rgba(127, 214, 164, 0.4);
  background: rgba(127, 214, 164, 0.08);
}

.order-state.is-cancelled {
  color: var(--danger);
  border-color: rgba(232, 120, 120, 0.35);
}

.order-chev {
  width: 18px;
  height: 18px;
  stroke: var(--faint);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.order[open] .order-chev {
  transform: rotate(180deg);
}

@media (max-width: 760px) {
  .order > summary {
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
    padding: 18px;
  }
  .order-when {
    grid-column: 1;
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
  }
  .order-state {
    grid-column: 2;
    grid-row: 1;
  }
  .order-chev {
    display: none;
  }
}

.order-body {
  padding: 24px;
  background: var(--bg);
}

@media (max-width: 760px) {
  .order-body {
    padding: 18px;
  }
}

.order-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  border: 1px solid var(--border);
}

.order-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.order-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  vertical-align: middle;
}

.order-table tr:last-child td {
  border-bottom: none;
}

.order-table td:first-child {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}

.order-table td:first-child a:hover {
  color: var(--accent);
}

.order-mat {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}

.order-qty {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent) !important;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.order-meta dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}

.order-meta dd {
  font-size: 14.5px;
  color: var(--fg);
}

.order-note {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-line);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  white-space: pre-wrap;
}

.order-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.order-actions .btn-outline {
  padding: 12px 24px;
  font-size: 11.5px;
}

.order-hint {
  flex: 1 1 260px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--faint);
}

.nowrap {
  white-space: nowrap;
}

/* Wrappers for the accordion and share block. The children were styled but
   these containers never were, so the top border and spacing were missing. */
.faq-list {
  border-top: 1px solid var(--border);
}

.post-share {
  margin-top: 4px;
}

/* ═══ TRADE AREA — SMALL SCREENS ══════════════════════════════════════════ */
@media (max-width: 720px) {
  .trade-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }

  /* Four links wrapped into two ragged rows. A 2×2 grid of equal cells
     reads as deliberate and keeps every option visible without scrolling. */
  .trade-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .trade-links a {
    justify-content: center;
    padding: 13px 10px;
    border-color: var(--border-strong);
    font-size: 11px;
  }

  .trade-links a.active {
    border-color: var(--accent);
  }
}

@media (max-width: 560px) {
  /* A four-column table on a phone is a horizontal-scroll trap. Restack each
     row as a labelled block instead — nothing is hidden off-screen. */
  .order-scroll,
  .order-body .table-scroll {
    overflow: visible;
  }

  .order-table {
    min-width: 0;
    border: none;
  }

  .order-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .order-table tr {
    display: block;
    padding: 16px;
    margin-bottom: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent-line);
  }

  .order-table tr:last-child {
    margin-bottom: 0;
  }

  .order-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
  }

  .order-table td:first-child {
    display: block;
    padding-top: 0;
    font-size: 18px;
  }

  .order-table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* The header row is hidden, so each cell carries its own label */
  .order-table td[data-label]::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
  }

  .order-qty {
    text-align: left !important;
  }

  .order-actions .btn-outline {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 620px) {
  /* Request list: stack the row instead of squeezing image + fields side by side */
  .req-line {
    grid-template-columns: 72px 1fr;
    gap: 12px 14px;
    padding: 16px;
  }

  .req-form {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 10px;
    align-items: end;
  }

  .req-form .req-notes,
  .req-form .btn-quote {
    grid-column: 1 / -1;
  }

  .req-form input[type="text"],
  .req-form input[type="number"] {
    width: 100%;
  }

  .req-form .btn-quote {
    width: 100%;
    padding: 13px;
  }

  .req-remove {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .req-submit {
    padding: 24px 18px;
  }

  .req-submit .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* One per row below this — two 44px targets plus a label do not fit */
  .trade-links {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STOCK & AVAILABILITY
   The count is the one number a trader checks before anything else, so it is
   readable at a glance rather than buried in the spec list.
   ═══════════════════════════════════════════════════════════════════════════ */

.stock-note {
  font-size: 12px;
  letter-spacing: .04em;
  font-weight: 600;
}

.stock-note.is-in  { color: var(--success); }
.stock-note.is-low { color: var(--warn-amber); }
.stock-note.is-out { color: var(--faint); }

.req-info .stock-note {
  display: block;
  margin-top: 6px;
}

/* Detail page — a status line above the spec table */
.stock-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 13px 16px;
  background: var(--elev);
  border: 1px solid var(--border);
  border-left: 2px solid var(--success);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--fg);
}

.stock-line small {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .02em;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}

.stock-line.is-low { border-left-color: var(--warn-amber); }
.stock-line.is-low .stock-dot { background: var(--warn-amber); }

.stock-line.is-out {
  border-left-color: var(--border-strong);
  color: var(--faint);
  background: transparent;
}

.stock-line.is-out .stock-dot { background: var(--faint); }

.stock-hint {
  float: right;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}

.req-form label small {
  text-transform: none;
  letter-spacing: 0;
  color: var(--faint);
  font-weight: 400;
}

/* Sold out — dimmed but still browsable, because a trader may want the same
   material in a different lot. */
.sold-out-flag {
  position: absolute;
  inset: auto 0 0 0;
  padding: 9px 14px;
  background: rgba(11, 11, 11, .86);
  color: var(--fg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  border-top: 1px solid var(--border-strong);
}

.product-card.is-soldout .product-card-img img,
.slab-photo.is-soldout img {
  filter: grayscale(.6);
  opacity: .55;
}

.btn-quote.is-disabled {
  display: block;
  text-align: center;
  cursor: not-allowed;
  opacity: .45;
  border-color: var(--border);
  color: var(--faint);
}

.btn-quote.is-disabled:hover {
  background: transparent;
  color: var(--faint);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT RAIL
   Directions, phone and email pinned to the edge of every page. Collapsed to
   icons so it never competes with the content; the label slides out on hover.
   Sits under the navbar and mobile panel in the stack (z 95) so it can never
   cover navigation.
   ═══════════════════════════════════════════════════════════════════════════ */

.contact-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rail-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: 52px;
  height: 52px;
  padding: 0;
  background: var(--elev);
  border: 1px solid var(--border);
  border-right: 0;
  color: var(--muted);
  overflow: hidden;
  transition:
    width 0.4s var(--ease),
    gap 0.4s var(--ease),
    padding 0.4s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease);
}

.rail-btn svg {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-label {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.4s var(--ease);
}

.rail-btn:hover,
.rail-btn:focus-visible {
  width: auto;
  padding-right: 20px;
  background: var(--accent);
  color: #fff;
  outline: none;
}

.rail-btn:hover .rail-label,
.rail-btn:focus-visible .rail-label {
  opacity: 1;
  transform: none;
}

/* Keyboard users get the same reveal, plus a visible ring. */
.rail-btn:focus-visible {
  box-shadow: -2px 0 0 var(--accent-deep);
}

/* Below the tablet break the rail becomes a bar across the bottom — a vertical
   strip on a phone either covers content or sits under the thumb. */
@media (max-width: 900px) {
  .contact-rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    background: var(--card);
    border-top: 1px solid var(--border);
    /* Clear of the iOS home indicator. */
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .rail-btn {
    flex: 1;
    width: auto;
    height: 56px;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-left: 1px solid var(--border);
    background: transparent;
  }

  .rail-btn:first-child { border-left: 0; }

  .rail-btn svg { margin: 0; }

  /* Labels are always visible here — there is no hover to reveal them. */
  .rail-label {
    opacity: 1;
    transform: none;
    font-size: 12px;
  }

  /* The phone number is too long for a third of a small screen; the short
     word from data-rail takes its place. */
  /* Full labels do not fit in a third of a phone screen, so each falls back
     to its short form. */
  .rail-label[data-short] {
    font-size: 0;
  }

  .rail-label[data-short]::after {
    content: attr(data-short);
    font-size: 12px;
    letter-spacing: .02em;
  }

  .rail-btn:hover,
  .rail-btn:focus-visible {
    width: auto;
    padding-right: 0;
  }

  /* The bar covers the last strip of every page, so give the footer room. */
  footer { padding-bottom: 76px; }
}

@media (max-width: 420px) {
  .rail-btn { gap: 7px; }
  .rail-label { font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT VIDEO
   Silent, looping, decorative. It sits exactly where the photo used to, so the
   two-column layout is untouched.
   ═══════════════════════════════════════════════════════════════════════════ */

.about-2col .about-video {
  display: block;
  /* Portrait, like the photo it replaces — but driven by a fixed height rather
     than the column width. Filling the column would make it ~700px tall and
     dwarf the text beside it; this keeps the shape and loses the excess. */
  aspect-ratio: 4 / 5;
  height: 580px;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: cover;
  background: var(--elev);
  border: 1px solid var(--border);
  /* No controls are rendered, and this stops a click, right-click or long-press
     from reaching the element at all — nothing to pause, mute or download. */
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

@media (max-width: 900px) {
  .about-2col .about-video {
    width: 100%;
    height: auto;
    max-height: 70vh;
  }
}

/* Safari still paints a play overlay on some builds unless it is suppressed. */
.about-video::-webkit-media-controls,
.about-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE HEADER — SPLIT VARIANT
   With $hero['media'] the header becomes two columns: picture on one side,
   title and intro on the other. Nothing is cropped, so square, landscape and
   portrait photos all sit correctly, and the page starts shorter than a
   full-width banner would make it.
   ═══════════════════════════════════════════════════════════════════════════ */

.page-header-row.has-media {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.page-header-media img {
  display: block;
  width: 100%;
  height: auto;
  /* No aspect-ratio and no cover: the file's own proportions decide, which is
     the whole point of this layout. */
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: var(--elev);
}

.page-header-row.has-media .page-header-main {
  max-width: none;
}

.page-header-row.has-media h1 {
  margin-bottom: 18px;
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

@media (max-width: 900px) {
  .page-header-row.has-media {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-header-media img {
    max-height: 340px;
    /* Centred rather than stretched, so a portrait photo does not dominate. */
    width: auto;
    max-width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .page-header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-header-actions .btn-primary,
  .page-header-actions .btn-outline {
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAP LINK
   Sits under the embed. The iframe is fine for orientation, but nobody
   navigates from it — the link is what opens Maps on their phone.
   ═══════════════════════════════════════════════════════════════════════════ */

.map-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: -1px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--fg);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.map-link:hover {
  background: var(--elev);
  border-color: var(--border-strong);
}

.map-link > svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-link span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.map-link strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.map-link small {
  font-size: 12.5px;
  color: var(--muted);
}

.map-link-go {
  margin-left: auto;
  stroke: var(--faint);
  transition: transform 0.3s var(--ease), stroke 0.25s var(--ease);
}

.map-link:hover .map-link-go {
  transform: translateX(4px);
  stroke: var(--accent);
}

@media (max-width: 480px) {
  .map-link small { font-size: 11.5px; }
  .map-link-go { display: none; }
}
