/* Tamarac Senior Center - shared site chrome (header, mobile drawer, footer).
 *
 * Derived from uploads/tsc/site.css, which the redesigned pages load in full.
 * Those pages render through tsc-redesign.php and own the whole document, so
 * site.css can style bare `body`, `p`, `a`, `h1..h3` and `*`.
 *
 * This file is for the pages the theme still renders (blog posts, legal pages,
 * search, 404). There the page body is NOT ours - a blog post ships its own
 * self-contained `.tsc-article` stylesheet - so every rule here is anchored to
 * `header.site`, `footer.site` or `.mobnav`. Nothing may leak into content.
 *
 * Keep in sync with the header/footer/mobnav sections of site.css.
 * Loaded by novamira-sandbox/tsc-chrome.php.
 */

:root{
  --blue:#2152a3; --blue-2:#1b4488; --red:#ef361d; --red-dark:#cf2a10;
  --ink:#1d2540; --muted:#5a6382; --white:#fff; --gray:#f2f4f9;
  --blue-tint:#e9eef8; --red-tint:#fdece9; --line:#e2e6f0;
  --radius:14px; --shadow-sm:0 2px 10px rgba(33,82,163,.08);
  --shadow:0 16px 40px rgba(29,37,64,.14); --maxw:1200px;
}

/* Base, scoped. site.css puts these on the bare elements; here they may only
   reach inside the chrome. */
header.site,footer.site,.mobnav{font-family:"Source Sans 3",system-ui,sans-serif;font-size:18px;line-height:1.65;color:var(--ink);-webkit-font-smoothing:antialiased;text-align:left}
header.site *,footer.site *,.mobnav *{box-sizing:border-box}
header.site img,footer.site img,.mobnav img{max-width:100%;display:block;height:auto}
header.site a,footer.site a,.mobnav a{color:var(--blue);text-decoration:none}
header.site p,footer.site p,.mobnav p{margin:0 0 1rem}
header.site a:focus-visible,header.site button:focus-visible,
footer.site a:focus-visible,
.mobnav a:focus-visible,.mobnav button:focus-visible,.mobnav summary:focus-visible{outline:3px solid var(--red);outline-offset:2px;border-radius:8px}

header.site .wrap,footer.site .wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}

header.site .btn,.mobnav .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:600;font-size:18px;border-radius:12px;padding:0 26px;height:56px;cursor:pointer;border:2px solid transparent;transition:.18s ease;text-align:center;font-family:inherit}
header.site .btn-red,.mobnav .btn-red{background:var(--red);color:#fff;border-color:var(--red)}
header.site .btn-red:hover,.mobnav .btn-red:hover{background:var(--red-dark);border-color:var(--red-dark);transform:translateY(-1px)}
header.site .btn-sm,.mobnav .btn-sm{height:50px;font-size:17px;padding:0 22px}

/* header */
header.site{position:sticky;top:0;z-index:50;background:#fff;transition:box-shadow .25s}
header.site.scrolled{box-shadow:0 1px 0 var(--line),0 6px 20px rgba(29,37,64,.08)}
header.site .nav{display:flex;align-items:center;justify-content:space-between;gap:16px;height:82px}
header.site .logo{display:flex;align-items:center;flex-shrink:0}
header.site .logo img{height:46px;width:auto}
header.site nav.primary>ul{display:flex;align-items:center;gap:0;list-style:none;margin:0;padding:0}
header.site nav.primary a.navlink{display:inline-flex;align-items:center;gap:5px;font-weight:600;font-size:17px;color:var(--blue);padding:10px 12px;border-radius:8px;position:relative;white-space:nowrap}
header.site nav.primary a.navlink[aria-current="page"]{color:var(--red)}
header.site nav.primary a.navlink::after{content:"";position:absolute;left:50%;right:50%;bottom:4px;height:2px;background:var(--red);transition:.2s}
header.site nav.primary a.navlink:hover::after,header.site nav.primary li.has-mega:hover a.navlink::after,header.site nav.primary a.navlink:focus-visible::after{left:12px;right:12px}
header.site .actions{display:flex;align-items:center;gap:13px;flex-shrink:0}
header.site .phone-link{display:inline-flex;align-items:center;gap:7px;font-weight:600;color:var(--blue);white-space:nowrap;font-size:17px}
header.site .phone-link:hover{color:var(--red)}
header.site .lang{font-size:15px;font-weight:600;color:var(--muted);white-space:nowrap}
header.site .lang a{color:var(--muted)}
header.site .lang a[aria-current]{color:var(--blue);text-decoration:underline;text-underline-offset:4px}
header.site .lang a:hover{color:var(--red)}
header.site li.has-mega{position:static}
header.site .mega{position:absolute;left:0;right:0;top:100%;background:#fff;border-top:1px solid var(--line);box-shadow:var(--shadow);border-radius:0 0 22px 22px;opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s;z-index:60}
header.site li.has-mega:hover .mega,header.site li.has-mega:focus-within .mega{opacity:1;visibility:visible;transform:none}
header.site .mega-inner{max-width:var(--maxw);margin:0 auto;padding:24px;display:grid;grid-template-columns:repeat(3,1fr) 300px;gap:8px 22px}
header.site .mega a.svc{display:flex;gap:12px;align-items:flex-start;padding:11px 12px;border-radius:12px;transition:.15s}
header.site .mega a.svc:hover{background:var(--blue-tint)}
header.site .mega .ic{width:40px;height:40px;border-radius:11px;background:var(--blue-tint);color:var(--red);display:grid;place-items:center;font-size:21px;flex-shrink:0}
header.site .mega .svc b{font-family:"Fraunces",Georgia,serif;font-weight:500;font-size:18px;color:var(--blue);display:block;line-height:1.2}
header.site .mega .svc small{font-size:14px;color:var(--muted)}
header.site .mega .feature{background:var(--blue);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:8px;color:#fff}
header.site .mega .feature b{font-family:"Fraunces",Georgia,serif;font-size:19px;color:#fff}
header.site .mega .feature p{margin:0;font-size:15px;color:#dbe3f4}
header.site .mega .feature a{color:#fff;font-weight:700;margin-top:auto}
header.site .hamburger{display:none;width:50px;height:50px;border:0;background:var(--blue-tint);color:var(--blue);border-radius:12px;font-size:26px;cursor:pointer}

/* footer */
footer.site{background:var(--blue);color:#fff;padding:58px 0 26px;margin-top:0}
footer.site .foot-top{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:32px}
footer.site .foot-brand img{height:52px;margin-bottom:14px}
footer.site .foot-tag{color:#cdd8ef;max-width:34ch;font-size:16px}
footer.site h4{font-family:"Source Sans 3",system-ui,sans-serif;font-weight:700;font-size:14px;letter-spacing:.06em;text-transform:uppercase;color:#a9b6da;margin:0 0 14px}
footer.site ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
footer.site ul a,footer.site .foot-contact a,footer.site .foot-contact div{color:#e4e9f6;font-size:16px;display:flex;gap:9px;align-items:center}
footer.site ul a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
footer.site .foot-contact{display:flex;flex-direction:column;gap:11px}
footer.site .socials{display:flex;gap:12px;margin-top:16px}
footer.site .socials a{width:44px;height:44px;border-radius:50%;border:1.5px solid rgba(255,255,255,.4);display:grid;place-items:center;color:#fff;font-size:20px}
footer.site .socials a:hover{background:var(--red);border-color:var(--red)}
footer.site .foot-bottom{border-top:2px solid var(--red);margin-top:38px;padding-top:22px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:14px;align-items:center}
footer.site .foot-bottom .legal{display:flex;gap:18px;flex-wrap:wrap}
footer.site .foot-bottom .legal a{color:#cdd8ef;font-size:15px}
footer.site .foot-bottom .cr{color:#a9b6da;font-size:15px}
footer.site .foot-bottom .cr b{color:#fff;font-weight:600}

/* mobile drawer */
.mobnav{position:fixed;inset:0;background:#fff;z-index:90;transform:translateX(100%);transition:.3s;overflow-y:auto;padding:22px}
.mobnav.open{transform:none}
.mobnav .top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.mobnav .top img{height:42px}
.mobnav .closeb{width:50px;height:50px;border:0;background:var(--blue-tint);border-radius:12px;font-size:26px;color:var(--blue);cursor:pointer}
.mobnav a.ml{display:block;padding:15px 8px;font-size:21px;font-weight:600;color:var(--blue);border-bottom:1px solid var(--line)}
.mobnav details summary{list-style:none;padding:15px 8px;font-size:21px;font-weight:600;color:var(--blue);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;cursor:pointer}
.mobnav details summary::-webkit-details-marker{display:none}
.mobnav details .sub a{display:block;padding:12px 20px;font-size:17px;color:var(--muted);border-bottom:1px solid var(--line)}
.mobnav .mob-lang{margin-top:18px;font-size:18px;font-weight:600;color:var(--muted)}

@media (max-width:1024px){
  header.site nav.primary,header.site .actions .phone-link,header.site .actions .lang,header.site .actions .btn{display:none}
  header.site .hamburger{display:grid;place-items:center}
}
@media (max-width:900px){
  footer.site .foot-top{grid-template-columns:1fr 1fr}
}
@media (max-width:600px){
  footer.site .foot-top{grid-template-columns:1fr}
}
