/* ============================================
   Stephen Belafonte - Personal Website
   Clean & Professional Design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1B3A5C;
  --navy-dark: #122840;
  --accent: #2E75B6;
  --accent-light: #4A90D9;
  --text: #2D2D2D;
  --text-light: #5A5A5A;
  --text-muted: #8A8A8A;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --bg-dark: #0D1B2A;
  --border: #E2E8F0;
  --gold: #C9A84C;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Inter', sans-serif; color: var(--navy); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1.25rem; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.site-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-text h1 { margin-bottom: 1.5rem; }
.hero-text h1 span { color: var(--accent); }
.hero-text .subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--navy);
  color: white;
}
.btn-primary:hover { background: var(--accent); color: white; }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-image {
  display: flex;
  justify-content: center;
}
.headshot-placeholder {
  width: 380px;
  height: 460px;
  background: linear-gradient(135deg, var(--bg-alt), #E2E8F0);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border: 2px dashed var(--border);
}
.headshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* --- Stats Bar --- */
.stats-bar {
  padding: 3rem 0;
  background: var(--navy);
  color: white;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-item .stat-number span { color: var(--gold); }
.stat-item .stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}

/* --- Section Layouts --- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--text-light); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* --- Featured Films Grid --- */
.films-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.film-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.film-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(46, 117, 182, 0.1);
  transform: translateY(-2px);
}
.film-card .film-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.film-card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.film-card .film-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.film-card .film-meta span {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.film-card .film-meta .highlight { color: var(--accent); font-weight: 600; }
.film-card .film-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.film-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-left: 4px solid var(--accent);
}
.film-card.featured .film-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Pillars / Expertise --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.pillar-card {
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  transition: all var(--transition);
}
.pillar-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pillar-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.pillar-card h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.pillar-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0; }

/* --- Filmography Table --- */
.filmography-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.filmography-table thead th {
  background: var(--navy);
  color: white;
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.filmography-table tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: top;
}
.filmography-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.filmography-table tbody tr:hover { background: #EBF4FF; }
.filmography-table .title-cell { font-weight: 600; color: var(--navy); }
.filmography-table .rt-score { color: var(--accent); font-weight: 600; }

/* --- About Page --- */
.about-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}
.about-sidebar { position: sticky; top: 100px; }
.about-sidebar .sidebar-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--bg-alt), #E2E8F0);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border: 2px dashed var(--border);
  overflow: hidden;
}
.about-sidebar .sidebar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-info { font-size: 0.85rem; color: var(--text-light); }
.sidebar-info dt { font-weight: 600; color: var(--navy); margin-top: 0.75rem; }
.sidebar-info dd { margin-left: 0; margin-bottom: 0.25rem; }
.about-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 1.5rem; }
.about-body h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }

/* --- Blog Cards --- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.blog-card-body { padding: 1.5rem; }
.blog-card .blog-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: inline-block;
}
.blog-card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; }
.blog-card .blog-date { font-size: 0.8rem; color: var(--text-muted); }
.blog-card-placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-alt), #E2E8F0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-item .contact-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.contact-item h4 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact-item p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0; }
.social-links { display: flex; gap: 0.75rem; margin-top: 2rem; }
.social-link {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}
.social-link:hover { background: var(--accent); color: white; }

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h4 { color: white; margin-bottom: 0.75rem; font-size: 1.1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; max-width: 320px; }
.footer-links h4 {
  color: white;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 8rem 0 3rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-light); font-size: 1.1rem; max-width: 640px; }

/* --- CTA Section --- */
.cta-section {
  padding: 5rem 0;
  background: var(--navy);
  text-align: center;
  color: white;
}
.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto 2rem; }
.cta-section .btn-primary { background: var(--accent); }
.cta-section .btn-primary:hover { background: var(--accent-light); }

/* --- Responsive --- */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-image { order: -1; }
  .headshot-placeholder { width: 260px; height: 320px; }
  .hero-cta { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .films-grid { grid-template-columns: 1fr; }
  .film-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .about-sidebar { position: static; display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: start; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }
}

@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 7rem 0 3rem; }
  .section { padding: 3rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-item .stat-number { font-size: 1.75rem; }
}
