/* ==========================================================================
   InfoReporting Solutions — Site Styles
   Clean, professional, navy + white. No gradients. Subtle motion only.
   Built by GradientV.
   --------------------------------------------------------------------------
   Contents:
   1.  Design tokens (variables)
   2.  Reset & base
   3.  Typography helpers
   4.  Layout: container, section, eyebrow, headings
   5.  Buttons
   6.  Top utility bar
   7.  Header / navigation
   8.  Hero (home) & page hero (inner pages)
   9.  Trust / stats strip
   10. Service cards & service detail
   11. Feature (alternating text + media)
   12. Founder / profile
   13. Insights (article) cards
   14. Contact (form + info)
   15. CTA band
   16. Footer
   17. Utilities & motion (scroll reveal)
   18. Responsive
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --navy:       #14284a;   /* brand navy (sampled from logo) */
  --navy-700:   #1d3460;   /* lighter navy — links / hovers */
  --navy-900:   #0e1d38;   /* deeper navy — depth, footer */
  --ink:        #1f2a3d;   /* primary body text */
  --muted:      #5b6880;   /* secondary text */
  --muted-2:    #8a94a6;   /* tertiary / captions */
  --line:       #e4e8ef;   /* hairline borders */
  --line-2:     #d3dae5;   /* slightly stronger border */
  --paper:      #f6f8fb;   /* subtle section background */
  --paper-2:    #eef1f6;   /* deeper neutral panel */
  --white:      #ffffff;

  --accent:     #c8541f;   /* sunset ember (from logo) — warm accent on light */
  --accent-700: #a83f14;   /* deeper ember — hovers */
  --gold:       #f2a93b;   /* lighthouse gold — accent on dark */
  --accent-tint:#fbeadf;   /* faint warm chip background */

  --container:  1180px;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 1px 2px rgba(20, 40, 74, .04);
  --shadow-md:  0 10px 30px rgba(20, 40, 74, .08);
  --ease:       cubic-bezier(.4, 0, .2, 1);

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           Helvetica, Arial, sans-serif;
}

/* 2. Reset & base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

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

a { color: var(--navy); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--navy-700); }

ul { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  overflow-wrap: break-word;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px;
  z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* 3. Typography helpers -------------------------------------------------- */
.t-lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); }
.t-center { text-align: center; }
.t-balance { text-wrap: balance; }

/* 4. Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(64px, 8vw, 110px); }
.section--paper { background: var(--paper); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.eyebrow--navy { color: var(--navy); }
.eyebrow--light { color: rgba(255,255,255,.66); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }

h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* 5. Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sans);
  font-size: .95rem; font-weight: 600; line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* On dark backgrounds */
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn--block { width: 100%; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; font-size: .95rem; color: var(--navy);
}
.link-arrow svg { width: 18px; height: 18px; flex: none; transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* 6. Top utility bar ----------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,.82);
  font-size: .82rem;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px;
}
.topbar__tag { letter-spacing: .02em; }
.topbar__contact { display: flex; align-items: center; gap: 22px; }
.topbar a { color: rgba(255,255,255,.82); display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; stroke: currentColor; opacity: .8; }

/* 7. Header / navigation ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 86px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .96rem; font-weight: 500; color: var(--ink);
  padding: 8px 14px; border-radius: 6px; position: relative;
}
.nav a:hover { color: var(--navy); background: var(--paper); }
.nav a.is-active { color: var(--navy); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--navy); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: 8px; background: #fff;
  cursor: pointer; align-items: center; justify-content: center;
  position: relative; z-index: 110; /* stay above the open mobile panel */
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy);
  position: relative; transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* 8. Hero (home) --------------------------------------------------------- */
.hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* subtle lighthouse-beam line motif, drawn flat (no gradient) */
.hero__beam {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
}
.hero .container { position: relative; z-index: 1; }
.hero__inner {
  display: grid; grid-template-columns: 1.2fr .8fr;
  align-items: center; gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(40px, 5vw, 76px) clamp(32px, 4vw, 56px);
}
.hero__content { max-width: 680px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.hero__sub {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: rgba(255,255,255,.82);
  max-width: 620px; margin-top: 1.25rem;
}
.hero__meta {
  margin-top: 1.5rem; color: rgba(255,255,255,.7);
  font-size: .98rem;
}
.hero__meta strong { color: #fff; font-weight: 600; }
.hero__cta { margin-top: 2.25rem; display: flex; gap: 14px; flex-wrap: wrap; }

/* Brand seal (medallion) in the hero — branded ring band + crisp inner scene */
.hero__figure { display: flex; justify-content: center; }
.seal {
  position: relative;
  width: clamp(248px, 30vw, 360px); aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 70px rgba(0,0,0,.34);
  display: grid; place-items: center;
}
/* gold hairline framing the text band, inner + outer */
.seal::before,
.seal::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.seal::before { inset: 9px; border: 1px solid rgba(242,169,59,.34); }
.seal::after  { inset: 22%; border: 1px solid rgba(242,169,59,.28); }

.seal__type { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal__txt {
  fill: #f3e7d3; text-anchor: middle;
  font-family: var(--sans); font-weight: 600;
  font-size: 13px; letter-spacing: 2.4px;
}
.seal__txt--sub { fill: var(--gold); font-size: 11px; letter-spacing: 2px; }
.seal__pip { fill: var(--gold); }

.seal__core {
  position: relative; width: 56%; aspect-ratio: 1 / 1;
  border-radius: 50%; overflow: hidden;
  background: #0c182f;
  box-shadow: inset 0 0 0 2px rgba(242,169,59,.5), inset 0 0 30px 8px rgba(8,16,34,.85);
}
.seal__core img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* blurred, enlarged copy fills the artwork's transparent gaps with soft
   sunset colour so nothing reads as a blank navy wedge */
.seal__bg {
  object-position: 52% 50%;
  transform: scale(2);
  filter: blur(11px) saturate(1.08) brightness(.96);
}
/* crisp foreground; its edge feathers into the blurred backing, hiding the
   artwork's dome rim and any hard boundary */
.seal__fg {
  object-position: 62% 48%;
  transform: scale(1.2);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 80%, rgba(0,0,0,0) 98%);
          mask-image: radial-gradient(circle at 50% 50%, #000 80%, rgba(0,0,0,0) 98%);
}

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero .container { position: relative; }
.page-hero__inner { padding-block: clamp(60px, 8vw, 96px); max-width: 760px; position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
/* Decorative brand seal — anchored to the content container so it stays
   aligned with the text instead of flying to the viewport edge on wide screens */
.page-hero__seal {
  position: absolute; top: 50%; right: 0; transform: translateY(-50%);
  z-index: 0; pointer-events: none;
}
.page-hero .seal { width: clamp(200px, 22vw, 280px); }
@media (max-width: 1060px) { .page-hero__seal { display: none; } }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 620px; margin-top: 1rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 1.25rem; letter-spacing: .02em; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 .5em; opacity: .5; }

/* 9. Trust / stats strip ------------------------------------------------- */
.stats {
  border-top: 1px solid rgba(255,255,255,.12);
  background: var(--navy-900);
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 30px 24px; color: #fff; text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; }
.stat__label { font-size: .85rem; color: rgba(255,255,255,.66); margin-top: .55rem; letter-spacing: .02em; }

/* Light stat band variant (on white) */
.stats--light { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.stats--light .stat { color: var(--navy); border-right: 1px solid var(--line); }
.stats--light .stat:last-child { border-right: 0; }
.stats--light .stat__num { color: var(--navy); }
.stats--light .stat__label { color: var(--muted); }

/* 10. Service cards & detail -------------------------------------------- */
.cards { display: grid; gap: 22px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card__icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--paper-2); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; stroke: var(--navy); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* Service detail list (full Services page) */
.service-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 26px;
  padding: 38px 0; border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 0; }
.service-row__icon {
  width: 64px; height: 64px; border-radius: 12px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.service-row__icon svg { width: 30px; height: 30px; stroke: #fff; }
.service-row__num { font-family: var(--serif); color: var(--muted-2); font-size: .95rem; margin-bottom: .35rem; }
.service-row h3 { font-size: 1.5rem; margin-bottom: .65rem; }
.service-row__desc { color: var(--muted); margin-bottom: 1.1rem; max-width: 680px; }

.feature-list { list-style: none; display: grid; gap: 12px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--ink); font-size: 1rem;
}
.feature-list svg { width: 20px; height: 20px; stroke: var(--navy); flex: none; margin-top: 3px; }
.feature-list--cols { grid-template-columns: repeat(2, 1fr); }

/* 11. Feature (alternating text + media) -------------------------------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.feature--reverse .feature__media { order: -1; }
.feature__media {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper-2);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }

/* Navy panel used inside features / callouts */
.panel-navy {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: clamp(32px, 4vw, 52px);
}
.panel-navy h2, .panel-navy h3 { color: #fff; }
.panel-navy p { color: rgba(255,255,255,.82); }
.panel-navy .feature-list li { color: rgba(255,255,255,.9); }
.panel-navy .feature-list svg { stroke: #fff; }

/* 12. Founder / profile ------------------------------------------------- */
.profile { display: grid; grid-template-columns: 360px 1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.profile__photo {
  border-radius: var(--radius); overflow: hidden;
}
.profile__photo img { width: 100%; display: block; }
.profile__name { font-size: 1.9rem; margin-bottom: .15rem; }
.profile__role { color: var(--muted); font-size: 1.02rem; margin-bottom: 1.4rem; }
.credentials { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.6rem; }
.credentials li {
  font-size: .85rem; font-weight: 600; color: var(--navy);
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 100px; letter-spacing: .01em;
}

/* 13. Insights (article) cards ------------------------------------------ */
.insight-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; height: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.insight-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.insight-card__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .78rem; color: var(--muted); margin-bottom: 14px;
}
.tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--navy);
  background: var(--paper-2); padding: 4px 10px; border-radius: 5px;
}
.insight-card__date { color: var(--muted-2); }
.insight-card h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: .6rem; }
.insight-card h3 a { color: var(--navy); }
.insight-card h3 a:hover { color: var(--navy-700); }
.insight-card p { color: var(--muted); font-size: .97rem; margin-bottom: 1.4rem; }
.insight-card .link-arrow { margin-top: auto; }

/* 14. Contact (form + info) --------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }

.contact-info__item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info__item:last-child { border-bottom: 0; }
.contact-info__icon {
  width: 46px; height: 46px; flex: none; border-radius: 10px;
  background: var(--paper-2); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.contact-info__icon svg { width: 22px; height: 22px; stroke: var(--navy); }
.contact-info__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: .2rem; }
.contact-info__value { font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.contact-info__value a { color: var(--ink); }
.contact-info__value a:hover { color: var(--navy); }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px;
  background: #fff; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,40,74,.1);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--muted-2); margin-top: 6px; }

/* 15. CTA band ----------------------------------------------------------- */
.cta {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: clamp(40px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.cta__text { max-width: 640px; }
.cta h2 { color: #fff; margin-bottom: .5rem; }
.cta p { color: rgba(255,255,255,.82); margin: 0; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 16. Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); }
.site-footer__top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
  padding-block: clamp(48px, 6vw, 72px);
}
.site-footer__brand img { height: 52px; width: auto; margin-bottom: 20px; }
.site-footer__brand p { font-size: .95rem; color: rgba(255,255,255,.62); max-width: 320px; }
.footer-col h4 {
  color: #fff; font-family: var(--sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: rgba(255,255,255,.72); }
.footer-contact svg { width: 17px; height: 17px; stroke: rgba(255,255,255,.6); flex: none; margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,.72); }
.footer-contact a:hover { color: #fff; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.55);
}
.site-footer__bottom a { color: rgba(255,255,255,.55); }
.site-footer__bottom a:hover { color: #fff; }
.site-footer__bottom .gv { color: #e0934a; font-weight: 600; }
.site-footer__bottom .gv:hover { color: #eaa563; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* 17. Utilities & motion ------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: .75rem; }

[data-reveal] {
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 18. Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.1); }
}

@media (max-width: 860px) {
  /* Mobile nav */
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 92px 20px 28px;
    box-shadow: -16px 0 40px rgba(20,40,74,.12);
    transform: translateX(100%); transition: transform .28s var(--ease);
    z-index: 90;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: 13px 14px; font-size: 1.05rem; border-radius: 8px; }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: var(--paper); }
  .header-actions .btn { display: none; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(14,29,56,.4);
    opacity: 0; visibility: hidden; transition: opacity .28s var(--ease); z-index: 80;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .profile { grid-template-columns: 1fr; }
  .profile__photo { max-width: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }

  /* Hero collapses to a single column; emblem is decorative, so hide it */
  .hero__inner { grid-template-columns: 1fr; }
  .hero__content { max-width: none; }
  .hero__figure { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .topbar__tag { display: none; }
  .topbar__inner { justify-content: center; }
  .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .feature-list--cols { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat:last-child { border-bottom: 0; }
  .site-footer__top { grid-template-columns: 1fr; }
  .hero__cta .btn, .cta__actions .btn { flex: 1 1 auto; }
}

/* 19. Brand accent — sunset warmth from the lighthouse logo --------------- */
/* Kicker labels carry the warm accent (ember on light, gold on dark) */
.eyebrow--navy { color: var(--accent); }
.eyebrow--light { color: var(--gold); }

/* Active nav indicator picks up the sunset */
.nav a.is-active::after { background: var(--accent); }

/* "Read more →" links lead with the accent, settle to navy on hover */
.link-arrow { color: var(--accent); }
.link-arrow:hover { color: var(--accent-700); }

/* Stat figures glow gold against the navy band */
.stats .stat__num { color: var(--gold); }

/* Service & insight chips warm up */
.card__icon { background: var(--accent-tint); color: var(--accent); }
.card__icon svg { stroke: var(--accent); }
.tag { color: var(--accent); background: var(--accent-tint); }

/* A thin sunset rule along the top of the header ties the mark to the chrome */
.site-header { border-top: 3px solid var(--accent); }

/* 20. Article (insight detail) ------------------------------------------ */
.article { padding-block: clamp(48px, 6vw, 84px); }

/* Date / category line inside the page hero */
.page-hero__meta { margin-top: 1.5rem; color: rgba(255,255,255,.62); font-size: .9rem; letter-spacing: .02em; }
.page-hero__meta strong { color: #fff; font-weight: 600; }

/* Long-form prose ------------------------------------------------------- */
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2rem; }
.prose h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  margin: 2.6rem 0 1rem; padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}
.prose h3 { font-size: 1.28rem; margin: 2rem 0 .75rem; }
.prose h4 { font-size: 1.05rem; margin: 1.5rem 0 .6rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose li { margin-bottom: .55rem; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--navy); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-700); }

/* Callout / key-points box ---------------------------------------------- */
.note-box {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  padding: 22px 26px; margin: 1.7rem 0;
}
.note-box h4 { margin: 0 0 .7rem; color: var(--navy); font-size: 1.05rem; }
.note-box ul { margin: 0; padding-left: 1.25rem; }
.note-box li { margin-bottom: .5rem; list-style: disc; }
.note-box li:last-child { margin-bottom: 0; }

/* Tables ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 1.6rem 0; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.prose thead th { background: var(--navy); color: #fff; font-family: var(--sans); font-weight: 600; letter-spacing: .01em; }
.prose tbody th { background: var(--paper-2); color: var(--navy); font-weight: 600; width: 34%; }
.prose tbody tr:nth-child(even) td { background: var(--paper); }

/* Trailing tags, disclaimer, back link ---------------------------------- */
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2.2rem; }
.article__disclaimer {
  margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted); line-height: 1.65;
}
.article__foot { margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.back-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--accent); }
.back-link svg { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.back-link:hover { color: var(--accent-700); }
.back-link:hover svg { transform: translateX(-3px); }

@media (max-width: 620px) {
  .prose tbody th { width: auto; }
}

/* 19. Compliance tools (embedded assessments) --------------------------- */
.tool-frame {
  max-width: 820px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md); background: #ededeb;
}
.tool-frame iframe { width: 100%; border: 0; display: block; min-height: 640px; }
.tool-meta {
  max-width: 820px; margin: 18px auto 0; padding: 0 4px;
  font-size: .88rem; color: var(--muted); line-height: 1.6; text-align: center;
}
.tool-meta a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Tool selection cards (Compliance Tools landing) */
.tool-card { display: flex; flex-direction: column; }
.tool-card .tag { align-self: flex-start; margin-bottom: 14px; }
.tool-card p { flex: 1; }
.tool-card .btn { margin-top: 22px; align-self: flex-start; }
.tool-card__time {
  margin-top: 16px; font-size: .85rem; color: var(--muted-2);
  display: flex; align-items: center; gap: .4em;
}
.tool-card__time svg { width: 16px; height: 16px; stroke: var(--muted-2); }
