/* ============================================================
   TreeCareCounty Template - Core Stylesheet
   Lightweight, mobile-first, no framework dependency.
   ============================================================ */

:root {
  /* Palette derived from the Enviro Trees UK logo */
  --brand-green: #8db820;         /* logo leaf colour, slightly toned for screen */
  --brand-green-dark: #5a7510;    /* deep olive — headers, sticky bar */
  --brand-green-darker: #354508;  /* near-black olive — hero overlay base */
  --brand-green-light: #b8d65a;   /* leaf tint — hover, soft accents */
  --brand-accent: #f7a823;        /* amber — high-contrast CTA against lime */
  --brand-accent-dark: #d68b0d;
  --ink: #2a2520;                 /* warm dark brown-grey (logo secondary) */
  --ink-soft: #6a625a;
  --paper: #ffffff;
  --paper-soft: #f6f7ec;          /* paper with a hint of leaf-green */
  --paper-mid: #ebeed4;
  --line: #dde0c4;
  --success: #5a7510;
  --danger: #c62828;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --container: 1180px;
  --space: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.85rem, 4vw + 0.5rem, 2.85rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.15rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Sticky conversion bar (top) ----- */
#sticky-conversion-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--brand-green-dark);
  color: #fff;
  padding: 8px 0;
  box-shadow: var(--shadow-sm);
  display: none;
}
#sticky-conversion-bar.visible { display: block; }
#sticky-conversion-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sticky-call-btn, .sticky-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.sticky-call-btn { background: #fff; color: var(--brand-green-dark); }
.sticky-call-btn:hover { background: var(--paper-soft); text-decoration: none; }
.sticky-quote-btn { background: var(--brand-accent); color: var(--ink); }
.sticky-quote-btn:hover { background: var(--brand-accent-dark); text-decoration: none; }
.sticky-trust-logos {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sticky-trust-logos img {
  height: 38px;
  width: auto;
  max-width: 84px;
  background: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ----- Header ----- */
.top-bar {
  background: var(--brand-green-dark);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 0;
  text-align: center;
  letter-spacing: 0.04em;
}
.main-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 44px; width: auto; display: block; }
.logo-img.logo-tagline-pair + .logo-tagline {
  display: none;
}

.header-right-elements {
  display: flex;
  align-items: center;
  gap: 22px;
  position: relative;
}
.header-accreds {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}
.header-accreds img {
  height: 34px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
  filter: grayscale(15%);
  opacity: 0.92;
  transition: filter 0.15s, opacity 0.15s;
}
.header-accreds img:hover { filter: none; opacity: 1; }
@media (max-width: 1100px) {
  .header-accreds { display: none; }
}
.desktop-google-reviews {
  display: flex;
  align-items: center;
  gap: 10px;
}
.desktop-google-reviews .stars { color: #fbbc04; letter-spacing: 1px; font-size: 0.95rem; }
.desktop-google-reviews .reviews-text { font-size: 0.82rem; line-height: 1.3; color: var(--ink-soft); }
.desktop-google-reviews .reviews-text strong { color: var(--ink); }
.desktop-call-section { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.desktop-call-section .call-text { font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.desktop-call-section .phone-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-green-dark);
  text-decoration: none;
}
.desktop-call-section .phone-number:hover { color: var(--brand-green); text-decoration: none; }

/* Hamburger menu */
.hamburger {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: absolute;
  left: 50%;
  margin-left: -11px;
  transition: transform 0.2s, opacity 0.2s, top 0.2s;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  display: none;
  z-index: 100;
  overflow: hidden;
}
.hamburger.active + .dropdown-menu,
.hamburger.active .dropdown-menu { display: block; }
.dropdown-menu.open { display: block; }
.dropdown-menu ul { list-style: none; margin: 0; padding: 6px 0; }
.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: var(--ink);
  font-weight: 500;
}
.dropdown-menu li a:hover { background: var(--paper-soft); color: var(--brand-green-dark); text-decoration: none; }

.mobile-only { display: none; }
.mobile-phone-icon a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-green); color: #fff;
  border-radius: 50%;
}

/* ----- Image placeholder (swap for real <img> on launch) ----- */
.img-placeholder {
  background:
    repeating-linear-gradient(45deg,
      rgba(141, 184, 32, 0.06) 0 12px,
      rgba(141, 184, 32, 0.10) 12px 24px),
    var(--paper-soft);
  border: 2px dashed var(--brand-green-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 22px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: "";
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  background: var(--brand-green-dark);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='9' cy='9' r='2'/><path d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='9' cy='9' r='2'/><path d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/></svg>") center/contain no-repeat;
}
.img-placeholder .ph-role {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-green-dark);
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.img-placeholder .ph-file {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-green-dark);
  background: rgba(141, 184, 32, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  margin: 4px 0 6px;
  word-break: break-all;
}
.img-placeholder .ph-desc {
  font-size: 0.88rem;
  color: var(--ink);
  max-width: 360px;
  line-height: 1.45;
}
.img-placeholder .ph-dims {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.img-placeholder.ph-16x9 { aspect-ratio: 16/9; }
.img-placeholder.ph-4x3 { aspect-ratio: 4/3; }
.img-placeholder.ph-3x2 { aspect-ratio: 3/2; }
.img-placeholder.ph-1x1 { aspect-ratio: 1/1; }
.img-placeholder.ph-wide { aspect-ratio: 21/9; }

/* Stat / "why it matters" card grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 14px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-green);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
}
.stat-card .stat-headline {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-green);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.stat-card h3 {
  color: var(--brand-green-dark);
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.stat-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0;
  line-height: 1.55;
}

/* Two-column content block: text left, image right */
.content-2col {
  display: grid !important;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px !important;
}
.content-2col > div > h2 { text-align: left; }
.content-2col .img-placeholder { aspect-ratio: 4/3; }
.content-2col > img,
.content-2col > div > img:only-child,
.content-2col .img-wrap > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: block;
}
.content-2col .img-wrap { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (max-width: 820px) {
  .content-2col { grid-template-columns: 1fr; gap: 26px; }
  .content-2col .img-placeholder { aspect-ratio: 16/9; max-width: 600px; margin: 0 auto; }
  .content-2col > img,
  .content-2col .img-wrap > img { aspect-ratio: 16 / 9; max-width: 600px; margin: 0 auto; }
  .content-2col .img-wrap { align-items: center; }
}

/* ----- Accreditations strip ----- */
.accreditations-strip {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.accreditations-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.accreditations-strip .accred-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  width: 100%;
  text-align: center;
}
.accreditations-strip img {
  height: 56px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.9;
  transition: filter 0.2s, opacity 0.2s;
}
.accreditations-strip img:hover {
  filter: none;
  opacity: 1;
}
.footer-accreds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 18px;
  align-items: center;
}
.footer-accreds img {
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
@media (max-width: 540px) {
  .accreditations-strip .container { gap: 18px; }
  .accreditations-strip img { height: 44px; }
}

/* ----- Trust/features bar ----- */
.features-bar {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.features-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 10px 22px;
}
.feature-item {
  font-size: 0.93rem;
  color: #000;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feature-item .checkmark {
  color: var(--brand-green);
  font-weight: 800;
}

/* ----- Hero ----- */
.hero-section {
  background:
    linear-gradient(135deg, rgba(53, 69, 8, 0.92) 0%, rgba(90, 117, 16, 0.85) 100%),
    var(--brand-green-darker) url('../images/hero-trees.jpg') center/cover no-repeat;
  color: #fff;
  padding: 56px 0 64px;
}
.hero-container-flex {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.hero-text-content h1 { color: #fff; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 4px 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 14px;
  font-weight: 600;
}
.hero-subheading {
  font-size: 1.07rem;
  opacity: 0.95;
  max-width: 540px;
  margin-bottom: 22px;
}
.hero-trust-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 0.9rem;
  opacity: 0.95;
}
.hero-trust-row .badge {
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-trust-row .badge:has(img) {
  background: rgba(255, 255, 255, 0.96);
  padding: 6px 10px;
  height: 84px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.hero-trust-row .badge img {
  height: 72px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
@media (max-width: 540px) {
  .hero-trust-row .badge:has(img) { height: 64px; padding: 4px 8px; }
  .hero-trust-row .badge img { height: 56px; max-width: 150px; }
}

/* Hero testimonial card */
.hero-testimonial-card {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.hero-testimonial-card .testimonial-text {
  font-style: italic;
  color: #fff;
  margin: 0 0 12px;
  font-size: 0.96rem;
}
.hero-testimonial-card .author-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-initial {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.author-name { font-weight: 600; color: #fff; }
.author-meta { font-size: 0.82rem; opacity: 0.8; color: #fff; }
.author-stars { color: #fbbc04; margin-left: auto; letter-spacing: 1px; }

/* ----- Lead form ----- */
/* Bullet-proof honeypot — leadboard.js strips inline display:none, so force it via CSS */
input[name="website_url"] {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

/* form-card is wrapped by leadboard.js in its own card, so we drop the visual card
   styling here to avoid a nested-card look. Padding stays minimal to avoid double-padding
   on top of leadboard's own wrapper padding. */
.form-card {
  color: var(--ink);
  padding: 0 4px;
}
.form-card h2,
form#miracle-lead-form h2 {
  font-size: 1.35rem;
  margin: 0 0 14px;
  color: var(--brand-green-dark);
  text-align: left !important;
}
.form-card .form-sub {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.form-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 10px 0 4px;
  color: var(--ink);
}
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 0.96rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(141, 184, 32, 0.20);
}
.form-card button[type="submit"] {
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--brand-accent);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.05s;
}
.form-card button[type="submit"]:hover { background: var(--brand-accent-dark); }
.form-card button[type="submit"]:active { transform: translateY(1px); }
.form-trust-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.form-trust-row .lock-icon { color: var(--brand-green); }

/* ----- Sections ----- */
.content-section {
  padding: 64px 0;
}
.content-section.alt-bg { background: var(--paper-soft); }
.content-section h2 { text-align: center; }
.section-lede {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-eyebrow {
  display: block;
  text-align: center;
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* Service grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand-green-light);
}
.service-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--paper-soft);
  color: var(--brand-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.service-card h3 { color: var(--brand-green-dark); margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: 0.96rem; flex-grow: 1; }
.service-card .service-link {
  margin-top: 10px;
  font-weight: 700;
  color: var(--brand-green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Two column with image */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.two-col.text-left .text-content { order: 1; }
.two-col.text-left .image-content { order: 2; }
.two-col img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.two-col h2 { text-align: left; }

/* USPs */
.usp-list { list-style: none; padding: 0; margin: 0; }
.usp-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  align-items: flex-start;
}
.usp-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-green);
  margin-top: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='white' d='M6.173 11.207 3.466 8.5l1.06-1.06 1.647 1.646L11.474 3.78l1.06 1.061z'/></svg>");
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
}
.step-item {
  text-align: center;
  padding: 22px 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
}
.step-number {
  width: 44px; height: 44px;
  background: var(--brand-green);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.step-item h4 { color: var(--brand-green-dark); margin-bottom: 6px; }
.step-item p { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }

/* Pricing examples */
.pricing-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 28px 0 14px;
}
.price-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
}
.price-item strong {
  display: block;
  color: var(--brand-green-dark);
  font-size: 1.45rem;
  margin-bottom: 4px;
}
.price-item span { color: var(--ink-soft); font-size: 0.9rem; }
.price-note { color: var(--ink-soft); font-size: 0.85rem; font-style: italic; text-align: center; }

/* FAQ / Accordion */
.faq-item, .accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}
.faq-question, .accordion-question {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-soft);
  transition: background 0.15s;
}
.faq-question:hover, .accordion-question:hover { background: var(--paper-mid); }
.faq-item.active .faq-question,
.accordion-item.active .accordion-question {
  background: var(--brand-green);
  color: #fff;
}
.faq-question .arrow, .accordion-question .arrow {
  font-weight: 800;
  font-size: 1.3rem;
  min-width: 18px;
  text-align: center;
}
.faq-answer, .accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 20px;
}
.faq-item.active .faq-answer,
.accordion-item.active .accordion-answer {
  max-height: 600px;
  padding: 18px 20px;
}
.faq-answer p:last-child, .accordion-answer p:last-child { margin-bottom: 0; }

/* Testimonials grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.testimonial-card .testimonial-text {
  font-style: italic;
  color: var(--ink);
  margin-bottom: 14px;
  font-size: 0.96rem;
  flex-grow: 1;
}
.testimonial-card .stars { color: #fbbc04; letter-spacing: 1px; margin-bottom: 4px; }
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand-green-dark), var(--brand-green));
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { opacity: 0.95; margin: 0 auto 22px; max-width: 720px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.15s, transform 0.05s;
}
.cta-quote-btn { background: var(--brand-accent); color: var(--ink); }
.cta-quote-btn:hover { background: var(--brand-accent-dark); text-decoration: none; }
.cta-call-btn { background: #fff; color: var(--brand-green-dark); }
.cta-call-btn:hover { background: var(--paper-soft); text-decoration: none; }
.cta-button:active { transform: translateY(1px); }

/* Service area map */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--paper-mid);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--brand-green-dark), var(--brand-green));
  color: #fff;
  padding: 56px 0 48px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { opacity: 0.95; max-width: 720px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 10px;
}
.breadcrumb a { color: #fff; }

/* Footer */
footer {
  background: var(--ink);
  color: #c8d1ca;
  padding: 40px 0 20px;
  font-size: 0.92rem;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 6px; }
footer a { color: #c8d1ca; }
footer a:hover { color: #fff; }
footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* Stage 2 - residential/commercial toggle + conditional fields */
.stage2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .stage2-layout { grid-template-columns: 1fr; }
}

.toggle-group {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px;
  width: 100%;
}
.toggle-group.three-col { grid-template-columns: repeat(3, 1fr) !important; }
.toggle-option {
  position: relative;
  display: block !important;
  cursor: pointer;
  margin: 0 !important;
  width: 100% !important;
  min-width: 0;
}
.toggle-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.toggle-option span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 14px;
  min-height: 52px;
  box-sizing: border-box;
  width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
.toggle-option:hover span { border-color: var(--brand-green-light); }
.toggle-option input:checked + span {
  background: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
  color: #fff;
}
.toggle-option input:focus-visible + span {
  outline: 3px solid rgba(141, 184, 32, 0.4);
  outline-offset: 2px;
}

.conditional[hidden] { display: none !important; }

.urgent-callout {
  background: var(--paper-soft);
  border-left: 4px solid var(--brand-accent);
  border-radius: 6px;
  padding: 18px 20px;
  position: sticky;
  top: 80px;
}
.urgent-callout h3 {
  margin: 0 0 6px;
  color: var(--brand-green-dark);
  font-size: 1.05rem;
}
.urgent-callout p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
}
.urgent-callout .phone-cta {
  display: inline-block;
  margin: 6px 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-green-dark);
  text-decoration: none;
}
.urgent-callout .phone-cta:hover { text-decoration: underline; }

/* ----- Stage 2 quote form ----- */
.stage2-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 18px;
}
.stage2-form legend {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand-green-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  padding: 0;
}
.stage2-form .hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.stage2-form .postcode-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.stage2-form .postcode-row button {
  padding: 0 16px;
  background: var(--brand-green-dark);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.92rem;
}
.stage2-form .postcode-row button:hover { background: var(--brand-green-darker); }

.map-preview {
  margin: 8px 0 16px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}
.map-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-preview[hidden] { display: none !important; }

.file-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  border: 2px dashed var(--brand-green-light);
  border-radius: var(--radius);
  background: var(--paper-soft);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
}
.file-drop:hover { background: var(--paper-mid); border-color: var(--brand-green); }
.file-drop.dragover { background: var(--paper-mid); border-color: var(--brand-green); border-style: solid; }
.file-drop-text {
  font-size: 0.96rem;
  color: var(--ink);
  font-weight: 600;
}
.file-drop-text small {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 4px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.image-preview-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}
.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-preview-item .ipi-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  text-align: center;
}
.image-preview-item .ipi-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.image-preview-item .ipi-remove:hover { background: var(--danger); }

.stage-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.stage-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--paper-mid);
}
.stage-dot.done { background: var(--brand-green); }
.stage-dot.current {
  background: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(141, 184, 32, 0.25);
}

/* Contact page grid (Call Us + portrait) */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .img-placeholder { max-width: 360px; margin: 0 auto; }
}

/* Helpers */
.d-none { display: none !important; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-container-flex { grid-template-columns: 1fr; gap: 28px; }
  .two-col { grid-template-columns: 1fr; gap: 26px; }
  .two-col.text-left .text-content,
  .two-col.text-left .image-content { order: initial; }
  .desktop-google-reviews,
  .desktop-call-section { display: none; }
  .mobile-only { display: inline-flex; }
  .features-bar .container { justify-content: flex-start; }
  .content-section { padding: 48px 0; }
  .form-card .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  footer .footer-grid { grid-template-columns: 1fr; }
  footer .footer-bottom { flex-direction: column; }
  .hero-section { padding: 36px 0 44px; }
  #sticky-conversion-bar .container { gap: 8px; }
  .sticky-trust-logos { display: none; }
  .sticky-call-btn, .sticky-quote-btn { flex: 1; justify-content: center; padding: 9px 10px; font-size: 0.85rem; }
}

/* alignment override — explicit 50% width, locked 64px height */
body fieldset .toggle-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
}
#miracle-lead-form .toggle-group .toggle-option,
form[data-webform-id] .toggle-group .toggle-option,
body fieldset .toggle-group .toggle-option {
  flex: 0 0 calc(50% - 4px) !important;
  width: calc(50% - 4px) !important;
  max-width: calc(50% - 4px) !important;
  min-width: calc(50% - 4px) !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
#miracle-lead-form .toggle-group .toggle-option > span,
form[data-webform-id] .toggle-group .toggle-option > span,
body fieldset .toggle-group .toggle-option > span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
  border-width: 2px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
}

/* readable links on green-background sections */
.cta-band a:not(.cta-button),
.cta-band a:not(.cta-button):visited,
.hero-section a:not(.cta-button):not(.btn),
.hero-section a:not(.cta-button):not(.btn):visited,
.top-bar a:not(.cta-button):not(.btn),
.top-bar a:not(.cta-button):not(.btn):visited,
.sticky-cta a:not(.cta-button):not(.btn),
.sticky-cta a:not(.cta-button):not(.btn):visited,
[class*="green-bg"] a:not(.cta-button):not(.btn),
[style*="background: #5a7510"] a:not(.cta-button):not(.btn),
[style*="background:#5a7510"] a:not(.cta-button):not(.btn) {
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}
.cta-band a:not(.cta-button):hover,
.hero-section a:not(.cta-button):not(.btn):hover,
.top-bar a:not(.cta-button):not(.btn):hover,
.sticky-cta a:not(.cta-button):not(.btn):hover {
  color: #fff !important;
  opacity: 0.85 !important;
  text-decoration: underline !important;
}
