/* ═══════════════════════════════════════════════════
   PAMGIA — Shared Base Styles
   Design tokens, reset, typography, and common utilities
   shared across all subpages.
   ═══════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --brand-red: #e74132;
  --brand-red-glow: rgba(231, 65, 50, 0.25);
  --bg-cold: #0A0A0A;
  --bg-warm: #1A0F0A;
  --bg-warm-mid: #140C08;
  --text-primary: #F5F0EB;
  --text-muted: rgba(245, 240, 235, 0.45);
  --text-dim: rgba(245, 240, 235, 0.18);
  --font-display: 'Montserrat', -apple-system, sans-serif;
  --font-accent: 'DM Serif Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--bg-cold);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── SVG Noise Texture (overlay on warm sections) ── */
.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

/* ── Section Typography (shared across all pages) ── */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.heading-accent {
  color: var(--brand-red);
}

.section-body {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 36ch;
}

/* ── Warm Section Background ── */
.section-warm {
  background: var(--bg-warm);
  position: relative;
}
.section-warm::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

.section-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 5vw;
}

/* ── Subpage Hero (simpler than landing, no video) ── */
.subpage-hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-cold);
  padding: 8rem 5vw 6rem;
  overflow: hidden;
}
.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(231, 65, 50, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.subpage-hero .hero-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(15px);
}
.subpage-hero .hero-heading {
  font-family: var(--font-accent);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-primary);
  max-width: 20ch;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
}
.subpage-hero .hero-body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 1.5rem auto 0;
  opacity: 0;
  transform: translateY(20px);
}

/* ── Reveal Animation Base ── */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
}
[data-anim].revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .section-container {
    padding: 5rem 5vw;
  }
  .subpage-hero {
    min-height: 50vh;
    padding: 6rem 5vw 4rem;
  }
}
