/* ============================================================
   Total Environmental Containment — Brand Stylesheet
   Palette derived from brand logo:
   Gold #E0A526 · Hazard Red #CF1E0D · Env Green #2E9E1F
   Lime #82E61F · Charcoal #1E1E1E · Silver #C8CCD0
   ============================================================ */

:root, [data-theme="light"] {
  --gold:#E0A526; --gold-deep:#B57E12; --gold-light:#F3C95B;
  --red:#CF1E0D; --red-deep:#9c1407;
  --green:#2E9E1F; --green-deep:#1f7314; --lime:#82E61F;
  --charcoal:#1E1E1E; --ink:#141414; --silver:#C8CCD0;

  --color-bg:#ffffff;
  --color-surface:#f6f7f8;
  --color-surface-2:#eef0f2;
  --color-text:#1b1d1f;
  --color-text-muted:#5b6066;
  --color-text-faint:#8b9098;
  --color-border:#e0e3e6;
  --color-primary:var(--green-deep);
  --color-accent:var(--gold);

  --font-display:'Saira Condensed','Arial Narrow',sans-serif;
  --font-body:'Inter','Helvetica Neue',Arial,sans-serif;

  --text-xs:clamp(0.75rem,0.7rem + 0.25vw,0.875rem);
  --text-sm:clamp(0.875rem,0.8rem + 0.35vw,1rem);
  --text-base:clamp(1rem,0.95rem + 0.25vw,1.0625rem);
  --text-lg:clamp(1.125rem,1rem + 0.6vw,1.4rem);
  --text-xl:clamp(1.5rem,1.2rem + 1.25vw,2.1rem);
  --text-2xl:clamp(2rem,1.3rem + 2.4vw,3.2rem);
  --text-hero:clamp(2.4rem,1.4rem + 4.2vw,4.4rem);

  --space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;
  --space-5:1.25rem;--space-6:1.5rem;--space-8:2rem;--space-10:2.5rem;
  --space-12:3rem;--space-16:4rem;--space-20:5rem;--space-24:6rem;--space-32:8rem;

  --radius-sm:.375rem;--radius-md:.6rem;--radius-lg:1rem;--radius-full:9999px;
  --shadow-sm:0 1px 3px rgba(20,20,20,.08);
  --shadow-md:0 8px 24px rgba(20,20,20,.10);
  --shadow-lg:0 20px 50px rgba(20,20,20,.16);
  --content:1180px;
  --transition:200ms cubic-bezier(.16,1,.3,1);
}

[data-theme="dark"]{
  --color-bg:#121315;
  --color-surface:#191a1d;
  --color-surface-2:#202225;
  --color-text:#e8eaec;
  --color-text-muted:#a3a8ad;
  --color-text-faint:#71767c;
  --color-border:#2c2f33;
  --color-primary:var(--lime);
  --shadow-sm:0 1px 3px rgba(0,0,0,.4);
  --shadow-md:0 8px 24px rgba(0,0,0,.45);
  --shadow-lg:0 20px 50px rgba(0,0,0,.55);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;scroll-behavior:smooth;scroll-padding-top:90px}
body{min-height:100dvh;line-height:1.6;font-family:var(--font-body);font-size:var(--text-base);color:var(--color-text);background:var(--color-bg)}
img,svg,picture,video{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none;transition:color var(--transition)}
ul[role=list]{list-style:none}
h1,h2,h3,h4{line-height:1.1;text-wrap:balance;font-family:var(--font-display);font-weight:700;letter-spacing:.01em;text-transform:uppercase}
p{text-wrap:pretty}
:focus-visible{outline:2px solid var(--color-accent);outline-offset:3px;border-radius:var(--radius-sm)}
button{cursor:pointer;background:none;border:none;font:inherit;color:inherit}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.wrap{width:100%;max-width:var(--content);margin-inline:auto;padding-inline:var(--space-5)}
.section{padding-block:clamp(var(--space-16),7vw,var(--space-32))}
.eyebrow{display:inline-flex;align-items:center;gap:var(--space-2);font-family:var(--font-display);text-transform:uppercase;letter-spacing:.14em;font-size:var(--text-sm);font-weight:600;color:var(--green-deep)}
[data-theme=dark] .eyebrow{color:var(--lime)}
.eyebrow::before{content:"";width:26px;height:3px;background:var(--gold);border-radius:2px}
.lead{font-size:var(--text-lg);color:var(--color-text-muted);max-width:60ch}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:var(--space-2);font-family:var(--font-display);text-transform:uppercase;letter-spacing:.04em;font-weight:700;font-size:var(--text-sm);padding:.85em 1.5em;border-radius:var(--radius-md);transition:all var(--transition);border:2px solid transparent;white-space:nowrap}
.btn-primary{background:var(--red);color:#fff}
.btn-primary:hover{background:var(--red-deep);transform:translateY(-2px);box-shadow:var(--shadow-md)}
.btn-gold{background:var(--gold);color:var(--ink)}
.btn-gold:hover{background:var(--gold-deep);transform:translateY(-2px);box-shadow:var(--shadow-md)}
.btn-outline{border-color:currentColor;color:#fff}
.btn-outline:hover{background:#fff;color:var(--ink)}
.btn-ghost{border-color:var(--color-border);color:var(--color-text)}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold-deep)}

/* ---------- Header ---------- */
.header{position:sticky;top:0;z-index:60;background:color-mix(in srgb,var(--color-bg) 88%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--color-border);transition:box-shadow var(--transition)}
.header.scrolled{box-shadow:var(--shadow-sm)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:var(--space-6);height:72px}
.brand{display:flex;align-items:center;gap:var(--space-3);font-family:var(--font-display);font-weight:700}
.brand img{height:46px;width:auto}
.brand .bname{display:flex;flex-direction:column;line-height:1}
.brand .bname b{font-size:1.05rem;letter-spacing:.02em;text-transform:uppercase}
.brand .bname span{font-size:.62rem;letter-spacing:.22em;color:var(--gold-deep);text-transform:uppercase;font-weight:600}
[data-theme=dark] .brand .bname span{color:var(--gold)}
.menu{display:flex;align-items:center;gap:var(--space-6);list-style:none}
.menu a{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.04em;font-size:.85rem;font-weight:600;color:var(--color-text-muted)}
.menu a:hover,.menu a.active{color:var(--color-text)}
.nav-cta{display:flex;align-items:center;gap:var(--space-3)}
.nav-phone{display:inline-flex;align-items:center;gap:.4em;font-family:var(--font-display);font-weight:700;color:var(--color-text);font-size:.95rem}
.nav-phone:hover{color:var(--red)}
.theme-toggle{display:grid;place-items:center;width:40px;height:40px;border-radius:var(--radius-full);border:1px solid var(--color-border);color:var(--color-text-muted)}
.theme-toggle:hover{color:var(--gold-deep);border-color:var(--gold)}
.burger{display:none;flex-direction:column;gap:5px;width:44px;height:44px;justify-content:center;align-items:center}
.burger span{width:24px;height:2px;background:var(--color-text);transition:var(--transition)}

/* ---------- Hero ---------- */
.hero{position:relative;color:#fff;overflow:hidden;background:var(--ink)}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg img{width:100%;height:100%;object-fit:cover;opacity:.4}
.hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(18,18,18,.94) 0%,rgba(18,18,18,.7) 50%,rgba(31,115,20,.35) 100%)}
.hero-inner{position:relative;z-index:2;padding-block:clamp(var(--space-20),12vw,var(--space-32))}
.hazard-strip{height:10px;background:repeating-linear-gradient(45deg,var(--gold) 0 22px,var(--ink) 22px 44px);position:relative;z-index:3}
.hero h1{font-size:var(--text-hero);max-width:18ch;margin-bottom:var(--space-5)}
.hero h1 .hl{color:var(--lime)}
.hero p{font-size:var(--text-lg);max-width:54ch;color:#d7dadd;margin-bottom:var(--space-8)}
.hero-actions{display:flex;flex-wrap:wrap;gap:var(--space-4)}
.hero-badges{display:flex;flex-wrap:wrap;gap:var(--space-5);margin-top:var(--space-10);padding-top:var(--space-6);border-top:1px solid rgba(255,255,255,.18)}
.hero-badge{display:flex;align-items:center;gap:.5em;font-size:.85rem;color:#cfd2d5;font-weight:500}
.hero-badge svg{color:var(--gold)}

/* ---------- Direct answer block (AEO) ---------- */
.answer-block{background:var(--color-surface);border:1px solid var(--color-border);border-left:5px solid var(--gold);border-radius:var(--radius-md);padding:var(--space-6) var(--space-8);box-shadow:var(--shadow-sm)}
.answer-block .q{font-family:var(--font-display);text-transform:none;font-size:var(--text-lg);color:var(--color-text);margin-bottom:var(--space-3)}
.answer-block p{color:var(--color-text-muted)}

/* ---------- Service cards ---------- */
.grid{display:grid;gap:var(--space-6)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);overflow:hidden;transition:transform var(--transition),box-shadow var(--transition);display:flex;flex-direction:column}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.card-media{aspect-ratio:4/3;overflow:hidden;background:var(--color-surface-2)}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform 400ms ease}
.card:hover .card-media img{transform:scale(1.05)}
.card-body{padding:var(--space-6);display:flex;flex-direction:column;gap:var(--space-3);flex:1}
.card-body h3{font-size:var(--text-lg)}
.card-body p{font-size:var(--text-sm);color:var(--color-text-muted);flex:1}
.card-link{font-family:var(--font-display);text-transform:uppercase;font-size:.8rem;font-weight:700;letter-spacing:.04em;color:var(--green-deep);display:inline-flex;align-items:center;gap:.4em}
[data-theme=dark] .card-link{color:var(--lime)}
.card-link:hover{gap:.7em;color:var(--gold-deep)}

/* feature icon tiles */
.tile{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:var(--space-6)}
.tile .ico{width:48px;height:48px;display:grid;place-items:center;border-radius:var(--radius-md);background:color-mix(in srgb,var(--gold) 18%,transparent);color:var(--gold-deep);margin-bottom:var(--space-4)}
[data-theme=dark] .tile .ico{color:var(--gold)}
.tile h3{font-size:var(--text-base);text-transform:none;font-family:var(--font-body);font-weight:700;margin-bottom:var(--space-2)}
.tile p{font-size:var(--text-sm);color:var(--color-text-muted)}

/* ---------- Section heading ---------- */
.sec-head{max-width:60ch;margin-bottom:var(--space-12)}
.sec-head.center{margin-inline:auto;text-align:center}
.sec-head h2{font-size:var(--text-2xl);margin:var(--space-3) 0}
.sec-head p{color:var(--color-text-muted);font-size:var(--text-lg)}

/* ---------- Split / alternating ---------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-16);align-items:center}
.split.reverse .split-media{order:2}
.split-media img{border-radius:var(--radius-lg);box-shadow:var(--shadow-md);width:100%}
.checklist{list-style:none;display:flex;flex-direction:column;gap:var(--space-3);margin-top:var(--space-5)}
.checklist li{display:flex;gap:.6em;align-items:flex-start;font-size:var(--text-sm);color:var(--color-text-muted)}
.checklist li svg{flex:none;color:var(--green);margin-top:3px}

/* ---------- Stats ---------- */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-6);text-align:center}
.stat .num{font-family:var(--font-display);font-size:var(--text-2xl);color:var(--gold-deep);line-height:1}
[data-theme=dark] .stat .num{color:var(--gold)}
.stat .lbl{font-size:var(--text-sm);color:var(--color-text-muted);margin-top:var(--space-2)}

/* ---------- CTA band ---------- */
.cta-band{background:var(--ink);color:#fff;border-radius:var(--radius-lg);padding:clamp(var(--space-10),5vw,var(--space-20));text-align:center;position:relative;overflow:hidden}
.cta-band::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,rgba(46,158,31,.35),transparent 55%)}
.cta-band>*{position:relative;z-index:1}
.cta-band h2{font-size:var(--text-2xl);margin-bottom:var(--space-4)}
.cta-band p{color:#cfd2d5;max-width:52ch;margin:0 auto var(--space-8);font-size:var(--text-lg)}

/* ---------- FAQ ---------- */
.faq{display:flex;flex-direction:column;gap:var(--space-3);max-width:820px;margin-inline:auto}
.faq details{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);overflow:hidden}
.faq summary{list-style:none;cursor:pointer;padding:var(--space-5) var(--space-6);font-family:var(--font-display);text-transform:none;font-size:var(--text-lg);display:flex;justify-content:space-between;align-items:center;gap:var(--space-4)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.5rem;color:var(--gold-deep);transition:var(--transition);flex:none}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p,.faq details ul{padding:0 var(--space-6) var(--space-5);color:var(--color-text-muted);font-size:var(--text-sm)}
.faq details ul{margin-left:var(--space-5)}

/* ---------- Table (AEO extractable) ---------- */
.tbl-wrap{overflow-x:auto;border:1px solid var(--color-border);border-radius:var(--radius-md)}
table.data{width:100%;border-collapse:collapse;font-size:var(--text-sm)}
table.data th,table.data td{text-align:left;padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--color-border)}
table.data th{background:var(--color-surface-2);font-family:var(--font-display);text-transform:uppercase;letter-spacing:.04em;font-size:.78rem}
table.data tr:last-child td{border-bottom:none}

/* ---------- Breadcrumb ---------- */
.crumb{font-size:var(--text-xs);color:var(--color-text-faint);padding-top:var(--space-6)}
.crumb a:hover{color:var(--gold-deep)}

/* ---------- Page banner (interior) ---------- */
.pbanner{background:var(--ink);color:#fff;position:relative;overflow:hidden}
.pbanner::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 90% 10%,rgba(46,158,31,.3),transparent 50%)}
.pbanner-inner{position:relative;z-index:1;padding-block:clamp(var(--space-12),7vw,var(--space-20))}
.pbanner h1{font-size:var(--text-2xl);max-width:20ch;margin:var(--space-3) 0}
.pbanner p{color:#cfd2d5;max-width:60ch;font-size:var(--text-lg)}

/* ---------- Contact ---------- */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-12)}
.field{display:flex;flex-direction:column;gap:var(--space-2);margin-bottom:var(--space-5)}
.field label{font-family:var(--font-display);text-transform:uppercase;font-size:.78rem;letter-spacing:.06em;font-weight:600;color:var(--color-text-muted)}
.field input,.field textarea,.field select{width:100%;min-width:0;box-sizing:border-box;padding:.8em 1em;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-bg);color:var(--color-text);font-size:var(--text-sm)}
.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:var(--gold)}
.info-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:var(--space-8)}
.info-row{display:flex;gap:var(--space-4);align-items:flex-start;padding-block:var(--space-4);border-bottom:1px solid var(--color-border)}
.info-row:last-child{border-bottom:none}
.info-row .ico{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:var(--radius-md);background:color-mix(in srgb,var(--green) 16%,transparent);color:var(--green-deep)}
[data-theme=dark] .info-row .ico{color:var(--lime)}
.info-row b{display:block;font-family:var(--font-display);text-transform:uppercase;font-size:.8rem;letter-spacing:.05em;color:var(--color-text-muted)}
.info-row a,.info-row span{font-size:var(--text-base);color:var(--color-text)}

/* ---------- Footer ---------- */
.footer{background:var(--ink);color:#cfd2d5;padding-block:var(--space-16) var(--space-8)}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:var(--space-10)}
.footer h4{color:#fff;font-size:.9rem;letter-spacing:.08em;margin-bottom:var(--space-4)}
.footer a{color:#aeb2b6;font-size:var(--text-sm)}
.footer a:hover{color:var(--gold)}
.footer ul{list-style:none;display:flex;flex-direction:column;gap:var(--space-2)}
.footer .fbrand img{height:54px;margin-bottom:var(--space-4)}
.footer .fbrand p{font-size:var(--text-sm);max-width:34ch;color:#9da1a5}
.footer-bottom{margin-top:var(--space-12);padding-top:var(--space-6);border-top:1px solid rgba(255,255,255,.12);display:flex;justify-content:space-between;flex-wrap:wrap;gap:var(--space-4);font-size:var(--text-xs);color:#80858a}

/* ---------- Reveal animation ---------- */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s cubic-bezier(.16,1,.3,1)}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

/* ---------- Responsive ---------- */
@media(max-width:960px){
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .split{grid-template-columns:1fr;gap:var(--space-8)}
  .split.reverse .split-media{order:0}
  .contact-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr;gap:var(--space-8)}
  .stats{grid-template-columns:repeat(2,1fr);gap:var(--space-8)}
}
@media(max-width:900px){
  .menu,.nav-phone{display:none}
  .burger{display:flex}
  .menu.open{display:flex;position:absolute;top:72px;left:0;right:0;flex-direction:column;background:var(--color-bg);border-bottom:1px solid var(--color-border);padding:var(--space-5);gap:var(--space-4);box-shadow:var(--shadow-md)}
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr 1fr}
}

/* small-phone nav fix */
@media(max-width:520px){
  .nav{gap:var(--space-3)}
  .nav-cta .btn{display:none}
  .brand img{width:40px;height:50px}
  .brand .bname{font-size:.78rem;line-height:1.15}
}
@media(max-width:400px){
  .brand .bname{display:none}
}

/* grid shrink fix */
.grid>*,.contact-grid>*,.split>*{min-width:0}

/* long-string wrap */
.info-row a,.info-card a,.footer a{overflow-wrap:anywhere}
