/* =============================================================================
   FenceFinder Theme — assets/css/theme.css  v2.0.0
   Design system via CSS custom properties.
   Layout: CSS Grid + Flexbox. No frameworks.
   ============================================================================= */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- Design Tokens ---- */
:root {
  /* Colour palette */
  --ff-forest:        #1a3a2a;
  --ff-forest-mid:    #234d38;
  --ff-forest-deep:   #142e20;
  --ff-green:         #2e7d52;
  --ff-green-hi:      #38a169;
  --ff-lime:          #7cc84c;
  --ff-lime-alpha-15: rgba(124, 200, 76, 0.15);
  --ff-lime-alpha-20: rgba(124, 200, 76, 0.20);
  --ff-lime-alpha-30: rgba(124, 200, 76, 0.30);
  --ff-sand:          #f5ede0;
  --ff-sand-light:    #fdf8f2;
  --ff-rust:          #c4622d;
  --ff-rust-dark:     #a8501f;
  --ff-white:         #ffffff;
  --ff-text:          #1a2414;
  --ff-text-mid:      #4a5c40;
  --ff-text-light:    #7a8c72;
  --ff-border:        #dde8d5;
  --ff-star:          #f6a50d;

  /* Spacing */
  --ff-space-xs:  8px;
  --ff-space-sm:  16px;
  --ff-space-md:  24px;
  --ff-space-lg:  48px;
  --ff-space-xl:  80px;

  /* Shape */
  --ff-radius:    18px;
  --ff-radius-sm: 10px;
  --ff-radius-xs:  6px;

  /* Elevation */
  --ff-shadow:    0 4px 24px rgba(26, 58, 42, 0.10);
  --ff-shadow-lg: 0 12px 48px rgba(26, 58, 42, 0.16);

  /* Typography */
  --ff-font-display: 'Sora',   Arial, sans-serif;
  --ff-font-body:    'Nunito', Arial, sans-serif;

  /* Layout */
  --ff-max-width: 1080px;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
  font-family:               var(--ff-font-body);
  color:                     var(--ff-text);
  background-color:          var(--ff-sand-light);
  line-height:               1.7;
  -webkit-font-smoothing:    antialiased;
  -moz-osx-font-smoothing:   grayscale;
}

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

a:focus-visible {
  outline: 3px solid var(--ff-lime);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- Container ---- */
.container {
  max-width: var(--ff-max-width);
  margin: 0 auto;
  padding: 0 var(--ff-space-md);
}

/* =============================================================================
   HEADER
   ============================================================================= */
.site-header {
  background-color: var(--ff-forest-deep);
  padding: 0 var(--ff-space-md);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 2px solid var(--ff-lime-alpha-20);
}

.header-inner {
  max-width: var(--ff-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--ff-lime), var(--ff-green-hi));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--ff-font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ff-white);
  letter-spacing: -0.02em;
}

.logo-text span { color: var(--ff-lime); }

/* Uploaded image logo — max height matches text logo, auto width */
.logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* Footer logo image is slightly smaller */
.site-footer .logo-img {
  height: 30px;
}

/* Primary nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--ff-lime); }

.btn-nav {
  background-color: var(--ff-rust) !important;
  color: var(--ff-white) !important;
  padding: 8px 20px;
  border-radius: var(--ff-radius-xs);
  transition: background-color 0.2s !important;
}

.btn-nav:hover,
.btn-nav:focus-visible {
  background-color: var(--ff-rust-dark) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ff-white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--ff-radius-xs);
  transition: background-color 0.2s;
}

.nav-toggle:hover { background-color: rgba(255, 255, 255, 0.10); }

/* Responsive nav */
@media (max-width: 700px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background-color: var(--ff-forest-deep);
    padding: var(--ff-space-sm) var(--ff-space-md);
    gap: var(--ff-space-sm);
    border-bottom: 2px solid var(--ff-lime-alpha-20);
    z-index: 199;
  }

  .nav-links.nav-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 8px 0; }
}

/* =============================================================================
   HERO
   ============================================================================= */
.hero {
  background: linear-gradient(160deg, var(--ff-forest-deep) 0%, var(--ff-forest) 45%, var(--ff-forest-mid) 100%);
  padding: var(--ff-space-xl) var(--ff-space-md) 90px;
  position: relative;
  overflow: hidden;
}

/* Radial lime glow */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124, 200, 76, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

/* Sand fade at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--ff-sand-light));
  pointer-events: none;
}

/* Decorative fence silhouette */
.fence-silhouette {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  height: 60px;
  opacity: 0.08;
  display: flex;
  gap: 8px;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.fence-post {
  width: 18px;
  background-color: var(--ff-lime);
  border-radius: 3px 3px 0 0;
  height: 60px;
}

.fence-post:nth-child(even) {
  height: 50px;
  margin-top: 10px;
}

/* Hero layout */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--ff-lime-alpha-15);
  border: 1px solid var(--ff-lime-alpha-30);
  color: var(--ff-lime);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '📍';
  font-size: 12px;
}

.hero h1 {
  font-family: var(--ff-font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  font-weight: 800;
  color: var(--ff-white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--ff-lime);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}

.badge .dot {
  width: 6px;
  height: 6px;
  background-color: var(--ff-lime);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-sub { margin-inline: auto; }
  .hero-badges { justify-content: center; }
}

/* =============================================================================
   FORM CARD
   ============================================================================= */
.form-card {
  background-color: var(--ff-white);
  border-radius: var(--ff-radius);
  padding: 36px 32px;
  box-shadow: var(--ff-shadow-lg);
  border: 2px solid var(--ff-lime-alpha-15);
}

.form-card h2 {
  font-family: var(--ff-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ff-forest);
  margin-bottom: 6px;
}

.form-card > p {
  color: var(--ff-text-mid);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ff-text-mid);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--ff-border);
  border-radius: var(--ff-radius-sm);
  font-family: var(--ff-font-body);
  font-size: 0.95rem;
  color: var(--ff-text);
  background-color: var(--ff-sand-light);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--ff-green-hi);
  box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.15);
  background-color: var(--ff-white);
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"] {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background-color: var(--ff-rust);
  color: var(--ff-white);
  border: none;
  border-radius: var(--ff-radius-sm);
  font-family: var(--ff-font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover { background-color: var(--ff-rust-dark); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.form-trust {
  text-align: center;
  color: var(--ff-text-light);
  font-size: 0.78rem;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-trust::before { content: '🔒'; font-size: 11px; }

.ff-form-error {
  background-color: #fff5f5;
  border: 1px solid #fc8181;
  border-radius: var(--ff-radius-xs);
  padding: 10px 14px;
  margin-bottom: 16px;
  color: #c53030;
  font-size: 0.88rem;
}

/* Thank-you state */
.thankyou-overlay {
  text-align: center;
  padding: 24px 0;
}

.thankyou-overlay .check { font-size: 3rem; margin-bottom: 12px; }

.thankyou-overlay h3 {
  font-family: var(--ff-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ff-forest);
  margin-bottom: 8px;
}

.thankyou-overlay p { color: var(--ff-text-mid); font-size: 0.9rem; }

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
}

/* =============================================================================
   STATS BAR
   ============================================================================= */
.stats-bar {
  background-color: var(--ff-forest);
  padding: 22px var(--ff-space-md);
}

.stats-inner {
  max-width: var(--ff-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  font-family: var(--ff-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ff-lime);
  line-height: 1;
}

.stat-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* =============================================================================
   TRUST STRIP
   ============================================================================= */
.trust-strip {
  background-color: var(--ff-sand);
  border-top: 2px dashed var(--ff-border);
  border-bottom: 2px dashed var(--ff-border);
  padding: 16px var(--ff-space-md);
}

.trust-inner {
  max-width: var(--ff-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ff-text-mid);
  font-size: 0.82rem;
  font-weight: 600;
}

/* =============================================================================
   SECTION BASE
   ============================================================================= */
.section { padding: var(--ff-space-xl) var(--ff-space-md); }
.section-alt { background-color: var(--ff-sand); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--ff-font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--ff-forest);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--ff-text-mid);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ff-green-hi);
  margin-bottom: 12px;
}

/* =============================================================================
   HOW IT WORKS — Steps
   ============================================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  background-color: var(--ff-white);
  border-radius: var(--ff-radius);
  padding: 36px 28px;
  box-shadow: var(--ff-shadow);
  border: 2px solid var(--ff-border);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--ff-shadow-lg);
}

.step-num {
  position: absolute;
  top: -14px;
  left: 28px;
  width: 28px;
  height: 28px;
  background-color: var(--ff-lime);
  color: var(--ff-forest-deep);
  font-family: var(--ff-font-display);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--ff-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ff-forest);
  margin-bottom: 10px;
}

.step p { color: var(--ff-text-mid); font-size: 0.9rem; line-height: 1.6; }

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

/* =============================================================================
   VIDEO SECTION
   ============================================================================= */

.ff-video-section {
  background: linear-gradient(160deg, var(--ff-forest-deep) 0%, var(--ff-forest) 60%, #1e4a30 100%);
  position: relative;
  overflow: hidden;
}

.ff-video-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(124,200,76,0.07) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(124,200,76,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.ff-video-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ff-video-copy .section-label { color: var(--ff-lime); }

.ff-video-heading {
  font-family: var(--ff-font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 12px 0 20px;
}

.ff-video-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.ff-video-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.ff-video-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.90);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.45;
}

.ff-vb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ff-lime);
  color: var(--ff-forest-deep);
  font-size: 0.75rem;
  font-weight: 900;
  margin-top: 1px;
}

.ff-video-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ff-lime);
  color: var(--ff-forest-deep);
  font-family: var(--ff-font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(124,200,76,0.35);
}

.ff-video-cta:hover {
  background: #8ed65a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,200,76,0.45);
}

.ff-video-player-wrap { position: relative; }

.ff-video-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(124,200,76,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.ff-video-frame {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(124,200,76,0.25),
    0 24px 64px rgba(0,0,0,0.50);
  background: #000;
}

.ff-video-aspect {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.ff-video-aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ff-video-badge {
  position: absolute;
  bottom: -18px;
  right: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--ff-forest);
  border-radius: 100px;
  padding: 8px 18px 8px 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  font-size: 0.82rem;
  font-weight: 700;
}

.ff-vbadge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ff-lime);
  color: var(--ff-forest-deep);
  font-size: 0.6rem;
  padding-left: 2px;
}

@media (max-width: 860px) {
  .ff-video-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ff-video-player-wrap { margin-bottom: 24px; }
  .ff-video-heading { font-size: clamp(1.5rem, 5vw, 2rem); }
}

@media (max-width: 480px) {
  .ff-video-benefits li { font-size: 0.9rem; }
  .ff-video-cta { width: 100%; justify-content: center; }
}

/* =============================================================================
   FENCE TYPE CARDS
   ============================================================================= */
.fence-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fence-type-card {
  background-color: var(--ff-white);
  border-radius: var(--ff-radius);
  overflow: hidden;
  box-shadow: var(--ff-shadow);
  border: 2px solid var(--ff-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fence-type-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ff-shadow-lg);
}

.fence-img {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* Per-type colour fills */
.fence-img-wood  { background: linear-gradient(135deg, #8B6542, #6b4c2f); }
.fence-img-vinyl { background: linear-gradient(135deg, #e8e0d5, #d0c8bb); }
.fence-img-chain { background: linear-gradient(135deg, #6b7a8d, #4a5568); }
.fence-img-iron  { background: linear-gradient(135deg, #2d3748, #1a202c); }
.fence-img-split { background: linear-gradient(135deg, #9c7a4a, #7a5c35); }
.fence-img-snow  { background: linear-gradient(135deg, #e53e3e, #c53030); }

.fence-type-info { padding: 20px; }

.fence-type-info h3 {
  font-family: var(--ff-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ff-forest);
  margin-bottom: 6px;
}

.fence-type-info p { color: var(--ff-text-mid); font-size: 0.85rem; line-height: 1.5; }

.price-range {
  display: inline-block;
  background-color: var(--ff-lime-alpha-15);
  color: var(--ff-green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 10px;
  border: 1px solid rgba(56, 161, 105, 0.25);
}

.price-disclaimer {
  text-align: center;
  margin-top: 24px;
  color: var(--ff-text-light);
  font-size: 0.82rem;
}

@media (max-width: 800px) { .fence-types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .fence-types { grid-template-columns: 1fr; } }


/* Fence type card — photo mode */
.fence-img-has-photo {
  height: 180px;
  padding: 0;
  font-size: 0;
  line-height: 0;
  display: block;
  overflow: hidden;
}

.fence-img-has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.fence-type-card:hover .fence-img-has-photo img {
  transform: scale(1.05);
}

/* =============================================================================
   CALCULATOR PROMO SECTION
   ============================================================================= */

.ff-calc-promo {
  position: relative;
  overflow: hidden;
}

/* ---- Background themes ---- */
.ff-calc-bg-forest {
  background: linear-gradient(135deg, var(--ff-forest-deep) 0%, var(--ff-forest) 100%);
}
.ff-calc-bg-forest::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(124,200,76,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.ff-calc-bg-lime {
  background: linear-gradient(135deg, #5aad2e 0%, var(--ff-lime) 100%);
}

.ff-calc-bg-sand {
  background: var(--ff-sand);
}
.ff-calc-bg-sand::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--ff-lime-alpha-15) 0%, transparent 70%);
  pointer-events: none;
}

.ff-calc-bg-slate {
  background: linear-gradient(135deg, #1a1f2e 0%, #2d3448 100%);
}

.ff-calc-bg-white {
  background: #ffffff;
  border-top: 1px solid var(--ff-border);
  border-bottom: 1px solid var(--ff-border);
}

/* ---- Icon ---- */
.ff-calc-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.ff-calc-icon {
  width: 48px;
  height: 48px;
}

/* Forest + Slate: light icon on dark bg */
.ff-calc-bg-forest .ff-calc-icon-wrap,
.ff-calc-bg-slate  .ff-calc-icon-wrap {
  background: rgba(255,255,255,0.10);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}
.ff-calc-bg-forest .ff-calc-icon,
.ff-calc-bg-slate  .ff-calc-icon { color: var(--ff-lime); }

/* Lime: dark icon on bright bg */
.ff-calc-bg-lime .ff-calc-icon-wrap {
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.30);
}
.ff-calc-bg-lime .ff-calc-icon { color: var(--ff-forest-deep); }

/* Sand + White: green icon on light bg */
.ff-calc-bg-sand  .ff-calc-icon-wrap,
.ff-calc-bg-white .ff-calc-icon-wrap {
  background: var(--ff-lime-alpha-15);
  box-shadow: 0 0 0 1px rgba(56,161,105,0.20);
}
.ff-calc-bg-sand  .ff-calc-icon,
.ff-calc-bg-white .ff-calc-icon { color: var(--ff-green); }

/* ---- Text colour per theme ---- */
.ff-calc-bg-forest .section-label,
.ff-calc-bg-slate  .section-label { color: var(--ff-lime); }
.ff-calc-bg-lime   .section-label { color: var(--ff-forest-deep); opacity: 0.7; }
.ff-calc-bg-sand   .section-label,
.ff-calc-bg-white  .section-label { color: var(--ff-green-hi); }

.ff-calc-bg-forest .ff-calc-heading,
.ff-calc-bg-slate  .ff-calc-heading { color: #ffffff; }
.ff-calc-bg-lime   .ff-calc-heading { color: var(--ff-forest-deep); }
.ff-calc-bg-sand   .ff-calc-heading,
.ff-calc-bg-white  .ff-calc-heading { color: var(--ff-forest); }

.ff-calc-bg-forest .ff-calc-desc,
.ff-calc-bg-slate  .ff-calc-desc { color: rgba(255,255,255,0.75); }
.ff-calc-bg-lime   .ff-calc-desc { color: rgba(26,58,42,0.75); }

.ff-calc-bg-forest .ff-calc-benefits li,
.ff-calc-bg-slate  .ff-calc-benefits li { color: rgba(255,255,255,0.90); }
.ff-calc-bg-lime   .ff-calc-benefits li { color: var(--ff-forest-deep); }

/* Checkmark colours per theme */
.ff-calc-bg-forest .ff-cb-check,
.ff-calc-bg-slate  .ff-cb-check {
  background: rgba(124,200,76,0.20);
  color: var(--ff-lime);
  border-color: rgba(124,200,76,0.30);
}
.ff-calc-bg-lime .ff-cb-check {
  background: rgba(26,58,42,0.15);
  color: var(--ff-forest-deep);
  border-color: rgba(26,58,42,0.20);
}

/* CTA button per theme */
.ff-calc-bg-forest .ff-calc-cta,
.ff-calc-bg-slate  .ff-calc-cta {
  background: var(--ff-lime);
  color: var(--ff-forest-deep);
  box-shadow: 0 4px 20px rgba(124,200,76,0.35);
}
.ff-calc-bg-forest .ff-calc-cta:hover,
.ff-calc-bg-slate  .ff-calc-cta:hover { background: #8ed65a; }

.ff-calc-bg-lime .ff-calc-cta {
  background: var(--ff-forest);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(26,58,42,0.25);
}
.ff-calc-bg-lime .ff-calc-cta:hover { background: var(--ff-forest-mid); }

.ff-calc-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

/* ---- Copy ---- */
.ff-calc-heading {
  font-family: var(--ff-font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: var(--ff-forest);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 12px 0 20px;
}

.ff-calc-heading em {
  font-style: normal;
  color: var(--ff-green-hi);
}

.ff-calc-desc {
  color: var(--ff-text-mid);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.ff-calc-benefits {
  list-style: none;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-bottom: 36px;
}

.ff-calc-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ff-text);
}

.ff-cb-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.ff-cb-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ff-lime-alpha-15);
  color: var(--ff-green);
  font-size: 0.75rem;
  font-weight: 900;
  border: 1px solid rgba(56,161,105,0.25);
}

.ff-calc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ff-forest);
  color: #ffffff;
  font-family: var(--ff-font-display);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 15px 30px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(26,58,42,0.20);
}

.ff-calc-cta:hover {
  background: var(--ff-forest-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,58,42,0.28);
}

.ff-calc-cta-icon { font-size: 1.1rem; }

.ff-calc-sub {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--ff-text-light);
}

/* ---- Preview card ---- */
.ff-calc-preview {
  position: relative;
}

.ff-calc-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--ff-shadow-lg);
  border: 2px solid var(--ff-border);
  position: relative;
  z-index: 1;
}

.ff-calc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ff-calc-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ff-text-light);
}

.ff-calc-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--ff-lime-alpha-15);
  color: var(--ff-green);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(56,161,105,0.25);
}

.ff-calc-card-amount {
  font-family: var(--ff-font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--ff-forest);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}

.ff-calc-card-range {
  font-size: 0.82rem;
  color: var(--ff-text-light);
  margin-bottom: 24px;
}

.ff-calc-card-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--ff-border);
  padding-top: 20px;
  margin-bottom: 20px;
}

.ff-calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ff-text-mid);
}

.ff-calc-row span:last-child {
  font-weight: 700;
  color: var(--ff-text);
}

.ff-calc-row-total {
  border-top: 1px solid var(--ff-border);
  padding-top: 10px;
  margin-top: 4px;
}

.ff-calc-row-total span {
  font-family: var(--ff-font-display);
  font-weight: 800 !important;
  font-size: 1rem;
  color: var(--ff-forest) !important;
}

.ff-calc-card-meta {
  font-size: 0.78rem;
  color: var(--ff-text-light);
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--ff-border);
}

/* Floating badge chips */
.ff-calc-floater {
  position: absolute;
  background: #ffffff;
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ff-forest);
  box-shadow: 0 4px 16px rgba(26,58,42,0.14);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.ff-calc-floater-1 {
  top: -16px;
  left: -20px;
}

.ff-calc-floater-2 {
  bottom: -16px;
  right: -16px;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .ff-calc-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ff-calc-preview { order: -1; }
  .ff-calc-floater-1 { left: 16px; }
  .ff-calc-floater-2 { right: 16px; }
  .ff-calc-cta { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .ff-calc-card { padding: 24px; }
  .ff-calc-card-amount { font-size: 2.4rem; }
}

/* =============================================================================
   WHY GRID
   ============================================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  background-color: var(--ff-white);
  border-radius: var(--ff-radius);
  padding: 28px;
  box-shadow: var(--ff-shadow);
  border: 2px solid var(--ff-border);
  display: flex;
  gap: 16px;
  transition: border-color 0.2s;
}

.why-card:hover { border-color: var(--ff-green-hi); }

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--ff-lime-alpha-15);
  border: 1px solid var(--ff-lime-alpha-30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.why-content h3 {
  font-family: var(--ff-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ff-forest);
  margin-bottom: 6px;
}

.why-content p { color: var(--ff-text-mid); font-size: 0.88rem; line-height: 1.6; }

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

/* =============================================================================
   NEIGHBOURHOODS
   ============================================================================= */
.hood-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hood-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--ff-white);
  border: 2px solid var(--ff-border);
  color: var(--ff-text-mid);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
  cursor: default;
}

.hood-tag::before { content: '📍'; font-size: 11px; }

.hood-tag:hover {
  border-color: var(--ff-green-hi);
  color: var(--ff-forest);
  background-color: var(--ff-lime-alpha-15);
}

/* =============================================================================
   TESTIMONIALS
   ============================================================================= */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background-color: var(--ff-white);
  border-radius: var(--ff-radius);
  padding: 28px;
  box-shadow: var(--ff-shadow);
  border: 2px solid var(--ff-border);
}

.stars {
  color: var(--ff-star);
  font-size: 1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
  display: block;
}

.testimonial-text {
  color: var(--ff-text);
  font-size: 0.9rem;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 18px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ff-forest), var(--ff-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-name {
  font-family: var(--ff-font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ff-forest);
}

.author-area { font-size: 0.78rem; color: var(--ff-text-light); }

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

/* =============================================================================
   FAQ ACCORDION
   ============================================================================= */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  background-color: var(--ff-white);
  border-radius: var(--ff-radius-sm);
  margin-bottom: 10px;
  border: 2px solid var(--ff-border);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 20px 24px;
  font-family: var(--ff-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ff-forest);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  user-select: none;
  transition: background-color 0.15s;
}

.faq-q:hover { background-color: var(--ff-sand-light); }

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--ff-green-hi);
  transition: transform 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }

.faq-a {
  padding: 0 24px 20px;
  color: var(--ff-text-mid);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* =============================================================================
   CTA SECTION
   ============================================================================= */
.cta-section {
  background: linear-gradient(135deg, var(--ff-forest-deep), var(--ff-forest));
  padding: var(--ff-space-xl) var(--ff-space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 200, 76, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 2; }

.cta-section h2 {
  font-family: var(--ff-font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--ff-white);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.cta-section h2 span { color: var(--ff-lime); }

.cta-section > .container > p,
.cta-inner > p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 36px;
}

.btn-cta {
  display: inline-block;
  background-color: var(--ff-rust);
  color: var(--ff-white);
  padding: 16px 40px;
  border-radius: var(--ff-radius-sm);
  font-family: var(--ff-font-display);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-cta:hover {
  background-color: var(--ff-rust-dark);
  transform: translateY(-2px);
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer {
  background-color: var(--ff-forest-deep);
  padding: var(--ff-space-lg) var(--ff-space-md) var(--ff-space-md);
  border-top: 2px solid var(--ff-lime-alpha-15);
}

.footer-inner { max-width: var(--ff-max-width); margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 14px; }

.footer-brand p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--ff-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ff-lime);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.50);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: rgba(255, 255, 255, 0.85); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p { color: rgba(255, 255, 255, 0.30); font-size: 0.78rem; }

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  color: rgba(255, 255, 255, 0.30);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255, 255, 255, 0.65); }

@media (max-width: 700px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

/* =============================================================================
   SHORTCODE: Stats Bar (used via [fencefinder_stats])
   ============================================================================= */
.ff-stats-bar {
  background-color: var(--ff-forest);
  padding: 22px var(--ff-space-md);
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-radius: var(--ff-radius);
  margin: 20px 0;
}

.ff-stat { text-align: center; }

.ff-stat-num {
  font-family: var(--ff-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ff-lime);
  line-height: 1;
}

.ff-stat-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* =============================================================================
   PRINT
   ============================================================================= */
@media print {
  .site-header, .hero::after, .cta-section, .site-footer { display: none; }
  body { background: white; color: black; }
}

/* ── Per-location logo sizing ──────────────────────────────────── */
.logo-header .logo-img { height: 36px; width: auto; max-width: 200px; object-fit: contain; }
.logo-footer .logo-img { height: 30px; width: auto; max-width: 180px; object-fit: contain; }
