/* ============================================================
   AINOVA Accountants — Site Stylesheet
   Edit brand colors in :root below. Everything inherits from it.
   ============================================================ */

:root {
  --navy: #0a2a30;
  --navy-800: #10393f;
  --navy-700: #1a4d55;
  --accent: #0a8f8f;
  --accent-dark: #076f6f;
  --accent-light: #e2f3f3;
  --gold: #e9a93b;
  --gold-dark: #c98b1f;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ink: #1f2933;
  --muted: #52606d;
  --line: #e4e9ef;
  --bg-soft: #f5f7fa;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(10, 42, 48, 0.08);
  --shadow-lg: 0 18px 50px rgba(10, 42, 48, 0.14);
  --max-width: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Hanken Grotesk", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p.lead { font-size: 1.15rem; color: var(--muted); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.6rem;
}

.section-head { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.section-head p { color: var(--muted); margin-top: 0.7rem; }

section { padding: 4.5rem 0; }
section.soft { background: var(--bg-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 8px 20px rgba(10, 143, 143, 0.35); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cbd7e6;
  font-size: 0.86rem;
  padding: 0.45rem 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; margin-left: 1.2rem; }
.topbar-note { color: #9fb3c8; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  gap: 1rem;
}
.brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
.brand img {
  height: 60px;
  width: auto;
  display: block;
  border-radius: 6px;
}
@media (max-width: 680px) {
  .brand img { height: 46px; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}
.nav-menu > li > a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.4rem 0;
}
.nav-menu > li > a:hover { color: var(--accent-dark); text-decoration: none; }
.nav-menu .btn { margin-left: 0.4rem; }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: " ▾"; font-size: 0.7em; color: var(--muted); }
.dropdown {
  position: absolute;
  top: 100%;
  left: -0.8rem;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 0.5rem;
  display: none;
  z-index: 60;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 7px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.93rem;
}
.dropdown a:hover { background: var(--accent-light); color: var(--accent-dark); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  padding: 5.5rem 0 5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero p.lead { color: #c4d3e4; margin: 1.2rem 0 1.8rem; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-trust {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: #9fb3c8;
  font-size: 0.9rem;
}
.hero-trust strong { display: block; color: #fff; font-size: 1.35rem; }

/* Mock dashboard card in hero */
.mock-card {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}
.mock-card h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--navy); }
.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.mock-row:last-child { border-bottom: none; }
.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
}
.badge.pending { background: #fef3c7; color: #92400e; }

/* ---------- Cards / Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin: 0.9rem 0 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .card-link { display: inline-block; margin-top: 0.9rem; font-weight: 700; font-size: 0.92rem; }

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-light) 0%, #d3f1e4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.icon-circle svg {
  width: 24px;
  height: 24px;
}
.card:hover .icon-circle {
  background: var(--accent);
  color: #fff;
  transform: scale(1.08) rotate(-3deg);
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; }
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* ---------- Feature split blocks ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4rem;
}
.feature-split:last-child { margin-bottom: 0; }
.feature-split.reverse > .feature-media { order: 2; }
.feature-media {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
}
.feature-copy h2 { margin-bottom: 0.9rem; }
.feature-copy p { color: var(--muted); margin-bottom: 1rem; }

.check-list { list-style: none; margin-top: 1rem; }
.check-list li {
  padding-left: 1.9rem;
  position: relative;
  margin-bottom: 0.65rem;
  color: var(--ink);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ---------- Logo / software strip ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.logo-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.testimonial blockquote { font-size: 0.98rem; color: var(--ink); margin-bottom: 1.1rem; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--navy); font-size: 0.9rem; display: block; }
.testimonial .role { color: var(--muted); font-size: 0.84rem; }
.stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 0.8rem; }

/* ---------- Pricing ---------- */
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.popular { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.price-card h3 { font-size: 1.15rem; }
.price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0.8rem 0 0.2rem;
}
.price small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.price-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.price-card .check-list { flex: 1; margin-bottom: 1.5rem; font-size: 0.93rem; }
.price-card .btn { width: 100%; text-align: center; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  background: #fff;
}
.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: 0.97rem; }
.faq-answer p + p { margin-top: 0.7rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  text-align: center;
  border-radius: 0;
}
.cta-band h2 { color: #fff; margin-bottom: 0.8rem; }
.cta-band p { color: #c4d3e4; max-width: 620px; margin: 0 auto 1.8rem; }
.cta-band .contact-line { margin-top: 1.4rem; font-size: 0.95rem; color: #9fb3c8; }
.cta-band .contact-line a { color: #fff; font-weight: 700; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
}
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero p.lead { color: #c4d3e4; margin-top: 1rem; max-width: 720px; }
.page-hero .hero-ctas { margin-top: 1.8rem; }
.breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  color: #9fb3c8;
}
.breadcrumbs a { color: #c4d3e4; }
.breadcrumbs span { color: #fff; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card h3 { margin: 0.9rem 0 0.2rem; }
.team-role {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy) 100%);
  border: 3px solid var(--accent-light);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.team-card:nth-child(2n) .avatar { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); }
.team-card:hover .avatar { transform: scale(1.08); border-color: var(--accent); }
.avatar-join { background: linear-gradient(135deg, #64748b 0%, #475569 100%); }
.avatar-img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 3px solid var(--accent-light);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-info-card h3 { margin-bottom: 1rem; }
.contact-info-card p { margin-bottom: 0.9rem; color: var(--muted); }
.contact-info-card strong { color: var(--navy); }

form.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-weight: 600; font-size: 0.9rem; color: var(--navy); display: block; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card .post-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.5rem; }
.post-card h3 a { color: var(--navy); }
article.post { max-width: 760px; margin: 0 auto; }
article.post h2 { margin: 2.2rem 0 0.9rem; }
article.post h3 { margin: 1.6rem 0 0.7rem; }
article.post p { margin-bottom: 1.1rem; color: var(--ink); }
article.post ul, article.post ol { margin: 0 0 1.1rem 1.4rem; }
article.post li { margin-bottom: 0.45rem; }
.post-header { margin-bottom: 2rem; }
.post-header .post-meta { color: var(--muted); font-size: 0.9rem; margin-top: 0.8rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #9fb3c8;
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #c4d3e4; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 0.8rem; display: inline-block; }
.footer-brand span { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ============================================================
   Animations & motion
   Scroll-reveals are added by js/main.js (progressive enhancement:
   with JavaScript off, everything stays fully visible).
   ============================================================ */

/* --- Floating gradient orbs behind hero / page-hero / CTA bands --- */
.hero, .page-hero, .cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before, .page-hero::before, .cta-band::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 143, 143, 0.28) 0%, transparent 65%);
  top: -180px;
  right: -120px;
  z-index: -1;
  animation: orbDrift 14s ease-in-out infinite alternate;
}
.hero::after, .page-hero::after, .cta-band::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 65%);
  bottom: -160px;
  left: -100px;
  z-index: -1;
  animation: orbDrift 18s ease-in-out infinite alternate-reverse;
}
@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 40px) scale(1.15); }
}

/* --- Hero mock card: gentle float --- */
.float-card {
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* --- Animated chart in the hero mock card --- */
.mock-chart {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 0.9rem 0.9rem 0.3rem;
  margin-bottom: 1.1rem;
}
.mock-chart svg { width: 100%; height: auto; display: block; }
.mock-chart .bar {
  fill: var(--navy-700);
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: growBar 0.9s cubic-bezier(0.2, 0.7, 0.3, 1.1) both;
}
.mock-chart .b2, .mock-chart .b4 { fill: var(--accent); }
.mock-chart .b5 { fill: var(--navy); }
.mock-chart .b1 { animation-delay: 0.15s; }
.mock-chart .b2 { animation-delay: 0.3s; }
.mock-chart .b3 { animation-delay: 0.45s; }
.mock-chart .b4 { animation-delay: 0.6s; }
.mock-chart .b5 { animation-delay: 0.75s; }
@keyframes growBar {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.mock-chart .trend {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: drawLine 1.3s ease-out 0.9s forwards;
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* --- Scroll-reveal (classes applied by main.js) --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* --- Button & badge micro-interactions --- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover::after { left: 130%; }

/* --- Respect users who prefer less motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after,
  .page-hero::before, .page-hero::after,
  .cta-band::before, .cta-band::after,
  .float-card, .mock-chart .bar, .mock-chart .trend {
    animation: none;
  }
  .mock-chart .trend { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .feature-split, .contact-grid { grid-template-columns: 1fr; }
  .feature-split.reverse > .feature-media { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  section { padding: 3.2rem 0; }
  .grid-3, .grid-4, .grid-2, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; text-align: center; }

  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.2rem 1.4rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    gap: 0.2rem;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { display: block; padding: 0.7rem 0.2rem; }
  .dropdown {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: 0;
  }
  .has-dropdown > a::after { content: ""; }
  .nav-menu .btn { margin: 0.6rem 0 0; text-align: center; }
}

/* ---------- Team profiles (photo cards, expandable bios) ---------- */
.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto;
  display: block;
  border: 3px solid var(--accent-light);
  background: var(--accent-light);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.team-card:hover .team-photo { transform: scale(1.05); border-color: var(--accent); }
.team-creds { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.6rem; }
.team-bio { font-size: 0.92rem; color: var(--muted); text-align: left; }
.team-more { margin-top: 0.8rem; text-align: left; }
.team-more summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
  list-style: none;
  text-align: center;
}
.team-more summary::-webkit-details-marker { display: none; }
.team-more summary::after { content: " +"; }
.team-more[open] summary::after { content: " \2212"; }
.team-more h4 { margin: 1rem 0 0.4rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); }
.team-more ul { margin: 0 0 0 1.1rem; font-size: 0.88rem; color: var(--muted); }
.team-more p { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }
.team-card { display: flex; flex-direction: column; }
.team-card .team-more { flex: 1; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.chip-grid .logo-chip { margin: 0; }


/* ============================================================
   Aesthetic layer: "ledger" look — deep teal ink, brass accent,
   serif display type, ruled-paper backgrounds, staged load-in.
   ============================================================ */
.hero, .page-hero, .cta-band {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05) 0, transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,0.045) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,0.03) 79px 80px),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.hero::after, .page-hero::after, .cta-band::after {
  background: radial-gradient(circle, rgba(233, 169, 59, 0.20) 0%, transparent 65%);
}
.hero h1, .page-hero h1 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
.hero-trust strong { color: var(--gold); font-family: var(--font-display); font-size: 1.15em; }
.hero .btn-primary, .page-hero .btn-primary, .cta-band .btn-primary {
  background: var(--gold); color: #1d1608; border-color: var(--gold);
}
.hero .btn-primary:hover, .page-hero .btn-primary:hover, .cta-band .btn-primary:hover {
  background: #f2bd5c; box-shadow: 0 8px 22px rgba(233, 169, 59, 0.4);
}
.eyebrow { font-weight: 800; letter-spacing: 0.14em; }
section.soft {
  background:
    radial-gradient(900px 300px at 85% 0%, rgba(10,143,143,0.07), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(10,42,48,0.035) 31px 32px),
    var(--bg-soft);
}
.card:hover { box-shadow: var(--shadow-lg), inset 0 3px 0 var(--gold); }

/* Staged hero load-in (CSS only) */
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero h1, .hero p.lead, .hero .hero-ctas, .hero .hero-trust,
.page-hero .breadcrumbs, .page-hero h1, .page-hero p.lead, .page-hero .hero-ctas {
  animation: riseIn .7s cubic-bezier(.2,.7,.2,1) both;
}
.hero h1, .page-hero h1 { animation-delay: .08s; }
.hero p.lead, .page-hero p.lead { animation-delay: .2s; }
.hero .hero-ctas, .page-hero .hero-ctas { animation-delay: .32s; }
.hero .hero-trust { animation-delay: .44s; }
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero p.lead, .hero .hero-ctas, .hero .hero-trust,
  .page-hero .breadcrumbs, .page-hero h1, .page-hero p.lead, .page-hero .hero-ctas { animation: none; }
}

/* Header: nav button text + logo background blending */
.nav-menu > li > a.btn-primary { color: #fff; padding: 0.6rem 1.1rem; white-space: nowrap; }
.nav-menu > li > a.btn-primary:hover { color: #fff; }
.brand img { mix-blend-mode: multiply; filter: brightness(1.07) contrast(1.04); border-radius: 0; }

/* ---------- Hero 3D canvas ---------- */
.hero-3d {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
}
.hero-3d.ready { opacity: 1; }
@media (max-width: 759px), (prefers-reduced-motion: reduce) { .hero-3d { display: none; } }

/* ---------- Stats band (count-up numbers) ---------- */
.stats-band { padding: 2.6rem 0; background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 0.4rem 0.6rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.stat-suffix { color: var(--gold-dark); }
.stat-label { display: block; margin-top: 0.4rem; color: var(--muted); font-weight: 600; font-size: 0.92rem; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.8rem; }
  .stat:nth-child(3) { border-left: 0; }
}

/* When the 3D scene is running it is the hero visual: the card becomes a compact
   status panel at the lower right and its mini chart (now redundant) is hidden. */
.hero.has-3d .hero-grid { align-items: stretch; }
.hero.has-3d .hero-grid > div:first-child { align-self: center; }
.hero.has-3d .mock-card { align-self: end; justify-self: end; width: 100%; max-width: 340px; padding: 1.2rem 1.3rem; }
.hero.has-3d .mock-chart { display: none; }
.hero.has-3d .mock-card h3 { margin-top: 0; font-size: 1.05rem; }

/* ---------- Hero 3D: card hidden (fallback only) + projected labels ---------- */
.hero.has-3d .mock-card { display: none; }
.h3d-labels { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.h3d-tag {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  padding: 0.22rem 0.6rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; color: #eafafa;
  background: rgba(10, 42, 48, 0.72); border: 1px solid rgba(159, 240, 240, 0.35);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity .45s ease;
  will-change: transform, opacity;
}
.h3d-tag.show { opacity: 1; }
.h3d-title { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); border-color: rgba(233, 169, 59, 0.5); }
.h3d-end {
  font-size: 0.82rem; color: #1d1608; background: var(--gold); border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(233, 169, 59, 0.35);
}

/* Hide the fallback card from first paint wherever the 3D hero will run (no flash before JS loads).
   Phones and reduced-motion visitors keep the card as their hero visual. */
@media (min-width: 760px) and (prefers-reduced-motion: no-preference) {
  .hero .mock-card { display: none; }
}

/* ============================================================
   Priority 2/3 additions: nav groups, services index, faces strip,
   before/after, estimator, region picker, page transitions
   ============================================================ */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

.dropdown .dd-label {
  padding: 0.55rem 1rem 0.2rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-dark); pointer-events: none;
}
.dropdown .dd-label:not(:first-child) { border-top: 1px solid var(--line); margin-top: 0.3rem; }

/* credentials strip */
.cred-strip { margin: 1.6rem auto 0; max-width: 900px; text-align: center; color: var(--muted); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.01em; }

/* region picker */
.region-pick { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0 0 0.4rem; font-size: 0.78rem; color: #9fd6d6; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.region-pick button {
  font: inherit; cursor: pointer; padding: 0.2rem 0.7rem; border-radius: 999px; letter-spacing: 0.06em;
  color: #cfeeee; background: transparent; border: 1px solid rgba(159, 240, 240, 0.4);
}
.region-pick button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1d1608; }
.region-line { color: #e6f7f7; font-weight: 600; margin: 0 0 1.6rem; min-height: 1.5em; }
html:not([data-region="uk"]) [data-region="uk"], html[data-region="uk"] [data-region="us"] { display: none; }

/* services editorial index */
.svc-index { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.6rem 2.4rem; align-items: start; }
.svc-feature {
  grid-row: span 2; display: block; padding: 2rem; border-radius: 6px; color: #fff; text-decoration: none;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
  border-left: 5px solid var(--gold); box-shadow: var(--shadow-lg); transition: transform .25s ease;
}
.svc-feature:hover { transform: translateY(-4px); text-decoration: none; }
.svc-feature h3 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0.7rem 0 0.8rem; }
.svc-feature p { color: #c4d3e4; }
.svc-tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.svc-go { display: inline-block; margin-top: 1.2rem; font-weight: 800; color: var(--gold); }
.svc-group-title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark); font-family: inherit; margin: 0 0 0.3rem; }
.svc-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; padding: 0.9rem 0; text-decoration: none;
  border-top: 1px solid var(--line); color: var(--ink); transition: padding-left .2s ease, background .2s ease;
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--navy); }
.svc-desc { grid-column: 1; color: var(--muted); font-size: 0.9rem; }
.svc-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent-dark); font-weight: 800; transition: transform .2s ease; }
.svc-row:hover { padding-left: 0.6rem; background: var(--accent-light); text-decoration: none; }
.svc-row:hover .svc-arrow { transform: translateX(4px); }
@media (max-width: 860px) { .svc-index { grid-template-columns: 1fr; } .svc-feature { grid-row: auto; } }

/* mock example labels + notes */
.mock-label { font-family: "Hanken Grotesk", sans-serif; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0.05rem 0.4rem; margin-left: 0.4rem; vertical-align: middle; }
.mock-notes { list-style: none; margin: 1rem 0 0; padding: 0.9rem 0 0; border-top: 1px dashed var(--line); font-size: 0.82rem; color: var(--muted); }
.mock-notes li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.45rem; }
.mock-notes .n { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--gold); color: #1d1608; font-weight: 800; font-size: 0.72rem; display: inline-flex; align-items: center; justify-content: center; }

/* faces strip */
.faces { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.face { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); gap: 0.15rem; }
.face img, .face-plus { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid var(--accent-light); margin-bottom: 0.5rem; transition: transform .25s ease, border-color .25s ease; }
.face-plus { display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--gold); font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.face:hover img, .face:hover .face-plus { transform: translateY(-4px); border-color: var(--gold); }
.face strong { font-size: 0.92rem; color: var(--navy); }
.face span:not(.face-plus) { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 900px) { .faces { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .faces { grid-template-columns: repeat(2, 1fr); } }

/* before / after */
.ba { position: relative; max-width: 860px; margin: 0 auto; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); user-select: none; }
.ba-pane { padding: 1.2rem 1.4rem 1rem; background: #fff; }
.ba-before { position: absolute; inset: 0; background: #fff8f6; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; font-size: 0.95rem; }
.ba table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.ba th { text-align: left; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0.3rem 0.4rem; border-bottom: 1px solid var(--line); }
.ba td { padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ba .num { text-align: right; font-variant-numeric: tabular-nums; font-family: "Hanken Grotesk", monospace; }
.ba-badge, .ba-state { font-size: 0.74rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; }
.ba-badge.ok, .ba-state.ok { background: #e2f3f3; color: #076f6f; }
.ba-badge.bad, .ba-state.bad { background: #fde8e4; color: #a3321f; }
.ba-foot { margin-top: 0.8rem; font-weight: 800; font-size: 0.9rem; }
.ba-foot.ok { color: #076f6f; } .ba-foot.bad { color: #a3321f; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--gold); transform: translateX(-50%); pointer-events: none; }
.ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #1d1608; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 640px) { .ba td:nth-child(2), .ba th:nth-child(2) { display: none; } }

/* estimator */
.est-section { border-top: 1px solid var(--line); }
.est-card { max-width: 760px; margin: 0 auto; display: grid; gap: 1.4rem; padding: 1.8rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.est-field { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.est-field label, .est-field legend { font-weight: 700; color: var(--navy); }
.est-field input[type="range"] { width: 100%; accent-color: var(--accent); }
.est-field fieldset label, fieldset.est-field label { font-weight: 600; color: var(--ink); display: flex; gap: 0.5rem; align-items: center; }
.est-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.4rem; padding: 1.2rem 1.4rem; border-radius: 6px; background: var(--navy); color: #fff; }
.est-kicker { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.est-result strong { font-family: var(--font-display); font-size: 1.6rem; }
.est-result > div { flex: 1 1 auto; }
.est-field input[type="radio"] { width: auto; padding: 0; margin: 0; flex: none; accent-color: var(--accent); }
fieldset.est-field label { justify-content: flex-start; }

.ba table { table-layout: fixed; }
.ba th:nth-child(1), .ba td:nth-child(1) { width: 14%; }
.ba th:nth-child(2), .ba td:nth-child(2) { width: 34%; overflow: hidden; text-overflow: ellipsis; }
.ba th:nth-child(3), .ba td:nth-child(3) { width: 32%; }
.ba th:nth-child(4), .ba td:nth-child(4) { width: 20%; }
@media (max-width: 640px) {
  .ba td:nth-child(2), .ba th:nth-child(2) { display: table-cell; }
  .ba td:nth-child(2) { white-space: normal; font-size: 0.78rem; }
  .ba td:nth-child(3) .ba-badge { font-size: 0.66rem; padding: 0.1rem 0.3rem; }
  .ba td, .ba th { padding-left: 0.25rem; padding-right: 0.25rem; }
}
.ba-handle::after { content: "\2194\FE0E"; }
@media (max-width: 640px) { .ba-state { display: none; } }

.logo-chip { display: inline-flex; align-items: center; gap: 0.55rem; }
.logo-chip img { width: 20px; height: 20px; flex: none; }
.tm-note { max-width: 640px; margin: 1.2rem auto 0; text-align: center; font-size: 0.78rem; color: var(--muted); }

/* Featured catch-up panel: fills the full height of the services index */
.svc-index { align-items: stretch; }
.svc-feature { display: flex; flex-direction: column; position: relative; overflow: hidden;
  background:
    radial-gradient(420px 260px at 90% 0%, rgba(233,169,59,0.16), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,0.045) 31px 32px),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%); }
.svc-checks { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.svc-checks li { position: relative; padding-left: 1.7rem; color: #e3f2f2; font-size: 0.95rem; font-weight: 600; }
.svc-checks li::before { content: ""; position: absolute; left: 0; top: 0.28em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--gold);
  -webkit-mask: none; box-shadow: inset 0 0 0 0 transparent; }
.svc-checks li::after { content: ""; position: absolute; left: 0.33rem; top: 0.42em; width: 0.28rem; height: 0.5rem; border: solid #1d1608; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.svc-months { margin-top: auto; padding-top: 1.8rem; }
.mo-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.mo { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 3px; font-size: 0.68rem; font-weight: 800; color: #f3b8ad;
  background: rgba(214, 90, 70, 0.28); border: 1px solid rgba(243, 184, 173, 0.45); }
.svc-feature.in-view .mo { animation: moClear .5s ease forwards; animation-delay: calc(0.5s + var(--i) * 0.14s); }
@keyframes moClear { to { background: rgba(19, 179, 179, 0.85); border-color: rgba(159, 240, 240, 0.8); color: #04302f; } }
.mo-cap { display: block; margin-top: 0.6rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9fd6d6; }
.svc-feature .svc-go { margin-top: 1.4rem; align-self: flex-start; padding: 0.7rem 1.3rem; border-radius: 6px; background: var(--gold); color: #1d1608; transition: background .2s ease, transform .2s ease; }
.svc-feature:hover .svc-go { background: #f2bd5c; transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .svc-feature .mo { animation: none; background: rgba(19,179,179,0.85); border-color: rgba(159,240,240,0.8); color: #04302f; } }
@media (max-width: 860px) { .svc-feature { flex-direction: column; } .mo { height: 28px; font-size: 0.6rem; } }
