/* ==========================================================
   SAVING ELVIS — OFFICIAL VISUAL LANGUAGE CSS
   Version: 1.0
   Purpose: Foundation styles + visual identity
   ========================================================== */

/* ===============================
   1. CSS VARIABLES (LOCKED)
================================= */

:root {
  /* --- Core Colours --- */
  --bg-dark: #111418;
  --bg-light: #F3EFE8;

  --text-dark: #2B2B29;
  --text-light: #E8E3DA;

  /* --- Accent Colours --- */
  --accent-primary: #C96A4A; /* Neon Ember */
  --accent-secondary: #3E6F6B; /* Diner Teal */
  --accent-muted: #C2A86E; /* Faded Gold */
  --accent-electric: #4FA3C7; /* Neon Blue (desaturated) */


  /* --- Typography --- */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-ui: 'Montserrat', sans-serif;

  /* --- Spacing --- */
  --section-padding: clamp(4rem, 8vw, 7rem);
  --content-width: 1100px;

  /* --- UI --- */
  --border-subtle: 1px solid rgba(255,255,255,0.12);
  --transition-soft: 0.3s ease;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ===============================
   2. GLOBAL RESET & BASE
================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===============================
   3. TYPOGRAPHY
================================= */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1.2rem 0;
  color: var(--text-light);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

h3 {
  font-size: 1.6rem;
}

p {
  margin: 0 0 1.4rem 0;
  max-width: 68ch;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-soft);
}

a:hover {
  color: var(--accent-muted);
}

/* ===============================
   4. LAYOUT HELPERS (REFINED)
================================= */

.section {
  padding: calc(var(--section-padding) * 0.85) 1.5rem; /* ⬅ tighter vertical rhythm */
}

/* Reduce gap ONLY between consecutive sections */
.section + .section {
  padding-top: calc(var(--section-padding) * 0.65);
}

.section.center .container {
  margin-top: 1.2rem; /* ⬅ slightly tighter */
}

.section.center p {
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.6rem; /* ⬅ reduced */
}

.section.center p:first-of-type {
  font-size: 1.05rem;
}

.section.center p:last-of-type {
  margin-bottom: 0;
}

.section.center .divider {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem; /* ⬅ reduced */
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
}

.center {
  text-align: center;
}

.center p {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Divider — tighter but still elegant */
.divider {
  width: 70px;
  height: 1px;
  margin: 1.6rem auto 2rem; /* ⬅ reduced top & bottom */
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-muted),
    var(--accent-primary),
    transparent
  );
  opacity: 0.6;
}


.highlight {
  color: var(--accent-primary);
  font-weight: 500;
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}


/* ===============================
   5. BUTTONS
================================= */

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-soft);
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: #b85f42;
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
  background: rgba(201,106,74,0.1);
}

/* ===============================
   6. IMAGERY
================================= */

img {
  max-width: 100%;
  display: block;
}

.image-frame {
  position: relative;
  overflow: hidden;
}

.image-frame img {
  filter: contrast(1.05) saturate(0.9);
}

.section-image {
  margin: 4rem auto 0;
  margin-top: 3rem;
  max-width: 900px;       /* controls visual dominance */
}


.section-image img {
  border-radius: 2px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  width: 100%;
  max-height: 420px;      /* smaller, more cinematic */
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(0.9);
}

@media (max-width: 768px) {
  .section-image {
    margin-top: 3rem;
    max-width: 100%;
  }

  .section-image img {
    max-height: 300px;
  }
}

/* ===============================
   7. HERO
================================= */

.hero-story {
  background-image: url('/assets/img/hero/Steve.png');
  background-size: cover;
  background-position: center;
}

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 90px; /* match nav height */

  background-color: var(--bg-dark);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(17,20,24,0.85) 0%,
    rgba(17,20,24,0.65) 35%,
    rgba(17,20,24,0.25) 65%,
    rgba(17,20,24,0.1) 100%
  );
}

.hero-title {
  color: rgba(232, 227, 218, 0.95);
  margin-bottom: 1.2rem;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 32ch;
  opacity: 0.95;
}

/* ===============================
   HERO — MOBILE READABILITY
================================= */

@media (max-width: 768px) {
  .hero h1,
  .hero p,
  .hero .highlight {
    text-shadow:
      0 2px 6px rgba(0, 0, 0, 0.65),
      0 0 1px rgba(0, 0, 0, 0.9);
  }

  .hero .highlight {
    color: #f2b19a; /* warmer, lighter ember */
    font-weight: 600;
  }
}

/* ===============================
   8. NAVIGATION (MINIMAL)
================================= */

/* Site title / logo text */
.nav-logo {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 227, 218, 0.95);
}

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(17,20,24,0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.nav a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-left: 1.8rem;
  transition: color var(--transition-soft);
}

.nav a {
  color: var(--accent-muted);
}

.nav a:hover {
  color: var(--accent-primary);
}

.nav a.active {
  color: var(--accent-electric);
}

.nav a.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 4px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-electric),
    transparent
  );
  opacity: 0.6;
}



/* ===============================
   9. FOOTER
================================= */

.footer {
  padding: 3rem 1.5rem;
  border-top: var(--border-subtle);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ===============================
   10. ANIMATION (SUBTLE)
================================= */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: all 0.9s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   ACTS SECTION
================================= */

.acts-block {
  margin-top: 3.5rem;
}

/* Section title */
.acts-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0.9;
}

/* Two-column container */
.acts-columns {
  max-width: 900px;      /* SAME spine as music + characters */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

/* Individual act column */
.acts-columns .column {
  max-width: 38ch;       /* MATCH song list text width */
  margin-left: auto;
  margin-right: auto;
}

/* Act headings */
.acts-columns h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--accent-primary);
  letter-spacing: 0.02em;
}

.acts-columns .column:last-child h4 {
  color: var(--accent-electric);
}


/* Paragraph rhythm */
.acts-columns p {
  margin-bottom: 1.2rem;
  opacity: 0.95;
}

/* Mobile stacking */
@media (max-width: 768px) {
  .acts-columns {
    display: block;
  }

  .acts-columns .column {
    max-width: 42ch;
    margin-bottom: 2.5rem;
  }
}

/* ===============================
   CHARACTERS SECTION
================================= */

.character-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  text-align: left;
}

.character-card {
  background: rgba(255,255,255,0.03);
  border: var(--border-subtle);
  padding: 1.8rem 1.6rem 2rem;
}

.character-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  margin-bottom: 1.4rem;
  filter: contrast(1.05) saturate(0.9);
}

.character-card h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.character-role {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-bottom: 0.9rem;
}

/* ===============================
   MUSIC SECTION
================================= */

.music-intro p {
  max-width: 54ch;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.song-list.subdued {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;          /* MATCH acts-columns */
  opacity: 0.85;
}

.song-list.subdued li {
  max-width: 38ch;           /* text measure */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

/* ===============================
   MUSIC — AUDIO PLAYERS
================================= */

.music-subtitle {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-align: center;
  margin: 3rem 0 2rem;
  opacity: 0.9;
}

.track-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.track-title {
  font-weight: 500;
}

.track-character {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-muted);
}

.audio-track audio {
  width: 100%;
  height: 32px;
  accent-color: var(--accent-electric);
}


/* ===============================
   MUSIC — AUDIO GRID
================================= */

.audio-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 4rem;
  row-gap: 2.2rem;
  align-items: start; /* prevents grid stretch oddities */
}

/* Individual track */
.audio-track {
  max-width: 38ch;        /* reading measure */
  margin: 0;              /* LEFT-ALIGNED within column */
}

/* Ensure audio fills the track width */
.audio-track audio {
  width: 100%;
}

/* Disclaimer */
.music-note {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 3rem auto 0;
  max-width: 54ch;
}

.music-bridge {
  margin: 3rem auto 2rem;
  max-width: 720px;
  font-style: italic;
  opacity: 0.9;
}


/* Stack on mobile */
@media (max-width: 768px) {
  .audio-list {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   JOURNEY — GROUNDING & WEIGHT
================================= */

.journey-section {
  position: relative;
}

/* Transitional line under title */
.journey-bridge {
  text-align: center;
  font-style: italic;
  opacity: 0.75;
  margin: 0 auto 2.8rem;   /* ← key change */
  max-width: 100%;
}


/* Subtle grounded band behind acts */
.acts-ground {
  position: relative;
  padding: 3.5rem 0 4rem;
}

.acts-ground::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.015)
    );
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

/* Slightly increase text presence here only */
.journey-section .acts-columns p {
  opacity: 0.97;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 900px) {
  .character-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .character-grid {
    grid-template-columns: 1fr;
  }

  .character-card img {
    height: 220px;
  }
}


/* ===============================
   TEAM SECTION
================================= */


#team p.center {
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


.team-grid {
  max-width: 900px;
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.team-member {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: start;
}

.team-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}

.team-header h3 {
  margin-bottom: 0.2rem;
}

.team-role {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-bottom: 0.8rem;
}

/* Placeholder styling — subtle, not apologetic */
.team-placeholder .team-photo {
  opacity: 0.75;
}

.team-placeholder .team-role {
  color: var(--accent-secondary);
}

/* Mobile */
@media (max-width: 700px) {
  .team-member {
    grid-template-columns: 1fr;
  }

  .team-photo {
    max-width: 180px;
  }
}

/* ==========================================================
   GATEWAY OVERLAY — FINAL, CLEAN VERSION
   ========================================================== */

/* ===============================
   GATEWAY OVERLAY
================================ */

#gateway {
  position: fixed;
  inset: 0;
  z-index: 9999;

  background: rgba(17,20,24,0.96);
  backdrop-filter: blur(6px);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#gateway.exit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ===============================
   IMAGE WRAPPER (ANCHOR)
================================ */

.gate-image {
  position: relative;            /* anchor for overlay */
  width: auto;
  max-width: 90vw;
  height: 90vh;                  /* CRITICAL: defines positioning space */
  margin: 0 auto;
}

/* ===============================
   IMAGE (PORTRAIT-SAFE)
================================ */

.gate-image img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;

  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

/* ===============================
   UI OVERLAY (POSITIONED INTO DARK ZONE)
================================ */

.gate-ui {
  position: absolute;
  left: 50%;
  bottom: 0rem;                 /* 👈 THIS is the real control */
  transform: translateX(-50%);  /* horizontal only */

  width: 90%;
  max-width: 420px;
  text-align: center;
}

/* ===============================
   INPUT
================================ */

.gate-ui input {
  width: 100%;
  padding: 0.9rem 1rem;

  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--text-light);

  font-family: var(--font-body);
  margin-bottom: 0.8rem;
}

.gate-ui input:focus {
  outline: none;
  border-color: var(--accent-muted);
}

/* ===============================
   BUTTON
================================ */

.gate-ui button {
  width: 100%;
  background: transparent;
  border: 1px solid var(--accent-muted);
  color: var(--accent-muted);

  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  padding: 0.85rem 0;
  cursor: pointer;

  transition: all 0.3s ease;
}

.gate-ui button:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ===============================
   ERROR MESSAGE
================================ */

.gate-error {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--accent-primary);
}

/* ===============================
   LEGAL TEXT
================================ */

.gate-legal {
  margin-top: 1.2rem;
  font-size: 0.7rem;
  opacity: 0.6;
  line-height: 1.5;
}

.gate-legal em {
  font-style: normal;
  color: var(--accent-muted);
}

/* ===============================
   MOBILE BEHAVIOUR
================================ */

@media (max-width: 600px) {
  .gate-image {
    height: auto;
  }

  .gate-ui {
    position: static;
    transform: none;
    margin-top: 1.5rem;
  }
}


/* ===============================
   BUTTON
================================ */

.gate-ui button {
  width: 100%;
  background: transparent;
  border: 1px solid var(--accent-muted);
  color: var(--accent-muted);

  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  padding: 0.85rem 0;
  cursor: pointer;

  transition: all 0.3s ease;
}

.gate-ui button:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ===============================
   LEGAL TEXT
================================ */

.gate-legal {
  margin-top: 1.2rem;
  font-size: 0.7rem;
  opacity: 0.6;
  line-height: 1.5;
}

.gate-legal em {
  font-style: normal;
  color: var(--accent-muted);
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 600px) {
  .gate-image img {
    height: auto;
    max-height: none;
  }

  .gate-ui {
    position: static;
    transform: none;
    margin-top: 1.5rem;
  }
}

