/* portfolio.css — portfolio page styles */

/* ── HERO ── */
.portfolio-hero {
  background: var(--fg);
  color: var(--white);
  padding: 5rem 2rem 4rem;
}
.portfolio-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.portfolio-hero .eyebrow-pill {
  background: var(--accent);
  color: var(--white);
  margin-bottom: 1.5rem;
  display: inline-block;
}
.portfolio-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--white);
}
.portfolio-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2rem;
}
.portfolio-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.15s;
}
.btn-print:hover { background: rgba(255,255,255,0.2); }
.cta-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.cta-link:hover { text-decoration: underline; }

/* ── FILTERS ── */
.portfolio-filters {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.filter-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.875rem 2rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}
.filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: none;
  color: var(--fg-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.filter-tab:hover { border-color: var(--fg); color: var(--fg); }
.filter-tab.active {
  background: var(--fg);
  color: var(--white);
  border-color: var(--fg);
}

/* ── SCRIPTS GRID ── */
.portfolio-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.scripts-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── SCRIPT CARD ── */
.script-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.script-card.hidden-card {
  display: none;
}
.script-header {
  background: var(--fg);
  color: var(--white);
  padding: 1.75rem 2rem 1.5rem;
}
.script-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}
.badge-vertical {
  background: var(--accent);
  color: var(--white);
}
.badge-style {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
}
.script-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.2;
}

/* ── SCRIPT SECTIONS ── */
.script-section {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.script-section:last-child { border-bottom: none; }
.section-tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.script-hook {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.5;
}
.script-body {
  font-size: 0.925rem;
  color: var(--fg-dim);
  line-height: 1.75;
}

/* ── OVERLAYS TABLE ── */
.overlays-table-wrap { overflow-x: auto; }
.overlays-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.overlays-table th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 0 0.5rem 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.overlays-table td {
  padding: 0.6rem 0.5rem 0.6rem 0;
  border-bottom: 1px solid var(--bg-alt);
  vertical-align: top;
}
.overlays-table tr:last-child td { border-bottom: none; }
.overlay-time {
  color: var(--fg-dim);
  font-size: 0.8rem;
  white-space: nowrap;
  padding-right: 1rem;
  width: 44px;
}
.overlay-text { color: var(--fg); line-height: 1.5; }

/* ── B-ROLL / CAPTION ── */
.script-broll, .script-caption {
  font-size: 0.875rem;
  color: var(--fg-dim);
  line-height: 1.7;
}

/* ── WHY THIS WORKS ── */
.script-why {
  background: var(--bg-alt);
}
.why-text {
  font-size: 0.9rem;
  color: var(--fg);
  font-weight: 500;
  line-height: 1.6;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--fg-dim);
  font-size: 0.95rem;
}

/* ── BOTTOM CTA ── */
.portfolio-cta {
  background: var(--accent);
  padding: 5rem 2rem;
  text-align: center;
}
.portfolio-cta-inner { max-width: 600px; margin: 0 auto; }
.portfolio-cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.portfolio-cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.portfolio-cta .btn-primary {
  background: var(--white);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.portfolio-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.portfolio-cta-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 1rem;
}

/* ── STICKY CTA ── */
.sticky-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(232, 86, 42, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.sticky-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 86, 42, 0.5);
}
@media print { .sticky-cta { display: none !important; } }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .portfolio-hero { padding: 3.5rem 1.25rem 3rem; }
  .portfolio-title { font-size: 2rem; }
  .portfolio-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .filter-inner { padding: 0.75rem 1.25rem; }
  .portfolio-main { padding: 2rem 1.25rem 4rem; }
  .script-header { padding: 1.25rem 1.25rem 1rem; }
  .script-section { padding: 1.25rem; }
  .portfolio-cta { padding: 4rem 1.25rem; }
  .footer { padding: 2rem 1.25rem; }
}

/* ── PRINT STYLESHEET (PDF download) ── */
@media print {
  .nav, .portfolio-filters, .portfolio-actions, .footer, .portfolio-cta { display: none !important; }
  .portfolio-hero { background: white !important; padding: 2rem !important; }
  .portfolio-title { color: #1A1A1A !important; font-size: 2rem !important; }
  .portfolio-sub { color: #6B6B6B !important; }
  body { background: white !important; }
  .script-card {
    break-inside: avoid;
    border: 1px solid #ccc !important;
    margin-bottom: 2rem !important;
    border-radius: 12px !important;
  }
  .script-header { background: #1A1A1A !important; }
  .badge-vertical { background: #E8562A !important; }
  .overlays-table th { border-bottom: 1px solid #ccc !important; }
  .overlays-table td { border-bottom-color: #eee !important; }
  .script-why { background: #f5f5f0 !important; }
}