/* ==========================================================================
   Development Frontiers — Global styles
   Built for an Elementor rebuild: every layout is a flex container.
   Elementor mapping notes appear as comments beside each section.
   ========================================================================== */

/* ---------- Design tokens (Elementor: Site Settings > Global Colors/Fonts) ---------- */
:root {
  --green-950: #0B2217;   /* Ink / dark sections */
  --green-900: #10301F;
  --green-700: #1A6B45;   /* Deep green (primary) */
  --green-600: #219E5C;   /* Logo emerald */
  --lime-500: #95D839;    /* Light green (accent) */
  --lime-600: #7FBF26;
  --lime-100: #EEF8DF;
  --sand-50:  #FBF8F2;
  --sand-100: #F5F0E6;
  --sand-200: #EAE1CF;
  --text:     #10261A;
  --muted:    #4F6157;
  --white:    #FFFFFF;
  --dfwc:     #E8922E;    /* DFWC brand orange */

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --shadow:    0 18px 50px -20px rgba(11, 34, 23, .28);
  --container: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* The browser's own [hidden] rule loses to any class that sets display (e.g. .form { display: flex }),
   so enforce it: anything marked hidden is never shown */
[hidden] { display: none !important; }
a { color: var(--green-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-600); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.015em; }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--lime-500); color: var(--text); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--lime-500); outline-offset: 3px; }

/* ---------- Layout primitives (Elementor: Container, Flexbox direction/gap) ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: 112px; }
.section-sm { padding-block: 72px; }
.row { display: flex; flex-wrap: wrap; gap: 32px; }
.row-center { align-items: center; }
.row-lg { gap: 64px; }
.col { flex: 1 1 0; min-width: 0; }
/* Bases leave room for gaps up to 72px; flex-grow fills the remainder */
.col-40 { flex: 1 1 calc(40% - 48px); min-width: 280px; }
.col-50 { flex: 1 1 calc(50% - 48px); min-width: 300px; }
.col-60 { flex: 1.5 1 calc(60% - 48px); min-width: 300px; }
.stack { display: flex; flex-direction: column; }
.center { text-align: center; }

.bg-sand  { background: var(--sand-100); }
.bg-sand-light { background: var(--sand-50); }
.bg-dark  { background: var(--green-950); color: #CFE0D5; }
.bg-green { background: var(--green-700); color: #E3F1E8; }
.bg-lime  { background: var(--lime-500); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4,
.bg-green h1, .bg-green h2, .bg-green h3, .bg-green h4 { color: var(--white); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--lime-500); }
.bg-dark .eyebrow, .bg-green .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--lime-500); }

.hl {
  background-image: linear-gradient(transparent 62%, rgba(149, 216, 57, .85) 62%, rgba(149, 216, 57, .85) 92%, transparent 92%);
  padding-inline: .06em;
}
.hl-text { color: var(--lime-500); }
.lead { font-size: 1.2rem; line-height: 1.65; color: var(--muted); }
.bg-dark .lead, .bg-green .lead { color: #BFD6C8; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Buttons (Elementor: Button widget) ---------- */
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 18px 28px; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  text-align: center;
}
.btn i { font-size: .9em; transition: transform .2s; }
.btn:hover i { transform: translateX(4px); }
.btn-primary { background: var(--lime-500); color: var(--green-950); }
.btn-primary:hover { background: var(--white); color: var(--green-950); }
.btn-dark { background: var(--green-700); color: var(--white); }
.btn-dark:hover { background: var(--green-950); color: var(--white); }
.btn-outline { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--green-950); border-color: var(--white); }
.btn-outline-dark { border-color: var(--green-700); color: var(--green-700); }
.btn-outline-dark:hover { background: var(--green-700); color: var(--white); }
.btn-sm { padding: 13px 20px; font-size: .92rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--green-700);
}
.link-arrow i { transition: transform .2s; font-size: .85em; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Header / Nav (Elementor: Header template, Nav Menu widget) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(16, 38, 26, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; line-height: 1.05; letter-spacing: -0.02em; }
.brand-name span { display: block; color: var(--green-600); }

.main-nav { display: flex; align-items: center; gap: 36px; }
.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-menu a {
  position: relative; color: var(--text); font-weight: 500; font-size: .98rem; padding-block: 8px;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; border-radius: 3px;
  background: var(--lime-500); transition: width .25s;
}
.nav-menu a:hover::after, .nav-menu a[aria-current="page"]::after { width: 100%; }
.nav-menu a[aria-current="page"] { color: var(--green-700); font-weight: 600; }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--green-700); color: var(--white); font-size: 1.2rem; cursor: pointer;
}

/* ---------- Home hero slider (Elementor: Slides widget, or Image Carousel) ---------- */
.hero { position: relative; background: var(--green-950); color: var(--white); overflow: hidden; }
.hero-viewport { overflow: hidden; }
.hero-track {
  display: flex; flex-wrap: nowrap;
  transition: transform .85s cubic-bezier(.62, .02, .28, 1);
  will-change: transform;
  backface-visibility: hidden;
}
.hero-slide {
  flex: 0 0 100%; max-width: 100%;
  position: relative;
  display: flex; align-items: flex-end;
  min-height: calc(100vh - 84px);
  min-height: min(calc(100svh - 84px), 860px);
  background-color: var(--green-950);
  padding-block: 120px 160px; /* bottom padding clears the controls bar */
  overflow: hidden;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11,34,23,.92) 0%, rgba(11,34,23,.72) 45%, rgba(11,34,23,.15) 100%),
              linear-gradient(0deg, rgba(11,34,23,.7) 0%, transparent 45%);
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-content { max-width: 820px; }
.hero h1, .hero .h1-style { color: var(--white); margin-bottom: 24px; }
/* Slides 2 and 3 use h2 so the page keeps a single h1, styled to match */
.h1-style { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 800; letter-spacing: -0.035em; }
.hero .lead { color: #D6E6DC; max-width: 600px; font-size: 1.25rem; }

/* Slide text rises in when its slide becomes active.
   A keyframe animation (not a transition) is used so the text always ENDS visible —
   if a browser pauses rendering, nothing is left stuck at opacity 0. */
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero-slide.is-active .hero-content { animation: heroTextIn .9s cubic-bezier(.22, .61, .36, 1) .12s; }
/* Slow drift on the active slide's photo */
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-position: center 45%; background-size: cover; background-repeat: no-repeat;
  will-change: transform;
}
.hero-slide.is-active .hero-bg { animation: heroZoom 7s ease-out both; }

/* Controls */
.hero-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 26px 28px;
  border-top: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(0deg, rgba(11,34,23,.75), transparent);
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.hero-meta-item { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: #D6E6DC; }
.hero-meta-item i { color: var(--lime-500); }
.hero-nav { display: flex; align-items: center; gap: 14px; }
.hero-dots { display: flex; align-items: center; gap: 10px; }
.hero-dot {
  width: 34px; height: 5px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(255,255,255,.35); transition: background .25s, width .25s;
}
.hero-dot[aria-current="true"] { background: var(--lime-500); width: 52px; }
.hero-arrow {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28);
  color: var(--white); font-size: .95rem; transition: background .2s, color .2s, border-color .2s;
}
.hero-arrow:hover { background: var(--lime-500); border-color: var(--lime-500); color: var(--green-950); }

/* Laptops and short desktop screens: keep the whole slide above the fold */
@media (min-width: 768px) and (max-height: 940px) {
  .hero-slide { padding-block: 80px 126px; }
  .hero h1, .hero .h1-style { font-size: clamp(2.2rem, 4.4vw, 3.5rem); margin-bottom: 18px; }
  .hero .lead { font-size: 1.1rem; max-width: 560px; }
  .hero .btn-group { margin-top: 26px; }
  .hero-controls { padding-block: 16px 18px; }
  .hero-arrow { width: 40px; height: 40px; }
}
/* Very short landscape screens: drop the credentials bar so buttons never collide with it */
@media (min-width: 768px) and (max-height: 820px) {
  .hero-meta { display: none; }
  .hero-controls { justify-content: flex-end; border-top: 0; background: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-track { transition: none; }
  .hero-slide.is-active .hero-content { animation: none; }
  .hero-slide.is-active .hero-bg { animation: none; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  background-color: var(--green-950);
  background-position: center; background-size: cover; background-repeat: no-repeat;
  color: var(--white);
  padding-block: 150px 90px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,34,23,.94) 0%, rgba(11,34,23,.7) 55%, rgba(11,34,23,.35) 100%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(2.5rem, 5.4vw, 4.6rem); max-width: 900px; }
.page-hero .lead { color: #D6E6DC; max-width: 640px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; font-size: .9rem; margin-bottom: 26px; color: #A9C4B3; }
.breadcrumb a { color: var(--white); }
.breadcrumb a:hover { color: var(--lime-500); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--lime-500); }
.jump-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.jump-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 100px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); font-size: .92rem; font-weight: 500;
}
.jump-links a i { color: var(--lime-500); }
.jump-links a:hover { background: var(--lime-500); color: var(--green-950); border-color: var(--lime-500); }
.jump-links a:hover i { color: var(--green-950); }

/* ---------- Image treatments (Elementor: Image widget + border radius + box shadow) ---------- */
.img-frame { position: relative; }
.img-frame img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; }
.img-accent img { box-shadow: 22px 22px 0 var(--lime-500); }
.img-tall img { aspect-ratio: 4 / 5; }
.img-wide img { aspect-ratio: 4 / 3; }
.img-badge {
  position: absolute; left: -18px; bottom: 36px;
  display: flex; align-items: center; gap: 14px;
  background: var(--green-950); color: var(--white);
  padding: 18px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.img-badge strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--lime-500); }
.img-badge span { font-size: .85rem; line-height: 1.35; color: #CFE0D5; }

/* ---------- Checklist (Elementor: Icon List widget) ---------- */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 24px 0 0; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list i {
  flex: 0 0 26px; height: 26px; margin-top: 2px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime-100); color: var(--green-700); font-size: .72rem;
}
.bg-dark .check-list i, .bg-green .check-list i { background: rgba(149,216,57,.18); color: var(--lime-500); }

/* ---------- Stats (Elementor: Counter widget) ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 0; }
.stat {
  flex: 1 1 200px; padding: 12px 32px;
  border-left: 1px solid rgba(255,255,255,.14);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-number {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1; color: var(--lime-500);
}
.stat-label { margin-top: 12px; font-size: .98rem; color: #CFE0D5; max-width: 200px; line-height: 1.45; }
.bg-sand .stat { border-left-color: var(--sand-200); }
.bg-sand .stat-number { color: var(--green-700); }
.bg-sand .stat-label { color: var(--muted); }

/* ---------- Cards (Elementor: Icon Box widget inside a Container) ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  flex: 1 1 calc(33.333% - 24px); min-width: 260px;
  background: var(--white); border-radius: var(--radius);
  padding: 36px 32px; border: 1px solid rgba(16,38,26,.08);
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); font-size: .98rem; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.cards-4 .card { flex-basis: calc(25% - 24px); min-width: 200px; padding: 32px 26px; }
.cards-2 .card { flex-basis: calc(50% - 24px); min-width: 280px; }

.icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime-100); color: var(--green-700); font-size: 1.55rem;
  margin-bottom: 24px; transition: background .3s, color .3s;
}
.card:hover .icon { background: var(--lime-500); color: var(--green-950); }
.icon-sm { width: 52px; height: 52px; border-radius: 14px; font-size: 1.25rem; margin-bottom: 18px; }

/* Service cards — first card featured */
.card-feature { background: var(--green-700); border-color: var(--green-700); }
.card-feature h3 { color: var(--white); }
.card-feature p { color: #CDE3D5; }
.card-feature .icon { background: var(--lime-500); color: var(--green-950); }
.card-feature .link-arrow { color: var(--lime-500); }

.card-num { font-family: var(--font-head); font-size: .9rem; font-weight: 700; color: var(--green-600); margin-bottom: 6px; letter-spacing: .04em; }
.card-feature .card-num { color: var(--lime-500); }

/* Dark variant cards */
.card-dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.card-dark p { color: #B8CFC0; }
.card-dark .icon { background: rgba(149,216,57,.14); color: var(--lime-500); }
.card-dark:hover { background: rgba(255,255,255,.07); box-shadow: none; }

/* ---------- Why DF (split with image) ---------- */
.why-list { display: flex; flex-direction: column; gap: 28px; }
.why-item { display: flex; gap: 22px; align-items: flex-start; }
.why-item .icon { flex: 0 0 56px; width: 56px; height: 56px; margin: 0; font-size: 1.3rem; }
.why-item h3 { font-size: 1.25rem; margin-bottom: 6px; }
.why-item p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- DF Family (sub-organisations) ---------- */
.family { position: relative; overflow: hidden; }
.family-umbrella {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 780px; margin: 0 auto 64px;
}
.family-umbrella img {
  width: 108px; height: 108px; border-radius: 50%;
  border: 6px solid rgba(149,216,57,.35); margin-bottom: 28px;
}
.family-connector { display: flex; justify-content: center; margin: -36px 0 28px; }
.family-connector span { width: 2px; height: 48px; background: linear-gradient(var(--lime-500), transparent); }
.org-cards { display: flex; flex-wrap: wrap; gap: 28px; }
.org-card {
  flex: 1 1 calc(50% - 28px); min-width: 290px;
  background: var(--white); color: var(--text);
  border-radius: var(--radius-lg); padding: 44px 40px;
  display: flex; flex-direction: column; gap: 18px;
  border-top: 6px solid var(--lime-500);
  transition: transform .3s;
}
.org-card:hover { transform: translateY(-6px); }
.org-card h3 { color: var(--text); margin: 0; }
.org-card p { color: var(--muted); margin: 0; }
.org-card.dfwc { border-top-color: var(--dfwc); }
.org-logo { height: 76px; display: flex; align-items: center; }
.org-logo img { max-height: 76px; width: auto; }
.org-mark {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; line-height: 1.05; color: var(--green-700); letter-spacing: -0.02em;
}
.org-mark i {
  width: 66px; height: 66px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime-500); color: var(--green-950); font-size: 1.6rem;
}
.org-tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 100px; background: var(--lime-100); color: var(--green-700);
}
.org-card .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Project cards ---------- */
.project-cards { display: flex; flex-wrap: wrap; gap: 28px; }
.project-card {
  flex: 1 1 calc(33.333% - 28px); min-width: 280px;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid rgba(16,38,26,.08);
  transition: transform .3s, box-shadow .3s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card .project-img { overflow: hidden; }
.project-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s; }
.project-card:hover img { transform: scale(1.05); }
.project-body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-body h3 { font-size: 1.3rem; margin: 0; }
.project-body p { color: var(--muted); font-size: .96rem; margin: 0; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 100px; background: var(--lime-100); color: var(--green-700);
}
.tag-status { background: var(--sand-100); color: var(--muted); }
.tag-status.ongoing { background: var(--green-700); color: var(--white); }
.project-foot {
  display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px;
  border-top: 1px solid rgba(16,38,26,.08); font-size: .9rem; color: var(--muted);
}
.project-foot i { color: var(--green-600); }

/* ---------- Service detail rows (What We Do) ---------- */
.service-row { display: flex; flex-wrap: wrap; align-items: center; gap: 72px; }
.service-row.reverse { flex-direction: row-reverse; }
.service-row + .service-row { margin-top: 0; }
.service-num {
  font-family: var(--font-head); font-weight: 800; font-size: 5.5rem; line-height: .8;
  color: transparent; -webkit-text-stroke: 2px var(--lime-500); margin-bottom: 18px; letter-spacing: -0.04em;
}
.service-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.service-title .icon { margin: 0; }
.service-title h2 { margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }

/* ---------- Timeline (About) ---------- */
.timeline { display: flex; flex-wrap: wrap; gap: 24px; }
.timeline-step {
  flex: 1 1 calc(25% - 24px); min-width: 220px;
  padding-top: 28px; border-top: 3px solid rgba(255,255,255,.15); position: relative;
}
.timeline-step::before {
  content: ""; position: absolute; top: -9px; left: 0;
  width: 15px; height: 15px; border-radius: 50%; background: var(--lime-500);
  box-shadow: 0 0 0 6px rgba(149,216,57,.2);
}
.timeline-year { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--lime-500); line-height: 1; margin-bottom: 12px; }
.timeline-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.timeline-step p { font-size: .95rem; color: #B8CFC0; margin: 0; }

/* ---------- Vision / Mission ---------- */
.vm-card {
  flex: 1 1 calc(50% - 32px); min-width: 290px;
  padding: 48px 44px; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 10px;
}
.vm-card p { font-family: var(--font-head); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.35; letter-spacing: -0.015em; margin: 0; font-weight: 500; }
.vm-card.vision { background: var(--green-700); color: var(--white); }
.vm-card.vision .eyebrow { color: var(--lime-500); }
.vm-card.mission { background: var(--lime-500); color: var(--green-950); }
.vm-card.mission .eyebrow { color: var(--green-950); }
.vm-card.mission .eyebrow::before { background: var(--green-950); }

/* ---------- Accordion (Elementor: Accordion widget) ---------- */
.accordion { display: flex; flex-direction: column; gap: 14px; }
.accordion details {
  background: var(--white); border-radius: var(--radius); border: 1px solid rgba(16,38,26,.08);
  overflow: hidden;
}
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 28px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; flex: 0 0 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime-100); color: var(--green-700); font-size: 1.4rem; font-weight: 500;
  transition: transform .25s, background .25s;
}
.accordion details[open] summary::after { transform: rotate(45deg); background: var(--lime-500); color: var(--green-950); }
.accordion .acc-body { padding: 0 28px 26px; color: var(--muted); }
.accordion .acc-body p:last-child { margin: 0; }

/* ---------- Team (Elementor: Image Box / Team member container) ---------- */
.team { display: flex; flex-wrap: wrap; gap: 28px; }
.team-card { flex: 1 1 calc(25% - 28px); min-width: 200px; display: flex; flex-direction: column; }
.team-photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; background: var(--sand-200); }
.team-photo img { width: 100%; aspect-ratio: 1 / 1.06; object-fit: cover; transition: transform .6s; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.team-role { color: var(--green-600); font-weight: 600; font-size: .95rem; }

/* ---------- Partners (Elementor: Image Carousel or Container of Images) ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; }
.partner {
  flex: 0 1 240px; height: 130px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border-radius: var(--radius); padding: 20px 28px;
  border: 1px solid rgba(16,38,26,.08);
}
.partner img { max-height: 90px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.partner:hover img { filter: none; opacity: 1; }

/* ---------- Gallery (Elementor: Gallery widget) ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: 16px; }
.gallery figure { margin: 0; flex: 1 1 calc(33.333% - 16px); min-width: 240px; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery figure.wide { flex-basis: calc(50% - 16px); }
.gallery img { width: 100%; height: 320px; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-size: .82rem; color: var(--white); background: rgba(11,34,23,.75);
  padding: 8px 12px; border-radius: 8px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gallery figcaption { opacity: 1; transform: none; } }

/* ---------- CTA band ---------- */
.cta {
  background: var(--lime-500);
  border-radius: var(--radius-lg);
  padding: 80px 64px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px;
}
.cta h2 { margin: 0 0 12px; color: var(--green-950); max-width: 700px; }
.cta p { margin: 0; color: var(--green-900); font-size: 1.12rem; max-width: 600px; }
.cta .btn-group { margin: 0; }
.cta .btn-dark:hover { background: var(--white); color: var(--green-950); }
.cta-wrap { padding-block: 0 112px; }

/* ---------- Contact ---------- */
.contact-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.contact-card {
  flex: 1 1 calc(33.333% - 20px); min-width: 250px;
  background: var(--white); border-radius: var(--radius); padding: 30px 28px;
  border: 1px solid rgba(16,38,26,.08); display: flex; flex-direction: column; gap: 4px;
}
.contact-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.contact-card a, .contact-card p { color: var(--text); margin: 0; font-size: .98rem; }
.contact-card a:hover { color: var(--green-600); }
.contact-card .icon { margin-bottom: 16px; }

.form-panel { background: var(--green-950); color: var(--white); border-radius: var(--radius-lg); padding: 52px 48px; }
.form-panel h2 { color: var(--white); }
.form { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.field { flex: 1 1 calc(50% - 18px); min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.field-full { flex-basis: 100%; }
.field label { font-size: .88rem; font-weight: 600; color: #CFE0D5; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--white);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; padding: 15px 16px; transition: border-color .2s, background .2s;
}
.field select option { color: var(--text); }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8FAA9A; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime-500); background: rgba(255,255,255,.1); }
.form .btn { margin-top: 6px; }
.form-status { flex-basis: 100%; margin: 0; font-weight: 600; color: var(--lime-500); }
.form-status.is-error { color: #FFB4A8; }
.form-status a { color: var(--white); text-decoration: underline; }
.field.has-error input, .field.has-error textarea { border-color: #FF8A7A; }
.field-error { font-size: .82rem; color: #FFB4A8; }
.form .btn[disabled] { opacity: .7; cursor: wait; }
.cf-turnstile { min-height: 65px; }
/* Honeypot: off-screen for people, still present for bots */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 40px 32px; border-radius: var(--radius); background: rgba(149,216,57,.1); border: 1px solid rgba(149,216,57,.35); }
.form-success:focus { outline: none; }
.form-success-icon { font-size: 2.4rem; color: var(--lime-500); margin-bottom: 12px; }
.form-success h3 { color: var(--white); margin-bottom: 10px; }
.form-success p { color: #CFE0D5; }
.form-success a { color: var(--lime-500); text-decoration: underline; }
.form-success .btn { margin-top: 10px; background: transparent; border-color: var(--lime-500); color: var(--lime-500); }
.form-success .btn:hover, .form-success .btn:focus-visible { background: var(--lime-500); border-color: var(--lime-500); color: var(--green-950); }

.map { border-radius: var(--radius-lg); overflow: hidden; line-height: 0; background: var(--sand-200); }
.map iframe { width: 100%; height: 440px; border: 0; }

/* ---------- Footer (Elementor: Footer template) ---------- */
.site-footer { background: var(--green-950); color: #A9C1B2; font-size: .96rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 88px 64px; }
.footer-brand { flex: 1 1 300px; max-width: 380px; }
.footer-col { flex: 1 1 160px; }
.footer-col-wide { flex: 1 1 250px; }
.footer-brand .brand { color: var(--white); margin-bottom: 22px; }
.footer-brand .brand img { width: 64px; height: 64px; background: var(--white); padding: 3px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-name span { color: var(--lime-500); }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 20px; letter-spacing: 0; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #A9C1B2; }
.footer-links a:hover { color: var(--lime-500); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.footer-contact i { color: var(--lime-500); margin-top: 5px; width: 16px; flex: 0 0 16px; text-align: center; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); color: var(--white); transition: background .2s, color .2s;
}
.socials a:hover { background: var(--lime-500); color: var(--green-950); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Floating WhatsApp + chat popup (Elementor: Popup, or WhatsApp Button widget) ---------- */
/* Sits above the sticky header (z-index 100) so the panel can never slide underneath it */
.whatsapp-widget { position: fixed; right: 22px; bottom: 22px; z-index: 110; }
.whatsapp-float {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25D366; color: var(--white); font-size: 1.8rem;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.35); transition: transform .2s, background .2s;
}
.whatsapp-float:hover { color: var(--white); transform: scale(1.08); }
/* Both icons stay in the DOM; only their visibility swaps, so the click target is never removed */
.whatsapp-float .icon-close { display: none; font-size: 1.5rem; }
.whatsapp-widget.open .whatsapp-float .icon-open { display: none; }
.whatsapp-widget.open .whatsapp-float .icon-close { display: inline-block; }

/* Attention: unread badge + soft pulse until the visitor opens the chat once */
.whatsapp-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 21px; height: 21px; padding: 0 6px; border-radius: 99px;
  background: #FF3B30; color: var(--white); border: 2px solid var(--white);
  font: 700 .72rem/17px var(--font-body); text-align: center;
  pointer-events: none;
}
.whatsapp-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  animation: waPulse 2.6s ease-out infinite;
}
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.whatsapp-widget.seen .whatsapp-badge,
.whatsapp-widget.open .whatsapp-badge { display: none; }
.whatsapp-widget.seen .whatsapp-float::after,
.whatsapp-widget.open .whatsapp-float::after { animation: none; }

/* Compact panel, capped to the space between the header and the button */
.whatsapp-panel {
  position: absolute; right: 0; bottom: 70px;
  width: 290px; max-width: calc(100vw - 44px);
  max-height: calc(100vh - 84px - 100px);
  max-height: calc(100svh - 84px - 100px);
  display: flex; flex-direction: column;
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(11,34,23,.45);
  /* Shown/hidden with the [hidden] attribute (display). Only the slide-up is animated —
     never opacity — so the panel can't get stuck invisible if animation frames pause */
  transform: translateY(12px) scale(.96); transform-origin: bottom right;
  transition: transform .22s ease;
}
.whatsapp-widget.open .whatsapp-panel { transform: none; }
.whatsapp-head {
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
  background: #075E54; color: var(--white); padding: 12px 14px;
}
.whatsapp-head img { width: 36px; height: 36px; border-radius: 50%; background: var(--white); flex: 0 0 36px; }
.whatsapp-head strong { display: block; font-family: var(--font-head); font-size: .95rem; line-height: 1.2; }
.whatsapp-head span { font-size: .74rem; color: #B7D8CF; display: flex; align-items: center; gap: 6px; }
.whatsapp-head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }
.whatsapp-close {
  margin-left: auto; background: none; border: 0; color: #B7D8CF; cursor: pointer;
  font-size: .95rem; padding: 4px 6px; border-radius: 6px;
}
.whatsapp-close:hover { color: var(--white); }
.whatsapp-body { padding: 14px; background: #ECE5DD; overflow-y: auto; flex: 1 1 auto; }
.whatsapp-bubble {
  background: var(--white); border-radius: 4px 12px 12px 12px;
  padding: 10px 12px; font-size: .88rem; line-height: 1.5; color: var(--text);
  box-shadow: 0 2px 6px rgba(11,34,23,.1); margin: 0;
}
.whatsapp-time { display: block; font-size: .68rem; color: #8A9A91; text-align: right; margin-top: 3px; }
.whatsapp-cta { padding: 12px 14px 14px; background: var(--white); flex: 0 0 auto; }
.whatsapp-cta .btn { width: 100%; padding: 13px 16px; font-size: .92rem; background: #25D366; color: var(--white); }
.whatsapp-cta .btn:hover { background: #128C7E; color: var(--white); }
.whatsapp-note { font-size: .72rem; color: var(--muted); text-align: center; margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) {
  .whatsapp-panel { transition: none; }
  .whatsapp-float::after { animation: none; }
}

/* ---------- Entrance animations (Elementor: Motion Effects > Entrance Animation "Fade In Up") ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.js .reveal.no-anim { transition: none; }
/* Phones: entrance animations off (Elementor: set Entrance Animation to "None" on Mobile) */
@media (max-width: 767px) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
.anim-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ==========================================================================
   Responsive (Elementor: Tablet ≤1024px, Mobile ≤767px)
   ========================================================================== */
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    background: var(--white); padding: 20px 24px 28px;
    border-bottom: 1px solid rgba(16,38,26,.1);
    box-shadow: 0 24px 40px -24px rgba(11,34,23,.3);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-menu li { border-bottom: 1px solid rgba(16,38,26,.08); }
  .nav-menu a { display: block; padding: 15px 0; font-size: 1.08rem; }
  .nav-menu a::after { display: none; }
  .main-nav .btn { width: 100%; }
  .section { padding-block: 88px; }
  .row-lg { gap: 48px; }
  .service-row, .service-row.reverse { gap: 44px; }
  .stat { flex-basis: calc(50% - 0px); padding: 24px 24px 24px 0; border-left: 0; }
  .footer-bottom { padding-bottom: 76px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }
  .section { padding-block: 72px; }
  .section-sm { padding-block: 56px; }
  .section-head, .section-head-row { margin-bottom: 40px; }
  .header-inner { min-height: 72px; }
  .eyebrow { font-size: .76rem; letter-spacing: .1em; gap: 10px; }
  .eyebrow::before { width: 22px; flex: 0 0 22px; }
  .lead, .hero .lead { font-size: 1.08rem; }
  .col-40, .col-50, .col-60, .card, .org-card, .vm-card, .project-card, .contact-card, .team-card, .timeline-step { min-width: 0; flex-basis: 100%; }
  .team-card { flex-basis: calc(50% - 12px); }
  .team { gap: 20px 16px; }
  .team-card h3 { font-size: 1.05rem; }
  .team-role { font-size: .85rem; }
  .vm-card { padding: 34px 26px; }
  .partner { flex: 1 1 calc(50% - 24px); height: 100px; padding: 14px; }
  .partner img { max-height: 64px; }
  .family-umbrella { margin-bottom: 48px; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 1rem; }
  /* Phones: photo sits as a full band above the text, so wide images are not
     cropped to a narrow slice (Elementor: Slides widget, image above content) */
  .hero-slide {
    display: block; min-height: 0; padding-block: 0;
    background: var(--green-950);
  }
  .hero-slide::before { display: none; }
  .hero-bg {
    position: relative; inset: auto;
    width: 100%; aspect-ratio: 2 / 1;
    background-position: center center;
  }
  /* Keep one slide within the phone screen */
  .hero-slide .container { padding-block: 20px 20px; }
  .hero .lead {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hero-slide .hero-content { max-width: none; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero h1, .hero .h1-style { font-size: clamp(1.9rem, 8.6vw, 2.35rem); margin-bottom: 14px; }
  .hero .lead { font-size: 1rem; line-height: 1.55; }
  .hero .btn-group { gap: 10px; margin-top: 22px; }
  .hero .btn-group .btn { flex: 1 1 auto; width: auto; padding: 15px 18px; font-size: .92rem; }
  .hero-controls {
    position: static; justify-content: center; padding-block: 0 18px;
    border-top: 0; background: none;
  }
  .hero-meta { display: none; }
  .hero-nav { gap: 10px; }
  .hero-arrow { width: 38px; height: 38px; font-size: .85rem; }
}

/* Short phone screens (e.g. iPhone SE): trim the hero further so a slide still fits */
@media (max-width: 767px) and (max-height: 700px) {
  .hero-bg { aspect-ratio: 5 / 2; }
  .hero .lead { -webkit-line-clamp: 2; font-size: .95rem; }
  .hero h1, .hero .h1-style { font-size: clamp(1.7rem, 7.6vw, 2rem); }
  .hero-slide .container { padding-block: 16px 16px; }
  .page-hero { padding-block: 96px 64px; }
  .btn-group .btn { flex: 1 1 100%; }
  .img-accent img { box-shadow: 12px 12px 0 var(--lime-500); }
  .img-badge { left: 12px; bottom: 16px; padding: 14px 18px; }
  .service-row, .service-row.reverse { flex-direction: column; gap: 32px; }
  .service-row > * { flex-basis: auto; width: 100%; }
  .service-num { font-size: 4rem; }
  .stat { flex-basis: 50%; padding: 20px 12px 20px 0; }
  .stat-label { font-size: .9rem; }
  .card, .cards-4 .card, .cards-2 .card { padding: 30px 26px; }
  .org-card { padding: 34px 26px; }
  .cta { padding: 52px 28px; }
  .cta-wrap { padding-block: 0 72px; }
  .form-panel { padding: 40px 24px; }
  .gallery { gap: 10px; }
  .gallery figure { min-width: 0; flex-basis: calc(50% - 5px); border-radius: var(--radius-sm); }
  .gallery figure.wide { flex-basis: 100%; }
  .gallery img { height: 180px; }
  .gallery figure.wide img { height: 220px; }
  .gallery figcaption { opacity: 1; transform: none; font-size: .75rem; left: 6px; right: 6px; bottom: 6px; padding: 5px 8px; }
  .tag, .org-tag { font-size: .75rem; }
  .map iframe { height: 340px; }
  .footer-top { padding-block: 64px 44px; gap: 40px; }
  .footer-bottom { padding-bottom: 76px; }
  .whatsapp-widget { right: 16px; bottom: 16px; }
  .whatsapp-float { width: 54px; height: 54px; font-size: 1.65rem; }
  .whatsapp-panel {
    width: min(290px, calc(100vw - 32px)); bottom: 66px;
    max-height: calc(100vh - 72px - 94px); max-height: calc(100svh - 72px - 94px);
  }
}
