/* ===== BASE ===== */
body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-body);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* ===== HEADINGS ===== */
h1, .h1 {
  font-family: var(--font-heading);
  font-size: var(--size-h1);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h2, .h2 {
  font-family: var(--font-heading);
  font-size: var(--size-h2);
  font-weight: var(--weight-regular);
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h3, .h3 {
  font-family: var(--font-body);
  font-size: var(--size-h3);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  color: var(--color-text);
}

/* ===== TEXT ACCENTS ===== */
.gold { color: var(--color-gold); }
.gold-italic { color: var(--color-gold); font-style: italic; }
.accent { color: #D4C4A0; font-weight: var(--weight-semibold); }
.accent-italic { color: #D4C4A0; font-style: italic; }

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.section--elevated {
  background: var(--color-bg-card);
}

.section__header {
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.section__header h2 {
  margin-bottom: 20px;
}

.section__header p {
  color: var(--color-text-secondary);
  font-size: var(--size-body);
  max-width: var(--max-width-text);
  margin: 0 auto;
  line-height: var(--leading-loose);
}

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

[data-animate="fade-left"] { transform: translateX(-36px); }
[data-animate="fade-right"] { transform: translateX(36px); }
[data-animate="scale"] { transform: scale(0.95); }
[data-animate="none"] { transform: none; }

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* ===== SELECTION ===== */
::selection {
  background: var(--color-gold);
  color: var(--color-bg);
}

/* ===== SHIMMER ON GOLD HEADINGS ===== */
.shimmer {
  position: relative;
  display: inline;
  background: linear-gradient(
    120deg,
    var(--color-gold) 0%,
    var(--color-gold) 40%,
    #EAD9A6 50%,
    var(--color-gold) 60%,
    var(--color-gold) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 200% center; }
  50% { background-position: -200% center; }
}

/* ===== FLOATING DECORATIONS ===== */
@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(8px, -12px) rotate(1deg); }
  50% { transform: translate(-4px, -20px) rotate(-1deg); }
  75% { transform: translate(-10px, -8px) rotate(0.5deg); }
}

@keyframes floatReverse {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-10px, 8px) rotate(-1deg); }
  50% { transform: translate(6px, 16px) rotate(1deg); }
  75% { transform: translate(12px, 4px) rotate(-0.5deg); }
}

.decor-circle { animation: floatSlow 12s ease-in-out infinite; }
.hero__decor-circle { animation: floatSlow 14s ease-in-out infinite; }
.hero__decor-circle--sm { animation: floatReverse 10s ease-in-out infinite; }
.hero__decor-circle--lg { animation: floatSlow 18s ease-in-out infinite; }
.decor-dots { animation: floatReverse 16s ease-in-out infinite; }

/* ===== PULSING TIMELINE DOTS ===== */
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 162, 101, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(196, 162, 101, 0); }
}

.format__step-dot { animation: pulseDot 3s ease-in-out infinite; }
.format__step:nth-child(2) .format__step-dot { animation-delay: 0.5s; }
.format__step:nth-child(3) .format__step-dot { animation-delay: 1s; }
.format__step:nth-child(4) .format__step-dot { animation-delay: 1.5s; }

/* ===== CARD GLOW ON HOVER ===== */
@keyframes glowPulse {
  0%, 100% { box-shadow: var(--shadow-sm), 0 0 0 rgba(196,162,101,0); }
  50% { box-shadow: var(--shadow-md), 0 0 30px rgba(196,162,101,0.08); }
}

.card:hover {
  animation: glowPulse 2s ease-in-out infinite;
}

/* ===== ANIMATED GOLD LINE ===== */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  max-width: 200px;
  margin: 0 auto;
  transform: scaleX(0);
  transition: transform 1s var(--ease-out);
}

.gold-line.is-visible {
  transform: scaleX(1);
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--gradient-cta);
  z-index: 999;
  width: 0%;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold); }

/* ===== BG TYPOGRAPHY (large faded text behind sections) ===== */
.bg-text {
  position: absolute;
  font-family: var(--font-heading);
  font-size: clamp(80px, 12vw, 180px);
  font-weight: var(--weight-regular);
  color: rgba(196, 162, 101, 0.03);
  white-space: nowrap;
  pointer-events: none;
  z-index: var(--z-bg);
  user-select: none;
  line-height: 1;
}

/* ===== PHOTO PLACEHOLDER ===== */
.photo-placeholder {
  background: var(--color-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--size-small);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
}

/* ===== SECTION WITH BG IMAGE OVERLAY ===== */
.section--bg-image {
  position: relative;
}

.section--bg-image .section__bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.section--bg-image .section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(20,18,16,0.7) 30%, rgba(20,18,16,0.7) 70%, var(--color-bg) 100%);
}

.section--bg-image .container {
  position: relative;
  z-index: var(--z-content);
}
