/* ==========================================================================
   Agri-Engineering Solutions Ltd — main stylesheet
   ========================================================================== */

:root {
  --forest: #0f3d22;
  --forest-2: #134a2a;
  --green: #1c6b36;
  --leaf: #3e9a45;
  --leaf-pale: #a8d5a2;
  --mint: #f2f8f1;
  --mint-2: #e4f1e2;
  --harvest: #e0a526;
  --harvest-dark: #c68c12;
  --ink: #1a2b20;
  --muted: #5b6d61;
  --line: #dbe7da;
  --white: #fff;

  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Outfit", var(--font-head);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(15, 61, 34, .06);
  --shadow: 0 12px 32px -12px rgba(15, 61, 34, .22);
  --shadow-lg: 0 30px 60px -20px rgba(15, 61, 34, .35);
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--leaf); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; color: var(--forest); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--harvest); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--harvest); color: var(--forest); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 16px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.icon--md { width: 30px; height: 30px; }
.icon--lg { width: 36px; height: 36px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green); color: var(--white); box-shadow: 0 8px 20px -8px rgba(28, 107, 54, .6); }
.btn--primary:hover { background: var(--forest); color: var(--white); }
.btn--accent { background: var(--harvest); color: var(--forest); box-shadow: 0 10px 24px -10px rgba(224, 165, 38, .8); }
.btn--accent:hover { background: #f0b73a; color: var(--forest); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: var(--white); background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { background: var(--white); color: var(--forest); border-color: var(--white); }
.btn--sm { padding: 10px 20px; font-size: .92rem; }
.btn--block { width: 100%; justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 700; color: var(--green); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Eyebrows / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--leaf);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow--light { color: var(--leaf-pale); }

.section { position: relative; padding: 104px 0; }
.section--tight { padding: 80px 0; }
.section--mint { background: var(--mint); }
.section--forest { background: linear-gradient(160deg, var(--forest) 0%, var(--green) 110%); color: rgba(255, 255, 255, .85); overflow: hidden; }
.section--forest h2, .section--forest h3 { color: var(--white); }

.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin: 0; }
.section-head > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section--forest .section-head > p:not(.eyebrow) { color: rgba(255, 255, 255, .78); }
.section-head--center { display: block; text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head--center h2 { margin-bottom: 14px; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center > p:not(.eyebrow) { color: var(--muted); }
.subhead { text-align: center; margin: 72px 0 32px; font-size: 1.5rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Icon badges ---------- */
.icon-badge {
  display: inline-grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--mint-2); color: var(--green);
}
.icon-badge .icon { width: 28px; height: 28px; }
.icon-badge--solid { background: linear-gradient(135deg, var(--leaf), var(--green)); color: var(--white); box-shadow: 0 10px 20px -10px rgba(28, 107, 54, .7); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--forest); color: rgba(255, 255, 255, .8); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__links { display: flex; gap: 24px; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: var(--harvest); }
.topbar .icon { color: var(--leaf-pale); margin-right: 4px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px -14px rgba(15, 61, 34, .35); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 14px; }
.logo-mark { width: 60px; height: 50px; flex: none; }
.logo-mark--sm { width: 36px; height: 30px; }
.logo-divider { width: 1.5px; align-self: stretch; margin: 2px 0; background: #cfd8d1; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-logo); }
.logo-text strong { font-weight: 700; font-size: 1.32rem; letter-spacing: -.01em; color: #0e3b22; }
.logo-sub { font-weight: 400; font-size: 1.12rem; color: #3f9a2e; margin-top: 1px; }
.logo-tag { font-family: var(--font-body); font-weight: 600; font-size: .5rem; letter-spacing: .26em; text-transform: uppercase; color: #4d6b57; margin-top: 6px; white-space: nowrap; }
.logo--reverse .logo-text strong { color: var(--white); }
.logo--reverse .logo-sub { color: #7cc242; }
.logo--reverse .logo-tag { color: #d6ebc9; }
.logo--reverse .logo-divider { background: #3b5f4b; }
.site-footer .logo-mark { width: 78px; height: 65px; }
.site-footer .logo-text strong { font-size: 1.6rem; }
.site-footer .logo-sub { font-size: 1.35rem; }
.site-footer .logo-tag { font-size: .56rem; margin-top: 8px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a {
  position: relative; display: block; padding: 10px 14px;
  font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--ink);
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px;
  background: var(--leaf); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav ul a:hover { color: var(--green); }
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }
.site-nav ul a.is-active { color: var(--green); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--forest); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); overflow: hidden; background: var(--forest); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: heroZoom 18s ease-out both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(10, 42, 23, .94) 0%, rgba(15, 61, 34, .82) 42%, rgba(28, 107, 54, .35) 100%),
    linear-gradient(0deg, rgba(10, 42, 23, .5), transparent 40%);
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__inner { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 56px; padding-top: 120px; padding-bottom: 170px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  font-size: .84rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--harvest); box-shadow: 0 0 0 4px rgba(224, 165, 38, .25); }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--leaf-pale); background: linear-gradient(transparent 70%, rgba(224, 165, 38, .45) 70%); }
.hero__lead { font-size: 1.15rem; max-width: 600px; color: rgba(255, 255, 255, .85); margin-bottom: 26px; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.hero__pills li { padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; background: rgba(168, 213, 162, .16); color: var(--leaf-pale); border: 1px solid rgba(168, 213, 162, .3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__card {
  justify-self: end; max-width: 340px; padding: 32px; border-radius: 24px;
  background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
.hero__card-num { font-family: var(--font-head); font-weight: 800; font-size: 4rem; line-height: 1; color: var(--green); margin-bottom: 10px; }
.hero__card p { color: var(--muted); font-size: .96rem; }
.hero__card-foot { display: flex; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--forest); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 80px; color: var(--white); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: var(--white); background: var(--forest); isolation: isolate; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10, 42, 23, .94), rgba(28, 107, 54, .6)); }
.page-hero__inner { padding: 110px 24px 96px; max-width: var(--container); }
.page-hero h1 { color: var(--white); max-width: 820px; }
.page-hero .lead { font-size: 1.15rem; max-width: 680px; color: rgba(255, 255, 255, .85); }
.breadcrumb { display: flex; gap: 10px; margin-top: 28px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: var(--leaf-pale); }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -90px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 34px 28px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--green); line-height: 1.1; }
.stat > span { color: var(--muted); font-size: .92rem; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); background: var(--mint-2); }
.split__media::before { content: ""; position: absolute; inset: -18px auto auto -18px; width: 140px; height: 140px; border-radius: 28px; background: repeating-linear-gradient(45deg, var(--leaf-pale) 0 2px, transparent 2px 12px); z-index: -1; }
.badge-card {
  position: absolute; right: -24px; bottom: 36px; display: flex; gap: 14px; align-items: center;
  padding: 18px 22px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow-lg); color: var(--green);
}
.badge-card strong { display: block; font-family: var(--font-head); color: var(--forest); font-size: 1.1rem; }
.badge-card span { font-size: .85rem; color: var(--muted); }
.split__body > p:not(.eyebrow) { color: var(--muted); }
.split__body > p strong { color: var(--forest); }
.section--forest .split__body > p:not(.eyebrow) { color: rgba(255, 255, 255, .8); }

.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0; }
.formula span { padding: 8px 16px; border-radius: 10px; background: var(--mint); border: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; color: var(--forest); font-size: .92rem; }
.formula b { color: var(--harvest-dark); font-size: 1.2rem; }

.vm-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px; margin-bottom: 28px; }
.vm-card { padding: 24px; border-radius: var(--radius); background: var(--mint); border: 1px solid var(--line); }
.vm-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; color: var(--green); }
.vm-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.vm-card--dark { background: var(--forest); border-color: var(--forest); }
.vm-card--dark h3 { color: var(--leaf-pale); }
.vm-card--dark p { color: rgba(255, 255, 255, .82); }

/* ---------- Cards ---------- */
.value-card, .cap-card, .client-card, .contact-card, .card {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.value-card:hover, .cap-card:hover, .client-card:hover, .contact-card:hover, .card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--leaf-pale); }
.value-card h3, .cap-card h3, .client-card h3, .contact-card h3 { margin-top: 20px; }
.value-card p, .cap-card p, .client-card p, .contact-card p, .card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }
.value-card { text-align: center; }
.value-card .icon-badge { width: 64px; height: 64px; border-radius: 50%; }

.cap-card { display: flex; flex-direction: column; overflow: hidden; }
.cap-card p { margin-bottom: 20px; flex: 1; }
.cap-card__num { position: absolute; top: 18px; right: 24px; font-family: var(--font-head); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--mint-2); transition: color .35s; }
.cap-card:hover .cap-card__num { color: var(--leaf-pale); }
.cap-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--leaf), var(--harvest)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.cap-card:hover::after { transform: scaleX(1); }

.contact-card { text-align: center; color: inherit; }
.contact-card .icon-badge { margin: 0 auto; }
.contact-card p { word-break: break-word; }

/* ---------- Advisory ---------- */
.bg-leaf { position: absolute; right: -80px; top: -60px; width: 420px; height: 420px; color: rgba(255, 255, 255, .04); transform: rotate(20deg); }
.adv-item { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: background .3s, transform .3s var(--ease); }
.adv-item:hover { background: rgba(255, 255, 255, .11); transform: translateY(-4px); }
.adv-item .icon { color: var(--harvest); margin-bottom: 14px; }
.adv-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.adv-item p { font-size: .92rem; margin: 0; color: rgba(255, 255, 255, .75); }

.test-panel {
  display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: center;
  margin-top: 48px; padding: 36px 40px; border-radius: 24px;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg);
}
.test-panel h3 { color: var(--forest); font-size: 1.45rem; margin: 0; }
.test-panel .eyebrow { color: var(--harvest-dark); }
.test-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: none; }
.test-list li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--mint); font-family: var(--font-head); font-weight: 700; color: var(--forest); }
.test-list span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--green); color: var(--white); font-size: .9rem; }

/* ---------- Engineering cards ---------- */
.eng-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.eng-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.eng-card__media { position: relative; background: linear-gradient(135deg, var(--leaf), var(--forest)); }
.eng-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.eng-card:hover .eng-card__media img { transform: scale(1.06); }
.eng-card__media { overflow: hidden; }
.icon-badge--float { position: absolute; left: 24px; bottom: -1px; border-radius: 16px 16px 0 0; background: var(--white); width: 64px; height: 52px; }
.eng-card__body { padding: 22px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.eng-card__body .check-list { flex: 1; margin-bottom: 20px; }

.check-list li { display: flex; gap: 10px; margin-bottom: 10px; color: var(--muted); font-size: .95rem; }
.check-list .icon { color: var(--leaf); margin-top: .25em; width: 18px; height: 18px; }
.check-list--light li { color: rgba(255, 255, 255, .88); }
.check-list--light .icon { color: var(--harvest); }

/* ---------- Value chain ---------- */
.chain { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.chain::before { content: ""; position: absolute; top: 38px; left: 8%; right: 8%; height: 3px; background: repeating-linear-gradient(90deg, var(--leaf) 0 10px, transparent 10px 18px); }
.chain__step { position: relative; text-align: center; padding: 0 10px; }
.chain__icon {
  position: relative; display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--white); color: var(--green); border: 3px solid var(--leaf-pale);
  box-shadow: var(--shadow-sm); transition: background .3s, color .3s, transform .3s var(--ease);
}
.chain__icon .icon { width: 32px; height: 32px; }
.chain__step:hover .chain__icon { background: var(--green); color: var(--white); transform: scale(1.06); }
.chain__step:last-child .chain__icon { background: var(--harvest); border-color: #f5d27f; color: var(--forest); }
.chain__step strong { display: block; font-family: var(--font-head); color: var(--forest); font-size: 1.05rem; }
.chain__step span { font-size: .88rem; color: var(--muted); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.process__step { position: relative; padding: 30px 28px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.process__step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.process__num { position: absolute; right: 18px; top: 10px; font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; color: var(--mint-2); line-height: 1; }
.process__step h4 { position: relative; display: flex; align-items: center; gap: 10px; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.process__step h4::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--harvest); box-shadow: 0 0 0 4px rgba(224, 165, 38, .2); }
.process__step p { position: relative; margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Experience ---------- */
.exp-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.exp-grid { gap: 16px; }
.exp-item { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); transition: border-color .3s, box-shadow .3s; }
.exp-item:hover { border-color: var(--leaf-pale); box-shadow: var(--shadow); }
.exp-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.exp-item p { margin: 0; font-size: .92rem; color: var(--muted); }
.leader-card { border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, var(--forest), var(--green)); color: var(--white); box-shadow: var(--shadow-lg); position: sticky; top: 110px; }
.leader-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.leader-card__body { padding: 28px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.faq-head { display: block; position: sticky; top: 120px; margin-bottom: 0; }
.faq-head h2 { margin-bottom: 18px; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.faq-head a { font-weight: 600; }
.faq-list { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); transition: border-color .3s, box-shadow .3s; }
.faq-item[open] { border-color: var(--leaf-pale); box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.05rem; }
.faq-item__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mint-2); }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--green); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-item__icon { background: var(--green); }
.faq-item[open] .faq-item__icon::before, .faq-item[open] .faq-item__icon::after { background: var(--white); }
.faq-item[open] .faq-item__icon::after { transform: rotate(0); }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: var(--white); isolation: isolate; overflow: hidden; background: var(--forest); }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 42, 23, .95), rgba(28, 107, 54, .78)); }
.cta-band__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .82); margin: 0; }
.cta-band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; justify-self: end; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: #0e3b22; color: rgba(255, 255, 255, .72); padding-top: 80px; overflow: hidden; font-size: .95rem; }
.site-footer__leaf { position: absolute; left: -60px; bottom: -80px; width: 360px; height: 360px; color: rgba(255, 255, 255, .03); }
.site-footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr .7fr 1.2fr 1.7fr; gap: 40px; padding-bottom: 56px; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 20px; letter-spacing: .02em; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, .72); transition: color .2s; }
.site-footer a:hover { color: var(--harvest); }
.site-footer__about p { margin-top: 20px; }
.site-footer__tag { color: var(--leaf-pale); font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .06em; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--leaf-pale); margin-top: .2em; }
.contact-list a { overflow-wrap: anywhere; }
.site-footer .contact-list a[href^="mailto"] { white-space: nowrap; overflow-wrap: normal; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__credit strong { color: #7cc242; font-weight: 600; }

.whatsapp-fab {
  position: fixed; right: 22px; bottom: 44px; z-index: 90; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: var(--white);
  box-shadow: 0 12px 26px -8px rgba(37, 211, 102, .7); transition: transform .3s var(--ease);
}
.whatsapp-fab .icon { width: 30px; height: 30px; }
.whatsapp-fab:hover { transform: scale(1.08); color: var(--white); }
.to-top {
  position: fixed; right: 30px; bottom: 114px; z-index: 90; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: var(--white); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top .icon { transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--forest); color: var(--white); }

/* ---------- Inner-page helpers ---------- */
.prose { max-width: 760px; }
.prose p { color: var(--muted); font-size: 1.05rem; }
.detail-list { display: grid; gap: 20px; }
.detail-row { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; scroll-margin-top: 120px; }
.detail-row:hover { border-color: var(--leaf-pale); box-shadow: var(--shadow); }
.detail-row__num { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--leaf-pale); line-height: 1; }
.detail-row h3 { display: flex; align-items: center; gap: 12px; }
.detail-row h3 .icon { color: var(--green); width: 28px; height: 28px; }
.detail-row p { margin: 0; color: var(--muted); }
.quote-block { margin: 32px 0 0; padding: 28px 32px; border-left: 5px solid var(--harvest); background: var(--mint); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--forest); }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-info { padding: 40px; border-radius: 24px; background: linear-gradient(160deg, var(--forest), var(--green)); color: rgba(255, 255, 255, .85); box-shadow: var(--shadow-lg); }
.contact-info h2 { color: var(--white); font-size: 1.8rem; }
.contact-info .contact-list li { margin-bottom: 20px; font-size: 1rem; }
.contact-info .contact-list a { color: var(--white); }
.contact-info .contact-list a:hover { color: var(--harvest); }
.contact-info .contact-list .icon { width: 22px; height: 22px; color: var(--harvest); }
.contact-info .contact-list small { display: block; color: var(--leaf-pale); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.form-card { padding: 40px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--forest); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--mint);
  font: inherit; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf); background: var(--white); box-shadow: 0 0 0 4px rgba(62, 154, 69, .15); }
.hp { position: absolute !important; left: -9999px !important; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 14px; margin-bottom: 24px; font-weight: 500; }
.alert .icon { margin-top: .2em; }
.alert--ok { background: #e3f4e1; color: #17572c; border: 1px solid #b9dfb4; }
.alert--err { background: #fdecea; color: #8a1f17; border: 1px solid #f5c2bd; }
.map { margin-top: 48px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* 404 */
.error-page { text-align: center; padding: 140px 0; }
.error-page .big { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; color: var(--mint-2); line-height: 1; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .site-nav ul a { padding: 10px 9px; font-size: .92rem; }
  .site-nav { gap: 14px; }
}

@media (max-width: 1024px) {
  .section { padding: 84px 0; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 200;
    flex-direction: column; align-items: stretch; gap: 24px; padding: 100px 28px 28px;
    background: var(--white); box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .3);
    transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .site-nav .btn { justify-content: center; }
  .nav-toggle { position: relative; z-index: 210; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 150; background: rgba(10, 42, 23, .5); }

  .hero__inner { grid-template-columns: 1fr; padding-top: 90px; padding-bottom: 150px; }
  .hero__card { justify-self: start; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 56px; }
  .split--reverse .split__media { order: 0; }
  .split__media { max-width: 560px; }
  .split__media img { aspect-ratio: 4 / 3; }
  .badge-card { right: 16px; }
  .test-panel { grid-template-columns: 1fr; }
  .chain { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .chain::before { display: none; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .exp-layout { grid-template-columns: 1fr; }
  .leader-card { position: static; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__actions { justify-self: start; flex-direction: row; flex-wrap: wrap; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  body { font-size: .97rem; }
  .container { padding: 0 16px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
  .topbar__inner > span:first-child { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__links { gap: 16px; font-size: .78rem; }
  .topbar__links a:first-child { display: none; }
  .site-header__inner { min-height: 70px; }
  .logo { gap: 10px; }
  .logo-mark { width: 46px; height: 38px; }
  .logo-text strong { font-size: 1.08rem; }
  .logo-sub { font-size: .92rem; }
  .site-header .logo-tag { display: none; }
  .hero__inner { padding-top: 64px; padding-bottom: 140px; gap: 36px; }
  .hero__eyebrow { font-size: .72rem; letter-spacing: .04em; }
  .hero__lead { font-size: 1.02rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__card { max-width: none; padding: 24px; }
  .hero__card-num { font-size: 3.2rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stat { padding: 24px 12px; }
  .stat strong { font-size: 2rem; }
  .stat > span { font-size: .82rem; }
  .vm-grid { grid-template-columns: 1fr; }
  .badge-card { position: relative; right: auto; bottom: auto; z-index: 1; margin-top: -40px; margin-left: 16px; margin-right: 16px; }
  .split__media::before { display: none; }
  .test-panel { padding: 26px 22px; }
  .test-list { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; row-gap: 0; }
  .chain__step { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 16px; text-align: left; padding: 0 0 22px; }
  .chain__step:not(:last-child)::after { content: ""; position: absolute; left: 31px; top: 66px; bottom: 2px; width: 3px; background: repeating-linear-gradient(180deg, var(--leaf) 0 8px, transparent 8px 14px); }
  .chain__icon { grid-row: span 2; width: 64px; height: 64px; margin: 0; }
  .chain__step strong { align-self: end; }
  .process { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .detail-row__num { font-size: 2rem; }
  .cta-band__inner { padding-top: 64px; padding-bottom: 64px; }
  .cta-band__actions .btn { width: 100%; justify-content: center; }
  .cta-band__actions { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .form-card, .contact-info { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .page-hero__inner { padding: 72px 16px 64px; }
  .whatsapp-fab { right: 16px; bottom: 32px; width: 52px; height: 52px; }
  .to-top { right: 21px; bottom: 96px; }
}
