/* ==========================================================================
   Grow Group International — theme
   Loads after kit.css (the shared structural layer: reset, grid, forms, dialogs,
   tables, article layout). This file gives the site its own identity: deep forest
   green and bronze, a serif display voice, square "dossier" shapes.
   Load order: fonts/fonts.css → kit.css → theme.css → site.css
   ========================================================================== */

:root {
  /* forest (TZ §9.2 primary #0E4D2A) */
  --green-50: #eef4f0;  --green-100: #d6e5db; --green-200: #adcbb8; --green-300: #7baa8e;
  --green-400: #4a8565; --green-500: #2a6a48; --green-600: #1a5a3a; --green-700: #0e4d2a;
  --green-800: #0a3a20; --green-900: #072a17; --green-950: #041c0f;
  /* paper: warm neutrals instead of the local site's sage tints */
  --sage-50: #f7f6f1;   --sage-100: #efede4;  --sage-200: #e2dfd2;  --sage-300: #cfcbb9;
  --sage-400: #b5b09a;  --sage-500: #96917c;  --sage-600: #777362;  --sage-700: #5b584b;
  --sage-800: #413f36;  --sage-900: #2a2923;
  /* bronze (TZ secondary #B8893A): the "Ambassador of Quality" accent */
  --sun-50: #fbf6ec;    --sun-100: #f3e7ce;   --sun-200: #e6cf9e;   --sun-300: #d9b776;
  --sun-400: #c99d52;   --sun-500: #b8893a;   --sun-600: #9a7030;   --sun-700: #7a5826;
  --sun-800: #5a411d;   --sun-900: #3a2a13;
  /* call-to-action orange (TZ #E67E22) */
  --orange-50: #fdf3e9; --orange-100: #fae2c8; --orange-200: #f5c796; --orange-300: #efaa63;
  --orange-400: #ea933f; --orange-500: #e67e22; --orange-600: #c96a16; --orange-700: #a15411;
  --orange-800: #773e0d; --orange-900: #4e2908;
  --n-0: #ffffff;  --n-50: #fafaf8;  --n-100: #f8f8f8; --n-200: #ececE8; --n-300: #dadad4;
  --n-400: #aeaea6; --n-500: #84847c; --n-600: #63635c; --n-700: #474742; --n-800: #2c2c2c;
  --n-900: #1a1a18;
  --blue: #1e88e5;                       /* data visualisation only (TZ) */

  --surface: var(--n-100);
  --surface-green: var(--sage-50);
  --ink: var(--green-950);
  --brand: var(--green-700);
  --brand-strong: var(--green-800);
  --accent: var(--orange-500);
  --accent-ink: #2b1503;
  --bronze: var(--sun-500);
  --bronze-light: var(--sun-300);

  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --fs-display: clamp(2.75rem, 1.4rem + 5.6vw, 5.5rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --fs-h2: clamp(2.125rem, 1.5rem + 2.5vw, 3.375rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --fs-h4: 1.1875rem;
  --fs-body: 1.0625rem;

  --r-sm: 2px; --r-md: 3px; --r-lg: 4px; --r-pill: 2px;
  --shadow-pop: 0 20px 44px -16px rgb(4 28 15 / 0.32), 0 4px 10px -4px rgb(4 28 15 / 0.14);
  --header-h: 84px;
}

html { scrollbar-color: var(--sun-400) var(--n-100); }
body { font-size: var(--fs-body); line-height: 1.62; }
::selection { background: var(--sun-500); color: #fff; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--sun-300); }

/* the serif carries headings and statements; UI text stays in the sans */
h1, h2, h3, .h1, .h2, .h3, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.012em; }
h1, .h1 { line-height: 1.04; letter-spacing: -0.018em; }
h2, .h2 { line-height: 1.08; }
h3, .h3 { line-height: 1.16; font-weight: 600; }
h4, .h4 { font-family: var(--font); font-weight: 700; letter-spacing: 0; }
.display { line-height: 1; letter-spacing: -0.022em; }
.lead { color: var(--n-700); font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.55; }
strong, b { color: inherit; font-weight: 700; }
.serif-i { font-family: var(--font-display); font-style: italic; font-weight: 500; }

/* --- controls: square, with a bronze key-line instead of a soft pill --------- */
.btn { border-radius: 2px; font-weight: 700; letter-spacing: 0.01em; min-height: 50px; padding-inline: 1.6rem; }
.btn:hover { box-shadow: none; transform: none; --btn-bg: var(--orange-400); }
.btn:active { transform: translateY(1px); }
.btn--secondary { --btn-bg: var(--green-700); }
.btn--secondary:hover { --btn-bg: var(--green-900); }
.btn--tertiary { --btn-bd: var(--n-800); }
.btn--tertiary:hover { --btn-bg: var(--n-800); --btn-fg: #fff; --btn-bd: var(--n-800); }
.btn--ghost { --btn-bd: rgb(255 255 255 / 0.6); }
.btn--bronze { --btn-bg: transparent; --btn-fg: var(--sun-300); --btn-bd: var(--sun-400); }
.btn--bronze:hover { --btn-bg: var(--sun-400); --btn-fg: var(--green-950); }
.btn--lg { min-height: 58px; padding-inline: 2rem; }
.more { font-weight: 700; color: var(--green-700); border-bottom: 1px solid var(--sun-400); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.more:hover { border-bottom-color: currentColor; }
.section--dark .more, .on-dark .more { color: var(--sun-300); border-bottom-color: rgb(217 183 118 / 0.5); }
.link { color: var(--green-700); text-decoration-color: var(--sun-400); }
.chip { border-radius: 2px; border-width: 1px; border-color: var(--n-300); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--green-900); border-color: var(--green-900); }
.badge { border-radius: 2px; background: var(--sage-100); color: var(--green-800); letter-spacing: 0.01em; }
.badge--solid { background: var(--green-800); }
.badge--sun { background: var(--sun-100); color: var(--sun-800); }
.input, .select, .textarea { border-width: 1px; border-color: var(--n-400); border-radius: 2px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px var(--sun-100); }
.check input { border-width: 1px; border-radius: 2px; }
.iconbtn, .slider__btn { border-radius: 2px; }
.slider__btn { border-width: 1px; }
.frame, .phero__media, .article-cover, .tile, .mapframe { border-radius: 3px; }

/* --- sections ---------------------------------------------------------------- */
.section--dark { background: var(--green-900); color: #cfdcd3; }
.section--green { background: var(--sage-50); }
.shead { align-items: start; border-top: 1px solid var(--sun-400); padding-top: clamp(1.25rem, 1rem + 1vw, 2rem); }
.shead h2 { max-width: 18ch; }
.shead > .more { align-self: end; }
.section--dark .shead { border-top-color: rgb(217 183 118 / 0.55); }
.shead--plain { border-top: 0; padding-top: 0; }

.phero { background: var(--sage-50); border-bottom: 1px solid var(--sage-200); }
.phero h1 { max-width: 16ch; }
.phero__facts { border-top-color: var(--sun-400); }
.phero__facts dd { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.phero--photo { background: var(--green-950); border-bottom: 0; }
.phero--photo::after { background: linear-gradient(180deg, rgb(4 28 15 / 0.55) 0%, rgb(4 28 15 / 0.2) 36%, rgb(4 28 15 / 0.9) 100%); }
.crumbs { letter-spacing: 0.01em; }

.acc, .acc details, .includes, .includes > div, .benefits, .benefits > div, .solrows, .solrow, .rows, .rows__item, .jobs, .job, .depts, .dept, .lines, .line { border-color: var(--n-300); }
.acc summary { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.acc details[open] summary .icon { background: var(--green-800); }
.benefits h3, .solrow b, .rows__title, .job h3 { font-family: var(--font-display); font-weight: 600; }
.benefits h3 { font-size: 1.5rem; }
.solrow b { font-size: 1.4375rem; line-height: 1.2; }
.solrow__ico, .mega__ico, .why__ico, .unit__ico, .dept__ico { border-radius: 2px; background: var(--sage-100); color: var(--green-800); }
.solrow:hover, .rows__item:hover, .job:hover { background: var(--sage-50); }
.type, .pillar, .unit, .panel, .side-box, .co-block, .tilebox, .person, .brand { border-radius: 3px; }
.table-wrap { border-radius: 3px; border-color: var(--n-300); }
.table thead th { background: var(--sage-50); letter-spacing: 0.02em; }
.stage { border-top: 1px solid var(--sun-400); }
.stage::before { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--sun-600); }
.section--dark .stage::before { color: var(--sun-300); }
.card__title { font-family: var(--font-display); font-size: 1.625rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.card__meta { letter-spacing: 0.02em; }
.tile__title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; }
.result { border-top: 1px solid var(--sun-400); }
.result b { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.bigquote blockquote, .voice blockquote { font-family: var(--font-display); font-weight: 500; font-style: italic; letter-spacing: -0.005em; }
.voice { border-radius: 3px; background: rgb(255 255 255 / 0.05); border: 1px solid rgb(217 183 118 / 0.25); }
.voice blockquote { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.3; }
.voice__avatar { border-radius: 2px; background: var(--sun-500); color: var(--green-950); }
.prose blockquote { background: var(--sage-50); border-radius: 3px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; font-style: italic; }
.prose h2 { font-size: 2rem; } .prose h3 { font-family: var(--font); font-weight: 700; }
.toc a:hover { border-left-color: var(--sun-500); }
.gate { background: var(--green-900); border-radius: 3px; }
.mv > div { border-radius: 3px; }
.mv p { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 500; line-height: 1.25; }
.tl time { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--sun-600); }
.tl::before { border-color: var(--sun-500); border-radius: 0; transform: rotate(45deg); }
.timeline::before { background: var(--sun-200); width: 1px; }
.option__box { border-width: 1px; border-radius: 3px; }
.option input:checked + .option__box { box-shadow: inset 0 0 0 1px var(--green-700); background: var(--sage-50); }
.wiz__bar i { background: var(--sun-500); }
.wiz__mark i { border-width: 1px; border-radius: 2px; font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.wiz__mark.is-done i { background: var(--green-800); border-color: var(--green-800); }
.summary { border-radius: 3px; background: var(--sage-50); }
.sdg b { font-family: var(--font-display); color: var(--sun-300); }
.sdg { border-radius: 3px; border: 1px solid rgb(217 183 118 / 0.25); background: transparent; }
.notfound b { font-family: var(--font-display); color: var(--sage-200); }
.empty { border-radius: 3px; border-width: 1px; }
.toast { border-radius: 2px; background: var(--green-950); }
.modal__box, .cookie, .dd__menu { border-radius: 3px; }
.sample-note::before { border-radius: 2px; }
.cta { background: var(--green-900); }
.cta h2 { max-width: 14ch; }
.cta__form { border-radius: 3px; }
.cta__form h3 { font-size: 1.75rem; }
.cta__points .icon { color: var(--sun-300); }
