/* Verda Compliance — public site styles, shared by index.html, about.html and services.html.
   No build step: edit here, publish the file (see infra/lib/verda-holding-stack.ts). */

/* ---- Verda brand tokens ---- */
:root {
  --teal:      #00B98D;
  --teal-dark: #009b76;
  --teal-text: #007a5e;   /* the teal for small text on white (5.3:1) */
  --navy:      #053D54;
  --navy-deep: #042635;
  --green-1:   #4FBB4C;
  --green-2:   #83C732;
  --ink:       #0d2b38;
  --body:      #2c434d;
  --muted:     #5b6b73;
  --bg:        #ffffff;
  --bg-soft:   #f4f8f7;
  --border:    #e4ecea;
  --radius:    14px;
  --maxw:      1140px;
  --header-h:  71px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Hero image — self-hosted (the CSP allows images from this site only). */
  --hero-image: url("hero.jpg");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; text-wrap: pretty; }
h1, h2, h3, h4, .lead, .tag, .statement, .highlight, .big-statement { text-wrap: balance; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; font-weight: 600; padding: 10px 18px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 15px; line-height: 1.25; text-align: center;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 20px rgba(0,185,141,.32); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,185,141,.40); }
.btn-outline { background: #fff; color: var(--navy); border-color: rgba(5,61,84,.30); }
.btn-outline:hover { border-color: var(--navy); background: var(--bg-soft); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta-row.center { justify-content: center; }

/* ============ TOP NAV (white) ============ */
.topbar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.ribbon { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
/* Full brand lockup on the white bar (navy "COMPLIANCE" reads on white). */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; display: block; }
nav.menu { display: flex; align-items: center; gap: 4px; }
nav.menu a.link { color: var(--navy); font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
nav.menu a.link:hover { background: var(--bg-soft); color: var(--teal-text); }
nav.menu a.link[aria-current="page"] { color: var(--teal-text); background: rgba(0,185,141,.10); }
nav.menu a.login { margin-left: 10px; }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 12px; cursor: pointer;
  background: #fff; color: var(--navy); border: 1px solid var(--border);
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* ============ HERO (image-focused) ============ */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-deep); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-image); background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, rgba(4,38,53,.94) 0%, rgba(5,61,84,.80) 46%, rgba(0,185,141,.42) 100%);
}
.hero > * { position: relative; z-index: 2; }
.hero-body { padding-top: 88px; padding-bottom: 96px; }
.hero-inner { max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: #d7fff3; background: rgba(0,185,141,.22); border: 1px solid rgba(255,255,255,.18);
  padding: 7px 16px; border-radius: 999px; margin: 0 0 24px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); flex: none; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -.5px; font-weight: 700; margin: 0 0 22px; }
.hero h1 .accent { color: #5fe6c1; }
.hero .lede { font-size: clamp(16px, 1.9vw, 20px); color: rgba(255,255,255,.92); max-width: 56ch; margin: 0 0 16px; }
.hero .lede-2 { font-size: 16px; color: rgba(255,255,255,.80); max-width: 62ch; margin: 0 0 16px; }
.hero .cta-row { margin-top: 30px; }

/* Home: room below the hero copy for the route cards that overlap its bottom edge. */
.hero--home .hero-body { padding-top: 96px; padding-bottom: 184px; }
/* About / Services: a shorter page header. */
.hero--page .hero-body { padding-top: 76px; padding-bottom: 88px; }
.hero--page h1 { font-size: clamp(32px, 4.6vw, 52px); }
.hero--page.has-jump .hero-body { padding-bottom: 128px; }

/* ============ HOME — THREE ROUTES ============ */
.routes { position: relative; z-index: 3; margin-top: -116px; padding-bottom: 32px; }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.route-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px 24px; box-shadow: 0 18px 40px rgba(5,61,84,.12);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.route-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(5,61,84,.16); border-color: rgba(0,185,141,.55); }
.route-card:focus-within { outline: 3px solid var(--teal); outline-offset: 3px; }
.route-card h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--navy); }
/* The title is the link; it stretches over the whole card so one tap anywhere opens it. */
.route-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.route-card h2 a:focus-visible { outline: none; }
.route-card .tag { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--teal-text); }
.route-card .desc { margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.route-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--navy); }
.route-card .more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.route-card:hover .more { color: var(--teal-text); }
.route-card:hover .more svg { transform: translateX(3px); }

.ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(0,185,141,.12); color: var(--teal-text); margin-bottom: 18px; flex: none; }
.ic svg { width: 26px; height: 26px; }

/* ============ SECTIONS ============ */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.routes + .section { padding-top: 72px; }

.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--teal-text); }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0; flex: none; }
.h2 { margin: 0 0 20px; font-size: clamp(26px, 3.1vw, 36px); line-height: 1.2; letter-spacing: -.3px; font-weight: 700; color: var(--navy); }

.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head p { font-size: 17px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.split > .h2 { margin-bottom: 0; }
.prose p { font-size: 17px; color: var(--body); }
.prose > :last-child { margin-bottom: 0; }
.prose .lead { font-size: 19px; font-weight: 500; color: var(--navy); }

/* A short bold line from the copy, set apart with the teal bar. */
.statement { margin: 26px 0; padding-left: 18px; border-left: 4px solid var(--teal); font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--navy); }
.statement + .cta-row { margin-top: 4px; }
.prose .statement { font-size: 18px; color: var(--navy); }

/* About: "Compliance, Connected, Controlled." */
.tagline { margin: 0; font-size: clamp(32px, 4vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -.5px; }
.tagline span { display: block; }
.tagline span:nth-child(1) { color: var(--teal-dark); }
.tagline span:nth-child(2) { color: var(--green-1); }
.tagline span:nth-child(3) { color: var(--navy); }

/* About: "The first new WEEE Producer Compliance Scheme approved since 2015." */
.highlight { margin: 8px 0 0; padding: 24px 26px; background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--teal); border-radius: var(--radius); font-size: 20px; line-height: 1.45; font-weight: 600; color: var(--navy); box-shadow: 0 10px 30px rgba(5,61,84,.06); }

/* About: the compliance journey, left to right. */
.journey { list-style: none; margin: 48px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.journey li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.journey li:not(:first-child)::before { content: ""; position: absolute; top: 32px; right: calc(50% + 40px); width: calc(100% - 64px); height: 2px; background: linear-gradient(90deg, var(--teal), var(--green-2)); }
.journey .node { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--teal); color: var(--teal-text); box-shadow: 0 8px 20px rgba(5,61,84,.08); }
.journey .node svg { width: 28px; height: 28px; }
.journey .label { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--navy); max-width: 16ch; }
.big-statement { max-width: 900px; margin: 48px auto 0; text-align: center; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; font-weight: 600; color: var(--navy); }

/* ============ VERDA CORE ============ */
.core-graphic { display: block; width: 100%; max-width: 600px; height: auto; margin: 8px auto 40px; }
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; transition: transform .15s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(5,61,84,.08); }
.card h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.center-row { display: flex; justify-content: center; margin-top: 36px; }

/* ============ SERVICES ============ */
.jump { position: relative; z-index: 3; margin-top: -64px; }
.jump-inner { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 40px rgba(5,61,84,.12); }
.jump a { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--navy); transition: background .2s, color .2s; }
.jump a:hover { background: var(--bg-soft); color: var(--teal-text); }
.jump + .section { padding-top: 80px; }

.service-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px;
  grid-template-areas: "head list" "body list" "close list";
  grid-template-rows: auto auto 1fr; align-items: start;
}
.service-head { grid-area: head; }
.service-body { grid-area: body; }
.service-close { grid-area: close; }
.service-side { grid-area: list; }
.service-head .kicker { margin-bottom: 12px; }
.service-close > :first-child { margin-top: 16px; }
.service-close .statement { margin-top: 28px; }
.service-close .cta-row { margin-top: 24px; }
.service-close p:not(.statement) { font-size: 17px; color: var(--body); }

.list-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 28px 30px; box-shadow: 0 10px 30px rgba(5,61,84,.06); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.ticks li { position: relative; padding-left: 34px; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,185,141,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007a5e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Services §5: Compliance · Obligations · Reporting · Evidence */
.pillars { display: grid; gap: 14px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.pillar .letter { flex: none; width: 44px; font-size: 36px; line-height: 1; font-weight: 700; text-align: center; }
.pillar .letter.c { color: var(--teal); }
.pillar .letter.o { color: var(--green-1); }
.pillar .letter.r { color: var(--teal-dark); }
.pillar .letter.e { color: var(--navy); }
.pillar h4 { margin: 0 0 2px; font-size: 16px; font-weight: 600; color: var(--navy); }
.pillar p { margin: 0; font-size: 15px; color: var(--muted); }

/* ============ CONTACT (site-wide final call to action) ============ */
.contact { background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 55%, #08665f 100%); color: #fff; padding: 88px 0; text-align: center; }
.contact-inner { max-width: 780px; }
.contact h2 { margin: 0 0 18px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -.3px; font-weight: 700; }
.contact .lead { font-size: 19px; font-weight: 500; color: #fff; }
.contact p { color: rgba(255,255,255,.84); }
.contact .strong { font-weight: 600; color: #fff; margin-bottom: 30px; }
.contact .email { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 15px; color: rgba(255,255,255,.84); }
.contact .email svg { width: 18px; height: 18px; color: #5fe6c1; }
.contact .email a { color: #fff; border-bottom: 1px solid rgba(95,230,193,.6); }
.contact .email a:hover { color: #5fe6c1; }

/* ============ FOOTER ============ */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 36px 0 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-top .brand img { height: 40px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { font-size: 14px; font-weight: 500; color: var(--navy); }
.footer-nav a:hover { color: var(--teal-text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-bottom p { margin: 0; font-size: 14px; color: var(--muted); }
.footer-bottom a:hover { color: var(--teal-text); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 20px; }
  .service-grid { grid-template-columns: 1fr; grid-template-areas: "head" "body" "list" "close"; grid-template-rows: none; }
  .service-side { margin-top: 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: 1fr; gap: 0; max-width: 460px; margin-top: 36px; }
  .journey li { flex-direction: row; text-align: left; gap: 18px; padding: 0 0 22px; }
  .journey li:not(:first-child)::before { display: none; }
  .journey li:not(:last-child)::after { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--teal), var(--green-2)); }
  .journey .label { max-width: none; }
  .big-statement { text-align: left; margin-top: 28px; }
}
@media (max-width: 900px) {
  .route-grid { grid-template-columns: 1fr; gap: 16px; }
  .routes { margin-top: -72px; }
  .hero--home .hero-body { padding-bottom: 120px; }
}
@media (max-width: 860px) {
  /* With script, the menu folds behind a button; without it, it wraps under the logo. */
  .ribbon { flex-wrap: wrap; }
  nav.menu { flex-wrap: wrap; }
  nav.menu a.link { padding: 8px 11px; font-size: 14px; }
  .js .ribbon { flex-wrap: nowrap; }
  .js .menu-toggle { display: inline-flex; }
  .js nav.menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 18px; background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(5,61,84,.12);
  }
  .js nav.menu.open { display: flex; }
  .js nav.menu a.link { padding: 12px 14px; font-size: 16px; border-radius: 10px; }
  .js nav.menu a.login { margin: 8px 0 0; padding: 12px 18px; font-size: 15px; }
}
@media (max-width: 560px) {
  :root { --header-h: 61px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand img { height: 32px; }
  .footer-top .brand img { height: 34px; }
  .eyebrow { font-size: 11px; letter-spacing: .3px; padding: 6px 12px; gap: 7px; }
  .section { padding: 64px 0; }
  .hero-body { padding-top: 56px; padding-bottom: 64px; }
  .hero--home .hero-body { padding-top: 56px; padding-bottom: 112px; }
  .hero--page .hero-body { padding-top: 52px; padding-bottom: 64px; }
  .hero--page.has-jump .hero-body { padding-bottom: 104px; }
  .hero .cta-row .btn { flex: 1 1 100%; }
  .grid-4 { grid-template-columns: 1fr; }
  .jump-inner { padding: 10px; }
  .jump a { justify-content: flex-start; flex-basis: 100%; }
  .list-card { padding: 22px 20px 24px; }
  .contact { padding: 64px 0; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
