/* ============================================================
   UTPHALA AGRITECH — Seeds of Excellence
   Theme: Yellow / White / Green
   ============================================================ */

:root {
  --green-950: #0d3a1e;
  --green-900: #14532d;
  --green-700: #1e7d36;
  --green-600: #259b42;
  --green-100: #e6f4ea;
  --green-50:  #f2faf4;
  --yellow-500: #f2c112;
  --yellow-400: #f7cf3a;
  --yellow-100: #fdf4d0;
  --ink:       #1d2a20;
  --muted:     #5a6b5e;
  --white:     #ffffff;
  --shadow:    0 6px 24px rgba(20, 83, 45, .10);
  --radius:    14px;
  --maxw:      1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

section { padding: 70px 0; }

/* ---------- Section headings ---------- */
.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--yellow-100);
  border: 1px solid var(--yellow-400);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
}
.center { text-align: center; }
.center .section-sub { margin-bottom: 10px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-900);
  color: #dff0e3;
  font-size: .85rem;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: #dff0e3; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--yellow-400); }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar .dot { color: var(--yellow-500); }

/* ---------- Header / Nav ---------- */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 14px rgba(20, 83, 45, .08);
  border-bottom: 3px solid var(--yellow-500);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; align-items: center; }
.nav a {
  display: block;
  padding: 10px 16px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  border-radius: 8px;
  transition: all .2s;
}
.nav a:hover, .nav a.active { color: var(--green-700); background: var(--yellow-100); }

.nav .has-dropdown { position: relative; display: flex; align-items: center; }
/* the arrow is its own control, so tapping "Products" can navigate */
.nav .dd-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  font-size: .75rem;
  line-height: 1;
  padding: 12px 12px;
  border-radius: 8px;
}
.nav .dd-toggle:hover { color: var(--green-700); }
.nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(20, 83, 45, .18);
  border-top: 3px solid var(--yellow-500);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 821px) {
  .nav .has-dropdown:hover .dropdown,
  .nav .has-dropdown:focus-within .dropdown { display: flex; }
}
.nav .dropdown a { padding: 9px 14px; font-size: .9rem; border-radius: 7px; font-family: 'Nunito', 'Segoe UI', sans-serif; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .25s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-yellow {
  background: var(--yellow-500);
  color: var(--green-950);
}
.btn-yellow:hover { background: var(--yellow-400); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(242, 193, 18, .4); }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-600); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--green-900); }
.header .btn { padding: 10px 22px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--green-900);
  margin: 5px 0;
  border-radius: 2px;
  transition: all .3s;
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  padding: 0;
  background: var(--green-950);
}
.hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}
.hero .slide.active { opacity: 1; }
.hero .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 58, 30, .88) 0%, rgba(13, 58, 30, .55) 50%, rgba(13, 58, 30, .25) 100%);
}
.hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 20px;
  color: #fff;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 640px;
  margin-bottom: 18px;
}
.hero h1 .hl { color: var(--yellow-400); }
.hero p { max-width: 560px; font-size: 1.05rem; color: #e8f3ea; margin-bottom: 30px; }
.hero .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero .hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero .hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--yellow-400);
  background: transparent;
  cursor: pointer;
  transition: background .3s;
}
.hero .hero-dots button.active { background: var(--yellow-400); }

/* ---------- Feature cards ---------- */
.features { background: var(--white); padding-top: 0; margin-top: -95px; position: relative; z-index: 5; padding-bottom: 0; }
.features .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--yellow-500);
  padding: 30px 26px;
  transition: transform .25s;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-card .icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--yellow-100);
  border: 2px solid var(--yellow-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 16px;
}
.feature-card h3 { color: var(--green-900); font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .93rem; }

/* ---------- Five pillars (home) ----------
   Headings only, read left to right as the value chain: research ->
   production -> processing -> support -> sustainability. The connector
   line draws across, then each pillar rises in turn. */
.pillars { padding: 0; position: relative; z-index: 5; margin-top: -66px; }
.pillar-track {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--yellow-500);
  padding: 40px 26px 34px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
/* the shared .reveal drives the timing here, but the block itself should
   not move: only the line and the pillars inside animate */
.pillar-track.reveal { opacity: 1; transform: none; transition: none; }

.pillar-line {
  position: absolute;
  left: 11.3%;
  right: 11.3%;
  top: 71px;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow-400), var(--green-600));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(.22, 1, .36, 1) .15s;
}
.pillar-track.visible .pillar-line { transform: scaleX(1); }

.pillar { position: relative; text-align: center; }
.p-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--yellow-100);
  border: 2px solid var(--yellow-400);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  transition: background .28s, border-color .28s, color .28s, transform .28s;
}
.p-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillar h3 {
  font-size: .97rem;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.35;
  transition: color .28s;
}
.pillar:hover .p-icon {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
  transform: translateY(-6px) scale(1.06);
}
.pillar:hover h3 { color: var(--green-600); }

.pillar-track.visible .pillar {
  animation: pillar-in .62s cubic-bezier(.22, 1, .36, 1) calc(var(--i) * 110ms) both;
}
/* `backwards` (not `both`) so the icon stays hidden until its turn but
   releases the transform afterwards, leaving hover free to take over */
.pillar-track.visible .p-icon {
  animation: pillar-pop .55s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i) * 110ms + 70ms) backwards;
}
@keyframes pillar-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pillar-pop {
  from { transform: scale(.35); }
  to   { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .pillar-line { transition: none; transform: scaleX(1); }
  .pillar-track.visible .pillar,
  .pillar-track.visible .p-icon { animation: none; }
}

/* ---------- Split (about preview / R&D) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split .img-stack { position: relative; }
.split .img-stack img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split .img-stack .badge {
  position: absolute;
  bottom: -20px;
  right: -10px;
  /* the label is a full phrase now, so cap the width and let it wrap
     rather than stretching into a bar across the panel */
  max-width: 200px;
  background: var(--yellow-500);
  color: var(--green-950);
  border-radius: 12px;
  padding: 16px 22px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 24px rgba(242, 193, 18, .45);
}
.split .img-stack .badge .num { font-size: 1.6rem; display: block; line-height: 1.1; }
.split .img-stack .badge .lbl { font-size: .78rem; font-weight: 600; }

/* Logo shown in place of a photo: needs a panel, since the logo is a
   transparent PNG and would otherwise carry a shadow round empty space. */
.split .img-stack.logo-panel {
  background: var(--white);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 320px;
  /* extra bottom padding keeps the logo clear of the overlapping badge */
  padding: 48px 40px 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split .img-stack.logo-panel img {
  border-radius: 0;
  box-shadow: none;
}

/* ---------- Animated logo: a seed is sown and grows into the mark ----------
   The whole logo is real vector, extracted from the printed brochure's
   artwork, so it stays sharp at any size. Ring: cx 84.71 cy 29.18 r 27.89
   (circumference ~175.2). The sprout's base sits at y 55.77, which is where
   the seed lands. Seed and soil belong to the story only and fade away, so
   the resting state is exactly the logo. */
.logo-anim {
  width: 100%;
  max-width: 300px;
  height: auto;
  overflow: visible;            /* lets the seed fall in from above the frame */
}
.logo-anim .la-ringc { stroke-dasharray: 176; stroke-dashoffset: 176; }
.logo-anim .la-seed { opacity: 0; }
.logo-anim .la-seed ellipse {
  fill: #8a5a30;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.logo-anim .la-soil {
  fill: none;
  stroke: #c08a52;
  stroke-width: 1.7;
  stroke-linecap: round;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
/* the clip rect grows upward, so the plant is revealed from its base */
.logo-anim .la-clip {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
}
.logo-anim .la-sprout {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(.8);
}
.logo-anim .la-word { opacity: 0; }

/* Sequence: seed falls (0-1.35s), soil forms (1.05s), plant grows out of it
   (1.35-2.95s), ring closes (1.95-3.25s), wordmark lands (3.0s), then sway. */
.logo-panel.visible .la-seed         { animation: la-seed-fall 1.2s linear .15s both; }
.logo-panel.visible .la-seed ellipse { animation: la-seed-land 1.7s ease-out .95s both; }
.logo-panel.visible .la-soil         { animation: la-soil 2.1s ease-out 1.05s both; }
.logo-panel.visible .la-clip         { animation: la-reveal 1.6s cubic-bezier(.22, 1, .36, 1) 1.35s both; }
.logo-panel.visible .la-sprout {
  animation: la-grow 1.6s cubic-bezier(.22, 1, .36, 1) 1.35s both,
             la-sway 5s ease-in-out 4.2s infinite;
}
.logo-panel.visible .la-ringc        { animation: la-ring-draw 1.3s ease-out 1.95s both; }
.logo-panel.visible .la-word         { animation: la-word-in .8s ease-out 3s both; }

/* linear timing + gravity-spaced keyframes = accelerating fall, two bounces */
@keyframes la-seed-fall {
  0%   { transform: translateY(-70px); opacity: 0; }
  10%  { opacity: 1; }
  20%  { transform: translateY(-58px); }
  40%  { transform: translateY(-36px); }
  60%  { transform: translateY(0); }
  70%  { transform: translateY(-6.5px); }
  80%  { transform: translateY(0); }
  88%  { transform: translateY(-2.2px); }
  100% { transform: translateY(0); opacity: 1; }
}
/* squash on impact, then the seed sinks away as the plant takes over */
@keyframes la-seed-land {
  0%   { transform: scale(1, 1);     opacity: 1; }
  8%   { transform: scale(1.25, .7); }
  18%  { transform: scale(.95, 1.05); }
  28%  { transform: scale(1, 1); }
  55%  { opacity: 1; }
  100% { transform: scale(1, 1);     opacity: 0; }
}
@keyframes la-soil {
  0%   { transform: scaleX(0); opacity: 0; }
  18%  { transform: scaleX(1); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes la-reveal { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes la-grow {
  0%   { transform: scaleY(.8); }
  70%  { transform: scaleY(1.05); }
  100% { transform: scaleY(1); }
}
@keyframes la-ring-draw { to { stroke-dashoffset: 0; } }
@keyframes la-sway {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(1.6deg); }
}
@keyframes la-word-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Anyone who asks for less motion just gets the finished logo */
@media (prefers-reduced-motion: reduce) {
  .logo-anim .la-ringc { stroke-dashoffset: 0; }
  .logo-anim .la-clip  { transform: scaleY(1); }
  .logo-anim .la-sprout { transform: none; }
  .logo-anim .la-word  { opacity: 1; }
  .logo-anim .la-seed, .logo-anim .la-soil { display: none; }
  .logo-panel.visible .la-ringc,
  .logo-panel.visible .la-clip,
  .logo-panel.visible .la-sprout,
  .logo-panel.visible .la-word,
  .logo-panel.visible .la-seed,
  .logo-panel.visible .la-seed ellipse,
  .logo-panel.visible .la-soil { animation: none; }
}

.checklist { margin: 18px 0 26px; }
.checklist li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 12px;
  color: var(--ink);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split p { color: var(--muted); }

/* ---------- Alternating background ---------- */
.bg-soft { background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%); }
.bg-yellow-soft { background: linear-gradient(180deg, #fffdf2 0%, var(--yellow-100) 100%); }

/* ---------- Packaging row (home) ----------
   The client's studio mockups, shot on black. The section takes the same
   near-black so the tiles melt into it, and the tiles sit flush so the
   studio floor reads as one continuous surface across the row. */
.pouch-section { background: #0a0a0a; }
.pouch-section .section-title { color: #fff; }
.pouch-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 34px 0 32px;
}
/* No card treatment: the pouch, its shadow and the floor are all part of
   the photograph. Hover brightens rather than lifts, since lifting one
   tile would break the shared floor line. */
.pouch {
  display: block;
  transition: filter .28s;
}
.pouch img { width: 100%; height: auto; display: block; }
.pouch:hover { filter: brightness(1.12); }
.pouch.reveal { transition-delay: calc(var(--i) * 90ms); }

/* ---------- Stats band ---------- */
.stats {
  background: linear-gradient(120deg, var(--green-950), var(--green-900));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--yellow-500) 0 40px, var(--green-600) 40px 80px);
}
.stats .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat .num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--yellow-400);
  line-height: 1.1;
}
.stat .lbl { color: #cfe6d5; font-size: .92rem; margin-top: 6px; }

/* ---------- Hybrid product cards ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.prod-card {
  cursor: pointer;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.prod-card:hover { transform: translateY(-6px); }
.prod-card .thumb { height: 240px; overflow: hidden; background: var(--green-50); }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .body { padding: 18px 20px 22px; }
.prod-card h3 { color: var(--green-900); font-size: 1.05rem; }
.prod-card .tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-size: .74rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 10px;
  margin: 8px 0;
}
.prod-card p { color: var(--muted); font-size: .9rem; }

/* ---------- Chip list (variety names) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  background: var(--white);
  border: 1.5px solid var(--green-600);
  color: var(--green-900);
  font-weight: 600;
  font-size: .85rem;
  border-radius: 999px;
  padding: 7px 18px;
  transition: all .2s;
}
.chip:hover { background: var(--yellow-100); border-color: var(--yellow-500); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--yellow-500), var(--yellow-400));
  padding: 55px 0;
}
.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--green-950); font-size: clamp(1.3rem, 2.6vw, 1.8rem); max-width: 640px; }
.cta-band p { color: #4d451a; margin-top: 4px; }

/* ---------- Page hero (inner pages) ---------- */
/* Each inner page keeps its <h1> for search engines and screen readers,
   without the banner that used to carry it. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Products page sections ---------- */
.prod-section { padding: 50px 0; border-bottom: 1px dashed #d8e8dc; }
.prod-section:last-of-type { border-bottom: none; }
.prod-section h2 {
  color: var(--green-900);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.prod-section h2 .f1-badge {
  background: var(--yellow-500);
  color: var(--green-950);
  font-size: .7rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 10px;
  letter-spacing: .06em;
}
.prod-section > .container > p { color: var(--muted); max-width: 760px; }

/* ---------- Office cards / contact ---------- */
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.office-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  border-top: 4px solid var(--green-600);
}
.office-card.hq { border-top-color: var(--yellow-500); }
.office-card .oc-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 12px;
}
.office-card.hq .oc-label { background: var(--yellow-100); color: #8a6d00; }
.office-card h3 { color: var(--green-900); font-size: 1.05rem; margin-bottom: 8px; }
.office-card p { color: var(--muted); font-size: .92rem; }

.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--yellow-500);
  padding: 34px 30px;
}
.contact-form label { font-weight: 600; font-size: .88rem; color: var(--green-900); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d5e3d8;
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  margin-bottom: 18px;
  background: var(--green-50);
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--green-600);
  background: #fff;
}
.contact-info h2 { color: var(--green-900); margin-bottom: 12px; }
.contact-info p { color: var(--muted); margin-bottom: 20px; }
.contact-info .ci-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.contact-info .ci-item .ic {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--yellow-100);
  border: 2px solid var(--yellow-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.contact-info .ci-item strong { color: var(--green-900); display: block; font-size: .95rem; }
.contact-info .ci-item span, .contact-info .ci-item a { color: var(--muted); font-size: .9rem; }
.contact-info .ci-item a:hover { color: var(--green-700); }

/* ---------- Footer ---------- */
.footer {
  background: var(--green-950);
  color: #c9dece;
  padding: 60px 0 0;
  border-top: 5px solid var(--yellow-500);
}
.footer .cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}
.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  background: var(--yellow-500);
  border-radius: 2px;
}
.footer .f-brand img { height: 60px; background: #fff; border-radius: 10px; padding: 6px; margin-bottom: 14px; }
.footer p, .footer a, .footer li { font-size: .9rem; color: #c9dece; }
.footer a:hover { color: var(--yellow-400); }
.footer li { margin-bottom: 9px; }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
}
.social-row a:hover { background: var(--yellow-500); transform: translateY(-3px); }
.social-row svg { width: 20px; height: 20px; fill: #fff; }
.social-row a:hover svg { fill: var(--green-950); }
.topbar .tb-social { display: inline-flex; align-items: center; gap: 10px; }
.topbar .tb-social svg { width: 16px; height: 16px; fill: #dff0e3; vertical-align: middle; }
.topbar .tb-social a:hover svg { fill: var(--yellow-400); }
.footer .bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0;
  text-align: center;
  font-size: .85rem;
  color: #9dbba6;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  columns: 3 300px;
  column-gap: 18px;
  margin-top: 40px;
}
.g-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  position: relative;
  background: var(--green-50);
}
.g-item img {
  width: 100%;
  display: block;
  transition: transform .35s;
}
.g-item:hover img { transform: scale(1.05); }
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: var(--radius);
  transition: border-color .25s;
  pointer-events: none;
}
.g-item:hover::after { border-color: var(--yellow-500); }
.gallery-status { text-align: center; color: var(--muted); padding: 40px 0; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 58, 30, .93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2200;          /* above the product popup (2100), which can sit under it */
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
/* once the browser hands us the whole display, use all of it */
.lightbox:fullscreen,
.lightbox:-webkit-full-screen { padding: 0; background: #000; }
.lightbox:fullscreen img,
.lightbox:-webkit-full-screen img {
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

/* Phones: every iOS browser is WebKit and WebKit will not grant real full
   screen to an image, so the overlay has to *be* the full-screen view.
   dvh rather than vh so Safari's collapsing toolbar cannot crop it, and
   safe-area insets so the buttons clear the notch / home indicator. */
@media (max-width: 620px) {
  /* only on phones is the popup photo tappable, so only here does it
     advertise itself as such */
  .product-modal .pm-image img { cursor: zoom-in; }

  .lightbox {
    padding: 0;
    background: #000;
    height: 100vh;
    height: 100dvh;
  }
  .lightbox img {
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}
/* Controls stay out of the photo's way: no fill, just a soft white glyph.
   The shadow is what keeps them legible over a pale photo, since there is
   no longer a disc behind them. */
.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  background: transparent;
  color: #fff;
  opacity: .5;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .75));
  transition: opacity .2s, background .2s, transform .2s;
}
.lightbox .lb-close:hover,
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .16);
  transform: scale(1.08);
}
.lightbox .lb-close { top: 22px; right: 22px; }
.lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { transform: translateY(-50%) scale(1.08); }

/* Phone positions must come after the base ones above: same specificity,
   so source order decides — placed earlier they were simply overridden and
   the notch insets never applied. */
@media (max-width: 620px) {
  .lightbox .lb-close {
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
  }
  .lightbox .lb-prev { left: calc(10px + env(safe-area-inset-left, 0px)); }
  .lightbox .lb-next { right: calc(10px + env(safe-area-inset-right, 0px)); }
}

@media (max-width: 560px) {
  .gallery-grid { columns: 2 150px; column-gap: 12px; }
  .g-item { margin-bottom: 12px; }
}

/* ---------- Product detail modal ---------- */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product-modal.open { display: flex; }
.product-modal .pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 58, 30, .75);
}
.product-modal .pm-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-top: 5px solid var(--yellow-500);
}
.product-modal .pm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--yellow-500);
  color: var(--green-950);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-modal .pm-image { position: relative; height: 300px; overflow: hidden; background: var(--green-50); }
.product-modal .pm-image img { width: 100%; height: 100%; object-fit: cover; }
.product-modal .pm-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  color: var(--green-900);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.product-modal .pm-nav:hover { background: var(--yellow-400); }
.product-modal .pm-prev { left: 10px; }
.product-modal .pm-next { right: 10px; }
.product-modal .pm-count {
  position: absolute;
  right: 12px;
  bottom: 10px;
  background: rgba(13, 58, 30, .72);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}
.product-modal .pm-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 26px 0;
  background: var(--white);
}
.product-modal .pm-thumbs button {
  width: 54px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: .62;
  transition: opacity .2s, border-color .2s;
}
.product-modal .pm-thumbs button:hover { opacity: 1; }
.product-modal .pm-thumbs button.active { opacity: 1; border-color: var(--yellow-500); }
.product-modal .pm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-modal .pm-body { padding: 22px 26px 28px; }
.product-modal .pm-category {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.product-modal .pm-name { color: var(--green-900); font-size: 1.3rem; margin-bottom: 10px; }
.product-modal .pm-desc { color: var(--muted); margin-bottom: 6px; }
.product-modal .pm-body h4 { color: var(--green-900); font-size: .95rem; margin: 16px 0 8px; }
.product-modal .pm-specs, .product-modal .pm-features { margin-bottom: 4px; }
.product-modal .pm-specs li, .product-modal .pm-features li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.5;
}
.product-modal .pm-specs li::before, .product-modal .pm-features li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--yellow-500);
  font-size: .65rem;
}
@media (min-width: 561px) {
  .product-modal .pm-panel { display: flex; flex-direction: row; max-height: 80vh; }
  /* photo column: image over its thumbnails, so the row stays 2 columns */
  .product-modal .pm-media {
    flex: 0 0 44%;
    display: flex;
    flex-direction: column;
    background: var(--green-50);
  }
  /* a fixed portrait-ish frame instead of stretching to the panel height,
     and contain rather than cover: these field photos run from 0.45 to
     1.78 in aspect, so cropping to fill would butcher half of them */
  .product-modal .pm-image { height: auto; aspect-ratio: 3 / 4; }
  .product-modal .pm-image img { object-fit: contain; }
  .product-modal .pm-thumbs { justify-content: center; padding: 10px 12px 14px; background: none; }
  .product-modal .pm-body { flex: 1; overflow-y: auto; }
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  z-index: 1200;
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  /* five across stops fitting: wrap, and centre partial rows so the
     leftover items are not stranded against the left edge */
  .pillar-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 18px; }
  .pillar { flex: 0 0 calc(33.333% - 12px); }
  .pillar-line { display: none; }
}

@media (max-width: 620px) {
  /* four pouches side by side would be postage stamps on a phone */
  .pouch-row { grid-template-columns: repeat(2, 1fr); }
  .pillars { margin-top: -46px; }
  .pillar-track { padding: 30px 18px 26px; gap: 22px 12px; }
  .pillar { flex: 0 0 calc(50% - 6px); }
  .p-icon { width: 52px; height: 52px; margin-bottom: 10px; }
  .p-icon svg { width: 24px; height: 24px; }
  .pillar h3 { font-size: .84rem; }
}

@media (max-width: 820px) {
  .topbar .tb-right { display: none; }
  /* half the screen, not the 280px fixed width that ate ~72% of a phone.
     Slides on transform so the width can stay a percentage. */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    min-width: 185px;
    max-width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    box-shadow: -8px 0 30px rgba(0, 0, 0, .15);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 1100;
    padding: 80px 16px 30px;
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 10px 12px; }
  /* the link takes the row, the arrow sits at its end, and the sub-list
     wraps onto its own line instead of becoming a third column */
  .nav .has-dropdown { flex-wrap: wrap; }
  .nav .has-dropdown > a { flex: 1; }
  .nav .dd-toggle { padding: 10px 8px; font-size: .85rem; }
  .nav .dropdown {
    position: static;
    flex-basis: 100%;
    display: none;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--yellow-500);
    border-radius: 0;
    margin: 4px 0 4px 10px;
    min-width: 0;
  }
  .nav .has-dropdown.open .dropdown { display: flex; }
  .nav-toggle { display: block; z-index: 1150; position: relative; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .features .grid, .split, .contact-wrap { grid-template-columns: 1fr; }
  .pouch-row { margin: 26px 0 26px; }
  .features { margin-top: -40px; }
  .split { gap: 30px; }
  .split .img-stack.logo-panel { min-height: 220px; padding: 30px 24px 104px; }
  .split .img-stack.logo-panel .logo-anim { max-width: 220px; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .office-grid { grid-template-columns: 1fr; }
  .hero { min-height: 500px; }
  .hero .hero-content { padding: 90px 20px; }
  .nav { margin-left: 0; }
}

@media (max-width: 560px) {
  section { padding: 50px 0; }

  /* Feature cards: 2 per row, 3rd centered on its own line */
  .features .grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .feature-card { flex: 0 0 calc(50% - 5px); padding: 14px 12px; }
  .feature-card .icon { width: 40px; height: 40px; font-size: 1.1rem; margin-bottom: 8px; }
  .feature-card h3 { font-size: .85rem; margin-bottom: 4px; line-height: 1.3; }
  .feature-card p { font-size: .72rem; line-height: 1.4; }

  /* Office cards: 2 per row, 3rd centered on its own line */
  .office-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
  .office-card { flex: 0 0 calc(50% - 5px); padding: 14px 12px; }
  .office-card .oc-label { font-size: .62rem; padding: 3px 8px; margin-bottom: 8px; }
  .office-card h3 { font-size: .85rem; margin-bottom: 4px; line-height: 1.3; }
  .office-card p { font-size: .72rem; line-height: 1.35; }

  /* Footer: Quick Links + Our Hybrids side by side */
  .footer .cols {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 16px;
  }
  .f-brand, .f-contact { flex: 1 1 100%; }
  .f-links, .f-hybrids { flex: 1 1 calc(50% - 8px); }

  /* Product cards: 2 per row */
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prod-card .thumb { height: 130px; }
  .prod-card .body { padding: 10px 12px 12px; }
  .prod-card h3 { font-size: .8rem; line-height: 1.3; }
  .prod-card .tag { font-size: .68rem; padding: 2px 8px; margin: 6px 0 0; }
}

/* ---------- 404 ---------- */
.nf-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
