/* ==========================================================================
   NaijaHub UK Ltd: main stylesheet
   Plain CSS with no build step. Colours, fonts and spacing are set as
   custom properties in :root (section 1) so they can be changed in one place.
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */
:root {
  /* Navy: the primary brand colour */
  --navy-950: #071429;     /* footer (deepest navy) */
  --navy-900: #0B1D3A;     /* deep navy: header, hero, navy sections */
  --navy-800: #12284C;     /* mid navy: cards and panels on navy */
  --navy-700: #1C3762;     /* hover states on navy */

  /* Light surfaces */
  --white: #FFFFFF;
  --ivory: #F8F6F1;        /* warm ivory: alternating sections */

  /* Gold accent */
  --gold: #C9A44C;         /* gold: use on navy only (text, icons, buttons) */
  --gold-light: #DDBF74;   /* lighter gold: hover state on navy */
  --gold-dark: #8A6A1F;    /* dark gold: small text and icons on light backgrounds */

  /* Text */
  --ink: #0B1D3A;          /* headings on light backgrounds */
  --text: #3A4558;         /* body copy on light backgrounds */
  --muted: #5B6578;        /* secondary copy on light backgrounds */
  --on-navy: #E9EDF4;      /* main copy on navy */
  --on-navy-soft: #C3CCDB; /* secondary copy on navy */

  /* Lines and states */
  --line: #E4DFD4;                        /* hairlines on light backgrounds */
  --line-navy: rgba(255, 255, 255, 0.12); /* hairlines on navy */
  --field-border: #7D879A;                /* form field borders (3:1 on white) */
  --error: #B42318;                       /* form errors */

  /* Typography */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout and effects */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --header-h: 68px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 29, 58, 0.05), 0 8px 18px -10px rgba(11, 29, 58, 0.14);
  --shadow-md: 0 20px 40px -24px rgba(11, 29, 58, 0.32);
  --shadow-lg: 0 32px 60px -28px rgba(11, 29, 58, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --focus-ring: var(--gold-dark); /* becomes gold inside navy areas */
  --hero-offset: 0px;             /* room for the fixed header (set when JS runs) */
}

@media (min-width: 960px) {
  :root { --header-h: 78px; }
}

html.js { --hero-offset: var(--header-h); }

/* 2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.nav-open,
html.nav-open body { overflow: hidden; }

[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-serif);
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.6rem + 3.3vw, 4.15rem); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.85rem, 1.4rem + 1.9vw, 2.85rem); line-height: 1.12; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem); line-height: 1.3; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; }
svg { display: block; flex: none; }
strong { font-weight: 700; color: var(--ink); }

a {
  color: var(--ink);
  text-decoration-color: var(--gold-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}
:where(a):hover { color: var(--gold-dark); }

::selection { background: rgba(201, 164, 76, 0.35); color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
#main:focus { outline: none; }

/* Navy areas: light text, gold accents and a gold focus ring */
.on-navy { --focus-ring: var(--gold); color: var(--on-navy); }
.on-navy h1, .on-navy h2, .on-navy h3 { color: var(--white); }
.on-navy strong { color: var(--white); }
:where(.on-navy) a { color: var(--white); text-decoration-color: var(--gold); }
:where(.on-navy a):hover { color: var(--gold); }

/* 3. Layout helpers
   ========================================================================== */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

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

.skip-link {
  position: absolute; left: 1rem; top: -200px; z-index: 1000;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 700;
  text-decoration: none;
  --focus-ring: var(--navy-900);
}
.skip-link:focus { top: 1rem; }

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section--ivory { background: var(--ivory); }
.section--navy { background: linear-gradient(165deg, var(--navy-900) 0%, #0F2447 55%, var(--navy-900) 100%); }

.split { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--center { align-items: center; }
  .split__sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Decorative background for navy areas: faint grid plus concentric gold arcs (CSS only) */
.decor { position: relative; isolation: isolate; overflow: hidden; }
.decor::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 72% 28%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 75% 70% at 72% 28%, #000 0%, transparent 70%);
}
.decor::after {
  content: "";
  position: absolute; z-index: -1;
  width: 820px; height: 820px;
  right: -300px; top: -360px;
  border-radius: 50%;
  pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 58px, rgba(201, 164, 76, 0.14) 58px 59.5px);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%);
  mask-image: radial-gradient(circle, #000 20%, transparent 68%);
}
.decor--low::after { top: auto; right: auto; bottom: -430px; left: -330px; }

/* 4. Typography components
   ========================================================================== */
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow::before { content: ""; flex: none; width: 2rem; height: 1px; background: currentColor; }
.on-navy .eyebrow { color: var(--gold); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { content: ""; flex: none; width: 2rem; height: 1px; background: currentColor; }
.section-intro { max-width: 62ch; font-size: clamp(1.05rem, 1rem + 0.25vw, 1.15rem); color: var(--muted); }
.section-head--center .section-intro { margin-inline: auto; }
.on-navy .section-intro { color: var(--on-navy-soft); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.75rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--gold-dark);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.text-link svg { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* 5. Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.15rem;
  padding: 0.8rem 1.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { min-height: 2.75rem; padding: 0.6rem 1.3rem; font-size: 0.95rem; }

.btn--gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 10px 26px -12px rgba(201, 164, 76, 0.65); }
.btn--gold:hover { background: var(--gold-light); color: var(--navy-900); transform: translateY(-2px); }
.btn--outline { border-color: rgba(255, 255, 255, 0.42); color: var(--white); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn--navy { background: var(--navy-900); color: var(--white); box-shadow: 0 12px 26px -14px rgba(11, 29, 58, 0.7); }
.btn--navy:hover { background: var(--navy-700); color: var(--white); transform: translateY(-2px); }
.btn--ghost { border-color: var(--navy-900); color: var(--navy-900); }
.btn--ghost:hover { background: var(--navy-900); color: var(--white); transform: translateY(-2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }
.btn-row--center { justify-content: center; }
@media (max-width: 479.98px) {
  .btn-row .btn { flex: 1 1 100%; }
}

.btn .spinner {
  display: none;
  width: 1.05em; height: 1.05em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading { cursor: progress; opacity: 0.9; }
.btn.is-loading .spinner { display: inline-block; }

/* 6. Header and navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 29, 58, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.55);
  --focus-ring: var(--gold);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
/* With JS the header floats over the hero and turns solid on scroll (main.js adds .is-scrolled) */
html.js .site-header { position: fixed; left: 0; right: 0; }
html.js .site-header:not(.is-scrolled):not(.menu-open) {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled:not(.menu-open) {
    background: rgba(11, 29, 58, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

/* Text wordmark */
.brand {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  color: var(--white);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--white); }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  letter-spacing: -0.02em;
}
.brand__suffix {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-toggle { display: none; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-list { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: var(--on-navy-soft);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-list a::after {
  content: "";
  position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.25rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--white); }
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 959.98px) {
  /* Without JS: links wrap under the wordmark */
  .header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 0.75rem; }
  .nav-list a { padding-inline: 0.5rem; }
  .nav-cta { display: none; }

  /* With JS: compact header and a slide-down menu panel */
  html.js .header-inner { flex-wrap: nowrap; padding-block: 0; }
  html.js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    margin-right: -4px; padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    cursor: pointer;
  }
  html.js .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2rem;
    width: auto;
    padding: 1.25rem var(--gutter) 2.5rem;
    background: var(--navy-900);
    border-top: 1px solid var(--line-navy);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  html.js .site-header.menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  html.js .nav-list { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  html.js .nav-list a {
    display: block;
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--line-navy);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 500;
  }
  html.js .nav-list a::after { left: 0.25rem; right: auto; bottom: -1px; width: 3rem; }
  html.js .nav-cta { display: inline-flex; align-self: flex-start; }
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px; height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 7. Home hero
   ========================================================================== */
.hero {
  padding: calc(var(--hero-offset) + clamp(3rem, 8vw, 5.5rem)) 0 clamp(5.5rem, 10vw, 8rem);
  background:
    radial-gradient(1100px 560px at 85% -12%, rgba(201, 164, 76, 0.17), transparent 62%),
    radial-gradient(900px 520px at -12% 112%, rgba(39, 72, 128, 0.55), transparent 62%),
    linear-gradient(160deg, #0B1D3A 0%, #0F2549 55%, #0A1934 100%);
}
.hero__grid { display: grid; gap: 3rem; align-items: center; }
.hero__content { max-width: 40rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .hl { color: var(--gold); }
.hero__lead { max-width: 56ch; font-size: clamp(1.075rem, 1rem + 0.4vw, 1.25rem); color: var(--on-navy-soft); }

.hero__content > *,
.page-hero .container > * { animation: rise 0.9s var(--ease) both; }
.hero__content > :nth-child(2),
.page-hero .container > :nth-child(2) { animation-delay: 0.08s; }
.hero__content > :nth-child(3),
.page-hero .container > :nth-child(3) { animation-delay: 0.16s; }
.hero__content > :nth-child(4),
.page-hero .container > :nth-child(4) { animation-delay: 0.24s; }
.page-hero .container > :nth-child(5) { animation-delay: 0.32s; }

@media (min-width: 1024px) {
  .hero { display: flex; align-items: center; min-height: min(100vh, 860px); }
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 4rem; }
}

/* CSS-only illustration: layered glass cards for the four service areas (desktop) */
.hero-visual { display: none; }
@media (min-width: 1024px) {
  .hero-visual { position: relative; display: block; width: 100%; max-width: 540px; height: 520px; justify-self: end; }
}
.hv-glow {
  position: absolute; inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 76, 0.24), transparent 65%);
  filter: blur(12px);
}
.hv-ring {
  position: absolute; left: 50%; top: 50%;
  width: 106%; aspect-ratio: 1;
  border: 1px solid rgba(201, 164, 76, 0.22);
  border-radius: 50%;
  translate: -50% -50%;
}
.hv-ring--inner { width: 70%; border-style: dashed; border-color: rgba(201, 164, 76, 0.22); animation: spin 120s linear infinite; }
.hv-slab {
  position: absolute; inset: 9% 7%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  transform: rotate(-7deg);
}
.hv-card {
  position: absolute;
  width: 47%;
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: float 8s ease-in-out infinite;
}
.hv-card--1 { top: 5%; left: 0; }
.hv-card--2 { top: 15%; right: 0; animation-duration: 9s; animation-delay: -2.5s; }
.hv-card--3 { top: 53%; left: 5%; animation-duration: 10s; animation-delay: -5s; }
.hv-card--4 { top: 62%; right: 3%; animation-duration: 8.5s; animation-delay: -1.5s; }
.hv-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.hv-card__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(201, 164, 76, 0.45);
  border-radius: 12px;
  background: rgba(11, 29, 58, 0.35);
  color: var(--gold);
}
.hv-card__icon svg { width: 22px; height: 22px; }
.hv-card__num { font-family: var(--font-serif); font-size: 0.95rem; letter-spacing: 0.06em; color: var(--gold); }
.hv-card__title { display: block; margin-bottom: 0.9rem; font-family: var(--font-serif); font-size: 1.15rem; color: var(--white); }
.hv-card__bar { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); }
.hv-card__bar + .hv-card__bar { width: 62%; margin-top: 0.5rem; }

/* 8. Inner page hero and breadcrumb
   ========================================================================== */
.page-hero {
  padding: calc(var(--hero-offset) + clamp(2.5rem, 6vw, 4.25rem)) 0 clamp(3.5rem, 7vw, 5.25rem);
  background:
    radial-gradient(900px 480px at 90% -25%, rgba(201, 164, 76, 0.17), transparent 62%),
    linear-gradient(160deg, #0B1D3A 0%, #0F2549 60%, #0A1934 100%);
}
.page-hero h1 { max-width: 20ch; margin-bottom: 1.25rem; }
.page-hero__lead { max-width: 60ch; font-size: clamp(1.075rem, 1rem + 0.4vw, 1.25rem); color: var(--on-navy-soft); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; font-size: 0.875rem; color: var(--on-navy-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--gold); }
.breadcrumb a { color: var(--on-navy); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

.quick-links ul { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.quick-links a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 1.1rem 0.55rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.quick-links a:hover { border-color: var(--gold); background: rgba(201, 164, 76, 0.1); color: var(--white); }
.quick-links__num {
  display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: rgba(201, 164, 76, 0.16);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.8rem;
}

/* 9. Home sections
   ========================================================================== */
/* Trust strip */
.trust { position: relative; z-index: 3; margin-top: calc(-1 * clamp(2rem, 4vw, 3rem)); }
.trust__list {
  display: grid;
  margin: 0;
  padding: 0.35rem clamp(1.25rem, 3vw, 2rem);
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.trust__item { display: flex; align-items: center; gap: 0.95rem; padding: 1.1rem 0; color: var(--ink); font-size: 0.98rem; font-weight: 600; line-height: 1.4; }
.trust__item + .trust__item { border-top: 1px solid var(--line); }
.trust__icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ivory);
  color: var(--gold-dark);
}
.trust__icon svg { width: 22px; height: 22px; }
@media (min-width: 720px) {
  .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .trust__item + .trust__item { border-top: 0; }
  .trust__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; padding: 0.25rem 0.75rem; }
  .trust__item { padding: 1.5rem 1.25rem; }
  .trust__item:nth-child(n + 3) { border-top: 0; }
  .trust__item + .trust__item { border-left: 1px solid var(--line); }
}

/* Service cards */
.card-grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
.service-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(138, 106, 31, 0.4); }
.service-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.service-card__num { font-family: var(--font-serif); font-size: 1.05rem; letter-spacing: 0.08em; color: var(--gold-dark); }
.service-card h3 { margin-bottom: 0.65rem; }
.service-card p { color: var(--muted); }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.service-card__more { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 1.4rem; color: var(--gold-dark); font-size: 0.95rem; font-weight: 700; }
.service-card__more svg { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease); }
.service-card:hover .service-card__more svg { transform: translateX(4px); }

.icon-badge {
  display: grid; place-items: center; flex: none;
  width: 3.5rem; height: 3.5rem;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-900));
  color: var(--gold);
  box-shadow: 0 12px 24px -14px rgba(11, 29, 58, 0.7);
}
.icon-badge svg { width: 1.6rem; height: 1.6rem; }
.icon-badge--lg { width: 4.25rem; height: 4.25rem; border-radius: 20px; }
.icon-badge--lg svg { width: 2rem; height: 2rem; }

/* Approach features */
.feature-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.feature {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(138, 106, 31, 0.35); }
.feature__icon {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(138, 106, 31, 0.4);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--gold-dark);
}
.feature__icon svg { width: 1.4rem; height: 1.4rem; }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--muted); font-size: 0.98rem; }

/* How we work: numbered steps */
.steps { position: relative; display: grid; gap: 2.25rem; margin: 0; padding: 0; list-style: none; }
.steps::before {
  content: "";
  position: absolute; left: 1.75rem; top: 1.75rem; bottom: 1.75rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(201, 164, 76, 0.65), rgba(201, 164, 76, 0.12));
}
.step { position: relative; padding-left: 5rem; }
.step__num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border: 1px solid rgba(201, 164, 76, 0.6);
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.step h3 { margin: 0.6rem 0 0.5rem; }
.step p { color: var(--on-navy-soft); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .steps::before {
    left: 1.75rem; right: 1.75rem; top: 1.75rem; bottom: auto;
    width: auto; height: 1px;
    background: linear-gradient(90deg, rgba(201, 164, 76, 0.65), rgba(201, 164, 76, 0.15));
  }
  .step { padding-left: 0; padding-top: 5rem; }
  .step h3 { margin-top: 0; }
}

/* Navy information card ("At a glance") */
.glance { padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius-lg); background: linear-gradient(155deg, var(--navy-800), var(--navy-900)); box-shadow: var(--shadow-lg); }
.glance__title { margin-bottom: 1.25rem; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem); }
.glance__list { display: grid; margin: 0; }
.glance__list > div { display: grid; gap: 0.25rem; padding: 1rem 0; border-top: 1px solid var(--line-navy); }
.glance__list dt { padding-top: 0.15rem; color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.glance__list dd { margin: 0; color: var(--on-navy); }
@media (min-width: 520px) {
  .glance__list > div { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; }
}

/* Closing call to action */
.cta-band {
  padding-block: clamp(4.5rem, 9vw, 6.5rem);
  text-align: center;
  background:
    radial-gradient(760px 380px at 50% 125%, rgba(201, 164, 76, 0.2), transparent 65%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
}
.cta-band__inner { max-width: 48rem; margin-inline: auto; }
.cta-band p { max-width: 56ch; margin-inline: auto; font-size: clamp(1.05rem, 1rem + 0.25vw, 1.15rem); color: var(--on-navy-soft); }

/* 10. Services page
   ========================================================================== */
.service-detail { padding-block: clamp(4rem, 8vw, 6.5rem); }
.service-detail--ivory { background: var(--ivory); }
.service-detail__grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .service-detail__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4.5rem; align-items: start; }
}
.service-detail__meta { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.75rem; }
.service-detail__num {
  font-family: var(--font-serif);
  font-size: clamp(3.25rem, 2.6rem + 2.6vw, 4.75rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--gold-dark);
}
.service-detail__lead { font-size: clamp(1.05rem, 1rem + 0.25vw, 1.15rem); }
.suited {
  margin-top: 1.75rem;
  padding: 1.15rem 1.35rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--ivory);
}
.service-detail--ivory .suited { background: var(--white); }
.suited__label { display: block; margin-bottom: 0.3rem; color: var(--gold-dark); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.help-card {
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.service-detail:not(.service-detail--ivory) .help-card { background: var(--ivory); box-shadow: none; }
.help-card h3 { margin-bottom: 1.25rem; }
.service-detail__panel > .btn { margin-top: 1.75rem; }

.check-list { display: grid; gap: 0.9rem; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 2.15rem; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.2em;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: var(--navy-900);
}
.check-list li::after {
  content: "";
  position: absolute; left: 0.49rem; top: calc(0.2em + 0.3rem);
  width: 0.38rem; height: 0.62rem;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.reg-note { margin-top: 1.25rem; padding: 1.4rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.reg-note h3 { margin-bottom: 0.85rem; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dark); }
.reg-note dl { display: grid; gap: 0.65rem; margin: 0; font-size: 0.95rem; }
.reg-note dl > div { display: grid; gap: 0.1rem; }
.reg-note dt { font-weight: 700; color: var(--ink); }
.reg-note dd { margin: 0; }
@media (min-width: 560px) {
  .reg-note dl > div { grid-template-columns: 12.5rem minmax(0, 1fr); gap: 1rem; }
}

/* 11. About page
   ========================================================================== */
.mission { padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius-lg); background: linear-gradient(155deg, var(--navy-800), var(--navy-900)); box-shadow: var(--shadow-lg); }
.mission__mark { display: block; height: 2.5rem; font-family: var(--font-serif); font-size: 5rem; line-height: 1; color: var(--gold); }
.mission__text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.38;
  color: var(--white);
}

.values-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) {
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}
.values-intro { padding: clamp(1.75rem, 3.5vw, 2.5rem); border-radius: var(--radius-lg); background: linear-gradient(155deg, var(--navy-800), var(--navy-900)); }
.values-intro h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.values-intro p:not(.eyebrow) { color: var(--on-navy-soft); }
.value-card {
  padding: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(138, 106, 31, 0.35); }
.value-card .icon-badge { margin-bottom: 1.4rem; }
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { color: var(--muted); }

.principles { display: grid; gap: 1rem; padding: 0; list-style: none; }
.principle { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; padding: 1.5rem 1.6rem; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.principle__num { padding-top: 0.1rem; font-family: var(--font-serif); font-size: 1.6rem; line-height: 1; color: var(--gold-dark); }
.principle h3 { margin-bottom: 0.35rem; }
.principle p { color: var(--muted); }

.details-card { padding: clamp(1.6rem, 3.5vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.details-list { display: grid; margin: 0; }
.details-list > div { display: grid; gap: 0.2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.details-list > div:first-child { padding-top: 0; }
.details-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.details-list dt { padding-top: 0.2rem; color: var(--gold-dark); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.details-list dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (min-width: 560px) {
  .details-list > div { grid-template-columns: 13rem minmax(0, 1fr); gap: 1.5rem; }
}

/* 12. Contact page
   ========================================================================== */
.contact-layout { display: grid; gap: 1.75rem; align-items: start; }
@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 2.25rem; }
}
.form-card { padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.form-card h2 { margin-bottom: 0.4rem; font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); }
.form-note { margin-bottom: 1.75rem; color: var(--muted); font-size: 0.95rem; }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}
.field label { display: block; margin-bottom: 0.45rem; color: var(--ink); font-size: 0.95rem; font-weight: 700; }
.req { color: var(--error); }
.optional { color: var(--muted); font-weight: 500; }
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 3.15rem;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--navy-900); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--navy-900); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-error { margin: 0.45rem 0 0; color: var(--error); font-size: 0.9rem; font-weight: 600; }
.field-error:empty { display: none; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute; right: 1.1rem; top: 50%;
  width: 0.5rem; height: 0.5rem;
  margin-top: -0.35rem;
  border: solid var(--navy-900);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.select-wrap select { padding-right: 2.75rem; cursor: pointer; }
.hp-field { display: none !important; }
.form-privacy { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.92rem; }
.form-actions { margin-top: 1.5rem; }
.form-status { margin-top: 1.25rem; }
.form-status:empty { margin-top: 0; }
.form-status.is-error,
.form-status.is-info { padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 600; line-height: 1.55; }
.form-status.is-error { background: #FDF1F0; border: 1px solid #F0C5C0; color: #8E1C12; }
.form-status.is-info { background: var(--ivory); border: 1px solid var(--line); color: var(--ink); }

.form-success { padding: clamp(1rem, 3vw, 2rem) 0; text-align: center; }
.form-success:focus { outline: none; }
.form-success__icon {
  display: grid; place-items: center;
  width: 4rem; height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold);
}
.form-success__icon svg { width: 1.75rem; height: 1.75rem; }
.form-success p { max-width: 46ch; margin-inline: auto; color: var(--muted); }
.form-success .btn { margin-top: 1.75rem; }

.contact-panel { padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); box-shadow: var(--shadow-lg); }
.contact-panel h2 { margin-bottom: 1.5rem; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); }
.contact-list { display: grid; gap: 1.35rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.contact-list li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.contact-list__icon {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid rgba(201, 164, 76, 0.45);
  border-radius: 50%;
  color: var(--gold);
}
.contact-list__icon svg { width: 1.2rem; height: 1.2rem; }
.contact-list__label { display: block; margin-bottom: 0.15rem; color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.contact-list a,
.contact-list__value { color: var(--white); overflow-wrap: anywhere; }
.contact-panel__block { padding-top: 1.5rem; border-top: 1px solid var(--line-navy); }
.contact-panel__block + .contact-panel__block { margin-top: 1.5rem; }
.contact-panel__block h3 { margin-bottom: 0.85rem; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.contact-panel__block p { color: var(--on-navy-soft); font-size: 0.97rem; }

/* Social icons (footer and contact page) */
.social-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.social-list a {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--on-navy);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social-list a:hover { border-color: var(--gold); background: rgba(201, 164, 76, 0.08); color: var(--gold); transform: translateY(-2px); }
.social-list svg { width: 1.1rem; height: 1.1rem; }

/* 13. Privacy notice
   ========================================================================== */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.75rem; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); }
.prose ul { margin: 0 0 1.1em; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--gold-dark); }
.prose__intro { font-size: clamp(1.075rem, 1rem + 0.35vw, 1.2rem); color: var(--ink); }

/* 14. Footer
   ========================================================================== */
.site-footer { position: relative; padding-top: clamp(3.5rem, 7vw, 5rem); background: var(--navy-950); color: var(--on-navy-soft); font-size: 0.95rem; }
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 76, 0.55), transparent);
}
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.25fr 1.25fr; gap: 3rem; }
}
.footer-tagline { max-width: 34ch; margin: 1.1rem 0 1.5rem; }
.site-footer .footer-title { margin-bottom: 1.1rem; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.footer-links { display: grid; gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--on-navy); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-contact__label { display: block; color: var(--on-navy-soft); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-bottom { display: grid; gap: 0.6rem; padding-block: 1.75rem 2.25rem; border-top: 1px solid var(--line-navy); font-size: 0.875rem; }
.footer-bottom p { margin: 0; }

/* 15. Motion
   ========================================================================== */
/* Content is hidden for the reveal only when JS runs (html.js), so no-JS visitors see everything */
html.js .reveal { opacity: 0; }
html.js .reveal.is-visible { animation: reveal-in 0.9s var(--ease) var(--reveal-delay, 0s) both; }
.stagger > .reveal:nth-child(2) { --reveal-delay: 0.08s; }
.stagger > .reveal:nth-child(3) { --reveal-delay: 0.16s; }
.stagger > .reveal:nth-child(4) { --reveal-delay: 0.24s; }
.stagger > .reveal:nth-child(5) { --reveal-delay: 0.32s; }
.stagger > .reveal:nth-child(6) { --reveal-delay: 0.4s; }

@keyframes reveal-in { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; }
}

/* Printing or saving as PDF: show everything, including content not yet scrolled into view */
@media print {
  html.js .reveal { opacity: 1 !important; animation: none !important; }
  .site-header, .nav-toggle, .hero-visual { display: none !important; }
}
