/* ============================================================
   majordome — hlavný štýl
   Tmavomodrá téma, Playfair Display + Inter
   ============================================================ */

:root {
  --background: hsl(210 50% 4%);
  --foreground: hsl(200 70% 92%);
  --card: hsl(210 45% 8%);
  --card-hover: hsl(210 45% 11%);
  --muted: hsl(210 40% 9%);
  --muted-foreground: hsl(205 25% 62%);
  --border: hsl(210 35% 16%);
  --accent: hsl(204 100% 55%);          /* walnut – modrý akcent */
  --accent-soft: hsl(204 100% 55% / 0.12);
  --cyan: #66ccff;                       /* hero akcent */
  --max: 1400px;
  --radius: 14px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Typografia ---------- */
.h1, .h2 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
.h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
}
.accent { color: var(--accent); }
.accent--cyan { color: var(--cyan); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted-foreground); margin: 1.25rem 0 0; }

.prose p { margin: 0 0 1.1rem; color: var(--muted-foreground); }
.prose p:last-child { margin-bottom: 0; }
.prose--center { max-width: 720px; margin-inline: auto; }
.prose--center p { text-align: center; }

.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }
.mt { margin-top: 1.5rem; }
.mt-lg { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Sekcie ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--muted { background: var(--muted); }
.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--narrow { margin-inline: auto; text-align: center; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: hsl(210 50% 4% / 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand { display: flex; align-items: center; gap: .6rem; }
.nav__logo { width: 34px; height: 34px; object-fit: contain; }
.nav__name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a { font-size: .95rem; color: var(--foreground); opacity: .82; transition: opacity .2s, color .2s; }
.nav__links a:hover { opacity: 1; color: var(--accent); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--foreground); transition: transform .3s, opacity .3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Subheader (podstránky) ---------- */
.subhead {
  position: sticky; top: 0; z-index: 50;
  background: hsl(210 50% 4% / 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.subhead__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.subhead__back { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted-foreground); font-size: .92rem; transition: color .2s; }
.subhead__back:hover { color: var(--accent); }
.subhead__back svg { width: 18px; height: 18px; }
.has-subhead main { min-height: 60vh; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero__frames { position: absolute; inset: 0; }
.hero__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; transform: scale(1.04); }
.hero__frame.is-active { opacity: 1; }
.hero__overlay { position: absolute; inset: 0; background:
  linear-gradient(180deg, hsl(210 50% 4% / .55) 0%, hsl(210 50% 4% / .35) 40%, hsl(210 50% 4% / .8) 100%); }
.hero__content { position: relative; z-index: 2; }
.hero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.8rem, 9vw, 6rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
.hero__subtitle { max-width: 540px; margin-top: 1.5rem; font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: hsl(200 40% 88%); }
.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .35rem; color: hsl(200 40% 85%); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; }
.hero__scroll svg { width: 22px; height: 22px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Split (text + obrázok) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split__media { display: flex; justify-content: center; }
.split__img-contain { width: 100%; max-width: 460px; object-fit: contain; filter: drop-shadow(0 30px 60px hsl(210 80% 2% / .6)); }
.stats { display: flex; flex-wrap: wrap; gap: 2.25rem; margin-top: 2.25rem; }
.stat { display: flex; flex-direction: column; }
.stat__value { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--accent); }
.stat__label { font-size: .85rem; color: var(--muted-foreground); }

/* ---------- Karty ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); max-width: 940px; margin-inline: auto; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.card--hover:hover { transform: translateY(-6px); border-color: var(--accent); background: var(--card-hover); }
.card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 1.25rem; }
.card__icon svg { width: 26px; height: 26px; }
.card__eyebrow { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-foreground); }
.card__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: .4rem 0 .7rem; }
.card__text { color: var(--muted-foreground); margin: 0; font-size: .98rem; }

/* ---------- Features (zoznam výhod / funkcií) ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2.5rem; }
.features--narrow { grid-template-columns: repeat(2, 1fr); max-width: 1040px; margin-inline: auto; }
.feature { display: flex; gap: 1.1rem; }
.feature__icon { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.feature__icon svg { width: 24px; height: 24px; }
.feature__title { font-size: 1.1rem; font-weight: 600; margin: .15rem 0 .4rem; font-family: var(--sans); }
.feature__text { color: var(--muted-foreground); margin: 0; font-size: .96rem; }

.statement { max-width: 820px; margin: clamp(2.5rem,5vw,4rem) auto 0; text-align: center; font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.45; }

/* ---------- Link so šípkou ---------- */
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.75rem; color: var(--accent); font-weight: 500; transition: gap .25s ease; }
.link-arrow svg { width: 20px; height: 20px; }
.link-arrow:hover { gap: .85rem; }

/* ---------- O nás extra ---------- */
.subhead-line { font-family: var(--serif); font-size: 1.3rem; color: var(--foreground); max-width: 680px; margin-inline: auto; margin-bottom: 2.5rem; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; color: var(--muted-foreground); }
.checklist__icon { flex: 0 0 auto; color: var(--accent); width: 24px; height: 24px; margin-top: 2px; }
.quote { position: relative; margin: clamp(2.5rem,5vw,4rem) auto 0; padding: 2.25rem 2.5rem; background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.quote p { font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.5; margin: 0; }
.quote__icon { width: 30px; height: 30px; color: var(--accent); opacity: .5; margin-bottom: 1rem; }

/* ---------- Subpage hero ---------- */
.subpage-hero { padding-block: clamp(3.5rem, 7vw, 6rem); }

/* ---------- Blog / prípadové štúdie ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .35s, border-color .35s; }
.post-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.post-card__cover { display: block; aspect-ratio: 16/9; overflow: hidden; }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.6rem; }
.post-card__date { font-size: .8rem; color: var(--muted-foreground); letter-spacing: .04em; }
.post-card__title { font-family: var(--serif); font-size: 1.3rem; margin: .4rem 0 .6rem; }
.post-card__excerpt { color: var(--muted-foreground); font-size: .96rem; margin: 0; }
.post-card .link-arrow { margin-top: 1.1rem; font-size: .95rem; }

.article-title { margin-top: .5rem; }
.article-meta { color: var(--muted-foreground); font-size: .9rem; margin-top: .5rem; }
.article-cover { width: 100%; border-radius: var(--radius); margin: 2rem 0; border: 1px solid var(--border); }
.article-body { font-size: 1.08rem; }
.article-body p { color: var(--foreground); opacity: .92; }

.error-page { min-height: 70vh; display: flex; align-items: center; }

/* ---------- Footer ---------- */
.footer { background: hsl(210 50% 3%); border-top: 1px solid var(--border); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; }
.footer__brand { font-family: var(--serif); font-size: 1.6rem; margin: 0; }
.footer__tag { color: var(--muted-foreground); margin: .5rem 0 0; max-width: 320px; }
.footer__contact { display: flex; flex-direction: column; gap: .4rem; }
.footer__label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: .3rem; }
.footer__contact a { transition: color .2s; }
.footer__contact a:hover { color: var(--accent); }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: .85rem; }

/* ---------- Reveal animácia ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__frame { transition: none; }
}

/* ---------- Responzívne ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features, .features--narrow { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: hsl(210 50% 5% / .98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: .5rem var(--pad) 1.5rem;
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav__links.is-open { max-height: 70vh; }
  .nav__links a { width: 100%; padding: .85rem 0; border-bottom: 1px solid var(--border); }
  .cards, .cards--2 { grid-template-columns: 1fr; }
}
