/* ==========================================================================
   Ateliér Balance Žilina – štýly
   Variant B „Dve miestnosti“: uhoľ (kreatívna) × ľan/biela (biela miestnosť)
   ========================================================================== */

:root {
  --char: #0f0d0b;        /* uhoľ – tmavé pozadie */
  --char-2: #1a1714;
  --char-3: #2a2521;
  --linen: #f4f1ea;       /* ľan – svetlé pozadie */
  --linen-2: #ebe6dc;
  --white: #ffffff;
  --ink: #141414;
  --ink-2: #4a4641;
  --ink-3: #8a847a;
  --brick: #a85f3a;       /* tehla – akcent */
  --brick-2: #c8794f;
  --line: #d9d3c7;
  --line-dark: #332d28;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.theme-dark { background: var(--char); color: var(--linen); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }
.theme-dark .eyebrow { color: var(--brick-2); }
.muted { color: var(--ink-3); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 60ch; }
.theme-dark .lede { color: #c9c2b6; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.num { font-variant-numeric: tabular-nums; }

/* --- tlačidlá ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1;
  border: 1.5px solid currentColor; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
  font-family: var(--body);
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--brick); border-color: var(--brick); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--linen); }
.btn-outline { background: transparent; }
.btn-outline:hover { background: rgba(0,0,0,.06); }
.theme-dark .btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-brick { background: var(--brick); color: var(--white); border-color: var(--brick); }
.btn-brick:hover { background: var(--brick-2); border-color: var(--brick-2); }

/* --- hlavička ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--char); color: var(--linen);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 21px; letter-spacing: .01em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand small { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #9a9389; display: block; line-height: 1; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { color: #d8d1c5; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--brick-2); }
.nav .nav-cta { margin-left: 8px; padding: 10px 16px; border: 1.5px solid #5a524b; border-radius: 999px; color: var(--white); }
.nav .nav-cta:hover { background: var(--brick); border-color: var(--brick); }
.nav-toggle { display: none; background: none; border: 1.5px solid #5a524b; color: var(--white); border-radius: 999px; padding: 9px 14px; font: 700 14px var(--body); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--char); border-bottom: 1px solid var(--line-dark); padding: 8px var(--pad) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  .nav .nav-cta { margin: 12px 0 0; text-align: center; border-radius: 999px; }
}

/* --- rozdelený hero (úvod) ---------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 760px); }
.half { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 420px; }
.half img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.half:hover img.bg { transform: scale(1.03); }
.half .ov { position: absolute; inset: 0; }
.half-dark .ov { background: linear-gradient(180deg, rgba(15,13,11,.05) 0%, rgba(15,13,11,.55) 45%, rgba(15,13,11,.93) 100%); }
.half-light .ov { background: linear-gradient(180deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.82) 52%, rgba(255,255,255,.97) 100%); }
.half .tx { position: relative; padding: clamp(28px, 4vw, 56px); width: 100%; }
.half-dark { color: var(--white); }
.half-light { color: var(--ink); }
.half .eyebrow { color: inherit; opacity: .8; }
.half h2 { font-size: clamp(40px, 4.6vw, 62px); margin: 8px 0 12px; }
.half p { max-width: 44ch; font-size: 16px; opacity: .92; }
.half .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.price { font-family: var(--display); font-size: 28px; line-height: 1; }
.price small { font-family: var(--body); font-size: 14px; opacity: .8; margin-left: 4px; }
.half a.cover { position: absolute; inset: 0; z-index: 1; }
.half .row .btn { position: relative; z-index: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .half { min-height: 62vh; } }

/* --- sekcie -------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-top: 10px; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }
.bg-white { background: var(--white); }
.bg-char { background: var(--char); color: var(--linen); }
.bg-char .lede { color: #c9c2b6; }
.bg-char .eyebrow { color: var(--brick-2); }
.bg-linen { background: var(--linen); }

/* čipy – využitie */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { font-weight: 600; font-size: 15px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.bg-char .chips span { background: var(--char-2); border-color: var(--line-dark); }
.callout { border-left: 2px solid var(--brick); padding: 6px 0 6px 22px; max-width: 52ch; }
.callout b { display: block; font-family: var(--display); font-weight: 600; font-size: 22px; margin-bottom: 6px; }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }

/* čísla – vybavenie v skratke */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.stats > div { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line-dark); }
.stats b { display: block; font-family: var(--display); font-size: clamp(38px, 4vw, 56px); line-height: 1; font-weight: 400; }
.stats span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: #b5aea3; text-transform: uppercase; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* mriežka fotiek */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--linen-2); aspect-ratio: 3 / 2; cursor: zoom-in; }
.tile.portrait { aspect-ratio: 3 / 4; }
.tile.square { aspect-ratio: 1; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; font-size: 13px; color: var(--white); background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.65)); }
.tile figcaption b { display: block; font-weight: 700; }
.tile.no-zoom { cursor: default; }
figure { margin: 0; }

/* filter galérie */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { font: 600 14px var(--body); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tile[hidden] { display: none; }

/* lightbox */
dialog.lightbox { border: 0; padding: 0; background: rgba(10,8,6,.96); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
dialog.lightbox::backdrop { background: rgba(10,8,6,.9); }
dialog.lightbox figure { height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 20px; }
dialog.lightbox img { max-height: calc(100vh - 100px); max-width: calc(100vw - 40px); object-fit: contain; }
dialog.lightbox figcaption { color: var(--linen); font-size: 14px; padding: 10px 0 0; text-align: center; }
dialog.lightbox .close, dialog.lightbox .prev, dialog.lightbox .next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); color: var(--white); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; }
dialog.lightbox .close { top: 16px; right: 16px; transform: none; }
dialog.lightbox .prev { left: 16px; } dialog.lightbox .next { right: 16px; }

/* --- podstránka miestnosti (hero) ---------------------------------------- */
.page-hero { position: relative; min-height: min(70vh, 640px); display: flex; align-items: flex-end; overflow: hidden; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .ov { position: absolute; inset: 0; }
.page-hero.dark .ov { background: linear-gradient(180deg, rgba(15,13,11,.1), rgba(15,13,11,.9)); }
.page-hero.light .ov { background: linear-gradient(180deg, rgba(244,241,234,0) 30%, rgba(244,241,234,.95)); }
.page-hero .wrap { position: relative; width: 100%; padding-top: 80px; padding-bottom: clamp(32px, 5vw, 64px); }
.page-hero.dark { color: var(--white); }
.page-hero h1 { margin: 10px 0 14px; }
.page-hero .eyebrow { color: inherit; opacity: .85; }
.page-hero .lede { color: inherit; opacity: .92; }
.page-hero.compact { min-height: 0; }
.page-hero.compact .wrap { padding-top: clamp(48px, 7vw, 96px); }

/* fakty o miestnosti */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts > div { background: var(--white); padding: 20px 22px; }
.facts .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.facts .v { font-family: var(--display); font-size: 26px; margin-top: 6px; line-height: 1.1; }
.facts .v small { font-family: var(--body); font-size: 14px; color: var(--ink-2); margin-left: 4px; }
.theme-dark .facts { background: var(--line-dark); border-color: var(--line-dark); }
.theme-dark .facts > div { background: var(--char-2); }
.theme-dark .facts .k { color: #9a9389; }
.theme-dark .facts .v small { color: #c9c2b6; }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-check li { padding-left: 26px; position: relative; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 2px; background: var(--brick); }

/* --- cenník -------------------------------------------------------------- */
.price-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.price-table th, .price-table td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.price-table td.amount { font-family: var(--display); font-size: 26px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table td.amount small { font-family: var(--body); font-size: 14px; color: var(--ink-2); }
.price-table tr td:first-child { font-weight: 700; }
.price-table .sub { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.price-note { font-size: 14px; color: var(--ink-3); margin-top: 12px; }
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .price-cards { grid-template-columns: 1fr; } }
.price-card { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); overflow: hidden; }
.price-card .ph { aspect-ratio: 16 / 9; overflow: hidden; }
.price-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.price-card .body { padding: 24px; }
.price-card.dark { background: var(--char); color: var(--linen); border-color: var(--char); }
.price-card.dark .price-table th, .price-card.dark .price-table td { border-color: var(--line-dark); }
.price-card.dark .price-table td.amount small, .price-card.dark .price-table .sub { color: #c9c2b6; }

/* --- vybavenie ----------------------------------------------------------- */
.equip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .equip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .equip { grid-template-columns: 1fr; } }
.equip figure { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.equip .ph { aspect-ratio: 4 / 3; background: var(--white); display: grid; place-items: center; overflow: hidden; }
.equip .ph img { width: 100%; height: 100%; object-fit: cover; }
.equip .ph.contain img { object-fit: contain; padding: 16px; }
.equip figcaption { padding: 14px 16px 16px; }
.equip figcaption b { display: block; font-size: 16px; }
.equip figcaption span { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 3px; letter-spacing: .04em; }
.spec-list { columns: 2; column-gap: 40px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.spec-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.spec-list li b { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--brick); white-space: nowrap; }
@media (max-width: 640px) { .spec-list { columns: 1; } }

/* --- kontakt ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 540px) { .form .row2 { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.form label span.opt { font-weight: 400; color: var(--ink-3); }
.form input, .form select, .form textarea {
  font: 16px var(--body); padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); width: 100%;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brick); outline-offset: 0; border-color: var(--brick); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; }
.form-status.ok { display: block; background: #e8f1e6; color: #1f5a2a; }
.form-status.err { display: block; background: #f8e5e0; color: #8a2f1c; }
.form small.legal { font-size: 13px; color: var(--ink-3); }
.contact-card { display: grid; gap: 22px; }
.contact-card .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.contact-card a.big { font-family: var(--display); font-size: 24px; display: block; line-height: 1.3; }
.contact-card a.big:hover { color: var(--brick); }
.map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--linen-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- CTA pás ------------------------------------------------------------- */
.cta-band { background: var(--char); color: var(--linen); }
.cta-band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 820px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* --- pätička ------------------------------------------------------------- */
.site-footer { background: var(--char); color: #c9c2b6; border-top: 1px solid var(--line-dark); font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.site-footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a847a; margin-bottom: 12px; font-weight: 500; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand { color: var(--white); margin-bottom: 12px; }
.site-footer .bottom { border-top: 1px solid var(--line-dark); }
.site-footer .bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px var(--pad); font-family: var(--mono); font-size: 12px; color: #8a847a; }
@media (max-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
