/* ==========================================================================
   Nábytok Šustek – návrh 3
   Tmavohnedé pásy, karamelové tlačidlá, biely podklad, tučné nadpisy
   veľkými písmenami a kruhové fotky. Béžová je prevzatá z loga firmy.
   ========================================================================== */

/* ---------- Písmo (uložené lokálne, bez externých služieb) ---------- */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/dmsans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/dmsans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Premenné ---------- */
:root {
  color-scheme: light;

  --brown: #3E2419;          /* tmavá čokoládová – pásy a pätička */
  --brown-2: #4E3023;        /* o stupeň svetlejšia – riadky kontaktu */
  --caramel: #9C6A38;        /* tlačidlá a popisy na bielom */
  --caramel-dark: #845729;
  --caramel-light: #D2A473;  /* akcent na tmavom podklade */
  --beige: #F2EAE1;          /* z loga – jemné pásy */
  --white: #FFFFFF;
  --ink: #1B1512;
  --ink-2: #5C524B;
  --on-dark-2: rgba(255, 255, 255, .76);

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);

  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--caramel-light);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--caramel);
  color: var(--white);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Typografia ---------- */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: .02em;
  text-transform: uppercase;
}
h3 { font-size: 1.2rem; }

.lead {
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid var(--caramel);
  background: var(--caramel);
  color: var(--white);
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--caramel-dark); border-color: var(--caramel-dark); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--sm { min-height: 38px; padding: 8px 18px; font-size: .8rem; }

/* obrysové tlačidlo na tmavom podklade */
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--brown); }

/* ---------- Horná lišta s kontaktom ---------- */
.topbar { background: var(--brown); color: var(--white); }

.topbar__in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 5vw, 72px);
  min-height: 54px;
}
.topbar a:not(.btn) { text-decoration: none; }
.topbar a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hlavička ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--brown);
}

.hd__in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  color: var(--brown);
  text-decoration: none;
}
.logo strong { font-weight: 700; }
/* logo je štvorcový JPG s kruhom – orezáva sa tesne pod okrajom, aby nebolo vidno biele rohy */
.logo__img {
  flex: none;
  width: 52px;
  height: 52px;
  clip-path: circle(49%);
}

.nav ul { display: flex; gap: clamp(20px, 3.4vw, 52px); }
.nav a {
  display: block;
  padding: 8px 0;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brown);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.nav a:hover { border-bottom-color: var(--caramel); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--brown);
  background: transparent;
  color: var(--brown);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

/* ---------- Úvod: pás fotografií na celú šírku ---------- */
.band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--brown);
}
.band img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  max-height: 72vh;
  object-fit: cover;
}

/* ---------- Tmavý pás s heslom, logom a tlačidlom ---------- */
.claim { background: var(--brown); color: var(--white); }

.claim__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding-block: 26px;
}

.claim h1 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.25;
}
.claim h1 span { display: block; color: var(--caramel-light); }

.claim .btn { justify-self: end; }

/* logo ako odznak, ktorý zasahuje do fotiek nad pásom */
.badge {
  display: block;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 7px var(--brown);
}
.badge img { width: 100%; height: 100%; transform: scale(1.03); }

.claim .badge {
  width: clamp(124px, 12vw, 168px);
  aspect-ratio: 1;
  margin-block: calc(clamp(124px, 12vw, 168px) * -.55) calc(clamp(124px, 12vw, 168px) * -.12);
}

/* ---------- Sekcie ---------- */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec--beige { background: var(--beige); }

.sec__head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}
.sec__head .lead { margin-top: 18px; }

/* ---------- Kruhové fotky ---------- */
.circles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 56px);
}

.circle {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
}
.circle__photo {
  width: min(100%, 250px);
  aspect-ratio: 1;
  margin-bottom: 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--beige);
  box-shadow: 0 0 0 0 var(--caramel-light);
  transition: box-shadow .25s;
}
.circle__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}
.circle:hover .circle__photo { box-shadow: 0 0 0 6px var(--caramel-light); }
.circle:hover .circle__photo img { transform: scale(1.06); }

.circle__label {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--caramel);
}
.circle__place {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.note {
  margin-top: clamp(36px, 5vw, 56px);
  text-align: center;
  color: var(--ink-2);
}
.note a { color: var(--caramel); font-weight: 700; text-underline-offset: 4px; }

/* ---------- Tmavý pás s tromi faktami ---------- */
.facts { background: var(--brown); color: var(--white); }

.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}
.fact { padding: clamp(32px, 4vw, 48px) clamp(16px, 2.4vw, 32px); }
.fact h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fact p { margin-top: 8px; color: var(--on-dark-2); font-size: 1rem; }

/* ---------- Ako pracujeme ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  counter-reset: krok;
}

.step { text-align: center; counter-increment: krok; }
.step::before {
  content: counter(krok);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
}
.step p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }

.sec__cta { margin-top: clamp(40px, 5vw, 64px); text-align: center; }

/* ---------- Pätička s kontaktom ---------- */
.ft {
  padding-block: clamp(56px, 7vw, 96px) 28px;
  background: var(--brown);
  color: var(--white);
}

.ft__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
}

.ft__brand {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
}
.ft__brand .badge { width: 116px; height: 116px; box-shadow: none; }
.ft__name { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 500; line-height: 1.1; }
.ft__name strong { font-weight: 700; }
.ft__name small {
  display: block;
  margin-top: 8px;
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--on-dark-2);
}

.ft__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.ft h2 {
  margin-top: clamp(40px, 5vw, 64px);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: .01em;
  text-transform: none;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin-top: 20px;
}

.contact-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
  text-decoration: none;
}
.contact-row__icon {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 2px solid rgba(255, 255, 255, .28);
  background: var(--brown-2);
}
.contact-row__icon svg { width: 22px; height: 22px; }
.contact-row__text {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--brown-2);
  overflow-wrap: anywhere;
  transition: background-color .2s;
}
.contact-row:hover .contact-row__text { background: #5C3A2B; }

.ft__copy {
  margin-top: clamp(40px, 5vw, 64px);
  text-align: center;
  font-size: .85rem;
  color: var(--on-dark-2);
}

/* ---------- Zväčšená fotka po kliknutí na kruh ---------- */
.lightbox {
  max-width: min(92vw, 640px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(30, 16, 10, .9); }
.lightbox img { width: auto; max-width: 100%; max-height: 80vh; margin-inline: auto; }
.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 14px;
}
.lightbox figcaption strong { font-size: 1.2rem; }
.lightbox figcaption span {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--caramel-light);
}
.lightbox__close {
  position: fixed;
  right: 16px;
  top: 16px;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--caramel);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: var(--caramel-dark); }

/* ---------- Jemné odkrývanie pri rolovaní ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .6, .2, 1);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .circle__photo, .circle__photo img, .btn { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .band img:nth-child(n+4) { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
}

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .topbar__mail { display: none; }
  .topbar__in { justify-content: space-between; gap: 12px; min-height: 50px; }

  .hd__in { gap: 10px; min-height: 66px; }
  .logo { font-size: 1.2rem; gap: 10px; }
  .logo__img { width: 44px; height: 44px; }

  .nav-toggle { display: grid; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 4px var(--gutter) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--brown);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--beige); }

  .claim__in {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 18px;
    padding-block: 0 32px;
    text-align: center;
  }
  .claim .badge { order: -1; margin-bottom: 0; }
  .claim .btn { justify-self: center; }

  .facts__grid { grid-template-columns: minmax(0, 1fr); }
  .fact { padding: 26px 0; }
  .fact + .fact { border-top: 1px solid rgba(255, 255, 255, .16); }

  .circles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .circle__label { font-size: 1.15rem; }

  .contacts { grid-template-columns: minmax(0, 1fr); }
  .ft__top { justify-content: center; text-align: left; }
}

@media (max-width: 560px) {
  .band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band img:nth-child(n+3) { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .ft__brand { gap: 16px; }
  .ft__brand .badge { width: 84px; height: 84px; }
  .ft__cta { width: 100%; }
  .ft__cta .btn { flex: 1 1 100%; }
}
