/* Clusterzap.ai public site — navy #15284E, orange #F57C21, light backgrounds. */

:root {
  --navy: #15284e;
  --navy-800: #1d3565;
  --navy-700: #2a4780;
  --ink: #0e1a30;
  --body: #46536b;
  --muted: #6b7a94;
  --orange: #f57c21;
  --orange-dark: #d8650f;
  --orange-soft: #fff1e4;
  --line: #e3e8f0;
  --surface: #ffffff;
  --surface-alt: #f6f8fc;
  --surface-tint: #eef3fb;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 55, .06), 0 2px 8px rgba(15, 28, 55, .05);
  --shadow-md: 0 12px 32px rgba(15, 28, 55, .10);
  --shadow-lg: 0 24px 60px rgba(15, 28, 55, .16);
  --container: 1200px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--orange-dark); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.12;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.35rem, 1.5rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.1vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); line-height: 1.25; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 780px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-align: center; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(245, 124, 33, .32); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; box-shadow: 0 12px 26px rgba(245, 124, 33, .4); }
.btn-secondary { background: transparent; color: var(--navy); border-color: rgba(21, 40, 78, .25); }
.btn-secondary:hover { color: var(--navy); border-color: var(--navy); background: var(--surface-tint); }
.btn-ghost-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 10px 20px; font-size: .94rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header .container { width: min(100% - 40px, 1320px); }
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 28px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; position: relative; align-self: stretch; }
.nav-item { position: static; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 10px; border-radius: 10px;
  color: var(--navy); font-weight: 600; font-size: .9rem; background: none; border: 0;
  font-family: inherit; cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link[aria-expanded="true"] { background: var(--surface-tint); color: var(--navy); }
.nav-link.is-active { color: var(--orange-dark); }
.nav-caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: .65; }

.mega {
  position: absolute; top: 100%; left: 0; right: 0; transform: translateY(6px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px;
  /* Flex, not auto-fit grid: the column count varies per menu and auto-fit collapses it to one track. */
  display: flex; align-items: flex-start; gap: 26px;
  opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-item:hover > .mega, .nav-item:focus-within > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-group-title { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.mega a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.mega a:hover { background: var(--surface-tint); color: var(--navy); }
.mega a span { display: block; font-weight: 400; font-size: .84rem; color: var(--muted); margin-top: 2px; line-height: 1.45; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
.nav-toggle span + span { margin-top: 5px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 6vw, 96px) 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, #0e1c39 100%); color: #cdd7e8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #ffd3ad; }

.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange-dark); margin-bottom: 14px;
}
.section-dark .eyebrow { color: #ffb066; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--body); }
.section-dark .lead { color: #c3cfe4; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 6vw, 96px) 0 clamp(48px, 5vw, 80px);
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(245, 124, 33, .16), transparent 62%),
    radial-gradient(760px 420px at 6% 4%, rgba(42, 71, 128, .13), transparent 60%),
    var(--surface);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero-sub { font-size: clamp(1.08rem, 1rem + .45vw, 1.32rem); color: var(--body); max-width: 40ch; }
.hero-support { color: var(--muted); font-size: 1.02rem; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }
.hero-note { font-size: .92rem; color: var(--muted); }
.hero-compact { padding-bottom: clamp(40px, 4vw, 64px); }
.hero-compact .hero-grid { grid-template-columns: 1fr; max-width: 860px; }

/* Product mock shown beside the hero copy. */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #d7dfec; }
.mock-title { margin-left: 8px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.mock-body { padding: 20px; display: grid; gap: 12px; }
.mock-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mock-row.accent { border-color: rgba(245, 124, 33, .4); background: var(--orange-soft); }
.mock-tag {
  flex: 0 0 auto; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 7px; background: var(--surface-tint); color: var(--navy-700);
}
.mock-row.accent .mock-tag { background: rgba(245, 124, 33, .18); color: var(--orange-dark); }
.mock-text { font-size: .9rem; line-height: 1.5; color: var(--ink); }
.mock-text b { color: var(--navy); }
.mock-foot { display: flex; gap: 10px; padding: 0 20px 20px; }
.mock-btn { font-size: .82rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: var(--orange); color: #fff; }
.mock-btn.alt { background: var(--surface-tint); color: var(--navy); }

/* ---------- Logo strip ---------- */
.logo-strip { padding: 34px 0 6px; }
.logo-strip p { text-align: center; font-size: .88rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; margin-bottom: 20px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; }
.logo-tile {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 150px; height: 64px; padding: 10px 22px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.logo-tile img {
  max-height: 40px; width: auto; max-width: 180px; display: block;
  /* Real logos are muted so the wall reads as one row, and come to life on hover. */
  filter: grayscale(1); opacity: .72; transition: filter .2s ease, opacity .2s ease;
}
.logo-tile:hover img { filter: none; opacity: 1; }
/* Generated wordmarks are already flat, so they need no desaturation. */
.logo-tile.is-wordmark img { filter: none; opacity: .9; max-height: 46px; }
.logo-tile.is-wordmark:hover img { opacity: 1; }

/* Kept for anywhere a compact text chip still suits, such as the demo page sidebar. */
.logo-chip {
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--navy); font-weight: 600; font-size: .92rem; letter-spacing: .01em;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .45em; }
.card p { margin-bottom: 0; font-size: .98rem; }
.card-link { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--orange-dark); font-size: .95rem; }
a.card:hover, .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfd9e8; }
.section-dark .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.section-dark .card p { color: #c3cfe4; }
.section-dark .card-link { color: #ffb066; }

.card-num {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; margin-bottom: 16px; font-size: .98rem;
}
.section-dark .card-num { background: rgba(245, 124, 33, .22); color: #ffc48c; }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.metric { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.metric-value { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.05; }
.metric-label { font-size: .95rem; color: var(--muted); margin-top: 8px; }
.section-dark .metric { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.section-dark .metric-value { color: #fff; }
.section-dark .metric-label { color: #b9c6dd; }

/* ---------- Bullets ---------- */
.bullets { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px 36px; list-style: none; padding: 0; margin: 0; }
.bullets li { display: flex; gap: 14px; }
.tick { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; font-size: .78rem; font-weight: 700; margin-top: 3px; }
.section-dark .tick { background: rgba(245, 124, 33, .22); color: #ffc48c; }
.bullets strong { display: block; color: var(--ink); font-size: 1.03rem; }
.section-dark .bullets strong { color: #fff; }
.bullets span { font-size: .97rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.section-dark .table-wrap { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); }
table.data { width: 100%; border-collapse: collapse; min-width: 620px; }
table.data th, table.data td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .96rem; vertical-align: top; }
table.data th { background: var(--surface-alt); color: var(--ink); font-weight: 700; font-size: .84rem; letter-spacing: .05em; text-transform: uppercase; }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 600; color: var(--ink); }
/* Two-column tables read as label/value, so the value carries the emphasis. */
table.data.pair td:last-child { color: var(--navy); font-weight: 600; }
.section-dark table.data th { background: rgba(255, 255, 255, .08); color: #fff; }
.section-dark table.data th, .section-dark table.data td { border-color: rgba(255, 255, 255, .14); color: #cdd7e8; }
.section-dark table.data td:first-child { color: #fff; }

/* ---------- Quotes ---------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.quote-card p { font-size: 1.02rem; color: var(--ink); margin-bottom: 14px; }
.quote-card cite { font-style: normal; font-size: .92rem; color: var(--muted); font-weight: 600; }
.section-dark .quote-card { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); border-left-color: var(--orange); box-shadow: none; }
.section-dark .quote-card p { color: #fff; }
.section-dark .quote-card cite { color: #b9c6dd; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 22px; }
.faq details[open] { border-color: #cfd9e8; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--orange); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-answer { padding-bottom: 20px; margin: 0; font-size: 1rem; }
.section-dark .faq details { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
.section-dark .faq summary { color: #fff; }

/* ---------- Closing CTA ---------- */
.cta-band { background: linear-gradient(140deg, var(--navy) 0%, #0d1c3a 60%, #1b2f5c 100%); color: #fff; }
.cta-band .container { padding: clamp(52px, 6vw, 84px) 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3cfe4; font-size: 1.1rem; max-width: 62ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
/* Bottom padding keeps the last row clear of the fixed WhatsApp widget. */
.site-footer { background: #0c1830; color: #9fb0cb; padding: 64px 0 84px; font-size: .94rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(6, minmax(0, 1fr)); gap: 30px 24px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand img { height: 30px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; color: #9fb0cb; }
.footer-col h4 { color: #fff; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: #9fb0cb; font-size: .88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 24px; font-size: .88rem; }
.footer-social { display: flex; gap: 16px; }
.subscribe { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.subscribe input {
  flex: 1 1 100%; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: .94rem;
}
.subscribe input::placeholder { color: #8195b4; }
.subscribe-note { margin-top: 10px; font-size: .86rem; color: #ffb066; }

/* ---------- Sticky conversion aids ---------- */
.float-whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 9px;
  background: #1fa855; color: #fff; font-weight: 600; font-size: .94rem;
  padding: 13px 20px; border-radius: 999px; box-shadow: var(--shadow-md);
}
.float-whatsapp:hover { color: #fff; background: #18924a; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: .98rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-700); outline: none; box-shadow: 0 0 0 4px rgba(42, 71, 128, .12); }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.text-danger, .field span.field-validation-error { display: block; color: #c0392b; font-size: .86rem; margin-top: 6px; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1em; color: #c0392b; font-size: .92rem; }

/* ---------- Editorial ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; font-size: .92rem; }
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.post-card { overflow: hidden; }
.post-meta { font-size: .84rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-bottom: 12px; text-transform: uppercase; }
.post-card h3 { font-size: 1.18rem; }
.post-card p { color: var(--body); }

.article-hero { padding: clamp(44px, 5vw, 72px) 0 24px; background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.article-hero h1 { font-size: clamp(2rem, 1.4rem + 2.3vw, 3rem); max-width: 22ch; }
.article-body { padding: clamp(40px, 5vw, 64px) 0; font-size: 1.08rem; line-height: 1.75; }
.article-body h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.8rem); margin-top: 2em; }
.article-body ul li { margin-bottom: .5em; }
.article-body a { text-decoration: underline; }

.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin: 30px 0; }
.result { background: var(--surface-tint); border-radius: var(--radius); padding: 22px; }
.result .metric-value { font-size: 1.9rem; }

.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 44px; }
.pagination a, .pagination span { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; font-size: .94rem; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-dark); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Pricing ---------- */
/* Pricing tables sit in a half-width column, so they must fit without horizontal scroll. */
table.data.price-table { min-width: 0; }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
.price-table th, .price-table td { padding: 14px 16px; }
.price-table small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; margin-top: 2px; }
.price-highlight { background: linear-gradient(150deg, var(--navy) 0%, #16305f 100%); color: #fff; border-radius: var(--radius-lg); padding: 34px; }
.price-highlight h3 { color: #fff; }
.price-highlight ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.price-highlight li { display: flex; gap: 10px; color: #c3cfe4; font-size: .97rem; }
.price-amount { font-size: 2.6rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.price-amount small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* ---------- Responsive ---------- */
/* Below this the eight menu items no longer fit beside the logo and CTA (measured: 1225px needed). */
@media (max-width: 1264px) {
  .nav { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-actions .btn-secondary { display: none; }
  .nav.is-open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 12px 20px 22px; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.is-open .nav-item { display: block; }
  .nav.is-open .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; }
  .nav.is-open .mega {
    position: static; transform: none; opacity: 1; visibility: visible; min-width: 0;
    box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0;
    padding: 4px 0 12px 14px; margin-bottom: 8px; display: none; grid-template-columns: 1fr; gap: 14px;
  }
  .nav.is-open .nav-item.is-open .mega { display: grid; }
  .nav.is-open .nav-item > .mega { left: auto; right: auto; transform: none; }
}

@media (max-width: 1180px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container, .narrow { width: calc(100% - 32px); }
  /* The header must fit a 360px viewport: logo, one CTA and the menu toggle. */
  .header-inner { gap: 10px; min-height: 64px; }
  .brand img { height: 24px; }
  .header-actions { gap: 4px; }
  .header-actions .btn-sm { padding: 9px 14px; font-size: .86rem; }
  .nav-toggle { padding: 8px; }
  .nav.is-open { max-height: calc(100vh - 64px); }
  table.data { min-width: 0; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .hero-ctas .btn { width: 100%; }
  /* On a phone the label would sit over the primary CTA, so the widget becomes an icon. */
  .float-whatsapp { right: 14px; bottom: 14px; width: 52px; height: 52px; padding: 0; justify-content: center; }
  .float-whatsapp span { display: none; }
  .float-whatsapp svg { width: 24px; height: 24px; }
}

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

@media print {
  .site-header, .site-footer, .float-whatsapp, .cta-band { display: none; }
}

/* ===================================================================
   Illustrations, mega-menu promo, split sections, tabs, motion
   =================================================================== */

.hero-art img, .split-art img, .tab-art img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.hero-grid-single { grid-template-columns: 1fr; max-width: 860px; }

.card-media { padding-top: 0; overflow: hidden; }
.card-art {
  width: calc(100% + 2px); margin: -1px -1px 20px; display: block;
  border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}
.card-media > h3, .card-media > p, .card-media > .card-link { padding-inline: 28px; }
.card-media > .card-link { padding-bottom: 26px; }
.card-media > p { padding-bottom: 4px; }
.section-dark .card-art { border-bottom-color: rgba(255, 255, 255, .16); }

/* Mega-menu promo column */
.mega-group { flex: 0 1 240px; min-width: 190px; }
.mega-promo { flex: 0 0 260px; margin-left: auto; }
.mega-promo {
  display: block; padding: 0 0 16px; border-radius: 16px; background: var(--surface-alt);
  border: 1px solid var(--line); overflow: hidden; align-self: start;
}
.mega-promo:hover { background: var(--surface-tint); border-color: #cfd9e8; }
.mega-promo img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--line); }
.mega-promo-eyebrow {
  display: inline-block; margin: 14px 16px 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange-dark);
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.mega-promo strong { display: block; padding: 0 16px; color: var(--ink); font-size: .98rem; line-height: 1.3; }
.mega-promo-text { display: block; padding: 6px 16px 0; font-size: .84rem; font-weight: 400; color: var(--muted); line-height: 1.5; }
.mega-promo-link { display: block; padding: 10px 16px 0; font-size: .85rem; font-weight: 600; color: var(--orange-dark); }

/* Split: copy beside an illustration */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-reverse .split-art { order: 1; }
.split-copy h2 { margin-bottom: .5em; }
.split-copy .lead:last-child { margin-bottom: 0; }

/* Tabs */
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab {
  font: inherit; font-size: .94rem; font-weight: 600; cursor: pointer;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--navy);
}
.tab:hover { border-color: var(--navy); }
.tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.section-dark .tab { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #dbe4f2; }
.section-dark .tab:hover { border-color: #fff; color: #fff; }
.section-dark .tab.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.tab-panel { display: none; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.tab-panel.is-active { display: grid; }
.tab-copy h3 { font-size: 1.35rem; }
.tab-copy .lead { margin-bottom: 18px; }

/* Reveal on scroll — only for viewers who have not asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].reveal-init { opacity: 0; transform: translateY(18px); }
  [data-reveal].reveal-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1); }
}

@media (max-width: 1264px) {
  .nav.is-open .mega { display: none; flex-direction: column; }
  .nav.is-open .nav-item.is-open .mega { display: flex; }
  .nav.is-open .mega-promo { display: none; }
}

@media (max-width: 900px) {
  .split, .tab-panel.is-active { grid-template-columns: 1fr; gap: 30px; }
  .split-reverse .split-copy { order: 1; }
  .split-reverse .split-art { order: 2; }
  .hero-art { order: 2; }
}

/* ---------- People ---------- */
.person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.person-monogram {
  display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 18px;
  border-radius: 50%; background: linear-gradient(150deg, var(--navy-700), var(--navy));
  color: #fff; font-size: 1.32rem; font-weight: 700; letter-spacing: .03em;
}
.person-photo {
  width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
}
.section-dark .person-photo { border-color: rgba(255, 255, 255, .18); box-shadow: none; }
.person h3 { font-size: 1.16rem; margin-bottom: 6px; }
.person-role {
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange-dark); margin-bottom: 14px;
}
.person-bio { font-size: .97rem; margin-bottom: 0; }
.section-dark .person { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.section-dark .person-monogram { background: linear-gradient(150deg, var(--orange), var(--orange-dark)); }
.section-dark .person-bio { color: #c3cfe4; }
.section-dark .person-role { color: #ffb066; }

/* ---------- Infographics ---------- */
.figure { margin: 0; }
.figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow-sm);
}
.figure figcaption {
  margin-top: 14px; font-size: .92rem; color: var(--muted); text-align: center;
}
.section-dark .figure img { border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.section-dark .figure figcaption { color: #9fb0cb; }
