/* Murrieta TV — brand system: red #c8102e, ink #141414, cream #faf5ec */
:root {
  --red: #c8102e;
  --red-dark: #a00d24;
  --ink: #141414;
  --ink-soft: #2b2b2b;
  --cream: #faf5ec;
  --cream-dark: #f1e8d7;
  --white: #ffffff;
  --muted: #6f6a5e;
  --line: #e5dcc8;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(20, 20, 20, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }

/* Accessibility utilities */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -70px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* Visible keyboard focus (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.hero :focus-visible,
.stats :focus-visible,
.section-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: #ffb3c0;
}

section { scroll-margin-top: 84px; }

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin: 18px 0 20px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 14px 0 16px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }

p { margin-bottom: 14px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
}
.eyebrow-light { color: #ff8fa0; }

.lede, .section-lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 640px;
}
.section-dark .section-lede { color: #d8d2c2; }
.center .section-lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-ghost-light { border-color: rgba(250, 245, 236, 0.6); color: var(--cream); background: transparent; }
.btn-ghost-light:hover { background: var(--cream); color: var(--ink); }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { font-weight: 900; letter-spacing: 0.06em; color: var(--ink); font-size: 1.15rem; }
.brand-text span { color: var(--red); }
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero {
  background: var(--ink);
  color: var(--cream);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.35), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 720px; }
.hero .lede { color: #d8d2c2; }
.hero .lede strong { color: var(--white); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Stats */
.stats { background: var(--red); color: var(--white); padding: 34px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num { display: block; font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; }
.stat-label { font-size: 0.85rem; opacity: 0.92; }

/* Sections */
.section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark .tier-heading { color: var(--cream); }

/* Video feature */
.video-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  margin-top: 36px;
  align-items: center;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-side p { color: var(--ink-soft); }
.video-side .btn { margin-top: 8px; }

/* Pricing cards */
.tier-heading { margin: 44px 0 20px; font-size: 1.4rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
  border-top: 5px solid var(--red);
}
.card h4 { font-size: 1.3rem; }
.card-featured { border-top-color: var(--ink); transform: scale(1.03); }
.card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0;
  white-space: nowrap;
}
.price { font-size: 2.4rem; font-weight: 900; letter-spacing: -0.02em; margin: 10px 0 2px; }
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.card-note { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.card ul { list-style: none; }
.card li { padding: 7px 0 7px 28px; position: relative; font-size: 0.95rem; }
.card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 800;
}

/* Price table */
.price-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  color: var(--ink);
  min-width: 560px;
}
.price-table th, .price-table td { padding: 16px 20px; text-align: left; }
.price-table thead th {
  background: var(--red);
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.price-table tbody tr { border-top: 1px solid var(--line); }
.price-table tbody th { font-weight: 700; }
.price-table td { font-weight: 600; }

.advertise-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* Partners */
.partner-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.partner-grid li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--white);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.partner-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.services-grid article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  border: 1px solid var(--line);
}
.services-grid h3 { font-size: 1.05rem; color: var(--red); }
.services-grid p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }

/* Contact */
.contact-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }

/* Footer */
.site-footer { background: #0d0d0d; color: #b9b2a2; padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-grid .brand-text { color: var(--cream); }
.footer-tag { font-size: 0.9rem; margin-top: 12px; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a, .footer-contact a {
  color: #b9b2a2;
  text-decoration: none;
  font-size: 0.95rem;
}
.site-footer nav a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-base { border-top: 1px solid #2a2a2a; padding: 20px 24px; }
.footer-base p { font-size: 0.85rem; margin: 0; }

/* Reveal animation (JS-gated: content stays visible if JS fails) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* Test drive band */
.test-drive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(250, 245, 236, 0.06);
  border: 1px solid rgba(250, 245, 236, 0.25);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 28px;
}
.test-drive h3 { color: var(--white); margin-bottom: 6px; }
.test-drive p { color: #d8d2c2; margin: 0; max-width: 640px; }
.test-drive p strong { color: var(--white); }
.test-drive .btn { flex-shrink: 0; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.testimonial-business {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.testimonial-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.testimonial-card p { font-size: 0.95rem; color: var(--ink-soft); }
.testimonial-card a { color: var(--red); font-weight: 700; text-decoration: none; }
.testimonial-card a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .card-featured { transform: none; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .video-feature { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn, .contact-ctas .btn, .advertise-ctas .btn { width: 100%; text-align: center; }
  .test-drive { flex-direction: column; align-items: flex-start; }
  .test-drive .btn { width: 100%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Respect users who prefer reduced motion (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
