/*
 * Al-Fatah Metal House — customer website styles.
 *
 * Mobile-first. Colours and spacing are design tokens on :root; dark sections
 * (hero, calculator, footer, menu) use the .theme-dark scope, and the light
 * sections follow the visitor's dark-mode preference. Animations only move
 * transform and opacity, and are switched off for prefers-reduced-motion.
 */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --green-950: #061a13;
  --green-900: #0b2a20;
  --green-800: #0f3d2e;
  --green-700: #155a43;
  --gold-700: #8a6114;
  --gold-600: #c8922f;
  --gold-500: #e2ad4f;
  --gold-300: #f0c978;
  --gold-200: #f6dc9b;
  --ok: #0ca30c;
  --warn: #fab219;
  --bad: #d03b3b;

  --font-display: 'Sora Variable', 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Light sections */
  --bg: #ffffff;
  --bg-alt: #f6f7f4;
  --surface: #ffffff;
  --surface-alt: #f3f5f1;
  --text: #14211b;
  --text-2: #4b5a52;
  --text-3: #66756d;
  --line: rgba(20, 33, 27, 0.1);
  --line-strong: rgba(20, 33, 27, 0.18);
  --field-bg: #ffffff;
  --focus: #0f3d2e;
  --eyebrow: var(--gold-700);
  --ok-text: #0a6b0a;
  --bad-text: #a32626;
  --order: #3f7cc0;
  --order-text: #255a91;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5a52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --shadow-sm: 0 1px 2px rgba(15, 40, 30, 0.06), 0 1px 1px rgba(15, 40, 30, 0.04);
  --shadow-md: 0 14px 34px -16px rgba(15, 40, 30, 0.22), 0 3px 8px -2px rgba(15, 40, 30, 0.06);
  --shadow-lg: 0 34px 70px -30px rgba(15, 40, 30, 0.32), 0 10px 24px -10px rgba(15, 40, 30, 0.1);

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: 16px;
  --max: 1200px;
  --header-h: 64px;

  /* Metal colours for the hero glows; replaced with each metal's colour from the catalogue. */
  --glow-a: #8fa3b8;
  --glow-b: #c46a32;

  color-scheme: light dark;
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1713;
    --bg-alt: #09130f;
    --surface: #12201a;
    --surface-alt: #0f1b16;
    --text: #e8efeb;
    --text-2: #a9b8b0;
    --text-3: #8b9b93;
    --line: rgba(232, 239, 235, 0.1);
    --line-strong: rgba(232, 239, 235, 0.2);
    --field-bg: #0e1a15;
    --focus: var(--gold-500);
    --eyebrow: var(--gold-300);
    --ok-text: #73d973;
    --bad-text: #ff9a9a;
    --order-text: #a8ccf2;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c3d0c9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 14px 34px -16px rgba(0, 0, 0, 0.7), 0 3px 8px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 34px 70px -30px rgba(0, 0, 0, 0.8), 0 10px 24px -10px rgba(0, 0, 0, 0.4);
  }
}

/* Dark scope: hero, header, calculator, contact card, footer and mobile menu. */
.theme-dark {
  --text: #eef4f0;
  --text-2: rgba(238, 244, 240, 0.76);
  --text-3: rgba(238, 244, 240, 0.62);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-alt: rgba(255, 255, 255, 0.04);
  --field-bg: rgba(3, 18, 12, 0.55);
  --focus: var(--gold-500);
  --eyebrow: var(--gold-200);
  --ok-text: #7fe07f;
  --bad-text: #ffa3a3;
  --order-text: #a8ccf2;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6e2dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color: var(--text);
  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

/* Anchors inside a section get a little air below the sticky header. */
#quote { scroll-margin-top: 20px; }

/* Smooth in-page scrolling, switched on by js/site.js after the first paint so
   that opening a link such as /#calculator jumps straight to the section. */
html.smooth-scroll { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.menu-open { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

ul, ol { margin: 0; padding: 0; }

::selection { background: rgba(226, 173, 79, 0.35); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[tabindex="-1"]:focus { outline: none; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--gold-500);
  color: var(--green-900);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out);
  --focus: var(--green-900);
}

.skip-link:focus { transform: none; }

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.noscript-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--text-2);
}

/* ── Type ───────────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--eyebrow);
  font: 600 12.5px/1.2 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.8;
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow { justify-content: center; }

.section-head--split {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: none;
}

@media (min-width: 860px) {
  .section-head--split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .section-head--split > div { max-width: 720px; }
}

.section-title {
  font-size: clamp(30px, 2.1vw + 21px, 48px);
  line-height: 1.08;
  letter-spacing: -0.032em;
}

.section-lead {
  margin-top: 16px;
  color: var(--text-2);
  font-size: clamp(16px, 0.35vw + 15px, 18.5px);
  line-height: 1.65;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 15.5px/1.15 var(--font-body);
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background-color 0.25s, border-color 0.25s, color 0.25s;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out);
}

.btn--sm { --btn-h: 44px; padding: 0 16px; font-size: 14.5px; border-radius: 11px; }
.btn--lg { --btn-h: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; white-space: normal; }

@media (max-width: 400px) {
  .btn:not(.site-header__cta) { white-space: normal; }
}

.btn--gold {
  background: linear-gradient(180deg, #f3cd7c, var(--gold-500));
  color: var(--green-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(120, 80, 10, 0.25), 0 10px 24px -12px rgba(226, 173, 79, 0.8);
  --focus: var(--gold-200);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--dark {
  background: var(--green-800);
  color: #ffffff;
  box-shadow: 0 10px 22px -12px rgba(15, 61, 46, 0.8);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

@media (hover: hover) {
  .btn--gold:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #f7d993, #e9b961);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(120, 80, 10, 0.25), 0 16px 30px -12px rgba(226, 173, 79, 0.9);
  }

  .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.46); }
  .btn--dark:hover { background: #145140; transform: translateY(-1px); }
  .btn--outline:hover { border-color: var(--green-700); background: rgba(21, 90, 67, 0.07); }
  .btn:hover .icon:last-child { transform: translateX(3px); }
}

.btn:active { transform: translateY(0) scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

@media (prefers-color-scheme: dark) {
  .btn--dark { background: #1a5b45; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
  .btn--outline:hover { border-color: var(--gold-500); background: rgba(226, 173, 79, 0.08); }
}

.theme-dark .btn--outline { border-color: rgba(255, 255, 255, 0.3); }

/* ── Forms (shared) ─────────────────────────────────────────────────────── */
.field { position: relative; display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.field__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--text);
}

.field__hint { font-weight: 500; font-size: 12.5px; color: var(--text-3); }
.field__help { font-size: 13px; color: var(--text-3); }
.req { color: var(--bad-text); }

.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--field-bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.input::placeholder { color: var(--text-3); opacity: 0.85; }
.input:hover { border-color: color-mix(in srgb, var(--text) 32%, transparent); }

.input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: transparent;
}

.input[aria-invalid="true"] {
  border-color: var(--bad);
  box-shadow: 0 0 0 1px var(--bad);
}

.select {
  padding-right: 42px;
  background-image: var(--chevron);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}

.textarea { min-height: 120px; resize: vertical; }

.input-group { display: flex; }
.input-group > .input:first-child { flex: 1 1 auto; min-width: 0; border-radius: 12px 0 0 12px; }
.input-group > .select { flex: none; width: auto; margin-left: -1px; border-radius: 0 12px 12px 0; }
.input-group > .input:focus-visible { position: relative; z-index: 1; }

.field__error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--bad-text);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}

.field__error:empty { display: none; }

.field__error::before {
  content: '!';
  flex: none;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--bad);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.field__meta { display: flex; justify-content: space-between; gap: 12px; }
.field__count { margin-left: auto; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* A gold glow on fields that were just filled in for the visitor. */
.field.is-flashed::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 15px;
  border: 2px solid var(--gold-500);
  pointer-events: none;
  animation: flash 1.6s var(--ease-out) forwards;
}

/* ── Announcement bar ───────────────────────────────────────────────────── */
.announcement {
  position: relative;
  z-index: 51;
  background: linear-gradient(90deg, #ecc274, var(--gold-500) 50%, #ecc274);
  color: var(--green-900);
  font-size: 14.5px;
  line-height: 1.4;
  --focus: var(--green-900);
  animation: fade-down 0.5s var(--ease-out) both;
}

.announcement__inner { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-block: 4px; }
.announcement__icon { width: 20px; height: 20px; }
.announcement__text { flex: 1; font-weight: 600; text-align: center; }

.announcement__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
}

.announcement__close:hover { background: rgba(11, 42, 32, 0.1); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 31, 23, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  opacity: 0;
  transition: opacity 0.35s;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.75);
}

.site-header.is-scrolled::before { opacity: 1; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before { background: var(--green-900); }
}

.site-header__inner { display: flex; align-items: center; gap: 12px; height: 100%; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
}

/* The mark: a gold hexagonal plate (a hex bar seen side-on) with the shop's Urdu name, traced from its signboard. */
.brand__plate {
  width: auto;
  height: 36px;
  flex: none;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.35));
}

.site-footer .brand__plate { height: 56px; }

/* Narrow phones: a smaller plate and name, so "Al-Fatah / Metal House" stays on two lines beside the buttons. */
@media (max-width: 389px) {
  .brand { gap: 8px; }
  .site-header .brand__plate { height: 32px; }
  .site-header .brand__name { font-size: 14px; }
}

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

.brand__name {
  max-width: 7.6em;
  font: 700 15.5px/1.12 var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.brand__sub {
  display: none;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.site-nav { display: none; margin-left: auto; }
.site-nav__list { display: flex; gap: 2px; list-style: none; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.site-nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.site-nav__link.is-active { color: var(--text); }
.site-nav__link.is-active::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-header__cta { display: none; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-right: -6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: background-color 0.2s, border-color 0.2s;
}

.menu-toggle:hover { background: rgba(255, 255, 255, 0.1); }

.menu-toggle__bars { display: grid; gap: 4px; width: 20px; }
.menu-toggle__bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.menu-toggle__bars span:nth-child(2) { width: 70%; margin-left: auto; }

@media (min-width: 360px) {
  .site-header__cta { display: inline-flex; padding: 0 14px; }
}

@media (min-width: 600px) {
  .brand__plate { height: 44px; }
  .brand__name { max-width: none; font-size: 16.5px; }
  .brand__sub { display: block; }
}

@media (min-width: 960px) {
  .site-nav { display: block; }
  .menu-toggle { display: none; }
  .site-header__actions { margin-left: 8px; }
  .site-header__cta { padding: 0 18px; }
}

/* ── Mobile menu ────────────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}

.mobile-menu::backdrop { background: transparent; }

.mobile-menu__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(226, 173, 79, 0.16), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(63, 124, 192, 0.14), transparent 60%),
    linear-gradient(180deg, #0c2c22, var(--green-950));
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.3s var(--ease-out), transform 0.45s var(--ease-out);
}

.mobile-menu.is-open .mobile-menu__panel { opacity: 1; transform: none; }

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.mobile-menu__close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-right: -6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.mobile-menu__close .icon { width: 22px; height: 22px; }
.mobile-menu__nav { margin-top: clamp(16px, 5vh, 48px); }
.mobile-menu__links { list-style: none; }

.mobile-menu__item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--i) * 60ms + 100ms);
}

.mobile-menu.is-open .mobile-menu__item { opacity: 1; transform: none; }
.mobile-menu.is-closing .mobile-menu__item { transition-delay: 0ms; transition-duration: 0.2s; }

.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font: 700 clamp(28px, 8vw, 40px)/1.15 var(--font-display);
  letter-spacing: -0.03em;
  text-decoration: none;
  border-radius: 8px;
}

.mobile-menu__link.is-active { color: var(--gold-200); }
.mobile-menu__num { min-width: 2.2em; font: 600 13px/1 var(--font-body); letter-spacing: 0.1em; color: var(--gold-500); font-variant-numeric: tabular-nums; }

.mobile-menu__footer { display: grid; gap: 12px; margin-top: auto; padding-top: 32px; }
.mobile-menu__contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.mobile-menu__contact:empty { display: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 72px));
  background:
    radial-gradient(80% 60% at 70% 10%, rgba(21, 90, 67, 0.55), transparent 70%),
    linear-gradient(180deg, var(--green-900) 0%, #08231a 62%, #061c15 100%);
}

.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.hero__grid-mask {
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 65% 35%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 70% at 65% 35%, #000 15%, transparent 72%);
}

.hero__grid {
  position: absolute;
  inset: -64px;
  background-image:
    linear-gradient(rgba(246, 220, 155, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 220, 155, 0.075) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: grid-drift 30s linear infinite;
}

.hero__glow {
  position: absolute;
  width: 64vmax;
  height: 64vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-color, transparent), transparent);
  will-change: transform;
}

.hero__glow--a {
  --glow-color: color-mix(in srgb, var(--glow-a) 42%, transparent);
  top: -30vmax;
  right: -22vmax;
  animation: drift-a 26s var(--ease-in-out) infinite alternate;
}

.hero__glow--b {
  --glow-color: color-mix(in srgb, var(--glow-b) 36%, transparent);
  bottom: -38vmax;
  left: -26vmax;
  animation: drift-b 32s var(--ease-in-out) infinite alternate;
}

.hero__glow--c {
  --glow-color: rgba(226, 173, 79, 0.16);
  top: 20%;
  left: 30%;
  width: 44vmax;
  height: 44vmax;
  animation: drift-c 22s var(--ease-in-out) infinite alternate;
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.hero__inner { display: grid; gap: clamp(36px, 6vw, 48px); align-items: center; }

.hero__copy > * { animation: rise 0.9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
/* The heading is the largest thing on a phone's first screen: it shows at once (no fade-in), so the page counts as
   drawn sooner (Largest Contentful Paint). */
.hero__copy > .hero__title { animation: none; }

.hero__eyebrow { margin-bottom: 18px; }

.hero__title {
  font-size: clamp(38px, 4.2vw + 18px, 74px);
  line-height: 1.02;
  letter-spacing: -0.042em;
  font-weight: 700;
}

.hero__metals { white-space: normal; }

.metal-word {
  background: linear-gradient(170deg, var(--c-hi, #fff) 10%, var(--c-light, #dfe5eb) 45%, var(--c-mid, #aab5c0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (forced-colors: active) {
  .metal-word { color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; }
}

.hero__lead {
  margin-top: 22px;
  max-width: 34em;
  color: var(--text-2);
  font-size: clamp(17px, 0.55vw + 15px, 20px);
  line-height: 1.6;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__actions .btn { flex: 1 1 auto; }

.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  list-style: none;
  color: var(--text-3);
  font-size: 14.5px;
}

.hero__notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero__notes .icon { width: 17px; height: 17px; color: var(--gold-500); stroke-width: 2.4; }

@media (min-width: 480px) {
  .hero__actions .btn { flex: 0 0 auto; }
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
    min-height: min(600px, calc(100svh - var(--header-h) - 220px));
  }
}

/* The metal stack: bars drawn with gradients, sized in em so the whole
   picture scales with the width of its column. */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  container-type: inline-size;
  animation: stage-in 1.2s var(--ease-out) 0.25s both;
}

.metal-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 50 / 44;
  font-size: clamp(6px, 1.8vw, 12px);
  font-size: calc(100cqi / 50);
}

.metal-stage__glow {
  position: absolute;
  inset: 6% 2% 8%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 38% 58%, color-mix(in srgb, var(--glow-a) 40%, transparent), transparent),
    radial-gradient(closest-side at 70% 36%, color-mix(in srgb, var(--glow-b) 34%, transparent), transparent);
  animation: breathe 9s var(--ease-in-out) infinite alternate;
}

.metal-stage__floor {
  position: absolute;
  left: 14%;
  right: 10%;
  bottom: -3%;
  height: 11%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  animation: floor 9s var(--ease-in-out) infinite;
}

.metal-stack { position: absolute; inset: 0; transform: rotate(-11deg); }
.metal-stack__float { position: absolute; inset: 0; animation: stack-float 9s var(--ease-in-out) infinite; }

.bar {
  --T: calc(var(--t) * 1em);
  position: absolute;
  left: calc(var(--x) * 1em);
  top: calc(var(--y) * 1em);
  width: calc(var(--len) * 1em);
  height: var(--T);
  animation: bar-float var(--dur, 7s) var(--ease-in-out) var(--delay, 0s) infinite alternate;
}

.bar__body,
.bar__cap { position: absolute; top: 0; height: 100%; }

.bar__body { left: 0; overflow: hidden; }

/* The light sweep moving along each bar. */
.bar__body::after {
  content: '';
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55) 50%, transparent);
  transform: translateX(-150%) skewX(-24deg);
  animation: bar-sweep 7.5s var(--ease-in-out) var(--sweep, 0s) infinite;
}

/* A short glint on the cut face as the sweep passes. */
.bar__cap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 70% 50% at 40% 35%, rgba(255, 255, 255, 0.9), transparent 70%);
  opacity: 0;
  animation: cap-glint 7.5s ease-in-out var(--sweep, 0s) infinite;
}

/* Round rod: elliptical cut face on the left, rounded far end. */
.bar--round .bar__body {
  width: calc(100% + var(--T) * 0.19);
  border-radius: 0 calc(var(--T) * 0.19) calc(var(--T) * 0.19) 0 / 0 50% 50% 0;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, var(--c-dark) 0%, var(--c-light) 8%, var(--c-hi) 16%, var(--c-light) 27%, var(--c-mid) 47%, var(--c-dark) 71%, var(--c-deep) 90%, var(--c-dark) 100%);
}

.bar--round .bar__cap {
  left: calc(var(--T) * -0.19);
  width: calc(var(--T) * 0.38);
  border-radius: 50%;
  background:
    radial-gradient(ellipse 60% 42% at 36% 30%, rgba(255, 255, 255, 0.7), transparent 72%),
    repeating-radial-gradient(ellipse at 50% 50%, transparent 0 8%, rgba(0, 0, 0, 0.07) 8% 9.5%),
    radial-gradient(ellipse at 50% 50%, var(--c-hi) 0%, var(--c-light) 50%, var(--c-mid) 84%, var(--c-dark) 100%);
  box-shadow:
    inset 0 0 0 calc(var(--T) * 0.022) rgba(0, 0, 0, 0.22),
    inset calc(var(--T) * -0.035) 0 calc(var(--T) * 0.07) rgba(0, 0, 0, 0.22);
}

/* Hexagon bar: three visible faces, pointed far end. */
.bar--hex .bar__body {
  width: calc(100% + var(--T) * 0.165);
  clip-path: polygon(0 0, calc(100% - var(--T) * 0.165) 0, 100% 25%, 100% 75%, calc(100% - var(--T) * 0.165) 100%, 0 100%);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, var(--c-light) 0%, var(--c-hi) 11%, var(--c-light) 24.6%, var(--c-mid) 25%, var(--c-light) 33%, var(--c-mid) 52%, var(--c-dark) 74.6%, var(--c-deep) 75%, var(--c-dark) 100%);
}

.bar--hex .bar__cap {
  left: calc(var(--T) * -0.165);
  width: calc(var(--T) * 0.33);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(165deg, var(--c-mid), var(--c-dark) 55%, var(--c-deep));
}

.bar--hex .bar__cap::before {
  content: '';
  position: absolute;
  inset: 6% 13%;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background:
    repeating-radial-gradient(ellipse at 50% 50%, transparent 0 9%, rgba(0, 0, 0, 0.06) 9% 10.5%),
    radial-gradient(ellipse at 42% 36%, var(--c-hi), var(--c-light) 55%, var(--c-mid));
}

/* Square bar, standing on one edge: two faces and a diamond cut face. */
.bar--square .bar__body {
  width: calc(100% + var(--T) * 0.19);
  clip-path: polygon(0 0, calc(100% - var(--T) * 0.19) 0, 100% 50%, calc(100% - var(--T) * 0.19) 100%, 0 100%);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, var(--c-light) 0%, var(--c-hi) 17%, var(--c-light) 34%, var(--c-mid) 49.6%, var(--c-dark) 50%, var(--c-mid) 62%, var(--c-dark) 80%, var(--c-deep) 100%);
}

.bar--square .bar__cap {
  left: calc(var(--T) * -0.19);
  width: calc(var(--T) * 0.38);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(165deg, var(--c-mid), var(--c-dark) 55%, var(--c-deep));
}

.bar--square .bar__cap::before {
  content: '';
  position: absolute;
  inset: 8% 15%;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background:
    repeating-radial-gradient(ellipse at 50% 50%, transparent 0 10%, rgba(0, 0, 0, 0.06) 10% 11.5%),
    radial-gradient(ellipse at 42% 36%, var(--c-hi), var(--c-light) 55%, var(--c-mid));
}

/* The off-cut piece that slides away from the big rod. It starts exactly at the
   rod's end and sits behind the rod, so while the two touch only the rod's curved
   end shows as the seam; the piece's cut face appears as it slides away. */
.bar__offcut {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 100%;
  width: 8.5em;
  height: 100%;
  animation: offcut 8s var(--ease-in-out) infinite;
}

.bar__offcut .bar__cap {
  background:
    radial-gradient(ellipse 60% 42% at 36% 30%, rgba(255, 255, 255, 0.85), transparent 72%),
    repeating-radial-gradient(ellipse at 50% 50%, transparent 0 7%, rgba(0, 0, 0, 0.06) 7% 8.5%),
    radial-gradient(ellipse at 50% 50%, #ffffff 0%, var(--c-hi) 45%, var(--c-light) 82%, var(--c-mid) 100%);
}

.bar__cut {
  position: absolute;
  z-index: -1;
  left: calc(100% + var(--T) * 0.19);
  top: -34%;
  bottom: -26%;
  border-left: 2px dashed rgba(246, 220, 155, 0.75);
}

.bar__cut-tag {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 0.5em;
  padding: 0.3em 0.75em;
  transform: translateX(-50%) rotate(11deg);
  border: 1px solid rgba(246, 220, 155, 0.5);
  border-radius: 999px;
  background: rgba(8, 31, 23, 0.7);
  color: var(--gold-200);
  font: 600 max(10px, 1.1em)/1.2 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Default metal colours (replaced from the catalogue). */
[data-look="aluminium"] { --c-hi: #ffffff; --c-light: #dfe5eb; --c-mid: #aab5c0; --c-dark: #77838f; --c-deep: #4a5560; }
[data-look="copper"] { --c-hi: #ffe2cf; --c-light: #f2a679; --c-mid: #d27443; --c-dark: #9c4a22; --c-deep: #5e2a12; }

/* Glass card with live stock. */
.stock-card {
  position: absolute;
  left: 0;
  bottom: 3%;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(94%, 330px);
  padding: 12px 18px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  animation: rise 0.9s var(--ease-out) 0.9s both;
}

html:not(.js) .stock-card { display: none; }

.stock-card__text { min-width: 0; }
.stock-card__title { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 14.5px; line-height: 1.35; }
.stock-card__title strong { font-weight: 700; color: #fff; }
.stock-card__title span { color: var(--gold-200); font-weight: 600; }
.stock-card__title span:not(:empty)::before { content: '· '; color: var(--text-3); }
.stock-card__metals { margin-top: 2px; font-size: 13px; color: var(--text-3); }
.stock-card__metals:empty { display: none; }

.pulse-dot {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(12, 163, 12, 0.22);
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse-ring 2s var(--ease-out) infinite;
}

.pulse-dot--sm { width: 9px; height: 9px; }
.pulse-dot.is-waiting { background: var(--gold-500); box-shadow: 0 0 0 3px rgba(226, 173, 79, 0.22); }
.pulse-dot.is-idle { background: #9aa8a0; box-shadow: none; }
.pulse-dot.is-idle::after { display: none; }

/* ── Stats strip ────────────────────────────────────────────────────────── */
.stats { position: relative; padding-block: clamp(44px, 6vw, 76px) clamp(36px, 5vw, 60px); }

.stats__list {
  --stat-min: 140px;
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  overflow: hidden;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 34px 64px -36px rgba(0, 0, 0, 0.75);
}

.stat {
  flex: 1 1 var(--stat-min);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 20px 20px 22px;
  background: rgba(6, 26, 19, 0.82);
}

.stat__value {
  font: 700 clamp(32px, 2.2vw + 22px, 46px)/1 var(--font-display);
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 20%, var(--gold-200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat__icon { width: 30px; height: 30px; margin-bottom: 6px; color: var(--gold-500); stroke-width: 1.6; }
.stat__label { margin-top: 6px; font-weight: 600; font-size: 15px; color: var(--text); }
.stat--fact .stat__label { margin-top: 0; font: 700 18px/1.25 var(--font-display); letter-spacing: -0.015em; }
.stat__sub { font-size: 13px; color: var(--text-3); line-height: 1.45; }
.stat__sub:empty { display: none; }

html:not(.js) [data-stat] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .has-reveal .stats__list .stat {
    transition: opacity 0.7s var(--ease-out), translate 0.8s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms + 150ms);
  }

  .has-reveal .stats__list:not(.is-visible) .stat { opacity: 0; translate: 0 14px; }
}

@media (min-width: 640px) { .stats__list { --stat-min: 200px; } }
@media (min-width: 1100px) { .stats__list { --stat-min: 150px; } }

/* ── Marquee ────────────────────────────────────────────────────────────── */
.marquee {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 20px;
  overflow: hidden;
  background: var(--green-950);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.marquee__label {
  flex: none;
  padding-left: max(var(--gutter), calc((100% - var(--max)) / 2));
  color: var(--gold-200);
  font: 600 12px/1.2 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.marquee__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; align-items: center; list-style: none; }

.marquee__group li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  color: rgba(238, 244, 240, 0.84);
  font: 600 clamp(15px, 0.5vw + 13px, 19px)/1.2 var(--font-display);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.marquee__group li::after {
  content: '';
  width: 10px;
  height: 11px;
  background: var(--gold-500);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  opacity: 0.85;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section {
  position: relative;
  padding-block: clamp(72px, 7vw + 24px, 128px);
  background: var(--bg);
}

.section--alt { background: var(--bg-alt); }

.section--dark {
  isolation: isolate;
  overflow: clip;
  background: linear-gradient(180deg, var(--green-900), #082119);
}

.section-dark__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 45% at 90% 10%, rgba(226, 173, 79, 0.14), transparent 70%),
    radial-gradient(45% 50% at 0% 100%, rgba(63, 124, 192, 0.14), transparent 70%),
    linear-gradient(rgba(246, 220, 155, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(246, 220, 155, 0.05) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.5) 60%, transparent);
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.5) 60%, transparent);
}

/* ── Skeletons and states ───────────────────────────────────────────────── */
.skeleton {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) {
  .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent); }
}

html:not(.js) .skeleton { display: none; }
.skeleton--card { min-height: 232px; }
.skeleton--metal { min-height: 300px; border-radius: var(--radius-lg); }

.state-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: clamp(32px, 5vw, 56px) 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  text-align: center;
  animation: card-in 0.5s var(--ease-out) backwards;
}

.state-card__art { display: grid; place-items: center; width: 132px; height: 100px; margin-bottom: 4px; color: var(--text-3); }
.state-card__art svg { width: 100%; height: 100%; }
.state-card__title { font-size: clamp(21px, 1vw + 17px, 26px); letter-spacing: -0.02em; }
.state-card__text { max-width: 46ch; color: var(--text-2); }
.state-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.state-card--error { border-style: solid; border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.state-card--error .state-card__art { width: 52px; height: 52px; color: var(--bad); }
.state-card--error .state-card__art .icon { stroke-width: 1.6; }

/* ── Metals ─────────────────────────────────────────────────────────────── */
/* Flex rather than grid: a metal left alone on the last row stretches across it. */
.metal-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.metal-grid > .skeleton { flex: 1 1 340px; }
.metal-grid > .state-card { flex: 1 1 100%; }
.metal-card-wrap { display: flex; flex: 1 1 340px; min-width: 0; }

.metal-card {
  --accent: #8fa3b8;
  position: relative;
  flex: 1;
  container-type: inline-size;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.6s var(--ease-out), box-shadow 0.35s;
}

.metal-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--c-mid), var(--c-hi), var(--c-mid), var(--c-dark));
}

.metal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--glare-x, 50%) var(--glare-y, 0%), rgba(255, 255, 255, 0.22), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.metal-card.is-tilting { transition: transform 0.12s linear, box-shadow 0.35s; box-shadow: var(--shadow-lg); }
.metal-card.is-tilting::after { opacity: 1; }

.metal-card__inner {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 2.4vw, 28px);
}

@container (min-width: 500px) {
  .metal-card__inner { grid-template-columns: 172px 1fr; gap: 28px; align-items: start; }
}

.element-tile {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--c-light) 0%, var(--c-hi) 26%, var(--c-light) 46%, var(--c-mid) 72%, var(--c-dark) 100%);
  color: var(--tile-ink, #14211b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -2px 0 rgba(0, 0, 0, 0.16), 0 18px 30px -18px rgba(0, 0, 0, 0.55);
}

@container (min-width: 500px) {
  .element-tile { max-width: none; }
}

.element-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.element-tile::after {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-160%) skewX(-18deg);
  transition: transform 0.9s var(--ease-out);
}

.metal-card:hover .element-tile::after { transform: translateX(420%) skewX(-18deg); }

.element-tile__number { position: absolute; top: 11px; left: 14px; font: 600 15px/1 var(--font-display); opacity: 0.85; }
.element-tile__density { position: absolute; top: 12px; right: 14px; font: 600 12px/1 var(--font-body); opacity: 0.75; }

.element-tile__symbol {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 8%;
  font: 700 clamp(52px, 19cqi, 76px)/1 var(--font-display);
  letter-spacing: -0.04em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45), 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.element-tile__name {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 11px;
  overflow: hidden;
  font: 600 11.5px/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.8;
}

.metal-card__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.metal-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.metal-card__title { font-size: clamp(24px, 1.2vw + 18px, 30px); letter-spacing: -0.03em; }
.metal-card__desc { color: var(--text-2); }

.metal-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.metal-facts > div { flex: 1 1 110px; padding: 10px 14px; background: var(--surface); }
.metal-facts dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.metal-facts dd { margin: 2px 0 0; font: 700 16.5px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--text); }

.metal-rate {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--gold-500) 45%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--gold-500) 12%, var(--surface));
  font-size: 14px;
  color: var(--text-2);
}

.metal-rate strong { font: 700 17px/1.2 var(--font-display); color: var(--text); }
.metal-rate small { width: 100%; font-size: 12.5px; color: var(--text-3); }

.metal-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 2px; }
.metal-card__actions .btn { flex: 1 1 auto; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-alt);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.tag--soon { border-color: color-mix(in srgb, var(--gold-500) 55%, transparent); background: color-mix(in srgb, var(--gold-500) 14%, var(--surface)); color: var(--text); }
.tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--ok)); }

/* ── Catalogue ──────────────────────────────────────────────────────────── */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 860px) { .live-pill { align-self: auto; margin-bottom: 6px; } }

.catalog-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.catalog-filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }

@media (min-width: 860px) {
  .catalog-toolbar,
  .catalog-filters { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
}

.metal-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-alt);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.metal-tabs::-webkit-scrollbar { display: none; }

@media (min-width: 860px) { .metal-tabs { align-self: flex-start; } }

.metal-tab {
  --accent: var(--text-3);
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: color 0.3s;
}

.metal-tab:hover { color: var(--text); }
.metal-tab[aria-pressed="true"] { color: #ffffff; }
.metal-tabs:not(.has-indicator) .metal-tab[aria-pressed="true"] { background: var(--green-800); }

.metal-tab__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.metal-tab__dot--all {
  background: conic-gradient(var(--gold-500) 0 33%, #8fa3b8 0 66%, #c46a32 0);
  box-shadow: none;
}

.metal-tab__count {
  min-width: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--line);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.metal-tab[aria-pressed="true"] .metal-tab__count { background: rgba(255, 255, 255, 0.18); }

.metal-tabs__indicator {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 12px;
  background: var(--green-800);
  box-shadow: 0 8px 18px -10px rgba(15, 61, 46, 0.9);
  transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out);
}

/* Phones: every metal visible at once, wrapping onto more rows as metals are added. */
@media (max-width: 599.98px) {
  .metal-tabs { flex-wrap: wrap; overflow: visible; }
  .metal-tabs__indicator { display: none; }
  .metal-tab { flex: 1 1 auto; justify-content: center; padding: 0 12px; }
  .metal-tabs .metal-tab[aria-pressed="true"] { background: var(--green-800); }
}

@media (prefers-color-scheme: dark) {
  .metal-tabs__indicator,
  .metal-tabs:not(.has-indicator) .metal-tab[aria-pressed="true"] { background: #1a5b45; }
}

@media (prefers-color-scheme: dark) and (max-width: 599.98px) {
  .metal-tabs .metal-tab[aria-pressed="true"] { background: #1a5b45; }
}

.search-field { position: relative; flex: 1 1 auto; }

@media (min-width: 860px) { .search-field { flex: 0 1 360px; } }

.search-field__icon {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 20px;
  height: 20px;
  color: var(--text-3);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field__input { padding-left: 46px; border-radius: 14px; }
.search-field__input::-webkit-search-cancel-button { cursor: pointer; }

.shape-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.shape-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}

.shape-chip svg { width: 22px; height: 22px; }
.shape-chip:hover { border-color: color-mix(in srgb, var(--text) 35%, transparent); color: var(--text); }
.shape-chip:active { transform: scale(0.97); }

.shape-chip[aria-pressed="true"] {
  border-color: var(--gold-500);
  background: color-mix(in srgb, var(--gold-500) 16%, var(--surface));
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--gold-500);
}

.shape-chip__count { font-size: 12px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.catalog-count { flex: none; font-size: 14px; color: var(--text-3); }

.product-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}

@media (min-width: 600px) {
  .product-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); }
}

.product-card {
  --accent: #8fa3b8;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  animation: card-in 0.55s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 38ms);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s, opacity 0.18s;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent));
}

.has-reveal .product-grid:not(.is-visible) .product-card { animation-play-state: paused; }
.product-grid.is-leaving > * { opacity: 0; transform: translateY(6px) scale(0.97); transition-duration: 0.16s; }

@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
    box-shadow: var(--shadow-md);
  }

  .product-card:hover .product-card__icon svg { transform: rotate(-10deg) scale(1.08); }
}

.product-card__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }

.product-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(circle at 30% 25%, var(--surface), var(--surface-alt));
}

.product-card__icon svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
  transition: transform 0.45s var(--ease-spring);
}

.product-card__title { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }

.product-card__name {
  font: 600 11.5px/1.35 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.product-card__size {
  font: 700 clamp(19px, 0.6vw + 16px, 23px)/1.15 var(--font-display);
  letter-spacing: -0.025em;
  color: var(--text);
  overflow-wrap: anywhere;
}

.product-card__meta { font-size: 13px; line-height: 1.45; color: var(--text-2); }
.product-card .btn { margin-top: auto; --btn-h: 44px; padding: 0 12px; font-size: 14px; }

@media (max-width: 420px) {
  .product-card { padding: 14px; }
  .product-card .btn { padding: 0 8px; white-space: nowrap; }
  /* A text button drops its icon to make room; the WhatsApp button is only its logo, so it keeps it. */
  .product-card .btn:not(.btn--whatsapp) .icon { display: none; }
  /* "Add to quote" and "✓ In your list" go onto two lines rather than run past the button's edge. */
  .product-card .btn[data-quote-add] { padding: 0 6px; font-size: 13px; line-height: 1.15; white-space: normal; text-align: center; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 10px 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.badge__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.badge--in-stock {
  border-color: color-mix(in srgb, var(--ok) 32%, transparent);
  background: color-mix(in srgb, var(--ok) 12%, var(--surface));
  color: var(--ok-text);
}

.badge--in-stock .badge__dot { background: var(--ok); }
.badge--limited { background: var(--warn); color: #3a2600; }
.badge--limited .badge__dot { background: #3a2600; }

.badge--out-of-stock {
  border-color: color-mix(in srgb, var(--bad) 32%, transparent);
  background: color-mix(in srgb, var(--bad) 11%, var(--surface));
  color: var(--bad-text);
}

.badge--out-of-stock .badge__dot { background: var(--bad); }
.badge--on-request { border-color: var(--line-strong); background: var(--surface-alt); color: var(--text-2); }
.badge--on-request .badge__dot { background: var(--text-3); }

/* A size the shop buys in once it is ordered (the full range, Settings → Website details). */
.badge--on-order {
  border-color: color-mix(in srgb, var(--order) 34%, transparent);
  background: color-mix(in srgb, var(--order) 10%, var(--surface));
  color: var(--order-text);
}

.badge--on-order .badge__dot { background: var(--order); }

/* "Show more sizes" under the product grid. */
.catalog-more { display: flex; justify-content: center; margin-top: 18px; }
.catalog-more:empty { display: none; }
.catalog-more__left { font-weight: 500; color: var(--text-3); }

/* ── Calculator (the full calculator is its own page, /calculator) ──────── */
.calc-promo {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(20px, 3.2vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 44px 90px -44px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

@media (min-width: 920px) {
  .calc-promo { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; }
}

.calc-promo__text { display: grid; justify-items: start; gap: 14px; }
.calc-promo__text > * { margin: 0; }
.calc-promo__list { display: grid; gap: 9px; margin: 2px 0 8px; padding: 0; list-style: none; color: var(--text-2); }
.calc-promo__list li { position: relative; padding-left: 24px; line-height: 1.5; }
.calc-promo__list li::before { content: ''; position: absolute; top: 0.55em; left: 3px; width: 8px; height: 8px; border-radius: 2px; background: var(--gold-500); transform: rotate(45deg); }
.calc-promo__art svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }

/* ── Videos (the shop's latest YouTube videos, each opening on YouTube) ──── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
  align-items: start;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-card { min-width: 0; }
.video-card__link { display: grid; gap: 10px; color: inherit; text-decoration: none; border-radius: var(--radius); }
.video-card__link:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.video-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.9);
}
/* A Short is upright; its picture from YouTube has the frame in the middle, so the middle is shown. */
.video-card--short .video-card__thumb { aspect-ratio: 9 / 16; }
.video-card__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.video-card__play {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.video-card__play .icon { width: 20px; height: 20px; stroke: none; }
.video-card__title {
  display: -webkit-box;
  overflow: hidden;
  font: 600 15px/1.35 var(--font-display);
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}
.video-card__meta { color: var(--text-3); font-size: 13px; }

@media (hover: hover) {
  .video-card__link:hover .video-card__thumb img { transform: scale(1.04); }
  .video-card__link:hover .video-card__title { color: var(--gold-200); }
  .video-card__link:hover .video-card__play { background: #ff0033; }
}

/* On phones the videos are one row to swipe through, like YouTube's own shelf of Shorts. */
@media (max-width: 699px) {
  .video-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 44%;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 10px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .video-card { scroll-snap-align: start; }
  .video-card:not(.video-card--short) { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .video-card__thumb img { transition: none; }
}

/* ── Who buys from us: a card per trade, with links to what it needs ────── */
.trade-card { display: flex; flex-direction: column; }
.trade-card__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.trade-card__links .shape-jump__link { min-height: 36px; padding: 0 12px; font-size: 13px; }

/* ── Services ───────────────────────────────────────────────────────────── */
.service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  list-style: none;
}

.service-grid > li { display: flex; }

.service-card {
  position: relative;
  flex: 1;
  padding: clamp(24px, 2.4vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}

.service-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: linear-gradient(150deg, var(--green-700), var(--green-900));
  color: var(--gold-300);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 22px -14px rgba(15, 61, 46, 0.9);
  transition: transform 0.5s var(--ease-spring);
}

.service-card__icon .icon { width: 26px; height: 26px; stroke-width: 1.7; }
.service-card__title { font-size: 20px; letter-spacing: -0.02em; }
.service-card__text { margin-top: 8px; color: var(--text-2); }

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--gold-500) 40%, var(--line));
    box-shadow: var(--shadow-lg);
  }

  .service-card:hover::after { transform: scaleX(1); }
  .service-card:hover .service-card__icon { transform: rotate(-7deg) scale(1.07); }

  .service-card:hover .service-card__icon path,
  .service-card:hover .service-card__icon circle {
    stroke-dasharray: 1;
    animation: draw 1s var(--ease-out) both;
  }
}

/* ── How ordering works ─────────────────────────────────────────────────── */
.steps { --progress: 1; position: relative; }
.steps.is-tracking { --progress: 0; }
.steps__list { position: relative; display: grid; gap: 30px; list-style: none; }

.steps__line {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-strong);
}

.steps__line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-300));
  transform: scaleY(var(--progress));
  transform-origin: top;
}

.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }

.step__marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--gold-500);
  border-radius: 50%;
  background: var(--green-800);
  color: var(--gold-200);
  transition: background-color 0.5s, border-color 0.5s, color 0.5s, transform 0.6s var(--ease-spring), box-shadow 0.5s;
}

.step__marker .icon { width: 24px; height: 24px; }

.steps.is-tracking .step:not(.is-active) .step__marker {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text-3);
}

.steps.is-tracking .step.is-active .step__marker {
  transform: scale(1.06);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--gold-500) 18%, transparent);
}

.step__body { padding-top: 4px; }
.step__num { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eyebrow); }
.step__title { margin: 6px 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.step__text { max-width: 34ch; color: var(--text-2); }

@media (min-width: 900px) {
  .steps__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

  .steps__line {
    top: 28px;
    bottom: auto;
    left: 12.5%;
    right: 12.5%;
    width: auto;
    height: 2px;
  }

  .steps__line-fill {
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    transform: scaleX(var(--progress));
    transform-origin: left;
  }

  .step { grid-template-columns: 1fr; justify-items: center; gap: 20px; text-align: center; }
  .step__text { margin-inline: auto; }
}

/* ── Contact & quote ────────────────────────────────────────────────────── */
.contact-layout { display: grid; gap: 24px; align-items: start; }

@media (min-width: 1000px) {
  .contact-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; }
}

.quote-card {
  position: relative;
  padding: clamp(20px, 3.2vw, 40px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.quote-card__title { font-size: clamp(22px, 0.8vw + 19px, 27px); letter-spacing: -0.025em; }
.quote-card__intro { margin-top: 6px; margin-bottom: 22px; color: var(--text-3); font-size: 14px; }
.quote-card.is-sent .quote-card__intro { display: none; }
.form-grid { display: grid; gap: 18px; }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid color-mix(in srgb, var(--bad) 38%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bad) 9%, var(--surface));
  color: var(--bad-text);
  font-size: 14.5px;
  font-weight: 500;
  animation: shake 0.4s var(--ease-out);
}

.form-alert a { font-weight: 700; }

.quote-form__submit {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .quote-form__submit { flex-direction: row; align-items: center; gap: 18px; }
}

.quote-form__privacy { font-size: 13.5px; color: var(--text-3); }

.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(11, 42, 32, 0.25);
  border-top-color: var(--green-900);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.is-sending .btn__spinner { display: inline-block; }
.is-sending [data-submit] { opacity: 0.85; cursor: progress; }

.quote-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(28px, 5vw, 48px) 8px;
  text-align: center;
  animation: rise 0.6s var(--ease-out) both;
}

.quote-success__check { width: 92px; height: 92px; margin-bottom: 6px; animation: pop 0.6s var(--ease-spring) both; }

.quote-success__ring,
.quote-success__tick {
  fill: none;
  stroke: var(--ok);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.quote-success__ring {
  stroke-width: 3;
  transform: rotate(-90deg);
  transform-origin: center;
  transform-box: fill-box;
  animation: draw 0.7s var(--ease-out) 0.15s forwards;
}

.quote-success__tick { stroke-width: 4.5; animation: draw 0.45s var(--ease-out) 0.7s forwards; }
.quote-success__title { font-size: clamp(24px, 1vw + 20px, 30px); }
.quote-success__message { max-width: 44ch; color: var(--text-2); }
.quote-success__next { max-width: 44ch; color: var(--text-3); font-size: 14.5px; }
.quote-success__next:empty { display: none; }
.quote-success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }

.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 22px;
  background: linear-gradient(160deg, var(--green-800), var(--green-900) 60%, #082018);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1000px) {
  .contact-card { position: sticky; top: calc(var(--header-h) + 20px); }
}

.contact-card__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 55% at 100% 0%, rgba(226, 173, 79, 0.24), transparent 70%),
    linear-gradient(rgba(246, 220, 155, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(246, 220, 155, 0.05) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 75%);
  mask-image: linear-gradient(200deg, #000, transparent 75%);
}

.contact-card__title { font-size: clamp(22px, 0.8vw + 19px, 27px); letter-spacing: -0.025em; }
.contact-list { display: grid; margin-top: 18px; list-style: none; }
.contact-list:empty { display: none; }

.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child { border-bottom: 0; }

.contact-item__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(226, 173, 79, 0.25);
  border-radius: 12px;
  background: rgba(226, 173, 79, 0.1);
  color: var(--gold-300);
}

.contact-item__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.contact-item__label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

.contact-item__value {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contact-item__value { display: inline-block; align-self: flex-start; margin-block: -8px; padding-block: 8px; }
a.contact-item__value:hover { color: var(--gold-200); text-decoration: underline; text-underline-offset: 3px; }

.contact-item__action {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: 44px;
  color: var(--gold-200);
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.contact-item__action .icon { width: 16px; height: 16px; }
.contact-card__empty { margin-top: 18px; color: var(--text-2); }
.contact-card__actions { display: grid; gap: 10px; margin-top: 22px; }
.contact-card__actions:empty { display: none; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  padding-top: clamp(56px, 6vw, 88px);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(21, 90, 67, 0.35), transparent 70%),
    var(--green-950);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__grid { display: grid; gap: 36px; padding-bottom: 48px; }

@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1.1fr 1.1fr; gap: 40px; }
}

.site-footer__about { max-width: 44ch; margin-top: 16px; color: var(--text-2); font-size: 15px; }

/* Social media icons (Website details in the admin portal decides which show). */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.social-links[hidden] { display: none; }
.social-link { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line, rgb(127 127 127 / 30%)); border-radius: 12px; color: inherit; transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.social-link .icon { width: 22px; height: 22px; }
.social-link:hover, .social-link:focus-visible { border-color: var(--gold-500); color: var(--gold-500); transform: translateY(-2px); }
.social-links--footer .social-link { color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .social-link { transition: none; } .social-link:hover { transform: none; } }

.site-footer__title {
  margin: 8px 0 14px;
  color: var(--gold-200);
  font: 600 12px/1.2 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer__links,
.site-footer__contact { display: grid; gap: 2px; list-style: none; }

.site-footer__links a,
.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.site-footer__contact li { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text-2); }
.site-footer__contact li > span:nth-child(2) { flex: 0 1 auto; min-width: 0; }
.site-footer__contact li > a:not(:first-child) { flex: none; color: var(--gold-200); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__contact .icon { width: 18px; height: 18px; color: var(--gold-500); }
.site-footer__links a:hover,
.site-footer__contact a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__cta p { margin-bottom: 18px; color: var(--text-2); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 14px;
}

/* ── Floating contact button ────────────────────────────────────────────── */
.fab {
  position: fixed;
  z-index: 45;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f3cd7c, var(--gold-500));
  color: var(--green-900);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  opacity: 0;
  transform: translateY(18px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.5s var(--ease-spring);
  --focus: var(--green-900);
}

.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab .icon { width: 28px; height: 28px; }

/* ── Scroll reveals (only when JavaScript runs; see js/boot.js) ─────────── */
@media (prefers-reduced-motion: no-preference) {
  .has-reveal [data-reveal] {
    transition: opacity 0.85s var(--ease-out) var(--reveal-delay, 0ms), translate 0.95s var(--ease-out) var(--reveal-delay, 0ms);
  }

  .has-reveal [data-reveal]:not(.is-visible) { opacity: 0; translate: 0 28px; }
}

/* Pause decorative loops while they are off screen. */
.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after { animation-play-state: paused !important; }

/* ── Keyframes ──────────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes stage-in { from { opacity: 0; transform: scale(0.94) translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes grid-drift { to { transform: translate3d(64px, 64px, 0); } }
@keyframes drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-12vmax, 8vmax, 0) scale(1.15); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(14vmax, -10vmax, 0) scale(0.95); } }
@keyframes drift-c { from { transform: translate3d(-6vmax, 4vmax, 0) scale(0.9); } to { transform: translate3d(8vmax, -6vmax, 0) scale(1.1); } }
@keyframes breathe { from { opacity: 0.75; transform: scale(0.96); } to { opacity: 1; transform: scale(1.04); } }
@keyframes floor { 0%, 100% { opacity: 0.85; transform: scaleX(1); } 50% { opacity: 0.6; transform: scaleX(0.92); } }
@keyframes stack-float { 0%, 100% { transform: translate3d(0, -0.5em, 0); } 50% { transform: translate3d(0, 0.5em, 0); } }
@keyframes bar-float { from { transform: translate3d(0, -0.35em, 0) rotate(-0.35deg); } to { transform: translate3d(0, 0.35em, 0) rotate(0.35deg); } }
@keyframes bar-sweep { 0%, 52% { transform: translateX(-150%) skewX(-24deg); } 80%, 100% { transform: translateX(720%) skewX(-24deg); } }
@keyframes cap-glint { 0%, 46% { opacity: 0; } 51% { opacity: 0.85; } 62%, 100% { opacity: 0; } }
@keyframes offcut { 0%, 22% { transform: translateX(0); } 46%, 78% { transform: translateX(4.6em); } 100% { transform: translateX(0); } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.65; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.6); } 65% { opacity: 1; transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

/* ── Reduced motion: no movement, everything visible ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html,
  html.smooth-scroll { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .marquee__viewport { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .metal-card { transform: none; }
}

/* ── 404 page ───────────────────────────────────────────────────────────── */
.not-found {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(70% 50% at 70% 0%, rgba(21, 90, 67, 0.6), transparent 70%),
    linear-gradient(180deg, var(--green-900), var(--green-950));
}

.not-found__header { display: flex; align-items: center; min-height: var(--header-h); }

.not-found__main {
  display: grid;
  flex: 1;
  place-items: center;
  padding-block: 32px 64px;
  text-align: center;
}

.not-found__code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.04em;
  margin: 0 auto 8px;
  font: 800 clamp(104px, 24vw, 210px)/0.9 var(--font-display);
  letter-spacing: -0.06em;
}

.not-found__digit {
  background: linear-gradient(180deg, #ffffff 15%, #c3ccd5 55%, #7c8995);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.not-found__rod {
  --c-hi: #ffe2cf;
  --c-light: #f2a679;
  --c-mid: #d27443;
  --c-dark: #9c4a22;
  position: relative;
  width: 0.72em;
  height: 0.72em;
  margin-inline: 0.05em;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.7), transparent 45%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 7%, rgba(0, 0, 0, 0.07) 7% 8.5%),
    radial-gradient(circle at 50% 50%, var(--c-hi), var(--c-light) 50%, var(--c-mid) 84%, var(--c-dark));
  box-shadow: inset 0 0 0 0.03em rgba(0, 0, 0, 0.22), 0 0.08em 0.2em rgba(0, 0, 0, 0.45);
  animation: rod-spin 14s linear infinite;
}

@keyframes rod-spin { to { transform: rotate(360deg); } }

.not-found__title { font-size: clamp(26px, 2vw + 18px, 40px); letter-spacing: -0.03em; }
.not-found__text { max-width: 44ch; margin: 14px auto 0; color: var(--text-2); font-size: 17px; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.not-found__footer { padding-block: 20px max(20px, env(safe-area-inset-bottom)); color: var(--text-3); font-size: 14px; text-align: center; }

/* ── Hero: place, open now and the Urdu line ────────────────────────────── */
.hero__place {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}

.hero__place .icon { width: 18px; height: 18px; color: var(--gold-500); }
.hero__place:empty { display: none; }

.hero__urdu {
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  color: var(--text-2);
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', 'Noto Naskh Arabic', 'Segoe UI', serif;
  font-size: 18px;
  line-height: 2.1;
}

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(208, 59, 59, 0.14);
  color: var(--bad-text);
  font: 600 12.5px/1.5 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.open-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.open-badge.is-open { background: rgba(12, 163, 12, 0.16); color: var(--ok-text); }

/* ── WhatsApp and "Add to quote" buttons ───────────────────────────────── */
.btn--whatsapp {
  flex: none;
  width: var(--btn-h);
  padding: 0;
  background: #128c7e;
  color: #ffffff;
  box-shadow: 0 8px 18px -12px rgba(18, 140, 126, 0.9);
}

.btn--whatsapp .icon { width: 21px; height: 21px; }

@media (hover: hover) {
  .btn--whatsapp:hover { background: #0e7065; transform: translateY(-1px); }
  .btn--whatsapp:hover .icon:last-child { transform: none; }
}

[data-quote-add][aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--ok) 55%, transparent);
  background: color-mix(in srgb, var(--ok) 13%, transparent);
  color: var(--ok-text);
}

.product-card__actions { display: flex; gap: 8px; margin-top: auto; }
.product-card .product-card__actions .btn { margin-top: 0; }
.product-card__actions [data-quote-add] { flex: 1 1 auto; min-width: 0; }

.catalog-page-link { margin-top: 18px; text-align: center; }
.catalog-page-link:empty { display: none; }

.catalog-page-link a,
.metal-card__page {
  color: var(--eyebrow);
  font-size: 14.5px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.metal-card__page { align-self: flex-start; margin-top: -2px; }

/* Other stock (earthing chemical by the bag): a drawing of the product instead of an element tile. */
.element-tile--goods { display: grid; place-items: center; }
.element-tile__art { display: grid; place-items: center; width: 72%; margin-top: -16%; }
.element-tile--goods .element-tile__name { white-space: normal; line-height: 1.25; }
.element-tile__art svg { width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.28)); }

/* ── Questions ──────────────────────────────────────────────────────────── */
.faq-layout { display: grid; gap: 8px 48px; }

@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
}

.faq-list { display: grid; gap: 10px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.faq-item[open] { border-color: var(--line-strong); }

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 18px;
  color: var(--text);
  font: 600 16px/1.4 var(--font-display);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__chevron { flex: none; width: 20px; height: 20px; color: var(--text-3); transition: transform 0.3s var(--ease-out); }
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); }
.faq-item__a { padding: 0 18px 18px; color: var(--text-2); font-size: 15.5px; line-height: 1.65; }

/* ── The quote list: in the form, the bar at the bottom and the toast ──── */
.quote-list {
  margin-bottom: 20px;
  padding: 14px 16px 6px;
  border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--ok) 6%, var(--surface));
}

.quote-list__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.quote-list__title { font: 700 16px/1.3 var(--font-display); }
.quote-list__count { color: var(--text-3); font-weight: 600; }

.quote-list__clear {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bad-text);
  font: 600 14px/1 var(--font-body);
  cursor: pointer;
}

.quote-list__items { margin-top: 8px; list-style: none; }

.quote-line {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) minmax(160px, 220px) 38px;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.quote-line__num { color: var(--text-3); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.quote-line__label { font-weight: 600; overflow-wrap: anywhere; }
.quote-line__amount .input { min-width: 0; }

.quote-line__remove {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.quote-line__remove:hover { border-color: var(--bad); color: var(--bad-text); }

@media (max-width: 560px) {
  .quote-line { grid-template-columns: 24px minmax(0, 1fr) 38px; }
  .quote-line__amount { grid-column: 2 / 4; grid-row: 2; }
  .quote-line__remove { grid-column: 3; grid-row: 1; }
}

.quote-bar {
  position: fixed;
  z-index: 44;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, calc(100% - 2 * var(--gutter) - 76px));
  min-height: 60px;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(8, 31, 23, 0.94);
  color: #eef4f0;
  text-decoration: none;
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.7);
  transform: translateX(-50%);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.quote-bar.is-tucked { opacity: 0; transform: translate(-50%, 130%); pointer-events: none; }

.quote-bar__count {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--gold-500);
  color: var(--green-900);
  font: 700 16px/1 var(--font-display);
}

.quote-bar__text { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.35; }
.quote-bar__text strong { font-size: 15px; }
.quote-bar__text span { overflow: hidden; color: rgba(238, 244, 240, 0.72); text-overflow: ellipsis; white-space: nowrap; }

.quote-bar__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f3cd7c, var(--gold-500));
  color: var(--green-900);
  font-weight: 700;
}

.quote-bar__go .icon { width: 18px; height: 18px; }

.site-toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 76px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  max-width: min(520px, calc(100% - 2 * var(--gutter)));
  padding: 12px 16px;
  border-radius: 14px;
  background: #0b2a20;
  color: #eef4f0;
  font-size: 14.5px;
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
}

.site-toast:empty { display: none; }
.site-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.site-toast__action { color: var(--gold-300); font-weight: 700; text-underline-offset: 3px; }

/* ── Phones: call, WhatsApp and the quote form one tap away ────────────── */
.action-bar { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  .action-bar {
    position: fixed;
    z-index: 46;
    inset: auto 0 0;
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 31, 23, 0.96);
    box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .action-bar__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    border-radius: 12px;
    color: #eef4f0;
    font: 600 12.5px/1.1 var(--font-body);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .action-bar__item .icon { width: 22px; height: 22px; }
  .action-bar__item:active { background: rgba(255, 255, 255, 0.08); }
  .action-bar__item--whatsapp { color: #6ee7b7; }
  .action-bar__item--quote { color: var(--gold-300); }

  .action-bar__count {
    position: absolute;
    top: 4px;
    left: calc(50% + 8px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--gold-500);
    color: var(--green-900);
    font: 700 11px/18px var(--font-body);
    text-align: center;
  }

  html.menu-open .action-bar { display: none; }
  .fab { display: none; }

  /* The action bar's "Get a quote" shows how many sizes are in the list. */
  .quote-bar { display: none !important; }
  .site-toast { bottom: calc(64px + env(safe-area-inset-bottom) + 12px); }
  .hero__urdu { font-size: 16px; }
}

/* ── A metal's own page (/aluminium, /earthing-materials) ──────────────── */
.cat-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(24px, 4vw, 56px)) 0 clamp(40px, 5vw, 72px);
  background:
    radial-gradient(70% 70% at 80% 0%, color-mix(in srgb, var(--glow-a) 30%, transparent), transparent 70%),
    linear-gradient(180deg, var(--green-900) 0%, #08231a 70%, #061c15 100%);
}

.cat-hero__inner { position: relative; }
.cat-hero__inner > * { max-width: 900px; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; color: var(--text-3); font-size: 14px; list-style: none; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; opacity: 0.6; }
.breadcrumb a { color: var(--text-2); text-underline-offset: 3px; }

.cat-hero__title {
  margin-top: 10px;
  font-size: clamp(30px, 3vw + 18px, 54px);
  line-height: 1.07;
  letter-spacing: -0.035em;
}

.cat-hero__lead { max-width: 64ch; margin-top: 16px; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.cat-hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; list-style: none; }

.cat-hero__facts li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
}

.cat-hero__facts strong { color: var(--text); }
.cat-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.shape-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.shape-jump:empty { display: none; }

.shape-jump__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.shape-jump__link span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.shape-jump__link:hover { border-color: var(--green-700); background: rgba(21, 90, 67, 0.07); }
.shape-jump__link[aria-current="page"] { border-color: var(--green-700); background: var(--green-700); color: #fff; }
.shape-jump__link[aria-current="page"] span { color: rgba(255, 255, 255, 0.78); }

.size-group { margin-top: 40px; scroll-margin-top: calc(var(--header-h) + 16px); }

.size-group__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: clamp(20px, 0.9vw + 16px, 26px);
  letter-spacing: -0.02em;
}

.size-group__icon svg { display: block; width: 42px; height: 42px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18)); }
.size-group__title small { color: var(--text-3); font: 500 14.5px/1.3 var(--font-body); letter-spacing: 0; }

.size-table-wrap {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.size-table { width: 100%; border-collapse: collapse; font-size: 15px; }

.size-table th,
.size-table td { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }

.size-table thead th {
  background: var(--surface-alt);
  color: var(--text-2);
  font: 600 11.5px/1.2 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.size-table tbody tr:last-child > * { border-bottom: 0; }
.size-table tbody th { font: 700 16px/1.2 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.size-table tbody td { color: var(--text-2); }
.size-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.size-table tbody td.num { color: var(--text); font-weight: 600; }
.size-table__actions { text-align: right; white-space: nowrap; }
.size-table__actions .btn { --btn-h: 40px; font-size: 14px; vertical-align: middle; }
.size-table__actions .btn + .btn { margin-left: 6px; }

@media (hover: hover) {
  .size-table tbody tr:hover > * { background: color-mix(in srgb, var(--green-700) 5%, transparent); }
}

@media (max-width: 640px) {
  .size-table thead { display: none; }

  .size-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

  .size-table tbody tr:last-child { border-bottom: 0; }
  .size-table tbody tr > * { grid-column: 1; padding: 0; border: 0; text-align: left; }
  .size-table tbody .size-table__actions { grid-column: 2; grid-row: 1 / span 4; }
  .size-table tbody td.num { text-align: left; }
  .size-table tbody td.num::after { content: ' per metre'; color: var(--text-3); font-weight: 500; }
  #sheet .size-table tbody td.num::after { content: ' per m²'; }
}

.visit-layout { display: grid; gap: 24px; }

@media (min-width: 960px) {
  .visit-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
}

.visit-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.visit-list { display: grid; margin-top: 10px; list-style: none; }
.visit-list .contact-item__icon { color: var(--gold-700); }
.visit-list a.contact-item__value:hover { color: var(--green-700); }
.visit-list .contact-item__action { color: var(--eyebrow); }
.visit-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.visit-card__actions .btn--ghost { border-color: var(--line-strong); background: transparent; color: var(--text); }

.related-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-alt); }
.related-card__title { font-size: 19px; letter-spacing: -0.015em; }
.related-list { display: grid; gap: 10px; margin-top: 14px; list-style: none; }

.related-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.related-list a span { color: var(--text-3); font-size: 14px; }
.related-list a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

@media (prefers-color-scheme: dark) {
  .visit-list .contact-item__icon { color: var(--gold-300); }
  .visit-list a.contact-item__value:hover { color: var(--gold-200); }
}

/* ── Metals on order: compact cards after the main ones ─────────────────── */
.order-metals {
  flex: 1 1 100%;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.order-metals__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.order-metals__title { font-size: 19px; letter-spacing: -0.015em; }
.order-metals__text { max-width: 62ch; color: var(--text-2); font-size: 14.5px; }

.order-metals__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 10px;
  margin-top: 14px;
  list-style: none;
}

.order-metal {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.order-metal__tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--c-light, #dfe5eb), var(--c-hi, #ffffff) 30%, var(--c-mid, #aab5c0) 70%, var(--c-dark, #77838f));
  color: var(--tile-ink, #14211b);
  font: 700 16px/1 var(--font-display);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 12px -8px rgba(0, 0, 0, 0.5);
}

.order-metal__text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.order-metal__name { color: var(--text); font-weight: 700; text-decoration: none; }
.order-metal__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.order-metal__meta { overflow: hidden; color: var(--text-3); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.order-metal__sizes {
  flex: none;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: 600 13.5px/1 var(--font-body);
  cursor: pointer;
}

.order-metal__sizes:hover { border-color: var(--green-700); background: rgba(21, 90, 67, 0.07); }
