/* ========== style.css (merged & cleaned) ========== */

/* Reset & base */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text, #0f172a);
  background: var(--bg, #f8fafc);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0ea5e9; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ================= Theming via CSS variables ================= */
:root{
  /* light */
  --bg:#f8fafc; --card:#ffffff; --text:#0f172a; --muted:#475569;
  --line:#e2e8f0; --brand:#0ea5e9; --brand-weak:#eaf6ff;

  /* header + controls */
  --header-h: 70px;        /* výška hlavičky */
  --header-bg:#ffffff;
  --header-border:#e2e8f0;
  --control-size:36px;
  --bar-color:#0f172a;

  /* side menu + backdrop */
  --menu-glass: rgba(255,255,255,.78);
  --menu-border: rgba(148,163,184,.35);
  --menu-shadow: -12px 16px 40px rgba(2,6,23,.18);
  --backdrop: rgba(2,6,23,.35);

  /* anchor offset pod pevným headerom */
  --anchor-offset: calc(var(--header-h) + 16px);
}

body.dark{
  /* dark */
  --bg:#0b1220; --card:#0f172a; --text:#e5e7eb; --muted:#94a3b8;
  --line:#1f2a44; --brand-weak: rgba(14,165,233,.15);

  /* header + controls */
  --header-bg:#0f172a;
  --header-border:#1f2a44;
  --bar-color:#f1f5f9;

  /* side menu + backdrop */
  --menu-glass: rgba(15,23,42,.9);
  --menu-border: rgba(255,255,255,.12);
  --menu-shadow: -12px 16px 40px rgba(0,0,0,.6);
  --backdrop: rgba(0,0,0,.55);
}

/* ================= Header (fixed, thinner) ================== */
.site-header{
  position: fixed; top:0; left:0; right:0;
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  z-index: 2000;
  overflow: visible; /* aby logo mohlo presahovať */
}
.brand{
  position: absolute;
  left: 50%;
  top: calc(50% + var(--logo-shift, 0px));
  transform: translate(-50%, 30%);
  z-index: 2;
}
.brand img{
  display: block;
  height: calc(var(--header-h) - 16px);
  width: auto;
  transform: scale(3.2);
  transform-origin: center;
}
@media (max-width: 380px){
  .brand img{ transform: scale(1.35); }
}

.header-controls{
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  display: flex; gap: 8px; align-items: center;
  z-index: 3;
}

/* Controls (theme + hamburger) */
.theme-toggle,
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--bar-color);
  cursor: pointer;
  transition: box-shadow .2s ease, transform .06s ease, background .2s;
}
.menu-toggle:active,
.theme-toggle:active { transform: scale(0.98); }

/* fix pre hamburger – 3 pásiky */
.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 3px;
  margin: 3px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

/* X animácia len pre vnútorný menu hamburger */
.menu-header-row .menu-toggle[aria-expanded="true"] .bar:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.menu-header-row .menu-toggle[aria-expanded="true"] .bar:nth-child(2){ opacity: 0; }
.menu-header-row .menu-toggle[aria-expanded="true"] .bar:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }


/* Dark – biele čiarky */
body.dark .menu-toggle{ color: #f1f5f9; }

/* ================= Content wrapper ================= */
.content{
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px;
  margin-top: calc(var(--header-h) + 16px); /* miesto pod fixed headerom */
}

/* ================= Sections / Hero / Cards ================= */
.section,
.hero,
.card,
.price-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2,6,23,.04);
}

.hero{
  padding: 40px 20px;
}
.hero h1{ margin:0 0 8px; font-size: clamp(28px, 5vw, 44px); letter-spacing:-.02em; }
.hero p{ margin:0 0 16px; color: var(--muted); }

.hero-grid{ display:block; gap:24px; }
@media (min-width:768px){
  .hero{ padding: 64px 28px; }
  .hero-grid{ display:grid; grid-template-columns: 1.2fr 1fr; gap:24px; }
}

.cards{ display:grid; gap:16px; margin-top:16px; }
@media (min-width:768px){
  .cards{ grid-template-columns: repeat(3,1fr); }
}

.pricing .price-grid{
  display:grid; gap:16px; margin-top:16px;
}
@media (min-width:768px){
  .pricing .price-grid{ grid-template-columns: repeat(3,1fr); }
}

.price-card{ padding:16px; }
.price-card.popular{ outline: 2px solid var(--brand); }

.card-logo{
  display:flex; align-items:center; justify-content:center;
  margin: -4px 0 10px;
}
.card-logo img{
  max-height: 36px; width:auto; object-fit:contain; display:block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.12));
}

/* ================= Buttons ================= */
.btn{
  display:inline-block; padding:10px 16px;
  border-radius:12px; background: var(--brand); color:#fff; font-weight:600;
  box-shadow: 0 6px 16px rgba(14,165,233,.25);
}
.btn:hover{ filter: brightness(0.98); text-decoration:none; }
.btn-ghost{
  display:inline-block; padding:10px 16px;
  border-radius:12px; background: transparent; color: var(--text);
  border:1px solid var(--line);
}
.btn-block{ display:block; width:100%; text-align:center; }

/* ================= Form ================= */
.form .grid{ display:grid; grid-template-columns: 1fr; gap:12px; }
.form label{ display:grid; gap:6px; }
.form input, .form select, .form textarea{
  padding:10px 12px; border-radius:10px; border:1px solid var(--line);
  background: var(--card); color: var(--text);
}
@media (min-width:768px){
  .form .grid{ grid-template-columns: 1fr 1fr; }
}

/* ================= Side menu (glass) ================= */
.side-menu{
  position: fixed; top: 10px; right: 10px;
  width: min(86vw, 360px); max-height: 80vh; overflow-y: auto;
  border-radius: 14px; padding: 16px 16px 22px;
  border: 1px solid var(--menu-border);
  background: var(--menu-glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--menu-shadow);
  transform: translateX(calc(100% + 20px));
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  z-index: 3000;
}
.side-menu.open{ transform: translateX(0); }

.menu-nav h2{ margin:0 0 8px; font-size:18px; color: var(--text); }
.menu-nav ul{ list-style:none; padding:0; margin:10px 0 0; display:grid; gap:8px; }
.menu-nav a{
  display:block; padding:10px 12px; border-radius:10px;
  border:1px solid rgba(226,232,240,.8);
  background: rgba(248,250,252,.85);
  font-weight:600; color: var(--text); text-decoration:none;
}
body.dark .menu-nav a{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
.menu-nav a:hover{ background: var(--brand-weak); text-decoration:none; }

/* Menu header row (hamburger + nadpis) */
.menu-header-row{
  display:flex; align-items:center; gap: 1cm; /* požadovaná medzera */
  margin-bottom:10px;
}
.menu-header-row h2{ margin:0; font-size:1.1rem; }

/* menšia verzia hamburgera vo vnútri menu */
.menu-nav .menu-toggle{ width:36px; height:36px; }
.menu-nav .menu-toggle .bar{ width:20px; height:2.5px; }

/* ================= Backdrop ================= */
.backdrop{
  position: fixed; inset:0; background: var(--backdrop); z-index: 2900;
}

/* ================= Utilities ================= */
.no-scroll{ overflow:hidden; }

/* Anchor offset pod pevný header */
section[id]{ scroll-margin-top: var(--anchor-offset); }
/* väčšie sekcie môžu mať väčší offset */
#ako, #vyhody, #objednavka { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ================= Reveal-on-scroll (for .reveal/.on) ================ */
.reveal{
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}
.reveal.on{
  opacity: 1; transform: translateY(0);
}

/* ================= Floating CTA ================= */
.fab-cta{
  position: fixed; right: 16px; bottom: 16px;
  padding: 12px 16px; border-radius: 999px;
  background: var(--brand); color:#fff; font-weight:700;
  box-shadow: 0 10px 20px rgba(2,6,23,.18);
  z-index: 2100;
}
.fab-cta:hover{ text-decoration:none; filter:brightness(.98); }

/* ================= Larger screens tweaks ================= */
@media (min-width: 1024px){
  .content{ padding: 40px 24px; }
}
