/* ==========================================================
   SPA Advisory — interim one-page site
   Brand: plum #402A47 · gold #BD9C58 · cream #EAE5DF
   Type: Playfair Display (display) · Montserrat (text)
   ========================================================== */

:root {
  --plum: #402A47;
  --plum-deep: #2F1F35;
  --plum-ink: #2A1D2F;
  --gold: #BD9C58;
  --gold-soft: #D6BD86;      /* gold text on plum: higher contrast */
  --gold-text: #7A5F27;      /* gold-toned text on light backgrounds (AA) */
  --cream: #EAE5DF;
  --cream-light: #F4F0EB;
  --paper: #FAF8F5;
  --lavender: #E9E3EC;
  --ink: #2A1D2F;
  --muted: #5E5162;
  --on-plum: #F4F0EB;
  --on-plum-muted: #CFC4D2;
  --line: rgba(64, 42, 71, 0.14);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-text: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(88px, 12vw, 152px);
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section[id] { scroll-margin-top: 72px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--plum-ink); padding: 10px 16px;
  font-weight: 600; text-decoration: none; border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.section--cream :focus-visible, .section--paper :focus-visible { outline-color: var(--plum); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-text);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--gold-soft); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--plum);
  max-width: 20ch;
  text-wrap: balance;
}
.section-title--light { color: var(--on-plum); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  font-family: var(--font-text); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .7rem; }
.btn--gold { background: var(--gold); color: var(--plum-ink); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost-light { border-color: rgba(244, 240, 235, .45); color: var(--on-plum); }
.btn--ghost-light:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn--plum { background: var(--plum); color: var(--on-plum); }
.btn--plum:hover { background: var(--plum-deep); }
.btn--ghost { border-color: var(--plum); color: var(--plum); }
.btn--ghost:hover { background: var(--plum); color: var(--on-plum); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 18px 0;
}
.site-header.is-scrolled {
  background: rgba(47, 31, 53, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(189, 156, 88, .25);
  padding: 10px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand img { width: 96px; height: auto; transition: width .4s var(--ease); }
.is-scrolled .nav__brand img { width: 78px; }
.nav__menu { display: flex; align-items: center; gap: 40px; }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  color: var(--on-plum); text-decoration: none;
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }

.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid rgba(244, 240, 235, .35); border-radius: var(--radius);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav__toggle-bar { display: block; width: 20px; height: 1.5px; background: var(--on-plum); transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { transform: translateY(4.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 0 0 auto; top: 0; z-index: -1;
    flex-direction: column; align-items: flex-start; gap: 28px;
    padding: 104px var(--gutter) 40px;
    background: var(--plum-deep);
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
    transform: translateY(-100%); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s linear .45s;
  }
  .nav__menu.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .nav__links { flex-direction: column; gap: 4px; width: 100%; }
  .nav__links a { display: block; padding: 12px 0; font-size: .9rem; border-bottom: 1px solid rgba(244,240,235,.08); }
  .nav__links a::after { display: none; }
  .nav__menu .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(ellipse 70% 60% at 78% 40%, rgba(189,156,88,.10), transparent 70%),
    linear-gradient(160deg, #46304D 0%, var(--plum) 45%, var(--plum-deep) 100%);
  color: var(--on-plum);
  padding: 140px 0 0;
}
.hero__inner { position: relative; z-index: 1; padding-bottom: clamp(80px, 12vh, 140px); }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 1.4rem + 5vw, 5.6rem);
  line-height: 1.06; letter-spacing: -.015em;
  max-width: 12em;
  margin-bottom: 32px;
}
.hero__title-accent { display: block; font-style: italic; color: var(--gold-soft); }
.hero__lede { max-width: 38rem; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--on-plum-muted); margin-bottom: 44px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__arches {
  position: absolute; right: -9%; bottom: 0;
  height: 88%; width: auto; max-width: 50%;
  fill: none; stroke: var(--gold); stroke-width: 1; opacity: .5;
  pointer-events: none;
}
.arch { stroke-dasharray: 2400; stroke-dashoffset: 0; }
.arch--2 { opacity: .7; }
.arch--3 { opacity: .45; }

.hero__strip { position: relative; z-index: 1; border-top: 1px solid rgba(189,156,88,.28); }
.hero__services {
  display: flex; flex-wrap: wrap; gap: 8px 0; padding: 22px 0;
  font-size: .7rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--on-plum-muted);
}
.hero__services li:not(:last-child)::after { content: "·"; color: var(--gold); margin: 0 1.1em; }

@media (min-width: 601px) and (max-width: 900px) {
  .hero__services { font-size: .62rem; letter-spacing: .16em; }
  .hero__services li:not(:last-child)::after { margin: 0 .8em; }
}
@media (max-width: 900px) {
  .hero__arches { max-width: none; height: 70%; right: -30%; opacity: .28; }
}
@media (max-width: 600px) {
  .hero { padding-top: 120px; }
  .hero__actions .btn { width: 100%; }
  .hero__services { flex-direction: column; letter-spacing: .2em; }
  .hero__services li::after { display: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section--cream { background: var(--cream-light); }
.section--paper { background: var(--paper); }
.section--plum { background: var(--plum); color: var(--on-plum); overflow: hidden; }
.section-head { margin-bottom: clamp(48px, 6vw, 72px); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section-head--center .section-title { margin: 0 auto; }

/* ---------- About ---------- */
.about__intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.about__copy { color: var(--muted); font-size: 1.02rem; padding-top: 2.4rem; }
.about__lead {
  font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  line-height: 1.5; color: var(--plum);
}

.audiences { margin-top: clamp(64px, 8vw, 104px); }
.audiences__label {
  font-size: .72rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 24px;
}
.audiences__list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.audience { padding: 32px 28px 8px 0; }
.audience + .audience { padding-left: 28px; border-left: 1px solid var(--line); }
.audience h3 {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--plum); margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.audience h3::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.audience p { color: var(--muted); font-size: .93rem; line-height: 1.6; }

@media (max-width: 900px) {
  .about__intro { grid-template-columns: 1fr; gap: 20px; }
  .about__copy { padding-top: 0; }
  .audiences__list { grid-template-columns: repeat(2, 1fr); }
  .audience:nth-child(3) { padding-left: 0; border-left: 0; }
  .audience:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .audiences__list { grid-template-columns: 1fr; }
  .audience, .audience + .audience { padding: 24px 0 20px; border-left: 0; }
  .audience + .audience { border-top: 1px solid var(--line); }
}

/* ---------- What We Do ---------- */
.section-head--split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end;
}
.section-intro { color: var(--muted); font-size: 1.02rem; max-width: 34rem; }
@media (max-width: 900px) { .section-head--split { grid-template-columns: 1fr; } }

.domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.domain {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px 30px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.domain::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.domain:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(64,42,71,.28); }
.domain:hover::before { transform: scaleX(1); }
.domain .icon { width: 30px; height: 30px; stroke: var(--plum); margin-bottom: 28px; }
.domain__num {
  position: absolute; top: 30px; right: 26px;
  font-family: var(--font-display); font-size: .95rem; color: var(--gold);
}
.domain__title {
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1.25; color: var(--plum);
  margin-bottom: 14px;
}
.domain p { color: var(--ink); font-size: .98rem; line-height: 1.6; }
.domain > p { margin-bottom: 24px; }
.domain__includes {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .82rem; line-height: 1.5; color: var(--muted);
}
.domain__includes li { position: relative; padding-left: 14px; }
.domain__includes li + li { margin-top: 6px; }
.domain__includes li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 1px; background: var(--gold); }
.icon { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.advisory-band {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 32px; align-items: center;
  margin-top: 20px; padding: 26px 32px;
  background: var(--lavender); border-radius: var(--radius); border-left: 3px solid var(--gold);
  color: var(--ink); font-size: .98rem;
}
.advisory-band p { margin: 0; }
.advisory-band__label {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--plum); white-space: nowrap;
}

@media (max-width: 1024px) { .domains { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .domains { grid-template-columns: 1fr; }
  .advisory-band { grid-template-columns: 1fr; padding: 24px; }
}

/* ---------- Contact ---------- */
.section--plum .container { position: relative; }
.contact__arch {
  position: absolute; right: -200px; top: 40px; width: 380px; height: auto;
  fill: none; stroke: var(--gold); stroke-width: 1; opacity: .18; pointer-events: none;
}
.contact { text-align: center; }
.contact .section-title { max-width: 18ch; }
.contact__lede { max-width: 36rem; margin: 28px auto 0; color: var(--on-plum-muted); font-size: 1.05rem; }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 980px; margin: 0 auto; text-align: left;
}
.steps li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 26px 24px; border: 1px solid rgba(189,156,88,.3); border-radius: var(--radius);
  background: rgba(47,31,53,.4);
}
.steps__num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold-soft);
  font-family: var(--font-display); font-size: 1.1rem;
}
.steps p { color: var(--on-plum-muted); font-size: .95rem; line-height: 1.6; text-wrap: pretty; }
.steps strong { display: block; color: var(--on-plum); font-weight: 600; margin-bottom: 2px; }

.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 48px; }
.contact__alt { margin-top: 24px; font-size: .9rem; color: var(--on-plum-muted); }
.contact__sep { color: var(--gold); margin: 0 .6em; }
.contact__alt a { color: var(--on-plum); white-space: nowrap; text-underline-offset: 3px; text-decoration-color: var(--gold); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 700px) {
  .contact__actions .btn { width: 100%; }
  .contact__alt a { display: block; margin-top: 6px; }
  .contact__sep { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-deep); color: var(--on-plum-muted); padding: 80px 0 32px; font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer__brand img { width: 150px; margin-bottom: 22px; }
.footer__brand p { font-family: var(--font-display); font-style: italic; color: var(--gold-soft); max-width: 22rem; }
.footer__heading {
  font-family: var(--font-text); font-size: .7rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--on-plum); margin-bottom: 18px;
}
.footer__col li + li { margin-top: 10px; }
.footer__col a { text-decoration: none; transition: color .3s; }
.footer__col a:hover { color: var(--gold-soft); }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-top: 28px; position: relative;
  font-size: .76rem; color: #A99CAD;
}
.footer__legal::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: rgba(189,156,88,.22);
}
.footer__legal p { margin: 0; }

@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.1s; }
.js .hero .reveal:nth-child(2) { transition-delay: .12s; }
.js .hero .reveal:nth-child(3) { transition-delay: .24s; }
.js .hero .reveal:nth-child(4) { transition-delay: .36s; }
.js .domains .reveal:nth-child(2), .js .audience:nth-child(2) { transition-delay: .1s; }
.js .domains .reveal:nth-child(3), .js .audience:nth-child(3) { transition-delay: .2s; }
.js .domains .reveal:nth-child(4), .js .audience:nth-child(4) { transition-delay: .3s; }

.js .arch { stroke-dashoffset: 2400; animation: draw 3.2s var(--ease) .3s forwards; }
.js .arch--2 { animation-delay: .55s; }
.js .arch--3 { animation-delay: .8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .arch { stroke-dashoffset: 0; }
}
