/* =================================================================
   Emergency Dumpsters For Less — theme styles (edfl.css)
   Loaded after wcs.css. Contains:
   1. EDFL chrome re-skin (black nav bar per the EDFL Figma)
   2. Styles for the EDFL builder modules (inc/edfl-builder-modules.php)
   3. Small overrides where the EDFL design departs from WCS
   Display sizes anchor to the Figma 1920 frame and scale via clamp().
   ================================================================= */

/* ---- EDFL type scale (Figma 1920 anchors) ---- */
.edfl-size-hero     { font-size: clamp(46px, 7.56vw, 145px); line-height: 0.92; letter-spacing: 0.005em; }
.edfl-h2            { font-size: clamp(40px, 5.73vw, 110px); line-height: 0.909; letter-spacing: 0.0055em; }
.edfl-size-stat     { font-size: clamp(34px, 3.34vw, 64px);  line-height: 1.38; }
.edfl-size-pagehero { font-size: clamp(50px, 8.85vw, 170px); line-height: 0.92; letter-spacing: 0.005em; }

/* =================================================================
   1. CHROME — black nav bar (EDFL Figma)
   ================================================================= */

.wcs-nav { background: #000; border-bottom: 0; }
/* White links only in the desktop bar — the mobile panel is white (wcs.css) */
@media (min-width: 901px) {
  .wcs-nav-link { color: #fff; }
  .wcs-nav-link:hover { color: var(--agency-accent); border-color: var(--agency-accent); }
}
@media (max-width: 900px) {
  .wcs-nav.open .wcs-nav-link { color: var(--text-primary); }
  .wcs-nav.open .wcs-nav-link:hover { color: var(--agency-primary); }
}
.nav-logo img { height: clamp(72px, 6.8vw, 104px); }
.nav-toggle, .nav-call-mobile { color: #fff; }

/* Marquee logos render full-color in the EDFL design.
   Balanced sizing: wide wordmarks capped by width, square marks by height;
   gap tuned so at most ~5 logos are visible at once. */
.logo-track { gap: clamp(72px, 12.5vw, 240px); }
.logo-track img {
  filter: none; opacity: 1;
  width: auto; height: auto;
  max-height: clamp(40px, 4.7vw, 90px);
  max-width: clamp(110px, 9vw, 172px);
  object-fit: contain;
}
.logo-track img[src*="amazon"] { max-height: clamp(26px, 2.7vw, 52px); }

/* Cream band option for feature rows (EDFL compactors page, row 3) */
.ct-row--cream { background: var(--surface-primary); }
.ct-row--cream .ct-text h2, .ct-row--cream .ct-text p { color: var(--text-primary); }

/* =================================================================
   2. EDFL — Home Hero (headline left, photo right half)
   ================================================================= */

.edfl-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-white);
  min-height: clamp(480px, 44.5vw, 855px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px var(--gutter);
}

.edfl-hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; }
.edfl-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.edfl-hero-content { position: relative; z-index: 1; }
.edfl-hero-content h1 { color: var(--text-primary); }
.edfl-hero-content h1 .accent { color: var(--agency-primary); }

.edfl-hero-lead {
  margin: clamp(24px, 2.3vw, 44px) 0 0;
  max-width: 560px;
  font-weight: 500;
  font-size: clamp(17px, 1.05vw, 20px);
  line-height: 1.5;
  color: var(--text-primary);
}

.edfl-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: clamp(28px, 2.9vw, 56px); }
.edfl-hero-actions .wcs-btn svg { transition: transform 0.25s cubic-bezier(.16,1,.3,1); }
.edfl-hero-actions .wcs-btn:hover svg { transform: translateX(4px); }

/* Home hero — form layout (right half is the quote form on the green texture).
   Used on the Landing Page. Two-column grid so the row grows with the form
   height; the green panel bleeds to the right edge like the photo variant. */
.edfl-hero--form { padding: 0; min-height: 0; display: block; }
.edfl-hero--form .edfl-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch; min-height: clamp(560px, 44vw, 840px);
}
.edfl-hero--form .edfl-hero-content { align-self: center; padding: clamp(48px, 4vw, 80px) clamp(28px, 3vw, 64px) clamp(48px, 4vw, 80px) var(--gutter); }
.edfl-hero-form {
  position: relative; align-self: stretch;
  background: url('../img/edfl/get-a-quote-bg.webp') center / cover no-repeat;
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 3.6vw, 72px) clamp(28px, 3vw, 64px) clamp(44px, 4vw, 80px);
}
.edfl-hero-form-title { color: #fff; line-height: 0.95; font-size: clamp(38px, 4vw, 72px); margin-bottom: clamp(24px, 2vw, 36px); }
/* the flamingo form inside reuses the site's .quote .ff-* skin (white on green);
   these tighten it a touch so the whole form fits the hero without scrolling. */
.edfl-hero-form .ff-form { gap: clamp(14px, 1.3vw, 20px); }
.edfl-hero-form .ff-fields { gap: clamp(14px, 1.4vw, 20px) clamp(18px, 1.8vw, 28px); }
.edfl-hero-form .ff-input { padding: clamp(14px, 1.15vw, 18px); font-size: clamp(15px, 1.05vw, 18px); }
.edfl-hero-form .ff-label { margin-bottom: 9px; font-size: 13px; letter-spacing: 0.12em; }
.edfl-hero-form select.ff-input { background-position: right 16px center; }
.edfl-hero-form .ff-submit { font-size: clamp(22px, 1.8vw, 28px); padding: clamp(16px, 1.4vw, 22px); }

@media (max-width: 900px) {
  .edfl-hero--form .edfl-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .edfl-hero--form .edfl-hero-content { padding: 40px var(--gutter) 36px; }
  .edfl-hero-form { padding: 40px var(--gutter) 48px; }
}

/* EDFL — Image + Form (two-column: image + contact form, e.g. Sticker page) */
.edfl-imgform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 4.5vw, 80px); align-items: start; }
.edfl-imgform--img-right .edfl-imgform-media { order: 2; }
.edfl-imgform-media img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 60px -32px rgba(20, 99, 47, 0.45);
}
.edfl-imgform-body .eyebrow { display: block; margin-bottom: 16px; }
.edfl-imgform-body h2 { color: var(--text-primary); margin-bottom: 20px; }
.edfl-imgform-body h2 .accent { color: var(--agency-primary); }
.edfl-imgform-msg { font-weight: 500; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.6; color: var(--text-secondary); margin-bottom: 18px; max-width: 560px; }
.edfl-imgform-body .inquiry-form { margin-top: clamp(24px, 2.5vw, 36px); }
@media (max-width: 900px) {
  .edfl-imgform { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 44px); }
  .edfl-imgform--img-right .edfl-imgform-media { order: 0; }
}

/* =================================================================
   3. EDFL — Stats Band (green, three cells)
   ================================================================= */

.edfl-stats {
  display: flex;
  background: var(--agency-primary);
}

.edfl-stat {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 2.4vw, 46px) var(--gutter);
  min-height: clamp(120px, 10.4vw, 200px);
}
.edfl-stat:not(:last-child) { border-right: 1px solid #4d4d45; }

.edfl-stat .edfl-size-stat { color: #fff; margin: 0; }

.edfl-stat-label {
  margin: 0;
  font-weight: 700;
  font-size: clamp(13px, 0.9vw, 17px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--agency-accent);
  line-height: normal;
}

/* =================================================================
   4. EDFL — Reach / Map
   ================================================================= */

.edfl-reach {
  position: relative;
  background: var(--surface-white);
  min-height: clamp(320px, 25.7vw, 493px);
  padding: clamp(56px, 5.7vw, 110px) var(--gutter) clamp(40px, 3.75vw, 72px);
}

.edfl-reach .eyebrow { display: block; margin-bottom: 20px; }
.edfl-reach h2 { color: var(--text-primary); }

.edfl-reach-map {
  position: absolute;
  top: clamp(20px, 2.7vw, 52px);
  right: clamp(24px, 12.76vw, 245px);
  width: clamp(220px, 32.6vw, 626px);
  height: clamp(138px, 20.5vw, 394px);
  overflow: hidden;
}
/* The map PNG carries transparent padding — replicate the Figma crop */
.edfl-reach-map img {
  position: absolute;
  width: 128.57%; height: 204.55%;
  left: -14.29%; top: -52.27%;
  max-width: none;
  object-fit: contain;
}

/* =================================================================
   5. EDFL — Feature Cards (support 3-up / FAQ grid)
   ================================================================= */

.edfl-cards {
  background: #f3f3f3;
  padding: clamp(56px, 5.7vw, 110px) var(--gutter) clamp(64px, 6.25vw, 120px);
}
.edfl-cards--cream { background: var(--surface-primary); border-top: 1px solid var(--border-color); }

.edfl-cards h2 { color: var(--text-primary); }

.edfl-cards-grid {
  margin-top: clamp(36px, 4.16vw, 80px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 2.9vw, 56px);
}

.edfl-card {
  border-top: 4px solid var(--agency-dark);
  padding-top: clamp(18px, 1.4vw, 27px);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.edfl-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--agency-accent);
}
.edfl-card-icon img { width: 30px; height: 30px; }

.edfl-card-title {
  font-size: clamp(24px, 1.67vw, 32px);
  line-height: 0.92;
  color: var(--text-primary);
  padding-top: 5px;
}

.edfl-card-copy {
  font-size: clamp(15px, 0.89vw, 17px);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* =================================================================
   6. EDFL — Page Hero (photo + 60% overlay + breadcrumb)
   ================================================================= */

.edfl-page-hero {
  position: relative;
  overflow: hidden;
  background: var(--agency-primary);
  padding: clamp(56px, 5.7vw, 110px) var(--gutter) clamp(48px, 4.7vw, 90px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(22px, 2.1vw, 40px);
  color: #fff;
}

.edfl-page-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.edfl-page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.edfl-page-hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.6); }

.edfl-page-hero > :not(.edfl-page-hero-bg) { position: relative; z-index: 1; }

.edfl-breadcrumb {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); line-height: normal;
}
.edfl-breadcrumb .sep { color: var(--agency-accent); }
.edfl-breadcrumb a { transition: color 0.2s ease; }
.edfl-breadcrumb a:hover, .edfl-breadcrumb a:focus-visible { color: #fff; }

.edfl-page-hero h1 { color: #fff; }
.edfl-page-hero h1 .accent { color: var(--agency-accent); }

.edfl-page-hero-lead {
  max-width: 666px;
  font-weight: 500;
  font-size: clamp(17px, 1.05vw, 20px);
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.edfl-page-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
.edfl-page-hero-actions .wcs-btn svg { transition: transform 0.25s cubic-bezier(.16,1,.3,1); }
.edfl-page-hero-actions .wcs-btn:hover svg { transform: translateX(4px); }

/* =================================================================
   Responsive
   ================================================================= */

@media (max-width: 900px) {
  .edfl-hero { min-height: 0; padding: 0; display: block; }
  .edfl-hero-media { position: static; width: 100%; margin: 0; height: auto; aspect-ratio: 4 / 3; }
  .edfl-hero-media img { width: 100%; height: 100%; object-fit: cover; }
  .edfl-hero-content { padding: 36px var(--gutter) 44px; }

  .edfl-stats { flex-direction: column; }
  .edfl-stat:not(:last-child) { border-right: 0; border-bottom: 1px solid #4d4d45; }

  .edfl-reach { min-height: 0; }
  .edfl-reach-map { position: static; width: 100%; height: auto; margin-top: 24px; overflow: visible; }
  .edfl-reach-map img { position: static; width: 100%; height: auto; max-width: 100%; }

  .edfl-cards-grid { grid-template-columns: 1fr; }
}

/* EDFL: services intro is centered in the Figma */
.services-intro { text-align: center; }
.services-intro .eyebrow { letter-spacing: 0.2em; }

/* =================================================================
   Mega menu — single condensed row (EDFL): 6 equal columns, tight
   vertical rhythm. Falls back to 3 columns on narrower desktops.
   ================================================================= */
@media (min-width: 901px) {
  .nav-mega-inner {
    max-width: none;
    padding: 24px var(--gutter) 28px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px 32px;
    align-items: start;
  }
  .mega-col, .mega-col--wide { min-width: 0; }
  .mega-links--2col { display: flex; flex-direction: column; gap: 1px; }
  .mega-col-head { font-size: 14px; padding-bottom: 7px; margin-bottom: 7px; }
  .mega-links a { padding: 3px 0; font-size: 12px; line-height: 1.4; }
}
@media (min-width: 901px) and (max-width: 1440px) {
  .nav-mega-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =================================================================
   Reveal pre-hide — elements with GSAP reveal classes start invisible
   so there's no flash-then-jump. Gated on html.js (added inline in
   wp_head) so no-JS visitors still see everything; the theme's
   prefers-reduced-motion block (opacity:1 !important) still wins.
   ================================================================= */
html.js .gsap-reveal-up,
html.js .gsap-reveal-fade,
html.js .gsap-scroll-up,
html.js .gsap-scroll-fade { opacity: 0; }

/* =================================================================
   Quote CTA — client-supplied background image, no overlays
   (replaces the gradient + soft-light texture + film grain layers)
   ================================================================= */
.quote { background: url('../img/edfl/get-a-quote-bg.webp') center / cover no-repeat; }
.quote > .quote-bg,
.quote > .film-grain { display: none; }

/* =================================================================
   Feature row with no image — center the text as one full-width
   column instead of leaving an empty half. (client request)
   ================================================================= */
.ct-row--no-media .ct-grid {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  min-height: 0;
  padding-top: clamp(48px, 5vw, 88px);
  padding-bottom: clamp(48px, 5vw, 88px);
}
.ct-row--no-media .ct-text {
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ct-row--no-media .ct-text h2 { max-width: 100%; }
.ct-row--no-media .ct-text p { max-width: 1000px; margin-inline: auto; }
.ct-row--no-media .split-link { justify-content: center; }

/* =================================================================
   Page hero — flat gradient/texture background (no dark scrim).
   Used on subpages that had no distinct hero photo on the live site.
   ================================================================= */
.edfl-page-hero--flat .edfl-page-hero-bg::after { display: none; }
.edfl-page-hero--flat .edfl-page-hero-bg img { object-fit: cover; object-position: center; }

/* =================================================================
   EDFL — Prose / Legal content (readable column, brand headings)
   ================================================================= */
.edfl-prose { background: var(--surface-white); padding: clamp(48px, 5vw, 88px) var(--gutter); }
.edfl-prose--cream { background: var(--surface-primary); }
.edfl-prose-inner { max-width: 860px; margin-inline: auto; }
.edfl-prose-updated {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 28px;
}
.edfl-prose .entry-content { font-size: 16px; line-height: 1.75; color: var(--text-secondary); }
.edfl-prose .entry-content h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; letter-spacing: 0.01em;
  color: var(--text-primary); margin: 2em 0 0.6em;
}
.edfl-prose .entry-content h3 {
  font-family: var(--font-body); font-weight: 700; font-size: 19px;
  color: var(--text-primary); margin: 1.6em 0 0.5em;
}
.edfl-prose .entry-content p { margin: 0 0 1.1em; }
.edfl-prose .entry-content ul, .edfl-prose .entry-content ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.edfl-prose .entry-content li { margin-bottom: 0.5em; }
.edfl-prose .entry-content a { color: var(--agency-primary); text-decoration: underline; text-underline-offset: 2px; }
.edfl-prose .entry-content strong { color: var(--text-primary); }

/* Feature-cards / FAQ grid — column count adapts to number of cards */
.edfl-cards-grid[data-count="1"] { grid-template-columns: minmax(0, 760px); justify-content: center; }
.edfl-cards-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.edfl-cards-grid[data-count="4"] { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .edfl-cards-grid[data-count] { grid-template-columns: 1fr; } }

/* =================================================================
   Flat (gradient) page hero — no photo, so condense the height and
   size the h1 to sit on one line where the title allows.
   ================================================================= */
.edfl-page-hero--flat {
  padding-top: clamp(40px, 3.6vw, 64px);
  padding-bottom: clamp(40px, 3.6vw, 64px);
  gap: clamp(16px, 1.5vw, 26px);
}
.edfl-page-hero--flat h1.edfl-size-pagehero {
  font-size: clamp(40px, 5.2vw, 96px);
  line-height: 1.0;
}
