/* ==========================================================================
   Regis Social Media - Shared Design System
   Used across all pages: Home, Work With Me, Case Studies, About
   ========================================================================== */

:root {
  /* Color tokens */
  --bg-primary: #1a0b2e;       /* deep dark purple, near-black */
  --bg-elevated: #241333;      /* slightly lighter for alternating sections */
  --bg-card: #2d1b4e;          /* card surface */
  --bg-deep: #120820;           /* dramatic contrast */
  --accent-gold: #d4af37;       /* champagne gold */
  --accent-gold-bright: #e8c659;/* hover state */
  --text-body: #f5f0e8;         /* warm off-white */
  --text-dim: #b8aec0;          /* secondary copy */
  --border-subtle: rgba(245, 240, 232, 0.08);
  --border-mid: rgba(245, 240, 232, 0.16);
  --gold-glow: rgba(212, 175, 55, 0.18);

  /* Type scale */
  --font-display: "Oswald", "Fjalla One", "Bebas Neue", sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing */
  --container-max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Atmospheric grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Section base */
section { position: relative; z-index: 2; }
.section { padding: var(--section-y) 0; position: relative; }
.section--elevated { background: var(--bg-elevated); }
.section--deep { background: var(--bg-deep); }

/* Section label - small uppercase mono */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: inline-block;
}
.eyebrow--dim { color: var(--text-dim); }

/* Display headline */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 0.98;
  color: var(--text-body);
  margin: 0;
  text-wrap: balance;
}
.display--xxl { font-size: clamp(48px, 8vw, 104px); }
.display--xl  { font-size: clamp(40px, 6vw, 76px); }
.display--lg  { font-size: clamp(32px, 4.4vw, 56px); }
.display--md  { font-size: clamp(26px, 3vw, 38px); }
.display em {
  font-style: italic;
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-weight: 400;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 62ch;
  text-wrap: pretty;
}

/* CTA button - bold pill, gold fill, white Poppins */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 34px;
  background: var(--accent-gold);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.005em;
  text-transform: none;
  border-radius: 999px;
  border: 1.5px solid var(--accent-gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 8px 22px -8px rgba(212, 175, 55, 0.55);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.btn:hover {
  background: var(--accent-gold-bright);
  border-color: var(--accent-gold-bright);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(212, 175, 55, 0.7);
}
.btn .arrow { font-size: 16px; font-weight: 700; }

.btn--ghost {
  background: transparent;
  color: var(--text-body);
  border: 1.5px solid var(--border-mid);
  box-shadow: none;
  text-shadow: none;
}
.btn--ghost:hover {
  background: rgba(245, 240, 232, 0.04);
  border-color: var(--accent-gold);
  color: #ffffff;
  box-shadow: none;
}

/* Smaller variant for nav */
.btn--sm {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
}

/* Inline gold link */
.glink {
  color: var(--accent-gold);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.glink:hover { color: var(--accent-gold-bright); border-color: currentColor; }

/* Thin gold divider */
.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-gold), rgba(212,175,55,0));
  border: none;
  margin: 0;
}
.rule {
  height: 1px;
  background: var(--border-subtle);
  border: none;
}

/* ==== NAV ==== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 11, 46, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-body);
  text-decoration: none;
}
.wordmark img {
  height: 44px;
  width: auto;
  display: block;
}
.nav .wordmark img { height: 48px; }
.footer .wordmark img { height: 50px; }
/* Legacy text wordmark (kept for safety) */
.wordmark .dot {
  width: 8px; height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-2px);
  box-shadow: 0 0 12px var(--accent-gold);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  position: relative;
}
.nav__link:hover { color: var(--text-body); }
.nav__link.is-active { color: var(--text-body); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 1px;
  background: var(--accent-gold);
}
.nav__cta {
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-transform: none;
  color: #ffffff;
}

@media (max-width: 720px) {
  .nav__links { gap: 18px; }
  .nav__link:not(.nav__cta) { display: none; }
  .nav__link.nav__link--always { display: inline; }
}

/* ==== FOOTER ==== */
.footer {
  background: var(--bg-deep);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 2;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer__brand .tagline {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 32ch;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--text-body); font-size: 14px; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--accent-gold); }
.footer__col .is-disabled,
.footer__col li > span.is-disabled {
  font-size: 14px;
  color: var(--text-dim);
  opacity: 0.45;
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__col .is-disabled::after {
  content: "Coming soon";
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.7;
  padding: 2px 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer__legal {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 7.25px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.72;
}
.footer__legal a { color: var(--text-dim); transition: color 0.2s ease; }
.footer__legal a:hover { color: var(--accent-gold); }
.footer__legal span[aria-hidden] { color: var(--border-mid); }
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer__legal { gap: 8px 14px; }
}

/* ==========================================================================
   Legal / long-form copy pages (Privacy Policy, etc.)
   ========================================================================== */
.legal-hero {
  padding: clamp(96px, 14vw, 160px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse at 20% -10%, rgba(212, 175, 55, 0.08) 0%, transparent 55%),
    var(--bg-primary);
}
.legal-hero .eyebrow { color: var(--accent-gold); margin-bottom: 16px; }
.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--text-body);
}
.legal-hero h1 em { font-style: italic; color: var(--accent-gold); font-family: var(--font-display); }
.legal-hero .legal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.legal-body {
  padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 10vw, 120px);
}
.legal-body .container {
  max-width: 820px;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.01em;
  color: var(--accent-gold);
  margin: 56px 0 14px;
  line-height: 1.2;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-body);
  margin: 28px 0 8px;
  letter-spacing: 0.01em;
}
.legal-body p,
.legal-body li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
  opacity: 0.92;
}
.legal-body p { margin: 0 0 16px; }
.legal-body ul, .legal-body ol {
  padding-left: 22px;
  margin: 0 0 20px;
}
.legal-body li { margin-bottom: 8px; }
.legal-body li::marker { color: var(--accent-gold); }
.legal-body a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(212, 175, 55, 0.4);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.legal-body a:hover {
  color: var(--accent-gold-bright);
  text-decoration-color: var(--accent-gold-bright);
}
/* Buttons inside legal pages keep their original treatment — no underline, white text */
.legal-body a.btn,
.legal-form a.btn {
  color: #fff;
  text-decoration: none;
}
.legal-body a.btn:hover,
.legal-form a.btn:hover {
  color: #fff;
  text-decoration: none;
}
.legal-body strong { color: var(--text-body); font-weight: 600; }
.legal-callout {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 2px solid var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
  border-radius: 0 4px 4px 0;
}
.legal-callout p:last-child { margin-bottom: 0; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 14px;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.legal-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}
.legal-table td:first-child {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  white-space: nowrap;
}

/* Small form (Do Not Sell opt-out) reuses these */
.legal-form {
  margin-top: 24px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}
.legal-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.legal-form input[type="email"],
.legal-form input[type="text"],
.legal-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 18px;
  transition: border-color 0.2s ease;
}
.legal-form input:focus,
.legal-form textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}
.legal-form textarea { min-height: 120px; resize: vertical; }
.legal-form .btn { width: auto; }
.form-disclosure {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
  margin-top: 12px;
  margin-bottom: 0;
}
.form-disclosure a { color: var(--accent-gold); text-decoration: underline; text-underline-offset: 2px; }

/* ==== HERO common ==== */
.hero {
  position: relative;
  padding: clamp(80px, 14vw, 180px) 0 clamp(80px, 12vw, 140px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -260px;
  right: -180px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, var(--gold-glow) 0%, rgba(212,175,55,0.04) 38%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; }

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 32px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--border-mid); }

/* Stats */
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.95;
  color: var(--text-body);
  letter-spacing: -0.01em;
}
.stat__num .unit { color: var(--accent-gold); }
.stat__label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  max-width: 24ch;
}

/* Numbered list (for problem section) */
.numbered__num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
}

/* Logo placeholder rendered as italic serif wordmark */
.logo-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--text-dim);
  opacity: 0.85;
  letter-spacing: -0.01em;
}

/* Image placeholder */
.placeholder {
  position: relative;
  background: repeating-linear-gradient(
    135deg,
    rgba(245, 240, 232, 0.025) 0px,
    rgba(245, 240, 232, 0.025) 14px,
    rgba(245, 240, 232, 0.05) 14px,
    rgba(245, 240, 232, 0.05) 15px
  );
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Section label row (eyebrow + line) */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head .line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
  max-width: 120px;
}

/* Utility */
.muted { color: var(--text-dim); }
.gold { color: var(--accent-gold); }
.serif-italic { font-family: var(--font-display); font-style: italic; }
.uppercase-mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--text-dim);
}

/* Accessible focus */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: 2px;
}
