/* ==========================================================================
   M.R.K Garáž – style.css
   Farby a písmo sa menia hneď tu hore (CSS premenné):
   --gold = zlatá, --bg = pozadie, --text = text, --display = písmo nadpisov
   ========================================================================== */

:root {
  --bg: #0d0d0d;
  --panel: #191714;
  --panel2: #23201b;
  --gold: #d4b04a;
  --gold-d: #8f7a2e;
  --text: #f6f2e8;
  --muted: #c4bfb0;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Základ ---------- */

html {
  scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px));
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    500 18px/1.55 Barlow,
    system-ui,
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 10;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Hlavička a menu ---------- */

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  background: var(--bg);
  border-bottom: 3px solid var(--gold);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 62px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 26px;
}

nav a {
  color: var(--muted);
  font-weight: 700;
}

nav a:hover {
  color: var(--gold);
}

.callhdr {
  display: none;
}

.burger {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

/* ---------- Úvod (hero) a tlačidlá ---------- */

.hero {
  position: relative;
  padding: 72px 0 80px;
  background:
    linear-gradient(115deg, transparent 40%, rgba(194, 166, 74, 0.16) 48%, transparent 56%),
    linear-gradient(115deg, transparent 58%, rgba(255, 255, 255, 0.07) 62%, transparent 66%),
    radial-gradient(900px 400px at 80% 0, #2a2515, transparent), var(--bg);
  border-bottom: 1px solid #2a2a2a;
}

.hero small {
  display: block;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

h1 {
  font: 700 clamp(40px, 8vw, 76px)/1 var(--display);
  text-transform: uppercase;
  margin: 0 0 18px;
  max-width: 12em;
  letter-spacing: 0.01em;
}

.hero p {
  max-width: 34em;
  color: var(--muted);
  font-size: 19px;
  margin: 0 0 30px;
}

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  font: 700 19px var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid var(--gold);
  cursor: pointer;
}

.btn.fill {
  background: linear-gradient(135deg, #f0d983, #d4b04a 55%, #b8962e);
  color: #111;
}

.btn.fill:hover {
  filter: brightness(1.1);
}

.btn.line {
  background: none;
  color: var(--gold);
}

.btn.line:hover {
  background: rgba(194, 166, 74, 0.12);
}

/* ---------- Úvod: fotka ---------- */

.heroimg {
  margin-top: 24px;
  aspect-ratio: 16/10;
  border: 1px solid #38342b;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.heroimg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

/* ---------- Sekcie, nadpisy a „Prečo my“ ---------- */

section {
  padding: 68px 0;
}

h2 {
  font: 700 clamp(32px, 5vw, 48px)/1.1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  color: var(--gold);
}

.lead {
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 36em;
}

.why {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.why div {
  border-top: 3px solid var(--gold);
  padding-top: 14px;
}

.why h3 {
  margin: 0 0 6px;
  font: 600 26px/1.2 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.why p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Cenník: záložky a karty ---------- */

.tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}

.tabs button {
  background: var(--panel);
  color: var(--text);
  border: 2px solid #3a362e;
  padding: 9px 22px;
  border-radius: 4px;
  font: 700 19px var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  background: linear-gradient(135deg, #f0d983, #d4b04a 55%, #b8962e);
  color: #111;
  border-color: var(--gold);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid #38342b;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 22px;
  transition:
    box-shadow 0.25s,
    border-color 0.25s;
}

.card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(212, 176, 74, 0.14);
}

.card {
  position: relative;
}

.card.hot {
  border-color: var(--gold);
}

.ribbon {
  position: absolute;
  top: -14px;
  right: 18px;
  background: linear-gradient(135deg, #f0d983, #d4b04a 55%, #b8962e);
  color: #111;
  font: 700 15px var(--display);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 12px 5px;
  line-height: 1.2;
  border-radius: 4px;
}

.card h3 {
  margin: 0 0 14px;
  font: 600 26px/1.15 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.prices {
  display: flex;
  gap: 26px;
  margin-bottom: 12px;
}

.prices div {
  display: flex;
  flex-direction: column;
}

.prices span {
  font-size: 14px;
  color: var(--muted);
}

.prices strong {
  font: 700 46px/1.05 var(--display);
  color: var(--gold);
}

.time {
  display: inline-block;
  background: linear-gradient(135deg, #f0d983, #d4b04a 55%, #b8962e);
  color: #111;
  font-weight: 700;
  font-size: 14px;
  padding: 3px 12px;
  border-radius: 3px;
  margin-bottom: 10px;
}

details summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 700;
  padding: 6px 0;
}

details ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

details li {
  padding: 3px 0 3px 26px;
  position: relative;
  color: var(--muted);
  font-size: 16px;
}

details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Doplnkové služby ---------- */

.extra {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--panel2);
  border-radius: 8px;
  color: var(--muted);
}

.extra b {
  color: var(--text);
}

/* ---------- Galéria: posuvník pred / po ---------- */

.ba {
  position: relative;
  aspect-ratio: var(--arn, 1.3333);
  width: min(100%, calc(78vh * var(--arn, 1.3333)));
  max-width: 760px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.ba > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  font-weight: 700;
}

.ba .after {
  background-position: center;
  background-size: cover;
  justify-content: flex-end;
}

.ba .before {
  background-position: center;
  background-size: cover;
  clip-path: inset(0 50% 0 0);
}

.ba .tag {
  background: rgba(0, 0, 0, 0.65);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 14px;
}

.ba input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  margin: 0;
}

.ba .bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--gold);
  pointer-events: none;
}

.ba .bar::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0d983, #d4b04a 55%, #b8962e);
  color: #111;
  font: 700 26px/52px var(--display);
  text-align: center;
  letter-spacing: 2px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.ba:focus-within .bar::after {
  outline: 3px solid #fff;
}

.note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- Galéria: fotky ---------- */

.shots {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  max-width: 760px;
}

.shots button {
  padding: 0;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 4/3;
  cursor: zoom-in;
  display: block;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.shots button:hover {
  box-shadow: 0 10px 30px rgba(212, 176, 74, 0.18);
  transform: translateY(-2px);
}

.shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gh {
  margin: 28px 0 0;
  font: 600 24px var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Galéria: zobrazenie na celú obrazovku ---------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
}

.lb.open {
  display: flex;
}

.lb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

.lb button {
  position: absolute;
  background: rgba(20, 20, 20, 0.75);
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  width: 48px;
  height: 48px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lb .x {
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
}

.lb .p,
.lb .n {
  top: 50%;
  margin-top: -24px;
}

.lb .p {
  left: 12px;
}

.lb .n {
  right: 12px;
}

.lb .c {
  position: absolute;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  text-align: center;
  color: #c4bfb0;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .shots button {
    transition: none;
  }
}

/* ---------- Recenzie ---------- */

.rev {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 28px;
}

.rev .q {
  margin: 0;
  padding: 22px;
  border: 1px dashed #4a463c;
  border-radius: 6px;
  background: var(--panel);
}

.rev .q::before {
  content: "“";
  display: block;
  font: 700 54px/0.6 var(--display);
  color: var(--gold);
  margin-bottom: 8px;
}

.rev blockquote {
  margin: 0 0 14px;
  color: var(--muted);
}

.rev figcaption {
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Kontakt a formulár ---------- */

.contact {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr 1fr;
}

.info p {
  margin: 0 0 6px;
}

.info h3 {
  color: var(--gold);
  margin: 22px 0 6px;
  font-size: 20px;
}

.info h3:first-child {
  margin-top: 0;
}

.info .btns {
  margin-top: 18px;
}

.map {
  display: block;
  margin-top: 20px;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 22px;
  background: repeating-linear-gradient(45deg, #161616, #161616 12px, #1b1b1b 12px, #1b1b1b 24px);
  color: var(--gold);
  font-weight: 700;
}

form label {
  display: block;
  margin: 0 0 14px;
  font-weight: 700;
}

form input,
form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: #161616;
  border: 2px solid var(--gold-d);
  border-radius: 4px;
  color: var(--text);
  padding: 12px;
  font:
    500 17px Barlow,
    sans-serif;
}

form input:focus,
form textarea:focus {
  border-color: var(--gold);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- Pätička a tlačidlo „Zavolať“ na mobile ---------- */

footer {
  border-top: 1px solid #2a2a2a;
  padding: 28px 0;
  color: var(--muted);
  font-size: 15px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.sticky {
  display: none;
}

/* ---------- Mobil (užšie obrazovky) ---------- */

@media (max-width: 760px) {
  .wrap {
    padding: 0 16px;
  }
  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 3px solid var(--gold);
  }
  nav.open {
    display: flex;
  }
  nav a {
    padding: 16px 20px;
    border-top: 1px solid #222;
  }
  .burger {
    display: block;
  }
  .why,
  .contact,
  .rev {
    grid-template-columns: 1fr;
  }
  section {
    padding: 48px 0;
  }
  .hero {
    padding: 48px 0 56px;
  }
  .sticky {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 8;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  }
  footer {
    padding-bottom: 90px;
  }
}

@media (min-width: 761px) {
  .callhdr {
    display: inline-block;
    padding: 9px 18px;
  }
}

/* ---------- Počítač (širšie obrazovky) ---------- */

@media (min-width: 900px) {
  .wrap {
    max-width: 1120px;
    padding: 0 32px;
  }
  .hero {
    padding: 96px 0 104px;
  }
  .hero .wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
  }
  .heroimg {
    aspect-ratio: 4/5;
    margin-top: 0;
  }
  .why {
    gap: 40px;
  }
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .shots {
    max-width: none;
  }
  .ba {
    max-width: 820px;
  }
  .contact {
    gap: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Formulár: chyby a stav správy ---------- */

.err {
  display: block;
  margin-top: 4px;
  color: #ff9a8a;
  font-size: 15px;
  font-weight: 500;
}

.err:empty {
  display: none;
}

form input[aria-invalid="true"],
form textarea[aria-invalid="true"] {
  border-color: #ff9a8a;
}

/* hidden anti-spam field, people never see it */
form input.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.fstatus {
  margin: 14px 0 0;
  font-weight: 700;
}

.fstatus:empty {
  display: none;
}

.fstatus.ok {
  color: var(--gold);
}

.fstatus.error {
  color: #ff9a8a;
}
