/* Home Energy Quotes — Global Stylesheet (hybrid theme)
   Sage & Cream design. Light page surfaces, charcoal chrome (nav/footer).
   Variables keep their legacy names so all block style.css cascade correctly —
   only the VALUES are remapped to the Sage & Cream palette.
   Block-specific CSS lives in each block's style.css.
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent, #7d9b76); outline-offset: 2px; }

:root {
  /* Sage & Cream brand palette */
  --brand-cream:      #f5f0e8;
  --brand-surface:    #dce5d4;
  --brand-sage:       #a8c0a0;
  --brand-sage-deep:  #7d9b76;
  --brand-charcoal:   #2a2a2a;

  /* Legacy semantic names → remapped to light values (blocks depend on these) */
  --bg:        #f5f0e8;   /* page background (also = text colour on accent buttons) */
  --bg2:       #ffffff;   /* white cards / hero / breadcrumb surface */
  --bg3:       #dce5d4;   /* sage surface (forms, soft panels) */
  --card:      #ffffff;
  --border:    rgba(42,42,42,0.10);
  --border-hi: rgba(125,155,118,0.45);
  --accent:    #52694c;   /* deep sage, WCAG AA on cream/white/surface — links & accents */
  --text-sage: #52694c;   /* small sage text (AA 4.5:1 on cream + surface) */
  --panel-sage:#566f51;   /* panel bg — solid cream text passes AA on it */
  --accent2:   #a8c0a0;   /* sage */
  --glow:      rgba(125,155,118,0.14);
  --white:     #2a2a2a;   /* primary text (charcoal — legacy name kept) */
  --muted:     #5d6858;   /* secondary text (AA on cream + surface) */
  --muted2:    #cfc9bd;   /* dividers */
  --serif:     'Urbanist', sans-serif;
  --body:      'Epilogue', sans-serif;

  /* Charcoal chrome (nav, announcement bar, footer) */
  --chrome:        #2a2a2a;
  --chrome-text:   #f5f0e8;
  --chrome-muted:  rgba(245,240,232,0.72);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg) !important;
  color: var(--white) !important;
  font-family: var(--body) !important;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── ANNOUNCEMENT BAR (top-bar) ── */
.top-bar {
  background: var(--chrome);
  color: var(--chrome-muted);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 40px; position: relative;
}
.top-bar-left { display: flex; align-items: center; gap: 24px; }
.top-bar-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.75rem; color: var(--chrome-muted); letter-spacing: 0.03em;
  text-decoration: none; transition: color 0.2s;
}
.top-bar-item:hover { color: var(--chrome-text); }
.top-bar-divider { width: 1px; height: 14px; background: rgba(245,240,232,0.2); }
.top-bar-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--chrome-muted); letter-spacing: 0.03em;
  white-space: nowrap;
}
.top-bar-badge {
  background: var(--brand-sage); color: var(--brand-charcoal);
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px;
}
.top-bar-right { display: flex; align-items: center; gap: 14px; }

/* ── NAV ── */
.nav {
  background: color-mix(in srgb, var(--chrome) 95%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(245,240,232,0.10);
  position: sticky; top: 0; z-index: 90;
  overflow: visible;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 68px; max-width: 1280px; margin: 0 auto;
}
.nav__logo {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  color: var(--chrome-text); text-decoration: none;
  display: flex; align-items: center; gap: 11px;
  letter-spacing: -0.01em;
}
.nav__logo-badge {
  position: relative; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-sage-deep); flex-shrink: 0; overflow: hidden;
}
.nav__logo-badge span.bhe-g {
  position: relative; z-index: 2; font-family: var(--serif);
  font-size: 0.85rem; font-weight: 700; color: var(--brand-cream);
}
.nav__logo-dot {
  position: absolute; inset: 0; margin: auto;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand-sage); flex-shrink: 0;
}
@keyframes logo-glow {
  0%,100% { transform: scale(1);   background-color: rgba(168,192,160,1); }
  50%     { transform: scale(2.6); background-color: rgba(220,240,210,1); }
}
.animate-logo-glow {
  animation: logo-glow 2.4s ease-in-out infinite;
  transform-origin: center; will-change: transform;
}
.nav__links {
  display: flex; gap: 26px; list-style: none; align-items: center;
}
.nav__links > li { position: relative; }
.nav__links a {
  color: var(--chrome-muted); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; letter-spacing: 0.01em; transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav__links a:hover { color: var(--brand-sage); }

/* Solutions mega-menu (matches the Lovable export) */
.nav__dropdown-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 16px; width: 720px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s;
  z-index: 95;
}
.nav__item--has-dropdown:hover .nav__dropdown-panel,
.nav__item--has-dropdown:focus-within .nav__dropdown-panel {
  opacity: 1; visibility: visible;
}
.nav__dropdown-inner {
  overflow: hidden;
  background: color-mix(in srgb, var(--chrome) 98%, transparent);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.45); backdrop-filter: blur(20px);
}
.nav__dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 16px; }
.nav__dropdown-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: 12px; transition: background 0.2s;
}
.nav__dropdown-item:hover { background: rgba(255,255,255,0.05); }
.nav__dropdown-thumb {
  position: relative; display: grid; place-items: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 8px; overflow: hidden;
  background: rgba(168,192,160,0.15); box-shadow: inset 0 0 0 1px rgba(168,192,160,0.30);
}
.nav__dropdown-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: opacity 0.2s; }
.nav__dropdown-item:hover .nav__dropdown-thumb img { opacity: 0.8; }
.nav__dropdown-icon { position: relative; z-index: 2; font-size: 1.25rem; line-height: 1; }
.nav__dropdown-text { display: flex; flex-direction: column; min-width: 0; }
.nav__dropdown-title { font-size: 0.875rem; font-weight: 600; color: var(--chrome-text); }
.nav__dropdown-item:hover .nav__dropdown-title { color: var(--brand-sage); }
.nav__dropdown-blurb {
  margin-top: 2px; font-size: 0.75rem; line-height: 1.35; color: rgba(245,240,232,0.55);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nav__dropdown-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.02);
  padding: 12px 20px;
}
.nav__dropdown-foot-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(245,240,232,0.45); }
.nav__dropdown-foot-link { font-size: 0.75rem; font-weight: 600; color: var(--brand-sage); text-decoration: none; }
.nav__dropdown-foot-link:hover { color: var(--chrome-text); }
.nav__caret { width: 9px; height: 9px; opacity: 0.6; transition: transform 0.2s; }
.nav__item--has-dropdown:hover .nav__caret { transform: rotate(180deg); }

.nav__cta {
  background: transparent !important;
  border: 1px solid var(--brand-sage) !important;
  color: var(--brand-sage) !important;
  padding: 9px 20px !important; border-radius: 100px !important;
  font-weight: 600 !important; letter-spacing: 0.01em !important;
  transition: all 0.25s !important;
}
.nav__cta:hover {
  background: var(--brand-sage) !important;
  color: var(--brand-charcoal) !important;
}
.nav__toggle {
  display: none; background: none; border: 1px solid rgba(245,240,232,0.2);
  color: var(--chrome-text); padding: 6px 12px; border-radius: 100px;
  font-size: 1rem; cursor: pointer;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--brand-surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb > div {
  max-width: 900px; margin: 0 auto; padding: 0 48px;
  font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }

/* ── PAGE HERO ── */
.page-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(125,155,118,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero__inner {
  max-width: 900px; margin: 0 auto;
  padding: 0 48px; box-sizing: border-box;
  position: relative; z-index: 1;
}
.page-hero h1 {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.025em;
  margin-bottom: 14px; color: var(--white);
}
.page-hero__meta {
  font-size: 0.83rem; color: var(--muted); font-weight: 400;
}
.page-hero__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-sage);
  border-radius: 100px;
  padding: 6px 14px; margin-bottom: 20px;
  background: var(--brand-surface);
}

/* ── MAIN CONTENT ── */
.content { padding: 0 0 80px; }
.content > *:not(.page-hero):not(.breadcrumb) {
  max-width: 900px; margin-left: auto; margin-right: auto;
  padding-left: 48px; padding-right: 48px; box-sizing: border-box;
}
.content > .page-hero,
.content > .breadcrumb { max-width: none; }
.content > .page-hero + *:not(.page-hero):not(.breadcrumb) { margin-top: 40px; }
.content h2 {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.02em; margin: 52px 0 16px; color: var(--white);
  padding-top: 4px;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  margin: 32px 0 12px; color: var(--white);
}
.content p { margin-bottom: 16px; color: rgba(42,42,42,0.82); }
.content p:last-child { margin-bottom: 0; }
.content strong { color: var(--white); font-weight: 600; }
.content em { color: var(--muted); font-style: italic; }
.content ul, .content ol {
  padding-left: 20px; margin-bottom: 16px; color: rgba(42,42,42,0.82);
}
.content li { margin-bottom: 6px; }

/* ── CONTENT IMAGES ── */
.content-img {
  width: 100%; height: auto; border-radius: 12px;
  margin: 24px 0 32px; display: block;
}
picture { display: block; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 16px 28px;
  border-radius: 18px; font-family: var(--body);
  font-size: 14px; font-weight: 600; line-height: 20px;
  text-decoration: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.1s, background 0.2s;
  border: none;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--brand-charcoal); color: var(--brand-cream); }
.btn--primary:hover { background: var(--brand-sage-deep); }
.btn--outline { background: var(--brand-surface); color: var(--brand-charcoal); border: 1px solid rgba(0,0,0,0.06); }
.btn--outline:hover { background: #fff; }

/* ── FOOTER ── */
footer {
  background: var(--chrome); color: var(--chrome-text);
  border-top: 1px solid rgba(245,240,232,0.08);
}
.footer__inner { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.footer__disclaimer {
  padding: 20px 0; border-bottom: 1px solid rgba(245,240,232,0.10);
  font-size: 0.72rem; line-height: 1.6; color: var(--chrome-muted); opacity: 0.85;
}
.footer__disclaimer a { color: var(--chrome-muted); text-decoration: underline; }
.footer__disclaimer a:hover { color: var(--brand-sage); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0; font-size: 0.78rem; color: var(--chrome-muted);
}
.footer__bottom a { color: var(--chrome-muted); text-decoration: none; transition: color 0.2s; }
.footer__bottom a:hover { color: var(--brand-sage); }

/* ── FOOTER GRID ── */
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; padding: 56px 0 40px;
  border-bottom: 1px solid rgba(245,240,232,0.10);
}
.footer__grid-col .footer__heading,
.footer__grid-col h4 {
  font-family: var(--serif); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(245,240,232,0.65); margin-bottom: 18px;
}
.footer__grid-col a {
  display: block; color: var(--chrome-muted); text-decoration: none;
  font-size: 0.88rem; padding: 5px 0; transition: color 0.2s;
}
.footer__grid-col a:hover { color: var(--brand-sage); }
.footer__brand-name {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  color: var(--chrome-text); display: flex; align-items: center; gap: 9px;
  margin-bottom: 16px;
}
.footer__brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-sage); flex-shrink: 0;
}
.footer__brand-tagline {
  font-size: 0.88rem; color: var(--chrome-muted); margin-bottom: 18px;
  line-height: 1.6; max-width: 30ch;
}
.footer__brand-contact {
  font-size: 0.85rem; color: var(--chrome-muted);
  display: flex; flex-direction: column; gap: 6px;
}
.footer__brand-contact a { display: inline; padding: 0; font-size: 0.85rem; color: var(--brand-sage); }

/* ── QUOTE FORM ── */
.quote-form {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px; max-width: 560px;
  display: flex; flex-direction: column; gap: 20px; margin: 24px 0 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.88rem; font-weight: 600; color: var(--white);
}
.form-group input,
.form-group select {
  background: #fff; border: 1px solid var(--border);
  color: var(--white); border-radius: 10px; padding: 11px 14px;
  font-size: 1rem; font-family: inherit; transition: border-color 0.2s; /* ≥16px: prevents iOS focus-zoom */
  appearance: none; -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125,155,118,0.18);
}
.form-group input::placeholder { color: var(--muted); }
.form-group--consent label {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.82rem; font-weight: 400; line-height: 1.5;
  color: var(--muted);
}
.form-group--consent input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--accent); padding: 0;
}
.form-group--consent a { color: var(--accent); }
.btn--lg { padding: 16px 32px; font-size: 1rem; }

/* ── WP Core Block Overrides ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); color: var(--white); }
.wp-block-heading { font-family: var(--serif) !important; color: var(--white) !important; }
p, .wp-block-paragraph { color: rgba(42,42,42,0.82); margin-bottom: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 1280px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 0.84rem; }
  .nav__cta { padding: 8px 16px !important; font-size: 0.84rem !important; white-space: nowrap; }
}

@media (max-width: 1080px) {
  .top-bar { display: none; }
  .nav__inner { padding: 0 20px; }
  .nav__links {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--chrome); border-bottom: 1px solid rgba(245,240,232,0.10);
    padding: 16px 20px; gap: 6px; z-index: 80;
  }
  .nav__links a { font-size: 0.95rem; padding: 8px 0; }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
  .nav__cta { font-size: 0.9rem !important; padding: 10px 20px !important; margin-top: 8px; }
  /* dropdown becomes inline on mobile */
  .nav__dropdown-panel {
    position: static; transform: none; opacity: 1; visibility: visible;
    padding-top: 6px; min-width: 0; width: 100%;
  }
  .nav__dropdown-inner { background: rgba(255,255,255,0.03); box-shadow: none; border: none; }
  .nav__dropdown-grid { grid-template-columns: 1fr; padding: 6px; }
  .nav__dropdown-foot { display: none; }
  .nav__caret { display: none; }
  .content { padding: 0 0 60px; }
  .content > *:not(.page-hero):not(.breadcrumb) { padding-left: 24px; padding-right: 24px; }
  .breadcrumb > div { padding: 0 20px; }
  .page-hero__inner { padding: 0 24px; }
  .footer__inner { padding: 0 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 0 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; padding: 24px 0; text-align: center; }
}

@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ── Cookie Consent Banner (if used) ── */
.cookie-consent {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--chrome); border-top: 2px solid var(--brand-sage);
  padding: 20px 24px; font-size: 0.85rem; color: var(--chrome-text);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
}
.cookie-consent__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-consent__inner p { margin: 0; flex: 1; min-width: 280px; line-height: 1.6; }
.cookie-consent__inner a { color: var(--brand-sage); text-decoration: underline; }
.cookie-consent__actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-consent__btn {
  padding: 10px 22px; border-radius: 100px; border: none; cursor: pointer;
  font-size: 0.82rem; font-weight: 600; transition: all 0.2s; white-space: nowrap;
}
.cookie-consent__btn:hover { transform: translateY(-1px); }
.cookie-consent__btn--accept { background: var(--brand-sage); color: var(--brand-charcoal); }
.cookie-consent__btn--accept:hover { background: var(--brand-sage-deep); color: var(--brand-cream); }
.cookie-consent__btn--decline { background: rgba(255,255,255,0.08); color: var(--chrome-text); border: 1px solid rgba(255,255,255,0.18); }
.cookie-consent__btn--decline:hover { background: rgba(255,255,255,0.14); }

/* ── LOCATION MAP ── */
.location-map { margin: 2rem 0; }
.location-map__img { width: 100%; height: auto; border-radius: 12px; }
.location-map__title { margin-bottom: .5rem; }
.location-map__cap { font-size: .9em; opacity: .75; margin-top: .5rem; }

/* ── FIGURE SOURCES / DISCLAIMER ── */
.figure-sources{margin:2rem 0;padding:1rem 1.25rem;background:var(--brand-surface);border-radius:12px;font-size:.92em}
.figure-sources__title{margin:0 0 .4rem;font-size:1.05em}
.figure-sources a{text-decoration:underline;color:var(--accent)}

/* ── 404 / SEARCH / ARCHIVE page furniture (always loaded) ── */
.error-404, .search-results, .archive { padding: 56px 0 40px; }
.error-404__inner, .search-results__inner, .archive__inner { max-width: 760px; margin: 0 auto; }
.error-404__title, .search-results__title, .archive__title {
  font-family: var(--serif); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem); color: var(--brand-charcoal); margin-bottom: 0.75rem;
}
.error-404__message, .search-results__count, .archive__description { color: rgba(42,42,42,0.7); margin-bottom: 1.5rem; }
.error-404__form, .search-results__form { display: flex; gap: 0.5rem; margin: 1.5rem 0 2.5rem; flex-wrap: wrap; }
.error-404__input, .search-results__input {
  flex: 1; min-width: 220px; background: #fff; border: 1px solid var(--border);
  border-radius: 100px; padding: 0.85rem 1.25rem; font-family: inherit; font-size: 1rem; color: var(--white); /* ≥16px: prevents iOS focus-zoom */
}
.error-404__input:focus, .search-results__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(125,155,118,0.18); }
.error-404__browse h2, .search-results__browse h2 {
  font-family: var(--serif); font-size: 1.1rem; margin: 2.5rem 0 1rem; color: var(--brand-charcoal);
}
.error-404__links, .search-results__links {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0;
}
.error-404__links a, .search-results__links a {
  display: inline-block; background: var(--brand-surface); color: var(--brand-charcoal);
  text-decoration: none; font-size: 0.85rem; font-weight: 600; padding: 0.5rem 1rem; border-radius: 100px; transition: background 0.2s;
}
.error-404__links a:hover, .search-results__links a:hover { background: var(--brand-sage); }
.error-404__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.search-results__list { display: flex; flex-direction: column; gap: 1rem; margin: 2rem 0; }
.search-results__item { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem 1.5rem; transition: box-shadow 0.2s; }
.search-results__item:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.06); }
.search-results__link { text-decoration: none; }
.search-results__item-title { font-family: var(--serif); font-size: 1.15rem; color: var(--brand-charcoal); margin: 0 0 0.4rem; }
.search-results__excerpt { color: rgba(42,42,42,0.72); font-size: 0.9rem; margin: 0 0 0.5rem; }
.search-results__url { font-size: 0.72rem; color: var(--accent); word-break: break-all; }
.search-results__empty { background: var(--brand-surface); border-radius: 16px; padding: 1.5rem; margin: 2rem 0; }
.archive__header { margin-bottom: 2.5rem; }

/* ── WAITLIST CAPTURE ── */
.gr-waitlist__form { margin: 0; }
.gr-waitlist__hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.gr-waitlist__row { display: flex; gap: 10px; flex-wrap: wrap; }
.gr-waitlist__row input[type="email"] { flex: 2 1 220px; }
.gr-waitlist__row input[type="text"] { flex: 1 1 130px; }
.gr-waitlist__row input {
  background: #fff; border: 1px solid var(--border); color: var(--white);
  border-radius: 100px; padding: 13px 18px; font-size: 1rem; font-family: inherit; /* ≥16px: prevents iOS focus-zoom */
}
.gr-waitlist__row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(82,105,76,0.18); }
.gr-waitlist__btn {
  flex: 0 0 auto; background: var(--brand-charcoal); color: var(--brand-cream);
  border: none; border-radius: 100px; padding: 13px 26px;
  font-family: var(--serif); font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: background 0.2s;
}
.gr-waitlist__btn:hover { background: var(--panel-sage); }
.gr-waitlist__consent { margin-top: 10px; font-size: 0.72rem; line-height: 1.5; color: rgba(42,42,42,0.66); }
.gr-waitlist__consent a { color: rgba(42,42,42,0.72); }
.gr-waitlist__success {
  background: var(--brand-surface); border-radius: 14px; padding: 18px 22px;
  font-size: 0.95rem; color: var(--white);
}
.gr-waitlist__error { color: #8a3232; font-size: 0.85rem; margin-bottom: 8px; }

/* location/product page banner */
.gr-waitlist-banner {
  background: var(--brand-surface); border-radius: 20px;
  padding: 28px 30px; margin: 2.5rem 0;
}
.gr-waitlist-banner__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; margin: 0 0 6px; color: var(--white); }
.gr-waitlist-banner__sub { font-size: 0.9rem; color: rgba(42,42,42,0.75); margin: 0 0 16px; }
.gr-waitlist-banner .gr-waitlist__row input { border-color: rgba(0,0,0,0.12); }

/* ── CALCULATOR ── */
.gr-calc { display: grid; gap: 2rem; }
.gr-calc__panel { background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.gr-calc__controls { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.gr-calc__field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.gr-calc__field label { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.gr-calc__field select {
  background: #fff; border: 1px solid var(--border); color: var(--white);
  border-radius: 12px; padding: 12px 14px; font-size: 1rem; font-family: inherit; /* ≥16px: prevents iOS focus-zoom */
}
.gr-calc__results { margin-top: 1.75rem; }
.gr-calc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--border); border-radius: 14px; overflow: hidden; }
.gr-calc__cell { background: var(--brand-cream); padding: 1.25rem; display: flex; flex-direction: column; gap: 4px; }
.gr-calc__num { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--text-sage); }
.gr-calc__label { font-size: 0.78rem; font-weight: 600; color: var(--white); }
.gr-calc__sub { font-size: 0.72rem; color: var(--muted); }
.gr-calc__grant { margin-top: 1.25rem; background: var(--brand-surface); border-radius: 12px; padding: 14px 18px; font-size: 0.9rem; color: var(--white); }
.gr-calc__note { margin-top: 0.9rem; font-size: 0.75rem; color: rgba(42,42,42,0.66); }
.gr-calc__note a { color: var(--accent); }
.gr-calc__capture { background: var(--brand-surface); border-radius: 20px; padding: 2rem; }
.gr-calc__capture h2 { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 6px; color: var(--white); }
.gr-calc__capture p { font-size: 0.9rem; color: rgba(42,42,42,0.75); margin: 0 0 16px; }

/* ── TOWN LINK GRID (hub pages) ── */
.gr-town-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.gr-town-grid a { display: block; padding: 12px 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: border-color 0.2s, background 0.2s; }
.gr-town-grid a:hover { border-color: var(--border-hi); background: var(--brand-surface); }

/* ── GUTENBERG TABLES (imported comparison/guide content) ── */
figure.wp-block-table { overflow-x: auto; margin: 24px 0 32px; }
figure.wp-block-table table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
figure.wp-block-table th {
  background: var(--bg3); font-family: var(--serif); font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 12px 14px; white-space: nowrap;
}
figure.wp-block-table td {
  padding: 11px 14px; border-top: 1px solid var(--border);
  color: rgba(42,42,42,0.82); vertical-align: top;
}
figure.wp-block-table tr td:first-child { font-weight: 600; color: var(--white); }

/* ── REGION TOWN ROWS (uniform 2-col grid: town | stacked solution+price) ── */
.gr-region-row {
  display: grid; grid-template-columns: 1fr auto; column-gap: 16px;
  align-items: center; border-top: 1px solid rgba(0,0,0,0.07);
  padding: 10px 0; min-height: 52px;
}
.gr-region-row__town {
  font-weight: 600; font-size: 0.9rem; line-height: 1.3;
  color: var(--brand-charcoal);
  text-decoration: underline; text-decoration-color: rgba(0,0,0,0.18); text-underline-offset: 3px;
}
.gr-region-row__town:hover { text-decoration-color: var(--accent); color: var(--accent); }
.gr-region-row__meta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.35; }
.gr-region-row__sol {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.gr-region-row__bill { font-size: 0.9rem; font-weight: 600; color: var(--white); white-space: nowrap; }

/* ── PAGE HERO with photography (hub pages) ── */
.page-hero--img { position: relative; overflow: hidden; }
.page-hero__img {
  position: absolute; right: 0; top: 0; height: 100%; width: 58%;
  object-fit: cover; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 45%, black 75%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 45%, black 75%);
}
.page-hero--img .page-hero__inner { position: relative; z-index: 2; }
.page-hero--img h1, .page-hero--img .page-hero__meta { max-width: 60%; }
@media (max-width: 800px) {
  .page-hero__img { width: 100%; opacity: 0.28; }
  .page-hero--img h1, .page-hero--img .page-hero__meta { max-width: 100%; }
}
