/* ============================================================
   Todo Media Inc. — Stylesheet
   ============================================================ */

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

/* --- Variables --- */
:root {
  --bg-primary: #0C0C0C;
  --bg-secondary: #111110;
  --bg-elevated: #1A1918;
  --bg-surface: #222120;
  --text-primary: #E8E4DF;
  --text-secondary: #9A9590;
  --text-muted: #6B6762;
  --accent: #C9A96E;
  --accent-light: #D4B87D;
  --accent-dim: #8B7A55;
  --border: #2A2725;
  --border-light: #3A3735;
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-width: 1140px;
  --section-pad: 128px;
  --section-pad-tablet: 96px;
  --section-pad-mobile: 64px;
  --nav-height: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
p { color: var(--text-secondary); }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.section {
  padding: var(--section-pad) 0;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.3s ease, border-color 0.3s ease;
  background: rgba(12, 12, 12, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(12, 12, 12, 0.95);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo-img {
  height: 36px;
  width: auto;
}

/* Hero logo */
.hero-logo {
  height: 48px;
  width: auto;
  margin: 0 auto 32px;
}
.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  margin-right: -8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav-toggle.open span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 12, 12, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 60px) 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}
.hero-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}
.hero-tagline {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 48px;
}
.hero-line {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 32px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* --- Stats Bar --- */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text-primary);
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 56px;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-header .accent-line {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 20px;
}
.section-header p {
  font-size: 1rem;
  max-width: 560px;
}

/* --- What We Do --- */
.what-we-do .content-block p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 28px;
  max-width: 720px;
}
.what-we-do .content-block p:last-child { margin-bottom: 0; }

/* --- Capabilities Grid --- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 56px;
}
.capability-item {
  padding-left: 20px;
  border-left: 2px solid var(--border);
  transition: border-color 0.3s ease;
}
.capability-item:hover { border-left-color: var(--accent); }
.capability-item h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.capability-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Publishers --- */
.publishers { text-align: center; }
.publisher-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 48px;
  margin-bottom: 32px;
}
.publisher-logo {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity 0.3s ease;
  user-select: none;
}
.publisher-logo:hover { opacity: 0.8; }
.publishers .note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: calc(var(--nav-height) + 80px) 0 64px;
  text-align: center;
}
.page-header h1 {
  margin-bottom: 16px;
}
.page-header .accent-line {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 20px;
}
.page-header p {
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Case Studies --- */
.case-studies-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.case-study {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.case-study:first-child { border-top: 1px solid var(--border); }
.case-study-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
}
.case-study-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.credential-line {
  text-align: center;
  padding: 80px 0;
}
.credential-line p {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  font-style: italic;
}

/* --- Partner Tracks --- */
.partner-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 32px;
}
.partner-track {
  padding: 48px;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}
.partner-track:hover { border-color: var(--accent-dim); }
.partner-track h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}
.partner-track p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* --- Contact Section --- */
.contact-section {
  padding: var(--section-pad) 0;
  text-align: center;
}
.contact-section h2 {
  margin-bottom: 12px;
}
.contact-section .accent-line {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 20px;
}
.contact-section > .container > p {
  margin-bottom: 48px;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 48px;
  transition: color 0.2s;
}
.contact-email:hover { color: var(--accent-light); }

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  text-align: center;
  margin-top: 12px;
}
.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--accent);
  display: none;
}
.form-status.visible { display: block; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.footer-events {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.footer-events-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-event-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.footer-event-details {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-talent {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.footer-talent p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.footer-talent a {
  color: var(--accent);
  transition: color 0.2s;
}
.footer-talent a:hover { color: var(--accent-light); }
.footer-bottom {
  padding: 32px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom p + p { margin-top: 4px; }
.footer-legal-links {
  margin-top: 12px !important;
}
.footer-legal-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: var(--accent); }

/* --- Legal Pages --- */
.legal-body {
  max-width: 720px;
}
.legal-body h2 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin-top: 48px;
  margin-bottom: 16px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: 1.05rem;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-body p {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.legal-body ul {
  margin-bottom: 16px;
  padding-left: 24px;
}
.legal-body li {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 8px;
  list-style: disc;
}
.legal-body a {
  color: var(--accent);
  transition: color 0.2s;
}
.legal-body a:hover { color: var(--accent-light); }
.legal-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Scroll Animations --- */
/* Content is visible by default for crawlers / no-JS environments.
   JS adds .js to <html>, enabling the entrance animations only
   when a real browser with JS is present. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  :root {
    --section-pad: var(--section-pad-tablet);
  }
  .container { padding: 0 32px; }
  .nav-inner { padding: 0 32px; }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .partner-tracks { gap: 40px; }
  .case-study { grid-template-columns: 160px 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
  :root {
    --section-pad: var(--section-pad-mobile);
  }
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding-top: calc(var(--nav-height) + 48px); min-height: 85vh; }
  .hero-subtitle { font-size: 0.95rem; }
  .capabilities-grid { grid-template-columns: 1fr; gap: 32px; }
  .publisher-logos { gap: 32px; }
  .publisher-logo { font-size: 1.2rem; }
  .partner-tracks { grid-template-columns: 1fr; gap: 40px; }
  .partner-track { padding: 32px; }
  .case-study {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 40px 0;
  }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .page-header { padding: calc(var(--nav-height) + 56px) 0 48px; }
  .credential-line { padding: 56px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .hero { min-height: 80vh; }
  .btn { padding: 12px 28px; font-size: 0.8rem; }
  .publisher-logos { gap: 24px; flex-direction: column; }
  .stats-grid { gap: 20px; }
}
