/* ═══════════════════════════════════════════════════════
   GildaVoice.com — Shared Stylesheet
   Tone: witty, warm, professional, adventurous, international
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&family=Caveat:wght@500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper:  #faf7f2;
  --warm:   #f2ede4;
  --ink:    #1c1917;
  --ink-soft: #44403c;
  --gold:   #c8922a;
  --gold-lt:#e8b84b;
  --terra:  #c0522a;
  --sage:   #5a7a5c;
  --sky:    #3a6b8a;
  --border: #ddd8cf;
  --muted:  #78716c;
  --card:   #ffffff;
  --radius: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: 'DM Serif Display', serif; line-height: 1.15; }
.script-note { font-family: 'Caveat', cursive; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--gold);
}

.nav-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  padding: 0.3rem 0.5rem 0.3rem 0;
  border-radius: var(--radius);
  transition: color 0.2s;
  position: relative;
}
.nav-brand::after {
  content: '⌂ Home';
  position: absolute;
  bottom: -1.4rem;
  left: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-brand:hover { color: var(--gold); }
.nav-brand:hover::after { opacity: 1; }
.nav-brand span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
}
.nav-links li { position: relative; }
.nav-links > li > a,
.nav-links > li > span {
  display: block;
  padding: 0.5rem 1.1rem;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
  cursor: pointer;
}
.nav-links a:hover,
.nav-links span:hover { color: var(--gold); }
.nav-links a.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

/* Desktop dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 200px;
  z-index: 300;
  border-radius: 0 0 var(--radius) var(--radius);
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--warm); color: var(--gold); }

/* ── HAMBURGER BUTTON (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 210;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
/* Animate to X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DROPDOWN PANEL ── */
.nav-mobile-panel {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 190;
  background: rgba(250,247,242,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--gold);
  padding: 0 1.5rem 1.5rem;
  /* slides down from behind the nav bar */
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.nav-mobile-panel.open {
  transform: translateY(0);
}
.nav-mobile-panel ul {
  list-style: none;
  padding-top: 5rem; /* clear the fixed nav bar */
}
.nav-mobile-panel ul li a,
.nav-mobile-panel ul li span {
  display: block;
  padding: 0.9rem 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  cursor: pointer;
}
.nav-mobile-panel ul li a:hover,
.nav-mobile-panel ul li span:hover { color: var(--gold); }
.nav-mobile-panel ul li:last-child a,
.nav-mobile-panel ul li:last-child span { border-bottom: none; }

/* Mobile sub-links (Scripts sub-items) */
.nav-mobile-sub {
  display: none;
  list-style: none;
  padding-left: 1rem;
  background: var(--warm);
}
.nav-mobile-sub.open { display: block; }
.nav-mobile-sub li a {
  font-size: 0.85rem !important;
  padding: 0.6rem 0 !important;
  letter-spacing: 0.06em !important;
  border-bottom: 1px solid var(--border) !important;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.22s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: #b07820; border-color: #b07820; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,146,42,0.35); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-terra { background: var(--terra); color: #fff; border-color: var(--terra); }
.btn-terra:hover { background: #a84220; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,82,42,0.3); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.72rem; }

/* ── SECTION SHELL ── */
section { padding: 5rem 3rem; }
.container { max-width: 1160px; margin: 0 auto; }
.section-eyebrow { font-family: 'Caveat', cursive; font-size: 1.2rem; color: var(--gold); margin-bottom: 0.4rem; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; line-height: 1.15; }
.section-rule { width: 50px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--terra)); margin-bottom: 2.5rem; border-radius: 2px; }

/* ── SCRIPT CARD (BRIEF) ── */
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.script-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.script-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.script-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--warm) 0%, var(--border) 100%);
}
.script-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #e8e0d0 0%, #d4c9b8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1rem;
}
.script-card-body { padding: 1.4rem 1.4rem 0.8rem; flex: 1; }
.script-format { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); margin-bottom: 0.4rem; }
.script-title { font-family: 'DM Serif Display', serif; font-size: 1.3rem; margin-bottom: 0.3rem; line-height: 1.2; }
.script-genre { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.8rem; font-style: italic; }
.script-logline { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }
.script-card-footer {
  padding: 1rem 1.4rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 0.8rem;
}
.script-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}
.status-development  { background: #fef3c7; color: #92400e; }
.status-available    { background: #d1fae5; color: #065f46; }
.status-optioning    { background: #dbeafe; color: #1e40af; }
.status-treatment    { background: #fef9c3; color: #854d0e; }
.status-script       { background: #dcfce7; color: #166534; }
.status-script-draft { background: #dbeafe; color: #1e40af; }
.details-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.details-link:hover { color: var(--terra); }
.details-link::after { content: ' →'; }

/* ── DETAIL PAGE ── */
.detail-hero {
  padding: 7rem 3rem 4rem;
  background: var(--warm);
  border-bottom: 1px solid var(--border);
}
.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}
.detail-poster { position: sticky; top: 5rem; }
.detail-poster img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: block;
}
.detail-poster-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #e8e0d0, #c8b89a);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--muted);
  text-align: center;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.detail-meta { padding: 0; }
.detail-format { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); margin-bottom: 0.6rem; }
.detail-title { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: 0.4rem; }
.detail-genre { font-size: 1rem; color: var(--muted); font-style: italic; margin-bottom: 1.5rem; }
.detail-logline {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
  font-style: italic;
}
.detail-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.detail-body { max-width: 1000px; margin: 0 auto; padding: 4rem 3rem; }
.detail-section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.detail-body p { color: var(--ink-soft); margin-bottom: 1rem; }

/* Comp tags on detail pages */
.comps-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.comp-tag {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

/* Cast grid */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 0.5rem;
}
.cast-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.cast-name { font-family: 'DM Serif Display', serif; font-size: 1.05rem; margin-bottom: 0.15rem; }
.cast-role { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra); margin-bottom: 0.5rem; }
.cast-desc { font-size: 0.84rem; color: var(--ink-soft); line-height: 1.6; }

/* ── CONTACT FORM ── */
.inquiry-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 560px;
  margin: 3rem auto 0;
}
.inquiry-form h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.inquiry-form p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.8rem; }
.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s;
  outline: none;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,146,42,0.1); }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-script-name { background: var(--warm) !important; color: var(--ink) !important; font-weight: 600; }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,25,23,0.7);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  padding: 2.5rem;
  position: relative;
  animation: modalIn 0.22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none; border: none;
  font-size: 1.4rem; line-height: 1;
  color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--ink); }
.success-msg { display: none; text-align: center; padding: 1rem 0; }
.success-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: #fff; display: block; }
.footer-tagline { font-family: 'Caveat', cursive; font-size: 1rem; color: var(--gold-lt); display: block; margin-top: 0.2rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-lt); }
.footer-copy { font-size: 0.75rem; }

/* ── PAGE HEADER (subpages) ── */
.page-header {
  padding: 7rem 3rem 3.5rem;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--terra), var(--sky));
}
.page-header .container { position: relative; z-index: 1; }
.page-header .section-eyebrow { color: var(--gold-lt); }
.page-header .section-title { color: #fff; }
.page-header p { color: rgba(255,255,255,0.6); max-width: 580px; margin-top: 0.8rem; font-size: 1rem; }

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }
.back-link::before { content: '←'; }

/* ══════════════════════════════════════════
   RESPONSIVE — 768px and below
   ══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Nav */
  nav { padding: 0.85rem 1.2rem; }
  .nav-links { display: none; }           /* hide desktop links */
  .nav-hamburger { display: flex; }       /* show hamburger */
  .nav-mobile-panel { display: block; }   /* panel is in DOM, animated by class */
  .nav-brand { font-size: 1.15rem; }
  .nav-brand::after { display: none; }

  /* Section */
  section { padding: 3.5rem 1.2rem; }

  /* Detail */
  .detail-grid { grid-template-columns: 1fr; }
  .detail-poster { position: static; max-width: 220px; }
  .detail-hero { padding: 5rem 1.2rem 2rem; }
  .detail-body { padding: 2rem 1.2rem; }
  .detail-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .detail-actions { flex-direction: column; gap: 0.75rem; }
  .detail-actions .btn { text-align: center; }

  /* Scripts grid */
  .scripts-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .script-card-img { aspect-ratio: 16/9; width: 100%; object-fit: cover; }

  /* Script cards — better touch targets */
  .script-card-footer { padding: 0.85rem 1.2rem 1.2rem; }
  .details-link { font-size: 0.85rem; padding: 0.4rem 0; }
  .script-card-body { padding: 1.1rem 1.2rem 0.6rem; }
  .script-title { font-size: 1.15rem; }
  .script-logline { font-size: 0.9rem; }

  /* Page header */
  .page-header { padding: 5rem 1.2rem 2rem; }
  .page-header h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .page-header p { font-size: 0.95rem; }

  /* Misc grids */
  .featured-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .featured-poster { max-width: 260px; margin: 0 auto; }
  #featured        { padding: 2.5rem 1.2rem; }
  .about-grid      { grid-template-columns: 1fr; }
  .skills-grid     { grid-template-columns: 1fr 1fr; }
  .contact-grid    { grid-template-columns: 1fr; gap: 1.5rem; }
  .quick-form      { padding: 1.4rem; }
  .four-sides      { grid-template-columns: 1fr; }
  .va-grid         { grid-template-columns: 1fr; }
  .clients-grid    { grid-template-columns: 1fr 1fr; }
  .cast-grid       { grid-template-columns: 1fr 1fr; }
  .container       { padding: 0 1rem; }
  .section-title   { font-size: clamp(1.5rem, 6vw, 2.2rem); }

  /* Buttons — full width on mobile for easier tapping */
  .btn { width: 100%; text-align: center; padding: 0.85rem 1.5rem; }
  .btn-sm { width: auto; }

  /* Contact form — prevent iOS zoom on input focus */
  .inquiry-form { padding: 1.5rem; margin: 1.5rem 0 0; }
  .form-row input,
  .form-row textarea,
  .form-row select { font-size: 16px; }

  /* Footer */
  footer { flex-direction: column; text-align: center; padding: 2rem 1.2rem; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 480px) {
  .scripts-grid    { grid-template-columns: 1fr; }
  .script-card-img { aspect-ratio: 16/9; }
  .skills-grid     { grid-template-columns: 1fr; }
  .clients-grid    { grid-template-columns: 1fr; }
  .cast-grid       { grid-template-columns: 1fr; }
  .detail-poster   { max-width: 180px; }
  .featured-poster { max-width: 180px; }
  section          { padding: 2.5rem 1rem; }
  .page-header     { padding: 4.5rem 1rem 2rem; }
  nav              { padding: 0.75rem 1rem; }
}
