/* ==========================================================================
   Taxonomics CPA — brand system
   Tokens taken from the business card and mockups (see PROJECT-NOTES.md).
   ========================================================================== */

:root {
  --navy:        #071B2B;
  --navy-soft:   #0E2C44;
  --cream:       #F0EDEA;
  --gold:        #B18531;
  --gold-bright: #C79A3E;

  --ink:         #14202B;
  --ink-muted:   #55646F;
  --rule:        #E1DDD8;
  --white:       #FFFFFF;
  --tint:        #F7F5F3;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gut:  clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

/* Keyboard focus must be visible. Browsers' default outline is invisible
   against the navy footer and the navy CTA band, so set an explicit one. */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link - first tab stop, hidden until focused. Without it a keyboard or
   screen-reader user tabs through the whole nav on every page. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--cream);
  padding: .75rem 1.25rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { left: .5rem; top: .5rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.06rem; font-family: var(--sans); font-weight: 600; }

p { margin: 0 0 1rem; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.eyebrow {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}

/* Centred section heading with the gold underline from the mockups */
.section-head { text-align: center; margin-bottom: 2.75rem; }
.section-head h2 { margin-bottom: .75rem; }
.section-head::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
}

section { padding-block: clamp(3rem, 7vw, 5.5rem); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn--navy  { background: var(--navy); color: var(--cream); }
.btn--navy:hover  { background: var(--navy-soft); }
.btn--gold  { background: var(--gold); color: var(--navy); }
.btn--gold:hover  { background: var(--gold-bright); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--cream); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 84px;
}

.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo__mark { width: 34px; height: 40px; flex: none; }
.logo__word { font-family: var(--serif); font-size: 1.4rem; letter-spacing: .06em; color: var(--navy); line-height: 1; }
.logo__sub   { font-size: .55rem; letter-spacing: .22em; color: var(--gold); text-transform: uppercase; margin-top: .28rem; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }

/* :not(.btn) is load-bearing. Without it these rules (0,1,1) outrank
   .btn--navy (0,1,0) and repaint the "Book a Consultation" button's label
   navy-on-navy - invisible until :hover turned it gold. */
.nav a:not(.btn) {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: .35rem;
  border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { color: var(--gold); }
.nav a:not(.btn)[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------ hero */
.hero { background: var(--white); padding-block: 0; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--gold); display: block; }
.hero p { color: var(--ink-muted); max-width: 34ch; font-size: 1.02rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }

/* Holds the SVG skyline. Decorative, so the <img> carries alt="" and the
   illustration is not announced to screen readers. */
.hero__media {
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 18px 46px rgba(7, 27, 43, .22);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------- trustbar */
.trustbar { background: var(--tint); border-block: 1px solid var(--rule); }
.trustbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.trustbar li { display: flex; gap: .9rem; }
.trustbar li + li { border-left: 1px solid var(--rule); padding-left: clamp(1.25rem, 3vw, 2.5rem); }
.trustbar svg { flex: none; color: var(--gold); }
.trustbar h3 { margin-bottom: .3rem; color: var(--navy); }
.trustbar p { font-size: .85rem; color: var(--ink-muted); margin: 0; }

/* ------------------------------------------------------------ card grids */
.grid { display: grid; gap: 1.5rem; }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.pillar { text-align: center; padding-inline: .75rem; }
.pillar + .pillar { border-left: 1px solid var(--rule); }
.pillar svg { color: var(--gold); margin: 0 auto .9rem; }
.pillar h3 { color: var(--navy); font-size: 1rem; margin-bottom: .5rem; }
.pillar p { font-size: .85rem; color: var(--ink-muted); margin: 0; }

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: 0 8px 26px rgba(7,27,43,.09); transform: translateY(-2px); }
.card svg { color: var(--gold); margin: 0 auto 1rem; }
.card h3 { color: var(--navy); font-size: 1rem; margin-bottom: .55rem; }
.card p { font-size: .85rem; color: var(--ink-muted); margin: 0; }

.services { background: var(--tint); }

/* ------------------------------------------------------------ CTA band */
.cta-band { background: var(--navy); color: var(--cream); border-radius: 3px; }
.cta-band .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3rem);
  border-left: 3px solid var(--gold);
}
.cta-band h2 { color: var(--cream); margin-bottom: .6rem; }
.cta-band p { color: rgba(240,237,234,.78); margin: 0; max-width: 46ch; font-size: .95rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: rgba(240,237,234,.75); padding-block: 3.5rem 1.5rem; font-size: .87rem; }
.site-footer .logo__word { color: var(--cream); }
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.site-footer h4 {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer .contact li { display: flex; gap: .65rem; align-items: flex-start; }
.site-footer .contact svg { flex: none; color: var(--gold); margin-top: .25rem; }
.legal {
  margin-top: 2.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(240,237,234,.14);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .78rem;
}

/* --------------------------------------------- unverified-content marker */
/* Everything inside this wrapper is blocked from publication until the
   claim behind it is substantiated. See PROJECT-NOTES.md. */
.pending {
  border: 1px dashed var(--gold);
  background: rgba(177,133,49,.06);
  border-radius: 3px;
  padding: 1.5rem;
  text-align: center;
}
.pending__label {
  display: inline-block;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: .2rem .55rem;
  margin-bottom: .9rem;
}
.pending p { font-size: .85rem; color: var(--ink-muted); margin: 0 auto; max-width: 60ch; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16 / 9; }
  .trustbar ul { grid-template-columns: repeat(2, 1fr); }
  .trustbar li + li { border-left: 0; padding-left: 0; }
  .trustbar li:nth-child(2n) { border-left: 1px solid var(--rule); padding-left: 1.25rem; }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .pillar + .pillar { border-left: 0; }
  .cta-band .inner { flex-direction: column; align-items: flex-start; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    background: none;
    border: 1px solid var(--rule);
    border-radius: 2px;
    padding: .55rem .7rem;
    cursor: pointer;
  }
  .nav.is-open {
    display: flex;
    position: absolute;
    inset: 84px 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gut) 1.25rem;
  }
  .nav.is-open a { padding-block: .7rem; width: 100%; }
}

@media (max-width: 560px) {
  .trustbar ul, .grid--5, .site-footer .cols { grid-template-columns: 1fr; }
  .trustbar li:nth-child(2n) { border-left: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* --------------------------------------------------------------- contact */
/* Interim destination for the "Book a Consultation" CTAs. Replace with the
   scheduler embed once a Calendly / Cal.com account exists - but never send
   the primary CTA back to href="#". */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.contact-card {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 2rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--white);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
a.contact-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 26px rgba(7,27,43,.09);
  transform: translateY(-2px);
}
.contact-card svg { color: var(--gold); margin: 0 auto 1rem; }
.contact-card h3 { color: var(--navy); margin-bottom: .4rem; }
.contact-card p { color: var(--ink-muted); font-size: .9rem; margin: 0; word-break: break-word; }
.contact-card--static { cursor: default; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}
