:root{
  --brand:#0c7c59; --accent:#8b5e3c; --bg:#ffffff; --subtle:#f2f7f5; --text:#203131; --border:#e7efec;
  --header-h:156px; --logo-h:144px; --hero-logo-w:672px; --footer-logo-h:160px;
}

:root{
  --hero-photo: url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?q=80&w=1600&auto=format&fit=crop');
}
/* Per-page hero photos */
body.page-home{ --hero-photo: url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?q=80&w=1600&auto=format&fit=crop'); }
body.page-about{ --hero-photo: url('https://source.unsplash.com/1600x900/?neighborhood,curbside,bins'); }
body.page-services{ --hero-photo: url('https://source.unsplash.com/1600x900/?trash,curb,collection'); }
body.page-faq{ --hero-photo: url('https://source.unsplash.com/1600x900/?recycling,bins,street'); }
body.page-contact{ --hero-photo: url('https://source.unsplash.com/1600x900/?mailbox,doorstep,home'); }

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--text);background:var(--bg);line-height:1.6}
.container{max-width:1100px;margin:0 auto;padding:0 20px}
.section{padding:64px 0}
.section.alt{background:var(--subtle)}
h1,h2,h3{color:#0e1b1b}
h2{font-size:32px;margin:0 0 18px}
a{color:var(--brand);text-decoration:none}
.btn{display:inline-block;background:var(--brand);color:#fff;padding:12px 18px;border-radius:10px;font-weight:700}
.btn:hover{filter:brightness(1.05)}
.btn-outline{background:#fff;color:var(--brand);border:2px solid var(--brand)}
.badge{display:inline-block;background:#fff;border:2px solid var(--brand);color:var(--brand);padding:4px 10px;border-radius:999px;font-size:12px;font-weight:800}
.site-header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--border);z-index:20}
.site-header .container{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);gap:14px}
.brand img{height:var(--logo-h);display:block}
.tagline{flex:1;text-align:center;font-weight:800;color:var(--brand);letter-spacing:.2px}
.nav-toggle{display:none;background:transparent;border:0;font-size:22px}
.nav-menu{display:flex;gap:14px;list-style:none;margin:0;padding:0}
.nav-menu a{font-weight:700}
@media (max-width: 900px){
  .tagline{display:none}
  .nav-toggle{display:block}
  .nav-menu{display:none;flex-direction:column;position:absolute;top:var(--header-h);right:20px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:10px;min-width:200px;box-shadow:0 8px 18px rgba(14,27,27,.06)}
  .nav-menu.open{display:flex}
}
.hero{background: url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat; color:#fff; position:relative}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.45))}
.hero-inner{position:relative;padding:96px 0 72px}
.hero h1{font-size:44px;line-height:1.15;margin:0 0 12px;font-weight:900}
.hero p{font-size:18px;max-width:700px;margin:0 0 20px}
.hero-visual{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end}
.hero-logo{width:var(--hero-logo-w);max-width:90vw;height:auto;display:inline-block;vertical-align:middle;filter:drop-shadow(0 6px 16px rgba(0,0,0,.25))}
.hero-art{width:280px;max-width:90vw;height:auto;filter:drop-shadow(0 6px 16px rgba(0,0,0,.15));border-radius:8px;background:transparent}
.card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:20px;box-shadow:0 8px 18px rgba(14,27,27,.06)}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
@media (max-width: 900px){ .grid-2,.grid-3{grid-template-columns:1fr} .hero h1{font-size:34px}}
.price{font-size:34px;font-weight:900;color:var(--brand);margin:8px 0 6px}
.note{font-size:13px;color:#4a6464}
.selectors{margin:10px 0 16px}
.selectors .group{margin-bottom:8px}
.selectors input[type=radio]{position:absolute;left:-9999px}
.selectors label{border:1px solid var(--border);border-radius:10px;padding:10px 12px;cursor:pointer;font-weight:700;background:#fff;display:inline-block;margin-right:8px}
.selectors input[type=radio]:checked + label{border-color:var(--brand);box-shadow:0 0 0 2px rgba(12,124,89,.12)}
.divider{height:1px;background:var(--border);margin:16px 0}
.site-footer{background:#0a1414;color:#cfe3df;padding:40px 0;margin-top:40px}
.site-footer a{color:#cfe3df}
.footer-grid{display:grid;grid-template-columns:2fr 1fr;gap:24px}
.footer-grid img{height:var(--footer-logo-h);margin-bottom:8px}
@media (max-width:900px){ .footer-grid{grid-template-columns:1fr}}
.input{width:100%;padding:12px;border:1px solid var(--border);border-radius:10px;font-size:14px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width: 900px){ .row{grid-template-columns:1fr}}
.promo{background:var(--accent);color:#fff;text-align:center;padding:8px 0;font-weight:800}

@media (max-width: 900px){
  .hero-visual{justify-content:center}
}

/* Hero layout: text left, logo right */
.hero-inner{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:20px}
.hero-inner > .hero-visual{grid-column:2;grid-row:1/span 5;justify-content:flex-end}
.hero-inner > :not(.hero-visual){grid-column:1}
@media (max-width: 900px){
  .hero-inner{display:block}
}




/* Per-page hero photos with reliable fallback layer */
body.page-about .hero{
  background: linear-gradient(180deg, rgba(12,124,89,.12), rgba(12,124,89,0)),
              url('https://source.unsplash.com/1600x900/?neighborhood,curbside,bins'),
              url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat !important;
}
body.page-services .hero{
  background: linear-gradient(180deg, rgba(12,124,89,.12), rgba(12,124,89,0)),
              url('https://source.unsplash.com/1600x900/?trash,curb,collection'),
              url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat !important;
}
body.page-faq .hero{
  background: linear-gradient(180deg, rgba(12,124,89,.12), rgba(12,124,89,0)),
              url('https://source.unsplash.com/1600x900/?recycling,bins,street'),
              url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat !important;
}
body.page-contact .hero{
  background: linear-gradient(180deg, rgba(12,124,89,.12), rgba(12,124,89,0)),
              url('https://source.unsplash.com/1600x900/?mailbox,doorstep,home'),
              url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat !important;
}

.hero h1, .hero p, .hero .badge{ text-shadow: 0 2px 10px rgba(0,0,0,.55); }

.hero h1, .hero h2, .hero h3, .hero p, .hero .badge { 
  color:#fff !important; 
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

/* Per-page hero photos (unique & cached separately) */
body.page-about .hero{
  background:
    url('https://source.unsplash.com/1600x900/?suburban,garbage,bins&sig=11') center/cover no-repeat;
}
body.page-services .hero{
  background:
    url('https://source.unsplash.com/1600x900/?curbside,trash,bins&sig=22') center/cover no-repeat;
}
body.page-faq .hero{
  background:
    url('https://source.unsplash.com/1600x900/?recycling,blue,bins&sig=33') center/cover no-repeat;
}
body.page-contact .hero{
  background:
    url('https://source.unsplash.com/1600x900/?front,door,mailbox,house&sig=44') center/cover no-repeat;
}


/* ------------------------------
   Enhancements per request
--------------------------------*/

/* Larger nav buttons */
.nav-menu > li > a {
  font-size: 18px;
  padding: 12px 16px;
  font-weight: 600;
}

/* Services dropdown */
.nav .has-dropdown { position: relative; }
.nav .has-dropdown > a { cursor: pointer; }
.nav .has-dropdown .dropdown {
  display: none;
  position: absolute;
  left: 0; top: 100%;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  z-index: 50;
}
.nav .has-dropdown:hover .dropdown,
.nav .has-dropdown:focus-within .dropdown { display: block; }
.nav .has-dropdown .dropdown li a {
  display: block;
  padding: 10px 14px;
  font-size: 16px;
  white-space: nowrap;
}

/* Served locations bar: higher contrast & readability */
.served-bar {
  background: var(--brand, #0c7c59);
  color: #fff;
  padding: 10px 0;
  letter-spacing: .2px;
}
.served-bar .container { font-size: 16px; font-weight: 700; }
@media (prefers-contrast: more) {
  .served-bar { background: #075842; }
}

/* Remove header logo gap: align tagline + CTA neatly */
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}
.header-cta .btn.small { padding: 6px 10px; font-size: 14px; }

/* Mobile: center the nav toggle and balance layout */
@media (max-width: 768px) {
  .site-header .container {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .site-header .nav { width: 100%; display: grid; place-items: center; }
  .site-header .nav-toggle {
    display: inline-block;
    margin: 8px auto;
    font-size: 28px;
    line-height: 1;
    padding: 8px 12px;
    border: 2px solid rgba(0,0,0,.15);
    border-radius: 12px;
    background: #fff;
  }
  .tagline { order: -1; font-size: 14px; opacity: .9; }
  /* Make served bar text slightly larger on mobile for readability */
  .served-bar .container { font-size: 17px; }
  /* Make nav links easier to tap */
  .nav-menu > li > a { font-size: 18px; padding: 14px 18px; }
}

/* Improve contrast for any existing served/location text chips if present */
.badge, .chip, .pill {
  color: #083f2f;
  background: #bfe6d9;
}

/* Buttons baseline */
.btn, .btn-outline { font-size: 16px; }


/* Mobile overlay menu centering */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-menu.open, .nav[aria-expanded="true"] .nav-menu {
    display: grid;
    gap: 8px;
    justify-items: center;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,.08);
    padding: 12px 0 16px;
  }
}


/* Hero spacing when no chip is present */
.section.hero .lead { font-size: 18px; opacity: .9; margin-top: 8px; }


/* Prominent header tagline */
.site-header .tagline {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--brand, #0c7c59);
  line-height: 1.2;
}
/* Optional subtle underline accent */
.site-header .tagline:after {
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  margin: 6px auto 0;
  background: var(--brand, #0c7c59);
  opacity: .25;
  border-radius: 3px;
}
@media (max-width: 768px) {
  .site-header .tagline { font-size: 20px; }
  .site-header .tagline:after { width: 120px; }
}

.gg-wordmark,.gg-icon{display:none !important}


/* Normalize header layout to avoid page-to-page shifts */
.site-header .container{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:12px;
}
@media (max-width:768px){
  .site-header .container{grid-template-columns:1fr;justify-items:center;text-align:center;}
}

/* Ensure served bar is consistent height (prevents layout jump) */
.served-bar{min-height:44px; display:flex; align-items:center;}

.cards.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.cards.three .card{display:flex;flex-direction:column}
.card .small.muted{font-size:12px;color:#64748b;margin-top:10px}
@media(max-width: 900px){.cards.three{grid-template-columns:1fr}}


/* Ensure hero has predictable height even with no inner content */
.section.hero, .hero.section {
  min-height: 340px;
  display: block;
}
@media (max-width: 768px) {
  .section.hero, .hero.section {
    min-height: 220px;
  }
}



/* Two-column layout for service pages */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.two-col .col .card { margin-bottom: 16px; }
@media (max-width: 900px) {
  /* moved to mobile */
  .two-col /* form-col order moved to mobile */
}


/* --- Form visual polish & alignment --- */
.form-col form { background: #f8fbf9; padding: 16px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.form-col form .grid, .form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-col .card { background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.05); }
.form-col label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-col input, .form-col select, .form-col textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d7e2db; border-radius: 10px; outline: none;
}
.form-col input:focus, .form-col select:focus, .form-col textarea:focus { border-color: #188b5c; box-shadow: 0 0 0 3px rgba(24,139,92,.12); }
.form-col .actions { text-align: right; }
.form-col .actions .btn { font-weight: 700; }

/* two columns on wider screens */
@media (min-width: 980px) {
  .form-col form .grid, .form-grid { grid-template-columns: 1fr 1fr; }
  .form-col .card.full { grid-column: 1 / -1; }
}

/* Ensure consistent heights so fields line up */
.form-col .card label + * { margin-top: 6px; }



/* Tighten spacing between page intro copy and the info cards on service pages */
.page-service-commercial .hero-inner,
.page-service-multi .hero-inner {
  padding-bottom: 24px; /* was larger; reduce gap after hero */
}
/* Remove inner section padding that was nested inside the left column */
.two-col .info-col .section { padding: 0; }
.two-col .info-col .container { padding: 0; margin: 0; }
.two-col .info-col .grid-2 { margin-top: 0; }
/* Keep the two columns close to the intro */
.section + .section .two-col,
.hero + .section .two-col {
  margin-top: 8px;
}



/* Billing term selector in plan cards */
.card.plan label { display:block; margin:8px 0 0; font-weight:600; }
.card.plan select.term-select { width:100%; padding:8px 10px; border-radius:10px; border:1px solid #d7e2db; }
.card.plan .price { display:flex; align-items:baseline; gap:10px; margin-top:8px; }
.card.plan .price .savings { margin-left:auto; }


/* Per-term total line under price */
.card.plan .term-total { margin-top: 4px; }


/* --- Equal-height plan cards & aligned buttons --- */
.grid-3 { align-items: stretch; }
.grid-3 > .card.plan { height: 100%; }

.card.plan { display: flex; flex-direction: column; }
.card.plan .features { margin-top: 8px; margin-bottom: auto; } /* push the CTA down */
.card.plan .btn { margin-top: 16px; align-self: stretch; }
.card.plan .small.muted { margin-top: 8px; }



/* --- Robust alignment for pricing cards (handles column wrappers) --- */
.grid-3 > div { display: flex; }
.grid-3 > div > .card.plan { display: flex; flex-direction: column; flex: 1 1 auto; height: 100%; }
.card.plan ul.features { margin-top: 8px; margin-bottom: auto; }
.card.plan .btn { margin-top: 16px; align-self: stretch; }



/* Normalize plan card vertical rhythm so controls (bin count + term) align across cards */
.card.plan { display:flex; flex-direction:column; }
.card.plan .intro { min-height: 86px; display:block; }
.card.plan .controls { display:grid; grid-template-columns: 1fr; gap: 8px; min-height: 110px; }
.grid-3 > div { display:flex; }
.grid-3 > div > .card.plan { flex:1 1 auto; height:100%; }
.card.plan .features { margin-top: 8px; margin-bottom: auto; }
.card.plan .btn { margin-top: 16px; align-self: stretch; }



/* ===== FINAL pass: rock-solid alignment for Plans/Pricing ===== */
.grid-3 { align-items: stretch; }
.grid-3 > div { display: flex; }
.grid-3 > div > .card.plan { display: flex; flex-direction: column; flex: 1 1 auto; height: 100%; }

/* Normalize header/title area height so controls start at the same vertical position */
.card.plan .intro {
  display: block;
  min-height: 132px; /* increased to cover longest title/badge combo */
}

/* Keep the two controls uniform height even if labels wrap */
.card.plan .controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 128px; /* ensures the Billing term row aligns across cards */
}

/* Ensure features grow and push CTA to bottom */
.card.plan .features { margin-top: 8px; margin-bottom: auto; }

/* Lock buttons to the bottom line across cards */
.card.plan .btn { margin-top: 16px; align-self: stretch; }

/* Small spacing tune under price & per-term total */
.card.plan .price { margin-top: 8px; }
.card.plan .term-total { margin-top: 4px; }



/* --- Feature cards polish (v71) --- */
.features .card.feature{
  display:flex; align-items:flex-start; gap:14px;
  padding:22px 22px; border-radius:16px;
  background:#fff; border:1px solid var(--border);
  box-shadow:0 10px 22px rgba(14,27,27,.06);
  height:100%;
  transition:transform .18s ease, box-shadow .18s ease;
}
.features .card.feature:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 32px rgba(14,27,27,.10);
}
.features .feature-icon{
  flex:0 0 44px; width:44px; height:44px;
  border-radius:12px; display:grid; place-items:center;
  background:var(--subtle);
  color:var(--brand);
  box-shadow:inset 0 0 0 1px var(--border);
}
.features .feature-body h3{
  margin:0 0 6px; font-size:18px; line-height:1.2;
}
.features .feature-body p{
  margin:0; color:#4a6464;
}
.grid-3 > .card.feature{ height:100%; }
@media (max-width:900px){
  .features .card.feature{ padding:18px; }
  .features .feature-icon{ width:40px; height:40px; }
}


/* --- Distinct form box for Commercial & Apartments (v73) --- */
.page-service-commercial .form-col form,
.page-service-multi .form-col form{
  border: 2px dashed var(--brand);
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(14,27,27,.08);
  position: relative;
}

.page-service-commercial .form-col form::before,
.page-service-multi .form-col form::before{
  content: "Request Quote";
  position: absolute;
  top: -14px;
  left: 16px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(12,124,89,.25);
}

.page-service-commercial .form-col .grid .card,
.page-service-multi .form-col .grid .card{
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

.page-service-commercial .form-col label,
.page-service-multi .form-col label{
  font-weight: 600;
  color: var(--text);
}

.page-service-commercial .form-col input,
.page-service-commercial .form-col select,
.page-service-commercial .form-col textarea,
.page-service-multi .form-col input,
.page-service-multi .form-col select,
.page-service-multi .form-col textarea{
  margin-top: 6px;
}

/* v78 mobile two-col fix */

@media (max-width: 900px){
  /* removed stray two-col single column rule */
  .two-col .info-col { order: 1; }
  .two-col /* removed form-col order */
}


/* v80 definitive mobile stacking for service pages */
@media (max-width: 900px){
  /* removed rogue single-column rule */
  .two-col .info-col { order: 1; }
  .two-col /* removed form-col order */
}


/* v81 hard override: ensure two columns on desktop */
@media (min-width: 901px){
  .two-col { display: grid !important; grid-template-columns: minmax(0,1.15fr) minmax(0,0.85fr) !important; }
  .two-col .info-col { order: 1 !important; }
  .two-col .form-col { order: 2 !important; }
}


/* v83: enforce 50/50 two-column on desktop for service pages */
@media (min-width: 901px){
  .two-col { grid-template-columns: 1fr 1fr !important; }
  .two-col .info-col { order: 1 !important; }
  .two-col .form-col { order: 2 !important; }
}
/* keep mobile stacking */
@media (max-width: 900px){
  .two-col { grid-template-columns: 1fr !important; }
  .two-col .info-col { order: 1 !important; }
  .two-col .form-col { order: 2 !important; }
}

/* v84 service two-col canonical */
.two-col { display:grid; grid-template-columns: 1fr 1fr; gap:32px; align-items:start; }
@media (max-width: 900px){
  .two-col { grid-template-columns: 1fr; }
  .two-col .info-col { order: 1; }
  .two-col .form-col { order: 2; }
}

/* Pre-checkout modal (minimal, non-invasive) */
.modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:1000; }
.modal.show{ display:flex; }
.modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.4); }
.modal-card{ position:relative; background:#fff; max-width:720px; width:95%; padding:20px; border-radius:16px; box-shadow:0 10px 30px rgba(0,0,0,.2); z-index:1001; }
.modal-close{ position:absolute; top:8px; right:12px; background:transparent; border:0; font-size:28px; cursor:pointer; }
#preCheckoutForm .grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
#preCheckoutForm label{ display:flex; flex-direction:column; gap:6px; font-weight:600; }
#preCheckoutForm input, #preCheckoutForm textarea, #preCheckoutForm select{ padding:10px; border:1px solid var(--border); border-radius:8px; }
@media(max-width:720px){ #preCheckoutForm .grid-2{ grid-template-columns:1fr; } }


/* --- Mobile modal scroll fixes --- */
body.no-scroll { overflow: hidden; height: 100%; }
.modal{ overflow:hidden; }
.modal-card{ max-height: 90vh; overflow:auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.modal-card .actions{ position: sticky; bottom: 0; background: #fff; padding-top: 8px; }


/* ---- Dropdown overflow safety ---- */
.nav { position: relative; }
.nav .has-dropdown { position: relative; }
.nav .dropdown { position: absolute; top: 100%; left: 0; right: auto; max-width: calc(100vw - 16px); }
@media(max-width:900px){
  /* In mobile menu, make dropdown full-width below the parent item */
  .nav-menu { overflow: visible; }
  .nav .dropdown { position: static; max-width: none; }
}
