:root{
  --navy:#082d5b;
  --navy-dark:#041f42;
  --blue:#0f5a82;
  --yellow:#ffe31b;
  --yellow-dark:#e4bc00;
  --ink:#14273b;
  --muted:#617181;
  --light:#f4f7fa;
  --line:#d9e2ea;
  --white:#fff;
  --shadow:0 18px 55px rgba(4,31,66,.14);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;line-height:1.55}
img,video{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
.wrap{width:min(1200px,calc(100% - 40px));margin:auto}
.utility{background:var(--navy-dark);color:#fff;font-size:12px}
.utility .wrap{display:flex;justify-content:space-between;padding:8px 0;gap:20px}
.utility strong{color:var(--yellow)}
header{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav{height:78px;display:flex;align-items:center;gap:28px}
.brand{width:235px;flex:0 0 auto}
.navlinks{margin-left:auto;display:flex;align-items:center;gap:24px;font-size:14px;font-weight:800}
.navlinks a{position:relative}
.navlinks a:after{content:"";position:absolute;left:0;right:100%;bottom:-10px;height:3px;background:var(--yellow);transition:.22s}
.navlinks a:hover:after,.navlinks a.active:after{right:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 20px;border-radius:6px;font-weight:900;font-size:13px;text-transform:uppercase;letter-spacing:.02em;border:1px solid transparent;cursor:pointer;transition:.2s}
.btn:hover{transform:translateY(-2px)}
.btn-yellow{background:var(--yellow);color:#101c2a;border-color:var(--yellow-dark);box-shadow:0 3px 0 var(--yellow-dark)}
.btn-navy{background:var(--navy);color:#fff}
.btn-outline{background:transparent;color:#fff;border-color:#fff}
.menu{display:none;margin-left:auto;border:0;background:transparent;color:var(--navy);font-size:28px}
.hero{position:relative;min-height:690px;display:flex;align-items:center;overflow:hidden;background:var(--navy-dark);color:#fff}
.hero video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,31,66,.96) 0%,rgba(4,31,66,.86) 38%,rgba(4,31,66,.35) 68%,rgba(4,31,66,.12) 100%);z-index:1}
.hero:after{content:"";position:absolute;left:0;right:0;top:0;height:12px;background:repeating-linear-gradient(135deg,var(--yellow) 0 18px,var(--navy-dark) 18px 36px);z-index:2}
.hero .wrap{position:relative;z-index:3}
.hero-copy{width:min(700px,64%);padding:90px 0 72px}
.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:12px;font-weight:900;color:var(--yellow)}
h1,h2,h3{font-family:"Arial Narrow",Arial,Helvetica,sans-serif}
h1{font-size:clamp(48px,6vw,80px);line-height:.98;margin:12px 0 18px;letter-spacing:-.035em}
.hero p{font-size:18px;max-width:650px;color:#e0eaf0}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.trust{display:flex;gap:26px;flex-wrap:wrap;margin-top:32px;font-size:13px;font-weight:800}
.trust span:before{content:"✓";color:var(--yellow);margin-right:7px}
section{padding:88px 0}
.section-head{max-width:780px;margin:0 auto 44px;text-align:center}
.section-head h2,.split h2{font-size:clamp(34px,4vw,52px);line-height:1.05;color:var(--navy);margin:8px 0 15px}
.section-head p,.split p{color:var(--muted)}
.yellow-line{width:68px;height:5px;background:var(--yellow);margin:16px 0 22px}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{border:1px solid var(--line);border-radius:12px;padding:26px;background:#fff;box-shadow:0 8px 24px rgba(4,31,66,.06);transition:.2s}
.card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.icon{width:54px;height:54px;border-radius:10px;background:var(--yellow);display:grid;place-items:center;font-size:25px;margin-bottom:18px}
.card h3{color:var(--navy);font-size:22px;margin:0 0 10px}
.card p{color:var(--muted);font-size:15px;margin:0}
.split{display:grid;grid-template-columns:1.05fr 1fr;gap:64px;align-items:center}
.recycling{background:var(--light)}
.hierarchy{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:28px}
.step{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;text-align:center;position:relative}
.step:not(:last-child):after{content:"→";position:absolute;right:-16px;top:45%;font-size:24px;color:var(--navy);font-weight:900}
.step .round{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;margin:0 auto 13px;background:var(--yellow);font-size:27px}
.step b{display:block;color:var(--navy)}
.callout{border-left:6px solid var(--yellow);background:#fffbe5;padding:22px 24px;border-radius:0 10px 10px 0;margin-top:24px}
.checks{display:grid;grid-template-columns:1fr 1fr;gap:12px 22px;margin-top:22px}
.check{display:flex;gap:10px;font-weight:750;font-size:14px}
.check:before{color:navy;content:"✓";display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:var(--yellow);flex:0 0 23px}
.transport{background:var(--navy);color:#fff}
.transport .section-head h2,.transport .section-head p{color:#fff}
.transport-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.transport-item{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.17);border-radius:10px;padding:20px;text-align:center;font-size:13px;font-weight:800}
.transport-item strong{display:block;color:var(--yellow);font-size:26px;margin-bottom:9px}
.states{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:12px;margin-top:25px}
.state{padding:20px;border-radius:10px;background:#eef4f8;border:1px solid var(--line);font-weight:900;color:var(--navy);text-align:center}
.state.primary{background:var(--navy);color:#fff}
.compliance{background:var(--navy-dark);color:#fff}
.compliance .section-head h2,.compliance .section-head p{color:#fff}
.logo-collage{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.logo-card{background:#fff;border-radius:12px;padding:12px;min-height:180px;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 30px rgba(0,0,0,.18)}
.logo-card img{max-height:150px}
.compliance-note{margin-top:28px;border-top:1px solid rgba(255,255,255,.18);padding-top:24px;display:grid;grid-template-columns:1fr 1fr;gap:30px;color:#d8e4eb}
.why{background:var(--light)}
.cta{background:linear-gradient(120deg,var(--navy-dark),var(--navy));color:#fff}
.cta-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:60px;align-items:start}
.cta h2{color:#fff;font-size:52px;line-height:1.05;margin:8px 0 18px}
.form{background:#fff;color:var(--ink);padding:28px;border-radius:14px;box-shadow:var(--shadow)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.field.full{grid-column:1/-1}
.field label{display:block;font-size:12px;font-weight:900;margin-bottom:6px;color:#536778}
.field input,.field select,.field textarea{width:100%;padding:13px 14px;border:1px solid #c8d3de;border-radius:6px;background:#fff}
.field textarea{min-height:120px;resize:vertical}
.page-hero{background:linear-gradient(110deg,rgba(4,31,66,.98),rgba(4,31,66,.64)),var(--navy);color:#fff;padding:105px 0}
.page-hero h1{font-size:60px;margin:0 0 12px}
.page-hero p{max-width:700px;color:#d9e5ec;font-size:18px}
.content{max-width:980px;margin:auto}
.content h2{font-size:38px;color:var(--navy);margin-top:42px}
.service-layout{display:grid;grid-template-columns:280px 1fr;gap:42px}
.side{position:sticky;top:110px;align-self:start;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.side a{display:block;padding:13px 16px;border-bottom:1px solid var(--line);font-size:13px;font-weight:800}
.side a:hover{background:var(--yellow)}
.footer{background:#031a37;color:#c9d7df;padding:50px 0 24px}
.footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:34px}
.footer h4{color:#fff}
.footer a,.footer span{display:block;margin:8px 0;font-size:13px}
.footer-logo{width:220px;filter:brightness(0) invert(1);opacity:.95}
.footer-bottom{border-top:1px solid rgba(255,255,255,.14);margin-top:28px;padding-top:18px;font-size:11px}
.toast{position:fixed;right:20px;bottom:20px;background:var(--navy-dark);color:#fff;padding:14px 18px;border-radius:8px;opacity:0;transform:translateY(80px);transition:.25s;z-index:100}
.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:980px){
 .navlinks{display:none;position:absolute;left:20px;right:20px;top:86px;background:#fff;padding:20px;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch}
 .navlinks.open{display:flex}.menu{display:block}.nav>.btn{display:none}
 .hero-copy{width:85%}.cards{grid-template-columns:repeat(2,1fr)}.split,.cta-grid{grid-template-columns:1fr}
 .transport-grid{grid-template-columns:repeat(2,1fr)}.logo-collage{grid-template-columns:repeat(3,1fr)}
 .service-layout{grid-template-columns:1fr}.side{position:relative;top:auto}.footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
 .utility .wrap{flex-direction:column;gap:3px}.brand{width:195px}.hero{min-height:720px}.hero-copy{width:100%}
 .cards,.form-grid,.checks{grid-template-columns:1fr}.field.full{grid-column:auto}.hierarchy{grid-template-columns:1fr 1fr}.step:nth-child(2):after{display:none}
 .transport-grid,.states{grid-template-columns:1fr}.logo-collage{grid-template-columns:1fr 1fr}.compliance-note{grid-template-columns:1fr}
 .footer-grid{grid-template-columns:1fr}
}

/* ==========================================
   Pacific Oil Company History / About
   ========================================== */

.company-story{
  background:#fff;
}

.company-history-panel{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.history-stat{
  min-height:165px;
  background:var(--navy);
  color:#fff;
  border-radius:12px;
  padding:25px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  border-bottom:5px solid var(--yellow);
  box-shadow:0 12px 35px rgba(4,31,66,.13);
}

.history-stat strong{
  display:block;
  color:var(--yellow);
  font-family:"Arial Narrow",Arial,Helvetica,sans-serif;
  font-size:38px;
  line-height:1;
  margin-bottom:10px;
}

.history-stat span{
  font-size:13px;
  font-weight:700;
  line-height:1.35;
}

@media(max-width:640px){
  .company-history-panel{
    grid-template-columns:1fr;
  }

  .history-stat{
    min-height:125px;
  }
}


.brand{
  width:240px;
  height:64px;
  object-fit:contain;
}
.footer-logo{
  width:min(330px,100%);
  max-height:105px;
  object-fit:contain;
  filter:none;
  opacity:1;
}


/* ======================================================
   Safety & Compliance — automatic horizontal logo scroller
   ====================================================== */

.agency-scroller{
  position:relative;
  width:100%;
  margin:36px auto 0;
}

/* Soft edge fades make the continuous strip feel intentional. */
.agency-scroller::before,
.agency-scroller::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:70px;
  z-index:4;
  pointer-events:none;
}

.agency-scroller::before{
  left:0;
  background:linear-gradient(
    90deg,
    var(--navy-dark) 0%,
    rgba(4,31,66,.82) 38%,
    rgba(4,31,66,0) 100%
  );
}

.agency-scroller::after{
  right:0;
  background:linear-gradient(
    270deg,
    var(--navy-dark) 0%,
    rgba(4,31,66,.82) 38%,
    rgba(4,31,66,0) 100%
  );
}

.agency-scroller__viewport{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -ms-overflow-style:none;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}

.agency-scroller__viewport::-webkit-scrollbar{
  display:none;
}

.agency-scroller__track{
  display:flex;
  width:max-content;
  will-change:transform;
  animation:agencyLogoScroll 34s linear infinite;
}

.agency-scroller__group{
  display:flex;
  flex:none;
  align-items:stretch;
  gap:18px;
  padding-right:18px;
}

.agency-scroll-card{
  margin:0;
  flex:0 0 245px;
  width:245px;
  height:180px;
  padding:18px 20px 14px;
  background:#fff;
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  box-shadow:0 12px 32px rgba(0,0,0,.18);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.agency-scroll-card img{
  width:100%;
  height:115px;
  object-fit:contain;
  object-position:center;
}

.agency-scroll-card figcaption{
  min-height:34px;
  margin-top:8px;
  color:#17324f;
  font-size:11px;
  line-height:1.25;
  font-weight:800;
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
}

@keyframes agencyLogoScroll{
  from{
    transform:translateX(0);
  }
  to{
    transform:translateX(-50%);
  }
}

/* Stop the automatic motion while a desktop visitor inspects the logos. */
@media (hover:hover) and (pointer:fine){
  .agency-scroller:hover .agency-scroller__track{
    animation-play-state:paused;
  }

  .agency-scroll-card{
    transition:transform .2s ease,box-shadow .2s ease;
  }

  .agency-scroll-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 40px rgba(0,0,0,.25);
  }
}

/* Manual swipe remains available on tablets and phones. */
@media(max-width:700px){
  .agency-scroller::before,
  .agency-scroller::after{
    width:28px;
  }

  .agency-scroll-card{
    flex-basis:205px;
    width:205px;
    height:158px;
    padding:14px 16px 12px;
  }

  .agency-scroll-card img{
    height:96px;
  }

  .agency-scroller__track{
    animation-duration:28s;
  }
}

/* Accessibility: no forced animation for reduced-motion users. */
@media(prefers-reduced-motion:reduce){
  .agency-scroller__track{
    animation:none;
  }

  .agency-scroller__viewport{
    scrollbar-width:auto;
  }

  .agency-scroller__viewport::-webkit-scrollbar{
    display:block;
    height:8px;
  }
}


/* =========================================================
   VERSION C — MAPS + UNIFIED INNER PAGE DESIGN
   ========================================================= */


.service-area-visual {
  background:#fff;
}


.state-map-grid {

  display:grid;

  grid-template-columns:
    1.35fr
    1fr
    1fr;

  grid-template-rows:
    1fr
    1fr;

  gap:18px;

  margin-top:34px;

}


.state-map-card {

  border:
    1px
    solid
    var(--line);

  border-radius:15px;

  background:#fff;

  overflow:hidden;

  box-shadow:
    0
    10px
    30px
    rgba(4,31,66,.08);

  display:grid;

  grid-template-rows:
    1fr
    auto;

  min-height:300px;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;

}


.state-map-card--primary {

  grid-row:
    1 / 3;

  min-height:620px;

  border-color:
    var(--yellow-dark);

}


.state-map-image {

  min-height:0;

  padding:22px;

  background:
    linear-gradient(
      145deg,
      #f8fafc,
      #eef3f8
    );

  display:flex;

  align-items:center;

  justify-content:center;

}


.state-map-card--primary
.state-map-image {

  padding:38px;

}


.state-map-image img {

  width:100%;

  height:100%;

  max-height:390px;

  object-fit:contain;

}


.state-map-caption {

  padding:
    18px
    20px
    20px;

  border-top:
    1px
    solid
    var(--line);

}


.state-map-caption h3 {

  margin:
    7px
    0
    5px;

  color:
    var(--navy);

  font-size:25px;

}


.state-map-caption p {

  margin:0;

  color:
    var(--muted);

  font-size:13px;

}


.state-map-badge {

  display:inline-block;

  background:
    var(--yellow);

  color:
    var(--navy-dark);

  border-radius:999px;

  padding:
    5px
    9px;

  font-size:10px;

  font-weight:900;

  text-transform:uppercase;

  letter-spacing:.07em;

}


.service-area-note {

  text-align:center;

  color:
    var(--muted);

  font-size:13px;

  max-width:820px;

  margin:
    22px
    auto
    0;

}


/* INNER HERO */

.inner-hero {

  position:relative;

  overflow:hidden;

  background:

    linear-gradient(
      105deg,
      rgba(4,31,66,.98),
      rgba(8,45,91,.88) 58%,
      rgba(15,90,130,.72)
    ),

    var(--navy-dark);

  color:#fff;

  padding:
    100px
    0
    88px;

}


.inner-hero::after {

  content:"";

  position:absolute;

  left:0;

  right:0;

  bottom:0;

  height:10px;

  background:

    repeating-linear-gradient(
      135deg,
      var(--yellow) 0 18px,
      var(--navy-dark) 18px 36px
    );

}


.inner-hero__content {

  max-width:900px;

}


.inner-hero h1 {

  color:#fff;

  max-width:850px;

  font-size:
    clamp(
      48px,
      6vw,
      72px
    );

}


.inner-hero p {

  max-width:720px;

  color:#d9e7ef;

  font-size:18px;

}


/* INNER SECTIONS */

.inner-section {

  padding:
    86px
    0;

}


.inner-section--light {

  background:
    var(--light);

}


.inner-section--navy {

  background:
    var(--navy);

  color:#fff;

}


.inner-section--navy h2,
.inner-section--navy p {

  color:#fff;

}


.inner-highlight-card {

  background:#fff;

  border:
    1px
    solid
    var(--line);

  border-radius:14px;

  padding:30px;

  box-shadow:
    var(--shadow);

}


.inner-highlight-card h3 {

  color:
    var(--navy);

  margin-top:0;

  font-size:26px;

}


.inner-dark-list {

  display:grid;

  grid-template-columns:
    1fr
    1fr;

  gap:12px;

}


.inner-dark-list span {

  border:
    1px
    solid
    rgba(255,255,255,.2);

  background:
    rgba(255,255,255,.06);

  border-radius:9px;

  padding:
    15px
    16px;

  font-size:13px;

  font-weight:800;

}


/* TRUST STRIP */

.inner-trust-band {

  background:#eef3f7;

  border-top:
    1px
    solid
    var(--line);

  border-bottom:
    1px
    solid
    var(--line);

  padding:
    32px
    0;

}


.inner-trust-band__grid {

  display:grid;

  grid-template-columns:
    repeat(
      4,
      1fr
    );

}


.inner-trust-band__grid div {

  padding:
    8px
    22px;

  border-right:
    1px
    solid
    #cbd7df;

}


.inner-trust-band__grid
div:last-child {

  border-right:0;

}


.inner-trust-band strong {

  display:block;

  color:
    var(--navy);

  margin-bottom:5px;

}


.inner-trust-band span {

  display:block;

  color:
    var(--muted);

  font-size:12px;

  line-height:1.4;

}


/* INNER FINAL CTA */

.inner-cta {

  background:

    linear-gradient(
      120deg,
      var(--navy-dark),
      var(--navy)
    );

  color:#fff;

  padding:
    68px
    0;

}


.inner-cta__grid {

  display:grid;

  grid-template-columns:
    1fr
    auto;

  gap:40px;

  align-items:center;

}


.inner-cta h2 {

  color:#fff;

  font-size:46px;

  margin:
    5px
    0
    12px;

}


.inner-cta p {

  color:#d7e4ec;

  max-width:720px;

}


.inner-cta__actions {

  display:flex;

  flex-direction:column;

  gap:10px;

  min-width:235px;

}


.inner-cta__actions
.btn {

  width:100%;

}


@media
(hover:hover)
and
(pointer:fine) {

  .state-map-card:hover {

    transform:
      translateY(-5px);

    box-shadow:
      0
      18px
      45px
      rgba(4,31,66,.14);

    border-color:
      var(--yellow);

  }

}


@media(max-width:980px) {

  .state-map-grid {

    grid-template-columns:
      1fr
      1fr;

    grid-template-rows:auto;

  }


  .state-map-card--primary {

    grid-column:
      1 / -1;

    grid-row:auto;

    min-height:500px;

  }


  .inner-trust-band__grid {

    grid-template-columns:
      1fr
      1fr;

  }


  .inner-cta__grid {

    grid-template-columns:
      1fr;

  }


  .inner-cta__actions {

    flex-direction:row;

    flex-wrap:wrap;

  }

}


@media(max-width:640px) {

  .state-map-grid {

    grid-template-columns:
      1fr;

  }


  .state-map-card--primary {

    grid-column:auto;

    min-height:390px;

  }


  .state-map-card {

    min-height:300px;

  }


  .state-map-image {

    min-height:220px;

  }


  .inner-dark-list,
  .inner-trust-band__grid {

    grid-template-columns:
      1fr;

  }


  .inner-hero {

    padding:
      78px
      0
      70px;

  }


  .inner-cta__actions {

    flex-direction:column;

  }


  .inner-cta__actions
  .btn {

    width:100%;

  }

}


/* =========================================================
   Service Area Map Size Fix
   Smaller, flatter, more balanced presentation
   ========================================================= */

.state-map-grid{
  display:grid;
  grid-template-columns:1.25fr 1fr 1fr 1fr;
  grid-template-rows:auto;
  gap:16px;
  align-items:stretch;
  margin-top:28px;
}

.state-map-card,
.state-map-card--primary{
  grid-column:auto;
  grid-row:auto;
  min-height:0;
  height:auto;
  border-radius:12px;
}

.state-map-card--primary{
  border:2px solid var(--yellow);
}

.state-map-image,
.state-map-card--primary .state-map-image{
  min-height:0;
  height:210px;
  padding:16px;
}

.state-map-card--primary .state-map-image{
  height:220px;
  padding:18px;
}

.state-map-image img{
  width:100%;
  height:100%;
  max-height:190px;
  object-fit:contain;
}

.state-map-card--primary .state-map-image img{
  max-height:200px;
}

.state-map-caption{
  padding:14px 16px 16px;
}

.state-map-caption h3{
  font-size:21px;
  margin:6px 0 3px;
}

.state-map-caption p{
  font-size:12px;
  line-height:1.4;
}

.state-map-badge{
  font-size:9px;
  padding:4px 8px;
}

.service-area-note{
  margin-top:18px;
}

/* Tablet: compact 2x2 layout */
@media(max-width:980px){

  .state-map-grid{
    grid-template-columns:1fr 1fr;
    gap:14px;
  }

  .state-map-card--primary{
    grid-column:auto;
  }

  .state-map-image,
  .state-map-card--primary .state-map-image{
    height:200px;
  }

  .state-map-image img,
  .state-map-card--primary .state-map-image img{
    max-height:180px;
  }

}

/* Mobile: compact stacked cards */
@media(max-width:640px){

  .state-map-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .state-map-card,
  .state-map-card--primary{
    min-height:0;
  }

  .state-map-image,
  .state-map-card--primary .state-map-image{
    height:170px;
    padding:12px;
  }

  .state-map-image img,
  .state-map-card--primary .state-map-image img{
    max-height:150px;
  }

  .state-map-caption{
    padding:12px 14px 14px;
  }

  .state-map-caption h3{
    font-size:20px;
  }

}


/* =========================================================
   MAP HOVER EXPANSION
   Desktop only: hovered map widens, siblings compress gently
   ========================================================= */

@media (min-width:981px) and (hover:hover) and (pointer:fine){

  .state-map-grid{
    display:flex;
    align-items:stretch;
    gap:16px;
  }

  .state-map-card,
  .state-map-card--primary{
    flex:1 1 0;
    width:auto;
    min-width:0;
    grid-column:auto;
    grid-row:auto;
    transition:
      flex .32s cubic-bezier(.2,.7,.2,1),
      transform .22s ease,
      box-shadow .22s ease,
      border-color .22s ease;
  }

  /* California remains only slightly more prominent at rest. */
  .state-map-card--primary{
    flex-grow:1.12;
  }

  /* Hovered card becomes wider. */
  .state-map-grid:hover .state-map-card{
    flex-grow:.88;
  }

  .state-map-grid:hover .state-map-card:hover{
    flex-grow:1.38;
    transform:translateY(-5px);
    border-color:var(--yellow);
    box-shadow:0 18px 45px rgba(4,31,66,.16);
  }

  /* Keep map artwork centered while card width changes. */
  .state-map-image,
  .state-map-card--primary .state-map-image{
    width:100%;
    overflow:hidden;
  }

  .state-map-image img{
    transition:transform .32s ease;
  }

  .state-map-card:hover .state-map-image img{
    transform:scale(1.035);
  }

}

/* Respect reduced motion. */
@media (prefers-reduced-motion:reduce){

  .state-map-card,
  .state-map-card--primary,
  .state-map-image img{
    transition:none !important;
  }

  .state-map-grid:hover .state-map-card,
  .state-map-grid:hover .state-map-card:hover{
    flex-grow:1;
    transform:none;
  }

  .state-map-card--primary{
    flex-grow:1;
  }

}



/* =========================================================
   POC Services Document Content Upgrade
   ========================================================= */

.specialty-service-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:30px;
}

.specialty-service-grid > div{
  background:#f6f8fa;
  border:1px solid var(--line);
  border-left:4px solid var(--yellow);
  color:var(--navy);
  border-radius:9px;
  padding:15px 16px;
  font-size:13px;
  font-weight:800;
  display:flex;
  align-items:center;
  min-height:62px;
}

.specialty-service-grid__featured{
  background:var(--navy) !important;
  color:#fff !important;
  border-color:var(--yellow) !important;
}

.emergency-response-band{
  background:linear-gradient(135deg,#fff8da,#fff);
  border-top:1px solid #f1d86e;
  border-bottom:1px solid #f1d86e;
}

/* Waste category accordions */

.waste-category-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  margin-top:32px;
}

.waste-category{
  background:#fff;
  border:1px solid var(--line);
  border-radius:13px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(4,31,66,.06);
}

.waste-category--featured{
  border:2px solid var(--yellow);
}

.waste-category summary{
  cursor:pointer;
  list-style:none;
  display:grid;
  grid-template-columns:50px 1fr;
  align-items:center;
  gap:14px;
  padding:20px;
  color:var(--navy);
  user-select:none;
}

.waste-category summary::-webkit-details-marker{
  display:none;
}

.waste-category summary::after{
  content:"+";
  grid-column:3;
  color:var(--blue);
  font-size:24px;
  font-weight:900;
}

.waste-category[open] summary::after{
  content:"−";
}

.waste-category__icon{
  width:46px;
  height:46px;
  border-radius:10px;
  background:var(--yellow);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:23px;
}

.waste-category summary strong{
  display:block;
  font-size:20px;
}

.waste-category summary small{
  display:block;
  color:var(--muted);
  margin-top:4px;
  line-height:1.35;
}

.waste-category__content{
  border-top:1px solid var(--line);
  padding:16px 22px 20px 78px;
  background:#f8fafc;
}

.waste-category__content ul{
  margin:0;
  padding-left:18px;
  columns:2;
  column-gap:28px;
}

.waste-category__content li{
  color:#425466;
  font-size:13px;
  line-height:1.45;
  margin-bottom:8px;
  break-inside:avoid;
}

.dont-see-waste{
  background:var(--navy-dark);
  color:#fff;
  padding:54px 0;
}

.dont-see-waste__grid{
  display:grid;
  grid-template-columns:1fr auto;
  gap:36px;
  align-items:center;
}

.dont-see-waste h2{
  color:#fff;
  margin:5px 0 10px;
}

.dont-see-waste p{
  color:#d4e2eb;
  max-width:850px;
  margin:0;
}

/* Expanded industry grid */

.industry-expanded-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:30px;
}

.industry-expanded-grid article{
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:23px;
  box-shadow:0 8px 24px rgba(4,31,66,.06);
}

.industry-expanded-grid article .icon{
  font-size:27px;
  margin-bottom:12px;
}

.industry-expanded-grid article h3{
  margin:0 0 8px;
  color:var(--navy);
}

.industry-expanded-grid article p{
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  margin-bottom:0;
}

.industry-expanded-grid article span{
  display:block;
  margin-top:13px;
  padding-top:11px;
  border-top:1px solid var(--line);
  color:var(--blue);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.industry-expanded-grid .industry-featured{
  border:2px solid var(--yellow);
  background:linear-gradient(145deg,#fff,#fffbea);
}

@media(hover:hover) and (pointer:fine){
  .waste-category summary:hover{
    background:#fffbea;
  }

  .industry-expanded-grid article{
    transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
  }

  .industry-expanded-grid article:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 34px rgba(4,31,66,.12);
    border-color:var(--yellow);
  }
}

@media(max-width:980px){
  .specialty-service-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .industry-expanded-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:700px){
  .waste-category-grid,
  .industry-expanded-grid,
  .specialty-service-grid{
    grid-template-columns:1fr;
  }

  .waste-category__content{
    padding:15px 20px 18px;
  }

  .waste-category__content ul{
    columns:1;
  }

  .dont-see-waste__grid{
    grid-template-columns:1fr;
  }

  .dont-see-waste__grid .btn{
    width:100%;
  }
}

/* =========================================================
   SERVICES CARD STRUCTURE REPAIR
   Restores clear 3-column service cards
   ========================================================= */

.service-detail-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:24px !important;
  align-items:stretch !important;
  margin-top:34px !important;
}

.service-detail-card{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  min-width:0 !important;
  min-height:255px !important;
  padding:30px 30px 28px !important;
  background:#fff !important;
  border:1px solid #d8e2ea !important;
  border-radius:14px !important;
  box-shadow:0 10px 28px rgba(4,31,66,.07) !important;
  overflow:hidden !important;
}

.service-detail-card .icon{
  width:64px !important;
  height:64px !important;
  flex:0 0 64px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 0 26px !important;
  padding:0 !important;
  border-radius:12px !important;
  background:var(--yellow) !important;
  color:var(--navy-dark) !important;
  font-size:28px !important;
  line-height:1 !important;
}

.service-detail-card h3{
  width:100% !important;
  margin:0 0 14px !important;
  color:var(--navy) !important;
  font-size:24px !important;
  line-height:1.18 !important;
  font-weight:800 !important;
}

.service-detail-card p{
  width:100% !important;
  margin:0 !important;
  color:var(--muted) !important;
  font-size:16px !important;
  line-height:1.55 !important;
}

/* Keep cards visually balanced even when descriptions vary. */
.service-detail-card > p:last-child{
  margin-top:auto !important;
  padding-top:0 !important;
}

/* Desktop hover */
@media (hover:hover) and (pointer:fine){
  .service-detail-card{
    transition:
      transform .2s ease,
      box-shadow .2s ease,
      border-color .2s ease !important;
  }

  .service-detail-card:hover{
    transform:translateY(-5px) !important;
    border-color:var(--yellow) !important;
    box-shadow:0 18px 40px rgba(4,31,66,.13) !important;
  }
}

/* Tablet */
@media(max-width:980px){
  .service-detail-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:18px !important;
  }

  .service-detail-card{
    min-height:240px !important;
  }
}

/* Mobile */
@media(max-width:640px){
  .service-detail-grid{
    grid-template-columns:1fr !important;
    gap:14px !important;
  }

  .service-detail-card{
    min-height:0 !important;
    padding:24px 22px !important;
  }

  .service-detail-card .icon{
    width:56px !important;
    height:56px !important;
    flex-basis:56px !important;
    margin-bottom:20px !important;
    font-size:25px !important;
  }

  .service-detail-card h3{
    font-size:21px !important;
  }

  .service-detail-card p{
    font-size:15px !important;
  }
}

/* Reduced motion */
@media(prefers-reduced-motion:reduce){
  .service-detail-card{
    transition:none !important;
  }

  .service-detail-card:hover{
    transform:none !important;
  }
}


/* =========================================================
   Customer / Terms / Contact / Static Image Upgrade
   ========================================================= */

.specialty-service-grid > div,
.specialty-service-grid__featured{
  background:#f6f8fa !important;
  color:var(--navy) !important;
  border:1px solid var(--line) !important;
  border-left:4px solid var(--yellow) !important;
  transition:background .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease !important;
}

@media(hover:hover) and (pointer:fine){
  .specialty-service-grid > div:hover{
    background:var(--navy) !important;
    color:#fff !important;
    border-color:var(--yellow) !important;
    transform:translateY(-4px);
    box-shadow:0 14px 30px rgba(4,31,66,.18);
  }
}

.page-visual-band{
  padding:34px 0 18px;
  background:#fff;
}

.page-visual-band__figure{
  position:relative;
  margin:0;
  overflow:hidden;
  border-radius:16px;
  background:var(--navy-dark);
  box-shadow:0 18px 44px rgba(4,31,66,.14);
}

.page-visual-band__figure img{
  display:block;
  width:100%;
  height:clamp(280px,34vw,520px);
  object-fit:cover;
}

.page-visual-band__figure figcaption{
  position:absolute;
  left:18px;
  bottom:18px;
  max-width:650px;
  padding:10px 14px;
  border-left:4px solid var(--yellow);
  background:rgba(4,31,66,.88);
  color:#fff;
  font-size:13px;
  line-height:1.4;
}

.waste-category__header{
  display:grid;
  grid-template-columns:50px 1fr;
  align-items:center;
  gap:14px;
  padding:20px;
  color:var(--navy);
}

.waste-category__header::after{
  content:none !important;
}

.waste-category__content{
  display:block !important;
}

.customer-step-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-top:28px;
}

.customer-step-grid article{
  padding:24px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 8px 24px rgba(4,31,66,.06);
}

.customer-step-grid article span{
  display:inline-flex;
  width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
  border-radius:50%;
  background:var(--yellow);
  color:var(--navy-dark);
  font-weight:900;
}

.customer-step-grid h3{
  margin:0 0 8px;
  color:var(--navy);
}

.customer-step-grid p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.inner-dark-list a{
  color:#fff;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.06);
  border-radius:9px;
  padding:15px 16px;
  font-size:13px;
  font-weight:800;
}

.inner-dark-list a:hover{
  border-color:var(--yellow);
  color:var(--yellow);
}

.terms-content{
  max-width:900px;
}

.terms-content h2{
  margin-top:38px;
  color:var(--navy);
}

.terms-content p{
  color:var(--muted);
  line-height:1.7;
}

.terms-notice{
  padding:20px 22px;
  border-left:5px solid var(--yellow);
  border-radius:9px;
  background:#fff8d8;
  color:var(--navy);
}

.terms-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:38px;
}

.form-consent label{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.form-consent input{
  width:auto;
  margin-top:3px;
}

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

@media(max-width:980px){
  .customer-step-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:640px){
  .page-visual-band{
    padding-top:20px;
  }

  .page-visual-band__figure img{
    height:230px;
  }

  .page-visual-band__figure figcaption{
    position:static;
    max-width:none;
    border-left:0;
    border-top:4px solid var(--yellow);
  }

  .customer-step-grid{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   Inner Page Hero Background Images
   ========================================================= */

.inner-hero--image{
  position:relative;
  isolation:isolate;
  background:
    linear-gradient(
      90deg,
      rgba(4,31,66,.97) 0%,
      rgba(4,31,66,.90) 36%,
      rgba(4,31,66,.68) 62%,
      rgba(4,31,66,.42) 100%
    ),
    var(--hero-image) center center / cover no-repeat !important;
}

.inner-hero--image::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.15));
  pointer-events:none;
}

.inner-hero--image .inner-hero__content{
  position:relative;
  z-index:2;
}

.inner-hero--image h1,
.inner-hero--image p,
.inner-hero--image .eyebrow{
  text-shadow:0 2px 16px rgba(0,0,0,.28);
}

@media(max-width:700px){
  .inner-hero--image{
    background:
      linear-gradient(
        90deg,
        rgba(4,31,66,.98) 0%,
        rgba(4,31,66,.94) 52%,
        rgba(4,31,66,.80) 100%
      ),
      var(--hero-image) center center / cover no-repeat !important;
  }
}

.page-visual-band{
  display:none !important;
}



/* =========================================================
   WASTE CATEGORY WRAPPER RESET
   ========================================================= */

article.waste-category{
  padding:0 !important;
  margin:0 !important;
  min-height:0 !important;
  height:auto !important;
}

.waste-category-grid{
  align-items:start !important;
}


/* =========================================================
   WASTE CATEGORY ALIGNMENT FIX
   Equal row heights + stacked title/subtitle
   ========================================================= */

.waste-category-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:16px !important;
  align-items:stretch !important;
}

article.waste-category{
  display:grid !important;
  grid-template-rows:auto 1fr !important;
  height:100% !important;
  min-height:0 !important;
}

.waste-category__header{
  display:grid !important;
  grid-template-columns:46px minmax(0,1fr) !important;
  align-items:center !important;
  gap:12px !important;
  min-height:86px !important;
  padding:16px 18px !important;
}

.waste-category__header > span:last-child{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  min-width:0 !important;
  gap:4px !important;
}

.waste-category__header strong{
  display:block !important;
  margin:0 !important;
  color:var(--navy) !important;
  font-size:18px !important;
  line-height:1.15 !important;
  font-weight:900 !important;
}

.waste-category__header small{
  display:block !important;
  margin:0 !important;
  color:var(--muted) !important;
  font-size:12.5px !important;
  line-height:1.35 !important;
  font-weight:500 !important;
}

.waste-category__content{
  height:100% !important;
  padding:14px 18px 16px !important;
}

.waste-category__content ul{
  margin:0 !important;
}

@media(max-width:700px){
  .waste-category-grid{
    grid-template-columns:1fr !important;
    align-items:start !important;
  }

  article.waste-category{
    height:auto !important;
  }

  .waste-category__header{
    min-height:0 !important;
  }
}


/* =========================================================
   PRIVACY + CALL CTA UPGRADE
   ========================================================= */

.utility-phone{
  color:inherit;
  text-decoration:none;
  font-weight:800;
}

.utility-phone:hover{
  color:var(--yellow);
  text-decoration:underline;
}

.btn-call{
  white-space:nowrap;
}

.emergency-callout{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}

.emergency-callout p{
  margin:0;
}

.emergency-phone{
  color:var(--navy);
  font-size:20px;
  font-weight:900;
  text-decoration:none;
}

.emergency-phone:hover{
  text-decoration:underline;
}

.footer-bottom a{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:3px;
}

.footer-bottom a:hover{
  color:var(--yellow);
}

.footer-separator{
  display:inline-block;
  margin:0 6px;
}

.privacy-content{
  max-width:900px;
}

.privacy-content h2{
  margin-top:38px;
  color:var(--navy);
}

.privacy-content p{
  color:var(--muted);
  line-height:1.7;
}

.privacy-content a:not(.btn){
  color:var(--blue);
  font-weight:700;
}

@media(max-width:640px){
  .btn-call{
    white-space:normal;
    width:100%;
    text-align:center;
  }
}


/* =========================================================
   CTA + FOOTER CLEANUP
   ========================================================= */

.dual-cta{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:center;
  gap:12px;
  flex-wrap:nowrap;
}

.dual-cta .btn{
  width:100%;
  margin:0;
  text-align:center;
}

.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  flex-wrap:nowrap;
  white-space:nowrap;
}

.footer-bottom,
.footer-bottom span,
.footer-bottom a{
color:inherit;
  font-weight:inherit;
  line-height:inherit;
}

.footer-bottom a{
  text-decoration:none;
}

.footer-bottom a:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

.footer-separator{
  margin:0 !important;
  padding:0 !important;
}






/* =========================================================
   FOOTER EXPLICIT COPYRIGHT SIZE
   ========================================================= */

.footer-bottom{
  font-size:12px !important;
  line-height:1.4 !important;
}

.footer-bottom span,
.footer-bottom a{
  font-size:12px !important;
  line-height:1.4 !important;
}

@media(max-width:640px){
  .footer-bottom,
  .footer-bottom span,
  .footer-bottom a{
    font-size:11px !important;
  }
}

/* =========================================================
   CUSTOMER TERMS RESTORE + CONTACT PHONE LINES
   ========================================================= */

.customer-step-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-top:28px;
}

.customer-step-grid article{
  padding:24px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 8px 24px rgba(4,31,66,.06);
}

.customer-step-grid article span{
  display:inline-flex;
  width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
  border-radius:50%;
  background:var(--yellow);
  color:var(--navy-dark);
  font-weight:900;
}

.customer-step-grid h3{
  margin:0 0 8px;
  color:var(--navy);
}

.customer-step-grid p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.terms-content{
  max-width:900px;
}

.terms-content h2{
  margin-top:38px;
  color:var(--navy);
}

.terms-content p{
  color:var(--muted);
  line-height:1.7;
}

.terms-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:32px;
}

.contact-phone-lines{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:4px;
  color:var(--navy);
  font-size:14px;
  line-height:1.45;
}

.contact-phone-lines div{
  display:flex;
  gap:8px;
  align-items:baseline;
  flex-wrap:wrap;
}

.contact-phone-lines strong{
  min-width:78px;
}

.contact-phone-lines a{
  color:inherit;
  font-weight:800;
  text-decoration:none;
}

.contact-phone-lines a:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

.contact-phone-lines span{
  font-weight:800;
}

@media(max-width:800px){
  .customer-step-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:560px){
  .customer-step-grid{
    grid-template-columns:1fr;
  }
}
