/*
Theme Name: Television Cost
Theme URI: https://www.televisioncost.com
Author: Yaarco Group Inc.
Description: Custom theme converted from the Television Cost static HTML/CSS site. Shared header, site-menu, and footer live in this stylesheet; each page template still carries its own page-specific styles inline, matching the structure of the original site.
Version: 1.0
Text Domain: television-cost
*/

:root{
  --ink:#161B22;
  --paper:#F1EFE8;
  --panel:#FFFFFF;
  --amber:#E08B2C;
  --amber-deep:#B96F1D;
  --blue:#4C7EBF;
  --blue-deep:#33598E;
  --steel:#6B7280;
  --line:#D9D4C6;
  --green:#3C8F5C;
  --green-deep:#2E7048;
  --font-display:'Archivo Expanded','Arial Narrow',sans-serif;
  --font-body:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  --font-mono:'IBM Plex Mono','Courier New',monospace;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{background:var(--paper); color:var(--ink); font-family:var(--font-body); line-height:1.5; -webkit-font-smoothing:antialiased;}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important; transition-duration:0.01ms !important;}
}
a{color:inherit;}
img{max-width:100%; display:block;}
.wrap{max-width:1140px; margin:0 auto; padding:0 24px;}

/* ===== GLOBAL BAR & SITE MENU (every page) ===== */
.gbar{background:var(--ink); color:var(--paper); position:sticky; top:0; left:0; right:0; height:42px; z-index:100;}
/* When logged in, WordPress's own admin toolbar sits fixed at the very
   top (32px desktop / 46px on small screens) with a very high z-index.
   Without this offset our sticky bars would stick at the true top of the
   viewport and end up hidden behind that toolbar — this only affects
   logged-in admin/editor view, never what a real visitor sees. */
body.admin-bar .gbar{top:32px;}
body.admin-bar header{top:74px;}
@media screen and (max-width:782px){
  body.admin-bar .gbar{top:46px;}
  body.admin-bar header{top:88px;}
}
.gbar-inner{max-width:1140px; margin:0 auto; padding:0 24px; height:42px; display:flex; align-items:center; gap:16px;}
.hamburger{width:30px; height:30px; flex-shrink:0; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:4px; background:none; border:none; cursor:pointer; padding:0;}
.hamburger span{display:block; width:18px; height:2px; background:var(--paper); border-radius:1px; transition:opacity .15s;}
.hamburger:hover span{opacity:0.75;}
.gbrand{display:flex; align-items:center; gap:8px; font-family:var(--font-display); font-weight:700; font-size:13.5px; color:var(--paper); text-decoration:none; flex-shrink:0;}
.gbrand .dot{width:7px; height:7px; border-radius:50%; background:var(--green);}
.gbar-links{display:flex; align-items:center; justify-content:center; gap:40px; flex:1; overflow-x:auto; white-space:nowrap; scrollbar-width:none;}
.gbar-links::-webkit-scrollbar{display:none;}
.gbar-links a{font-family:var(--font-mono); font-size:11.5px; letter-spacing:0.02em; color:#9CA3AF; text-decoration:none; transition:color .15s;}
.gbar-links a:hover{color:var(--paper);}
.gbar-links a.active{color:var(--paper); font-weight:600;}
@media (max-width:760px){.gbar-links{display:none;}}
.gemail{font-family:var(--font-mono); font-size:12px; color:#B8BCC4; text-decoration:none; white-space:nowrap;}
.gemail:hover{color:var(--paper);}
.gcart{position:relative; display:flex; align-items:center; justify-content:center; width:30px; height:30px; flex-shrink:0; color:var(--paper); text-decoration:none; opacity:0.9;}
.gcart:hover{opacity:1;}
.gcart-badge{
  position:absolute; top:-4px; right:-6px; min-width:16px; height:16px; padding:0 3px;
  border-radius:8px; background:var(--amber); color:#1a1200; font-family:var(--font-mono);
  font-size:10px; font-weight:700; display:none; align-items:center; justify-content:center; line-height:1;
}

.site-menu-overlay{position:fixed; inset:0; background:rgba(10,12,16,0.5); z-index:150; opacity:0; pointer-events:none; transition:opacity .2s ease;}
.site-menu-overlay.open{opacity:1; pointer-events:auto;}
.site-menu{
  position:fixed; top:0; left:0; bottom:0; width:300px; max-width:84vw;
  background:var(--ink); z-index:200; transform:translateX(-100%);
  transition:transform .25s ease; padding:26px 24px; overflow-y:auto;
  display:flex; flex-direction:column;
}
.site-menu.open{transform:translateX(0);}
.menu-close{align-self:flex-end; background:none; border:none; color:var(--paper); font-size:26px; line-height:1; cursor:pointer; margin-bottom:10px;}
.site-menu-title{font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; color:#9CA3AF; margin-bottom:6px;}
.site-menu a{display:flex; flex-direction:column; gap:2px; color:var(--paper); text-decoration:none; padding:13px 6px; border-bottom:1px solid #2A303B; font-family:var(--font-display); font-weight:600; font-size:15px;}
.site-menu a span{font-family:var(--font-body); font-weight:400; font-size:11.5px; color:#9CA3AF;}
.site-menu a.active{color:var(--green);}

/* ===== LOCAL HEADER (common shell — pages tint the accent color inline) ===== */
header{position:sticky; top:42px; z-index:90; background:rgba(241,239,232,0.92); backdrop-filter:blur(8px); border-bottom:1px solid var(--line);}
.nav{max-width:1140px; margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; height:64px; gap:20px;}
.brand{font-family:var(--font-display); font-weight:700; font-size:18px; text-decoration:none; color:var(--ink); display:flex; align-items:center; gap:10px; white-space:nowrap;}
.brand .dot{width:9px; height:9px; border-radius:50%; background:var(--green); box-shadow:0 0 0 3px rgba(60,143,92,0.18);}
@keyframes pulse{0%,100%{opacity:1;} 50%{opacity:0.45;}}

.btn{
  font-family:var(--font-body); font-weight:600; font-size:14px; padding:11px 20px; border-radius:3px;
  border:none; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; gap:8px;
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn:focus-visible{outline:3px solid var(--green-deep); outline-offset:2px;}
.btn-green{background:var(--green); color:#F2F7F3;}
.btn-green:hover{transform:translateY(-1px); box-shadow:0 4px 14px rgba(60,143,92,0.32);}
.btn-ghost{background:transparent; border:1.5px solid var(--ink); color:var(--ink);}
.btn-lg{padding:15px 26px; font-size:15px;}

.eyebrow{font-family:var(--font-mono); font-size:12.5px; letter-spacing:.14em; text-transform:uppercase; font-weight:600; margin-bottom:14px; display:inline-flex; align-items:center; gap:10px;}
.eyebrow .rule{width:28px; height:1.5px;}
article h2{font-family:var(--font-display); font-size:18px; margin:30px 0 10px; color:var(--ink);}
article h2:first-child{margin-top:0;}
article p{margin-bottom:12px; color:#2b3138; font-size:15px;}
article ul{margin:0 0 12px 22px; color:#2b3138; font-size:15px;}
article li{margin-bottom:6px;}

/* ===== SHARED LIGHT FOOTER (interior pages) ===== */
footer.site-footer-light{border-top:1px solid var(--line); padding:26px 0; font-size:12.5px; color:var(--steel);}
footer.site-footer-light .wrap{max-width:1140px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;}

/* ===== DARK FOOTER (home page) ===== */
footer.site-footer-dark{background:var(--ink); color:#9CA3AF; padding:48px 0 32px;}
.foot-grid{display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px; padding-bottom:32px; border-bottom:1px solid #2A303B;}
.foot-brand{font-family:var(--font-display); color:var(--paper); font-weight:700; font-size:17px;}
.foot-links{display:flex; gap:28px; font-size:13.5px; flex-wrap:wrap;}
.foot-links a{text-decoration:none; color:#9CA3AF;}
.foot-bottom{padding-top:22px; display:flex; justify-content:space-between; font-size:12.5px; flex-wrap:wrap; gap:10px;}
