/* ==========================================================================
   EVENTIQO — BASE.CSS
   Design System: Tokens · Typography · Spacing · Reset · Z-Index
   ========================================================================== */

/* ─── Google Fonts ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ─── Color Tokens ─────────────────────────────────────────────────────── */
:root {
  --color-primary: #1C1410;
  --color-surface: #FAF8F5;
  --color-accent: #B8846A;
  --color-deep: #211A16;
  --color-text-muted: #7A6A62;
  --color-border: #EDE6DF;
  --color-white: #FFFFFF;

  /* ─── Typography ───────────────────────────────────────────────────── */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Font Sizes — 8px type scale */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-md: 1.25rem;
  /* 20px */
  --text-lg: 1.5rem;
  /* 24px */
  --text-xl: 2rem;
  /* 32px */
  --text-2xl: 2.5rem;
  /* 40px */
  --text-3xl: 3rem;
  /* 48px */
  --text-4xl: 4rem;
  /* 64px */
  --text-5xl: 5rem;
  /* 80px */
  --text-6xl: 6rem;
  /* 96px */

  /* ─── Spacing Scale (8px base) ─────────────────────────────────────── */
  --space-xs: 0.5rem;
  /* 8px  */
  --space-s: 1rem;
  /* 16px */
  --space-m: 1.5rem;
  /* 24px */
  --space-l: 2.5rem;
  /* 40px */
  --space-xl: 4rem;
  /* 64px */
  --space-2xl: 6rem;
  /* 96px */
  --space-3xl: 8rem;
  /* 128px */

  /* ─── Section Padding ──────────────────────────────────────────────── */
  --section-py: 5rem;
  /* 80px desktop */
  --section-py-mobile: 3rem;
  /* 48px mobile  */

  /* ─── Layout ───────────────────────────────────────────────────────── */
  --container-max: 1280px;
  --grid-gutter: 1.5rem;
  /* 24px */

  /* ─── Z-Index Layers ───────────────────────────────────────────────── */
  --z-content: 1;
  --z-sticky-cta: 80;
  --z-modals: 90;
  --z-nav: 100;
  --z-nav-overlay: 110;

  /* ─── Motion ───────────────────────────────────────────────────────── */
  --ease-reveal: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-reveal: 0.6s;
  --duration-hover: 0.25s;
}

/* ─── Box Sizing Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Base Styles ──────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-primary);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Typography Hierarchy ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 6vw, var(--text-6xl));
  font-weight: 300;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.25rem, 4vw, var(--text-3xl));
  font-weight: 400;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, var(--text-xl));
  font-weight: 400;
}

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-hover) ease;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── UI Label (Small Caps) ────────────────────────────────────────────── */
.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.label--accent {
  color: var(--color-accent);
}

/* ─── Pull Quote ───────────────────────────────────────────────────────── */
.pull-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
}

/* ─── Dividers ─────────────────────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-l) 0;
}

/* ─── Accent Line ──────────────────────────────────────────────────────── */
.accent-line {
  display: block;
  width: 60px;
  height: 1px;
  background-color: var(--color-accent);
  margin-bottom: var(--space-s);
}

/* ─── Container Override (Bootstrap) ──────────────────────────────────── */
.container,
.container-fluid {
  max-width: var(--container-max);
  padding-left: var(--space-m);
  padding-right: var(--space-m);
}

/* ─── Section Spacing ──────────────────────────────────────────────────── */
section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

@media (max-width: 768px) {
  section {
    padding-top: var(--section-py-mobile);
    padding-bottom: var(--section-py-mobile);
  }
}

/* ─── Text Utility ─────────────────────────────────────────────────────── */
.text-muted-custom {
  color: var(--color-text-muted);
}

.text-accent {
  color: var(--color-accent);
}

/* ─── Focus Styles (Accessibility) ────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ─── Reduced Motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Selection ────────────────────────────────────────────────────────── */
::selection {
  background-color: var(--color-accent);
  color: var(--color-primary);
}