/* ================================================
   SPARK AURA — Design System
   spark-aura.com
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ------------------------------------------------
   COLOR TOKENS
   ------------------------------------------------ */
:root {
  /* Backgrounds */
  --color-bg:           #080808;
  --color-bg-surface:   #0F0F0F;
  --color-bg-elevated:  #161616;
  --color-bg-cta:       #0C0C0C;

  /* Gold */
  --color-gold:         #C9A84C;
  --color-gold-light:   #E8D08A;
  --color-gold-muted:   rgba(201, 168, 76, 0.12);
  --color-gold-border:  rgba(201, 168, 76, 0.25);

  /* Text */
  --color-text-primary:   #F5F0E8;
  --color-text-secondary: #9E9282;
  --color-text-muted:     #5C554C;

  /* Borders */
  --color-border:        #1A1A1A;
  --color-border-subtle: #111111;
}

/* ------------------------------------------------
   TYPOGRAPHY TOKENS
   ------------------------------------------------ */
:root {
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Scale — fluid between mobile and desktop */
  --text-hero:    clamp(40px, 5.5vw, 68px);
  --text-h1:      clamp(30px, 4vw, 52px);
  --text-h2:      clamp(24px, 3vw, 38px);
  --text-h3:      clamp(16px, 1.8vw, 20px);
  --text-body-lg: clamp(16px, 1.5vw, 18px);
  --text-body:    16px;
  --text-small:   14px;
  --text-xs:      12px;

  /* Line heights */
  --lh-tight:   1.05;
  --lh-heading: 1.12;
  --lh-body:    1.75;
  --lh-relaxed: 1.9;

  /* Letter spacing */
  --ls-heading: -0.01em;
  --ls-label:    0.13em;
}

/* ------------------------------------------------
   SPACING TOKENS
   ------------------------------------------------ */
:root {
  --space-section: clamp(80px, 10vw, 128px);
  --space-block:   clamp(40px, 5vw, 64px);
  --space-gap:     clamp(16px, 2vw, 24px);

  --container-max: 1080px;
  --content-max:   680px;
  --gutter:        clamp(20px, 5vw, 48px);
}

/* ------------------------------------------------
   TRANSITIONS
   ------------------------------------------------ */
:root {
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --transition:  250ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);
}

/* ------------------------------------------------
   RESET
   ------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ------------------------------------------------
   TYPOGRAPHY CLASSES
   ------------------------------------------------ */

/* Display — hero headline only */
.t-display {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
  color: var(--color-text-primary);
}

/* Section headlines */
.t-h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--color-text-primary);
}

.t-h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text-primary);
}

/* Card/offer titles */
.t-h3 {
  font-family: var(--font-body);
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-gold);
}

/* Sub-headlines / lead text */
.t-lead {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  font-weight: 300;
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
}

/* Standard body */
.t-body {
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
  font-weight: 300;
}

/* Small / captions */
.t-small {
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Section label — "WHAT WE DO" etc */
.t-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
}

/* Gold emphasis */
.t-gold {
  color: var(--color-gold);
}

/* ------------------------------------------------
   LAYOUT
   ------------------------------------------------ */

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

.container--narrow {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
}

/* Primary — gold fill */
.btn-primary {
  background: var(--color-gold);
  color: #080808;
  padding: 15px 36px;
  border-radius: 2px;
}

.btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Ghost — gold outline */
.btn-ghost {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold-border);
  padding: 13px 32px;
  border-radius: 2px;
}

.btn-ghost:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-muted);
}

/* Text link — inline */
.btn-text {
  background: transparent;
  color: var(--color-gold);
  padding: 0;
  border-bottom: 1px solid var(--color-gold-border);
  font-size: var(--text-small);
  border-radius: 0;
}

.btn-text:hover {
  border-color: var(--color-gold);
}

/* ------------------------------------------------
   CARDS
   ------------------------------------------------ */

.card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 32px 28px;
  transition: border-color var(--transition);
}

.card:hover {
  border-color: var(--color-gold-border);
}

.card--gold {
  border-color: var(--color-gold-border);
}

/* ------------------------------------------------
   DECORATIVE ELEMENTS
   ------------------------------------------------ */

/* Gold horizontal rule */
.gold-rule {
  width: 36px;
  height: 1px;
  background: var(--color-gold);
  display: block;
}

.gold-rule--center {
  margin: 0 auto;
}

/* Section divider */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

/* Credibility dot */
.cred-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ------------------------------------------------
   GRID UTILITIES
   ------------------------------------------------ */

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-gap);
}

@media (max-width: 768px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------
   SPACING UTILITIES
   ------------------------------------------------ */

.mt-xs  { margin-top: 8px; }
.mt-sm  { margin-top: 16px; }
.mt-md  { margin-top: 28px; }
.mt-lg  { margin-top: 48px; }
.mt-xl  { margin-top: 72px; }

.mb-sm  { margin-bottom: 16px; }
.mb-md  { margin-bottom: 28px; }
.mb-lg  { margin-bottom: 48px; }

/* ------------------------------------------------
   FLEX UTILITIES
   ------------------------------------------------ */

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-sm       { gap: 12px; }
.gap-md       { gap: 20px; }
.gap-lg       { gap: 32px; }

/* ------------------------------------------------
   TEXT UTILITIES
   ------------------------------------------------ */

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

/* ------------------------------------------------
   SCROLLBAR
   ------------------------------------------------ */

::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-gold-border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold); }

/* ------------------------------------------------
   SELECTION
   ------------------------------------------------ */

::selection {
  background: var(--color-gold-muted);
  color: var(--color-gold-light);
}

/* ------------------------------------------------
   FOCUS (accessibility)
   ------------------------------------------------ */

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

/* ------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------ */

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