/* ==========================================================================
   SHAMBA BORA PLOTS LTD — css/style.css
   Design 2 · "Energetic mass-market land seller" · Ardhi Yako. Sasa Hivi.
   Mobile-first · Breakpoints: 640px / 768px / 1024px
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   01. Custom properties (design tokens)
   02. Reset & base
   03. Utilities (container, sections, sr-only, skip link)
   04. Buttons
   05. Badges, chips & progress bars
   06. Announcement bar + countdown
   07. Header & navigation
   08. Hero
   09. Trust strip + stats band
   10. Section headings
   11. Featured projects
   12. How it works (steps)
   13. Installment calculator
   14. Why Kenyans trust (checks)
   15. Gallery strip
   16. Testimonials carousel
   17. Counties chips
   18. FAQ accordion
   19. CTA band
   20. Footer
   21. Floating buttons (WhatsApp / back-to-top)
   22. Inner-page banner & breadcrumb
   23. Filter toolbar & plots grid (plots.html)
   24. Plot detail page (plot.html)
   25. Forms & validation
   26. About page (story, values, timeline, diaspora, team)
   27. Contact page
   28. Modal (site-visit booking)
   29. Toast
   30. Lightbox
   31. Sticky mobile action bar
   32. Reveal animations & keyframes
   33. Accessibility & reduced motion
   ========================================================================== */

/* ==========================================================================
   01. CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* Brand palette */
  --green-deep: #14532D;   /* primary dark bands, headings */
  --green:      #16A34A;   /* primary actions */
  --green-soft: #E8F5EC;   /* soft green tint for icon washes */
  --amber:      #F59E0B;   /* highlights, badges, CTA hover */
  --amber-dark: #D97706;   /* amber hover */
  --amber-soft: #FEF3E2;   /* amber tint background */
  --cream:      #FFFDF7;   /* page background */
  --tint:       #FBF6EA;   /* alternate section tint */
  --ink:        #1F2937;   /* body text */
  --muted:      #64748B;   /* secondary text */
  --line:       #E7E2D6;   /* hairline borders on cream */
  --white:      #FFFFFF;

  /* Type */
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Shape & elevation */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(20, 83, 45, 0.08);
  --shadow:    0 10px 30px rgba(20, 83, 45, 0.12);
  --shadow-lg: 0 22px 55px rgba(20, 83, 45, 0.20);

  /* Motion */
  --trans: 0.25s ease;

  /* Layout */
  --container: 1180px;
  --header-h: 72px;
}

/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;            /* hard guarantee: no horizontal overflow */
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
img,
iframe { object-fit: cover; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-deep);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--green-deep); }

ul, ol { list-style: none; }

s { color: var(--muted); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea { font-family: inherit; font-size: 1rem; }

/* Swahili flourish */
.sw { font-style: italic; color: var(--amber); }

/* ==========================================================================
   03. UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: 56px; }
.section-white { background: var(--white); }
.section-tint  { background: var(--tint); }
.section-green { background: var(--green-deep); }

/* Screen-reader-only helper */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  top: -60px; left: 12px;
  z-index: 4000;
  background: var(--green-deep);
  color: var(--white);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  transition: top var(--trans);
}
.skip-link:focus { top: 0; color: var(--white); }

/* ==========================================================================
   04. BUTTONS — chunky, rounded, soft shadows
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  padding: 14px 26px;
  border-radius: 12px;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans), box-shadow var(--trans),
              background var(--trans), color var(--trans), border-color var(--trans);
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-amber  { background: var(--amber); color: var(--green-deep); }
.btn-amber:hover { background: var(--amber-dark); color: var(--white); }

.btn-green  { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-deep); color: var(--white); }

.btn-deep   { background: var(--green-deep); color: var(--white); }
.btn-deep:hover { background: #0E3D21; color: var(--white); }

/* Outline on dark bands */
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.75); box-shadow: none; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }

/* Outline on light background */
.btn-outline-green { background: transparent; color: var(--green-deep); border-color: var(--green-deep); box-shadow: none; }
.btn-outline-green:hover { background: var(--green-deep); color: var(--white); }

.btn-ghost { background: var(--white); color: var(--green-deep); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-sm { padding: 10px 18px; font-size: 0.88rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* Round icon-only button (WhatsApp on cards) */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 1.25rem;
  transition: background var(--trans), color var(--trans), transform var(--trans);
  flex: 0 0 auto;
}
.btn-icon:hover { background: #25D366; color: var(--white); transform: translateY(-2px); }

/* ==========================================================================
   05. BADGES, CHIPS & PROGRESS BARS
   ========================================================================== */
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.badge-hot     { background: var(--amber); color: var(--green-deep); }
.badge-new     { background: var(--green); color: var(--white); }
.badge-premium { background: var(--green-deep); color: var(--white); border: 1px solid rgba(255,255,255,0.35); }

/* Title-status chip (Ready Title / Installments OK) */
.chip-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-deep);
  background: var(--green-soft);
  border: 1px solid rgba(22, 163, 74, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* Generic small chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-deep);
  box-shadow: var(--shadow-sm);
}
.chip i { color: var(--green); }

/* Progress bars (project cards) */
.progress {
  height: 10px;
  background: var(--green-soft);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--amber));
  transition: width 1.2s ease;
}

/* ==========================================================================
   06. ANNOUNCEMENT BAR + COUNTDOWN
   ========================================================================== */
.announce { background: var(--amber); color: var(--green-deep); }
.announce-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-block: 10px;
  text-align: center;
}
.announce-text {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
}
.announce-text i { margin-right: 6px; }

.countdown { display: inline-flex; gap: 6px; }
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--green-deep);
  color: var(--white);
  border-radius: 8px;
  padding: 4px 10px;
  min-width: 52px;
  line-height: 1.15;
}
.cd-unit b {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}
.cd-unit small {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
.cd-extended {
  font-family: var(--font-head);
  font-weight: 700;
  background: var(--green-deep);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 999px;
}

/* ==========================================================================
   07. HEADER & NAVIGATION — sticky, solid deep green
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green-deep);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  transition: box-shadow var(--trans);
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

/* Brand lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.brand:hover { color: var(--white); }
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--amber);
  color: var(--green-deep);
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.brand-text b { color: var(--amber); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 14px; }

/* Mobile: hidden link list + hamburger */
.nav-links {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--green-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
}
.nav-links.open { display: flex; }
.nav-links a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 10px;
  border-radius: 10px;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.nav-links a.active { color: var(--amber); }
.nav-cta-mobile { display: block; padding-top: 8px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.25rem;
  transition: background var(--trans);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.2); }

.nav-cta { display: none; }

/* ==========================================================================
   08. HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-block: 48px 64px;
  background:
    radial-gradient(620px 340px at 88% -10%, rgba(22, 163, 74, 0.10), transparent 65%),
    radial-gradient(520px 300px at -8% 110%, rgba(245, 158, 11, 0.12), transparent 60%),
    var(--cream);
  overflow: hidden;
}

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }

.kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.05rem, 5.4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.hl {
  color: var(--amber);
  white-space: nowrap;
  background: linear-gradient(transparent 68%, rgba(245, 158, 11, 0.28) 68%);
  border-radius: 4px;
  padding-inline: 2px;
}

.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 54ch; margin-bottom: 20px; }
.hero-sub b { color: var(--ink); }

.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }

.hero-note { font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note i { color: var(--green); }

/* Collage */
.hero-visual { position: relative; padding-bottom: 34px; }
.hero-img-main {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-img-small {
  position: absolute;
  top: -20px; right: 4px;
  width: 42%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 5px solid var(--white);
  box-shadow: var(--shadow);
}
.float-card {
  position: absolute;
  left: 10px; bottom: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 20px);
}
.float-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber-dark);
  font-size: 1.05rem;
  flex: 0 0 auto;
}
.float-card-title { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--green-deep); line-height: 1.3; }
.float-card-sub { font-size: 0.8rem; color: var(--muted); }
.float-badge {
  position: absolute;
  top: 24px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-deep);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.float-badge i { color: var(--amber); }

/* ==========================================================================
   09. TRUST STRIP + STATS BAND
   ========================================================================== */
.trust-strip { border-block: 1px solid var(--line); background: var(--white); padding-block: 30px; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.15rem;
  flex: 0 0 auto;
}
.trust-item h3 { font-size: 0.95rem; margin-bottom: 2px; }
.trust-item p { font-size: 0.8rem; color: var(--muted); margin: 0; }

.stats-band { background: var(--green-deep); color: var(--white); padding-block: 34px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  color: var(--amber);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.04em; }

/* ==========================================================================
   10. SECTION HEADINGS
   ========================================================================== */
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.light .section-title,
.section-head.light .section-sub { color: var(--white); }
.section-head.light .section-sub { color: rgba(255, 255, 255, 0.8); }
.section-head.light .eyebrow { color: var(--amber); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.55rem, 3.6vw, 2.25rem); font-weight: 800; margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 1rem; }

/* ==========================================================================
   11. FEATURED PROJECTS
   ========================================================================== */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.project-media img { width: 100%; height: 100%; transition: transform 0.6s ease; }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-media .badge { position: absolute; top: 14px; left: 14px; }
.project-media .tag-launch {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--green-deep);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 999px;
}

.project-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-loc { font-size: 0.82rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; margin: 0; }
.project-loc i { color: var(--amber); }
.project-body h3 { font-size: 1.15rem; }
.project-price { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.project-price b { font-family: var(--font-head); font-weight: 800; color: var(--green-deep); font-size: 1.12rem; }
.project-price span { font-size: 0.8rem; color: var(--muted); }

.progress-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
.progress-meta b { color: var(--green); }

.project-body .btn { margin-top: auto; }

/* ==========================================================================
   12. HOW IT WORKS — numbered steps with connecting line
   ========================================================================== */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 28px; position: relative; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--green-deep);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ==========================================================================
   13. INSTALLMENT CALCULATOR — deep green band, white card
   ========================================================================== */
.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.calc-field { margin-bottom: 22px; }
.calc-field > label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-deep);
  margin-bottom: 8px;
}
.calc-field output {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--amber-dark);
  font-size: 1rem;
}

.calc-select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
  transition: border-color var(--trans);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2314532D' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.calc-select:focus { border-color: var(--green); outline: none; }

/* Range slider */
.range-wrap { padding-top: 6px; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber) var(--fill, 50%), #E9E4D8 var(--fill, 50%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 5px solid var(--amber);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 5px solid var(--amber);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.range-scale { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); margin-top: 6px; }

/* Term pills */
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-group input { position: absolute; opacity: 0; pointer-events: none; }
.pill {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--green-deep);
  cursor: pointer;
  transition: all var(--trans);
}
.pill:hover { border-color: var(--green); }
.pill-group input:checked + .pill { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }
.pill-group input:focus-visible + .pill { outline: 3px solid rgba(22, 163, 74, 0.4); outline-offset: 2px; }

/* Results panel */
.calc-results {
  background: var(--green-deep);
  border-radius: var(--radius);
  color: var(--white);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}
.calc-row span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); }
.calc-row b {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.calc-row.main b { color: var(--amber); font-size: 1.55rem; }
.calc-total-note { font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); margin: -6px 0 0; }
.calc-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin-top: 4px;
}

/* ==========================================================================
   14. WHY KENYANS TRUST — check grid
   ========================================================================== */
.checks-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans), box-shadow var(--trans);
}
.check-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.check-item > i {
  color: var(--green);
  font-size: 1.3rem;
  margin-top: 3px;
  flex: 0 0 auto;
}
.check-item h3 { font-size: 0.98rem; margin-bottom: 4px; }
.check-item p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ==========================================================================
   15. GALLERY STRIP — "From the field"
   ========================================================================== */
.gallery-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.g-item img { width: 100%; height: 100%; aspect-ratio: 1 / 1; transition: transform 0.6s ease; }
.g-item:hover img { transform: scale(1.07); }
.g-caption {
  position: absolute;
  inset-inline: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(14, 40, 24, 0.88));
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 26px 12px 10px;
}

/* ==========================================================================
   16. TESTIMONIALS CAROUSEL
   ========================================================================== */
.testi-carousel {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px 24px 28px;
}
.testi-slide { display: none; }
.testi-slide.active { display: block; animation: fadeIn 0.5s ease; }

.testi-mark { color: var(--amber); font-size: 1.6rem; margin-bottom: 12px; }
.testi-quote { font-size: 1.02rem; color: var(--ink); margin-bottom: 20px; }
.testi-person { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
  border: 3px solid var(--green-soft);
}
.testi-name { font-family: var(--font-head); font-weight: 700; color: var(--green-deep); font-size: 0.95rem; }
.testi-role { font-size: 0.8rem; color: var(--muted); }

.testi-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--green-deep);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
  z-index: 2;
}
.testi-nav:hover { background: var(--green-deep); color: var(--white); }
.testi-nav.prev { left: -8px; }
.testi-nav.next { right: -8px; }

.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--line);
  transition: all var(--trans);
  padding: 0;
}
.dot.active { width: 26px; background: var(--green); }

/* ==========================================================================
   17. COUNTIES CHIPS
   ========================================================================== */
.county-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.county-chips .chip { font-size: 0.9rem; padding: 10px 20px; transition: all var(--trans); }
.county-chips .chip:hover { background: var(--green-deep); color: var(--white); border-color: var(--green-deep); }
.county-chips .chip:hover i { color: var(--amber); }

/* ==========================================================================
   18. FAQ ACCORDION
   ========================================================================== */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--green-deep);
  padding: 18px 20px;
  transition: background var(--trans);
}
.faq-q:hover { background: var(--green-soft); }
.faq-q i { color: var(--amber-dark); transition: transform var(--trans); flex: 0 0 auto; }
.faq-q[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { color: var(--muted); font-size: 0.92rem; padding-bottom: 18px; margin: 0; }

/* ==========================================================================
   19. CTA BAND — background image + green overlay
   ========================================================================== */
.cta-band {
  position: relative;
  background-size: cover;
  background-position: center;
  padding-block: 72px;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14, 61, 33, 0.94) 20%, rgba(20, 83, 45, 0.82) 60%, rgba(20, 83, 45, 0.55));
  z-index: -1;
}
.cta-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.cta-inner .section-title { color: var(--white); font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
.cta-inner p { color: rgba(255, 255, 255, 0.85); margin-bottom: 26px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ==========================================================================
   20. FOOTER
   ========================================================================== */
.site-footer { background: var(--green-deep); color: rgba(255, 255, 255, 0.82); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding-block: 54px 40px;
}
.f-brand .brand { margin-bottom: 14px; }
.f-brand p { font-size: 0.9rem; }
.f-tagline {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--amber);
  font-style: italic;
  margin-bottom: 14px !important;
}

.f-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--amber);
  display: inline-block;
}

.f-links li { margin-bottom: 10px; }
.f-links a { color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; }
.f-links a:hover { color: var(--amber); }

.f-contact li {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  margin-bottom: 12px;
  align-items: flex-start;
}
.f-contact i { color: var(--amber); margin-top: 4px; width: 16px; flex: 0 0 auto; }
.f-contact a { color: rgba(255, 255, 255, 0.82); }
.f-contact a:hover { color: var(--amber); }

.f-paybill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.6);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.84rem;
  margin-bottom: 16px;
}
.f-paybill b { color: var(--amber); }

.f-counties { font-size: 0.82rem; line-height: 1.9; }
.f-counties b { color: var(--white); }

.socials { display: flex; gap: 10px; margin-top: 16px; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1rem;
  transition: all var(--trans);
}
.social:hover { background: var(--amber); color: var(--green-deep); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-bottom .earb { display: block; margin-top: 4px; color: var(--amber); font-weight: 600; }

/* ==========================================================================
   21. FLOATING BUTTONS
   ========================================================================== */
.float-wa {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  font-size: 1.7rem;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform var(--trans), box-shadow var(--trans);
  animation: waPulse 2.6s infinite;
}
.float-wa:hover { transform: scale(1.1); color: var(--white); }

.float-top {
  position: fixed;
  right: 18px; bottom: 86px;
  z-index: 1500;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  font-size: 1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--trans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.float-top.show { opacity: 1; visibility: visible; transform: none; }
.float-top:hover { background: var(--amber); color: var(--green-deep); }

/* ==========================================================================
   22. INNER-PAGE BANNER & BREADCRUMB
   ========================================================================== */
.page-banner {
  position: relative;
  background:
    radial-gradient(560px 260px at 90% 0%, rgba(245, 158, 11, 0.22), transparent 60%),
    radial-gradient(420px 240px at 4% 100%, rgba(22, 163, 74, 0.35), transparent 65%),
    var(--green-deep);
  color: var(--white);
  padding-block: 46px;
}
.breadcrumb { font-size: 0.8rem; color: rgba(255, 255, 255, 0.72); margin-bottom: 12px; }
.breadcrumb a { color: var(--amber); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: 0.6rem; margin-inline: 6px; }
.banner-title { color: var(--white); font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 800; margin-bottom: 8px; }
.banner-sub { color: rgba(255, 255, 255, 0.82); max-width: 62ch; margin: 0; }
.banner-kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

/* ==========================================================================
   23. FILTER TOOLBAR & PLOTS GRID
   ========================================================================== */
.filters { margin-top: -26px; position: relative; z-index: 5; }
.filter-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.filter-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.filter-group select {
  width: 100%;
  padding: 11px 38px 11px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2314532D' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color var(--trans);
}
.filter-group select:focus { border-color: var(--green); outline: none; }
.filter-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.filter-count { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Cards grid */
.plots-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 34px; }

.plot-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans);
  animation: cardIn 0.5s ease both;
}
.plot-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.plot-media { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; }
.plot-media img { width: 100%; height: 100%; transition: transform 0.6s ease; }
.plot-card:hover .plot-media img { transform: scale(1.07); }
.plot-media .badge { position: absolute; top: 12px; left: 12px; }
.plot-media .price-tag {
  position: absolute;
  right: 12px; bottom: 12px;
  background: rgba(20, 83, 45, 0.92);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
}

.plot-body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plot-loc { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 6px; }
.plot-loc i { color: var(--amber); }
.plot-name { font-size: 1.12rem; font-weight: 700; }
.plot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plot-size { font-size: 0.8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.plot-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 0 0; }
.plot-price b { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--green-deep); }
.price-old { font-size: 0.85rem; }
.plot-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; }
.plot-actions .btn { flex: 1; }

/* Empty state */
.plots-empty {
  text-align: center;
  background: var(--white);
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 54px 24px;
  margin-top: 34px;
}
.plots-empty i { font-size: 2.4rem; color: var(--amber); margin-bottom: 14px; }
.plots-empty h3 { font-size: 1.2rem; margin-bottom: 8px; }
.plots-empty p { color: var(--muted); max-width: 46ch; margin-inline: auto; }

.load-more-wrap { text-align: center; margin-top: 34px; }

/* ==========================================================================
   24. PLOT DETAIL PAGE
   ========================================================================== */
.detail-top { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; }

/* Gallery + lightbox trigger */
.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-main img { width: 100%; aspect-ratio: 16 / 10.5; cursor: zoom-in; }
.g-zoom {
  position: absolute;
  right: 14px; bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 83, 45, 0.92);
  color: var(--white);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background var(--trans);
}
.g-zoom:hover { background: var(--amber); color: var(--green-deep); }

.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.g-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 3px solid transparent;
  padding: 0;
  transition: border-color var(--trans), transform var(--trans);
  background: none;
}
.g-thumb img { width: 100%; aspect-ratio: 4 / 3; }
.g-thumb:hover { transform: translateY(-3px); }
.g-thumb.active { border-color: var(--amber); }

/* Price card (sticky on desktop) */
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 22px;
}
.price-card .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.price-now { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--green-deep); line-height: 1.15; }
.price-old { font-size: 1rem; margin-left: 8px; }
.install-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--ink);
  margin: 14px 0 18px;
}
.install-note i { color: var(--amber-dark); margin-top: 3px; }
.install-note b { font-family: var(--font-head); }
.price-actions { display: grid; gap: 10px; }
.price-card .mini-note { font-size: 0.78rem; color: var(--muted); margin-top: 14px; display: flex; gap: 8px; }
.price-card .mini-note i { color: var(--green); margin-top: 2px; }

/* Feature checklist */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
.feature-check {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.feature-check i { color: var(--green); font-size: 1.05rem; }

/* Map */
.map-embed {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Documents timeline */
.docs-steps { display: grid; grid-template-columns: 1fr; gap: 18px; counter-reset: doc; }
.doc-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.doc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--amber);
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 12px;
}
.doc-step h3 { font-size: 0.98rem; margin-bottom: 6px; }
.doc-step p { font-size: 0.84rem; color: var(--muted); margin: 0; }

/* Installment mini-table */
.inst-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.inst-table th, .inst-table td { padding: 14px 18px; text-align: left; font-size: 0.92rem; }
.inst-table thead th { background: var(--green-deep); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
.inst-table tbody tr + tr { border-top: 1px solid var(--line); }
.inst-table td:last-child, .inst-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.inst-table td b { font-family: var(--font-head); color: var(--green-deep); }
.inst-table tr.total td { background: var(--amber-soft); font-weight: 700; }
.inst-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* Similar plots */
.similar-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

/* ==========================================================================
   25. FORMS & VALIDATION
   ========================================================================== */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 22px;
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.form-field label .req { color: var(--amber-dark); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}
.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea { border-color: #DC2626; }
.field-error { display: none; color: #DC2626; font-size: 0.76rem; font-weight: 600; margin-top: 5px; }
.form-field.is-invalid .field-error { display: block; }
.form-note { font-size: 0.78rem; color: var(--muted); }
.form-foot { display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================================
   26. ABOUT PAGE
   ========================================================================== */
.story-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.story-visual { position: relative; padding-bottom: 30px; }
.story-img-main { width: 100%; aspect-ratio: 16 / 11; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.story-img-small {
  position: absolute;
  right: 6px; bottom: 0;
  width: 44%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 5px solid var(--white);
  box-shadow: var(--shadow);
}
.story-badge {
  position: absolute;
  top: -16px; left: 10px;
  background: var(--amber);
  color: var(--green-deep);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.mission-quote {
  border-left: 4px solid var(--amber);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--green-deep);
  margin: 18px 0;
}
.mission-quote span { color: var(--amber); }

.values-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans), box-shadow var(--trans);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.value-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.value-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* Milestones timeline */
.timeline { position: relative; max-width: 720px; margin-inline: auto; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(var(--green), var(--amber));
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 5px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--white);
  border: 5px solid var(--green);
  box-shadow: var(--shadow-sm);
}
.timeline-item:last-child::before { border-color: var(--amber); }
.tl-year {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--amber-dark);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.timeline-item h3 { font-size: 1.05rem; margin: 4px 0 4px; }
.timeline-item p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* Diaspora band */
.diaspora-grid { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
.d-list { display: grid; gap: 14px; margin-top: 20px; }
.d-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 15px 16px;
  transition: background var(--trans);
}
.d-item:hover { background: rgba(255, 255, 255, 0.13); }
.d-item i {
  color: var(--amber);
  font-size: 1.15rem;
  margin-top: 3px;
  flex: 0 0 auto;
}
.d-item h3 { color: var(--white); font-size: 0.98rem; margin-bottom: 3px; }
.d-item p { color: rgba(255, 255, 255, 0.78); font-size: 0.84rem; margin: 0; }
.diaspora-img { position: relative; }
.diaspora-img img { width: 100%; aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); border: 4px solid rgba(255,255,255,0.2); box-shadow: var(--shadow-lg); }
.diaspora-chip {
  position: absolute;
  bottom: -16px; left: 14px;
  background: var(--white);
  color: var(--green-deep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 12px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}
.diaspora-chip i { color: var(--amber-dark); }

/* Team */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans), box-shadow var(--trans);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  border: 4px solid var(--green-soft);
  margin-bottom: 14px;
}
.team-card h3 { font-size: 1rem; }
.team-role { font-size: 0.8rem; font-weight: 600; color: var(--amber-dark); margin-bottom: 8px; }
.team-bio { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* ==========================================================================
   27. CONTACT PAGE
   ========================================================================== */
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans), box-shadow var(--trans);
  display: block;
  color: var(--ink);
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--ink); }
.cc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.3rem;
  margin-bottom: 12px;
  transition: all var(--trans);
}
.contact-card:hover .cc-icon { background: var(--green-deep); color: var(--amber); }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card b { display: block; font-size: 0.92rem; color: var(--green-deep); margin-bottom: 4px; word-break: break-word; }
.contact-card p { font-size: 0.8rem; color: var(--muted); margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; }

.offices { display: grid; gap: 18px; }
.office-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.office-card .cc-icon { margin-bottom: 0; flex: 0 0 auto; }
.office-card h3 { font-size: 1rem; margin-bottom: 6px; }
.office-card p { font-size: 0.86rem; color: var(--muted); margin: 0 0 4px; }
.office-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-dark);
  background: var(--amber-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 8px;
}

/* ==========================================================================
   28. MODAL — site-visit booking
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 2600; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
}
.modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 24px;
  animation: modalIn 0.32s ease;
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
  z-index: 2;
}
.modal-close:hover { background: var(--green-deep); color: var(--white); }
.modal-card h3 { font-size: 1.3rem; margin-bottom: 6px; padding-right: 44px; }
.modal-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }
body.modal-open { overflow: hidden; }

/* ==========================================================================
   29. TOAST
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 140%);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green-deep);
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 15px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  max-width: min(92vw, 520px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast i { color: var(--amber); font-size: 1.2rem; flex: 0 0 auto; }

/* ==========================================================================
   30. LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2800;
  background: rgba(10, 25, 16, 0.94);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-img {
  max-width: min(92vw, 1080px);
  max-height: 78vh;
  width: auto; height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lb-caption { color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; text-align: center; margin-top: 14px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--amber); color: var(--green-deep); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-stage { display: flex; flex-direction: column; align-items: center; max-width: 100%; }

/* ==========================================================================
   31. STICKY MOBILE ACTION BAR (plots.html & plot.html, < 768px)
   ========================================================================== */
.mobile-action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1600;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 1px;
  background: var(--green-deep);
  border-top: 3px solid var(--amber);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}
.mab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--white);
  text-align: center;
  transition: background var(--trans);
}
.mab-btn i { font-size: 1.05rem; }
.mab-call:hover, .mab-visit:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.mab-wa { background: #1DA851; }
.mab-wa:hover { background: #25D366; color: var(--white); }
.mab-visit { background: var(--amber); color: var(--green-deep); }
.mab-visit:hover { background: var(--amber-dark); color: var(--white); }

/* ==========================================================================
   32. REVEAL ANIMATIONS & KEYFRAMES
   ========================================================================== */
/* Reveal states are only applied when JS is running (html.js guard added
   by js/main.js) — without JavaScript all content stays fully visible. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in-view { opacity: 1; transform: none; }
html.js .reveal-d1 { transition-delay: 0.08s; }
html.js .reveal-d2 { transition-delay: 0.16s; }
html.js .reveal-d3 { transition-delay: 0.24s; }
html.js .reveal-d4 { transition-delay: 0.32s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   33. ACCESSIBILITY & REDUCED MOTION
   ========================================================================== */
:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}
.site-header :focus-visible,
.announce :focus-visible,
.site-footer :focus-visible,
.cta-band :focus-visible,
.page-banner :focus-visible,
.mobile-action-bar :focus-visible {
  outline-color: var(--amber);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .float-wa { animation: none; }
}

/* ==========================================================================
   RESPONSIVE UPGRADES
   — base styles above are mobile-first; below we scale up
   ========================================================================== */

/* -------- ≥ 480px: small phones / large phones landscape -------- */
@media (min-width: 480px) {
  .form-foot { flex-direction: row; align-items: center; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
}

/* -------- ≥ 640px: large phones / small tablets -------- */
@media (min-width: 640px) {
  .section { padding-block: 64px; }
  .announce-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .announce-text { font-size: 0.9rem; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }

  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .plots-grid { grid-template-columns: repeat(2, 1fr); }
  .similar-grid { grid-template-columns: repeat(2, 1fr); }
  .checks-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-steps { grid-template-columns: repeat(2, 1fr); }

  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .span-2 { grid-column: span 2; }

  .filter-card { grid-template-columns: repeat(2, 1fr); }
  .filter-foot { grid-column: span 2; }

  .gallery-strip { grid-template-columns: repeat(4, 1fr); }
  .g-item img { aspect-ratio: 1 / 1.15; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }

  .testi-carousel { padding: 40px 44px 30px; }

  .calc-card { padding: 34px 30px; }
}

/* -------- ≥ 768px: tablets -------- */
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .filter-card { grid-template-columns: repeat(3, 1fr); }
  .filter-foot { grid-column: span 3; }

  .contact-grid { grid-template-columns: 1.25fr 1fr; }
  .diaspora-grid { grid-template-columns: 1.15fr 1fr; }

  .mobile-action-bar { display: none; } /* desktop/tablet: hidden */
}

/* -------- ≥ 1024px: desktop -------- */
@media (min-width: 1024px) {
  :root { --header-h: 78px; }

  .section { padding-block: 84px; }

  /* Desktop nav */
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }
  .nav-links a { padding: 10px 16px; font-size: 0.95rem; }
  .nav-cta-mobile { display: none; }
  .nav-toggle { display: none; }
  .nav-cta { display: inline-flex; }

  /* Hero split */
  .hero { padding-block: 76px 96px; }
  .hero-grid { grid-template-columns: 1.06fr 1fr; gap: 56px; }
  .hero-visual { padding-bottom: 0; }
  .hero-img-main { aspect-ratio: 4 / 3.4; }
  .float-card { left: -26px; bottom: 34px; }
  .hero-img-small { top: -26px; right: -18px; width: 40%; }

  /* Trust strip */
  .trust-grid { grid-template-columns: repeat(4, 1fr); }

  /* Projects & plots */
  .projects-grid { grid-template-columns: repeat(4, 1fr); }
  .plots-grid { grid-template-columns: repeat(3, 1fr); }
  .similar-grid { grid-template-columns: repeat(3, 1fr); }

  /* Steps with connecting line */
  .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 26px; }
  .steps-grid::before {
    content: "";
    position: absolute;
    top: 48px;
    left: 8%; right: 8%;
    height: 3px;
    border-radius: 999px;
    background: repeating-linear-gradient(90deg, var(--amber) 0 12px, transparent 12px 22px);
    z-index: 0;
  }
  .step { z-index: 1; }

  /* Calculator */
  .calc-card { grid-template-columns: 1.15fr 1fr; padding: 40px; gap: 40px; }

  /* Checks */
  .checks-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-steps { grid-template-columns: repeat(4, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; }

  /* Filters */
  .filter-card { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
  .filter-foot { grid-column: 1 / -1; margin-top: 2px; }
  .filter-count { white-space: nowrap; }

  /* Detail page split */
  .detail-top { grid-template-columns: 1.45fr 1fr; gap: 40px; }
  .price-card { position: sticky; top: calc(var(--header-h) + 20px); }

  .story-grid { grid-template-columns: 1fr 1.1fr; }

  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-cards { grid-template-columns: repeat(4, 1fr); }

  .toast { left: auto; right: 26px; transform: translate(0, 140%); }
  .toast.show { transform: translate(0, 0); }
}

/* -------- < 768px: pages with sticky action bar need bottom padding -------- */
@media (max-width: 767px) {
  body.has-actionbar { padding-bottom: 74px; }
  body.has-actionbar .float-wa { bottom: 88px; }
  body.has-actionbar .float-top { bottom: 156px; }
  body.has-actionbar .toast { bottom: 92px; }
}

/* -------- Extra safety at very narrow widths (360px and below) -------- */
@media (max-width: 374px) {
  .container { padding-inline: 14px; }
  .btn { padding-inline: 18px; }
  .cd-unit { min-width: 46px; padding-inline: 7px; }
  .float-card { padding: 10px 14px; }
  .testi-nav.prev { left: 4px; }
  .testi-nav.next { right: 4px; }
  .team-grid { grid-template-columns: 1fr; }
}
