/*
Theme Name: B-fit Pardubice
Theme URI: https://bfit-pce.cz
Author: B-fit
Description: Vlastní téma pro privátní fitness a masážní studio B-fit Pardubice. Bez page builderu, čistý kód, tmavý prémiový vzhled.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bfit
*/

/* =========================================================
   1. DESIGN TOKENS  ──  zde měňte barvy, fonty, rádiusy
   ========================================================= */
:root {
  /* ── SVĚTLÁ VARIANTA (výchozí) – bílá / červená / černá ── */
  --bg:        #fbfaf8;   /* hlavní pozadí (teplá běl) */
  --bg-2:      #f2ede8;   /* sekce o úroveň tmavší (písková) */
  --surface:   #ffffff;   /* karty */
  --surface-2: #f6f1ec;   /* hover / vnořené karty */
  --line:      rgba(20,10,12,.10);
  --line-2:    rgba(20,10,12,.18);

  --text:      #1a1113;   /* hlavní text (skoro černá) */
  --muted:     #6a5e5c;   /* sekundární text */
  --faint:     #9b8f8c;   /* popisky, drobné */

  --accent:    #8D2124;   /* ⬅ ZNAČKOVÁ ČERVENÁ z loga */
  --accent-2:  #a82a2e;   /* světlejší odstín pro hover */
  --accent-ink:#ffffff;   /* text na červené */

  --shadow:    0 30px 60px -34px rgba(20,10,12,.30);

  /* Typografie */
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  /* Rozměry */
  --max: 1200px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 18px;
  --radius-sm: 12px;
}

/* ── TMAVÁ VARIANTA – černá / červená ──
   Zapnete přidáním třídy "theme-dark" na <body>
   (ve WordPressu stačí v functions.php: define('BFIT_DARK', true); ) */
body.theme-dark {
  --bg:        #120b0c;
  --bg-2:      #190f11;
  --surface:   #1d1315;
  --surface-2: #271a1c;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.17);

  --text:      #f3ebe9;
  --muted:     #b09a98;
  --faint:     #7a6967;

  --accent:    #c33338;   /* zesvětlená značková červená pro čitelnost na černé */
  --accent-2:  #e0474c;
  --accent-ink:#ffffff;

  --shadow:    0 40px 80px -40px rgba(0,0,0,.75);
}
body.theme-dark { background: var(--bg); }

/* =========================================================
   2. RESET & ZÁKLAD
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* jemná zrnitá / atmosférická vrstva přes pozadí */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 600px at 80% -10%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 55%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 1; }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; z-index: 1; }
.section--alt { background: var(--bg-2); }
.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
  display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

.lead { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 58ch; }

/* =========================================================
   3. TLAČÍTKA
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 100px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  border: 1px solid transparent; transition: transform .25s, background .25s, border-color .25s, color .25s;
  will-change: transform;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-2); color: var(--accent); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   4. HLAVIČKA / NAVIGACE
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
.brand .dot { color: var(--accent); }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: .95rem; color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.current { color: var(--text); }
.nav-links a.current::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); }

@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad) 2rem; transform: translateY(-130%); transition: transform .35s;
    align-items: flex-start;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .9rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}

/* =========================================================
   5. HERO
   ========================================================= */
.hero { position: relative; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem,4vw,4rem); align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  margin-bottom: 1.4rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero-meta div span { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--accent); line-height: 1; }
.hero-meta div small { color: var(--muted); font-size: .85rem; }

.hero-visual {
  aspect-ratio: 4/5; border-radius: var(--radius); position: relative; overflow: hidden;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.hero-visual .ph-label { color: var(--faint); font-size: .85rem; text-align: center; }
.hero-badge {
  position: absolute; bottom: 1.1rem; left: 1.1rem; right: 1.1rem;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: .9rem;
}
.hero-badge .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.hero-badge b { display: block; font-size: .95rem; }
.hero-badge small { color: var(--muted); font-size: .82rem; }

@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { aspect-ratio: 16/12; order: -1; } }

/* =========================================================
   6. KARTY / FEATURE GRID
   ========================================================= */
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem;
  transition: border-color .3s, transform .3s, background .3s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); background: var(--surface-2); }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 1.2rem;
  display: grid; place-items: center; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.card h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .98rem; }

.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head h1, .section-head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }
.section-head p { color: var(--muted); }

/* =========================================================
   7. KROKY (proces)
   ========================================================= */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.9rem;
  transition: border-color .3s;
}
.step:hover { border-color: var(--line-2); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  color: var(--accent); line-height: 1; min-width: 2.2ch;
}
.step h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .97rem; }

/* =========================================================
   8. REZERVAČNÍ EMBED (Reenio iframe)
   ========================================================= */
.embed-wrap {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(.5rem,1.5vw,1rem);
  box-shadow: var(--shadow);
}
.embed-frame {
  width: 100%; min-height: 720px; border: 0; border-radius: var(--radius-sm);
  background: var(--bg-2); display: block;
}
/* Oficiální Reenio widget */
.reenio-iframe { width: 100%; min-height: 360px !important; border-radius: var(--radius-sm); overflow: hidden; }
.reenio-iframe iframe { width: 100% !important; min-height: 360px !important; border: 0; display: block; border-radius: var(--radius-sm); }
.embed-note { color: var(--faint); font-size: .85rem; margin-top: 1rem; text-align: center; }

/* placeholder pro náhled (jen v preview) */
.embed-placeholder {
  min-height: 480px; border-radius: var(--radius-sm);
  border: 1px dashed var(--line-2); display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 14px, var(--surface) 14px, var(--surface) 28px);
  padding: 2rem;
}
.embed-placeholder b { font-family: var(--font-display); font-size: 1.3rem; }
.embed-placeholder span { color: var(--muted); max-width: 44ch; margin-top: .5rem; }

/* =========================================================
   9. TRENÉŘI
   ========================================================= */
.trainer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, transform .3s; }
.trainer:hover { border-color: var(--line-2); transform: translateY(-4px); }
.trainer-photo {
  aspect-ratio: 4/5; background:
    linear-gradient(170deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--surface-2);
  display: grid; place-items: center; color: var(--faint); font-size: .85rem;
}
.trainer-body { padding: 1.6rem; }
.trainer-body .role { color: var(--accent); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.trainer-body h3 { font-size: 1.5rem; margin: .35rem 0 .8rem; }
.trainer-body p { color: var(--muted); font-size: .96rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.tag { font-size: .8rem; padding: .35rem .8rem; border-radius: 100px; border: 1px solid var(--line-2); color: var(--muted); }

/* =========================================================
   10. SLUŽBY – seznam s cenou
   ========================================================= */
.price-list { display: grid; gap: 0; }
.price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-row .name { font-family: var(--font-display); font-size: 1.2rem; }
.price-row .desc { color: var(--muted); font-size: .9rem; display: block; font-family: var(--font-body); font-weight: 400; }
.price-row .dots { flex: 1; border-bottom: 1px dotted var(--line-2); margin: 0 .4rem; transform: translateY(-4px); min-width: 20px; }
.price-row .price { font-family: var(--font-display); font-weight: 700; color: var(--accent); white-space: nowrap; }

/* =========================================================
   11. KONTAKT / INFO STRIP
   ========================================================= */
.info-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-strip .cell { background: var(--surface); padding: 1.6rem; }
.info-strip .cell small { color: var(--accent); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.info-strip .cell b { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-top: .5rem; font-weight: 700; }
.info-strip .cell a:hover { color: var(--accent); }
@media (max-width: 880px) { .info-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .info-strip { grid-template-columns: 1fr; } }

/* Google mapa */
.map-embed { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 1.2rem; box-shadow: var(--shadow); background: var(--surface); }
.map-embed iframe { width: 100%; border: 0; display: block; }

/* Překryv pro obsah načítaný až po souhlasu */
.consent-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem; text-align: center;
  padding: 1.5rem; background: var(--surface);
}
.consent-overlay p { color: var(--muted); font-size: .95rem; max-width: 42ch; }
.consent-loaded .consent-overlay { display: none; }

/* Lišta souhlasu s cookies */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1000;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow);
  animation: rise .4s both;
}
.cookie-bar[hidden] { display: none; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 1.4rem; }
.cookie-text b { font-family: var(--font-display); font-size: 1.05rem; }
.cookie-text p { color: var(--muted); font-size: .9rem; margin-top: .25rem; max-width: 70ch; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: .7rem; flex: none; }
.cookie-actions .btn { padding: .7rem 1.3rem; }
.cookie-reopen { background: none; border: 0; color: var(--faint); font-size: .85rem; text-decoration: underline; cursor: pointer; font-family: var(--font-body); padding: 0; }
.cookie-reopen:hover { color: var(--accent); }
.footer-bottom a { color: var(--faint); }
.footer-bottom a:hover { color: var(--accent); }
@media (max-width: 720px) { .cookie-inner { flex-direction: column; align-items: stretch; } .cookie-actions { flex-direction: column; } }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius); padding: clamp(2rem,5vw,3.5rem);
  text-align: center;
}

/* Právní / dlouhý text (obchodní podmínky) */
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
.legal h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.legal p { margin-bottom: 1rem; color: var(--muted); }
.legal ul, .legal ol { margin: 0 0 1.1rem 1.3rem; color: var(--muted); }
.legal li { margin-bottom: .45rem; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal strong, .legal b { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; color: var(--muted); }
.cta-banner h2 { font-size: clamp(1.8rem,4vw,3rem); margin-bottom: 1rem; }
.cta-banner p { color: var(--muted); max-width: 50ch; margin: 0 auto 1.8rem; }

/* =========================================================
   12. PATIČKA
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-footer .brand { margin-bottom: 1rem; }
.site-footer p { color: var(--muted); font-size: .94rem; max-width: 40ch; }
.footer-col h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.footer-col a, .footer-col li { display: block; color: var(--muted); padding: .25rem 0; font-size: .95rem; list-style: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--faint); font-size: .85rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   13. ANIMACE PŘI NAČTENÍ / SCROLLU
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .hero h1, .hero .lead, .hero-actions, .hero-meta { animation: rise .8s both; }
  .hero .lead { animation-delay: .08s; }
  .hero-actions { animation-delay: .16s; }
  .hero-meta { animation-delay: .24s; }
  .hero-visual { animation: fade 1s .1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* utility */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.text-muted { color: var(--muted); }
