/* ============================================
   BASE STYLES & RESET - V3
   ============================================ */

/* ---- FONT-FACES ---- */
/* SF Pro Display - Principal */
@font-face {
  font-family: 'SF Pro Display';
  src: url('../assets/SFPRODISPLAYREGULAR.OTF') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('../assets/SFPRODISPLAYMEDIUM.OTF') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('../assets/SFPRODISPLAYBOLD.OTF') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Druk Wide - Display headings */
@font-face {
  font-family: 'Druk Wide';
  src: url('../Druk/DrukWide-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0100-017F, U+0180-024F, U+0250-02AF, U+1E00-1EFF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Druk Wide';
  src: url('../Druk/DrukWide-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0100-017F, U+0180-024F, U+0250-02AF, U+1E00-1EFF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Druk Wide';
  src: url('../Druk/DrukWide-Heavy.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0100-017F, U+0180-024F, U+0250-02AF, U+1E00-1EFF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Druk Wide';
  src: url('../Druk/DrukWide-Super.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0100-017F, U+0180-024F, U+0250-02AF, U+1E00-1EFF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Druk Heavy Italic - Scripture emphasize */
@font-face {
  font-family: 'Druk Heavy Italic';
  src: url('../Druk/Druk-HeavyItalic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0100-017F, U+0180-024F, U+0250-02AF, U+1E00-1EFF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Druk Condensed Cyr - Temas section */
@font-face {
  font-family: 'Druk Condensed Cyr';
  src: url('../Druk/Druk Condensed Cyr Super.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0100-017F, U+0180-024F, U+0250-02AF, U+1E00-1EFF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Druk XCondensed Cyr - Tema cards + Scripture */
@font-face {
  font-family: 'Druk XCondensed Cyr';
  src: url('../Druk/Druk XCondensed Cyr Super.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0100-017F, U+0180-024F, U+0250-02AF, U+1E00-1EFF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

/* Document */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -o-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Body */
body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
  overflow-x: clip;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

h1 { font-size: var(--font-size-hero); }
h2 { font-size: var(--font-size-5xl); }
h3 { font-size: var(--font-size-4xl); }
h4 { font-size: var(--font-size-3xl); }
h5 { font-size: var(--font-size-2xl); }
h6 { font-size: var(--font-size-xl); }

/* Paragraphs */
p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--color-accent-soft);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-white);
}

/* Images */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form Elements */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Lists */
ul, ol {
  list-style: none;
}

/* Selection */
::selection {
  background-color: var(--color-accent-soft);
  color: var(--color-white);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-accent-soft);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

/* Section base */
section {
  padding-block: var(--section-padding);
  position: relative;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-white) 0%,
    var(--color-teal-300) 50%,
    var(--color-white) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Text mask image effect (Passion-style) */
.text-mask {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: cover;
  background-position: center;
}

/* Visually hidden but animated on scroll */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-scroll-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Slide-only variant: no fade, pure bottom-to-top slide */
[data-scroll-slide] {
  overflow: hidden;
}

[data-scroll-slide] .slide-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

[data-scroll-slide].is-revealed .slide-inner {
  transform: translateY(0);
}

[data-scroll-slide].is-revealed .stagger-1 .slide-inner { transition-delay: 0.05s; }
[data-scroll-slide].is-revealed .stagger-2 .slide-inner { transition-delay: 0.15s; }
[data-scroll-slide].is-revealed .stagger-3 .slide-inner { transition-delay: 0.25s; }

/* Stagger delays for children */
[data-scroll-reveal] .stagger-1 { transition-delay: 0.05s; }
[data-scroll-reveal] .stagger-2 { transition-delay: 0.1s; }
[data-scroll-reveal] .stagger-3 { transition-delay: 0.15s; }
[data-scroll-reveal] .stagger-4 { transition-delay: 0.2s; }
[data-scroll-reveal] .stagger-5 { transition-delay: 0.25s; }
[data-scroll-reveal] .stagger-6 { transition-delay: 0.3s; }

/* Word split animation helpers */
.word-split {
  overflow: visible !important;
  overflow-y: clip !important;
}

.word-split .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
}

.word-split .word .word-inner {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.word-split.is-revealed .word .word-inner {
  transform: translateY(0);
}

/* Line mask reveal (Passion-style) */
.line-mask {
  overflow: hidden;
}

.line-mask .line-mask-inner {
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.line-mask.is-revealed .line-mask-inner {
  transform: translateY(0);
}
