/* ═══════════════════════════════════════════════════════
   RANGOON FILMS — BASE CSS
   Variables · Reset · Typography · Shared Layout
═══════════════════════════════════════════════════════ */

/* ── Brand Tokens ── */
:root {
  --crimson:       #590201;
  --crimson-d:     #3d0101;
  --crimson-light: #7a0302;
  --charcoal:      #393838;
  --sand:          #DBCAB0;
  --gold:          #C9A86C;
  --gold-light:    #e8cfa0;
  --white:         #FFFFFF;
  --off-white:     #FAF8F5;
  --parchment:     #F2EDE6;
  --dark:          #180d0d;
  --dark-mid:      #231414;
  --dark-soft:     #2e1a1a;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Jost', system-ui, sans-serif;

  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
  --max-w: 1200px;
  --section-px: 72px;
  --section-py: 110px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  background: var(--off-white);
  color: var(--charcoal);
  font-family: var(--ff-body);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--crimson); border-radius: 3px; }

/* ── Section Wrappers ── */
.section { padding: var(--section-py) var(--section-px); }
.section-dark    { background: var(--dark);       color: var(--white); }
.section-cream   { background: var(--off-white);  color: var(--charcoal); }
.section-sand    { background: var(--parchment);  color: var(--charcoal); }
.section-crimson { background: var(--crimson);    color: var(--white); }

.inner { max-width: var(--max-w); margin: 0 auto; }

/* ── Page Hero Banner (inner pages) ── */
.page-hero {
  height: 52vh;
  min-height: 380px;
  position: relative;
  display: flex; align-items: flex-end;
  padding: 0 var(--section-px) 64px;
  overflow: hidden;
  background-color: var(--dark);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.45;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.page-hero-bg.loaded { transform: scale(1); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24,13,13,.9) 0%, rgba(24,13,13,.35) 70%, transparent 100%);
}
.page-hero-content { position: relative; z-index: 2; color: var(--white); }
.page-hero-label {
  font-family: var(--ff-body);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
  opacity: 0; animation: fadeUp .7s .3s forwards;
}
.page-hero-title {
  font-family: var(--ff-display);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 300; line-height: 1.0;
  letter-spacing: 5px; text-transform: uppercase;
  opacity: 0; animation: fadeUp .8s .5s forwards;
}
.page-hero-title em { font-style: italic; color: var(--sand); }

/* ── Section Labels & Titles ── */
.section-label {
  font-family: var(--ff-body);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 300; line-height: 1.05;
}
.section-title em { font-style: italic; color: var(--crimson); }
.section-dark .section-title em { color: var(--gold); }
.section-desc {
  font-size: 14px; line-height: 1.95;
  opacity: .72; max-width: 500px; margin-top: 18px;
}
.section-dark .section-desc { color: var(--sand); opacity: .85; }

.divider {
  width: 52px; height: 2px;
  background: linear-gradient(to right, var(--gold), var(--crimson));
  margin: 22px 0;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  transition: background .35s, color .35s, transform .35s, border-color .35s;
}
.btn-primary {
  padding: 15px 44px;
  background: var(--crimson); color: var(--white);
}
.btn-primary:hover { background: var(--crimson-d); transform: translateY(-2px); }

.btn-outline-dark {
  padding: 14px 42px;
  border: 1px solid var(--charcoal); color: var(--charcoal);
}
.btn-outline-dark:hover { background: var(--charcoal); color: var(--white); }

.btn-outline-light {
  padding: 14px 42px;
  border: 1px solid rgba(255,255,255,.55); color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-gold {
  padding: 14px 42px;
  border: 1px solid var(--gold); color: var(--gold);
}
.btn-gold:hover { background: var(--gold); color: var(--dark); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .12s; }
.d2 { transition-delay: .22s; }
.d3 { transition-delay: .34s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  :root { --section-px: 44px; --section-py: 88px; }
  .page-hero { padding: 0 44px 52px; }
}
@media (max-width: 768px) {
  :root { --section-px: 24px; --section-py: 72px; --nav-h: 62px; }
  .page-hero { padding: 0 24px 44px; min-height: 300px; }
  .page-hero-title { font-size: clamp(36px, 10vw, 52px); letter-spacing: 3px; }
}
@media (max-width: 480px) {
  :root { --section-px: 20px; --section-py: 60px; }
}
