/* TVCANADA site chrome: header, mobile menu, language banner, page layout, footer.
   Tokens and components are in tokens.css. Design direction B (dark header/hero). */

/* ---------- Utilities ---------- */
.sr-only { position: absolute !important; 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; left: 12px; top: -60px; z-index: 200; background: #fff; color: var(--brand-3); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.eyebrow { display: inline-block; font-size: var(--fs-sm); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); margin: 0 0 var(--s-3); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 60; background: rgba(20,18,31,.96); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 72px; }
.site-head .logo { flex: none; }
.site-head .logo img { height: 34px; width: auto; display: block; }
.main-nav { margin-left: auto; display: flex; align-items: center; }
.main-nav .menu { display: flex; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.main-nav .menu a { color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 0; }
.main-nav .menu a:hover, .main-nav .menu .current-menu-item a { color: #C9A2FF; }
.main-nav .nav-cta { display: none; }
.site-head .lang { background: rgba(255,255,255,.1); }
.site-head .lang a { color: var(--on-dark-2); }
.site-head .lang a[aria-current="true"] { background: #fff; color: var(--brand-3); }
.site-head .head-cta { min-height: 44px; padding: 10px 20px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; cursor: pointer; place-items: center; }
.menu-btn path { transition: transform .2s ease, opacity .2s ease; transform-origin: center; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .site-head .head-cta { display: none; }
  .site-head > .wrap > .lang { margin-left: auto; }
  .site-head > .wrap > .lang + .head-cta + .menu-btn { margin-left: 0; }
  .main-nav { position: fixed; inset: 72px 0 auto 0; margin: 0; display: none; flex-direction: column; align-items: stretch; gap: var(--s-4); padding: var(--s-5) var(--s-5) var(--s-6); background: var(--dark); border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 40px rgba(0,0,0,.4); max-height: calc(100vh - 72px); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav .menu { flex-direction: column; gap: 0; }
  .main-nav .menu a { display: block; padding: 14px 4px; font-size: var(--fs-lg); border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav .nav-cta { display: inline-flex; width: 100%; }
}
@media (max-width: 400px) { .site-head .logo img { height: 28px; } .site-head .wrap { gap: var(--s-3); } }
body.menu-open { overflow: hidden; }

/* ---------- French suggestion banner (never a redirect) ---------- */
.lang-suggest { background: var(--tint); border-bottom: 1px solid var(--line); }
.lang-suggest .wrap { display: flex; align-items: center; gap: var(--s-4); padding-top: 10px; padding-bottom: 10px; }
.lang-suggest p { margin: 0; font-weight: 600; }
.lang-suggest .btn { min-height: 38px; padding: 6px 16px; font-size: var(--fs-sm); }
.lang-suggest-close { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.lang-suggest-close:hover { background: #fff; }

/* ---------- Hero (base; full homepage hero arrives in Phase 3) ---------- */
.hero { position: relative; overflow: hidden; padding: var(--s-8) 0 var(--s-9); color: var(--on-dark);
  background: radial-gradient(800px 520px at 80% 0%, rgba(155,84,243,.38), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(52,56,166,.35), transparent 60%), var(--dark); }
.hero h1 { color: #fff; max-width: 820px; }
.hero .lead { font-size: var(--fs-lg); color: var(--on-dark-2); max-width: 640px; margin-bottom: var(--s-6); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-secondary:hover { background: rgba(255,255,255,.08); color: #fff; }
.hero .eyebrow { color: #C9A2FF; }

/* ---------- Inner pages ---------- */
.page-head { background: var(--dark); color: var(--on-dark); padding: var(--s-7) 0 var(--s-6); }
.page-head h1 { color: #fff; margin: 0; }
.crumbs { font-size: var(--fs-sm); color: var(--on-dark-2); margin-bottom: var(--s-3); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--on-dark-2); }
.crumbs a:hover { color: #fff; }
.page-body { padding: var(--s-7) 0 var(--s-8); }
.entry-content > :where(:not(.alignfull):not(.alignwide)) { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: var(--s-5); padding-right: var(--s-5); }
.entry-content > .alignwide { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--s-5); padding-right: var(--s-5); }
.entry-content h2 { margin-top: var(--s-7); }
.entry-content h3 { margin-top: var(--s-6); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.home-content > * { max-width: none; padding: 0; }

/* ---------- Footer ---------- */
.site-foot { background: var(--dark); color: var(--on-dark-2); padding: var(--s-8) 0 var(--s-6); font-size: var(--fs-sm); }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-6); }
.foot-logo { height: 33px; width: auto; margin-bottom: var(--s-4); }
.foot-about { max-width: 300px; }
.foot-h { color: #fff; font-size: 15px; margin: 0 0 var(--s-3); }
.foot-list, .legal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--on-dark-2); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot .lang-dark { margin-top: 6px; }
.site-foot .lang-dark a[aria-current="true"] { background: #fff; color: var(--brand-3); }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: var(--s-7); padding-top: var(--s-5); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-3); }
.legal-list { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal .copy { margin: 0; }
@media (max-width: 860px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .site-foot { padding-bottom: 104px; } }
@media (max-width: 480px) { .site-foot .cols { grid-template-columns: 1fr; } }

/* Lists inside page content line up with paragraphs */
.entry-content > ul, .entry-content > ol { padding-left: calc(var(--s-5) + 1.3em); }
.entry-content > .wp-block-table { overflow-x: auto; }


/* Reusable sections placed inside a normal page span the full width */
.entry-content > section { max-width: none; padding-left: 0; padding-right: 0; margin-top: var(--s-7); }
.entry-content > section.trial-sec { padding-top: var(--s-7); }
.page-body { padding-bottom: 0; }


/* Landing pages and the homepage: sections stack with no extra gap */
.home-content > section { margin-top: 0; }


/* Footer: 5 columns */
.site-foot .cols { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; }
@media (max-width: 1000px) { .site-foot .cols { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }


/* Floating WhatsApp button (desktop/tablet; phones use the bottom bar) */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 70; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .15s ease, box-shadow .15s ease; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 10px 30px rgba(37,211,102,.45); color: #fff; }
.wa-float svg { width: 34px; height: 34px; }
.wa-float-tip { position: absolute; right: 72px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .15s; }
.wa-float:hover .wa-float-tip, .wa-float:focus-visible .wa-float-tip { opacity: 1; }
@media (max-width: 720px) { .wa-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float:hover { transition: none; transform: none; } }


/* French suggestion as a floating box: never pushes the page down (no layout shift) */
.lang-suggest { position: fixed; left: 20px; bottom: 20px; z-index: 75; max-width: 360px; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); background: #fff; }
.lang-suggest .wrap { padding: 12px 12px 12px 16px; gap: 10px; flex-wrap: wrap; max-width: none; }
@media (max-width: 720px) { .lang-suggest { left: 12px; right: 12px; bottom: 84px; max-width: none; } }


/* Cookie consent banner (only rendered when a GA4 ID is set). Fixed position: no layout shift. */
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 80; max-width: 420px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px 18px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 12px; font-size: var(--fs-sm); line-height: 1.5; }
.cookie-banner a { color: var(--brand-3); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; min-height: 42px; padding: 8px 16px; font-size: var(--fs-sm); }
@media (max-width: 720px) { .cookie-banner { left: 12px; right: 12px; bottom: 84px; max-width: none; } }
.cookie-settings { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-size: var(--fs-sm); opacity: .8; text-decoration: underline; cursor: pointer; }
.cookie-settings:hover { opacity: 1; }
.cookie-settings[hidden] { display: none; }
/* Phone numbers never break across lines (audit 2026-11-24). */
.site-foot a[href*="whatsapp"], .final-support small { white-space: nowrap; }
