/* ==========================================================================
   Grow Group International — site-specific components
   Header, cover hero, index of deliverables, world map, project passports,
   crop rail, turnkey timeline, footer.
   ========================================================================== */

/* --- top bar + header: dark, with a bronze hairline ---------------------------- */
.topbar { background: var(--green-950); color: #b8c9bd; border-bottom: 1px solid rgb(217 183 118 / 0.22); }
.topbar .icon { color: var(--sun-300); }
.topbar__login { color: var(--sun-300) !important; }
.header { background: var(--green-900); border-bottom: 1px solid rgb(217 183 118 / 0.3); color: #fff; }
.header.is-stuck { box-shadow: 0 10px 24px -14px rgb(4 28 15 / 0.7); border-bottom-color: rgb(217 183 118 / 0.3); }
.logo { color: #fff; }
.logo .logo__svg { height: 50px; width: auto; }
.nav__link { color: #e6eee8; border-radius: 2px; font-weight: 600; letter-spacing: 0.01em; }
.nav__link:hover, .nav__item.is-open > .nav__link { background: rgb(255 255 255 / 0.08); color: #fff; }
.nav__link[aria-current="page"], .nav__link.is-current { color: var(--sun-300); }
.iconbtn { color: #e6eee8; }
.iconbtn:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
.header--over { background: transparent; border-bottom-color: rgb(255 255 255 / 0.18); }
.header--over.is-stuck, .header--over.is-menu { background: var(--green-900); border-bottom-color: rgb(217 183 118 / 0.3); }
.header--over:not(.is-stuck):not(.is-menu) .logo, .header--over.is-stuck .logo, .header--over.is-menu .logo { color: #fff; }
.header--over.is-stuck .nav__link, .header--over.is-menu .nav__link, .header--over.is-stuck .iconbtn, .header--over.is-menu .iconbtn { color: #e6eee8; }
.mega { border-top: 1px solid rgb(217 183 118 / 0.3); }
.mega__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; font-style: italic; color: var(--sun-700); margin-bottom: 1.1rem; }
.mega__link { border-radius: 2px; }
.mega__link:hover { background: var(--sage-50); }
.mega__link:hover .mega__ico { background: var(--green-800); color: #fff; }
.mega__name { font-size: 1.0625rem; }
.mega__feature, .mega__thumb { border-radius: 3px; }
.mega__feature strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.drawer .logo, .drawer .iconbtn { color: var(--green-900); }
.drawer__nav summary, .drawer__nav > li > a { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.search__input { font-family: var(--font-display); }
.search .iconbtn { color: var(--green-900); }
.search__bar .icon { color: var(--sun-600); }

/* --- cover hero: aerial photograph with a solid "dossier cover" panel ---------- */
.cover { position: relative; isolation: isolate; min-height: max(680px, min(100svh, 1040px)); display: grid; grid-template-rows: 1fr auto; background: var(--green-950); color: #fff; overflow: hidden; }
.cover__media { position: absolute; inset: 0; z-index: -2; }
.cover__media img { width: 100%; height: 100%; object-fit: cover; animation: cover-settle 2.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes cover-settle { from { transform: scale(1.1); } to { transform: scale(1); } }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(4 28 15 / 0.7) 0%, rgb(4 28 15 / 0.1) 30%, rgb(4 28 15 / 0.05) 55%, rgb(4 28 15 / 0.55) 100%); }
.cover__in { align-self: end; padding-top: 12rem; }
.cover__panel { position: relative; width: min(100%, 720px); padding: clamp(1.75rem, 1rem + 3vw, 3.25rem); background: var(--green-900); border-top: 2px solid var(--sun-400); animation: cover-rise 1s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes cover-rise { from { opacity: 0; transform: translateY(40px); clip-path: inset(100% 0 0 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
.cover__title { color: #fff; font-size: var(--fs-display); max-width: 13ch; }
.cover__sub { margin-top: 1.25rem; max-width: 46ch; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.55; color: #d5e0d8; }
.cover__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.cover__strip { position: relative; background: rgb(4 28 15 / 0.88); border-top: 1px solid rgb(217 183 118 / 0.35); }
.cover__facts { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 0 clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; min-height: 92px; padding-block: 1rem; }
.cover__fact { display: flex; align-items: baseline; gap: 0.7rem; }
.cover__fact b { font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 600; color: #fff; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.cover__fact span { font-size: var(--fs-sm); color: #b8c9bd; line-height: 1.3; max-width: 16ch; }
.cover__promise { justify-self: end; font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem); color: var(--sun-300); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .cover__media img, .cover__panel { animation: none; } }
@media (max-width: 1023px) { .cover__facts { grid-template-columns: repeat(3, 1fr); } .cover__promise { grid-column: 1 / -1; justify-self: start; margin-top: 0.75rem; } }
@media (max-width: 639px) { .cover__facts { grid-template-columns: 1fr; gap: 0.6rem; } .cover__in { padding-top: 8rem; } .cover__actions .btn { flex: 1 1 100%; } }

/* --- index of deliverables: a ruled grid, read like a contents page ------------ */
.index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--n-300); border-left: 1px solid var(--n-300); }
.index__item { position: relative; display: flex; flex-direction: column; min-height: 216px; padding: 1.6rem 1.6rem 1.4rem; border-right: 1px solid var(--n-300); border-bottom: 1px solid var(--n-300); background: #fff; transition: background-color 0.3s; }
.index__item .icon { width: 28px; height: 28px; stroke-width: 1.4; color: var(--sun-600); margin-bottom: 1.1rem; transition: color 0.3s; }
.index__item h3 { font-size: 1.5rem; line-height: 1.12; }
.index__item h3 a::after { content: ""; position: absolute; inset: 0; }
.index__item p { margin-top: 0.5rem; font-size: var(--fs-sm); color: var(--n-700); line-height: 1.5; }
.index__go { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-sm); font-weight: 700; color: var(--green-700); }
.index__go .icon { width: 1em; height: 1em; margin: 0; color: currentColor; stroke-width: 2; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.index__item:hover { background: var(--green-900); }
.index__item:hover h3, .index__item:hover h3 a { color: #fff; }
.index__item:hover p { color: #c6d5cb; }
.index__item:hover > .icon, .index__item:hover .index__go { color: var(--sun-300); }
.index__item:hover .index__go .icon { transform: translateX(5px); }
.index__item--cta { background: var(--sage-50); justify-content: space-between; }
.index__item--cta h3 { font-style: italic; font-weight: 500; }
@media (max-width: 1023px) { .index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .index { grid-template-columns: minmax(0, 1fr); } .index__item { min-height: 0; } }

/* --- world map ("Where we work") ----------------------------------------------- */
.world { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.map { background: transparent; border-radius: 0; overflow: visible; }
.map--dark .map__land path { fill: #0a301c; stroke: #17482d; stroke-width: calc(0.5 * var(--map-scale, 1)); }
.map--dark .map__land path.is-market { fill: #1f6b41; stroke: #2f8656; }
.map--dark .map__land path.is-home { fill: var(--sun-600); stroke: var(--sun-300); }
.map--dark .map__dot { fill: var(--sun-300); stroke: var(--green-950); stroke-width: calc(1.4 * var(--map-scale, 1)); }
.map--dark .map__halo { fill: var(--sun-300); }
.map--dark .map__pin.is-flag .map__dot { fill: #fff; }
.map--dark .map__pin.is-flag .map__halo { fill: #fff; opacity: 0.3; }
.map--light { background: var(--sage-50); border: 1px solid var(--sage-200); border-radius: 3px; overflow: hidden; }
.map--light .map__land path { fill: #fff; stroke: var(--sage-300); stroke-width: calc(0.5 * var(--map-scale, 1)); }
.map--light .map__land path.is-market { fill: var(--green-100); stroke: var(--green-300); }
.map--light .map__land path.is-home { fill: var(--sun-300); stroke: var(--sun-600); }
.map--light .map__dot { fill: var(--green-800); stroke: #fff; }
.map--light .map__halo { fill: var(--green-800); }
.map--light .map__pin.is-flag .map__dot { fill: var(--sun-600); }
.map__tip { border-radius: 2px; background: var(--green-950); border: 1px solid rgb(217 183 118 / 0.4); }
.map__tip b { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.map__legend { border-radius: 2px; }
.map--dark .map__legend { position: static; margin-top: 1rem; padding: 0; background: transparent; color: #b8c9bd; }
.map--dark .map__legend i { background: var(--sun-300); }
.map--dark .map__legend i.flag { background: #fff; }
.map--dark .map__legend i.area { border-radius: 0; background: #1f6b41; outline: 1px solid #2f8656; }
.map--light .map__legend i { background: var(--green-800); }
.map--light .map__legend i.flag { background: var(--sun-600); }
.map--light .map__legend i.area { border-radius: 0; background: var(--green-100); outline: 1px solid var(--green-300); }
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--n-300); border: 1px solid var(--n-300); }
.mcard { position: relative; display: flex; flex-direction: column; min-height: 220px; padding: 1.6rem; background: #fff; transition: background-color 0.3s; }
.mcard h3 { font-size: 1.75rem; line-height: 1.1; }
.mcard h3 a::after { content: ""; position: absolute; inset: 0; }
.mcard p { margin-top: 0.6rem; color: var(--n-700); font-size: var(--fs-sm); }
.mcard .index__go { margin-top: auto; padding-top: 1rem; }
.mcard:hover { background: var(--sage-50); }
.mcard:hover .index__go .icon { transform: translateX(5px); }
@media (max-width: 899px) { .mgrid { grid-template-columns: minmax(0, 1fr); } }
.cgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--n-300); border: 1px solid var(--n-300); }
@media (max-width: 1023px) { .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.langs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.regions { border-top: 1px solid rgb(217 183 118 / 0.45); }
.region { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 0.25rem 1rem; align-items: center; padding: 1.05rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.14); transition: padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.region b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; line-height: 1.15; }
.region b a::after { content: ""; position: absolute; inset: 0; }
.region span { grid-column: 1; font-size: var(--fs-sm); color: #a9bdb0; line-height: 1.4; }
.region .icon { grid-row: 1 / span 2; grid-column: 2; color: var(--sun-300); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.region:hover { padding-left: 0.6rem; }
.region:hover .icon { transform: translateX(4px); }
@media (max-width: 1023px) { .world { grid-template-columns: minmax(0, 1fr); } }

/* --- project passport ------------------------------------------------------------ */
.passport { background: #fff; border: 1px solid var(--n-300); border-top: 2px solid var(--sun-500); border-radius: 0 0 3px 3px; margin-top: calc(var(--section) * -0.3); box-shadow: var(--shadow-pop); }
.passport dt { letter-spacing: 0.03em; }
.passport dd { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.dossier { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: #fff; border: 1px solid var(--n-300); }
.dossier__media { position: relative; min-height: 440px; background: var(--green-900); overflow: hidden; }
.dossier__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.dossier:hover .dossier__media img { transform: scale(1.03); }
.dossier__body { display: flex; flex-direction: column; padding: clamp(1.5rem, 1rem + 2.4vw, 3rem); border-top: 2px solid var(--sun-500); }
.dossier__body h3 { font-size: var(--fs-h2); line-height: 1.05; }
.dossier__body > p { margin-top: 1rem; color: var(--n-700); }
.fields { margin-top: auto; padding-top: 1.75rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.fields div { padding: 0.75rem 0; border-top: 1px solid var(--n-300); }
.fields dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; letter-spacing: 0.03em; }
.fields dd { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.dossier__more { margin-top: 1.5rem; }
@media (max-width: 899px) { .dossier { grid-template-columns: minmax(0, 1fr); } .dossier__media { min-height: 0; aspect-ratio: 16 / 10; } }

/* compact passport card for project lists */
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--n-300); transition: border-color 0.3s, box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.pcard:hover, .pcard.is-hot { border-color: var(--sun-500); box-shadow: 0 22px 36px -24px rgb(4 28 15 / 0.45); }
.pcard .frame { border-radius: 0; aspect-ratio: 3 / 2; }
.pcard:hover .frame img { transform: scale(1.035); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.25rem 1.1rem; }
.pcard__country { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; color: var(--sun-700); margin-bottom: 0.5rem; }
.pcard h3 { font-size: 1.625rem; line-height: 1.12; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; }
.pcard .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; padding-top: 1.25rem; }
.pcard .fields dd { font-size: 1.1875rem; }

/* --- crop rail (TZ: carousel of the eight crops) ---------------------------------- */
.rail .slider__track { --slide: clamp(240px, 23vw, 330px); gap: 1px; background: var(--n-300); border: 1px solid var(--n-300); }
.crop { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4; padding: 1.25rem; color: #fff; isolation: isolate; overflow: hidden; background: var(--green-900); }
.crop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.crop::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(4 28 15 / 0) 35%, rgb(4 28 15 / 0.9) 100%); transition: background-color 0.4s; }
.crop:hover img { transform: scale(1.05); }
.crop:hover::after { background-color: rgb(4 28 15 / 0.45); }
.crop h3 { color: #fff; font-size: 1.75rem; line-height: 1.1; }
.crop p { max-height: 0; opacity: 0; overflow: hidden; font-size: var(--fs-sm); color: #d5e0d8; line-height: 1.45; transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s, margin 0.35s; }
.crop:hover p, .crop:focus-visible p { max-height: 8rem; opacity: 1; margin-top: 0.5rem; }
.crop__yield { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgb(217 183 118 / 0.5); font-size: var(--fs-xs); color: #b8c9bd; }
.crop__yield b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--sun-300); margin-right: 0.4rem; }
@media (hover: none) { .crop p { max-height: 8rem; opacity: 1; margin-top: 0.5rem; } }

/* --- turnkey timeline: the sequence from bare land to first harvest -------------- */
.tline { position: relative; }
.tline__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--sun-400) transparent; padding-bottom: 1rem; }
.tstep { position: relative; padding: 2.25rem 1.5rem 0 0; scroll-snap-align: start; counter-increment: tstep; }
.tline__track { counter-reset: tstep; }
.tstep::before { content: ""; position: absolute; left: 0; right: 0; top: 0.5rem; height: 1px; background: rgb(217 183 118 / 0.5); }
.tstep::after { content: ""; position: absolute; left: 0; top: calc(0.5rem - 5px); width: 11px; height: 11px; background: var(--sun-300); transform: rotate(45deg); }
.tstep__months { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.05em; color: var(--sun-300); }
.tstep h3 { margin-top: 0.4rem; color: #fff; font-size: 1.625rem; line-height: 1.12; }
.tstep h3::before { content: counter(tstep) ". "; color: var(--sun-300); font-style: italic; font-weight: 500; }
.tstep p { margin-top: 0.6rem; font-size: var(--fs-sm); color: #c6d5cb; line-height: 1.55; }
.tstep__out { margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px solid rgb(255 255 255 / 0.14); font-size: var(--fs-xs); color: #a9bdb0; }
.tstep__out b { display: block; color: #fff; font-weight: 600; font-size: var(--fs-sm); margin-top: 0.15rem; }
.tline--light .tstep::before { background: var(--sun-400); }
.tline--light .tstep::after { background: var(--sun-500); }
.tline--light .tstep__months, .tline--light .tstep h3::before { color: var(--sun-700); }
.tline--light .tstep h3 { color: var(--ink); }
.tline--light .tstep p { color: var(--n-700); }
.tline--light .tstep__out { border-top-color: var(--n-300); color: var(--muted); }
.tline--light .tstep__out b { color: var(--ink); }

/* --- why + partners + promise ----------------------------------------------------- */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 1rem + 3vw, 4rem); }
.reason { padding: 1.5rem 0; border-top: 1px solid var(--n-300); }
.reason .icon { width: 26px; height: 26px; stroke-width: 1.4; color: var(--sun-600); margin-bottom: 0.9rem; }
.reason h3 { font-size: 1.5rem; line-height: 1.15; }
.reason p { margin-top: 0.4rem; color: var(--n-700); font-size: var(--fs-sm); }
@media (max-width: 899px) { .reasons { grid-template-columns: minmax(0, 1fr); } }
.marquee__item span { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; letter-spacing: 0; color: var(--n-500); }
.promise { text-align: center; }
.promise__mark { font-family: var(--font-display); font-style: italic; font-size: clamp(2.5rem, 1.5rem + 5vw, 5.5rem); font-weight: 500; line-height: 1; color: var(--sun-300); letter-spacing: -0.01em; }
.promise p { max-width: 58ch; margin: 1.5rem auto 0; font-size: var(--fs-lead); color: #cfdcd3; }
.split-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split-photo .frame { aspect-ratio: 5 / 4; }
@media (max-width: 899px) { .split-photo { grid-template-columns: minmax(0, 1fr); } }
.kcard--plain { background: var(--sage-50); border: 1px solid var(--sage-200); border-radius: 3px; }

/* --- footer ------------------------------------------------------------------------ */
.footer { background: var(--green-950); border-top: 2px solid var(--sun-500); }
.footer__news { border-bottom-color: rgb(217 183 118 / 0.25); }
.footer__news h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); max-width: 18ch; }
.footer__sub .input { border-radius: 2px; }
.footer h3 { font-family: var(--font); letter-spacing: 0.04em; color: var(--sun-300); font-size: var(--fs-xs); }
.footer__social a { border-radius: 2px; background: transparent; border: 1px solid rgb(255 255 255 / 0.2); }
.footer__social a:hover { background: var(--sun-500); border-color: var(--sun-500); color: var(--green-950); transform: none; }
.footer__marks, .footer__bottom { border-top-color: rgb(217 183 118 / 0.25); }
.footer__marks .badge { background: transparent; border: 1px solid rgb(255 255 255 / 0.2); color: #cfdcd3; }
.footer__promise { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--sun-300); margin-top: 1rem; }
.footer__group { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; padding: 0.55rem 0.9rem; border: 1px solid rgb(217 183 118 / 0.4); color: #e6eee8; font-size: var(--fs-sm); font-weight: 600; transition: background-color 0.2s, color 0.2s; }
.footer__group:hover { background: var(--sun-500); color: var(--green-950) !important; }
.wa { border-radius: 2px; background: var(--green-700); border: 1px solid rgb(217 183 118 / 0.5); }
.cookie { border-top: 2px solid var(--sun-500); }
.cta__roof { display: none; }
.cta { border-top: 2px solid var(--sun-500); }
