/*
  style.css
  ---------
  Single shared stylesheet for the Grey Ursus Consulting marketing site
  (Home, Services+Pricing, About, Contact). Loaded identically by every
  HTML page in this project. Contains: design-token custom properties
  (verbatim, per spec), a small reset, shared layout primitives (nav,
  footer, buttons, cards, forms), the hero/embers backdrop styling, and
  responsive breakpoints for tablet and phone widths. No client-side
  framework, no external font or asset requests — fonts are self-hosted
  via @font-face below.
*/

/* ------------------------------------------------------------------ */
/* Self-hosted fonts                                                   */
/* Place the actual .woff2 files in ../assets/fonts/ — see the README   */
/* in that folder for exact filenames and legitimate download sources. */
/* ------------------------------------------------------------------ */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ */
/* Design tokens — used exactly as approved, do not alter values here  */
/* ------------------------------------------------------------------ */
:root {
  --accent: #be1eff;
  --bg: #231c26;
  --panel: #151316;
  --sidebar: #151316;
  --border: #4f3659;
  --text: #dcd1e0;
  --text-muted: #a696ad;
  --surface-hover: #1c1720;
  --accent-dim: #8a1bb8;
  --error: #ff4d6a;
  --success: #3ddc84;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 3px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 4rem;
  --border-width: 1px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--text);
}

ul {
  margin: 0;
  padding: 0;
}

/* Headings, nav, pricing figures, and buttons use the mono font per the
   brand's typography rule. Body copy stays on --font-body for legibility. */
h1,
h2,
h3,
h4,
h5,
h6,
.nav__logo,
.nav__links a,
.btn,
.price-figure {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.25;
  margin: 0 0 var(--space-2);
}

h2 {
  font-size: 1.5rem;
  margin: 0 0 var(--space-1);
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 var(--space-1);
  color: var(--text-muted);
}

p {
  margin: 0 0 var(--space-2);
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Visually hides an element (e.g. a section landmark heading) from sighted
   users while keeping it in the accessibility tree for screen readers. */
.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Header / nav (shared across all four pages)                         */
/* ------------------------------------------------------------------ */
.site-header {
  background: var(--sidebar);
  border-bottom: var(--border-width) solid var(--border);
}

.nav {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text);
  font-size: 1rem;
  margin-right: auto;
}

.nav__logo img {
  display: block;
}

.nav__logo:hover,
.nav__logo:focus-visible {
  color: var(--accent);
}

.nav__links {
  list-style: none;
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.nav__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links a[aria-current="page"] {
  color: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  border: var(--border-width) solid var(--accent);
  color: var(--text);
  background: transparent;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  color: var(--bg);
}

.btn--cta {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: var(--text);
  white-space: nowrap;
}

.btn--cta:hover,
.btn--cta:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: var(--text);
}

/* ------------------------------------------------------------------ */
/* Hero + embers backdrop (homepage only)                              */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-4) var(--space-3);
  border-bottom: var(--border-width) solid var(--border);
  background: var(--bg);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}

.hero__content h1 {
  color: var(--text);
}

.hero__content .subhead {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 40rem;
  margin: 0 auto;
}

/* Respect users who don't want motion — embers canvas simply stops drawing
   new frames via JS check, but hide it outright here as a CSS-level backstop */
@media (prefers-reduced-motion: reduce) {
  .hero__canvas {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Three-path card row (homepage)                                      */
/* ------------------------------------------------------------------ */
.paths {
  padding: var(--space-4) var(--space-3);
}

.paths__grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.card {
  background: var(--panel);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--accent-dim);
}

.card h2 {
  color: var(--text);
  font-size: 1.125rem;
}

.card__subhead {
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 0 0 var(--space-1);
}

.card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  flex-grow: 1;
}

.card .btn {
  align-self: flex-start;
  margin-top: var(--space-1);
}

/* ------------------------------------------------------------------ */
/* Services + Pricing page                                             */
/* ------------------------------------------------------------------ */
.tiers {
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 60rem;
  margin: 0 auto;
}

.tier {
  background: var(--panel);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.tier__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1);
  border-bottom: var(--border-width) dashed var(--border);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
}

.tier__header h2 {
  color: var(--text);
  margin: 0;
}

.price-figure {
  color: var(--accent);
  font-size: 1.125rem;
  white-space: nowrap;
}

h3.tier__subhead {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 400;
  font-family: var(--font-body);
  margin: 0 0 var(--space-2);
}

.tier__intro {
  color: var(--text);
}

.tier__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tier__list li {
  color: var(--text-muted);
  padding-left: var(--space-2);
  border-left: 2px solid var(--border);
}

.tier__list li strong {
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
}

.note {
  background: var(--panel);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  color: var(--text-muted);
}

.note strong {
  color: var(--text);
}

/* ------------------------------------------------------------------ */
/* About page                                                          */
/* ------------------------------------------------------------------ */
.about {
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
}

.about p {
  color: var(--text);
  margin-bottom: var(--space-3);
}

/* ------------------------------------------------------------------ */
/* Contact page                                                        */
/* ------------------------------------------------------------------ */
.contact {
  max-width: 36rem;
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
}

.contact__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: var(--border-width) solid var(--border);
}

.contact__option h3 {
  color: var(--text);
}

.contact__hours {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.contact__direct {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: var(--border-width) solid var(--border);
  color: var(--text-muted);
}

.contact__direct a {
  font-family: var(--font-mono);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.form-field label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  background: var(--panel);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

/* ------------------------------------------------------------------ */
/* Footer (shared)                                                     */
/* ------------------------------------------------------------------ */
.site-footer {
  border-top: var(--border-width) solid var(--border);
  background: var(--sidebar);
  padding: var(--space-4) var(--space-3) var(--space-3);
}

.footer__grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.footer__col h2 {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
}

.footer__col p,
.footer__col a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer__col a {
  font-family: var(--font-mono);
}

.footer__bottom {
  max-width: 72rem;
  margin: var(--space-3) auto 0;
  padding-top: var(--space-2);
  border-top: var(--border-width) solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ------------------------------------------------------------------ */
/* Page header (non-homepage pages)                                    */
/* ------------------------------------------------------------------ */
.page-header {
  padding: var(--space-4) var(--space-3) var(--space-2);
  max-width: 72rem;
  margin: 0 auto;
}

.page-header .subhead {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

/* ------------------------------------------------------------------ */
/* Responsive breakpoints                                              */
/* ------------------------------------------------------------------ */
@media (max-width: 768px) {
  .paths__grid {
    grid-template-columns: 1fr;
  }

  .contact__options {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  h1 {
    font-size: 1.875rem;
  }

  .tier__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .nav__logo {
    margin-right: 0;
  }

  .nav__links {
    flex-direction: column;
    gap: var(--space-1);
    width: 100%;
  }

  .btn--cta {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: var(--space-3) var(--space-2);
  }

  h1 {
    font-size: 1.5rem;
  }

  .hero__content .subhead {
    font-size: 1rem;
  }

  .container,
  .paths,
  .tiers,
  .about,
  .contact,
  .site-footer,
  .page-header {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }

  .tier {
    padding: var(--space-2);
  }
}
