/* Credence Firm — site styles
   Palette: deep navy, emerald accent, warm paper, slate neutrals. */
:root {
  --navy-900: #0a1628;
  --navy-800: #0f1f3d;
  --navy-700: #172554;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --paper: #f7f5f0;
  --white: #ffffff;
  --emerald: #059669;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;
  --whatsapp: #22c55e;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', 'Segoe UI', Arial, Helvetica, sans-serif;

  --radius-lg: 2rem;
  --radius-md: 1.25rem;
  --radius-sm: .75rem;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, .35);
  --container: 76rem;
  --gutter: 1.5rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--emerald-400); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section--soft { background: var(--soft); }
.section--paper { background: var(--paper); }
.section--dark { background: linear-gradient(135deg, var(--navy-900) 0%, #0d2137 45%, #0a2e1f 100%); color: #cbd5e1; position: relative; overflow: hidden; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.grid-2 { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: 1fr; align-items: center; }
.grid-2 > * { min-width: 0; }
@media (min-width: 960px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2--top { align-items: start; } }

/* ---------- Type ---------- */
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--emerald); margin-bottom: 1rem; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--emerald-400); }
.h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -.02em; }
.h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.015em; margin-bottom: 1.25rem; }
.display { font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 6vw, 5rem); line-height: .95; letter-spacing: -.01em; }
.display em { font-weight: 700; font-style: italic; }
.lead { font-size: 1.15rem; line-height: 1.7; color: var(--muted); max-width: 40rem; }
.prose p + p { margin-top: 1.1rem; }
.prose p { max-width: 65ch; }
.rule { width: 5rem; height: 4px; background: var(--emerald); border-radius: 2px; margin-block: 1.5rem 2rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.9rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background-color .2s, color .2s, transform .25s, box-shadow .2s, border-color .2s;
}
.btn svg { width: 1rem; height: 1rem; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--emerald); color: var(--white); box-shadow: 0 10px 25px -10px rgba(5,150,105,.6); }
.btn--primary:hover { background: var(--emerald-500); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #1e293b; }
.btn--ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--outline { border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--emerald); color: var(--emerald); }
.btn--sm { padding: .65rem 1.4rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 700; color: var(--emerald); }
.link-arrow svg { width: .9rem; height: .9rem; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header / nav ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy-900); }
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  padding-block: 1.25rem; transition: background-color .35s, padding .35s, box-shadow .35s;
}
.site-header.is-solid, .site-header.menu-open { background: rgba(10, 22, 40, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-block: .8rem; box-shadow: 0 10px 30px -15px rgba(0,0,0,.5); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; color: var(--white); }
.logo svg, .logo img { width: 10rem; height: auto; }
.nav-links { display: none; align-items: center; gap: 1.75rem; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button.nav-trigger { color: #e2e8f0; font-size: .9rem; font-weight: 600; transition: color .2s; background: none; border: 0; font-family: inherit; cursor: pointer; padding: .4rem 0; display: inline-flex; align-items: center; gap: .3rem; }
.nav-links a:hover, .nav-links button.nav-trigger:hover, .nav-links a[aria-current="page"], .nav-links .is-current > .nav-trigger { color: var(--emerald-400); }
.nav-trigger svg { width: .85rem; height: .85rem; transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + .75rem); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 34rem; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown::before { content: ""; position: absolute; top: -.9rem; left: 0; right: 0; height: .9rem; }
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-dropdown.open .nav-trigger svg { transform: rotate(180deg); }
.dropdown a { display: block; padding: .7rem .9rem; border-radius: var(--radius-sm); color: var(--ink) !important; }
.dropdown a:hover { background: var(--emerald-50); }
.dropdown a strong { display: block; font-size: .9rem; }
.dropdown a span { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); line-height: 1.4; margin-top: .15rem; }
.dropdown .dropdown-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .85rem; color: var(--emerald) !important; font-weight: 700; font-size: .85rem; }
.nav-cta { display: none; }
.menu-btn { background: none; border: 0; color: var(--white); padding: .35rem; cursor: pointer; }
.menu-btn svg { width: 1.6rem; height: 1.6rem; }
.mobile-menu { padding-top: 1rem; padding-bottom: 1rem; max-height: calc(100dvh - 5rem - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu ul { display: grid; gap: .1rem; }
.mobile-menu a { display: block; padding: .8rem .25rem; color: #e2e8f0; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu a[aria-current="page"] { color: var(--emerald-400); }
.mobile-menu .sub a { padding-left: 1rem; font-weight: 500; font-size: .92rem; color: #94a3b8; }
.mobile-menu .btn { margin-top: 1.25rem; width: 100%; }
@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 0%, #1e3a6e 0%, var(--navy-700) 35%, var(--navy-900) 100%);
  color: #e2e8f0;
  padding-top: calc(8rem + env(safe-area-inset-top, 0px)); padding-bottom: clamp(4rem, 8vw, 6rem);
}
.hero::before { content: ""; position: absolute; inset: 0; background: url('/assets/img/hero_bg.jpg') center / cover no-repeat; opacity: .14; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 64px 64px; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; font-size: clamp(2.6rem, 5vw, 4rem); }
.hero h1 span { color: var(--emerald-400); }
.hero .lead { color: #cbd5e1; margin-bottom: 2.5rem; }
.badge { display: inline-block; padding: .4rem 1rem; border-radius: 999px; background: var(--emerald-100); color: #047857; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-visual { position: relative; max-width: 30rem; margin-inline: auto; width: 100%; }
.hero-visual .photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.float-card { position: absolute; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius-md); padding: .9rem 1.1rem; display: flex; align-items: center; gap: .75rem; color: var(--ink); box-shadow: var(--shadow); }
.float-card--tl { top: 1.5rem; left: -1rem; }
.float-card--br { bottom: 1.5rem; right: -1rem; }
@media (max-width: 560px) { .float-card--tl { left: .75rem; } .float-card--br { right: .75rem; } }
.float-card .icon-circle { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--emerald-100); color: var(--emerald); display: grid; place-items: center; flex-shrink: 0; }
.float-card .icon-circle svg { width: 1.2rem; height: 1.2rem; }
.float-card small { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.float-card strong { font-size: .92rem; }
.avatars { display: flex; }
.avatars span { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--white); margin-left: -.5rem; display: grid; place-items: center; font-size: .62rem; font-weight: 800; color: var(--white); }
.avatars span:first-child { margin-left: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, #0b3b2c 130%);
  color: #cbd5e1;
  padding-top: calc(9rem + env(safe-area-inset-top, 0px)); padding-bottom: clamp(3.5rem, 7vw, 5rem);
}
.page-hero::after { content: ""; position: absolute; right: -6rem; top: -6rem; width: 28rem; height: 28rem; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.25), transparent 70%); pointer-events: none; }
.page-hero h1 { color: var(--white); margin-bottom: 1.25rem; font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -.02em; max-width: 48rem; }
.page-hero .lead { color: #cbd5e1; }
.page-hero .container { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: #94a3b8; margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--emerald-400); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Photos (real images drop into /assets/img; gradients show until then) ---------- */
.photo { position: relative; overflow: hidden; background-size: cover; background-position: center; background-color: #1e293b; }
.photo--accountant { background-image: url('/assets/img/home.jpg'), linear-gradient(160deg, #dbe5ee 0%, #a9bccf 45%, #5b7896 100%); }
.photo--trust { background-image: url('/assets/img/trust.jpg'), linear-gradient(135deg, #0f766e, #064e3b); }
.photo--process { background-image: url('/assets/img/process.jpg'), linear-gradient(145deg, #334155, #0f172a); }
.photo--cash { background-image: url('/assets/img/cash.jpg'), repeating-linear-gradient(115deg, #065f46 0 14px, #047857 14px 28px); }
.photo--event { background-image: url('/assets/img/event-tax-2026.jpg'), linear-gradient(135deg, #1e3a6e, #0b3b2c); }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.25rem; }
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.cards--services { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.service-card { display: flex; flex-direction: column; gap: 1rem; padding: 2.25rem; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); border: 1px solid #eef2f6; transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card h3 { font-size: 1.2rem; font-weight: 800; }
.service-card p { font-size: .92rem; color: var(--muted); flex-grow: 1; }
.service-card .icon-box { margin-bottom: .5rem; }
.service-card--dark { background: var(--ink); border-color: var(--ink); }
.service-card--dark h3 { color: var(--white); }
.service-card--dark p { color: #cbd5e1; }
.service-card--dark .link-arrow { color: var(--emerald-400); }
.service-card--dark .icon-box { background: rgba(255,255,255,.12); color: var(--white); }
.service-card--green { background: var(--emerald); border-color: var(--emerald); }
.service-card--green h3, .service-card--green .link-arrow { color: var(--white); }
.service-card--green p { color: #ecfdf5; }
.service-card--green .icon-box { background: rgba(255,255,255,.2); color: var(--white); }
.icon-box { width: 3rem; height: 3rem; border-radius: var(--radius-sm); background: var(--emerald-50); color: var(--emerald); display: grid; place-items: center; flex-shrink: 0; }
.icon-box svg { width: 1.4rem; height: 1.4rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1rem; }
.stat { padding: 2rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.stat strong { display: block; font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: .6rem; font-variant-numeric: tabular-nums; }
.stat span { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat--green { background: var(--emerald); border-color: var(--emerald); }
.stat--green strong, .stat--green span { color: var(--white); }
.stat--dark { background: var(--ink); border-color: var(--ink); }
.stat--dark strong, .stat--dark span { color: var(--white); }

/* ---------- Feature list ---------- */
.features { display: grid; gap: 2rem; }
.feature { display: flex; gap: 1.25rem; }
.feature .icon-box { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--white); box-shadow: 0 4px 12px -4px rgba(15,23,42,.15); }
.feature h4 { font-size: 1.02rem; font-weight: 800; margin-bottom: .35rem; }
.feature p { font-size: .93rem; color: var(--muted); }

/* ---------- Quote card ---------- */
.quote-card { position: relative; overflow: hidden; background: var(--white); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3rem); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.quote-card blockquote { margin: 1.5rem 0 1.25rem; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.2; color: var(--ink); }
.quote-card p { color: var(--muted); font-size: .95rem; }
.quote-card .watermark { position: absolute; right: 1.5rem; top: 1.5rem; width: 7rem; height: 7rem; color: rgba(5,150,105,.08); }

/* ---------- Split panels (Development / Approach) ---------- */
.panels { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .panels { grid-template-columns: 1fr 1fr; } }
.panel { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) max(var(--gutter), env(safe-area-inset-left, 0px)); }
.panel-inner { position: relative; z-index: 1; max-width: 34rem; }
.panel--dark { background: var(--navy-900); color: #94a3b8; }
.panel--dark .display { color: var(--white); }
.panel--paper { background: var(--paper); color: var(--muted); }
.panel--paper .display { color: var(--ink); }
.panel::before { position: absolute; font-family: var(--font-display); font-weight: 700; font-size: clamp(14rem, 26vw, 24rem); line-height: 1; pointer-events: none; user-select: none; }
.panel--dark::before { content: 'D'; top: -.15em; left: -.05em; color: rgba(255,255,255,.04); }
.panel--paper::before { content: 'A'; bottom: -.2em; right: -.05em; color: rgba(15,23,42,.05); }
@media (min-width: 900px) { .panel--dark { display: flex; justify-content: flex-end; } }
.panel .display { margin-bottom: 2rem; }
.panel .hairline { height: 1px; background: currentColor; opacity: .15; margin-bottom: 2rem; }
.panel p { font-size: .95rem; line-height: 1.75; }
.panel .hl { color: var(--emerald-400); font-weight: 600; }
.principles { margin-top: 2.5rem; border-top: 1px solid rgba(15,23,42,.1); }
.principles li { display: flex; gap: 1rem; padding-block: .85rem; border-bottom: 1px solid rgba(15,23,42,.07); font-size: .93rem; color: var(--text); }
.principles li span { color: var(--emerald); font-size: .75rem; font-weight: 800; padding-top: .15rem; font-variant-numeric: tabular-nums; }
.tagline { margin-top: 2.5rem; display: flex; align-items: center; gap: .75rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.tagline::before { content: ""; width: 2rem; height: 2px; background: var(--emerald); }

/* ---------- Process ---------- */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); counter-reset: none; }
.step { position: relative; padding: 2rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.step-num { width: 3rem; height: 3rem; border-radius: 50%; background: var(--emerald); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: .9rem; margin-bottom: 1.25rem; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .6rem; }
.step p { font-size: .92rem; color: var(--muted); }
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1.5rem; padding-bottom: 2.5rem; position: relative; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 1.6rem; top: 3.5rem; bottom: .5rem; width: 2px; background: linear-gradient(var(--emerald-100), transparent); }
.timeline-item h3 { font-size: 1.3rem; font-weight: 800; margin: .55rem 0 .6rem; }
.timeline-item p { color: var(--muted); }
.timeline-item ul { margin-top: 1rem; display: grid; gap: .45rem; }
.timeline-item li { display: flex; gap: .6rem; font-size: .93rem; }
.timeline-item li::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--emerald); margin-top: .55rem; flex-shrink: 0; }

/* ---------- Check list ---------- */
.checklist { display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .85rem; align-items: flex-start; }
.checklist svg { width: 1.3rem; height: 1.3rem; color: var(--emerald); flex-shrink: 0; margin-top: .15rem; }
.checklist--cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem 2rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); border-radius: 2.5rem; padding: clamp(2.5rem, 7vw, 5rem); color: #cbd5e1; }
.cta-band h2 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; margin-bottom: 1.25rem; max-width: 36rem; }
.cta-band p { font-size: 1.08rem; margin-bottom: 2.25rem; max-width: 34rem; }
.cta-band .content { position: relative; z-index: 1; }
.cta-band .photo { position: absolute; right: 4rem; top: 50%; width: 18rem; height: 18rem; border-radius: 1.75rem; transform: translateY(-50%) rotate(12deg); opacity: .45; border: 1px solid #334155; display: none; }
@media (min-width: 1100px) { .cta-band .photo { display: block; } }
.cta-band::after { content: ""; position: absolute; right: -5rem; bottom: -5rem; width: 18rem; height: 18rem; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.28), transparent 70%); }

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group-title { font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--emerald-400); margin-bottom: .5rem; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.08); }
.faq-q { width: 100%; background: none; border: 0; padding: 1.75rem 0; display: flex; align-items: flex-start; gap: 1.5rem; text-align: left; cursor: pointer; font-family: inherit; color: var(--white); }
.faq-q .num { font-size: .75rem; font-weight: 800; letter-spacing: .12em; color: #64748b; width: 2rem; padding-top: .45rem; flex-shrink: 0; font-variant-numeric: tabular-nums; transition: color .3s; }
.faq-q .q { flex: 1; font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 700; line-height: 1.35; transition: color .3s; }
.faq-q .toggle { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 2px solid #475569; color: #94a3b8; display: grid; place-items: center; flex-shrink: 0; transition: all .3s; }
.faq-q .toggle svg { width: 1rem; height: 1rem; transition: transform .3s; }
.faq-q:hover .q { color: #e2e8f0; }
.faq-item.open .num, .faq-item.open .q { color: var(--emerald-400); }
.faq-item.open .toggle { background: var(--emerald-500); border-color: var(--emerald-500); color: var(--white); }
.faq-item.open .toggle svg { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 0 2rem 3.5rem; color: #94a3b8; font-size: 1.02rem; line-height: 1.75; max-width: 60rem; }
@media (max-width: 600px) { .faq-a p { padding-left: 0; } .faq-q { gap: 1rem; } }
.faq-panel { margin-top: 4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; border-radius: 1.5rem; padding: 2.25rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.faq-panel strong { display: block; color: var(--white); font-size: 1.3rem; }
.grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .04; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 60px 60px; }
.glow { position: absolute; border-radius: 50%; pointer-events: none; }

/* ---------- Events ---------- */
.event-card { display: grid; grid-template-columns: 1fr; overflow: hidden; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 800px) { .event-card { grid-template-columns: 1.1fr 1fr; } }
.event-card .photo { min-height: 16rem; }
.event-body { padding: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1.25rem; }
.event-body h3 { font-size: 1.6rem; font-weight: 800; }
.event-meta { display: grid; gap: .65rem; }
.event-meta li { display: flex; align-items: center; gap: .7rem; font-size: .95rem; }
.event-meta svg { width: 1.1rem; height: 1.1rem; color: var(--emerald); }
.pill { display: inline-flex; align-self: flex-start; padding: .3rem .8rem; border-radius: 999px; background: var(--emerald-50); color: #047857; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .icon-box { border-radius: 50%; }
.contact-item small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.contact-item strong, .contact-item a { color: var(--ink); font-weight: 700; word-break: break-word; }
.contact-item a:hover { color: var(--emerald); }
.form-card { background: var(--soft); border: 1px solid var(--line); border-radius: 2.25rem; padding: clamp(1.75rem, 4vw, 3rem); }
.form { display: grid; gap: 1.4rem; }
.form-row { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .5rem; }
.field label { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 1rem 1.25rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--white);
  font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; outline: none;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(5,150,105,.12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; padding-block: 1.15rem; border-radius: 1rem; }
.form-status { font-size: .93rem; border-radius: 1rem; padding: .9rem 1.1rem; }
.form-status.ok { background: var(--emerald-50); color: #065f46; }
.form-status.err { background: #fef2f2; color: #991b1b; }

/* ---------- Service detail ---------- */
.service-layout { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); grid-template-columns: 1fr; }
.service-layout > * { min-width: 0; }
@media (min-width: 960px) { .service-layout { grid-template-columns: minmax(0, 1fr) 21rem; } }
.service-main h2 { font-size: 1.6rem; font-weight: 800; margin: 2.75rem 0 1.25rem; }
.service-main h2:first-child { margin-top: 0; }
.aside-card { position: sticky; top: 7rem; display: grid; gap: 1.25rem; align-self: start; }
.aside-box { border-radius: var(--radius-lg); padding: 2rem; background: var(--soft); border: 1px solid var(--line); }
.aside-box h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 1rem; }
.aside-box--dark { background: var(--ink); border-color: var(--ink); color: #cbd5e1; }
.aside-box--dark h3 { color: var(--white); }
.aside-box--dark p { font-size: .92rem; margin-bottom: 1.5rem; }
.aside-box--dark .btn { width: 100%; }
.side-nav { display: grid; gap: .15rem; }
.side-nav a { display: block; padding: .55rem .8rem; border-radius: .6rem; font-size: .9rem; font-weight: 600; color: var(--text); }
.side-nav a:hover { background: var(--white); color: var(--emerald); }
.side-nav a[aria-current="page"] { background: var(--white); color: var(--emerald); box-shadow: 0 2px 8px -4px rgba(15,23,42,.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding-top: 5rem; padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; margin-bottom: 4rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
.site-footer .logo { color: var(--ink); margin-bottom: 1.5rem; }
.site-footer h5 { font-size: .95rem; font-weight: 800; color: var(--ink); margin: 0 0 1.5rem; }
.site-footer ul { display: grid; gap: .85rem; color: var(--muted); }
.site-footer a:hover { color: var(--emerald); }
.footer-about p { color: var(--muted); margin-bottom: 1.5rem; max-width: 22rem; }
.socials { display: flex; gap: .75rem; }
.socials a { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); }
.socials svg { width: 1rem; height: 1rem; }
.footer-contact li { display: flex; gap: .75rem; }
.footer-contact svg { width: 1.15rem; height: 1.15rem; color: var(--emerald); flex-shrink: 0; margin-top: .2rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .8rem; color: #94a3b8; }

/* ---------- WhatsApp button ---------- */
.wa-float { position: fixed; right: calc(1.25rem + env(safe-area-inset-right, 0px)); bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--whatsapp); color: var(--white); display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(34,197,94,.7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 1.6rem; height: 1.6rem; }

/* ---------- Motion ---------- */
.reveal { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.pre { opacity: .2; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal.pre { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.muted { color: var(--muted); }
.text-white { color: var(--white); }

/* ---------- Service groups ---------- */
.dropdown--grouped { width: 46rem; grid-template-columns: 15rem 1fr; gap: 0 1rem; padding: 1.25rem; }
.dd-col { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.dd-col--wide { border-left: 1px solid var(--line); padding-left: 1rem; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem; }
.dd-label { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--emerald); padding: .2rem .9rem .5rem; }
.dropdown a.dd-group-link { margin-top: auto; background: var(--emerald-50); }
.dropdown a.dd-group-link strong { color: #047857; }
.pillars { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pillars { grid-template-columns: 1fr 1fr; } .pillars .service-card--group { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .pillars { grid-template-columns: 1fr 1fr 1.6fr; } .pillars .service-card--group { grid-column: auto; } }
.service-card--group { background: linear-gradient(135deg, #064e3b 0%, #047857 100%); border-color: #065f46; color: #d1fae5; }
.service-card--group:hover { transform: none; }
.service-card--group h3, .service-card--group h3 a { color: var(--white); }
.service-card--group h3 a:hover { color: #a7f3d0; }
.service-card--group p { color: #d1fae5; flex-grow: 0; }
.service-card--group .icon-box { background: rgba(255,255,255,.16); color: var(--white); }
.service-card--group .link-arrow { color: var(--white); margin-top: auto; }
.group-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .35rem 1rem; margin: .25rem 0 .75rem; }
.group-list a { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--white); padding: .3rem 0; }
.group-list a::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: #a7f3d0; flex-shrink: 0; }
.group-list a:hover { color: #a7f3d0; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.cr-list { display: grid; gap: 1rem; }
.cr-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding: 1.75rem 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color .2s, box-shadow .2s; }
.cr-row > div { min-width: 0; }
.cr-row:hover { border-color: var(--emerald); box-shadow: var(--shadow); }
.cr-row h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .3rem; }
.cr-row p { color: var(--muted); font-size: .93rem; }
@media (max-width: 640px) { .cr-row { grid-template-columns: auto 1fr; } .cr-row .link-arrow { grid-column: 2; } }
.side-label { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald); padding: .9rem .8rem .3rem; }
.mobile-menu .sub2 a { padding-left: 2rem; font-size: .88rem; }
.site-footer li.f-sub { padding-left: .85rem; font-size: .85rem; }

/* Services menu: Consulting and Risk Services opens on click */
.dropdown--stack { width: 22rem; grid-template-columns: 1fr; }
.sub-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; background: none; border: 0; cursor: pointer; font-family: inherit; padding: .7rem .9rem; border-radius: var(--radius-sm); color: var(--ink); }
.sub-toggle:hover { background: var(--emerald-50); }
.sub-toggle strong { display: block; font-size: .9rem; }
.sub-toggle span span { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); margin-top: .15rem; }
.sub-toggle svg { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform .2s; color: var(--emerald); }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub-toggle[aria-expanded="true"] { background: var(--emerald-50); }
.dropdown .sub-list { display: grid; gap: .1rem; margin: .25rem 0 .25rem .9rem; padding-left: .75rem; border-left: 2px solid var(--emerald-100); }
.dropdown .sub-list[hidden] { display: none; }
.dropdown .sub-list a { padding: .5rem .75rem; font-size: .88rem; font-weight: 600; }
.dropdown .sub-list a.sub-overview { color: var(--emerald) !important; }
.sub-toggle--mobile { color: #e2e8f0; font-weight: 500; font-size: .92rem; padding: .8rem .25rem .8rem 1rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.sub-toggle--mobile:hover, .sub-toggle--mobile[aria-expanded="true"] { background: none; color: var(--emerald-400); }
.sub-toggle--mobile svg { color: currentColor; }

.panel p + p { margin-top: 1.1rem; }

/* Event registration window */
.events-list { display: grid; gap: 2rem; }
.modal { border: 0; padding: 0; background: transparent; width: min(40rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; }
.modal::backdrop { background: rgba(10, 22, 40, .7); backdrop-filter: blur(4px); }
.modal-card { position: relative; background: var(--white); border-radius: 1.75rem; padding: clamp(1.75rem, 4vw, 2.75rem); box-shadow: var(--shadow-lg); }
.modal-title { font-size: 1.6rem; font-weight: 800; margin-bottom: .35rem; padding-right: 2.5rem; }
.modal-card .muted { margin-bottom: 1.5rem; }
.modal-close { position: absolute; top: 1.25rem; right: 1.25rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; cursor: pointer; color: var(--text); }
.modal-close svg { width: 1rem; height: 1rem; }
.modal-close:hover { border-color: var(--emerald); color: var(--emerald); }
.form-note { font-size: .8rem; color: var(--muted); }
.form-note a { color: var(--emerald); font-weight: 600; }

/* Hero photo: gentle continuous float (same as the original site: up 20px and back every 4s) */
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.hero-visual { animation: hero-float 4s ease-in-out infinite; will-change: transform; }

/* Privacy Notice page */
.policy { max-width: 52rem; }
.policy h2 { font-size: 1.45rem; font-weight: 800; margin: 3rem 0 1rem; }
.policy h3 { font-size: 1.1rem; font-weight: 800; margin: 2rem 0 .75rem; }
.policy p { margin-bottom: 1rem; }
.policy a { color: var(--emerald); font-weight: 600; }
.policy-list { list-style: disc; padding-left: 1.25rem; display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-md); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 34rem; }
.data-table th { text-align: left; background: var(--soft); color: var(--ink); font-weight: 800; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.data-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }

/* Credence Nexus */
.page-hero--nexus { background: linear-gradient(135deg, #062c22 0%, var(--navy-800) 55%, var(--navy-900) 100%); }
.page-hero--nexus .badge { margin-bottom: 1.25rem; }
.note-card { position: relative; background: var(--paper); border: 1px solid #e7e2d6; border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 2.75rem); }
.note-card .note-icon { width: 2.25rem; height: 2.25rem; color: var(--emerald); margin-bottom: 1.25rem; }
.note-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .6rem; }
.note-card p { color: var(--text); }
.form-card--wide { max-width: 56rem; margin-inline: auto; }
.form-group { border: 0; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.form-group + .form-group { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.form-group legend { font-size: 1.05rem; font-weight: 800; color: var(--ink); padding: 0; margin-bottom: 1.4rem; }
.field-hint { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.field-hint.ok { color: #047857; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--text); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--emerald); flex-shrink: 0; }
.check a { color: var(--emerald); font-weight: 600; }
@media (max-width: 1180px) and (min-width: 1024px) { .nav-links { gap: 1.1rem; } .nav-links a, .nav-links button.nav-trigger { font-size: .85rem; } }

/* Cover images: event, Credence Nexus, programs list */
.event-cover { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; display: block; background: #0d1a33; }
@media (min-width: 800px) { .event-cover { height: 100%; } }
.nexus-hero { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
.nexus-hero > * { min-width: 0; }
@media (min-width: 1000px) { .nexus-hero { grid-template-columns: 1.1fr 1fr; } }
.cover-img { width: 100%; height: auto; border-radius: 1.75rem; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.cr-row--media { grid-template-columns: 11rem 1fr auto; }
.cr-thumb { width: 11rem; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1rem; }
@media (max-width: 640px) { .cr-row--media { grid-template-columns: 1fr; } .cr-thumb { width: 100%; } .cr-row--media .link-arrow { grid-column: auto; } }

.apply-open-row { justify-content: center; margin-top: 2rem; }
#apply-panel { scroll-margin-top: 6rem; }

/* Insights */
.insight-list { display: grid; gap: 1.25rem; }
.insight-card { display: grid; gap: .85rem; padding: clamp(1.75rem, 4vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s, box-shadow .2s; }
.insight-card:hover { border-color: var(--emerald); box-shadow: var(--shadow); }
.insight-card h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 800; }
.insight-card p { color: var(--muted); max-width: 62ch; }
.insight-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .85rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .5rem 1rem; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--text); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.article-byline { color: #cbd5e1; font-size: .95rem; }
.article { max-width: 46rem; }
.article h2 { font-size: 1.6rem; font-weight: 800; margin: 2.75rem 0 1rem; }
.article p, .article li { line-height: 1.8; }
.article p { margin-bottom: 1.1rem; max-width: none; }
.article > p:first-child { font-size: 1.2rem; color: var(--ink); }
.article ul, .article ol { padding-left: 1.4rem; margin: 0 0 1.25rem; display: grid; gap: .5rem; list-style: revert; }
.article strong { color: var(--ink); }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0 1.5rem; }
.article .disclaimer { font-size: .88rem; color: var(--muted); font-style: italic; }
.article .further { font-size: 1.1rem; margin-top: 2rem; }
.article .sources { font-size: .9rem; list-style: disc; }
.article .sources a, .article .share a { color: var(--emerald); font-weight: 600; }
.article .share { font-size: .9rem; color: var(--muted); }
.data-table td strong { color: var(--ink); }
.aside-event { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); transition: box-shadow .2s; }
.aside-event:hover { box-shadow: var(--shadow); }
.aside-event img { width: 100%; height: auto; display: block; }
.aside-event span { display: block; padding: 1.1rem 1.25rem; font-size: .88rem; color: var(--emerald); font-weight: 600; }
.aside-event strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: .25rem; }
.article h3 { font-size: 1.2rem; font-weight: 800; margin: 2rem 0 .75rem; }

/* Phone menu: Services and Programs open on tap */
.mobile-menu a.m-parent { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu a.m-parent::after { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: .4rem; transition: transform .2s; }
.mobile-menu a.m-parent[aria-expanded="true"] { color: var(--emerald-400); }
.mobile-menu a.m-parent[aria-expanded="true"]::after { transform: rotate(-135deg); }
.mobile-menu li.sub[hidden] { display: none; }
.mobile-menu .sub-list[hidden] { display: none; }
