/* ==========================================================================
   ΑΓΡΟ ΙΔΕΑ – Αγροτική & Αναπτυξιακή Συμβουλευτική
   ========================================================================== */

:root {
  --bg: #faf6ee;
  --surface: #ffffff;
  --surface-2: #f3ecdd;
  --ink: #1b2a20;
  --ink-2: #3a4a3f;
  --muted: #637267;
  --line: #e6ddcb;

  --g950: #11241a;
  --g900: #1a3524;
  --g800: #234630;
  --g700: #2d5a3b;
  --brand: #568743;          /* green of the ΑΓΡΟ ΙΔΕΑ logo */
  --g600: #467336;
  --g500: var(--brand);
  --g200: #d3e4c7;
  --g100: #e8f1e1;
  --g50: #f1f6ec;

  --gold700: #8a6014;
  --gold600: #b07f22;
  --gold500: #d09a33;
  --gold400: #e2b255;
  --gold100: #f7ebcf;

  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 40, 28, .06), 0 4px 14px -6px rgba(20, 40, 28, .10);
  --shadow: 0 18px 40px -18px rgba(20, 40, 28, .35);
  --shadow-lg: 0 40px 80px -30px rgba(12, 26, 18, .45);

  --font-sans: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Literata", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --topbar-h: 40px;
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Components set their own display; the hidden attribute must still win. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px; rem so the accessibility text-size setting scales it */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--g900);
  text-wrap: balance;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--gold500);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--g900);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .9em 1.4em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-lg { padding: 1.05em 1.7em; font-size: 1.02rem; }
.btn-sm { padding: .55em 1em; font-size: .88rem; }

.btn-primary { background: var(--g800); color: #fff; }
.btn-primary:not(:disabled):hover { background: var(--g700); box-shadow: var(--shadow); }

.btn-gold { background: var(--gold400); color: var(--g950); }
.btn-gold:hover { background: #ebc06a; box-shadow: 0 12px 30px -12px rgba(226, 178, 85, .7); }

.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline-light:hover { background: #fff; color: var(--g900); border-color: #fff; }

.btn-soft { background: var(--g100); color: var(--g800); }
.btn-soft:hover { background: var(--g200); }

.btn-text { background: transparent; color: var(--g700); padding-inline: .8em; }
.btn-text:hover { background: var(--surface-2); color: var(--g900); transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 600;
  color: var(--g700);
  text-decoration: none;
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover { color: var(--g900); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  --h-fg: #fff;
  --h-muted: rgba(255, 255, 255, .78);
  --h-hover: rgba(255, 255, 255, .14);
  --h-active: rgba(255, 255, 255, .18);
  --h-line: rgba(255, 255, 255, .3);

  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--h-fg);
  background: linear-gradient(180deg, rgba(10, 22, 15, .55), rgba(10, 22, 15, 0));
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled,
.site-header.is-solid,
.nav-open .site-header {
  --h-fg: var(--g900);
  --h-muted: var(--muted);
  --h-hover: var(--surface-2);
  --h-active: var(--g100);
  --h-line: var(--line);

  background: rgba(250, 246, 238, .95);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(20, 40, 28, .4);
}

.topbar {
  height: var(--topbar-h);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-size: .84rem;
  color: var(--h-muted);
  transition: height .3s, opacity .3s, border-color .3s;
}
.is-scrolled .topbar,
.is-solid .topbar,
.nav-open .topbar { height: 0; opacity: 0; border-color: transparent; }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}
.topbar-list {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topbar-list li, .topbar-list a, .topbar-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  text-decoration: none;
}
.topbar .icon { width: 1.05em; height: 1.05em; color: var(--gold400); }
.topbar a:hover { color: #fff; }
.topbar-link { font-weight: 600; color: var(--gold400); }
.topbar-link:hover { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 18px; }

/* social links (topbar & footer) */
.social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.social a:hover { background: var(--gold400); border-color: var(--gold400); color: var(--g950); transform: translateY(-2px); }
.social .icon { width: 19px; height: 19px; }
.topbar .social { gap: 2px; }
.topbar .social a { width: 30px; height: 30px; border: 0; background: none; color: var(--h-muted); }
.topbar .social a:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: none; }
.topbar .social .icon { width: 15px; height: 15px; color: inherit; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  transition: height .3s;
}
.is-scrolled .header-inner,
.is-solid .header-inner { height: 82px; }

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: auto;
  text-decoration: none;
}
/* The logo is a square lockup with the name inside the leaf crescent. It is
   shown in two versions: white lettering over the hero, black once the header
   turns light. */
.brand-logo {
  width: auto;
  height: 82px;
  flex: none;
  transition: height .3s;
}
.brand-logo-dark { display: none; }
.is-scrolled .brand-logo-light,
.is-solid .brand-logo-light,
.nav-open .brand-logo-light { display: none; }
.is-scrolled .brand-logo-dark,
.is-solid .brand-logo-dark,
.nav-open .brand-logo-dark { display: block; }
.is-scrolled .brand-logo,
.is-solid .brand-logo { height: 68px; }

.brand-tag {
  padding-left: 16px;
  border-left: 1.5px solid var(--h-line, var(--line));
  font-size: .78rem;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--h-muted, var(--muted));
}

.main-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: .5em .85em;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--h-fg);
  text-decoration: none;
  white-space: nowrap;
  opacity: .92;
  transition: background-color .2s, color .2s, opacity .2s;
}
.main-nav a:hover { background: var(--h-hover); opacity: 1; }
.main-nav a.is-active { background: var(--h-active); opacity: 1; }
.nav-contact { display: none; }

.header-cta { padding: .75em 1.25em; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: var(--h-fg);
  cursor: pointer;
}
.is-scrolled .nav-toggle,
.is-solid .nav-toggle,
.nav-open .nav-toggle { border-color: var(--line); background: var(--surface); }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  opacity: 0;
  transition: opacity .3s;
}
.is-scrolled .scroll-progress { opacity: 1; }
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--g600), var(--gold400));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

@media (max-width: 1140px) {
  :root { --topbar-h: 0px; }
  .topbar { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(20, 40, 28, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s, transform .2s;
  }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: .8em 1em; font-size: 1.05rem; border-radius: 12px; color: var(--g900); }
  .nav-contact { display: block; }
}

@media (max-width: 1240px) and (min-width: 1141px) {
  .brand-tag { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 78px; }
  .header-cta { display: none; }
  .brand { gap: 12px; }
  .brand-logo, .is-scrolled .brand-logo, .is-solid .brand-logo { height: 64px; }
  .is-scrolled .header-inner, .is-solid .header-inner { height: var(--header-h); }
  .brand-tag { padding-left: 12px; font-size: .74rem; }
}
@media (max-width: 360px) {
  .brand-tag { display: none; }
}

/* ---------- Common section ---------- */

.section { padding-block: clamp(72px, 10vw, 128px); }
.section-tight-top { padding-top: clamp(56px, 7vw, 88px); }
.section-white { background: var(--surface); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-lead { margin-top: 16px; font-size: 1.08rem; color: var(--ink-2); }
.section-lead a { color: var(--g700); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  margin-bottom: 16px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold700);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.eyebrow-light { color: var(--gold400); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(100svh, 940px);
  padding-top: calc(var(--topbar-h) + var(--header-h));
  overflow: hidden;
  background: var(--g950);
  color: #fff;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  animation: kenburns 24s ease-out both;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 24, 16, .93) 0%, rgba(10, 24, 16, .8) 38%, rgba(10, 24, 16, .4) 72%, rgba(10, 24, 16, .3) 100%),
    linear-gradient(0deg, rgba(10, 24, 16, .8) 0%, rgba(10, 24, 16, 0) 40%);
}
@keyframes kenburns {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

.hero-inner {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 1.3fr .8fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 72px) clamp(48px, 6vw, 80px);
}

.hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-panel { animation: rise .9s .3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: #fff;
}
.hero h1 em { font-style: italic; color: var(--gold400); }

.hero-lead {
  max-width: 35em;
  margin-top: 26px;
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  color: rgba(255, 255, 255, .86);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: .93rem;
  color: rgba(255, 255, 255, .82);
}
.hero-points li { display: inline-flex; align-items: center; gap: .5em; }
.hero-points .icon { color: var(--gold400); stroke-width: 2.6; }

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 26px;
  background: rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold400);
}
.panel-title { margin-top: 10px; font-size: 1.6rem; color: #fff; }
.panel-text { margin-top: 6px; font-size: .92rem; color: rgba(255, 255, 255, .72); }

.persona-list { display: grid; gap: 8px; margin-top: 18px; }
.persona-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font: 600 .97rem var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.persona-btn .icon { color: var(--gold400); }
.persona-btn .chev { margin-left: auto; opacity: .5; transition: transform .2s, opacity .2s; }
.persona-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--g900);
  transform: translateX(3px);
}
.persona-btn:hover .icon { color: var(--g700); }
.persona-btn:hover .chev { opacity: 1; transform: translateX(3px); }

/* ticker */
.ticker {
  position: relative;
  overflow: hidden;
  padding-block: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: rgba(10, 24, 16, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 45s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticker-list li {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, .88);
}
.ticker-list li::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--gold400);
  transform: rotate(45deg);
}
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; }
}
@media (max-width: 560px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-panel { padding: 22px 18px; }
  .hero-points { flex-direction: column; }
}

/* ---------- Intro ---------- */

.intro { padding-top: clamp(56px, 8vw, 96px); }
.intro-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  padding-bottom: clamp(40px, 6vw, 72px);
  /* divider limited to the content width (not the container padding) */
  background: linear-gradient(var(--line), var(--line)) bottom center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.intro-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--g900);
}
.intro-statement em { font-style: italic; color: var(--gold600); }
.intro-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
}
.intro-facts dt {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--g800);
}
.intro-facts dd {
  margin: 10px 0 0;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--muted);
}
@media (max-width: 900px) {
  .intro-inner { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */

.services { display: grid; gap: clamp(48px, 7vw, 96px); }
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.service-reverse .service-media { order: 2; }

.service-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 10 / 8.6;
  border-radius: 28px;
  background: var(--g800);
  box-shadow: var(--shadow);
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2, .7, .2, 1);
}
.service:hover .service-media img { transform: scale(1.04); }

.service-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .55em 1em;
  border-radius: 999px;
  background: rgba(255, 255, 255, .93);
  font-size: .88rem;
  font-weight: 600;
  color: var(--g800);
  box-shadow: var(--shadow-sm);
}
.service-badge .icon { color: var(--g600); }
.service-badge-gold .icon { color: var(--gold600); }

.service-num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold600);
}
.service-num::after { content: ""; width: 48px; height: 1.5px; background: var(--gold400); }
.service h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.service-body > p { margin-top: 14px; color: var(--ink-2); }

.checklist {
  display: grid;
  gap: 10px;
  margin: 22px 0 30px;
  padding: 0;
  list-style: none;
}
.checklist li { display: flex; align-items: flex-start; gap: 12px; }
.checklist .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  padding: 4px;
  border-radius: 50%;
  background: var(--g100);
  color: var(--g700);
  stroke-width: 3;
}
.checklist-gold .icon { background: var(--gold100); color: var(--gold700); }

/* extra services */
.more-services {
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
}
.more-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 22px; }
.more-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.more-head p { color: var(--muted); }
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.more-grid li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  scroll-margin-top: calc(var(--header-h) + 40px);
  transition: border-color .25s, box-shadow .25s;
}
.more-grid li:hover { border-color: var(--g200); box-shadow: var(--shadow-sm); }
.more-grid li.is-highlight { animation: highlight 2s ease; }
.more-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--g100);
  color: var(--g700);
}
.more-icon .icon { width: 21px; height: 21px; }
.more-grid strong { display: block; font-weight: 600; line-height: 1.3; color: var(--g900); }
.more-grid li span:not(.more-icon) { display: block; margin-top: 4px; font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 1000px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .more-grid { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service-reverse .service-media { order: 0; }
}

/* ---------- Finder ---------- */

.finder-section {
  background:
    radial-gradient(circle at 0% 0%, rgba(226, 178, 85, .16), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(82, 138, 92, .14), transparent 45%),
    var(--g50);
}
.finder-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.finder-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.finder-perks {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}
.finder-perks li { display: flex; align-items: center; gap: 10px; }
.finder-perks .icon { color: var(--g600); }

.finder {
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: clamp(22px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.finder-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.finder-step-label { font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.finder-progress {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}
.finder-progress span {
  display: block;
  width: 33%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--g600), var(--gold400));
  transition: width .45s cubic-bezier(.2, .7, .2, 1);
}

.finder-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.finder-step legend {
  margin-bottom: 18px;
  padding: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 600;
  color: var(--g900);
}
.finder-step:not([hidden]) { animation: fade-in .35s ease both; }
@keyframes fade-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}
.finder-hint { margin: -10px 0 16px; font-size: .92rem; color: var(--muted); }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.choice-grid-3 { grid-template-columns: 1fr; }
.choice { position: relative; display: block; }
.choice input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice-box > .icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  background: var(--g100);
  color: var(--g700);
  transition: background-color .2s, color .2s;
}
.choice-box strong { display: block; font-weight: 600; line-height: 1.3; color: var(--g900); }
.choice-box small { display: block; margin-top: 2px; font-size: .84rem; line-height: 1.35; color: var(--muted); }
.choice:hover .choice-box { border-color: var(--g200); background: var(--bg); }
.choice input:checked + .choice-box {
  border-color: var(--g700);
  background: var(--g100);
  box-shadow: 0 0 0 3px rgba(45, 90, 59, .12);
}
.choice input:checked + .choice-box > .icon { background: var(--g800); color: var(--gold400); }
.choice input:focus-visible + .choice-box,
.chip input:focus-visible + span { outline: 3px solid var(--gold500); outline-offset: 2px; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .62em 1.05em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip span .icon { color: var(--g600); }
.chip:hover span { border-color: var(--g200); background: var(--bg); }
.chip input:checked + span { border-color: var(--g800); background: var(--g800); color: #fff; }
.chip input:checked + span .icon { color: var(--gold400); }

.finder-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
}
.finder-nav #finder-back { margin-right: auto; }

.finder-results { animation: fade-in .35s ease both; }
.finder-results:focus { outline: none; }
.finder-results h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.finder-summary { margin-top: 6px; font-size: .92rem; color: var(--muted); }
.result-list { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  animation: rise .45s cubic-bezier(.2, .7, .2, 1) both;
}
.result:nth-child(2) { animation-delay: .06s; }
.result:nth-child(3) { animation-delay: .12s; }
.result:nth-child(4) { animation-delay: .18s; }
.result-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--g800);
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold400);
}
.result h4 { font-size: 1.12rem; }
.result p { margin-top: 3px; font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.match {
  display: inline-block;
  margin-left: 6px;
  padding: .18em .65em;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 2px;
}
.match-strong { background: var(--g100); color: var(--g700); }
.match-ok { background: var(--gold100); color: var(--gold700); }

.finder-note {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: .86rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.finder-note .icon { margin-top: 2px; color: var(--gold600); }
.finder-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }

@media (max-width: 980px) {
  .finder-grid { grid-template-columns: 1fr; }
  .finder-intro { position: static; }
}
@media (max-width: 560px) {
  .finder { min-height: 0; }
  .result { grid-template-columns: auto 1fr; }
  .result .btn { grid-column: 2; justify-self: start; }
  .finder-cta .btn-primary { width: 100%; }
}

/* ---------- Programs ---------- */

.programs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: clamp(32px, 4vw, 44px);
}
.programs-head .section-head { margin-bottom: 0; }

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface-2);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .75em 1.4em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 600 .98rem var(--font-sans);
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tab:hover { color: var(--g900); }
.tab[aria-selected="true"] { background: var(--g800); color: #fff; box-shadow: var(--shadow-sm); }

.program-panel:not([hidden]) { animation: fade-up .4s ease both; }
.program-panel:focus-visible { border-radius: 20px; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.program {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s, background-color .25s;
}
.program:hover {
  transform: translateY(-4px);
  border-color: var(--g200);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.program.is-highlight { animation: highlight 2s ease; }
@keyframes highlight {
  0%, 60% { box-shadow: 0 0 0 4px var(--gold400), var(--shadow); }
  100% { box-shadow: none; }
}

.program-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.program-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--g800);
  color: var(--gold400);
  transition: transform .3s;
}
.program:hover .program-icon { transform: rotate(-6deg) scale(1.05); }
.panel-invest .program-icon { background: var(--gold400); color: var(--g900); }
.program-icon .icon { width: 25px; height: 25px; }

.tag {
  display: inline-block;
  padding: .3em .75em;
  border-radius: 999px;
  background: var(--gold100);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gold700);
  white-space: nowrap;
}
.panel-invest .tag { background: var(--g100); color: var(--g700); }

.program h3 { font-size: 1.3rem; }
/* The title links to the program page; the rest of the card opens the quick view. */
.program h3 a { color: inherit; text-decoration: none; }
.program h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pd-more { margin-top: 18px; }
.program-desc { flex: 1; margin-top: 10px; font-size: .97rem; color: var(--ink-2); }

.program-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.program-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.for { font-size: .84rem; color: var(--muted); }
.for strong { font-weight: 600; color: var(--ink-2); }
.program-foot .link-arrow { font-size: .92rem; }

@media (max-width: 1000px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .program-grid { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding-inline: .8em; }
}

/* ---------- Program dialog ---------- */

.program-dialog {
  width: min(780px, calc(100% - 24px));
  max-height: min(88vh, 920px);
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.program-dialog[open] { animation: dialog-in .3s cubic-bezier(.2, .7, .2, 1); }
.program-dialog::backdrop {
  background: rgba(10, 22, 15, .6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.pd-shell { display: flex; flex-direction: column; max-height: min(88vh, 920px); }
.pd-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--line);
}
.pd-icon .program-icon { width: 58px; height: 58px; }
.is-invest .pd-icon .program-icon { background: var(--gold400); color: var(--g900); }
.is-invest .pd-header .tag { background: var(--g100); color: var(--g700); }
.pd-header h2 { margin-top: 8px; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.pd-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--g900);
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.pd-close:hover { background: var(--g200); transform: rotate(90deg); }
.pd-close .icon { width: 20px; height: 20px; }

.pd-body { overflow-y: auto; padding: 24px 32px; overscroll-behavior: contain; }
.pd-lead { margin-bottom: 20px; font-size: 1.05rem; color: var(--ink-2); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pd-grid > div, .pd-help {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.pd-help { margin-top: 14px; border-color: var(--g200); background: var(--g100); }
.pd-body h4, .pp-details h2 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--g900); }
.pd-body ul, .pp-details ul { display: grid; gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; }
.pd-body li, .pp-details li { position: relative; padding-left: 22px; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.pd-body li::before, .pp-details li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .5em;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--g600);
  border-bottom: 2px solid var(--g600);
  transform: rotate(-45deg);
}
.pd-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 32px 24px;
  border-top: 1px solid var(--line);
}
body.dialog-open { overflow: hidden; }

@media (max-width: 640px) {
  .program-dialog { width: calc(100% - 16px); max-height: 92vh; border-radius: 22px; }
  .pd-shell { max-height: 92vh; }
  .pd-header { padding: 20px 20px 16px; }
  .pd-icon { display: none; }
  .pd-body { padding: 18px 20px; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-footer { padding: 14px 20px 18px; }
  .pd-footer .btn { flex: 1; }
}

/* ---------- Local production (bento) ---------- */

.local-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 48px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.local-head .section-head { margin-bottom: 0; }
.local-head .section-lead { margin-top: 0; }

.bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: repeat(3, 240px);
  grid-template-areas:
    "saf cer cer"
    "saf vin fru"
    "she she bee";
  gap: 14px;
}
.tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--g800);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.tile:hover img { transform: scale(1.07); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 22, 15, .85) 0%, rgba(10, 22, 15, .25) 45%, rgba(10, 22, 15, 0) 70%);
}
.tile figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: #fff;
}
.tile figcaption strong { display: block; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.tile figcaption span { display: block; margin-top: 4px; font-size: .9rem; line-height: 1.45; color: rgba(255, 255, 255, .85); }
.tile-saffron { grid-area: saf; }
.tile-saffron figcaption strong { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tile-cereals { grid-area: cer; }
.tile-vine { grid-area: vin; }
.tile-fruit { grid-area: fru; }
.tile-sheep { grid-area: she; }
.tile-bees { grid-area: bee; }

@media (max-width: 900px) {
  .local-head { grid-template-columns: 1fr; }
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px repeat(3, 210px);
    grid-template-areas:
      "saf saf"
      "cer cer"
      "vin fru"
      "she bee";
  }
}
@media (max-width: 520px) {
  .bento { grid-template-rows: 260px repeat(3, 180px); gap: 10px; }
  .tile figcaption { left: 14px; right: 14px; bottom: 12px; }
  .tile figcaption strong { font-size: 1.08rem; }
  .tile:not(.tile-saffron):not(.tile-cereals) figcaption span { display: none; }
}

/* ---------- Process ---------- */

.process {
  position: relative;
  overflow: hidden;
  background: var(--g950);
  color: #e6ede4;
}
.process-media { position: absolute; inset: 0; }
.process-media img { width: 100%; height: 100%; object-fit: cover; }
.process-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 30, 21, .9) 0%, rgba(14, 30, 21, .82) 50%, rgba(14, 30, 21, .94) 100%);
}
.process .container { position: relative; }
.process h2 { color: #fff; }
.process .section-lead { color: rgba(255, 255, 255, .78); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 30px 24px 32px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color .3s, border-color .3s, transform .3s;
}
.step:hover { background: rgba(255, 255, 255, .1); border-color: rgba(226, 178, 85, .5); transform: translateY(-4px); }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px;
  right: -21px;
  width: 22px;
  height: 2px;
  background: var(--gold400);
  opacity: .7;
}
.step-num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold400);
}
.step h3 { margin-top: 18px; font-size: 1.22rem; color: #fff; }
.step p { margin-top: 10px; font-size: .96rem; color: rgba(255, 255, 255, .74); }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.why-media { position: relative; }
.why-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.why-quote {
  position: absolute;
  right: -28px;
  bottom: 36px;
  max-width: 310px;
  margin: 0;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--g800);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.why-quote .icon { width: 28px; height: 28px; color: var(--gold400); }
.why-quote p { margin-top: 10px; font-family: var(--font-serif); font-size: 1.12rem; font-style: italic; line-height: 1.45; }
.why-copy .section-lead { margin-bottom: 28px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color .25s, box-shadow .25s;
}
.feature:hover { border-color: var(--gold400); box-shadow: var(--shadow-sm); }
.feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--gold100);
  color: var(--gold700);
}
.feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; }
.feature p { margin-top: 6px; font-size: .93rem; line-height: 1.55; color: var(--ink-2); }

@media (max-width: 980px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-media { max-width: 560px; }
  .why-quote { right: 16px; bottom: 16px; left: auto; max-width: 280px; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .why-quote { position: relative; right: auto; bottom: auto; max-width: none; margin: -48px 16px 0; }
}

/* ---------- Team (inside "Why") ---------- */

.team { margin-top: clamp(64px, 9vw, 110px); }
.team-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.person {
  display: flex;
  flex-direction: column;
  flex: 1 1 250px;
  max-width: 370px; /* three cards fill the row; one or two stay card-sized */
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .25s, box-shadow .25s;
}
.person:hover { border-color: var(--gold400); box-shadow: var(--shadow-sm); }
/* Without a photo, the initials sit on the brand green. */
.person-photo {
  position: relative;
  flex: none;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--g800), var(--g950));
}
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold400);
}
.person-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 22px 22px 24px; overflow-wrap: break-word; }
.person h3 { font-size: 1.25rem; }
.person-role { font-size: .92rem; font-weight: 600; line-height: 1.4; color: var(--g700); }
.person-bio { margin-top: 4px; font-size: .93rem; line-height: 1.55; color: var(--ink-2); }
.person-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 24px 0 0;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--surface-2);
  list-style: none;
}
.credentials li { display: inline-flex; align-items: center; gap: .5em; font-size: .95rem; font-weight: 600; color: var(--g900); }
.credentials .icon { flex: none; color: var(--g600); }

/* Phones: photo beside the text, so each card stays short. */
@media (max-width: 560px) {
  .person { flex-direction: row; flex-basis: 100%; max-width: none; }
  .person-photo { width: 112px; aspect-ratio: auto; }
  .person-initials { font-size: 2rem; }
  .person-body { padding: 16px 16px 18px; }
  .person h3 { font-size: 1.1rem; }
  .credentials { padding: 18px; }
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
}
.faq-list { display: grid; gap: 12px; }
.faq-list a { color: var(--g700); font-weight: 600; }

details {
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
details[open] { border-color: var(--g200); background: var(--surface); box-shadow: var(--shadow-sm); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--g900);
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary:focus-visible { outline-offset: 6px; }

.plus {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--g100);
  transition: background-color .2s;
}
.plus::before, .plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--g800);
  transition: transform .25s, opacity .25s;
}
.plus::after { transform: rotate(90deg); }
details[open] .plus { background: var(--gold400); }
details[open] .plus::after { transform: rotate(0); opacity: 0; }
details p { padding: 0 0 20px; color: var(--ink-2); }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { margin-bottom: 8px; }
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(88px, 13vw, 160px);
  background: var(--g950);
  color: #fff;
  text-align: center;
}
.cta-media { position: absolute; inset: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(12, 26, 18, .55) 0%, rgba(12, 26, 18, .82) 75%),
    rgba(12, 26, 18, .2);
}
.cta-inner { position: relative; max-width: 820px; }
.cta-band h2 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.08; color: #fff; }
.cta-band h2 em { font-style: italic; color: var(--gold400); }
.cta-band p { margin-top: 20px; font-size: 1.12rem; color: rgba(255, 255, 255, .86); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  align-items: start;
}
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.contact-card:hover { border-color: var(--g500); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
/* Information only (e.g. opening hours): no link, so no hover effect. */
.contact-card-static:hover { border-color: var(--line); box-shadow: none; transform: none; }
.contact-card .ci {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--g800);
  color: var(--gold400);
}
.contact-card small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.contact-card strong { display: block; font-size: 1.08rem; font-weight: 600; color: var(--g900); word-break: break-word; }
.contact-card .sub { display: block; font-size: .92rem; color: var(--ink-2); }
.ci-action {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-left: auto;
  font-size: .85rem;
  font-weight: 600;
  color: var(--g700);
}

.map {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .96) 0 30%, rgba(243, 236, 221, .7) 70%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(35, 70, 48, .08) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(35, 70, 48, .08) 38px 40px),
    var(--surface-2);
}
.map-placeholder > .icon { width: 36px; height: 36px; color: var(--g700); }
.map-placeholder p { color: var(--g900); }
.map-placeholder small { font-size: .8rem; color: var(--muted); }

.form {
  padding: clamp(24px, 3.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.form h3 { font-size: 1.6rem; }
.form > p { margin-top: 6px; font-size: .92rem; color: var(--muted); }
.req { color: #b4452c; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-top: 18px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink-2); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8em 1em;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select {
  appearance: none;
  padding-right: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23234630' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 18px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--g500);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px rgba(82, 138, 92, .18);
}
.field .is-invalid,
.field .is-invalid:focus { border-color: #c0573c; box-shadow: 0 0 0 4px rgba(192, 87, 60, .14); }
.field .is-filled { animation: flash 1.2s ease; }
@keyframes flash {
  0% { box-shadow: 0 0 0 4px rgba(226, 178, 85, .6); }
  100% { box-shadow: 0 0 0 4px rgba(226, 178, 85, 0); }
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: .9rem;
  color: var(--muted);
  cursor: pointer;
}
.consent input { width: 18px; height: 18px; flex: none; margin: 3px 0 0; accent-color: var(--g700); }
.consent a { color: var(--g700); font-weight: 600; }
.consent.is-invalid { color: #b4452c; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.form-note { font-size: .84rem; color: var(--muted); }

.form-error, .form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: .93rem;
}
.form-error { background: #fbe9e3; color: #8e3520; }
.form-status { background: var(--g100); color: var(--g800); }
.form-status a { font-weight: 600; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}

/* ---------- Alerts ---------- */

.alerts {
  padding-block: clamp(40px, 6vw, 56px);
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 178, 85, .18), transparent 40%),
    var(--g800);
  color: #fff;
}
.alerts-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.alerts-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  color: var(--gold400);
}
.alerts-icon .icon { width: 28px; height: 28px; }
.alerts h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); color: #fff; }
.alerts-copy p { margin-top: 6px; color: rgba(255, 255, 255, .78); }
.alerts-form {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  transition: border-color .2s;
}
.alerts-form:focus-within { border-color: var(--gold400); }
.alerts-form.is-invalid { border-color: #f19b83; }
.alerts-form input {
  flex: 1;
  width: 260px;
  min-width: 0;
  padding: .7em 1em;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}
.alerts-form input::placeholder { color: rgba(255, 255, 255, .6); }
.alerts-form input:focus { outline: none; }
.alerts-msg { grid-column: 2 / -1; font-size: .9rem; color: var(--gold400); }
.alerts-legal { margin-top: 6px; font-size: .8rem; color: rgba(255, 255, 255, .6); }
.alerts-legal a { color: rgba(255, 255, 255, .85); }

/* spam trap: off-screen field that only bots fill in */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alerts-inner > * { min-width: 0; }

@media (max-width: 900px) {
  .alerts-inner { grid-template-columns: 1fr; }
  .alerts-icon { display: none; }
  .alerts-form input { width: 100%; }
  .alerts-msg { grid-column: 1; }
}
@media (max-width: 560px) {
  .alerts-form { flex-direction: column; border-radius: 20px; }
  .alerts-form .btn { width: 100%; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: 64px;
  background: var(--g950);
  font-size: .95rem;
  color: #b3c2b5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.site-footer .brand { display: inline-flex; margin-bottom: 20px; }
.site-footer .brand-logo { height: 128px; }
.footer-brand p { max-width: 32em; }
.site-footer .social { display: flex; gap: 10px; margin-top: 22px; }
.site-footer .social a:hover { text-decoration: none; }
.footer-bottom .social { margin-top: 0; }
.footer-bottom .social a { width: 36px; height: 36px; }
.footer-bottom .social .icon { width: 16px; height: 16px; }

.site-footer h4 {
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold400);
}
.site-footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #d3ddd4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact .icon { margin-top: 4px; color: var(--gold400); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 52px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
  color: #8a9c8d;
}
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal { display: inline-block; margin-top: 6px; font-size: .8rem; color: #7f9282; }
.footer-bottom a { color: #b3c2b5; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Floating: back to top & mobile bar ---------- */

.to-top {
  position: fixed;
  right: 29px;
  bottom: 98px; /* stacked above the WhatsApp button */
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--g800);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility 0s .3s, background-color .2s;
}
.to-top:hover { background: var(--g700); }
.show-top .to-top { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s, background-color .2s; }

.mobile-bar { display: none; }

@media (max-width: 720px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(86px + env(safe-area-inset-bottom)); right: 14px; width: 44px; height: 44px; }
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(250, 246, 238, .96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .mobile-bar .btn { padding: .85em 1.2em; }
}
@media (max-width: 360px) {
  .mobile-bar .btn { padding-inline: .9em; font-size: .9rem; }
}

.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5a; }
.wa-glyph { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.contact-card .ci-wa { background: #25d366; color: #fff; }
.contact-card .ci-wa .wa-glyph { width: 24px; height: 24px; }
.contact-card .ci-cal { background: var(--gold400); color: var(--g950); }

/* ---------- Floating widgets: accessibility & WhatsApp ---------- */

.fab {
  position: fixed;
  bottom: 24px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.fab:hover { transform: scale(1.07); }
.fab svg { width: 30px; height: 30px; }
.fab:focus-visible { outline: 3px solid var(--gold400); outline-offset: 3px; border-radius: 50%; }

.a11y-fab { left: 24px; background: #1f5fbf; }
.a11y-fab:hover { background: #174c9c; }
.a11y-fab svg { width: 34px; height: 34px; }
.a11y-fab.is-active::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--gold400);
}

.wa-fab { right: 24px; background: #25d366; }
.wa-fab:hover { background: #1ebe5a; }
.wa-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: wa-pulse 2.8s ease-out infinite;
}
.wa-fab[aria-expanded="true"]::before { animation: none; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
}
.fab-open, .fab-close { display: grid; place-items: center; }
.fab-close { display: none; }
.fab-close svg { width: 26px; height: 26px; }
.wa-fab[aria-expanded="true"] .fab-open { display: none; }
.wa-fab[aria-expanded="true"] .fab-close { display: grid; }

.wa-teaser {
  position: fixed;
  right: 96px;
  bottom: 32px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 280px;
  padding: 6px 6px 6px 4px;
  border-radius: 18px 18px 4px 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, .04);
  animation: rise .45s cubic-bezier(.2, .7, .2, 1) both;
}
.wa-teaser-open {
  padding: 6px 10px;
  border: 0;
  background: none;
  font: 500 .9rem/1.35 var(--font-sans);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.wa-teaser-open strong { display: block; color: #128c4a; }
.wa-teaser-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: pointer;
}
.wa-teaser-close svg { width: 14px; height: 14px; }

/* shared panel */
.widget-panel {
  position: fixed;
  bottom: 96px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 130px));
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .05);
  animation: panel-in .25s cubic-bezier(.2, .7, .2, 1);
}
.widget-panel:focus { outline: none; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 18px;
  color: #fff;
}
.panel-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s;
}
.panel-close:hover { background: rgba(255, 255, 255, .26); }
.panel-close svg { width: 18px; height: 18px; }

/* WhatsApp panel */
.wa-panel { right: 24px; transform-origin: bottom right; }
.wa-head { background: var(--g800); }
.wa-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #fff; object-fit: cover; }
.wa-id strong { display: block; font-size: 1rem; line-height: 1.2; }
.wa-status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: rgba(255, 255, 255, .8); }
.wa-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #25d366; }

.wa-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
  padding: 16px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0, 0, 0, .045) 1px, transparent 1.3px);
  background-size: 14px 14px;
}
.msg {
  max-width: 86%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: .93rem;
  line-height: 1.45;
  white-space: pre-line;
  word-wrap: break-word;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
  animation: msg-in .25s ease both;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.msg-bot { align-self: flex-start; border-top-left-radius: 4px; background: #fff; color: #111b21; }
.msg-user { align-self: flex-end; border-top-right-radius: 4px; background: #d9fdd3; color: #111b21; }
.msg-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg-typing span { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: typing 1s infinite; }
.msg-typing span:nth-child(2) { animation-delay: .15s; }
.msg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.wa-quick { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 2px; }
.wa-quick button {
  padding: .5em .95em;
  border: 1.5px solid #25d366;
  border-radius: 999px;
  background: #fff;
  font: 600 .86rem/1.25 var(--font-sans);
  color: #0f7a3d;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.wa-quick button:hover { background: #25d366; color: #fff; }

.wa-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .75em 1.2em;
  border-radius: 999px;
  background: #25d366;
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .8);
  animation: msg-in .25s ease both;
}
.wa-cta:hover { background: #1ebe5a; }
.wa-cta svg { width: 20px; height: 20px; }

.wa-input {
  display: flex;
  gap: 8px;
  padding: 10px 12px 8px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  background: #f0f2f5;
}
.wa-input input {
  flex: 1;
  min-width: 0;
  padding: .7em 1.05em;
  border: 0;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
}
.wa-input input:focus { outline: none; box-shadow: 0 0 0 2px #25d366; }
.wa-input button {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  cursor: pointer;
}
.wa-input button:hover { background: #1ebe5a; }
.wa-input button svg { width: 19px; height: 19px; }
.wa-note { padding: 0 12px 10px; background: #f0f2f5; font-size: .72rem; text-align: center; color: var(--muted); }

/* Accessibility panel */
.a11y-panel { left: 24px; transform-origin: bottom left; }
.a11y-head { background: #1f5fbf; }
.a11y-head > svg { width: 28px; height: 28px; flex: none; }
.a11y-head h2 { font-family: var(--font-sans); font-size: 1.08rem; font-weight: 700; letter-spacing: 0; color: #fff; }
.a11y-body { overflow-y: auto; padding: 16px; overscroll-behavior: contain; }

.a11y-size {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
}
.a11y-size-label { font-size: .92rem; font-weight: 600; }
.a11y-size-ctrl { display: flex; align-items: center; gap: 6px; }
.a11y-size-ctrl button {
  width: 42px;
  height: 38px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font: 700 .98rem var(--font-sans);
  color: var(--ink);
  cursor: pointer;
}
.a11y-size-ctrl button:not(:disabled):hover { border-color: #1f5fbf; color: #1f5fbf; }
.a11y-size-ctrl button:disabled { opacity: .4; cursor: not-allowed; }
.a11y-size-value { min-width: 48px; font-weight: 700; text-align: center; }

.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-toggle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 92px;
  padding: 12px 8px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  font: 600 .84rem/1.3 var(--font-sans);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.a11y-toggle svg { width: 26px; height: 26px; color: #1f5fbf; }
.a11y-toggle:hover { border-color: #1f5fbf; }
.a11y-toggle[aria-pressed="true"] { border-color: #1f5fbf; background: #e8f0fc; box-shadow: inset 0 0 0 1px #1f5fbf; }
.a11y-toggle[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 7px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1f5fbf;
  font-size: .72rem;
  color: #fff;
}
.a11y-toggle:last-child:nth-child(odd) { grid-column: span 2; flex-direction: row; min-height: 56px; }

.a11y-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: .8em;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: transparent;
  font: 600 .92rem var(--font-sans);
  color: var(--ink);
  cursor: pointer;
}
.a11y-reset:hover { border-color: #1f5fbf; color: #1f5fbf; }
.a11y-reset svg { width: 18px; height: 18px; }
.a11y-note { margin-top: 10px; font-size: .76rem; text-align: center; color: var(--muted); }

@media (max-width: 720px) {
  .wa-fab, .wa-teaser { display: none; }
  .a11y-fab { left: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
  .a11y-fab svg { width: 28px; height: 28px; }
  .widget-panel {
    left: 10px;
    right: 10px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    width: auto;
    max-height: calc(100svh - 160px);
  }
}

/* ---------- Accessibility modes (set by the accessibility menu) ---------- */

html.a11y-contrast {
  --bg: #fff;
  --surface: #fff;
  --surface-2: #efefef;
  --ink: #000;
  --ink-2: #000;
  --muted: #1a1a1a;
  --line: #000;
  --g900: #000;
  --g800: #003d12;
  --g700: #003d12;
  --g600: #003d12;
  --brand: #2c5a1c;
  --g200: #000;
  --g100: #e3f2dc;
  --g50: #fff;
  --gold700: #4d3200;
  --gold600: #5c3b00;
  --gold400: #ffd24d;
  --gold100: #fff0c2;
}
html.a11y-contrast :is(.hero-media, .process-media, .cta-media)::after { background: rgba(0, 0, 0, .88); }
html.a11y-contrast .tile::after { background: linear-gradient(0deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .25)); }
html.a11y-contrast :is(.hero-lead, .hero-points, .panel-text, .process .section-lead, .step p, .cta-band p, .alerts-copy p, .site-footer, .site-footer a, .tile figcaption span) { color: #fff; }
html.a11y-contrast a:not(.btn):not(.contact-card):not(.brand) { text-decoration: underline; }
html.a11y-contrast .btn-primary { background: #000; }
html.a11y-contrast .btn-gold { background: #ffd24d; color: #000; }
html.a11y-contrast .btn-outline-light { border-color: #fff; }

html.a11y-grayscale :is(main, .site-header, .site-footer, .mobile-bar, .wa-fab, .wa-teaser, .wa-panel, .program-dialog, .to-top) { filter: grayscale(1); }

html.a11y-links a:not(.btn):not(.contact-card):not(.brand):not(.to-top):not(.wa-cta) {
  background-color: #fff3a3;
  color: #000 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px;
}
html.a11y-links :is(a, button):focus-visible { outline-width: 4px; }

html.a11y-font {
  --font-sans: Verdana, Tahoma, "DejaVu Sans", Arial, sans-serif;
  --font-serif: Verdana, Tahoma, "DejaVu Sans", Arial, sans-serif;
}
html.a11y-font :is(h1, h2, h3, h4) { letter-spacing: 0; }
html.a11y-font em { font-style: normal; }

html.a11y-spacing body { letter-spacing: .03em; word-spacing: .14em; }
html.a11y-spacing :is(p, li, dd, summary, label) { line-height: 1.95; }
html.a11y-spacing :is(h1, h2, h3, h4) { line-height: 1.35; letter-spacing: .01em; }

html.a11y-motion { scroll-behavior: auto; }
html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after { animation: none !important; transition: none !important; }
html.a11y-motion .reveal { opacity: 1 !important; transform: none !important; }

html.a11y-cursor,
html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 5l30 17-13 3.5L18 40z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 8 5, auto !important;
}

/* Larger text: make room in the desktop header */
/* Larger, wider or more spaced text: the header tagline would wrap to many lines
   and the topbar would break into two rows (the hours stay in Contact and the footer). */
html.a11y-scaled .brand-tag,
html.a11y-font .brand-tag,
html.a11y-spacing .brand-tag,
html.a11y-scaled .topbar-hours,
html.a11y-font .topbar-hours,
html.a11y-spacing .topbar-hours { display: none; }
@media (min-width: 1141px) {
  html.a11y-scaled .header-cta { display: none; }
  html.a11y-scaled .nav-contact { display: block; }
}

/* ---------- Legal page ---------- */

.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(40px, 5vw, 56px);
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 178, 85, .18), transparent 45%),
    var(--g900);
  color: #fff;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; }
.page-hero p { margin-top: 12px; color: rgba(255, 255, 255, .78); }
.legal { max-width: 820px; }
.legal h2 { margin: 40px 0 12px; font-size: 1.5rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-top: 6px; }
.legal a { color: var(--g700); font-weight: 600; }

/* ---------- 404 page ---------- */

.error-page {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 88px;
  overflow: hidden;
  background: var(--g950);
  color: #fff;
  text-align: center;
}
.error-inner { position: relative; max-width: 780px; }
.error-code {
  font-family: var(--font-serif);
  font-size: clamp(5.5rem, 17vw, 10rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--gold400);
}
.error-page h1 { margin-top: 10px; font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; }
.error-lead { margin-top: 18px; font-size: 1.12rem; color: rgba(255, 255, 255, .86); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.error-links a { color: rgba(255, 255, 255, .85); text-underline-offset: 4px; }
.error-links a:hover { color: #fff; }
@media (max-width: 560px) {
  .error-actions .btn { flex: 1 1 100%; }
}

/* ---------- Program pages (programmata/<slug>/) ---------- */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: .88rem;
  color: rgba(255, 255, 255, .7);
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--gold400); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-hero .program-hero-lead { max-width: 760px; margin-top: 16px; font-size: 1.12rem; color: rgba(255, 255, 255, .86); }
.program-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
  color: rgba(255, 255, 255, .8);
}
.program-hero-meta strong { color: #fff; }

.pp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.pp-intro p { font-size: 1.1rem; color: var(--ink-2); }
.pp-intro p + p { margin-top: 14px; }
.pp-details { margin-top: 32px; }
.pp-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: .92rem; color: var(--muted); }
.pp-note .icon { flex: none; margin-top: 3px; color: var(--g600); }
.pp-h2 { margin-top: 52px; font-size: clamp(1.5rem, 3vw, 2rem); }
.pp-steps { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; }
.pp-steps li {
  position: relative;
  padding: 16px 18px 16px 64px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.pp-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 15px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold600);
}
.pp-steps strong { display: block; color: var(--g900); }
.pp-steps span { display: block; margin-top: 4px; font-size: .93rem; line-height: 1.5; color: var(--ink-2); }

.pp-aside { position: sticky; top: 106px; }
.pp-aside-box {
  padding: 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 178, 85, .16), transparent 50%),
    var(--g900);
  color: #fff;
  box-shadow: var(--shadow);
}
.pp-aside-box h2 { font-size: 1.5rem; color: #fff; }
.pp-aside-box > p { margin: 10px 0 20px; font-size: .97rem; color: rgba(255, 255, 255, .8); }
.pp-aside-box .btn { width: 100%; }
.pp-aside-box .btn + .btn { margin-top: 10px; }
.pp-aside-contact {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  list-style: none;
  font-size: .93rem;
  color: rgba(255, 255, 255, .8);
}
.pp-aside-contact li { display: flex; align-items: center; gap: 10px; }
.pp-aside-contact .icon { flex: none; color: var(--gold400); }
.pp-aside-contact a { font-weight: 600; color: #fff; text-decoration: none; }
.pp-aside-contact a:hover { text-decoration: underline; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.related-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.related-card:hover { transform: translateY(-4px); border-color: var(--g200); box-shadow: var(--shadow); }
.related-card.is-invest .program-icon { background: var(--gold400); color: var(--g900); }
.related-card strong { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; line-height: 1.25; color: var(--g900); }
.related-desc { flex: 1; font-size: .95rem; color: var(--ink-2); }

@media (max-width: 980px) {
  .pp-grid { grid-template-columns: 1fr; }
  .pp-aside { position: static; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pp-details .pd-grid { grid-template-columns: 1fr; }
  .pp-aside-box { padding: 24px 20px; }
}

/* ---------- Cookie consent (Google Analytics) ---------- */

.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 18px 24px;
  width: min(780px, calc(100% - 32px));
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, .05);
  transform: translateX(-50%);
}
.cookie-consent h2 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--g900); }
.cookie-consent p { margin-top: 6px; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.cookie-consent a { color: var(--g700); font-weight: 600; }
/* Both choices look the same: refusing is as easy as accepting. */
.cookie-consent-actions { display: flex; flex: none; gap: 10px; }
.cookie-consent-actions .btn { min-width: 118px; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #b3c2b5;
  cursor: pointer;
}
.link-button:hover { color: #fff; text-decoration: underline; }

@media (max-width: 720px) {
  .cookie-consent {
    left: 8px;
    right: 8px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    width: auto;
    padding: 18px;
    transform: none;
  }
  .cookie-consent-actions .btn { flex: 1; min-width: 0; }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .hero-media img { animation: none; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .mobile-bar, .to-top, .map, .form, .hero-panel, .ticker, .finder, .alerts,
  .fab, .widget-panel, .wa-teaser, .cookie-consent, .pp-aside { display: none !important; }
  .hero { min-height: 0; padding-top: 24px; background: none; color: var(--ink); }
  .hero-media { display: none; }
  .hero h1, .hero-lead { color: var(--ink); }
  .js .reveal { opacity: 1; transform: none; }
  .program-panel[hidden] { display: block !important; }
}
