/* ==========================================================
   ACW TV — site stylesheet
   One file for every page. Colors and fonts live in :root.
   ========================================================== */

:root {
  --bg:        #131115;
  --bg-alt:    #1b181e;
  --card:      #221e26;
  --line:      #36303b;
  --text:      #f1e9d8;   /* warm cream, like old TV credits */
  --muted:     #b5aa98;
  --accent:    #e9a23b;   /* amber */
  --accent-dk: #c4801f;
  --red:       #c8442f;
  --radius:    10px;
  --wrap:      1180px;
  --display:   'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --body:      'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; letter-spacing: .03em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19,17,21,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.brand:hover { text-decoration: none; }
.brand img { width: 150px; }
.tagline { font-family: var(--display); font-size: 1.05rem; letter-spacing: .12em; border-left: 1px solid var(--line); padding-left: 14px; }

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a, .sub-toggle {
  display: block; padding: 10px 12px; border-radius: 6px; white-space: nowrap;
  color: var(--text); font: 600 15px/1.2 var(--body);
  background: none; border: 0; cursor: pointer;
}
.site-nav a:hover, .sub-toggle:hover, .has-sub.open > .sub-toggle { background: var(--card); color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.sub-toggle::after { content: ""; display: inline-block; margin-left: 7px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }

.has-sub { position: relative; }
.sub {
  display: none; position: absolute; right: 0; top: 100%; min-width: 240px;
  list-style: none; margin: 6px 0 0; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
}
.has-sub.open > .sub { display: block; }
@media (hover: hover) and (min-width: 961px) {
  .has-sub:hover > .sub { display: block; }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; } /* hover bridge */
}

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }

@media (max-width: 1180px) { .tagline { display: none; } }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 20px; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; }
  .sub { position: static; box-shadow: none; margin: 0 0 6px 12px; background: var(--bg-alt); }
  .sub-toggle { width: 100%; text-align: left; }
}

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.kicker { font-family: var(--display); color: var(--accent); letter-spacing: .18em; font-size: 1.1rem; margin-bottom: .3em; display: block; }

.page-head { padding: 60px 0 30px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 760px; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; color: var(--accent); }

/* ---------- Hero slider ---------- */
.hero { position: relative; background: #000; }
.slider { position: relative; aspect-ratio: 1920 / 700; max-height: 620px; width: 100%; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider .prev, .slider .next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; font-size: 22px;
}
.slider .prev { left: 14px; } .slider .next { right: 14px; }
.slider .prev:hover, .slider .next:hover { background: var(--accent); color: #000; }

.stat-band { background: var(--red); text-align: center; padding: 26px 20px; }
.stat-band h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.stat-band p { margin: 0; font-family: var(--display); font-size: clamp(1.2rem, 2.5vw, 1.6rem); letter-spacing: .06em; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-channels { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-thumbs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.grid-logos { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }

.channel {
  display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease;
}
.channel:hover { transform: translateY(-4px); border-color: var(--accent); }
.channel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card.premium { text-align: center; padding: 0 0 22px; overflow: hidden; }
.card.premium img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 18px; }
.card.premium p { margin: 0 18px; }
.price { font-family: var(--display); font-size: 1.5rem; color: var(--accent); letter-spacing: .04em; }

.thumb { border-radius: 6px; overflow: hidden; background: var(--card); }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.92); transition: filter .2s; }
.thumb:hover img { filter: saturate(1.15); }

.logo-tile { background: #fff; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 18px; aspect-ratio: 16/9; }
.logo-tile img { max-height: 70px; width: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #1a1205;
  font: 700 15px/1 var(--body); letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-dk); text-decoration: none; color: #1a1205; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #1a1205; }

/* ---------- Pricing ---------- */
.plans { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.plan { display: flex; flex-direction: column; text-align: center; }
.plan h3 { color: var(--text); margin-bottom: .2em; }
.plan .amount { font-family: var(--display); font-size: 2.6rem; color: var(--accent); line-height: 1; }
.plan .setup { color: var(--muted); font-weight: 600; margin: 6px 0 16px; }
.plan .details { flex: 1; font-size: .97rem; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.checklist { list-style: none; padding: 0; }
.checklist li { padding: 6px 0 6px 32px; position: relative; }
.checklist li::before { position: absolute; left: 0; top: 6px; font-weight: 700; }
.checklist.yes li::before { content: "✓"; color: #6fcf7a; }
.checklist.no li::before  { content: "✕"; color: var(--red); }

.faq { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin-bottom: 26px; }
.faq h3 { margin-bottom: .3em; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; }
.profile { text-align: center; }
.profile img { border-radius: var(--radius); margin: 0 auto 14px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .profile { max-width: 320px; margin: 0 auto; } }

/* ---------- Library ---------- */
.lib-cols { columns: 3 260px; column-gap: 34px; }
.lib-cols .group { break-inside: avoid; margin-bottom: 26px; }
.lib-cols h3 { color: var(--accent); font-size: 1.35rem; }
.lib-cols ul { list-style: none; padding: 0; margin: 0; }
.lib-cols li { padding: 2px 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.lib-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Forms ---------- */
.form { max-width: 640px; }
.form label { display: block; font-weight: 600; margin: 16px 0 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--text);
  font: inherit;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form textarea { min-height: 170px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { margin-top: 22px; }
.notice { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; }
.notice.ok  { background: rgba(111,207,122,.12); border: 1px solid #6fcf7a; }
.notice.err { background: rgba(200,68,47,.14); border: 1px solid var(--red); }

.contact-grid { display: grid; grid-template-columns: 1fr 300px; gap: 50px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0c0b0e; border-top: 1px solid var(--line); margin-top: 0; padding-top: 50px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-grid h3 { font-size: 1.3rem; color: var(--accent); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 3px 0; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--accent); }
.footer-grid img { margin-bottom: 12px; }
.copyright { border-top: 1px solid var(--line); margin-top: 36px; padding: 20px; color: var(--muted); text-align: center; font-size: .9rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
