/* ════════════════════════════════════════════════════════════════════
   WALLER SUPPLY — SHARED DESIGN SYSTEM  (single source of truth)
   --------------------------------------------------------------------
   Every page links this file. DO NOT copy these rules back into a page's
   inline <style>. To change the nav, hero, buttons, footer, colors, or
   type scale site-wide, edit THIS file once.

   HERO TIERS (set on the <section>/<header class="hero">):
     • class="hero"                → tall hero  (home + main service pages)
     • class="hero hero--compact"  → shorter hero (listing/utility pages
                                      e.g. industries, resources)

   To start a NEW page: copy _template.html — it already links this file
   and uses the canonical nav / hero / footer markup, so it inherits all
   of these rules automatically.
   ════════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────────────── */
:root {
  --ink:       #0A1628;
  --ink-mid:   #111F35;
  --ink-lite:  #182B48;
  --cobalt:    #2D6B9F;
  --cobalt-hi: #3D84C0;
  --gold:      #C4A265;
  --gold-hi:   #D9B87A;
  --gold-pale: #EDD9A8;
  --gold-dim:  rgba(196,162,101,0.15);
  --cream:     #F4EDE0;
  --cream-dim: rgba(244,237,224,0.06);
  --stone:     #A89880;
  --stone-dim: #6B6050;
  --white:     #FAF7F2;
  --text:      #B8AE9C;
  --dim:       #5A5248;

  --f-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --f-serif:   'Fraunces', Georgia, serif;
  --f-body:    'DM Sans', system-ui, sans-serif;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);

  /* Swap this if the Zoho client-portal URL changes */
  --portal: "https://books.zoho.com/portal/wallersupply";

  /* Fixed nav height — used for scroll offset + hero top padding */
  --nav-h: 72px;

  /* Type scale (fluid). Reuse these so headings stay consistent. */
  --step-hero: clamp(3rem, 11vw, 11rem);    /* hero headline — refined cap */
  --step-h2:   clamp(2.5rem, 5vw, 4.5rem);  /* major section heading       */
  --step-h3:   clamp(1.4rem, 2.5vw, 2rem);  /* sub-heading / card title    */
  --step-body: clamp(0.95rem, 1.3vw, 1.05rem);
}

/* ─── RESET / BASE ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  overflow-x: hidden;   /* clip the off-screen mobile menu so it never adds a horizontal scrollbar */
}
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Linen grain — the "handmade" quality */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 400px 400px;
}

/* ─── CUSTOM CURSOR ─────────────────────────────────────────────────── */
.cursor-dot {
  position: fixed; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, opacity 0.2s;
}
.cursor-ring {
  position: fixed; width: 32px; height: 32px;
  border: 1px solid rgba(196,162,101,0.4); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.18s var(--ease), width 0.3s, height 0.3s, border-color 0.3s;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 56px; height: 56px;
  border-color: rgba(196,162,101,0.65);
}

/* ─── SHARED KEYFRAMES ──────────────────────────────────────────────── */
@keyframes slideUp   { from { opacity:0; transform: translateY(40px); clip-path: inset(100% 0 0 0); }
                       to   { opacity:1; transform: none; clip-path: inset(0% 0 0 0); } }
@keyframes slideRight{ from { opacity:0; transform: translateX(-20px); } to { opacity:1; transform: none; } }
@keyframes fadeUp    { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: none; } }
@keyframes fadeIn    { from { opacity:0; } to { opacity:1; } }
@keyframes slowZoom  { from { transform: scale(1.04); } to { transform: scale(1); } }
@keyframes scrollDown{ 0% { top:0; opacity:1; } 100% { top:100%; opacity:0; } }

/* ─── NAVIGATION ────────────────────────────────────────────────────── */
nav {
  position: fixed; inset: 0 0 auto; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  height: var(--nav-h);
  background: transparent;
  transition: background 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
nav.stuck {
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(196,162,101,0.1);
}
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-items { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-items a {
  font-family: var(--f-body); font-size: 11px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone);
  transition: color 0.2s; position: relative;
}
.nav-items a::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.35s var(--ease-out);
}
.nav-items a:hover { color: var(--cream); }
.nav-items a:hover::after { width: 100%; }
.nav-items a.active { color: var(--gold); }
.nav-end { display: flex; align-items: center; gap: 1rem; }
.nav-portal {
  font-size: 10px; font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim);
  padding: 5px 13px; border: 1px solid rgba(107,96,80,0.3);
  border-radius: 1px; transition: all 0.2s;
}
.nav-portal:hover { color: var(--gold-pale); border-color: rgba(196,162,101,0.4); }

/* Hamburger (animates to an X when .open) */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 1px; background: var(--stone); transition: transform 0.3s var(--ease), opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 5px; }
.nav-dd-arrow { width: 8px; height: 8px; flex-shrink: 0; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dd-arrow { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: -1.25rem;
  background: rgba(10,22,40,0.97); backdrop-filter: blur(16px);
  border: 1px solid rgba(196,162,101,0.15); border-radius: 1px;
  padding: 0.4rem 0; min-width: 185px; list-style: none;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { opacity: 1; pointer-events: auto; transform: none; }
.dropdown-menu li a {
  display: block; padding: 9px 1.25rem;
  font-family: var(--f-body); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--stone);
  transition: color 0.15s, background 0.15s;
}
.dropdown-menu li a::after { display: none !important; }
.dropdown-menu li a:hover { color: var(--cream); background: rgba(196,162,101,0.06); }
.dropdown-menu li a.active { color: var(--gold); }

/* Full-screen mobile menu */
.mobile-nav {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(10,22,40,0.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
}
.mobile-nav.open { transform: none; }
.mobile-nav a { font-family: var(--f-display); font-size: 3rem; letter-spacing: 0.06em; color: var(--cream); transition: color 0.2s; }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-cta {
  font-size: 11px !important; font-family: var(--f-body) !important;
  padding: 12px 28px; background: var(--gold); color: var(--ink) !important;
  letter-spacing: 0.12em !important; text-transform: uppercase; border-radius: 1px; margin-top: 1rem;
}

/* ─── HERO (tiered + refined) ───────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  min-height: 88vh; min-height: 88svh;
  padding: clamp(7rem, 11vw, 9rem) clamp(1.5rem, 4vw, 3.5rem) clamp(3.5rem, 6vw, 5.5rem);
}
.hero.hero--compact { min-height: 60vh; min-height: 60svh; }
/* Listing/utility pages use a more restrained headline so multi-line titles
   never overgrow the shorter hero. */
.hero--compact .hero-h1 { font-size: clamp(2.75rem, 8vw, 7rem); line-height: 0.95; }

.hero-bg { position: absolute; inset: 0; background: var(--ink-mid); overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.3; filter: grayscale(30%) contrast(1.1);
  transform: scale(1.04);
  animation: slowZoom 18s var(--ease) forwards;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--ink) 20%, rgba(10,22,40,0.45) 60%, rgba(10,22,40,0.15) 100%),
    linear-gradient(to right, rgba(10,22,40,0.6) 0%, transparent 60%);
}
.hero-side-label {
  display: none !important;
  position: absolute; left: clamp(1.5rem, 2.5vw, 2.5rem); bottom: 40%;
  writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg);
  font-size: 9px; font-weight: 400; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--dim);
  align-items: center; gap: 10px;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }

.hero-overline {
  display: flex; align-items: center; gap: 14px; margin-bottom: 1.5rem;
  opacity: 0; animation: slideRight 0.8s var(--ease) 0.3s forwards;
}
.hero-overline-line { width: 36px; height: 1px; background: var(--gold); }
.hero-overline span {
  font-size: 10px; font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}

.hero-h1 {
  font-family: var(--f-display);
  font-size: var(--step-hero);
  line-height: 0.9; letter-spacing: 0.01em;
  color: var(--cream); margin-bottom: 1.25rem;
}
.hero-h1 .w1 { display: block; opacity: 0; animation: slideUp 0.9s var(--ease) 0.40s forwards; }
.hero-h1 .w2 { display: block; opacity: 0; animation: slideUp 0.9s var(--ease) 0.55s forwards; color: var(--gold); }
.hero-h1 .w3 { display: block; opacity: 0; animation: slideUp 0.9s var(--ease) 0.70s forwards; }

.hero-sub-row {
  display: flex; align-items: flex-start; gap: 3rem; flex-wrap: wrap;
  opacity: 0; animation: fadeIn 0.9s var(--ease) 1s forwards;
}
.hero-sub, .hero-sub-serif {
  font-family: var(--f-serif); font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 300; font-style: italic; color: var(--stone);
  max-width: 560px; line-height: 1.6;
}
.hero-sub strong, .hero-sub-serif strong { color: var(--cream); font-style: normal; font-weight: 300; }
.hero-ctas { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.75rem; }

.hero-scroll {
  position: absolute; right: clamp(1.5rem, 3vw, 3rem); bottom: clamp(2rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
  opacity: 0; animation: fadeIn 1s var(--ease) 1.5s forwards;
}
.hero-scroll-track { width: 1px; height: 60px; background: rgba(196,162,101,0.15); position: relative; overflow: hidden; }
.hero-scroll-fill { position: absolute; top: 0; left: 0; right: 0; height: 50%; background: var(--gold); animation: scrollDown 2s ease-in-out infinite; }
.hero-scroll span { font-size: 8px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }

/* ─── BUTTONS ───────────────────────────────────────────────────────── */
.btn-gold, .btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; background: var(--gold); color: var(--ink);
  font-family: var(--f-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 1px; transition: background 0.2s, transform 0.15s;
}
.btn-gold:hover, .btn-primary:hover { background: var(--gold-hi); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border: 1px solid rgba(168,152,128,0.3);
  font-family: var(--f-body); font-size: 11px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone);
  border-radius: 1px; transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--cream); border-color: rgba(196,162,101,0.4); }
.arrow-right { width: 16px; height: 16px; overflow: visible; flex-shrink: 0; transition: transform 0.2s; }
a:hover .arrow-right, button:hover .arrow-right { transform: translateX(3px); }

/* ─── FORM PRIMITIVES ───────────────────────────────────────────────── */
.form-h { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: 0.04em; color: var(--cream); margin-bottom: 1.75rem; }
.fg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.fl { display: block; font-size: 9px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.fi, .fs, .ft {
  width: 100%; padding: 10px 13px;
  background: rgba(10,22,40,0.7); border: 1px solid rgba(196,162,101,0.12);
  border-radius: 1px; color: var(--cream); font-family: var(--f-body);
  font-size: 0.88rem; font-weight: 300; outline: none; transition: border-color 0.2s;
}
.fi:focus, .fs:focus, .ft:focus { border-color: var(--cobalt); }
.ft { resize: vertical; min-height: 90px; }
.fs option { background: var(--ink-mid); }
.fr { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fsubmit {
  width: 100%; padding: 13px; background: var(--gold); color: var(--ink);
  font-family: var(--f-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; border: none;
  border-radius: 1px; cursor: pointer; margin-top: 0.5rem;
  transition: background 0.2s, transform 0.15s;
}
.fsubmit:hover { background: var(--gold-hi); transform: translateY(-1px); }
.fnote { font-size: 0.7rem; color: var(--dim); text-align: center; margin-top: 0.625rem; }

/* ─── FOOTER ────────────────────────────────────────────────────────── */
footer { background: var(--ink); border-top: 1px solid rgba(196,162,101,0.07); padding: clamp(3rem,5vw,4rem) clamp(1.5rem,6vw,5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(2rem,4vw,4rem); padding-bottom: 3rem; border-bottom: 1px solid rgba(196,162,101,0.07); margin-bottom: 2rem; }
.footer-logo { height: 32px; width: auto; margin-bottom: 1.25rem; display: block; }
.footer-strapline { font-size: 0.83rem; color: var(--dim); line-height: 1.7; max-width: 280px; margin-bottom: 1.25rem; }
.footer-bb { display: inline-flex; align-items: center; gap: 10px; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cobalt-hi); text-decoration: none; border: 1px solid rgba(45,107,159,0.2); padding: 8px 14px; border-radius: 2px; transition: border-color 0.2s; }
.footer-bb:hover { border-color: rgba(45,107,159,0.4); }
.footer-bb-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cobalt-hi); flex-shrink: 0; }
.footer-col-title { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 1rem; }
.flinks { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.flinks a { font-size: 0.83rem; color: var(--dim); text-decoration: none; transition: color 0.2s; }
.flinks a:hover, .flinks a[aria-current="page"] { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.72rem; color: var(--stone-dim); }
.footer-copy .hl { color: var(--cobalt-hi); }

/* ─── SECTION UTILITIES ─────────────────────────────────────────────── */
.section-tag { display: flex; align-items: center; gap: 10px; margin-bottom: 2rem; }
.section-tag-line { width: 24px; height: 1px; background: var(--cobalt); }
.section-tag-text { font-size: 9px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cobalt); }

/* ─── SCROLL REVEAL ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.10s; }
.d2 { transition-delay: 0.20s; }
.d3 { transition-delay: 0.32s; }
.d4 { transition-delay: 0.44s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ─── VISUAL ICON UTILITIES ─────────────────────────────────────────── */
/* Reusable icon box — used in door cards, pillars, cat-cards, industries */
.vis-icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: rgba(196,162,101,0.08); border: 1px solid rgba(196,162,101,0.18);
  border-radius: 2px; flex-shrink: 0; margin-bottom: 1.25rem;
  transition: background 0.3s, border-color 0.3s;
}
.vis-icon svg { width: 26px; height: 26px; }
.vis-icon svg { color: var(--gold); }
.vis-icon--cobalt {
  background: rgba(45,107,159,0.08); border-color: rgba(45,107,159,0.2);
}
.vis-icon--cobalt svg { color: var(--cobalt-hi); }
/* Larger variant for pillar/industry sections */
.vis-icon--lg { width: 64px; height: 64px; }
.vis-icon--lg svg { width: 32px; height: 32px; }

/* Inline check-group icon before group heading */
.check-group-title { display: flex; align-items: center; gap: 10px; }
.check-group-title svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* Industry section icon — floated top-right */
.industry-vis-icon {
  width: 72px; height: 72px;
  background: rgba(45,107,159,0.07); border: 1px solid rgba(45,107,159,0.15);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  align-self: flex-start;
}
.industry-vis-icon svg { width: 36px; height: 36px; color: var(--cobalt-hi); }

/* ─── RESPONSIVE (single, site-wide set) ────────────────────────────── */
@media (min-width: 901px) and (max-width: 1200px) {
  .nav-items { gap: 1.25rem; }
  .nav-items a { font-size: 0.78rem; }
}
@media (max-width: 900px) {
  .nav-items { display: none !important; }
  .nav-portal { display: none !important; }
  .hamburger { display: flex !important; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .fr { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}
