/* ==========================================================================
   mojitosoda.sk — základ: tokeny, reset, typografia, hlavička, tlačidlá
   ========================================================================== */

:root {
  --cream: #FAF7EE;
  --paper: #FFFDF6;
  --ink: #12130F;
  --ink-2: #2A2C22;
  --lemon: #F4E04D;
  --lemon-pale: #FFF9C4;
  --lemon-deep: #E8CE2B;
  --lime: #E2FF00;
  --lime-pale: #EEFF8F;
  --orange: #FF6B35;
  --amber: #FF9A1F;
  --mint: #A8E6CF;
  --mojito: #8CD45A;
  --forest: #1E4D3E;
  --olive: #6B6A1F;

  --line: rgba(18, 19, 15, .12);
  --line-2: rgba(18, 19, 15, .2);
  --muted: rgba(18, 19, 15, .7);
  --muted-2: rgba(18, 19, 15, .62);
  --glass: rgba(255, 255, 255, .62);

  --f-sans: 'Archivo', Helvetica, Arial, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --wrap: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
  --sec-y: clamp(64px, 8vw, 120px);
  --hdr-h: 74px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --t-fast: .16s;
  --t-med: .35s;

  --shadow-lift: 0 18px 40px rgba(18, 19, 15, .12);
  --shadow-btn: 0 10px 28px rgba(18, 19, 15, .18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* jemné zrno cez celú stránku */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--lime-pale); color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

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

.skip {
  position: fixed;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  font-weight: 700;
  transition: top var(--t-fast) ease;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typografia ---------- */

.h2 {
  font-size: clamp(36px, 5vw, 66px);
  line-height: .93;
  letter-spacing: -.04em;
  font-weight: 900;
  text-transform: uppercase;
  text-wrap: balance;
}
.h2 em,
.display em,
.hero__title em,
.contact__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.02em;
}

.display {
  font-size: clamp(44px, 7vw, 104px);
  line-height: .88;
  letter-spacing: -.045em;
  font-weight: 900;
  text-transform: uppercase;
}

.kicker,
.mono-label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.mono-label { font-size: 10.5px; }
.kicker { display: flex; align-items: center; gap: 10px; }
.kicker::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: currentColor;
}
.kicker--lime { color: var(--lime); }

.link {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.link:hover { color: var(--olive); }

/* ---------- Sekcie ---------- */

.sec { padding: var(--sec-y) 0; }
.sec--tight { padding: calc(var(--sec-y) * .7) 0; }

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px 40px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.sec-head .kicker { margin-bottom: 16px; }
.sec-head__lead {
  max-width: 38ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.rule-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}
.rule-head h2 { font-weight: 500; }
.rule-head__line { flex: 1; height: 1px; background: var(--line); }

/* ---------- Tlačidlá ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-ink: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1.5px solid transparent;
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform var(--t-fast) ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--lg { padding: 17px 26px; font-size: 15.5px; }
.btn--block { width: 100%; }

.btn--ink { box-shadow: var(--shadow-btn); }
.btn--ink:hover { color: var(--lime-pale); box-shadow: 0 16px 36px rgba(18, 19, 15, .24); background: #000; }

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, .66);
  --btn-ink: var(--ink);
  border-color: var(--line-2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: #fff; border-color: var(--ink); }

.btn--cream { --btn-bg: var(--cream); --btn-ink: var(--ink); }
.btn--cream:hover { background: #fff; }

.btn--lime { --btn-bg: var(--lime); --btn-ink: var(--ink); }
.btn--lime:hover { background: var(--lime-pale); }

.btn__ball {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lemon);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: transform .3s var(--ease-spring);
}
.btn:hover .btn__ball { transform: translateY(3px); }

.sq-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  background: transparent;
  font-size: 17px;
  transition: background .2s ease, color .2s ease, transform var(--t-fast) ease;
}
.sq-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.sq-btn:active { transform: scale(.94); }

/* ---------- Hlavička ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 247, 238, .74);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.hdr.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 247, 238, .88); }

.hdr__in {
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 36px; height: 36px; flex: none; transition: transform .5s var(--ease-spring); }
.brand__mark img { width: 100%; height: 100%; }
.brand:hover .brand__mark { transform: rotate(-14deg) scale(1.08); }
.brand__name {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -.045em;
  line-height: 1;
}
.brand__name em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  letter-spacing: -.02em;
  margin-left: 1px;
}
.brand__name small {
  font-family: var(--f-mono);
  font-size: .56em;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 2px;
  color: var(--olive);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.nav > a:not(.btn) { position: relative; padding: 6px 0; }
.nav > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease-out);
}
.nav > a:not(.btn):hover::after,
.nav > a[aria-current='true']::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--ink);
  background: transparent;
  position: relative;
}
.burger__bar {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease-out);
}
.burger__bar:nth-child(1) { top: 17px; }
.burger__bar:nth-child(2) { top: 25px; }
.burger[aria-expanded='true'] .burger__bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 980px) {
  :root { --hdr-h: 66px; }
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: var(--hdr-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(18, 19, 15, .12);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.03em;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .3s var(--ease-out), visibility 0s linear .3s;
  }
  .nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; font-size: 16px; padding: 16px; }
  .hdr.nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .3s var(--ease-out);
  }
}

/* ---------- Odhalenie pri scrolle ---------- */

.js .rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .rv { opacity: 1; transform: none; }
}

.noscript {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99;
  margin: 0;
  padding: 12px var(--gutter);
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
}
