/* ==========================================================================
   Mosaico Público — styles.css
   Vanilla CSS, mobile-first, WCAG-AA. No build step.
   Brand (sober/editorial, derived from the logo's green→blue mosaic "M"):
     warm off-white ground #f7f5f1 · deep slate ink #1f242b
     slate-blue accent #3f5d8a (hover #314a70, tint #eef2f7) · muted logo green #4e8a55 (whisper only)
   Headings: Fraunces (refined serif) · Body/UI: Inter
   ========================================================================== */

/* ----- Design tokens --------------------------------------------------- */
:root {
  /* Brand palette ------------------------------------------------------- */
  --ink: #1f242b;          /* deep slate ink (headings, primary text) */
  --magenta: #3f5d8a;      /* PRIMARY ACCENT — slate-blue (links, buttons, focus, rules) */
  --magenta-600: #314a70;  /* darker slate-blue for hover (keeps AA on the warm ground) */
  --magenta-050: #eef2f7;  /* soft slate-blue tint for surfaces/callouts */
  --green: #4e8a55;        /* SECONDARY — muted logo green, decorative/large only */
  --grey: #5b6470;         /* muted slate-grey */

  /* Legacy token names remapped to the new brand so every rule inherits   */
  --navy: var(--ink);            /* dark surfaces / primary text */
  --navy-700: #181c22;           /* slightly deeper ink */
  --navy-900: #13171c;           /* deepest ink (footer) */
  --gold: var(--magenta);        /* accent */
  --gold-600: var(--magenta-600);/* accent hover */
  --gold-100: var(--magenta-050);/* accent tint */

  --bg: #f7f5f1;           /* warm off-white ground (not stark white) */
  --bg-card: #ffffff;      /* cards/surfaces (a hair warm alt: #fcfbf9) */
  --text: var(--ink);
  --text-muted: #5b6470;   /* readable muted slate (AA on the warm ground) */
  --line: #e7e3db;         /* warm hairline rules */
  --line-strong: #d8d2c8;  /* stronger warm rule */

  --maxw: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 14px;
  --radius-sm: 8px;
  /* Subtle, restrained depth (warm-toned, low saturation) */
  --shadow-sm: 0 1px 2px rgba(31, 36, 43, .04), 0 1px 3px rgba(31, 36, 43, .04);
  --shadow-md: 0 4px 18px rgba(31, 36, 43, .07);
  --shadow-lg: 0 12px 36px rgba(31, 36, 43, .10);

  --ff-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ff-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --step--1: clamp(.83rem, .80rem + .15vw, .92rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.7vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.6vw, 3.9rem);
}

/* ----- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.14;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1rem; }

/* Inline body links use the deeper slate-blue so normal-size text clears WCAG-AA
   (#314a70 ≈ 9.1:1 on the warm ground; --magenta #3f5d8a is the standard accent for UI) */
a { color: var(--magenta-600); text-decoration-color: var(--magenta-600); text-underline-offset: 3px; }
a:hover { color: var(--magenta); }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

/* ----- Accessibility helpers ------------------------------------------ */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ----- Layout ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.2rem, 5vw, 4rem); }
.section--alt { background: #fff; }
.section--navy { background: var(--navy); color: #f4f5f8; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.lede { font-size: var(--step-1); color: var(--text-muted); max-width: 56ch; }
.section--navy .lede { color: #c8cfdd; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .8rem;
}
/* Decorative green whisper — the only place the secondary logo green appears */
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  flex: 0 0 auto;
}
.section--navy .eyebrow { color: var(--gold); }
.text-center .eyebrow, .eyebrow.center-x { justify-content: center; }

.section-head { max-width: 64ch; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.text-center { text-align: center; }
.center-x { margin-inline: auto; }

/* ----- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--magenta); color: #fff; }
.btn--primary:hover { background: var(--magenta-600); color: #fff; }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--magenta); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--magenta); color: var(--magenta-600); background: rgba(63, 93, 138, .06); }
.section--navy .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.section--navy .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ----- Header / nav ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark { flex: 0 0 auto; }
.brand-name strong { display: block; line-height: 1; }
.brand-name span { display: block; font-family: var(--ff-sans); font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin-top: 3px; }

/* Real logo lockup (header/footer) */
.brand-logo { display: block; width: auto; height: 40px; }
@media (min-width: 861px) { .brand-logo { height: 44px; } }
.site-footer .brand-logo { height: 40px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .3rem; }
.nav-menu a {
  display: inline-block;
  padding: .55rem .85rem;
  font-weight: 600;
  font-size: .98rem;
  color: var(--navy);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.nav-menu a:hover { background: rgba(63, 93, 138, .07); color: var(--magenta-600); }
.nav-menu a[aria-current="page"] { color: var(--gold-600); }
.nav-menu a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--gold); margin-top: 3px; border-radius: 2px; }
.nav-menu .nav-cta { margin-left: .4rem; }
.nav-menu .nav-cta a { background: var(--magenta); color: #fff; padding: .6rem 1.1rem; }
.nav-menu .nav-cta a:hover { background: var(--magenta-600); color: #fff; }

@media (max-width: 860px) {
  .nav-menu {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .8rem clamp(1.1rem, 4vw, 2rem) 1.2rem;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: .8rem .6rem; font-size: 1.05rem; }
  .nav-menu a[aria-current="page"]::after { display: none; }
  .nav-menu .nav-cta { margin: .4rem 0 0; }
  .nav-menu .nav-cta a { text-align: center; }
}
@media (min-width: 861px) { .nav-toggle { display: none; } }

/* ----- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(63, 93, 138, .07), transparent 60%),
    radial-gradient(700px 600px at -10% 110%, rgba(78, 138, 85, .05), transparent 55%),
    var(--bg);
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { margin-bottom: 1rem; }
.hero .lede { margin-bottom: 1.8rem; }

/* Decorative mosaic motif (CSS only) */
.mosaic-art {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}
.mosaic-art .tile {
  border-radius: 10px;
  background: #5376B0; /* royal blue (brand mosaic) */
  opacity: .95;
}
.mosaic-art .tile.g { background: #6CA85F; } /* dark green */
.mosaic-art .tile.l { background: #B9F39F; } /* mint */
.mosaic-art .tile.w { background: #8CD0F5; } /* sky blue */
.mosaic-art .tile.span2 { grid-column: span 2; }
.mosaic-art .tile.row2 { grid-row: span 2; }
@media (prefers-reduced-motion: no-preference) {
  .mosaic-art .tile { animation: tile-in .6s ease backwards; }
  .mosaic-art .tile:nth-child(1) { animation-delay: .02s; }
  .mosaic-art .tile:nth-child(2) { animation-delay: .06s; }
  .mosaic-art .tile:nth-child(3) { animation-delay: .10s; }
  .mosaic-art .tile:nth-child(4) { animation-delay: .14s; }
  .mosaic-art .tile:nth-child(5) { animation-delay: .18s; }
  .mosaic-art .tile:nth-child(6) { animation-delay: .22s; }
  .mosaic-art .tile:nth-child(7) { animation-delay: .26s; }
  .mosaic-art .tile:nth-child(8) { animation-delay: .30s; }
  .mosaic-art .tile:nth-child(9) { animation-delay: .34s; }
}
@keyframes tile-in { from { opacity: 0; transform: scale(.85); } to { opacity: .9; transform: scale(1); } }

/* ----- Grids ----------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ----- Cards ----------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.8rem);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card .card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gold-100);
  color: var(--navy);
  margin-bottom: 1rem;
}
.card .card-icon svg { width: 24px; height: 24px; }

/* Benefit card with big numeral */
.benefit { position: relative; }
.benefit .num {
  font-family: var(--ff-serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: .6rem;
}

/* Step / process */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .step-badge {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ----- Service catalogue (grouped) ------------------------------------ */
.svc-group { margin-top: clamp(2.2rem, 5vw, 3.4rem); }
.svc-group-head {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin-bottom: 1.3rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--line);
}
.svc-group-head .gnum {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  color: var(--gold-600);
  flex: 0 0 auto;
}
.svc-group-head h3 { margin: 0; font-size: var(--step-2); }
.svc-list { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .svc-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .svc-list { grid-template-columns: repeat(3, 1fr); } }
.svc-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.svc-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.svc-item h4 { font-family: var(--ff-sans); font-size: 1.02rem; font-weight: 700; color: var(--navy); margin: 0 0 .35rem; line-height: 1.25; }
.svc-item p { font-size: var(--step--1); color: var(--text-muted); margin: 0; }

/* ----- Core list (Núcleo) --------------------------------------------- */
.core-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .core-list { grid-template-columns: repeat(2, 1fr); } }
.core-list li {
  display: flex; gap: 1rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.core-list .ck { flex: 0 0 auto; color: var(--gold); margin-top: 2px; }
.core-list strong { display: block; color: #fff; font-family: var(--ff-serif); font-weight: 600; font-size: 1.12rem; margin-bottom: .2rem; }
.core-list span { color: #c8cfdd; font-size: var(--step--1); }

/* ----- Methodology table ---------------------------------------------- */
.method-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .method-grid { grid-template-columns: repeat(4, 1fr); } }
.method-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm); }
.method-card .mlabel { font-family: var(--ff-sans); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; color: var(--gold-600); margin-bottom: .6rem; }
.method-card .mq { font-family: var(--ff-serif); font-size: 1.15rem; color: var(--navy); line-height: 1.25; }

/* ----- FAQ (accordion) ------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: .8rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-family: var(--ff-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: 0 0 auto; transition: transform .2s ease; color: var(--gold-600); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }
.faq .faq-body p { margin: 0; }

/* ----- Forms ----------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.field .req { color: var(--gold-600); }
.field input, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 130px; }
.form .hint { font-size: var(--step--1); color: var(--text-muted); }
.form-status {
  display: none;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--gold-100);
  border: 1px solid var(--gold);
  color: var(--navy-900);
  font-weight: 600;
}
.form-status.is-visible { display: block; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* split panel for contact */
.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 920px) { .split { grid-template-columns: 1.1fr .9fr; } }
.info-card {
  background: var(--navy);
  color: #e8ecf4;
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.info-card h2, .info-card h3 { color: #fff; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ico { flex: 0 0 auto; color: var(--gold); margin-top: 2px; }
.info-list a { color: #fff; }
.info-list .label { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: .15rem; }
.social-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .3rem; }
.social-row a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .9rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600;
}
.social-row a:hover { border-color: var(--gold); color: var(--gold); }

/* ----- Closing band ---------------------------------------------------- */
.closing-band {
  background:
    radial-gradient(700px 400px at 80% 0%, rgba(63, 93, 138, .28), transparent 60%),
    var(--ink);
  color: #fff;
}
.closing-band .lede { color: #cdd4e1; }

/* ----- Prose (legal pages) -------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { color: var(--text); }
.prose a { font-weight: 600; }
.callout {
  background: var(--gold-100);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--navy-900);
}

/* ----- Breadcrumbs ----------------------------------------------------- */
.breadcrumbs { font-size: var(--step--1); color: var(--text-muted); padding-top: 1.4rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumbs li::after { content: "/"; margin-left: .4rem; color: var(--line-strong); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 600; }

/* ----- Footer ---------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #b9c2d6; padding-block: clamp(2.6rem, 6vw, 4rem) 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--ff-sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #cdd4e1; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-brand .brand { color: #fff; margin-bottom: .9rem; }
.footer-brand .brand-name span { color: var(--gold); }
.footer-tagline { font-size: var(--step--1); color: #9aa6c0; max-width: 40ch; }
.footer-nav ul, .footer-legal ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--step--1);
  color: #8a96b3;
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; align-items: center;
}
.footer-bottom a { color: #b9c2d6; }

/* ----- Reveal-on-scroll (progressive enhancement) --------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ----- 404 ------------------------------------------------------------- */
.notfound { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.notfound .code { font-family: var(--ff-serif); font-size: clamp(4rem, 16vw, 8rem); color: var(--gold); line-height: 1; }
