/* ============================================================
   ALLAN TRAUTMAN — allantrautman.com
   Shared Stylesheet (used by all pages)
   ============================================================ */

/* ============================================================
   ALLAN TRAUTMAN — allantrautman.com
   Main Stylesheet
   ============================================================ */

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:        #faf6f0;
  --white:        #ffffff;
  --ink:          #1a1410;
  --warm-mid:     #3d3530;
  --teal:         #1a7a6e;
  --teal-light:   #e8f5f3;
  --teal-dark:    #145f56;
  --coral:        #e05a3a;
  --coral-light:  #fef0ec;
  --gold:         #d4a017;
  --gold-light:   #fdf6e3;
  --lilac:        #7a5fa0;
  --border:       rgba(26,20,16,0.1);

  --pad-x:        clamp(1.25rem, 5vw, 3rem);
  --section-y:    clamp(3rem, 8vw, 5rem);
  --max-w:        1280px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--pad-x);
  height: 56px;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-logo span { color: var(--teal); }

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--warm-mid);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 2rem;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--teal-light);
  color: var(--teal);
}

.nav-hamburger {
  display: none;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger-icon span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-hamburger.open .nav-hamburger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }

.nav-hamburger.open .nav-hamburger-icon span:nth-child(2) { opacity: 0; }

.nav-hamburger.open .nav-hamburger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  padding: 1rem var(--pad-x) 1.5rem;
  z-index: 199;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 8px 24px rgba(26,20,16,0.08);
}

.nav-drawer.open { display: flex; }

.nav-drawer a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-drawer a:last-child { border-bottom: none; }

.nav-drawer a.active { color: var(--teal); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,122,110,0.3);
  color: var(--white);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--warm-mid);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.btn-ghost::after { content: '→'; }

.btn-ghost:hover { color: var(--teal); }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--teal);
  color: var(--white);
  padding: 0.75rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  gap: 2.5rem;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.ticker-item::before { content: '✦'; font-size: 0.5rem; opacity: 0.6; }

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-header h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-header a {
  font-size: 0.85rem;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.section-header a:hover { text-decoration: underline; }

/* ============================================================
   STAT CARDS (shared)
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.stat-card {
  border-radius: 1.25rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-card:nth-child(1) { background: var(--teal-light); }

.stat-card:nth-child(2) { background: var(--coral-light); }

.stat-card:nth-child(3) { background: var(--gold-light); }

.stat-card:nth-child(4) { background: #f0eaf8; }

.stat-card-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-card:nth-child(1) .stat-card-num { color: var(--teal); }

.stat-card:nth-child(2) .stat-card-num { color: var(--coral); }

.stat-card:nth-child(3) .stat-card-num { color: var(--gold); }

.stat-card:nth-child(4) .stat-card-num { color: var(--lilac); }

.stat-card-label {
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
  color: var(--warm-mid);
  font-weight: 500;
}

/* ============================================================
   CREDITS MOSAIC (homepage)
   ============================================================ */
.credits-section {
  padding: var(--section-y) var(--pad-x);
  background: var(--cream);
}

.credits-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--warm-mid);
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active,
.tab:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.credit-tile {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid var(--border);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
}

.credit-tile:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(26,20,16,0.12);
}

/* Tile photo — shown when image is present */
.credit-tile-body img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.credit-tile-body .tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,20,16,0.85) 0%, rgba(26,20,16,0.1) 60%, transparent 100%);
}

/* Tile color placeholders (used until real images are dropped in) */
.tile-dinosaurs { background: linear-gradient(135deg, #c8e8b8, #8fc870); }

.tile-jungle    { background: linear-gradient(135deg, #b8d8b8, #70a870); }

.tile-mib       { background: linear-gradient(135deg, #c8c8d8, #8888a8); }

.tile-rotld     { background: linear-gradient(135deg, #d8c8e8, #a888c8); }

.tile-muppets   { background: linear-gradient(135deg, #ffe8c8, #e8b870); }

.tile-babe      { background: linear-gradient(135deg, #ffe8e8, #e8a8a8); }

.tile-dolittle  { background: linear-gradient(135deg, #e8f0f8, #a8c0d8); }

.tile-happytime { background: linear-gradient(135deg, #f8e8f0, #d8a8c0); }

.tile-badge {
  position: absolute;
  top: 0.65rem; right: 0.65rem;
  background: rgba(255,255,255,0.9);
  border-radius: 0.5rem;
  padding: 0.2rem 0.4rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--teal);
  z-index: 3;
}

.tile-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.credit-tile.featured .tile-title { font-size: clamp(1rem, 2.5vw, 1.6rem); margin-bottom: 0.25rem; }

.tile-title-sm { font-size: clamp(0.65rem, 1.2vw, 0.8rem); text-align: center; }

.tile-role {
  font-size: clamp(0.6rem, 1vw, 0.7rem);
  color: rgba(26,20,16,0.6);
  margin-top: 0.15rem;
  position: relative;
  z-index: 2;
}

/* When image present, text goes light */
.credit-tile-body img ~ .tile-overlay ~ .tile-title,
.credit-tile-body img ~ .tile-overlay ~ .tile-role { color: var(--white); }

.credit-tile-body img ~ .tile-overlay ~ .tile-role  { color: rgba(255,255,255,0.75); }

/* ============================================================
   STREAMING SECTION
   ============================================================ */
.streaming-section {
  background: var(--ink);
  padding: var(--section-y) var(--pad-x);
}

.streaming-section .section-header h2 { color: var(--white); }

.streaming-section .section-header a  { color: var(--teal); }

.streaming-cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.streaming-cards::-webkit-scrollbar { display: none; }

.stream-card {
  flex-shrink: 0;
  width: clamp(150px, 22vw, 200px);
  border-radius: 1rem;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.1);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  text-decoration: none;
}

.stream-card:hover { transform: translateY(-4px); }

.stream-card-art {
  height: clamp(90px, 14vw, 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.stream-card-art img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.sc-1 { background: linear-gradient(135deg, #1a5a3a, #0d3020); }

.sc-2 { background: linear-gradient(135deg, #3a1a5a, #200d30); }

.sc-3 { background: linear-gradient(135deg, #5a3a1a, #302010); }

.sc-4 { background: linear-gradient(135deg, #1a3a5a, #0d2030); }

.sc-5 { background: linear-gradient(135deg, #5a1a3a, #300d20); }

.stream-card-info { padding: 0.75rem; background: rgba(255,255,255,0.05); }

.stream-card-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.stream-card-platform { font-size: 0.65rem; font-weight: 500; color: var(--teal); }

/* ============================================================
   TEACHING BAND
   ============================================================ */
.teaching-band {
  background: var(--coral);
  padding: clamp(2.5rem, 6vw, 3.5rem) var(--pad-x);
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.teaching-icon { font-size: 2.5rem; flex-shrink: 0; }

.teaching-text h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.teaching-text p {
  color: rgba(255,255,255,0.85);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  line-height: 1.6;
}

.teaching-btn {
  background: var(--white);
  color: var(--coral);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.8rem 1.75rem;
  border-radius: 2rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.teaching-btn:hover { transform: scale(1.03); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--white);
  border-top: 1.5px solid var(--border);
  padding: 1.75rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.foot-logo {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.foot-logo span { color: var(--teal); }

.foot-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.foot-links a {
  font-size: 0.75rem;
  color: rgba(26,20,16,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.foot-links a:hover { color: var(--teal); }

.foot-copy { font-size: 0.75rem; color: rgba(26,20,16,0.4); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  padding: clamp(3rem, 8vw, 5rem) var(--pad-x) clamp(2rem, 5vw, 3.5rem);
}

.page-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 18ch;
}

.page-hero h1 em { font-style: italic; color: var(--teal); }

.page-hero p {
  margin-top: 1.25rem;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--warm-mid);
  max-width: 60ch;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.anim-fade-up {
  opacity: 0;
  animation: slideUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}

.anim-delay-1 { animation-delay: 0.2s; }

.anim-delay-2 { animation-delay: 0.35s; }

.anim-delay-3 { animation-delay: 0.5s; }

.anim-delay-4 { animation-delay: 0.65s; }
