/* ============================================================
   Diamond Dumpster Idaho — site.css
   Brand tokens measured from DDI_Logo.png. Contrast rules:
   - --ddi-green on white: LARGE text / UI only (3.79:1)
   - --ddi-green-bright: dark backgrounds only (2.24:1 on white)
   - Buttons: dark text on green, never white on green
   ============================================================ */

:root {
  --ddi-green:        #189810;
  --ddi-green-bright: #00C900;
  --ddi-black:        #0C0D0C;
  --ddi-charcoal:     #151715;   /* lifted panel on dark */
  --ddi-grey:         #525252;
  --ddi-grey-light:   #D9D9D9;
  --ddi-white:        #FFFFFF;
  --ddi-ink:          #1A1C1A;   /* body text on light */

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(12, 13, 12, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ddi-ink);
  background: var(--ddi-black);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 780px; }

/* ---- Accessibility ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ddi-green-bright); color: var(--ddi-black);
  padding: .6rem 1rem; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible {
  outline: 2px solid var(--ddi-green-bright);
  outline-offset: 3px;
}
.section-light :focus-visible {
  outline-color: var(--ddi-green);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}
.btn-lg { font-size: 1.3rem; padding: .85rem 2rem; }
.btn-solid { background: var(--ddi-green); color: var(--ddi-black); }
.btn-solid:hover { background: var(--ddi-green-bright); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 201, 0, .35); }
.btn-ghost { background: transparent; color: var(--ddi-white); border-color: var(--ddi-grey); }
.btn-ghost:hover { border-color: var(--ddi-green-bright); color: var(--ddi-green-bright); transform: translateY(-2px); }
.btn-dark { background: var(--ddi-black); color: var(--ddi-white); }
.btn-dark:hover { background: var(--ddi-charcoal); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---- Header ---- */
.site-header {
  background: var(--ddi-black);
  border-bottom: 1px solid rgba(82, 82, 82, .4);
  position: sticky; top: 0; z-index: 50;
}
.header-row { display: flex; align-items: center; justify-content: space-between; padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 60px; width: auto; flex: none; }

.site-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--ddi-white); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-menu a:hover { color: var(--ddi-green-bright); }
.nav-phone a { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em; color: var(--ddi-green-bright); }
.nav-cta .btn { padding: .45rem 1.1rem; font-size: 1rem; }

.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    background: none; border: 2px solid var(--ddi-grey); border-radius: var(--radius);
    color: var(--ddi-white); padding: .4rem .8rem; cursor: pointer;
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem;
  }
  .nav-toggle-bar {
    width: 18px; height: 2px; background: var(--ddi-green-bright); position: relative;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ddi-green-bright);
  }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ddi-charcoal); border-bottom: 2px solid var(--ddi-green);
    padding: .5rem 0;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { padding: .55rem 1.25rem; }
  .nav-cta { padding-bottom: 1rem; }
}

/* ---- Hero ---- */
.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: center; overflow: hidden; }
.hero-media, .hero-media img, .hero-scrim { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-home .hero-media img { animation: kenburns 24s var(--ease) both; }
@keyframes kenburns {
  from { transform: scale(1.12) translateX(2%); }
  to   { transform: scale(1); translate: none; }
}
.hero-scrim {
  background:
    linear-gradient(100deg, rgba(12,13,12,.92) 0%, rgba(12,13,12,.72) 45%, rgba(12,13,12,.25) 100%);
}
.hero-inner { position: relative; color: var(--ddi-white); padding-top: 4rem; padding-bottom: 4rem; width: 100%; }

.hero-logo-badge {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(380px, 28vw);
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .55));
  opacity: 0;
  animation: heroLogoIn .8s .3s var(--ease) forwards;
}
@keyframes heroLogoIn {
  from { opacity: 0; transform: translateY(-50%) scale(.92); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}
@media (max-width: 880px) {
  .hero-logo-badge { display: none; }
}

.eyebrow {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .3em; font-weight: 600; font-size: .95rem;
  color: var(--ddi-green-bright); margin-bottom: .8rem;
}
.section-light .eyebrow { color: var(--ddi-green); }
.hero h1 { max-width: 14ch; }
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ddi-grey-light);
}
.hero-tagline em { font-style: normal; color: var(--ddi-green-bright); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 1.8rem;
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  color: var(--ddi-grey-light); font-size: .98rem;
}
.hero-facts strong { color: var(--ddi-white); font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .03em; margin-right: .3rem; }

/* ---- Sections ---- */
.section { padding: 4.5rem 0; }
.section-dark { background: var(--ddi-black); color: var(--ddi-white); }
.section-light { background: var(--ddi-white); color: var(--ddi-ink); }
.section-title { margin-bottom: 1.5rem; }
.section-cta { margin-top: 2rem; }
.lede { font-size: 1.2rem; max-width: 62ch; color: inherit; }
.page-head { padding: 4.5rem 0 3.5rem; }
.page-head .lede a { color: var(--ddi-green-bright); }

/* Diamond signature mark */
.diamond-mark {
  display: inline-block; width: .7em; height: .7em; margin-right: .45em;
  background: var(--ddi-green); transform: rotate(45deg) translateY(-.05em);
}
.section-dark .diamond-mark { background: var(--ddi-green-bright); }

/* ---- Price cards ---- */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; margin: 2.2rem 0; }
.price-card {
  background: var(--ddi-white);
  border: 2px solid var(--ddi-grey-light);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ddi-green); }
.price-card--featured { border-color: var(--ddi-green); box-shadow: var(--shadow); }
.price-card h3 { color: var(--ddi-grey); font-size: 1.15rem; letter-spacing: .15em; }
.price {
  font-family: var(--font-display); font-weight: 700;
  font-size: 3.6rem; line-height: 1; color: var(--ddi-black);
  margin: .2em 0 .3em;
}
.price .currency { font-size: 1.8rem; vertical-align: super; color: var(--ddi-green); }
.price-note { color: var(--ddi-grey); font-size: .95rem; margin: 0; }
.price-included { max-width: 68ch; font-size: 1.05rem; }
.price-included a { color: var(--ddi-green); font-weight: 600; }

/* Included grid (pricing page) */
.included-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.included-item h3 { font-size: 1.3rem; }

/* ---- Steps (how it works) ---- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem; list-style: none; margin: 0; padding: 0;
  counter-reset: step;
}
.step { position: relative; background: var(--ddi-charcoal); border-radius: var(--radius); overflow: hidden; padding-bottom: 1.4rem; }
.step img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.step h3, .step p { padding: 0 1.3rem; }
.step h3 { margin-top: 1.1rem; color: var(--ddi-green-bright); }
.step p { color: var(--ddi-grey-light); margin-bottom: 0; }
.step-diamond {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  width: 2.3rem; height: 2.3rem;
  display: grid; place-items: center;
  background: var(--ddi-green); color: var(--ddi-black);
  transform: rotate(0deg);
  transition: transform .5s .3s var(--ease);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  text-align: center;
}
.step-diamond > * { transform: rotate(0deg); transition: transform .5s .3s var(--ease); }
.step.is-visible .step-diamond { transform: rotate(45deg); }
.step.is-visible .step-diamond > * { transform: rotate(-45deg); }

/* ---- Service area map ---- */
.service-map {
  height: min(60vh, 480px);
  min-height: 320px;
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ddi-charcoal);
  box-shadow: var(--shadow);
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--ddi-charcoal); color: var(--ddi-white);
}
.leaflet-popup-content { font-family: var(--font-body); font-weight: 600; }
.map-noscript { padding: 1.5rem; color: var(--ddi-grey-light); }

/* ---- Split sections ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split--reverse .split-copy { order: 2; }
.split--reverse .split-media { order: 1; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.caption { font-size: .9rem; color: var(--ddi-grey); margin-top: .6rem; }
.section-dark .caption { color: var(--ddi-grey-light); }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 1.8rem; }
  .split--reverse .split-copy, .split--reverse .split-media { order: initial; }
}

/* ---- Lists ---- */
.city-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem 1.5rem; list-style: none; padding: 0; margin: 1.2rem 0;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}
.city-list li::before { content: ""; display: inline-block; width: .5em; height: .5em; background: var(--ddi-green); transform: rotate(45deg); margin-right: .6em; }
.check-list, .x-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.check-list li, .x-list li { padding: .35rem 0 .35rem 1.8em; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--ddi-green-bright);
}
.x-list li::before {
  content: "✕"; position: absolute; left: 0; font-weight: 700; color: var(--ddi-grey);
}

/* ---- Area cards ---- */
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.area-card { border: 2px solid var(--ddi-grey-light); border-radius: var(--radius); padding: 1.4rem 1.5rem; transition: border-color .2s, transform .2s var(--ease); }
.area-card:hover { border-color: var(--ddi-green); transform: translateY(-3px); }
.area-card h2 { font-size: 1.45rem; margin-bottom: .3rem; }
.area-card p { margin: 0; color: var(--ddi-grey); font-size: .98rem; }

/* ---- FAQ ---- */
.faq dt { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 1.2rem; margin-top: 1.4rem; }
.faq dt::before { content: ""; display: inline-block; width: .45em; height: .45em; background: var(--ddi-green); transform: rotate(45deg); margin-right: .55em; }
.section-dark .faq dt::before { background: var(--ddi-green-bright); }
.faq dd { margin: .4rem 0 0; }
.section-dark .faq dd { color: var(--ddi-grey-light); }
.section-dark .faq a { color: var(--ddi-green-bright); }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .25s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(12, 13, 12, .95);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 92vw; max-height: 86vh; box-shadow: var(--shadow); border-radius: var(--radius); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: 2px solid var(--ddi-grey);
  color: var(--ddi-white); font-size: 1.8rem; line-height: 1;
  width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--ddi-green-bright); color: var(--ddi-green-bright); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ---- CTA band ---- */
.cta-band { position: relative; padding: 6rem 0; overflow: hidden; }
.cta-band-media, .cta-band-media img { position: absolute; inset: 0; }
.cta-band-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(12,13,12,.82), rgba(12,13,12,.82));
}
.cta-band-inner { position: relative; color: var(--ddi-white); text-align: center; }
.cta-band-inner .hero-actions { justify-content: center; }

/* ---- Quote form ---- */
.quote-form { display: grid; gap: 1.2rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field .hint { font-size: .88rem; color: var(--ddi-grey); margin: .25rem 0 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field input[type="date"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ddi-ink);
  padding: .65rem .8rem; border: 2px solid var(--ddi-grey-light); border-radius: var(--radius);
  background: var(--ddi-white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ddi-green); outline: 2px solid var(--ddi-green); outline-offset: 1px;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B42318; }
.field-error { color: #B42318; font-size: .9rem; margin: .3rem 0 0; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.consent-box {
  border: 2px solid var(--ddi-grey-light); border-radius: var(--radius);
  padding: 1rem 1.1rem; display: flex; gap: .8rem; align-items: flex-start;
  font-size: .93rem; line-height: 1.5;
}
.consent-box input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--ddi-green); flex: none; }
.consent-box a { color: var(--ddi-green); font-weight: 600; }
.form-disclaimer { font-size: .88rem; color: var(--ddi-grey); }
.form-disclaimer a { color: var(--ddi-green); font-weight: 600; }

.form-status { border-radius: var(--radius); padding: 1rem 1.2rem; font-weight: 500; }
.form-status--error { background: #FEF3F2; border: 2px solid #B42318; color: #7A1B12; }
.form-status--success { background: #F0FDF4; border: 2px solid #189810; color: #14591C; }
.form-success { text-align: center; padding: 2.5rem 1rem; }
.form-success h2 { color: var(--ddi-green); }
.form-success .phone-big {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: .03em;
}
.form-success .phone-big a { color: var(--ddi-black); text-decoration: none; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- Footer ---- */
.site-footer { background: var(--ddi-black); color: var(--ddi-grey-light); border-top: 2px solid var(--ddi-green); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-tagline {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.05; color: var(--ddi-white); margin-bottom: .8rem;
}
.footer-tagline span { color: var(--ddi-green-bright); }
.footer-phone a {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: .03em;
  color: var(--ddi-green-bright); text-decoration: none;
}
.footer-meta, .footer-hours { font-size: .95rem; }
.footer-nav { display: flex; gap: 3rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a { color: var(--ddi-grey-light); text-decoration: none; }
.footer-nav a:hover { color: var(--ddi-green-bright); }
.footer-legal { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(82,82,82,.4); font-size: .85rem; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* ---- Reduced motion: collapse everything ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .page-home .hero-media img { animation: none; }
  .hero-logo-badge { opacity: 1; transform: translateY(-50%); animation: none; }
}

/* No-JS: never hide content behind the reveal system */
.no-observer .reveal { opacity: 1; transform: none; }

/* utilities added with the vanilla form rewrite */
.hint--inline { display: inline; font-weight: 400; color: var(--ddi-grey); font-size: .88rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.form-fallback { text-align: center; font-weight: 600; }
.form-fallback a { color: var(--ddi-green); }
