/* =====================================================================
   GOLDEN MONKEY — Consulting & Corporate Services
   Shared stylesheet. Gold on near-black, drawn from the brand mark.
   ===================================================================== */

:root {
  /* Surfaces */
  --bg:          #0a0a0b;
  --bg-2:        #101012;
  --bg-3:        #16161a;
  --line:        #26262b;
  --line-soft:   #1c1c21;

  /* Text */
  --text:        #f3f1ec;
  --muted:       #a3a099;
  --dim:         #726f69;

  /* Gold — taken from the mark */
  --gold:        #d4af37;
  --gold-bright: #f0c75e;
  --gold-deep:   #9c7c1e;
  --gold-tint:   rgba(212, 175, 55, 0.10);
  --gold-line:   rgba(212, 175, 55, 0.34);

  /* Type */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Rhythm */
  --shell:     1200px;
  --shell-narrow: 900px;
  --gutter:    clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 9vw, 130px);
  --radius:    4px;
  --header-h:  76px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.005em;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }

::selection { background: var(--gold); color: #0a0a0b; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.shell-narrow { max-width: var(--shell-narrow); }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 300;
  background: var(--gold);
  color: #0a0a0b;
  padding: 12px 20px;
  font-weight: 600;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------------------------------------------------------------------
   SHARED PIECES
   --------------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section { position: relative; padding-block: var(--section-y); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }

.section-title {
  font-size: clamp(28px, 3.8vw, 42px);
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  line-height: 1.7;
  color: var(--muted);
}

.rule {
  width: 56px;
  height: 2px;
  margin: 0 0 26px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
  border: 0;
}

.rule-center { margin-inline: auto; }

.text-center { text-align: center; }

/* Placeholder marker — everything the client still needs to supply. */
.tbc {
  color: var(--dim);
  font-style: italic;
}

/* ---------------------------------------------------------------------
   HEADER
   --------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(10, 10, 11, 0.96);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.nav-desktop { display: flex; align-items: center; gap: 32px; }

.nav-desktop a {
  position: relative;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-desktop a:hover { color: var(--text); }

.nav-desktop a[aria-current="page"] { color: var(--text); }

.nav-desktop a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1.5px;
  background: var(--gold);
}

.nav-desktop .nav-cta {
  padding: 9px 20px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-desktop .nav-cta:hover { background: var(--gold-tint); border-color: var(--gold); color: var(--gold); }
.nav-desktop .nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px; height: 1.5px; margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  inset-inline: 0;
  z-index: 99;
  flex-direction: column;
  padding: 8px var(--gutter) 26px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 16px 0;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav a:last-child { border-bottom: 0; color: var(--gold); }

/* ---------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease,
              border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #14100a;
}

.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.07); }

.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold-line); color: var(--gold); transform: translateY(-2px); }

/* ---------------------------------------------------------------------
   HERO
   --------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 110px));
  padding-bottom: clamp(60px, 8vw, 110px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -34%;
  left: 50%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.11) 0%, rgba(212, 175, 55, 0) 62%);
  pointer-events: none;
}

.hero .shell { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.hero-copy { min-width: 0; }

.hero-title {
  font-size: clamp(34px, 5.2vw, 56px);
  margin-bottom: 24px;
}

/* Brand emblem — the mark held inside concentric gold rings.
   The image is never scaled beyond its native 320px, so it stays sharp. */
.hero-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 440px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.hero-emblem::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0) 68%);
}

.emblem-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.emblem-rings circle { fill: none; }

.ring-1 { stroke: rgba(212, 175, 55, 0.20); stroke-width: 1; }

.ring-2 {
  stroke: rgba(212, 175, 55, 0.42);
  stroke-width: 1.5;
  stroke-dasharray: 2 12;
  stroke-linecap: round;
  transform-origin: 50% 50%;
  animation: emblem-spin 80s linear infinite;
}

.ring-3 { stroke: rgba(212, 175, 55, 0.13); stroke-width: 1; }

@keyframes emblem-spin { to { transform: rotate(360deg); } }

.emblem-mark {
  position: relative;
  width: 62%;
  max-width: 320px;
  height: auto;
  border-radius: 50%;
}

.hero-lede {
  max-width: 60ch;
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--muted);
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Page header for interior pages */
.page-head {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 88px));
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-head::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0) 62%);
  pointer-events: none;
}

.page-head .shell { position: relative; z-index: 1; }

.page-title {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 18px;
}

.page-lede { max-width: 62ch; font-size: clamp(16.5px, 1.5vw, 18.5px); color: var(--muted); }

/* ---------------------------------------------------------------------
   PILLARS (two practice halves)
   --------------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.pillar {
  padding: 40px 36px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
}

.pillar h3 { font-size: 25px; margin-bottom: 14px; }
.pillar p { color: var(--muted); font-size: 16px; }

.pillar-list { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

.pillar-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15.5px;
  color: var(--muted);
  margin-bottom: 9px;
}

.pillar-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------------------------------------------------------------------
   SERVICE CATALOGUE
   --------------------------------------------------------------------- */

/* Self-contained cards with real gaps, so a row that doesn't divide
   evenly leaves plain background rather than an empty panel. */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.svc {
  padding: 30px 28px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.svc:hover { border-color: var(--gold-line); transform: translateY(-3px); }

/* Four-item sets sit as a balanced 2x2 rather than 3 + 1. */
.svc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

.svc-num {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 14px;
}

.svc h3 { font-size: 20px; margin-bottom: 10px; }
.svc p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------------
   NUMBERED APPROACH STEPS
   --------------------------------------------------------------------- */

.steps { border-top: 1px solid var(--line-soft); }

.step {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 44px);
  padding-block: 32px;
  border-bottom: 1px solid var(--line-soft);
}

.step-num {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold);
  line-height: 1.2;
}

.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 66ch; font-size: 16px; }

/* ---------------------------------------------------------------------
   OFFICES
   --------------------------------------------------------------------- */

.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

/* A lone office card shouldn't stretch the full container width. */
.office-grid-single { grid-template-columns: minmax(0, 420px); }

.office {
  padding: 32px 30px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.office h3 {
  font-size: 21px;
  margin-bottom: 4px;
}

.office .entity {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.office address {
  font-style: normal;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
}

.office address a { color: var(--muted); text-decoration: none; }
.office address a:hover { color: var(--gold); }

.office-line {
  display: block;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* ---------------------------------------------------------------------
   CONTACT CHANNELS
   --------------------------------------------------------------------- */

/* Tracks are capped rather than 1fr, so a short list stays left-aligned
   at a sensible width instead of stretching across the container. */
.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 300px));
  gap: 20px;
  margin-top: 40px;
}

.channel {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.channel:hover { border-color: var(--gold-line); background: var(--bg-3); }

.channel-label {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.channel-value { font-size: 16px; color: var(--text); word-break: break-word; }

/* ---------------------------------------------------------------------
   CTA BAND
   --------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 6vw, 74px) clamp(28px, 5vw, 64px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -70%;
  left: 50%;
  width: 760px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.09) 0%, rgba(212, 175, 55, 0) 64%);
  pointer-events: none;
}

.cta-band > * { position: relative; }
.cta-band .lede { max-width: 58ch; margin: 0 auto 30px; }

/* ---------------------------------------------------------------------
   PROSE (about page body copy)
   --------------------------------------------------------------------- */

.prose { max-width: 70ch; }
.prose p { color: var(--muted); }
.prose h3 { font-size: 24px; margin: 42px 0 14px; }
.prose h3:first-child { margin-top: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.split-aside { position: sticky; top: calc(var(--header-h) + 36px); }

/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(48px, 6vw, 72px) 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand img { width: 54px; height: 54px; border-radius: 50%; margin-bottom: 18px; }
.footer-brand p { font-size: 15px; color: var(--muted); max-width: 40ch; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
}

.footer-meta { margin: 0; font-size: 13.5px; color: var(--dim); }

/* ---------------------------------------------------------------------
   REVEAL
   --------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .svc:hover { transform: none; }
  .ring-2 { animation: none; }
}

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .split-aside { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Stack the hero, emblem above the copy as a crest. */
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-emblem { order: -1; width: min(100%, 300px); margin-inline: 0; }
}

@media (max-width: 820px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .step { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand-name { font-size: 17px; }
  .brand img { width: 40px; height: 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-emblem { width: min(100%, 230px); }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .pillar, .office { padding: 28px 24px; }
}
