/* ==========================================================================
   Nábytok Šustek – štýly (návrh 2: nadčasový)
   Teplá biela, takmer čierna a tenké linky. Žiadne textúry ani tiene –
   priestor dostávajú fotografie realizácií. Dubová farba len v drobnostiach.
   ========================================================================== */

/* ---------- Písma (uložené lokálne, bez externých služieb) ---------- */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url("../fonts/instrumentsans-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: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url("../fonts/instrumentsans-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; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/fraunces-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: "Fraunces"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/fraunces-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;

  --bg: #F6F4EF;          /* teplá biela */
  --white: #FFFFFF;
  --ink: #1D1C1A;         /* takmer čierna */
  --ink-2: #5E5A53;       /* tlmený text */
  --line: #D9D5CC;        /* tenké linky */
  --accent: #7F5F3C;      /* tlmený dub – len čísla a drobné detaily */
  --photo-bg: #E9E5DC;    /* podklad, kým sa načíta fotka */

  --on-dark: #F3F0EA;     /* text na tmavom */
  --on-dark-2: #ABA69C;
  --line-dark: rgba(243, 240, 234, .2);

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

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

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

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

h1, h2, h3, p, ul, ol, dl, dd, 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: 2px solid var(--accent);
  outline-offset: 4px;
}

.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(--ink);
  color: var(--on-dark);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Typografia ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.018em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.8vw, 4.75rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; }

/* malý nadpis nad sekciou */
.label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.lead {
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  color: var(--ink-2);
  max-width: 54ch;
  text-wrap: pretty;
}

/* ---------- Tlačidlá a odkazy ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font: inherit;
  font-size: .97rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--ink); }

.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }

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

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}
.link svg { width: 18px; height: 18px; transition: transform .2s; }
.link:hover svg { transform: translateX(4px); }

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1;
  text-decoration: none;
}
/* logo je štvorcový JPG s kruhom – orezáva sa do kruhu tesne pod okrajom, aby nebolo vidno biele rohy */
.logo__img {
  flex: none;
  width: 46px;
  height: 46px;
  clip-path: circle(49%);
}

.nav ul { display: flex; gap: clamp(18px, 2.6vw, 36px); }
.nav a {
  display: block;
  padding: 6px 0;
  font-size: .94rem;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

/* ---------- Úvod ---------- */
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(56px, 8vw, 112px); }

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 6vw, 104px);
  align-items: center;
}

.hero h1 { margin-top: 28px; }
.hero h1 span { display: block; color: var(--accent); }
.hero .lead { margin-top: 28px; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 40px;
}

.hero__figure { position: relative; }
.hero__photo { aspect-ratio: 3 / 4; }

/* ---------- Pečať s logom ---------- */
/* Na užších obrazovkách sedí na pravom hornom rohu fotky, na širokých na jej ľavej hrane. */
.seal {
  position: absolute;
  z-index: 2;
  right: 16px;
  top: 0;
  width: clamp(124px, 15vw, 150px);
  aspect-ratio: 1;
  transform: translateY(-34%);
}
.seal__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(30deg);   /* názov firmy vychádza hore v strede */
}
.seal__disc { fill: var(--bg); stroke: var(--ink); stroke-width: 1; }
.seal__ring text {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  fill: var(--ink);
}
.seal__logo {
  position: absolute;
  inset: 19%;
  width: 62%;
  height: 62%;
  clip-path: circle(49%);
}

/* Šírka pečate je vždy menšia než medzera medzi stĺpcami, takže nikdy neprekryje text. */
@media (min-width: 1100px) {
  .seal {
    right: auto;
    left: 0;
    top: auto;
    bottom: 13%;
    width: clamp(120px, 10.5vw, 172px);
    transform: translateX(-50%);
  }
}

.caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: .85rem;
  color: var(--ink-2);
}

/* ---------- Miesto na fotografiu ---------- */
.slot {
  position: relative;
  overflow: hidden;
  background: var(--photo-bg);
}

.slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s, transform .8s cubic-bezier(.2, .6, .2, 1);
}
/* kým sa fotka nenačíta (alebo ešte neexistuje), vidno neutrálny podklad s popisom */
.js .slot img { opacity: 0; }
.js .slot img.is-loaded { opacity: 1; }

.slot__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- Tri fakty pod úvodom ---------- */
.facts { border-block: 1px solid var(--line); }

.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact {
  padding: clamp(28px, 3.6vw, 44px) clamp(20px, 3vw, 44px);
  border-left: 1px solid var(--line);
}
.fact:first-child { padding-left: 0; border-left: 0; }
.fact:last-child { padding-right: 0; }

.fact h2 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -.01em; }
.fact p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; }

/* ---------- Sekcie ---------- */
.sec { padding-block: clamp(72px, 10vw, 144px); }
.sec--white { background: var(--white); }

.sec__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec__head h2 { margin-top: 20px; }
.sec__head .lead { margin-top: 20px; }

/* ---------- Čo vyrábame: nadpis vľavo, zoznam vpravo ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 104px);
  align-items: start;
}
.split .sec__head { position: sticky; top: 124px; margin-bottom: 0; }

.list { border-top: 1px solid var(--ink); }

.list__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px 24px;
  padding-block: clamp(26px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}
.list__num {
  padding-top: 7px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent);
}
.list__item p { grid-column: 2; color: var(--ink-2); max-width: 52ch; }

/* ---------- Realizácie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(18px, 2.4vw, 32px);
}

/* fotky realizácií sú na výšku (3:4) – vysoký nábytok tak vidno celý */
.work__photo { aspect-ratio: 3 / 4; }
.work:hover .work__photo img { transform: scale(1.03); }

.work figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
}
.work__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.work__place {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.gallery__more { margin-top: clamp(40px, 5vw, 64px); }

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

.step {
  padding-top: 22px;
  border-top: 1px solid var(--ink);
  counter-increment: krok;
}
.step::before {
  content: "0" counter(krok);
  display: block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent);
}
.step h3 { margin-top: 36px; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }

/* ---------- Kontakt (tmavá sekcia) ---------- */
.dark { background: var(--ink); color: var(--on-dark); }
.dark .label { color: var(--on-dark-2); }
.dark .lead { color: var(--on-dark-2); }

.dark .btn { border-color: var(--on-dark); }
.dark .btn--solid { background: var(--on-dark); color: var(--ink); }
.dark .btn--solid:hover { background: transparent; color: var(--on-dark); }
.dark .btn--line { color: var(--on-dark); border-color: var(--line-dark); }
.dark .btn--line:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

.contact__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
}

.contact h2 { margin-top: 20px; }
.contact .lead { margin-top: 20px; }

.contact__phone {
  display: inline-block;
  margin-top: 40px;
  padding-bottom: 6px;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 4rem);
  letter-spacing: -.02em;
  line-height: 1.05;
  text-decoration: none;
  border-bottom: 1px solid var(--on-dark-2);
  transition: border-color .2s;
}
.contact__phone:hover { border-bottom-color: var(--on-dark); }

.details { border-top: 1px solid var(--on-dark); }

.details__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding-block: 20px;
  border-bottom: 1px solid var(--line-dark);
}
.details dt {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.details dd { font-size: 1.1rem; overflow-wrap: anywhere; }
.details a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.details a:hover { border-bottom-color: var(--on-dark); }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.contact__actions .btn { flex: 1 1 180px; }

/* ---------- Pätička ---------- */
.ft {
  padding-block: 28px;
  background: var(--ink);
  color: var(--on-dark-2);
  font-size: .9rem;
  border-top: 1px solid var(--line-dark);
}
.ft__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
}
.ft__brand { display: flex; align-items: center; gap: 16px; }
.ft .logo__img { width: 60px; height: 60px; }
.ft a { color: var(--on-dark); text-decoration: none; }
.ft a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Jemné odkrývanie pri rolovaní ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease, transform .8s 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; }
  .slot img, .btn, .link svg { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .sec__head { position: static; margin-bottom: clamp(32px, 5vw, 48px); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .hd__in { gap: 10px; min-height: 64px; }
  .logo { font-size: 1.3rem; gap: 10px; }
  .logo__img { width: 40px; height: 40px; }

  .nav-toggle { display: grid; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 4px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 16px 0; font-size: 1.0625rem; color: var(--ink); border-bottom: 1px solid var(--line); }

  .hero__in, .contact__in { grid-template-columns: minmax(0, 1fr); }
  .hero__photo { aspect-ratio: 4 / 5; }

  .facts__grid { grid-template-columns: minmax(0, 1fr); }
  .fact, .fact:first-child, .fact:last-child { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
}

@media (max-width: 560px) {
  .steps, .gallery { grid-template-columns: minmax(0, 1fr); }
  .steps { row-gap: 32px; }
  .step h3 { margin-top: 20px; }
  .list__item { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hd .btn span { display: none; }      /* v hlavičke ostane len ikona telefónu */
  .hd .btn { padding-inline: 12px; }
  .details__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ft__in { flex-direction: column; align-items: flex-start; }
}
