/* ============================================================================
   VALMERE CARPET PROTOTYPE (ANZ Flooring)
   BRAND TOKENS + COMPONENTS (everything Tailwind utilities don't cover)

   >>> BRAND COLOURS LIVE HERE, verified from the live armstrongflooring.au <<<
   ============================================================================ */
:root {
  --af-teal: #125B53;       /* primary brand teal: buttons, links, utility bar */
  --af-teal-dark: #0d453f;
  --af-charcoal: #212529;   /* dark sections + footer */
  --af-ink: #111111;        /* near-black text */
  --af-panel: #F4F4F4;
  --af-panel-2: #EAEAEA;
  --af-timber: #B8895A;     /* warm accent, use sparingly */
  --af-white: #ffffff;
}

html { scroll-behavior: smooth; }
body {
  /* Mulish = "Muli", the typeface verified from the live armstrongflooring.au
     build, kept across the portfolio for the shared-design-system story. */
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--af-ink);
  background: var(--af-white);
  -webkit-font-smoothing: antialiased;
}

/* x-cloak: hide Alpine-controlled elements until Alpine initialises */
[x-cloak] { display: none !important; }

/* ---------------------------------------------------------------- wordmark */
/* Valmere lockup: the VALMERE wordmark over "by ANZFlooring" using the
   supplied ANZ Flooring logo. Swap the top line for the supplied asset when
   Valmere identity files are provided. */
.vm-wordmark { display: inline-flex; flex-direction: column; gap: 4px; line-height: 1; white-space: nowrap; }
.vm-name {
  font-size: 1.5rem; font-weight: 800; letter-spacing: 0.32em;
  color: var(--af-ink);
}
/* Timber accent on the V: readable on both white and charcoal backgrounds */
.vm-name::first-letter { color: var(--af-timber); }
.vm-by { display: inline-flex; align-items: baseline; gap: 0.4rem; }
.vm-by em {
  font-style: normal; font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.08em; color: #8a8a8a;
}
.vm-by img { height: 11px; width: auto; align-self: center; }
/* Dark-background variant (footer, gateway, pitch hero) */
.vm-wordmark.on-dark .vm-name { color: #fff; }
.vm-wordmark.on-dark .vm-by em { color: rgba(255,255,255,0.55); }
.vm-wordmark.on-dark .vm-by img { filter: brightness(0) invert(1); opacity: 0.75; }

/* Armstrong wordmark kept for family/footer references */
.af-wordmark { font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.af-wordmark b { font-weight: 700; color: var(--af-ink); }
.af-wordmark span { font-weight: 300; color: var(--af-ink); }

/* ------------------------------------------------------------------ buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--af-teal); color: #fff; font-weight: 600;
  padding: .8rem 1.6rem; border-radius: 2px; font-size: .92rem;
  transition: background .15s ease, transform .15s ease;
}
.btn-primary:hover { background: var(--af-teal-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1.5px solid var(--af-teal); color: var(--af-teal); font-weight: 600;
  padding: .8rem 1.6rem; border-radius: 2px; font-size: .92rem;
  transition: background .15s ease, color .15s ease;
}
.btn-outline:hover { background: var(--af-teal); color: #fff; }
.btn-ghost-light {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1.5px solid rgba(255,255,255,.7); color: #fff; font-weight: 600;
  padding: .8rem 1.6rem; border-radius: 2px; font-size: .92rem;
  transition: background .15s ease;
}
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }

/* ------------------------------------------------------------------- header */
.nav-link {
  position: relative; font-size: .88rem; font-weight: 500; color: var(--af-ink);
  padding: .4rem 0; letter-spacing: .01em;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--af-teal); transition: width .2s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--af-teal); font-weight: 600; }

/* region switcher pills (utility bar) */
.region-pill {
  padding: .1rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
  color: rgba(255,255,255,.75); transition: all .15s ease; line-height: 1.4rem;
}
.region-pill.active { background: #fff; color: var(--af-teal); }

/* -------------------------------------------------------------- prototype badge */
.prototype-badge {
  position: fixed; bottom: 14px; left: 14px; z-index: 9999;
  background: var(--af-charcoal); color: #fff; font-size: .66rem; font-weight: 700;
  letter-spacing: .14em; padding: .35rem .7rem; border-radius: 3px;
  border: 1px solid rgba(255,255,255,.25); opacity: .92; pointer-events: none;
}
.prototype-badge::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--af-timber); margin-right: .45rem; vertical-align: 1px;
}

/* ------------------------------------------------------------------ cards */
.product-card {
  background: #fff; border: 1px solid var(--af-panel-2);
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: 0 12px 32px rgba(17,17,17,.10); transform: translateY(-3px); }

.swatch-dot {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.swatch-dot:hover { transform: scale(1.15); }
.swatch-dot.selected { box-shadow: 0 0 0 2px var(--af-teal); transform: scale(1.12); }

/* spec table */
.spec-table tr { border-bottom: 1px solid var(--af-panel-2); }
.spec-table th { text-align: left; font-weight: 600; padding: .65rem 1rem .65rem 0; white-space: nowrap; color: #555; font-size: .85rem; }
.spec-table td { padding: .65rem 0; font-size: .9rem; }

/* ------------------------------------------------------------ pitch layer */
.tick::before { content: "✓"; color: var(--af-teal); font-weight: 700; margin-right: .5rem; }

.timeline-track { position: relative; }
.timeline-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 2px;
  background: var(--af-panel-2);
}
.timeline-node {
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  border: 3px solid var(--af-teal); position: relative; z-index: 1; margin-bottom: .8rem;
}

/* ------------------------------------------------------------- visualiser */
/* Pinned material-board swatch chip over the room photo */
.swatch-chip {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  pointer-events: none;
  transition: left .35s ease, top .35s ease;
}
.swatch-chip canvas {
  width: 108px; height: 108px; border-radius: 50%;
  border: 4px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
@media (min-width: 1024px) { .swatch-chip canvas { width: 150px; height: 150px; } }
.swatch-chip span {
  background: rgba(17,17,17,.78); color: #fff; font-size: .7rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; backdrop-filter: blur(2px);
}

.scene-thumb {
  border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease; background: var(--af-panel);
}
.scene-thumb:hover { transform: translateY(-2px); }
.scene-thumb.active { border-color: var(--af-teal); }
.scene-thumb canvas { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------- locator */
#map { height: 420px; border-radius: 6px; z-index: 0; }
@media (min-width: 1024px) { #map { height: 560px; } }
.store-item { border: 1px solid var(--af-panel-2); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.store-item:hover { border-color: var(--af-teal); }
.store-item.active { border-color: var(--af-teal); background: #f2f7f6; }

/* --------------------------------------------------------------- utilities */
.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--af-teal);
}
.fade-in { animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* compare drawer */
.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--af-charcoal); color: #fff;
  box-shadow: 0 -8px 30px rgba(0,0,0,.25);
}

/* JSON payload viewer (contact page CRM panel) */
.json-view {
  background: #0e1f1c; color: #d7e8e4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem; line-height: 1.55; border-radius: 6px; padding: 1rem 1.2rem;
  overflow-x: auto; white-space: pre;
}
.json-view .k { color: #7fc8bc; }
.json-view .s { color: #e8c98a; }

/* print friendliness for the proposal page */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
