/* ============================================================
   FASHION HAIR BRAIDING — theme.css
   Design tokens + global base styles
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&family=Space+Grotesk:wght@300..700&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Colour Palette */
  --clr-bg:          #181d25;   /* deep warm black */
  --clr-surface:      #161210;   /* card / nav bg */
  --clr-surface-2:    #1F1A17;   /* elevated surface */
  --clr-gold:         #C8A96E;   /* primary accent — aged gold thread */
  --clr-gold-light:   #E2C98E;   /* hover / highlight */
  --clr-gold-dim:     #7A6542;   /* muted gold for borders */
  --clr-text:         #F2EDE8;   /* primary text — warm white */
  --clr-text-muted:   #9A8F86;   /* secondary text */
  --clr-text-faint:   #5A524C;   /* disabled / decorative */
  --clr-border:       #2A2320;   /* subtle borders */
  --clr-border-gold:  rgba(200, 169, 110, 0.25);

  /* Typography */
  --font-display: "Philosopher", sans-serif;
  --font-body:    "Space Grotesk", sans-serif;

  /* Type Scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  2rem;       /* 32px */
  --text-4xl:  2.75rem;    /* 44px */
  --text-5xl:  3.75rem;    /* 60px */
  --text-6xl:  5rem;       /* 80px */

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max:    1600px;
  --container-wide:   1800px;
  --container-narrow: 960px;
  --gutter:           clamp(1rem, 4vw, 2rem);

  /* Radii */
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   8px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-gold:  0 0 0 1px var(--clr-border-gold);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.5);

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --duration-fast:   150ms;
  --duration-base:   300ms;
  --duration-slow:   500ms;

  /* Header */
  --header-height: 72px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--clr-text);
}

h1 { font-size: clamp(var(--text-4xl), 7vw, var(--text-6xl)); font-weight: 300; }
h2 { font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl)); font-weight: 300; }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); font-family: var(--font-body); font-weight: 500; }
h6 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 500; }

p {
  color: var(--clr-text-muted);
  max-width: 65ch;
}

strong { font-weight: 500; color: var(--clr-text); }
em     { font-style: italic; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ── Section Spacing ──────────────────────────────────────── */
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section--sm {
  padding-block: clamp(var(--space-8), 4vw, var(--space-16));
}

/* ── Eyebrow Labels ───────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--clr-gold);
  flex-shrink: 0;
}

/* ── Gold Accent Line (signature element) ─────────────────── */
/* Animated underline used on display headlines */
.underline-gold {
  position: relative;
  display: inline;
}

.underline-gold::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-gold-light));
  transition: width 0.8s var(--ease-out);
}

.underline-gold.in-view::after,
.is-visible .underline-gold::after {
  width: 100%;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--clr-gold);
  color: var(--clr-bg);
}

.btn--primary:hover {
  background: var(--clr-gold-light);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--clr-gold);
  border: 1px solid var(--clr-gold-dim);
}

.btn--outline:hover {
  border-color: var(--clr-gold);
  background: rgba(200, 169, 110, 0.08);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-text);
  padding-inline: 0;
  gap: var(--space-3);
}

.btn--ghost:hover { color: var(--clr-gold); }

.btn--ghost .btn-arrow {
  transition: transform var(--duration-base) var(--ease);
}

.btn--ghost:hover .btn-arrow {
  transform: translateX(4px);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin-block: var(--space-8);
}

.divider--gold {
  border-top-color: var(--clr-border-gold);
}

/* ── Gold Tag / Badge ─────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--clr-border-gold);
  color: var(--clr-gold);
  border-radius: var(--radius-sm);
}

/* ── Focus Styles ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }

/* ── Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Selection ────────────────────────────────────────────── */
::selection {
  background: rgba(200, 169, 110, 0.25);
  color: var(--clr-text);
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-gold-dim); border-radius: 3px; }
