/* Muscle Depot — design system. Brand: red #E00000, black, white. Mobile-first. */
:root{
  --bg:#ffffff; --surface:#f6f7f8; --text:#15181b; --muted:#5b6168;
  --accent:#E00000; --accent-hover:#b80000; --accent-ink:#ffffff;
  --border:#e4e6ea; --ink-chip:transparent;
  --radius:12px; --radius-sm:8px; --shadow:0 1px 3px rgba(0,0,0,.08);
  --shadow-md:0 6px 20px rgba(0,0,0,.10);
  --maxw:1100px; --gutter:16px; --header-h:76px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#111417; --surface:#1a1e22; --text:#f2f4f6; --muted:#a7adb4;
    --accent:#ff3b2f; --accent-hover:#ff5a50; --accent-ink:#1a0000;
    --border:#2a2f35; --ink-chip:#ffffff; --shadow:0 1px 3px rgba(0,0,0,.4);
    --shadow-md:0 8px 24px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"]{
  --bg:#111417; --surface:#1a1e22; --text:#f2f4f6; --muted:#a7adb4;
  --accent:#ff3b2f; --accent-hover:#ff5a50; --accent-ink:#1a0000;
  --border:#2a2f35; --ink-chip:#ffffff;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto} *{animation:none!important;transition:none!important}}
body{
  margin:0; background:var(--bg); color:var(--text); font-family:var(--font);
  font-size:17px; line-height:1.55; -webkit-text-size-adjust:100%;
  text-rendering:optimizeLegibility; overflow-x:hidden;
}
img{max-width:100%; height:auto; display:block}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{line-height:1.15; letter-spacing:-.01em; margin:0 0 .5em; text-wrap:balance}
p{text-wrap:pretty}
h1{font-size:clamp(1.9rem,6vw,2.75rem); font-weight:800}
h2{font-size:clamp(1.4rem,4.5vw,2rem); font-weight:800}
h3{font-size:1.2rem; font-weight:700}
p{margin:0 0 1em}
.container{max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter)}
.section{padding:48px 0}
.section--tight{padding:32px 0}
.lead{font-size:1.12rem; color:var(--muted); max-width:62ch}
.eyebrow{color:var(--accent); font-weight:700; text-transform:uppercase; letter-spacing:.08em; font-size:.82rem; margin:0 0 .4em}
.center{text-align:center}
:focus-visible{outline:3px solid var(--accent); outline-offset:2px; border-radius:4px}
.skip{position:absolute; left:-999px; top:0; background:var(--accent); color:#fff; padding:10px 16px; z-index:200}
.skip:focus{left:8px; top:8px}

/* ---- Header ---- */
/* Header is always a white bar (brand logo is designed for white), independent of dark mode.
   Re-scope the palette vars to light so all descendants (nav, menu, lang, Call button) read correctly. */
.site-header{position:sticky; top:0; z-index:100;
  --bg:#ffffff; --surface:#f6f7f8; --text:#15181b; --muted:#5b6168; --border:#e4e6ea;
  --accent:#E00000; --accent-hover:#b80000; --accent-ink:#ffffff;
  background:#ffffff; border-bottom:1px solid #e4e6ea; min-height:var(--header-h)}
.site-header .container{display:flex; align-items:center; gap:16px; min-height:var(--header-h)}
.brand{display:flex; align-items:center; gap:10px; margin-right:auto}
.brand img{height:40px; width:auto}
@media (min-width:861px){ .brand img{height:52px} }
.topcall{display:none; align-items:center; gap:6px; font-weight:700; color:var(--text); white-space:nowrap}
.callbtn{padding:9px 14px; min-height:44px; font-size:.95rem; white-space:nowrap; gap:7px}
.callbtn svg{width:18px;height:18px}
@media (max-width:520px){ .callbtn .callnum{display:none} .callbtn{padding:0;width:44px} }
.nav{display:flex; gap:4px; align-items:center}
.nav a{color:var(--text); font-weight:600; font-size:.98rem; padding:8px 12px; border-radius:var(--radius-sm)}
.nav a:hover{background:var(--surface); text-decoration:none}
.nav a[aria-current="page"]{color:var(--accent)}
.nav .btn{margin-left:4px}
.lang{display:flex; gap:2px; align-items:center; font-size:.85rem; font-weight:700}
.lang a{color:var(--muted); padding:6px 7px; border-radius:6px}
.lang a[aria-current="true"]{color:var(--text); background:var(--surface)}
.menu-btn{display:inline-flex; margin-left:8px; background:none; border:1px solid var(--border);
  border-radius:var(--radius-sm); width:44px; height:44px; align-items:center; justify-content:center; cursor:pointer; color:var(--text)}
.menu-btn svg{width:22px;height:22px}
@media (max-width:860px){
  .nav{position:fixed; inset:var(--header-h) 0 auto 0; flex-direction:column; align-items:stretch;
    background:var(--bg); border-bottom:1px solid var(--border); padding:8px var(--gutter) 16px;
    gap:2px; transform:translateY(-120%); transition:transform .2s ease; box-shadow:var(--shadow-md)}
  .nav[data-open="true"]{transform:translateY(0)}
  .nav a{padding:12px; font-size:1.05rem}
  .nav .btn{margin:6px 0 0}
  .nav .lang{justify-content:center; margin-top:6px}
}
@media (min-width:861px){ .menu-btn{display:none} .topcall{display:inline-flex} }

/* ---- Buttons ---- */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:700; font-size:1rem; padding:12px 20px; border-radius:var(--radius-sm);
  min-height:48px; border:2px solid transparent; cursor:pointer; text-align:center; line-height:1.1}
.btn:hover{text-decoration:none}
.btn--primary{background:var(--accent); color:var(--accent-ink)}
.btn--primary:hover{background:var(--accent-hover)}
.btn--ghost{background:transparent; color:var(--text); border-color:var(--border)}
.btn--ghost:hover{border-color:var(--accent); color:var(--accent)}
.btn svg{width:20px;height:20px;flex:none}

/* ---- Hero ---- */
.hero{position:relative; color:#fff; isolation:isolate}
.hero__media{position:absolute; inset:0; z-index:-2; overflow:hidden}
.hero__media img{width:100%; height:100%; object-fit:cover}
.hero::after{content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg,rgba(10,10,12,.55),rgba(10,10,12,.78))}
.hero .container{padding-top:64px; padding-bottom:64px}
.hero h1{color:#fff; max-width:16ch}
.hero .lead{color:rgba(255,255,255,.9)}
.hero__cta{display:flex; flex-wrap:wrap; gap:12px; margin-top:24px}
.hero__cta .btn--ghost{color:#fff; border-color:rgba(255,255,255,.55)}
.hero__cta .btn--ghost:hover{background:rgba(255,255,255,.12); border-color:#fff; color:#fff}

/* ---- Cards / grids ---- */
.grid{display:grid; gap:16px}
.cards{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:18px; box-shadow:var(--shadow)}
.card h3{margin-top:0}

/* Brand grid */
.brands{grid-template-columns:repeat(6,1fr); gap:14px}         /* 6 × 5 = 30 on desktop */
@media (max-width:900px){ .brands{grid-template-columns:repeat(4,1fr)} }
@media (max-width:600px){ .brands{grid-template-columns:repeat(3,1fr)} }
@media (max-width:400px){ .brands{grid-template-columns:repeat(2,1fr)} }
.brand-tile{display:flex; align-items:center; justify-content:center; text-align:center;
  background:#ffffff; border:1px solid var(--border); border-radius:var(--radius);
  padding:22px 18px; min-height:112px; font-weight:700; font-size:.92rem; color:#15181b}
.brand-tile img{max-height:62px; max-width:100%; width:auto; object-fit:contain}

/* Gallery */
.gallery{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.gallery a{display:block; border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); box-shadow:var(--shadow)}
.gallery img{aspect-ratio:4/3; object-fit:cover; width:100%; transition:transform .3s ease}
.gallery a:hover img{transform:scale(1.04)}

/* Feature row */
.feature{display:grid; gap:24px; align-items:center}
@media (min-width:760px){ .feature{grid-template-columns:1fr 1fr} .feature--rev>*:first-child{order:2} }
.feature img, .feature .vidwrap{border-radius:var(--radius); box-shadow:var(--shadow-md); overflow:hidden}

/* Video facade */
.vidwrap{position:relative; aspect-ratio:16/9; background:#000; cursor:pointer}
.vidwrap img{width:100%;height:100%;object-fit:cover; opacity:.85}
.vidwrap .play{position:absolute; inset:0; margin:auto; width:72px; height:72px; border:none;
  border-radius:50%; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer}
.vidwrap .play svg{width:30px;height:30px; margin-left:4px}
.vidwrap iframe{position:absolute; inset:0; width:100%; height:100%; border:0}

/* Hours table */
.hours{width:100%; border-collapse:collapse; max-width:420px}
.hours th,.hours td{text-align:left; padding:10px 8px; border-bottom:1px solid var(--border)}
.hours td:last-child{text-align:right; font-variant-numeric:tabular-nums}
.hours tr.today{color:var(--accent); font-weight:700}

/* FAQ */
.faq details{border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface); margin-bottom:10px; padding:0 16px}
.faq summary{cursor:pointer; padding:16px 0; font-weight:700; list-style:none; display:flex; justify-content:space-between; gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+"; color:var(--accent); font-size:1.4rem; line-height:1}
.faq details[open] summary::after{content:"–"}
.faq details>p{margin:0 0 16px; color:var(--muted)}

/* Contact / NAP */
.nap{display:grid; gap:10px; font-size:1.05rem}
.nap .row{display:flex; gap:10px; align-items:flex-start}
.nap svg{width:22px;height:22px;color:var(--accent);flex:none;margin-top:2px}
.map-embed{border:0; border-radius:var(--radius); width:100%; aspect-ratio:16/10; box-shadow:var(--shadow)}

/* Alerts / notes */
.note{background:var(--surface); border:1px solid var(--border); border-left:4px solid var(--accent);
  border-radius:var(--radius-sm); padding:14px 16px; color:var(--muted)}
.badge{display:inline-block; background:var(--accent); color:#fff; font-weight:700;
  font-size:.72rem; letter-spacing:.05em; text-transform:uppercase; padding:3px 9px; border-radius:999px}
.badge.is-open{background:#1e7f4f}
.badge.is-closed{background:var(--muted)}
.hstatus{display:none; margin-left:8px; font-size:.6rem; vertical-align:middle}
.hours tr.today .hstatus{display:inline-block}

/* ---- Footer ---- */
/* Footer is a white bar in both modes (matches header; brand logo reads on white) */
.site-footer{
  --bg:#ffffff; --surface:#f6f7f8; --text:#15181b; --muted:#5b6168; --border:#e4e6ea;
  --accent:#E00000; --accent-hover:#b80000; --accent-ink:#ffffff;
  background:#ffffff; border-top:1px solid #e4e6ea; margin-top:40px; padding:40px 0 28px; font-size:.95rem}
.site-footer .cols>div:first-child img{height:52px; width:auto; margin-bottom:12px}
.site-footer .cols>div:first-child a svg{width:18px; height:18px; flex:none}
.fbpanel{display:flex; gap:20px; align-items:flex-start; background:var(--surface);
  border:1px solid var(--border); border-left:4px solid var(--accent); border-radius:var(--radius);
  padding:24px; margin-top:24px; max-width:760px}
.fbpanel__icon{width:52px; height:52px; flex:none; color:#1877F2}
@media (max-width:520px){ .fbpanel{flex-direction:column; gap:14px} }
/* Scrollable Facebook feed box — drop a feed-widget embed inside; posts scroll on-page */
.feed-scroll{max-height:640px; overflow-y:auto; -webkit-overflow-scrolling:touch;
  border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); padding:14px}
.feed-scroll::-webkit-scrollbar{width:10px}
.feed-scroll::-webkit-scrollbar-thumb{background:var(--border); border-radius:999px}
.fb-post{background:#fff; border:1px solid var(--border); border-radius:var(--radius-sm); padding:14px; margin-bottom:12px}
.fb-post:last-child{margin-bottom:0}
.fb-post img{width:100%; border-radius:6px; margin-bottom:10px}
.fb-post__text{margin:0 0 10px; color:#15181b; white-space:pre-line; font-size:.96rem}
.fb-post__meta{display:flex; justify-content:space-between; gap:12px; font-size:.84rem; color:#5b6168}
.site-footer .cols{display:grid; gap:28px; grid-template-columns:1fr}
@media(min-width:680px){ .site-footer .cols{grid-template-columns:2fr 1fr 1fr} }
.site-footer h4{font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin:0 0 12px}
.site-footer a{color:var(--text)}
.site-footer ul{list-style:none; margin:0; padding:0; display:grid; gap:8px}
.site-footer .legal{margin-top:28px; padding-top:18px; border-top:1px solid var(--border); color:var(--muted);
  display:flex; flex-wrap:wrap; gap:8px 18px; justify-content:space-between; font-size:.85rem}
.socials{display:flex; gap:10px}
.socials a{display:inline-flex; width:40px; height:40px; align-items:center; justify-content:center;
  border:1px solid var(--border); border-radius:50%; color:var(--text)}
.socials a:hover{border-color:var(--accent); color:var(--accent)}
.socials svg{width:20px;height:20px}

/* ---- Consent banner ---- */
.consent{position:fixed; inset:auto 0 0 0; z-index:300; background:var(--bg); border-top:1px solid var(--border);
  box-shadow:0 -6px 24px rgba(0,0,0,.14); padding:16px var(--gutter)}
.consent__in{max-width:var(--maxw); margin-inline:auto; display:grid; gap:12px}
@media(min-width:760px){ .consent__in{grid-template-columns:1fr auto; align-items:center} }
.consent p{margin:0; font-size:.92rem; color:var(--muted)}
.consent__btns{display:flex; gap:10px; flex-wrap:wrap}
.consent .btn{padding:10px 18px; min-height:44px}
.hidden{display:none!important}

/* ---- Lightbox ---- */
.gallery a{cursor:zoom-in}
.lightbox{position:fixed; inset:0; z-index:400; background:rgba(8,8,10,.9);
  display:none; align-items:center; justify-content:center; padding:24px}
.lightbox.open{display:flex}
.lightbox img{max-width:95vw; max-height:90vh; width:auto; height:auto; border-radius:10px; box-shadow:0 10px 40px rgba(0,0,0,.6)}
.lightbox .lb-close{position:absolute; top:12px; right:16px; width:48px; height:48px; border:0;
  background:rgba(255,255,255,.12); color:#fff; font-size:2rem; line-height:1; border-radius:50%; cursor:pointer}
.lightbox .lb-close:hover{background:rgba(255,255,255,.22)}

.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
