/* ============================================================
   Pallet Recovery & Son — Premium Styles (FULL SITE)
   - Stable header + hero + marquee + grids
   - Gallery + lightbox
   - Testimonials stars + distribution
   - Forms + consent + validation + honeypot
   - Reveal animations + responsive + reduced motion
   - Mobile fix pack included
   - Premium stat layout (number + label inline, meta below)
============================================================ */

/* =======================
   THEME TOKENS
======================= */
:root{
  --max: 1180px;
  --radius: 18px;
  --radius2: 28px;
  --shadow: 0 20px 70px rgba(0,0,0,.38);
  --shadow2: 0 12px 40px rgba(0,0,0,.22);
  --brand: #39c16c;
  --gold: #f6c177;
  --blue: #7aa8ff;
  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: 220ms;

  /* ========= FONT (NEW) =========
     Single source of truth for typography across ALL pages/elements
  */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

html[data-theme="dark"]{
  --bg: #070c16;
  --panel: rgba(13, 20, 38, .72);
  --panel2: rgba(12, 18, 34, .55);
  --card: rgba(16, 27, 52, .55);
  --text: #eaf0ff;
  --muted: rgba(234,240,255,.80);
  --line: rgba(234,240,255,.14);
  --line2: rgba(234,240,255,.10);
  --glass: rgba(255,255,255,.06);
  --focus-ring: #5be59a;
  --focus-glow: rgba(91,229,154,.28);
  --error-text: #ffb4b4;
  --error-ui: #ff8d8d;
}

html[data-theme="light"]{
  --bg: #f5f7ff;
  --panel: rgba(255, 255, 255, .74);
  --panel2: rgba(255, 255, 255, .55);
  --card: rgba(255, 255, 255, .78);
  --text: #0c1220;
  --muted: rgba(12,18,32,.78);
  --line: rgba(12,18,32,.12);
  --line2: rgba(12,18,32,.08);
  --glass: rgba(12,18,32,.04);
  --shadow: 0 18px 55px rgba(12,18,32,.14);
  --shadow2: 0 10px 30px rgba(12,18,32,.12);
  --focus-ring: #0a8a48;
  --focus-glow: rgba(10,138,72,.24);
  --error-text: #b42318;
  --error-ui: #d92d20;
}

/* =======================
   BASE
======================= */
*{ box-sizing:border-box; }

/* ===== FONT ENFORCEMENT (NEW) ===== */
html{
  height:100%;
  font-family: var(--font-sans);
}
body{
  margin:0;
  font-family: inherit; /* was explicit stack; now inherits from html */
  color: var(--text);
  background: var(--bg);
  line-height:1.5;
  overflow-x:hidden;
}

/* Headings + common text elements should inherit same font everywhere */
h1,h2,h3,h4,h5,h6,
p,span,strong,em,small,
a,li,ul,ol,blockquote,summary,details,label{
  font-family: inherit;
}

/* Form controls + buttons DO NOT reliably inherit by default across browsers */
button, input, select, textarea{
  font-family: inherit;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.container{ width:min(var(--max), calc(100% - 40px)); margin:0 auto; }
p{ margin:0; }

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
  z-index:120;
}
.skip-link:focus-visible{
  left:12px;
  top:12px;
  width:auto;
  height:auto;
  overflow:visible;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow2);
}
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border:0 !important;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.toggle:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible{
  outline:2px solid var(--focus-ring);
  outline-offset:2px;
  box-shadow: 0 0 0 4px var(--focus-glow);
  border-radius:12px;
}

/* =======================
   BACKGROUND FX
======================= */
.bgfx{
  position:fixed; inset:-20%;
  pointer-events:none;
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(57,193,108,.30), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(246,193,119,.25), transparent 55%),
    radial-gradient(850px 520px at 60% 80%, rgba(122,168,255,.22), transparent 60%);
  filter: blur(42px) saturate(120%);
  animation: drift 18s var(--ease) infinite alternate;
  opacity:.95;
}
@keyframes drift{
  from{ transform: translate3d(-1.5%, -1%, 0) scale(1.02); }
  to{   transform: translate3d(1.5%, 1.2%, 0) scale(1.06); }
}

.grain{
  position:fixed; inset:0; pointer-events:none;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity:.12;
}

/* =======================
   HEADER / NAV
======================= */
header{
  position:sticky; top:0; z-index:50;
  background: linear-gradient(to bottom, var(--panel), transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line2);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0; gap:16px;
}

.brand{
  display:flex; align-items:center; gap:12px;
  min-width:240px;
}
.brand > div{ min-width:0; } /* prevents text forcing logo squish */
.brand strong{ display:block; font-size:14px; letter-spacing:.2px; }
.brand span{ display:block; font-size:12px; color:var(--muted); margin-top:1px; }

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

nav ul{ list-style:none; display:flex; gap:10px; padding:0; margin:0; align-items:center; }

nav a{
  display:flex;
  align-items:center;
  height:44px;            /* match .toggle */
  padding:0 12px;         /* vertical padding replaced by height */
  line-height:1;          /* kills baseline wobble */
  color: var(--muted);
  font-size:13px;
  border-radius:14px;
  border:1px solid transparent;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
nav a:hover{
  color: var(--text);
  background: var(--glass);
  border-color: var(--line2);
}
nav a.active{
  color: var(--text);
  background: linear-gradient(135deg, rgba(57,193,108,.18), rgba(246,193,119,.12));
  border-color: rgba(57,193,108,.22);
}

.nav-cta{ display:flex; gap:10px; align-items:center; }

/* =======================
   BUTTONS / TOGGLE
======================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid var(--line2);
  background: var(--panel2);
  color: var(--text);
  font-size:13px;
  cursor:pointer;
  user-select:none;
  position:relative;
  overflow:hidden;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.btn:hover{ transform: translateY(-1px); border-color: var(--line); }
.btn:active{ transform: translateY(0px) scale(.99); }

.btn.primary{
  background: linear-gradient(135deg, rgba(57,193,108,.96), rgba(57,193,108,.72));
  border-color: rgba(57,193,108,.45);
  color:#06131b;
  font-weight:800;
  box-shadow: 0 14px 40px rgba(57,193,108,.18);
}
.btn.secondary{
  background: linear-gradient(135deg, rgba(246,193,119,.96), rgba(246,193,119,.72));
  border-color: rgba(246,193,119,.45);
  color:#1a1207;
  font-weight:800;
  box-shadow: 0 14px 40px rgba(246,193,119,.16);
}
.btn.ghost{ background: transparent; border-color: var(--line2); }
.btn.ghost.active,
.btn.ghost[aria-pressed="true"]{
  color: var(--text);
  border-color: rgba(57,193,108,.40);
  background: rgba(57,193,108,.16);
}

.btn .shine{
  position:absolute; inset:-140% -60%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18), transparent 60%);
  transform: rotate(12deg);
  animation: sheen 3.8s var(--ease) infinite;
  opacity:.55;
}
@keyframes sheen{
  0%{ transform: translateX(-35%) rotate(12deg); }
  40%{ transform: translateX(65%) rotate(12deg); }
  100%{ transform: translateX(65%) rotate(12deg); }
}

.toggle{
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line2);
  background: var(--panel2);
  display:grid; place-items:center;
  cursor:pointer;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.toggle:hover{ transform: translateY(-1px); border-color: var(--line); }

/* --- NAV: force perfect vertical alignment --- */
nav ul{
  align-items:center;
}

nav ul li{
  display:flex;
  align-items:center;
  height:44px;          /* same as links/toggle */
}

nav ul li a{
  display:flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 12px;
  line-height:44px;     /* hard-lock text baseline */
  vertical-align:middle;
}
nav a[href="index.html"]{ position:relative; top:3px; }

/* =======================
   PAGE HERO / PANELS
======================= */
.page-hero{ padding:46px 0 10px; }

.panel{
  border: 1px solid var(--line2);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.panel::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(600px 320px at 20% 10%, rgba(57,193,108,.16), transparent 60%),
    radial-gradient(640px 340px at 80% 30%, rgba(246,193,119,.12), transparent 60%),
    radial-gradient(520px 300px at 50% 95%, rgba(122,168,255,.12), transparent 62%);
  pointer-events:none;
  opacity:.95;
}
.panel p{
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

h1{
  margin:0;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height:1.06;
  letter-spacing:-.03em;
}
/* =======================
   GLOBAL HEADINGS
======================= */

h1, h2, h3, h4{
  font-family: var(--font-sans);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

h2{
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

h3{
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
}

h4{
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}
.lead{
  margin:0;
  color: var(--muted);
  font-size:15px;
  max-width:70ch;
}
.hero-actions{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top:6px;
}

/* =======================
   HERO MEDIA (RESTORE)
======================= */
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .85fr;
  gap:16px;
  align-items:stretch;
}

.hero-left{ padding:30px; }
.hero-right{ padding:66px; }

.hero-media{
  border-radius:22px;
  border:1px solid var(--line2);
  overflow:hidden;
  min-height:320px;        /* IMPORTANT: gives it height */
  position:relative;
  background:#0b1326;      /* fallback while image loads */
}

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 18px; /* match your design */
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media--placeholder{
  background:
    linear-gradient(135deg, rgba(8,15,31,.72), rgba(8,15,31,.42)),
    url('../img/hero-bg.jpg') center/cover no-repeat;
}

.hero-placeholder{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:12px;
  min-height:320px;
  padding:28px;
  color:#fff;
}

.hero-placeholder__eyebrow{
  display:inline-flex;
  align-self:flex-start;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(10,17,33,.45);
  color:rgba(255,255,255,.92);
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.hero-placeholder__title{
  margin:0;
  font-size:clamp(1.8rem, 4vw, 2.6rem);
  font-weight:800;
  line-height:1.05;
}

.hero-placeholder__body{
  margin:0;
  max-width:34ch;
  color:rgba(255,255,255,.9);
  font-size:1rem;
  line-height:1.65;
}

.hero-media .img{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:  center 30% ; /* shifts truck toward centre */
}
  background-repeat:no-repeat;
  transform: scale(1.02);
  filter: contrast(1.02) saturate(1.06);
}

.hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(560px 320px at 20% 30%, rgba(57,193,108,.20), transparent 60%),
    radial-gradient(560px 320px at 80% 70%, rgba(246,193,119,.14), transparent 60%),
    linear-gradient(to top, rgba(0,0,0,.55), transparent 55%);
  pointer-events:none;
}

/* mobile stack */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-left{ padding:18px; }
  .hero-right{ padding:14px; }
  .hero-media{ min-height:240px; }
  .hero-placeholder{
    min-height:240px;
    padding:20px;
  }
}

/* ABOUT PAGE: center the whole image block inside the right panel */
.panel.hero-right{
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel.hero-right .hero-media{
  width: min(100%, 560px);  /* make bigger: 620px / 680px */
  min-height: 320px;        /* make taller: 360px / 400px */
  margin: 0 auto;
}

.panel.hero-right .hero-media .img{
  background-size: cover;
  background-position: center;
}

/* =======================
   HOMEPAGE FULL HERO BG
======================= */
.home-hero{
  position:relative;
  height:100vh;
  background:
    linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)),
    url('../img/hero-bg.jpg') center/cover no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
}
.hero-overlay{ max-width:800px; padding:20px; }
.home-hero h1{ font-size:48px; margin-bottom:15px; }
.home-hero h2{ font-size:18px; opacity:.95; margin:0 0 12px; }
.home-hero p{ font-size:18px; opacity:.9; margin-top:10px; }

/* =======================
   MARQUEE
======================= */
.marquee{
  margin:18px auto 0;
  border-top:1px solid var(--line2);
  border-bottom:1px solid var(--line2);
  background: rgba(255,255,255,.02);
  overflow:hidden;
}
.marquee .track{
  display:flex;
  gap:22px;
  padding:10px 0;
  white-space:nowrap;
  animation: scroll 22s linear infinite;
  will-change: transform;
}
.marquee span{
  color: var(--muted);
  font-size:12px;
  letter-spacing:.2px;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.dot{
  width:6px; height:6px; border-radius:999px;
  background: rgba(57,193,108,.65);
  box-shadow: 0 0 18px rgba(57,193,108,.45);
}
@keyframes scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* =======================
   SECTIONS / CARDS / GRID
======================= */
section{ padding:26px 0; }

.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.section-head h2{ margin:0; font-size:18px; letter-spacing:-.01em; }
.section-head p{ margin:0; color: var(--muted); font-size:13px; max-width:74ch; }

.grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap:14px; }

/* Utility classes used to replace repeated non-footer inline styles */
.u-col-4{ grid-column: span 4; }
.u-col-6{ grid-column: span 6; }
.u-col-12{ grid-column: span 12; }
.u-p-16{ padding:16px; }
.u-p-18{ padding:18px; }
.u-p-24{ padding:24px; }
.u-p-28{ padding:28px; }
.u-m-0{ margin:0; }
.u-mt-0{ margin-top:0; }
.u-mt-6{ margin-top:6px; }
.u-mt-8{ margin-top:8px; }
.u-mt-10{ margin-top:10px; }
.u-mt-12{ margin-top:12px; }
.u-mt-14{ margin-top:14px; }
.u-mt-16{ margin-top:16px; }
.u-mt-20{ margin-top:20px; }
.u-mt-25{ margin-top:25px; }
.u-mt-40{ margin-top:40px; }
.u-pt-40{ padding-top:40px; }
.u-ml-auto{ margin-left:auto; }
.u-mb-12{ margin-bottom:12px; }
.u-muted{ color:var(--muted); }
.u-muted-fs12{ color:var(--muted); font-size:12px; }
.u-muted-mt6{ margin:6px 0 0; color:var(--muted); }
.u-m0-muted-fs14{ margin:0; color: var(--muted); font-size:14px; }
.u-text-muted-fs13-mt6{ margin-top:6px; color:var(--muted); font-size:13px; }
.u-links-muted-mt10{ margin-top:10px; color:var(--muted); }
.u-flex-wrap-gap10-center{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.u-flex-wrap-gap10{ display:flex; gap:10px; flex-wrap:wrap; }
.u-flex-wrap-gap10-end{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.u-flex-wrap-gap10-my20{ display:flex; gap:10px; flex-wrap:wrap; margin:20px 0; }
.u-flex-wrap-gap14-between-start{ display:flex; gap:14px; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; }
.u-flex-wrap-gap16-between-center{ display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.u-flex-between-start-gap12{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.u-flex-baseline-gap8-mt6{ display:flex; align-items:baseline; gap:8px; margin-top:6px; }
.u-flex-gap-4{ display:flex; gap:4px; }
.u-flex-gap10-mt14{ display:flex; gap:10px; margin-top:14px; }
.u-flex-between-gap12-mb10{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.u-block-fs13{ display:block; font-size:13px; }
.u-block-muted-fs12-mt2{ display:block; color: var(--muted); font-size:12px; margin-top:2px; }
.u-grid-11-9{ display:grid; grid-template-columns: 1.1fr .9fr; gap:14px; align-items:stretch; }
.u-grid-gap8{ display:grid; gap:8px; }
.u-card-soft-p16{ border-radius:20px; border:1px solid var(--line2); background: rgba(255,255,255,.03); padding:16px; }
.u-pill-muted{ font-size:11px; color: var(--muted); border:1px solid var(--line2); background: rgba(255,255,255,.04); padding:6px 10px; border-radius:999px; }
.u-spacer-14{ height:14px; }
.t-hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:14px;
  align-items:stretch;
}

.contact-grid{
  grid-template-columns:repeat(12,1fr);
  gap:30px;
  align-items:start;
}

.contact-info-card{
  padding:16px;
  margin-top:20px;
}

.contact-map-card{
  margin-top:20px;
  padding:0;
  overflow:hidden;
}

.contact-quote-card{
  padding:20px;
}

.gallery-panel-copy{
  margin-top:14px;
  padding:14px;
}

.gallery-panel-cta{
  margin-top:16px;
  padding:16px;
}

.testi-title{
  margin:0;
  font-size:clamp(28px, 3.2vw, 44px);
  line-height:1.06;
  letter-spacing:-.03em;
}

.testi-score{
  font-size:34px;
  font-weight:900;
  letter-spacing:-.02em;
}

.card{
  border:1px solid var(--line2);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow2);
  position:relative;
  overflow:hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover{ transform: translateY(-2px); border-color: var(--line); }

/* Services */
.service{ grid-column: span 6; display:flex; gap:14px; }
.icon{
  width:46px; height:46px;
  border-radius:16px;
  border:1px solid var(--line2);
  background: linear-gradient(135deg, rgba(57,193,108,.18), rgba(246,193,119,.10), rgba(122,168,255,.10));
  display:grid; place-items:center;
  flex:0 0 auto;
  position:relative;
  overflow:hidden;
}
.icon::before{
  content:"";
  position:absolute; inset:-60%;
  background: conic-gradient(from 90deg, rgba(255,255,255,.18), transparent, rgba(255,255,255,.10));
  animation: iconSpin 10s linear infinite;
  opacity:.55;
}
@keyframes iconSpin{ to{ transform: rotate(360deg); } }
.service h3{ margin:0; font-size:15px; }
.service p{ margin:6px 0 10px; color:var(--muted); font-size:13px; }
.service ul{ margin:0; padding-left:18px; color:var(--muted); font-size:13px; }
.service li{ margin:4px 0; }

/* ============================
   STATS (BASE GRID)
============================ */
.stats{ grid-column: span 12; display:grid; grid-template-columns: repeat(4,1fr); gap:12px; }

.stat{
  border:1px solid var(--line2);
  border-radius:18px;
  padding:14px;
  background: rgba(255,255,255,.03);
  position:relative;
  overflow:hidden;
}
.stat::before{
  content:"";
  position:absolute; inset:-1px;
  background: linear-gradient(135deg, rgba(57,193,108,.18), rgba(246,193,119,.12), rgba(122,168,255,.12));
  opacity:.25;
  filter: blur(18px);
  pointer-events:none;
}

/* ============================
   PREMIUM STAT DESIGN (RESTORED GRADIENT NUMBERS)
============================ */
.stat-premium{ padding:18px; }

.stat-head{
  display:flex;
  align-items:baseline;
  gap:8px;
}

.stat-value{
  font-size:32px;
  font-weight:900;
  letter-spacing:-.03em;
  line-height:1;

  background: linear-gradient(135deg, var(--brand), var(--gold)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.stat-unit{
  font-size:12px;
  font-weight:800;
  letter-spacing:.6px;
  text-transform:uppercase;
  opacity:.85;
}

.stat-meta{
  font-size:12px;
  color:var(--muted);
  margin-top:6px;
  line-height:1.4;
}

/* =======================
   GALLERY
======================= */
.gal-grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap:12px; }

.gal{
  grid-column: span 4;
  display:block;
  width:100%;
  padding:0;
  text-align:left;
  font:inherit;
  color:inherit;
  appearance:none;
  border-radius:18px;
  border:1px solid var(--line2);
  overflow:hidden;
  background: rgba(255,255,255,.03);
  position:relative;
  cursor:pointer;
  min-height:180px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gal:hover{ transform: translateY(-2px); border-color: var(--line); }
.gal .thumb{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  filter:saturate(1.05) contrast(1.03);
  transform: scale(1.02);
}
.gal::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.62), transparent 60%);
  pointer-events:none;
  opacity:.95;
}
.gal .label{
  position:absolute; left:12px; right:12px; bottom:12px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  color: rgba(234,240,255,.92);
  font-size:12px;
  z-index:1;
}

/* =======================
   LIGHTBOX
======================= */
.lightbox{
  position:fixed; inset:0;
  display:none;
  place-items:center;
  background: rgba(0,0,0,.75);
  z-index:80;
  padding:18px;
}
.lightbox.open{ display:grid; }
.lightbox .inner{
  width:min(1100px, 100%);
  border-radius:20px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(10,14,24,.86);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.lightbox .bar{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  font-size:12px;
}
.lightbox .close{
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding:8px 10px;
  cursor:pointer;
}
.lightbox .content{ padding:16px; }
.lightbox img{
  width:100%;
  height:auto;
  display:block;
  border-radius:16px;
  border:1px solid var(--line2);
}

/* =======================
   FAQ
======================= */
details{
  border:1px solid var(--line2);
  border-radius:16px;
  background: rgba(255,255,255,.03);
  padding:12px 14px;
}
summary{ cursor:pointer; font-weight:850; font-size:13px; }
details p{ margin:8px 0 0; color: var(--muted); font-size:13px; }

/* =======================
   FORMS
======================= */
form{ display:grid; gap:10px; }

label{
  font-size:12px;
  color: var(--muted);
  display:grid;
  gap:6px;
}

input, select, textarea{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--line2);
  background: rgba(0,0,0,.15);
  color: var(--text);
  outline:none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea{
  background: rgba(255,255,255,.70);
}
input:focus, select:focus, textarea:focus{
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 4px var(--focus-glow);
}
textarea{ min-height:96px; resize: vertical; }
.two{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }

/* Honeypot */
.hp-wrap{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* Consent custom checkbox */
.consent-row[data-consent]{ margin: 14px 0 16px; }
.custom-check{
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  user-select:none;
  position:relative;
}
.custom-check input[type="checkbox"]{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.checkmark{
  width:20px;
  height:20px;
  border-radius:6px;
  border:2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
  display:grid;
  place-items:center;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.checkmark::after{
  content:"";
  width:6px;
  height:10px;
  border-right:2px solid #fff;
  border-bottom:2px solid #fff;
  transform: rotate(45deg) scale(0);
  transition: transform .18s var(--ease);
}
.custom-check:hover .checkmark{
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 4px var(--focus-glow);
}
.custom-check input[type="checkbox"]:focus-visible + .checkmark{
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 4px var(--focus-glow);
}
.custom-check input[type="checkbox"]:checked + .checkmark{
  background: linear-gradient(135deg,#39c16c,#2e9f5a);
  border-color:#39c16c;
}
.custom-check input[type="checkbox"]:checked + .checkmark::after{
  transform: rotate(45deg) scale(1);
}
.check-text{
  font-size:13px;
  color: var(--muted);
  line-height: 1.35;
}

/* Consent error message */
.consent-row[data-consent] .field-error{
  margin-left: 32px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--error-text);
  display:none;
}

/* Validation states */
input.is-invalid,
select.is-invalid,
textarea.is-invalid{
  border-color: var(--error-ui) !important;
  box-shadow: 0 0 0 4px rgba(217,45,32,.20) !important;
}
.consent-row.is-invalid .checkmark{
  border-color: var(--error-ui) !important;
  box-shadow: 0 0 0 4px rgba(217,45,32,.20) !important;
}
.consent-row.is-invalid .field-error{ display:block; }

@keyframes shake{
  0%,100%{ transform: translateX(0); }
  20%{ transform: translateX(-6px); }
  40%{ transform: translateX(6px); }
  60%{ transform: translateX(-4px); }
  80%{ transform: translateX(4px); }
}
.shake{ animation: shake .28s ease; }

/* =======================
   TESTIMONIALS (STARS + DISTRIBUTION)
======================= */
.star{ font-size:14px; line-height:1; opacity:.95; }
.star.filled{ color: var(--gold); }
.star.empty{ color: rgba(234,240,255,.25); }
html[data-theme="light"] .star.empty{ color: rgba(12,18,32,.22); }

.rating-row{
  display:grid;
  grid-template-columns: 68px 1fr 44px;
  gap:10px;
  align-items:center;
  color: var(--muted);
  font-size:12px;
}
.rating-row .bar{
  height:10px;
  border-radius:999px;
  border:1px solid var(--line2);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}
.rating-row .fill{
  height:100%;
  width:0%;
  border-radius:999px;
  background: linear-gradient(135deg, rgba(246,193,119,.95), rgba(57,193,108,.85));
}
.rating-row .pct{ text-align:right; }

/* =======================
   FOOTER
======================= */
footer{
  border-top:1px solid var(--line2);
  padding:26px 0 42px;
  color: var(--muted);
  font-size:12px;
}
.footer-grid{ display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap:14px; }
.footer-copy{ margin-top:10px; opacity:.75; }
.footer-links-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px 20px; }
.footer-links-grid-tight{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.footer-contact-stack{ display:grid; gap:8px; }
.footer-grid strong{ color: var(--text); display:block; margin-bottom:8px; font-size:12px; }
.footer-grid a{ color: var(--muted); }
.footer-grid a:hover{ color: var(--text); }

/* =======================
   FLOAT CTA + MOBILE BAR
======================= */
.float-cta{
  position:fixed; right:18px; bottom:18px;
  z-index:60;
  display:none;
  gap:10px;
  align-items:center;
}
.float-cta .btn{ box-shadow: var(--shadow2); }

.mobilebar{
  display:none;
  position:fixed; left:0; right:0; bottom:0;
  z-index:70;
  padding:10px;
  background: linear-gradient(to top, var(--panel), transparent);
  backdrop-filter: blur(12px);
  border-top:1px solid var(--line2);
}
.mobilebar .wrap{
  width:min(var(--max), calc(100% - 20px));
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

/* =======================
   MOTION / REVEAL
======================= */
.reveal{
  opacity:0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.in{ opacity:1; transform:none; }

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 980px){
  header{
    position:static;
  }

  /* show mobile nav row */
  .nav{ flex-wrap:wrap; gap:10px; }
  .brand{ min-width:0; flex: 1 1 100%; }
  nav{ width:100%; }
  nav ul{
    display:flex !important;
    gap:8px;
    padding:6px 0;
    margin:0;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  nav ul::-webkit-scrollbar{ display:none; }
  nav a{ white-space:nowrap; padding:9px 10px; font-size:12px; }

  .nav-cta{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:8px;
  }

  .stats{ grid-template-columns: repeat(2, 1fr); }
  .service{ grid-column: 1 / -1; }
  .gal{ grid-column: span 6; }
  .footer-grid{ grid-template-columns: 1fr; }
  .t-hero-grid{ grid-template-columns: 1fr !important; }
  .contact-grid{ gap:18px; }

  .mobilebar{ display:block; }
  .float-cta{ display:none !important; }

  /* Prevent text forcing overflow */
  h1{ overflow-wrap:anywhere; hyphens:auto; }
}

@media (min-width: 981px){
  nav ul{ display:flex; }
  .float-cta{ display:flex; }
}

@media (prefers-reduced-motion: reduce){
  .bgfx,
  .marquee .track,
  .logo::after,
  .icon::before,
  .btn .shine{
    animation:none !important;
  }
  .card, .btn, .toggle, .gal, .reveal{
    transition:none !important;
    transform:none !important;
  }
  .reveal{ opacity:1 !important; }
}

/* MOBILE: stack inline 3-column grids like your tick boxes */
@media (max-width: 980px){
  div[style*="grid-template-columns: repeat(3, 1fr)"]{
    grid-template-columns: 1fr !important;
  }
}

/* Mobile: force any inline grid-column spans to full width */
@media (max-width: 980px){
  [style*="grid-column"],
  .u-col-4,
  .u-col-6,
  .u-col-12{
    grid-column: 1 / -1 !important;
  }
}

/* ============================================================
   TYPOGRAPHY FIX (About page + any long-form content)
   Paste at END of styles.css
   - Restores spacing between paragraphs
   - Makes lists match site style
   - Keeps logo image clean (no gradient/background)
============================================================ */

/* Make image-logo behave nicely inside .brand */
.brand img.logo{
  width:50px;
  height:50px;
  border-radius:12px;
  display:block;
  object-fit:contain;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* Long-form readable spacing (opt-in via .prose wrapper) */
.prose{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.prose p{ margin:0; }
.prose p + p{ margin-top:10px; }

.prose ul{
  margin:10px 0 0;
  padding-left:18px;
  color: var(--muted);
  font-size:13px;
}
.prose li{ margin:6px 0; }

/* If prose appears inside cards/panels, keep headings consistent */
.prose h3{
  color: var(--text);
  font-size:15px;
  margin:0 0 8px;
}

/* ============================================================
   TYPOGRAPHY + ABOUT HERO FIX (paste at VERY END of styles.css)
   - Restores readable paragraph spacing
   - Restores hero grid padding/spacing to match other pages
============================================================ */

/* 1) Global readable paragraph rhythm (your p{margin:0;} kills this) */
p + p { margin-top: 10px; }
ul { margin: 10px 0 0; }
li + li { margin-top: 6px; }

/* 2) Hero grid (About page uses .hero-grid but your CSS doesn't fully style it) */
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .85fr;
  gap:16px;
  align-items:stretch;
}

/* 3) Match the "good" page hero padding + typography */
.hero-left{
  padding: 28px;                /* this is what your other hero panels effectively have */
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.hero-right{
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

/* Make hero text look like the rest of the site */
.hero-left > p:not(.lead){
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* 4) Kicker + pills (your About hero uses these) */
.kicker{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  color: var(--muted);
  font-size: 12px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(57,193,108,.14);
  border:1px solid rgba(57,193,108,.28);
  color: rgba(234,240,255,.92);
  font-weight: 800;
}
.pill.alt{
  background: rgba(122,168,255,.14);
  border-color: rgba(122,168,255,.28);
}

/* 5) Mobile: stack About hero like your other pages */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-left{ padding: 18px; }
  .hero-right{ padding: 14px; }
}

/* ABOUT PAGE / HERO IMAGE: show full photo (no cropping) */
.hero-media .img{
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* =======================
   CARD TYPOGRAPHY FIX
   (targets your screenshot: .card > h3 + p)
======================= */

.card h3{
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.card p{
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Centre recycling card when alone on bottom row */
.service-card.recycling {
  grid-column: 1 / -1;   /* span full width of grid */
  max-width: 700px;      /* stops it being too wide */
  margin: 0 auto;        /* centres horizontally */
}
.grid .card.service.recycling{
  grid-column: 1 / -1;     /* take the full row */
  justify-self: center;    /* centre the card itself */
  width: min(520px, 100%); /* match your typical card width */
}

/* Make form controls (including <select> menus) follow theme */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"]{ color-scheme: light; }

/* =======================
   ENVIRONMENT AGENCY WIDGET
======================= */

.compliance-section{
  max-width:700px;
  margin:60px auto;
  text-align:center;
}

.compliance-section h2{
  margin-bottom:10px;
}

.compliance-section p{
  color:var(--muted);
  margin-bottom:25px;
}

.ea-widget{
  display:flex;
  justify-content:center;
}

.ea-widget iframe{
  width:330px;
  height:228px;
  border:1px solid var(--line2);
  border-radius:12px;
  box-shadow:var(--shadow2);
}
.verify-btn{
  display:block;
  width:max-content;
  margin:20px auto 0;
  padding:10px 18px;
  background:var(--brand);
  color:#fff;
  border-radius:8px;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
}

.verify-btn:hover{
  opacity:0.9;
}
