/* ============================================================
   CGE EV — Conversion layer (marketing audit implementation)
   Loaded AFTER cge-ev.css — overrides by cascade.
   ============================================================ */
html { scroll-behavior: smooth; }

/* ---------- Hero: 2-column with enquiry form ---------- */
.hero-grid { display: grid; grid-template-columns: 58% 42%; gap: 48px; align-items: start; position: relative; }
.hero { padding: 72px 0 64px; }
/* Headline keeps the site's original Poppins sizing on desktop; only capped slightly so it sits beside the form card */
.hero-copy .h-display { font-size: clamp(40px, 5.4vw, 76px); }
.hero-form-card {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: 0 10px 30px rgba(15,42,30,0.08);
  border: 1px solid var(--cge-line);
  scroll-margin-top: 96px;
}
.hf-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(31,138,91,0.1); color: #1F8A5B; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero-form-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--cge-navy); margin: 0 0 6px; letter-spacing: -0.01em; }
.hf-sub { font-size: 13px; color: var(--cge-text-2); margin-bottom: 18px; }
.hf-field { margin-bottom: 16px; }
.hf-field label { display: block; font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cge-text-2); margin-bottom: 6px; }
.hf-field input, .hf-field select, .hf-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; box-sizing: border-box;
  border: 1px solid var(--cge-line-strong); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 15px; color: var(--cge-text);
  background: #fff; outline: none; transition: border-color 0.15s ease;
}
.hf-field textarea { min-height: 72px; resize: vertical; }
.hf-field input:focus, .hf-field select:focus, .hf-field textarea:focus { border-color: var(--cge-orange); }
.hf-field.invalid input, .hf-field.invalid select { border-color: #B33A2A; }
.hf-error { display: none; color: #B33A2A; font-size: 12px; margin-top: 5px; }
.hf-field.invalid .hf-error { display: block; }
.hf-submit {
  width: 100%; height: 52px; margin-top: 4px;
  background: var(--cge-orange); color: #fff; border: 0; border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: background 0.15s ease;
}
.hf-submit:hover { background: var(--cge-orange-dark); }
.hf-submit:disabled { background: var(--cge-line-strong); cursor: default; }
.hf-trust { font-size: 12.5px; color: var(--cge-text-2); margin-top: 12px; text-align: center; line-height: 1.5; }
.hf-trust a { color: var(--cge-navy); font-weight: 600; }

/* Stats separator band below hero */
.stats-band { background: var(--cge-bg-soft); border-top: 1px solid var(--cge-line); border-bottom: 1px solid var(--cge-line); padding: 24px 0; }
.stats-band .hero-stats { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- CTA bands ---------- */
.cta-band { background: #FFF3EB; border-top: 1px solid var(--cge-line); border-bottom: 1px solid var(--cge-line); padding: 48px 0; }
.cta-band-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.cta-band-inner p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2.2vw, 24px); color: var(--cge-navy); letter-spacing: -0.01em; max-width: 34ch; }
.cta-band-inner .row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; }
.cta-phone { font-size: 14px; color: var(--cge-text-2); font-weight: 600; }
.cta-phone:hover { color: var(--cge-orange); }

/* ---------- Sticky mobile bottom bar ---------- */
.mobile-bar { display: none; }
:root { --mobile-bar-offset: 0px; }
@media (max-width: 767px) {
  :root { --mobile-bar-offset: calc(60px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar {
    display: flex; gap: 0; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(60px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
    box-shadow: 0 -4px 16px rgba(20,37,63,0.12);
  }
  .mobile-bar a {
    flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
    white-space: nowrap; overflow: hidden;
    font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  }
  .mobile-bar .mb-call { color: var(--cge-navy); border-right: 1px solid var(--cge-line); }
  .mobile-bar .mb-enquire { background: var(--cge-orange); color: #fff; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  max-width: 360px; background: #fff; border: 1px solid var(--cge-line-strong);
  border-radius: var(--r-md); padding: 18px 20px;
  box-shadow: 0 12px 32px rgba(20,37,63,0.18); font-size: 13px; line-height: 1.55; color: var(--cge-text-2);
}
.cookie-banner strong { color: var(--cge-navy); }
.cookie-actions { display: flex; gap: 10px; margin-top: 12px; }
.cookie-actions button { flex: 1; height: 40px; border-radius: var(--r-sm); font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.cookie-accept { background: var(--cge-orange); color: #fff; border: 0; }
.cookie-decline { background: transparent; color: var(--cge-navy); border: 1px solid var(--cge-line-strong); }
@media (max-width: 767px) { .cookie-banner { left: 12px; right: 12px; bottom: 72px; max-width: none; } }

/* ---------- Audit mobile fixes ---------- */
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-form-card { width: 100%; }
  /* Tablet pricing: 2 cols, third wraps full width */
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid .plan:nth-child(3) { grid-column: 1 / -1; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .plan { position: relative; }
  .plan .badge { position: absolute; top: -12px; left: 20px; }
}
@media (max-width: 767px) {
  .hero { padding: 48px 0 40px; }
  .hero-copy .h-display { font-size: clamp(32px, 9vw, 40px); }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid .plan:nth-child(3) { grid-column: auto; }
  /* Coverage: clear separation between suburb and count */
  .coverage-list .row { display: grid; grid-template-columns: 1fr auto 12px; gap: 12px; align-items: center; padding: 12px 0; }
  .coverage-list .ct { white-space: nowrap; }
  .map-card { margin-top: 24px; }
  /* Brand tiles: strict 2-col, equal height */
  .brands-grid { grid-template-columns: 1fr 1fr; }
  .brand { min-height: 84px; display: flex; flex-direction: column; justify-content: center; }
  /* Strata dashboard hardening */
  .dashboard { padding: 18px; }
  .dash-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .dash-stat .v { font-size: 20px; }
  .dash-rows .r { grid-template-columns: auto 1fr auto; font-size: 11px; gap: 8px; }
  .dash-rows .r span:nth-child(4) { display: none; }
  .cta-band { padding: 32px 0; }
  .cta-band-inner .row { flex-direction: column; width: 100%; }
  .cta-band-inner .row .btn { width: 100%; justify-content: center; box-sizing: border-box; }
}

/* Mobile nav drawer: promoted enquire action */
.nav-mobile .nav-mobile-enquire { width: 100%; box-sizing: border-box; justify-content: center; }

/* ---------- Strata dashboard: prevent any min-content overflow ---------- */
.split > * { min-width: 0; }
.dashboard { max-width: 100%; min-width: 0; }
.dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-stat { min-width: 0; }
.dash-stat .v { white-space: nowrap; }
.dash-rows .r > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 380px) {
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-stat .v { font-size: 18px; }
}

/* ---------- Responsive section splits (were inline grids that never stacked on mobile) ---------- */
.split { display: grid; }
.split-brands { grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.split-pricing-head { grid-template-columns: 1fr 2fr; gap: 64px; align-items: end; margin-bottom: 16px; }
.split-strata { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.split-why { grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.split-callout { grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.check-list-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; list-style: none; }
@media (max-width: 900px) {
  .split-brands, .split-pricing-head, .split-strata, .split-why, .split-callout { grid-template-columns: 1fr; gap: 32px; }
  .split-pricing-head { align-items: start; }
  .split-callout { padding: 22px 20px; }
}
@media (max-width: 540px) {
  .check-list-2col { grid-template-columns: 1fr; gap: 12px; }
  .split-brands, .split-strata { gap: 28px; }
}
