/* ============================================================
   Jozef Halcin — SEO špecialista  ·  homepage
   Fluidný dizajn (clamp + grid auto-fit), tmavý prémiový smer
   ============================================================ */

:root {
  --bg: #0C0E10;
  --card: #14171A;
  --text: #F2F3F1;
  --accent: #C6F542;
  --accent-hover: #d7ff6b;
  --on-accent: #0C0E10;

  --sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --pad-x: clamp(18px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body, p, li, h1, h2, h3 { text-wrap: pretty; }
h1, h2, h3, p { margin: 0; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; }

::selection { background: var(--accent); color: var(--on-accent); }

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

.accent { color: var(--accent); }
.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-radius: 99px;
  padding: 16px 28px;
  transition: filter .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { filter: brightness(.93); color: var(--on-accent); }
.btn--outline {
  color: var(--text);
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.25);
}
.btn--outline:hover { border-color: var(--text); color: var(--text); background: rgba(255,255,255,.04); }
.btn--dark { background: var(--on-accent); color: var(--text); font-size: 17px; padding: 18px 36px; }
.btn--dark:hover { filter: brightness(1.3); color: var(--text); }

/* ============================================================
   NAV (sticky, flex-wrap na mobile)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12,14,16,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-block: 16px;
}
.logo {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: clamp(15px, 2vw, 17px);
  letter-spacing: .02em;
}
.logo__accent { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px clamp(18px, 2.6vw, 32px);
  font-size: 14.5px;
}
.nav__link { color: rgba(242,243,241,.72); text-decoration: none; }
.nav__link:hover { color: var(--text); }
.nav__cta {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 99px;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .15s ease;
}
.nav__cta:hover { filter: brightness(.93); color: var(--on-accent); }

/* ---------- hamburger + mobilné menu ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,.09);
  padding: 84px var(--pad-x) 28px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
}
.mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform .28s ease, visibility 0s;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a:not(.nav__cta) {
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.mobile-menu a:not(.nav__cta):hover { color: var(--accent); }
.mobile-menu__cta { text-align: center; margin-top: 18px; }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .hamburger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(48px, 7vw, 72px) 0 0; }
.hero__inner { padding-bottom: clamp(36px, 5vw, 48px); }
.eyebrow {
  font-family: var(--mono);
  font-size: clamp(11px, 1.6vw, 13px);
  color: var(--accent);
  letter-spacing: .08em;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.02em;
  max-width: 15ch;
}
.hero__lead {
  margin-top: 26px;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.55;
  color: rgba(242,243,241,.68);
  max-width: 62ch;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px 32px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 28px 0 34px;
}
.stat__num { font-size: clamp(30px, 4vw, 40px); font-weight: 700; color: var(--accent); }
.stat__label { font-size: 14px; color: rgba(242,243,241,.6); margin-top: 4px; }

/* ============================================================
   SECTIONS (spoločné)
   ============================================================ */
.section { padding-block: clamp(52px, 7vw, 72px); border-top: 1px solid rgba(255,255,255,.09); }
.section h2,
.clients h2 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 700; letter-spacing: -.01em; }
[id] { scroll-margin-top: 80px; }

/* ---------- Referencie ---------- */
.refs__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.mono-note { font-family: var(--mono); font-size: 13px; color: rgba(242,243,241,.5); }
.refs__list { display: flex; flex-direction: column; gap: 20px; }
.ref-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
}
.ref-card__body {
  padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mono-tag { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.ref-card__goal { font-size: 13.5px; line-height: 1.5; color: rgba(242,243,241,.55); }
.ref-card__goal strong { color: var(--accent); font-weight: 700; }
.ref-card__headline { font-size: clamp(21px, 2.6vw, 26px); font-weight: 700; line-height: 1.25; }
.ref-card__metrics { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: rgba(242,243,241,.65); }
.ref-card__metrics strong { color: var(--text); }
.ref-card__quote {
  margin: 0;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(242,243,241,.78);
  font-style: italic;
}
.ref-card__author { font-size: 13.5px; color: rgba(242,243,241,.5); }
.ref-card__media { display: flex; align-items: center; padding: clamp(16px, 2vw, 24px); }
.ref-card__media img { width: 100%; border-radius: 10px; display: block; height: auto; }

/* Karta 2 (revizieba): na širších obrazovkách obrázok vľavo, text vpravo */
@media (min-width: 640px) {
  .ref-card--flip .ref-card__body { order: 2; }
  .ref-card--flip .ref-card__media { order: 1; }
}

/* ---------- Klienti (marquee, full-bleed) ---------- */
.clients { padding-block: clamp(52px, 7vw, 64px); border-top: 1px solid rgba(255,255,255,.09); overflow: hidden; }
.clients__head { margin-bottom: 36px; }
.mono-label { font-family: var(--mono); font-size: clamp(11px, 1.6vw, 13px); color: var(--accent); letter-spacing: .08em; margin-bottom: 12px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(44px, 6vw, 72px);
  width: max-content;
  animation: marquee 56s linear infinite;
}
.marquee__track img { width: auto; flex: 0 0 auto; opacity: .7; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Benefity ---------- */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 900px) { .benefits__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefits__grid { grid-template-columns: 1fr; } }
.benefits h2 { margin-bottom: clamp(28px, 4vw, 44px); }
.benefit {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 28px;
}
.mono-num { display: block; font-family: var(--mono); color: var(--accent); font-size: 13px; margin-bottom: 12px; }
.benefit__text { font-size: 19px; font-weight: 500; line-height: 1.4; }

/* ---------- O mne + spolupráca ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(28px, 3vw, 44px);
  align-items: start;
}
@media (max-width: 768px) { .about__grid { grid-template-columns: 1fr; } }
.about__photo img {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  display: block;
  height: auto;
  filter: grayscale(25%);
}
.about__col { display: flex; flex-direction: column; gap: 40px; }
.about h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; margin-bottom: 18px; }
.about__text { font-size: clamp(15px, 2vw, 17px); line-height: 1.65; color: rgba(242,243,241,.72); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 2px solid rgba(255,255,255,.2); padding-top: 16px; }
.step--first { border-top-color: var(--accent); }
.step__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step__text { font-size: 14.5px; line-height: 1.55; color: rgba(242,243,241,.62); }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.faq h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.faq__item:last-child { border-bottom: none; }
.faq__item summary {
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { font-size: 15px; line-height: 1.6; color: rgba(242,243,241,.65); margin-top: 8px; }

/* ---------- CTA (full-bleed lime) ---------- */
.cta-final {
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
  padding: clamp(56px, 8vw, 88px) clamp(20px, 4vw, 48px);
}
.cta-final__inner { max-width: 760px; margin: 0 auto; }
.cta-final h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 14px; }
.cta-final__lead { font-size: clamp(15px, 2vw, 18px); line-height: 1.55; max-width: 560px; margin: 0 auto 34px; color: rgba(12,14,16,.75); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(255,255,255,.09); }
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-block: 22px;
  font-size: 13px;
  color: rgba(242,243,241,.4);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none !important; }
}
