/* ==========================================================================
   TIMELESS ROOTS — UTILITIES
   Design tokens, CSS reset, and reusable low-level building blocks.
   Loaded first so every other stylesheet can rely on these custom
   properties and helper classes.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand colors (exact values as specified) */
  --color-orange: #FF671F;
  --color-orange-light: #FF8A4D;
  --color-gold: #F4C430;
  --color-maroon: #800000;
  --color-white: #FFFFFF;

  /* Background system (deep black + warm lift for surfaces) */
  --color-black: #0A0906;
  --color-black-deep: #000000;
  --color-surface: #120F0C;
  --color-surface-alt: #17130F;

  /* Borders / lines */
  --color-border-gold: rgba(244, 196, 48, 0.25);
  --color-border-gold-strong: rgba(244, 196, 48, 0.55);
  --color-border-orange: rgba(255, 103, 31, 0.35);

  /* Text */
  --color-text-body: #C9C3B8;
  --color-text-muted: #9A9388;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Spacing scale */
  --space-2xs: 0.4rem;
  --space-xs: 0.75rem;
  --space-sm: 1.25rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4.5rem;
  --space-2xl: 6.5rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --radius-pill: 50px;

  /* Layout */
  --container-width: 1240px;
  --container-padding: 40px;

  /* Motion */
  --transition-fast: 0.2s ease;
  --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);

  /* Glows */
  --glow-orange: 0 0 26px rgba(255, 103, 31, 0.4);
  --glow-gold: 0 0 22px rgba(244, 196, 48, 0.35);

  /* Z-index scale */
  --z-header: 1000;
  --z-dropdown: 1010;
  --z-overlay: 1020;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-black);
  color: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  color: inherit;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

p { line-height: 1.7; }

hr {
  border: none;
  border-top: 1px solid var(--color-border-gold);
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--color-orange);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 2000;
  font-size: 0.875rem;
  font-weight: 600;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 16px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.text-center { text-align: center; }
.text-accent { color: var(--color-orange); }

section { position: relative; }

/* Anchor targets (nav dropdown, footer "Journeys" links, in-page jumps)
   should not land underneath the sticky header. */
[id] { scroll-margin-top: 112px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 17px 38px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
              background-color var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 10px 26px rgba(255, 103, 31, 0.28);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-orange-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(255, 103, 31, 0.42);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-sm { padding: 13px 26px; font-size: 0.75rem; }

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 15px 36px;
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--color-gold);
  color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

.btn-block { width: 100%; }

/* ---------- Section heading system ---------- */
.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ornament-line {
  width: 56px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
}
.ornament-lotus { opacity: 0.9; }

.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-orange);
  margin-bottom: 20px;
}
.eyebrow-line {
  width: 32px;
  height: 1px;
  background-color: var(--color-orange);
  opacity: 0.55;
}
.section-eyebrow-left {
  justify-content: flex-start;
}

.section-title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.6rem);
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 22px;
}
.section-title-sm {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 1.9rem);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--color-text-body);
  max-width: 640px;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.85;
}
.section-desc-left { margin-inline: 0; }

/* ---------- Dividers ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
}
.divider-line {
  flex: 0 0 84px;
  height: 1px;
  background: linear-gradient(to right, var(--color-gold), transparent);
}
.divider-line:last-child {
  background: linear-gradient(to left, var(--color-gold), transparent);
}
