/* ==========================================================================
   Tenders4Msme — 2026 site
   Palette: professional green, orange and yellow, matched to the Tenders4MSME CMS,
   on a soft green-tinted white. Type: Archivo (wide) for headings, IBM Plex Sans for text.
   ========================================================================== */

:root {
  /* Brand palette: green, orange and yellow, matched to the Tenders4MSME CMS */
  --ink: #1E3F20;          /* deep forest green: headings, dark panels, footer */
  --ink-2: #2C5A2E;
  --ink-soft: #EDF5E3;
  --green: #3F7F1A;        /* primary green: buttons, links, icons on white */
  --green-dk: #336A14;
  --green-bright: #8BC34A; /* CMS lime green: accents and stripes */
  --green-soft: #EEF7E1;
  --saffron: #F39200;      /* orange */
  --saffron-dk: #B35F00;   /* orange for text on white */
  --saffron-soft: #FFF3E0;
  --yellow: #FFC20E;
  --yellow-soft: #FFF8DD;
  --paper: #F7FAF3;
  --white: #FFFFFF;
  --text: #1F2A1C;
  --slate: #56634F;
  --line: #DDE6D5;
  --line-2: #C5D3BA;
  --danger: #B42318;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --step-5: clamp(2.5rem, 1.6rem + 4vw, 4.6rem);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --wrap: 1200px;
  --shadow-file: 0 1px 0 var(--line-2), 0 18px 40px -18px rgba(30, 63, 32, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  color: var(--text); background: var(--white); text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--saffron-dk); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-stretch: 112%; letter-spacing: -.01em; }
h1 { font-size: var(--step-5); font-weight: 780; font-stretch: 118%; letter-spacing: -.02em; }
h2 { font-size: var(--step-4); font-weight: 720; }
h3 { font-size: var(--step-1); font-weight: 650; font-stretch: 105%; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -40px; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.lead { font-size: var(--step-1); color: var(--slate); max-width: 62ch; line-height: 1.55; }
.muted { color: var(--slate); }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* Tricolor rule taken from the brand mark */
.tricolor { height: 4px; background: linear-gradient(90deg, var(--saffron) 0 33.33%, var(--yellow) 33.33% 66.66%, var(--green-bright) 66.66%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font: 600 1rem/1 var(--f-body); padding: .95em 1.4em; border-radius: var(--r-sm);
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dk); color: #fff; }
.btn--saffron { background: var(--saffron); color: #2A1600; }
.btn--saffron:hover { background: #FFA42B; color: #2A1600; }
.btn--outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn--sm { padding: .7em 1em; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn .ico { width: 1.2em; height: 1.2em; }
.textlink { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 2px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: #D6E6CC; font-size: var(--step--1); }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__left, .topbar__right { display: flex; gap: 1.5rem; align-items: center; }
.topbar__link { color: #FFD24D !important; font-weight: 600; }
.topbar .ico { opacity: .8; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font: 760 1.2rem/1.1 var(--f-display); font-stretch: 115%; letter-spacing: -.01em; }
.brand__text small { font-size: .78rem; color: var(--slate); }
.brand--light, .brand--light strong { color: #fff; }
.brand--light small { color: #B9CEAC; }

.nav__menu { display: flex; align-items: center; gap: 1.25rem; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; align-items: center; }
.nav__list > li { position: relative; }
.nav__list > li > a, .nav__drop {
  display: inline-flex; align-items: center; gap: .3em; padding: .6rem .75rem; border-radius: var(--r-sm);
  font: 500 .98rem/1 var(--f-body); color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav__list > li > a:hover, .nav__drop:hover, .nav__drop[aria-expanded="true"] { background: var(--ink-soft); color: var(--ink); }
.nav__list [aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--saffron); border-radius: 0; }
.nav__drop .ico { width: 1em; height: 1em; transition: transform .2s; }
.nav__drop[aria-expanded="true"] .ico { transform: rotate(180deg); }
.nav__toggle { display: none; }

.mega, .drop {
  position: absolute; top: calc(100% + 10px); background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: 0 24px 60px -20px rgba(30,63,32,.35);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-mega.open .mega, .has-drop.open .drop { opacity: 1; visibility: visible; transform: none; }
.mega { left: 50%; translate: -38% 0; width: min(980px, 92vw); padding: 1.5rem 1.5rem 0; }
.mega__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mega__h { font: 650 .82rem/1.2 var(--f-body); color: var(--saffron-dk); margin: 0 0 .6rem; letter-spacing: .02em; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: flex; gap: .7rem; padding: .6rem; margin: 0 -.6rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.mega li a:hover { background: var(--paper); }
.mega li a .ico { color: var(--green); margin-top: .1em; width: 1.3em; height: 1.3em; }
.mega li small { display: block; font-weight: 400; color: var(--slate); font-size: .84rem; margin-top: .2rem; }
.mega__foot { display: flex; gap: 1.5rem; margin: 1.25rem -1.5rem 0; padding: .9rem 1.5rem; background: var(--paper); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-md) var(--r-md); }
.mega__foot a { font-weight: 600; font-size: .92rem; color: var(--ink); }
.drop { left: 0; min-width: 240px; list-style: none; margin: 0; padding: .5rem; }
.drop a { display: block; padding: .6rem .75rem; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: .95rem; }
.drop a:hover { background: var(--paper); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--paper { background: var(--paper); }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--slate); font-size: var(--step-1); line-height: 1.5; }
.section__head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.section__head--split > div { max-width: 700px; }
.kicker { display: inline-block; font: 600 .95rem/1.2 var(--f-body); color: var(--green); margin-bottom: .8rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; background:
  linear-gradient(180deg, var(--paper) 0, #fff 85%); }
.hero::before { /* faint ruled-ledger lines, like a file register */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(180deg, transparent 0 35px, rgba(30,63,32,.05) 35px 36px);
  mask-image: linear-gradient(90deg, #000 0, transparent 55%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem); line-height: 1.02; margin-bottom: .35em; max-width: 12ch; }
.hero .lead { margin-bottom: 1.8rem; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--slate); font-size: .95rem; }
.hero__trust li { display: flex; align-items: center; gap: .4rem; }
.hero__trust .ico { color: var(--green); }

/* The bid file: the signature element */
.bidfile { position: relative; }
.bidfile__photo { border-radius: var(--r-lg); overflow: hidden; margin-left: 14%; }
.bidfile__photo .photo { border-radius: var(--r-lg); }
.folder {
  position: relative; width: min(390px, 82%); margin-top: -30%; background: #fff;
  border: 1px solid var(--line-2); border-radius: 3px 10px 10px 10px; box-shadow: var(--shadow-file);
  padding: 1.4rem 1.4rem 1.2rem;
}
.folder::before { /* tab */
  content: ""; position: absolute; left: -1px; top: -18px; width: 44%; height: 19px;
  background: #fff; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 8px 8px 0 0;
}
.folder::after { content: ""; position: absolute; left: 10px; top: -12px; width: calc(44% - 20px); height: 4px; background: linear-gradient(90deg, var(--saffron) 0 33%, var(--yellow) 33% 66%, var(--green-bright) 66%); border-radius: 2px; }
.folder__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px dashed var(--line-2); padding-bottom: .7rem; margin-bottom: .6rem; }
.folder__title { font: 700 1.02rem/1.2 var(--f-display); font-stretch: 110%; color: var(--ink); margin: 0; }
.folder__ref { font-size: .8rem; color: var(--slate); }
.folder ol { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.folder li { display: flex; align-items: center; gap: .7rem; padding: .48rem 0; font-size: .95rem; border-bottom: 1px solid #EEF2F6; }
.folder li:last-child { border-bottom: 0; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: #fff; background: #fff; }
.tick svg { width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; }
.folder li.done .tick { background: var(--green); border-color: var(--green); }
.folder li.done .tick svg { opacity: 1; }
.folder__stamp {
  position: absolute; right: -18px; bottom: -22px; transform: rotate(-9deg); padding: .45rem .8rem;
  border: 2px solid var(--saffron-dk); color: var(--saffron-dk); background: rgba(255,255,255,.92);
  font: 800 .9rem/1.1 var(--f-display); font-stretch: 120%; border-radius: 4px; text-align: center;
}
.folder__stamp small { display: block; font: 500 .7rem/1.2 var(--f-body); }
@media (prefers-reduced-motion: no-preference) {
  .js .folder li .tick { transition: background-color .25s, border-color .25s; }
  .js .folder li .tick svg { transition: opacity .2s .1s; }
  .js .folder__stamp { opacity: 0; transform: rotate(-9deg) scale(1.6); transition: opacity .25s, transform .35s cubic-bezier(.2,1.6,.4,1); }
  .js .folder.stamped .folder__stamp { opacity: 1; transform: rotate(-9deg) scale(1); }
}

/* ---------- Photos ---------- */
.photo { margin: 0; overflow: hidden; border-radius: var(--r-md); background: var(--ink-soft); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--placeholder {
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(243,146,0,.16), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(139,195,74,.25), transparent 60%),
    linear-gradient(135deg, #2C5A2E, var(--ink));
  color: #fff;
}
.photo--placeholder::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 27px, rgba(255,255,255,.05) 27px 28px); }
.photo__art { position: relative; flex: 1; display: grid; place-items: center; }
.photo__icon { width: 30%; max-width: 110px; height: auto; color: rgba(255,255,255,.85); stroke-width: 1; }
.photo__cap { position: relative; padding: .7rem 1rem; font-size: .82rem; color: #D3E3C8; border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- Trust strip ---------- */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip__list { list-style: none; margin: 0; padding: 1.1rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.strip__list li { display: flex; align-items: center; gap: .55rem; font: 600 1rem/1.2 var(--f-display); font-stretch: 108%; color: var(--ink); }
.strip__list .ico { color: var(--saffron-dk); width: 1.4em; height: 1.4em; }

/* ---------- Audience chips ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { padding: .55rem 1rem; border: 1px solid #F1DC9A; border-radius: 999px; background: var(--yellow-soft); font-weight: 500; color: var(--ink); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.two-col--top { align-items: start; }

/* ---------- Service index (file register style) ---------- */
.register { border-top: 3px solid var(--green-bright); }
.register__row {
  display: grid; grid-template-columns: 56px 1.1fr 1.6fr 40px; gap: 1.25rem; align-items: center;
  padding: 1.3rem .5rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: background-color .15s;
}
.register__row:hover { background: var(--paper); color: var(--text); }
.register__ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--green-soft); color: var(--green); }
.register__ico .ico { width: 26px; height: 26px; }
.register__title { font: 650 1.15rem/1.25 var(--f-display); font-stretch: 106%; color: var(--ink); margin: 0; }
.register__desc { margin: 0; color: var(--slate); }
.register__go { color: var(--line-2); justify-self: end; }
.register__row:hover .register__go { color: var(--saffron-dk); }

/* ---------- Process (true sequence) ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: calc(100% / 6); top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.process li { position: relative; counter-increment: step; padding-right: 1.25rem; }
.process li::before {
  content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 2px solid var(--green); color: var(--green); font: 750 1.1rem/1 var(--f-display); margin-bottom: 1rem; position: relative;
}
.process li:last-child::before { background: var(--saffron); border-color: var(--saffron); color: #2A1600; }
.process h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.process p { font-size: .95rem; color: var(--slate); margin: 0; }

/* ---------- Reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; }
.reason { padding-left: 1.25rem; border-left: 3px solid var(--saffron); }
.reason:nth-child(2) { border-left-color: var(--yellow); }
.reason:nth-child(3) { border-left-color: var(--green-bright); }
.reason .ico { width: 28px; height: 28px; color: var(--green); margin-bottom: .6rem; }
.reason p { color: var(--slate); margin: 0; }

/* ---------- Readiness teaser (navy panel) ---------- */
.panel-ink { background: var(--ink); color: #DDEBD3; border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.panel-ink h2, .panel-ink h3 { color: #fff; }
.panel-ink::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255,194,14,.18); }
.panel-ink__side { align-self: stretch; border-left: 1px solid rgba(255,255,255,.14); padding-left: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.panel-ink .checks { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .6rem; }
.panel-ink .checks li { display: flex; gap: .6rem; align-items: flex-start; }
.panel-ink .checks .ico { color: #B5E07F; margin-top: .2em; }

/* ---------- Cards (used sparingly: industries, training formats, journeys) ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; }
.tile .ico { width: 32px; height: 32px; color: var(--green); margin-bottom: .9rem; }
.tile h3 { font-size: 1.08rem; }
.tile p { color: var(--slate); font-size: .96rem; margin: 0; }
.tile--link { text-decoration: none; color: inherit; display: block; transition: border-color .15s; }
.tile--link:hover { border-color: var(--green); color: inherit; }

/* ---------- Training band ---------- */
.training-band { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--saffron-soft); }
.training-band__body { padding: clamp(2rem, 5vw, 3.5rem); }
.training-band .photo { border-radius: 0; height: 100%; }

/* ---------- Testimonials ---------- */
.quote { margin: 0; padding: 1.75rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.quote p { font-size: 1.08rem; color: var(--ink); }
.quote cite { font-style: normal; font-weight: 600; font-size: .95rem; }
.quote cite span { display: block; font-weight: 400; color: var(--slate); }

/* ---------- CTA band ---------- */
.ctaband { background: radial-gradient(80% 140% at 100% 0%, rgba(139,195,74,.22), transparent 60%), var(--ink); color: #DDEBD3; position: relative; }
.ctaband::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--saffron) 0 33.33%, var(--yellow) 33.33% 66.66%, var(--green-bright) 66.66%); }
.ctaband__inner { display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.ctaband h2 { color: #fff; font-size: var(--step-3); }
.ctaband p { margin: 0; max-width: 60ch; }
.ctaband__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Page head ---------- */
.pagehead { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.pagehead__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.pagehead__grid > div:only-child { grid-column: 1 / -1; }
.pagehead h1 { font-size: var(--step-4); max-width: 22ch; }
.crumbs { font-size: .9rem; color: var(--slate); margin-bottom: 1rem; }
.crumbs a { color: var(--slate); }
.crumbs span[aria-hidden] { margin: 0 .3rem; color: var(--line-2); }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Service detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .1rem; }
.checklist li { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.checklist .ico { color: var(--green); margin-top: .25em; }
.aside { position: sticky; top: 100px; display: grid; gap: 1.25rem; }
.aside__box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; background: #fff; }
.aside__box--ink { background: var(--ink); color: #DDEBD3; border-color: var(--ink); }
.aside__box--ink h3 { color: #fff; }
.aside__box h3 { font-size: 1.05rem; }
.aside__box ul { list-style: none; padding: 0; margin: 0; }
.aside__box li { padding: .35rem 0; }
.aside__box li a { text-decoration: none; }
.aside__box li a[aria-current] { font-weight: 600; color: var(--saffron-dk); }
.tagrow { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.tagrow li { padding: .35rem .8rem; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .92rem; font-weight: 500; }

/* ---------- Training modules (sequence table) ---------- */
.modules { border-top: 3px solid var(--green-bright); counter-reset: m; }
.module { display: grid; grid-template-columns: 70px 1fr 110px; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); counter-increment: m; }
.module::before { content: counter(m, decimal-leading-zero); font: 750 1.5rem/1 var(--f-display); color: var(--saffron-dk); font-stretch: 120%; }
.module h3 { margin-bottom: .25rem; }
.module p { margin: 0; color: var(--slate); font-size: .96rem; }
.module__time { text-align: right; color: var(--slate); font-size: .92rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .8rem .9rem; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; color: var(--text);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 3px solid rgba(243,146,0,.35); outline-offset: 0; }
.field input:user-invalid { border-color: var(--danger); }
.field__hint { font-size: .86rem; color: var(--slate); margin-top: .35rem; }
.field--check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.field--check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--green); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 20px 50px -35px rgba(30,63,32,.4); }
.formcard h2 { font-size: var(--step-2); }
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--r-md); padding: 1.75rem; text-align: center; background: var(--paper); cursor: pointer; transition: border-color .15s, background-color .15s; }
.dropzone.is-over { border-color: var(--saffron); background: var(--saffron-soft); }
.dropzone .ico { width: 36px; height: 36px; color: var(--green); }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filelist { list-style: none; padding: 0; margin: .75rem 0 0; font-size: .92rem; text-align: left; }
.filelist li { padding: .3rem 0; border-bottom: 1px solid var(--line); }

.alert { display: flex; gap: .75rem; padding: 1rem 1.2rem; border-radius: var(--r-md); margin-bottom: 1.25rem; font-size: .97rem; }
.alert ul { margin: .3rem 0 0; }
.alert--ok { background: var(--green-soft); color: #27511A; }
.alert--err { background: #FDECEA; color: #7A1A12; }
.alert .ico { flex: none; margin-top: .2em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ico { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.contact-list strong { display: block; color: var(--ink); }
.contact-list a { text-decoration: none; }
.map { border: 0; width: 100%; aspect-ratio: 4/3; border-radius: var(--r-md); }

/* ---------- FAQ ---------- */
.faqs { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; cursor: pointer; font: 600 1.06rem/1.35 var(--f-body); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq__chev { width: 1.3em; height: 1.3em; flex: none; transition: transform .2s; color: var(--saffron-dk); }
.faq[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 2.5rem 1.2rem 0; color: var(--slate); }
.faq__a p { margin: 0; }
.faq-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.faq-cats a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: .95rem; color: var(--ink); }
.faq-cats a:hover { border-color: var(--green); }

/* ---------- Articles ---------- */
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; border-top: 3px solid var(--green-bright); }
.article-row { display: block; padding: 1.5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.article-row:hover h3 { color: var(--saffron-dk); }
.article-row h3 { margin-bottom: .4rem; transition: color .15s; }
.article-row p { margin: 0; color: var(--slate); }
.meta { font-size: .88rem; color: var(--slate); margin-bottom: .5rem; display: flex; gap: 1rem; }
.meta .cat { color: var(--green); font-weight: 600; }

/* ---------- Tools: quiz & calculator ---------- */
.quiz { max-width: 760px; }
.quiz__progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 1.5rem; }
.quiz__bar { height: 100%; width: 0; background: var(--green); transition: width .3s; }
.quiz__q { display: none; }
.quiz__q.is-active { display: block; }
.quiz__q h2 { font-size: var(--step-2); }
.quiz__step { font-size: .92rem; color: var(--slate); margin-bottom: .5rem; }
.options { display: grid; gap: .6rem; margin: 1.25rem 0 1.5rem; }
.option { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border: 1.5px solid var(--line-2); border-radius: var(--r-md); cursor: pointer; background: #fff; font-weight: 500; }
.option:hover { border-color: var(--green); }
.option input { width: 20px; height: 20px; accent-color: var(--green); }
.option:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.quiz__nav { display: flex; justify-content: space-between; gap: 1rem; }
.result { display: none; }
.result.is-active { display: block; }
.gauge { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.gauge__ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, var(--green)) calc(var(--p) * 1%), var(--line) 0); }
.gauge__ring span { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 780 1.8rem/1 var(--f-display); color: var(--ink); }
.gaps { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.gaps li { display: flex; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.gaps .ico { color: var(--saffron-dk); margin-top: .2em; }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.calc__out { background: var(--ink); color: #DDEBD3; border-radius: var(--r-lg); padding: 2rem; position: sticky; top: 100px; }
.calc__out h2 { color: #fff; font-size: var(--step-2); }
.calc__line { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.calc__line strong { color: #fff; font-variant-numeric: tabular-nums; }
.calc__total { font: 780 2rem/1.1 var(--f-display); color: #FFD24D; margin: 1rem 0 .25rem; }
.calc__note { font-size: .88rem; color: #B9CEAC; margin: 1rem 0 0; }

/* ---------- Journeys ---------- */
.journey { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.75rem; }
.journey header { display: flex; gap: .9rem; align-items: center; margin-bottom: .8rem; }
.journey header .ico { width: 44px; height: 44px; padding: 10px; border-radius: var(--r-md); background: var(--saffron-soft); color: var(--saffron-dk); }
.journey h3 { margin: 0; }
.journey ol { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--ink); }
.journey ol li { margin-bottom: .3rem; }

/* ---------- Grooming steps ---------- */
.ladder { list-style: none; padding: 0; margin: 0; counter-reset: g; }
.ladder li { counter-increment: g; display: grid; grid-template-columns: 54px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.ladder li::before { content: counter(g); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font: 700 1rem/1 var(--f-display); }
.ladder h3 { margin: .35rem 0 .2rem; font-size: 1.05rem; }
.ladder p { margin: 0; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: #173318; color: #C8D8BF; font-size: .96rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer__brand p { margin: 1.1rem 0; max-width: 40ch; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #E6EFDF; text-decoration: none; }
.site-footer a:hover { color: #FFD24D; }
.footer__h { display: block; font: 650 1rem/1.2 var(--f-display); font-stretch: 108%; color: #fff; margin: 0 0 1rem; }
.footer__contact .ico { color: var(--saffron); margin-right: .3rem; }
.newsletter { margin-top: 1.75rem; }
.newsletter__row { display: flex; gap: .5rem; }
.newsletter input { flex: 1; min-width: 0; padding: .7rem .8rem; border-radius: var(--r-sm); border: 1px solid #3A6436; background: #1F4220; color: #fff; font: inherit; }
.newsletter input::placeholder { color: #8FA884; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 0 5.5rem; border-top: 1px solid #2C4F2A; font-size: .88rem; }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Floating actions ---------- */
.float-actions { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: .6rem; z-index: 60; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 25px -8px rgba(0,0,0,.45); }
.float-btn .ico { width: 26px; height: 26px; }
.float-btn--wa { background: #1FA855; }
.float-btn--call { background: var(--saffron); color: #2A1600; }
.float-btn:hover { color: #fff; filter: brightness(1.08); }

/* ---------- Misc ---------- */
.notice { padding: 1rem 1.25rem; border-left: 4px solid var(--saffron); background: var(--saffron-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .95rem; }
.stats-row { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2rem; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.big404 { font: 800 clamp(5rem, 15vw, 10rem)/1 var(--f-display); font-stretch: 125%; color: var(--ink-soft); -webkit-text-stroke: 2px var(--green); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__list > li > a, .nav__drop { padding: .6rem .5rem; font-size: .94rem; }
  .nav__cta .btn { padding: .8em 1em; }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .process::before { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav__toggle { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; color: var(--green); cursor: pointer; }
  .nav__toggle .ico { width: 24px; height: 24px; }
  .nav__toggle .ico--close, .nav-open .nav__toggle .ico--open { display: none; }
  .nav-open .nav__toggle .ico--close { display: block; }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; top: 0; width: min(420px, 100%); background: #fff; z-index: 70;
    flex-direction: column; align-items: stretch; gap: 1rem; padding: 5rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; box-shadow: -20px 0 60px -20px rgba(30,63,32,.4);
  }
  .nav-open .nav__menu { transform: none; visibility: visible; }
  .site-header { backdrop-filter: none; background: #fff; }
  .nav-open .nav__toggle { position: relative; z-index: 80; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__list > li > a, .nav__drop { width: 100%; justify-content: space-between; padding: .9rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__list [aria-current="page"] { box-shadow: inset 3px 0 0 var(--saffron); }
  .mega, .drop { position: static; opacity: 1; visibility: visible; transform: none; translate: none; box-shadow: none; border: 0; width: auto; display: none; padding: .5rem 0; }
  .has-mega.open .mega, .has-drop.open .drop { display: block; }
  .mega__cols { grid-template-columns: 1fr; gap: 1rem; }
  .mega li small { display: none; }
  .mega__foot { flex-direction: column; gap: .6rem; margin: .5rem 0 0; border-radius: var(--r-sm); }
  .nav__cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
  .scrim { position: fixed; inset: 0; background: rgba(20,45,22,.45); z-index: 45; }

  .hero__grid, .two-col, .pagehead__grid, .detail, .contact-grid, .calc, .training-band { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .bidfile__photo { margin-left: 8%; }
  .panel-ink__side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 2rem; }
  .aside, .calc__out { position: static; }
  .pagehead__photo { display: none; }
  .ctaband__inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .articles { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hide-sm { display: none !important; }
  .topbar__inner { font-size: .8rem; }
  .topbar__right { display: none; }
  .topbar__left { gap: 1rem; }
  .brand__text small { display: none; }
  .register__row { grid-template-columns: 44px 1fr; gap: .4rem 1rem; }
  .register__ico { width: 44px; height: 44px; grid-row: span 2; }
  .register__go { display: none; }
  .process { grid-template-columns: 1fr; row-gap: 1.25rem; }
  .process li { display: grid; grid-template-columns: 46px 1fr; column-gap: 1rem; padding: 0; }
  .process li::before { grid-row: span 2; margin: 0; }
  .reasons, .grid-2, .grid-3, .grid-4, .form__row { grid-template-columns: 1fr; }
  .folder { width: 92%; margin-top: -22%; }
  .folder__stamp { right: -6px; }
  .module { grid-template-columns: 48px 1fr; }
  .module__time { grid-column: 2; text-align: left; }
  .strip__list { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
}

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

@media print {
  .topbar, .site-header, .float-actions, .ctaband, .site-footer { display: none; }
}

/* Late adjustments */
.detail > div > h2:not(:first-child) { margin-top: 2.5rem; }
.nav-open .float-actions { display: none; }
.aside__box--ink a:not(.btn) { color: #fff; }
.nav__list > li > a, .nav__drop, .nav__cta .btn { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1240px) {
  .nav__cta { display: none; }
  .brand__text small { display: none; }
}

/* Green / orange / yellow rhythm on icon tiles, echoing the CMS dashboard */
.register__row:nth-child(3n+2) .register__ico { background: var(--saffron-soft); color: var(--saffron-dk); }
.register__row:nth-child(3n) .register__ico { background: var(--yellow-soft); color: #8A6300; }
.grid-4 .tile:nth-child(3n+2) .ico, .grid-3 .tile:nth-child(3n+2) .ico, .grid-2 .tile:nth-child(3n+2) .ico { color: var(--saffron-dk); }
.grid-4 .tile:nth-child(3n) .ico, .grid-3 .tile:nth-child(3n) .ico, .grid-2 .tile:nth-child(3n) .ico { color: #A67700; }
.tile { border-top: 3px solid var(--green-bright); }
.grid-4 .tile:nth-child(3n+2), .grid-3 .tile:nth-child(3n+2), .grid-2 .tile:nth-child(3n+2) { border-top-color: var(--saffron); }
.grid-4 .tile:nth-child(3n), .grid-3 .tile:nth-child(3n), .grid-2 .tile:nth-child(3n) { border-top-color: var(--yellow); }
.journey:nth-child(3n+1) header .ico { background: var(--green-soft); color: var(--green); }
.journey:nth-child(3n) header .ico { background: var(--yellow-soft); color: #8A6300; }
