/* WhiteCompass AI Agency
   Design system: dark-locked, flat, one accent, one radius.
   Dials: DESIGN_VARIANCE 6 / MOTION_INTENSITY 3 / VISUAL_DENSITY 3
   No gradients, no shadows, no stock photography. */

/* ---------- Fonts (self-hosted Geist variable, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0e1a;
  --bg-raise: #0d1220;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-muted: #9aa4b8;
  --text-dim: #6f7a90;
  --accent: #4f8ef7;
  --accent-hover: #6fa4f9;
  --accent-quiet: rgba(79, 142, 247, 0.1);

  --r: 6px; /* one radius, everywhere */
  --nav-h: 68px;
  --wrap: 1200px;
  --gutter: 24px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* height:auto is load-bearing. Every <img> carries width/height attributes so the browser can
   reserve space, and without this the attribute height wins and the image renders stretched. */
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: var(--accent-hover);
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection {
  background: var(--accent);
  color: #06090f;
}

/* ---------- Type scale ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 5.4vw, 3.9rem);
}
h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}
h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.25;
}
h4 {
  font-size: 1.0625rem;
  line-height: 1.35;
}
p {
  color: var(--text-muted);
  max-width: 62ch;
}
strong {
  color: var(--text);
  font-weight: 500;
}
.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.section-line {
  border-top: 1px solid var(--line);
}
.section-raise {
  background: var(--bg-raise);
}
.stack-sm > * + * {
  margin-top: 0.75rem;
}
.stack > * + * {
  margin-top: 1.25rem;
}
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head p {
  margin-top: 1.125rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.1s var(--ease);
}
.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: #06090f;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #06090f;
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  flex: none; /* without this a long label shrinks the icon to nothing */
  transition: transform 0.2s var(--ease);
}
.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ---------- Nav ---------- */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 60;
  background: var(--bg-raise);
  border: 1px solid var(--accent);
  border-radius: var(--r);
  padding: 0.6rem 1rem;
  color: var(--text);
}
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--text);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Logo lockup. The supplied artwork carries its own metallic gradient. Never recolour it,
   never apply filters to it, and never set currentColor on it. */
/* Compass mark plus live text. The two text lines are set on tight leading so the whole
   lockup stays inside the mark's height and the nav bar does not grow. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex: none;
  color: var(--text);
}
.logo:hover {
  color: var(--text);
}
.logo-icon {
  height: 34px;
  width: auto;
  flex: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.logo-name {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.logo-sub {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--accent);
}
.footer .logo-icon {
  height: 30px;
}
.footer .logo-name {
  font-size: 1rem;
}
@media (max-width: 720px) {
  .logo-icon {
    height: 30px;
  }
  .logo-name {
    font-size: 1rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero h1 {
  margin-top: 1.25rem;
}
.hero .lead {
  margin-top: 1.5rem;
  max-width: 34rem;
}
.hero .btn-row {
  margin-top: 2.25rem;
}
.hero-mark {
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
  margin-left: auto;
}
.page-head {
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.page-head h1 {
  margin-top: 1rem;
  max-width: 20ch;
}
.page-head .lead {
  margin-top: 1.5rem;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.stat-figure {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.stat-label {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 26ch;
}

/* ---------- Service cards (2-up, asymmetric content) ---------- */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg-raise);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
}
.card-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.card h3 {
  margin-bottom: 0.875rem;
}
.card p {
  font-size: 0.9375rem;
}
.card .link-arrow {
  margin-top: 2rem;
}
.card-list {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.625rem;
}
.card-list li {
  display: flex;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.card-list svg {
  width: 16px;
  height: 16px;
  margin-top: 0.3rem;
  flex: none;
  color: var(--accent);
}

/* ---------- Process (4 steps, hairline above each) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.step {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.25rem;
}
.step-no {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.step h3 {
  margin: 0.875rem 0 0.625rem;
}
.step p {
  font-size: 0.9375rem;
  max-width: none;
}

/* ---------- Flow (numbered stages, 2 cols) ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.flow-item {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  gap: 1.25rem;
}
.flow-item.span-2 {
  grid-column: 1 / -1;
}
.flow-item svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
  margin-top: 0.25rem;
}
.flow-item h4 {
  margin-bottom: 0.5rem;
}
.flow-item p {
  font-size: 0.9375rem;
  max-width: none;
}

/* ---------- Split (text + supporting panel) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-raise);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.panel h3 {
  margin-bottom: 1.25rem;
}

/* ---------- Two-column prose (fit-for lists etc.) ---------- */
.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.tick-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.tick-list li {
  display: flex;
  gap: 0.75rem;
  color: var(--text-muted);
}
.tick-list svg {
  width: 17px;
  height: 17px;
  margin-top: 0.32rem;
  flex: none;
  color: var(--accent);
}

/* ---------- Quote ---------- */
.quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  max-width: 44rem;
}
.quote p {
  font-size: clamp(1.1875rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.015em;
  max-width: none;
}
.quote cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--text-dim);
}

/* ---------- CTA banner ---------- */
.cta {
  border-top: 1px solid var(--line);
  background: var(--bg-raise);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-inner p {
  margin-top: 1rem;
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
}
.field {
  display: grid;
  gap: 0.5rem;
}
.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.field input,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 0.75rem 0.875rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.field textarea {
  resize: vertical;
  min-height: 8rem;
}
.field-help {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.field-error {
  font-size: 0.8125rem;
  color: #ff8f8f;
}
.field-error:empty {
  display: none;
}
.form-status {
  font-size: 0.9375rem;
  color: var(--accent);
}
.form-status:empty {
  display: none;
}

/* ---------- Booking embed ---------- */
.booking {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-raise);
  min-height: 700px;
  overflow: hidden;
}
.booking iframe {
  width: 100%;
  height: 700px;
  border: 0;
  display: block;
}
.booking-fallback {
  padding: clamp(1.5rem, 4vw, 3rem);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 5vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.footer h4 {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.footer ul {
  list-style: none;
  display: grid;
  gap: 0.625rem;
}
.footer a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.footer a:hover {
  color: var(--text);
}
.footer-tagline {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  max-width: 24ch;
}
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.footer-legal {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.75rem;
}
.footer-legal a {
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.footer-legal a:hover {
  color: var(--text);
}
/* Footer contact links are plain text, flush left with the column heading, matching the
   Services and Agency columns. The long email address needs the full column width. */

/* ---------- Legal pages ---------- */
.legal-date {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.legal {
  max-width: 44rem;
}
.legal h2 {
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.legal > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legal p {
  margin-top: 1rem;
  max-width: none;
}
.legal ul {
  margin-top: 1.125rem;
  list-style: none;
  display: grid;
  gap: 0.625rem;
}
.legal li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-muted);
}
.legal li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Cookie consent bar ---------- */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: var(--bg-raise);
  border-top: 1px solid var(--line-strong);
}
.consent[hidden] {
  display: none;
}
.consent-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.125rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.consent p {
  font-size: 0.875rem;
  max-width: 62ch;
  margin: 0;
}
.consent-actions {
  display: flex;
  gap: 0.75rem;
  flex: none;
}
.consent-actions .btn {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}
@media (max-width: 720px) {
  .consent-actions {
    width: 100%;
  }
  .consent-actions .btn {
    flex: 1;
  }
}

/* ---------- Motion (MOTION_INTENSITY 3) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-mark {
    display: none;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-raise);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links li {
    border-top: 1px solid var(--line);
  }
  .nav-links a {
    display: block;
    padding: 0.875rem 0;
    font-size: 1rem;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-right .btn {
    display: none;
  }
}
@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }
  .stats,
  .cards-2,
  .flow,
  .cols-2,
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    display: block;
  }
  .cta-inner .btn-row {
    margin-top: 2rem;
  }
  .btn {
    justify-content: center;
  }
  .hero .btn-row .btn,
  .cta-inner .btn-row .btn {
    flex: 1 1 15rem;
  }
}

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