/* ==========================================================================
   home.css — štýly len pre úvodnú stránku (index.html, <body class="home site">)
   --------------------------------------------------------------------------
   Spoločné komponenty (tokeny, tlačidlá, hlavička, päta, štítky, tabuľka hodín,
   recenzie, kontakt, postupné skladanie) sú v site.css. Tu je rozloženie sekcií úvodnej stránky:
   hero so skleneným pásom, úvod s oblúkovou fotkou, mozaika, dlaždice služieb,
   navy pás galérie, recenzie a nepravidelný kontakt.
   Funkčné hooky zo sekcie 2 docs/redesign-brief.md (skip-link, header-cta,
   hero-cta, hero-links, #quick-info, data-today-hours, data-open-status,
   .testimonials-slider, .mobile-nav-toggle) sú zachované.
   ========================================================================== */

/* ---------- Hero ---------- */
body.home #hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: auto;
  min-height: min(92vh, 860px);
  min-height: min(92svh, 860px);
  padding: 0;
  background: var(--c-navy);
  color: #fff;
  overflow: hidden;
}

#hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

/* Tmaví sa len horná a dolná časť; tvár a tanier na fotke ostávajú čitateľné. */
body.home #hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(2, 14, 30, 0.6) 0, rgba(2, 14, 30, 0) 30%),
    linear-gradient(to top, rgba(2, 14, 30, 0.86) 0, rgba(2, 14, 30, 0.55) 26%, rgba(2, 14, 30, 0) 62%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: clamp(36px, 5vw, 64px);
}

.hero-content .inner {
  max-width: 660px;
}

body.home #hero h1 {
  color: #fff;
  font-size: clamp(3rem, 6.4vw, 5rem);
  letter-spacing: -0.025em;
  line-height: 1;
}

body.home #hero .hero-kicker {
  width: auto;
  margin: 14px 0 0;
  font: 600 1.0625rem/1 var(--font-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

body.home #hero .hero-slogan {
  width: auto;
  max-width: 32ch;
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.4;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-cta {
  min-height: 52px;
  padding-inline: 30px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin-top: 10px;
}

body.home .hero-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

body.home .hero-links a:hover,
body.home .hero-links a:focus-visible {
  color: #fff;
  border-bottom-color: var(--c-lime);
}

@media (max-width: 576px) {
  body.home #hero .hero-kicker {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 380px;
  }

  .hero-links {
    gap: 0 18px;
    justify-content: center;
  }
}

/* ---------- Rýchle informácie: sklenený pás na spodku fotky ---------- */
body.home #quick-info {
  position: relative;
  z-index: 2;
  padding: 0;
  background: rgba(2, 20, 40, 0.48);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.quick-info__list {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
}

.quick-info__item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 22px 28px;
}

.quick-info__item:first-child { padding-left: 0; }
.quick-info__item:last-child { padding-right: 0; }

.quick-info__item + .quick-info__item {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.quick-info__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
}

.quick-info__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.quick-info__text small {
  font: 600 0.875rem/1 var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-lime);
}

.quick-info__text strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-weight: 500;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
}

.quick-info__text > span {
  color: #c9d4e3;
  font-size: 0.9375rem;
}

body.home .quick-info__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.quick-info__nav {
  margin-left: auto;
  white-space: nowrap;
}

body.site .quick-info__nav {
  min-height: 40px;
  padding: 6px 18px;
  font-size: 0.9375rem;
}

@media (max-width: 991px) {
  body.home #quick-info {
    background: rgba(2, 20, 40, 0.72);
  }

  .quick-info__list {
    grid-template-columns: 1fr;
  }

  .quick-info__item,
  .quick-info__item:first-child,
  .quick-info__item:last-child {
    padding: 14px 0;
  }

  .quick-info__item + .quick-info__item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 420px) {
  .quick-info__item:first-child {
    flex-wrap: wrap;
  }

  .quick-info__nav {
    margin-left: 60px;
  }
}

/* ---------- Úvod: text a oblúková fotka ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}

.intro-text {
  min-width: 0;
}

.intro-text h2 {
  margin-bottom: 26px;
}

.intro-lead {
  max-width: 24ch;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.intro-body {
  max-width: 52ch;
  margin-top: 20px;
  color: var(--c-muted);
}

.intro-cta {
  margin-top: 36px;
}

.intro-media {
  position: relative;
  min-width: 0;
  padding: 0 0 14% 14%;
}

.intro-media .arch {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 8px 8px;
}

.intro-media .intro-small {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48%;
}

.intro-small img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 8px solid var(--c-bg);
  border-radius: 10px;
}

@media (max-width: 860px) {
  .intro {
    grid-template-columns: 1fr;
  }

  .intro-media {
    max-width: 480px;
  }
}

/* ---------- Mozaika fotiek ---------- */
.mosaic-band {
  padding-top: 0;
}

.mosaic-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 30px;
}

.mosaic-head h2 {
  max-width: 16ch;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(220px, 28vw, 340px);
  gap: 14px;
}

.tile-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-line);
}

.tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-photo:hover img {
  transform: scale(1.04);
}

.tile-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(2, 20, 40, 0.48);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  color: #fff;
  font: 600 0.9375rem/1 var(--font-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.m1 { grid-column: span 5; }
.m2 { grid-column: span 4; }
.m3 { grid-column: span 3; }
.m4 { grid-column: span 3; }
.m5 { grid-column: span 4; }
.m6 { grid-column: span 5; }

@media (max-width: 860px) {
  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 10px;
  }

  .m1, .m6 { grid-column: span 2; }
  .m2, .m3, .m4, .m5 { grid-column: span 1; }
}

/* ---------- Služby: fotkové dlaždice ---------- */
#sluzby {
  padding-top: 0;
}

.tiles {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: repeat(2, minmax(280px, 1fr));
  gap: 18px;
}

.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-navy);
  color: #fff;
}

.tile--big {
  grid-row: span 2;
  min-height: 600px;
}

.tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.tile:hover > img {
  transform: scale(1.04);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(2, 26, 53, 0.94) 0, rgba(2, 26, 53, 0.6) 42%, rgba(2, 26, 53, 0) 76%);
}

.tile__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(22px, 3vw, 34px);
}

body.site .tile h3 {
  color: #fff;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

body.site .tile--big h3 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}

.tile p {
  max-width: 46ch;
  color: #e3e9f2;
}

body.site .tile .link-arrow {
  color: #fff;
}

/* Celá dlaždica je klikateľná cez odkaz v nej. */
.tile .link-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

@media (max-width: 860px) {
  .tiles {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .tile--big {
    grid-row: auto;
    min-height: 440px;
  }
}

/* style.css dáva #art-gallery biele pozadie (pravidlo cez id), preto je tu vyššia špecifickosť. */
/* ---------- Art galéria: navy pás ---------- */
body.home #art-gallery.gallery-band,
.gallery-band {
  background: var(--c-navy);
  color: #fff;
  overflow: hidden;
}

.gallery {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.gallery-text {
  min-width: 0;
}

body.site .gallery h2 {
  margin-bottom: 22px;
  color: #fff;
}

.gallery-text p {
  max-width: 56ch;
  color: #dbe3ef;
}

.gallery-text p + p {
  margin-top: 14px;
}

.gallery-text strong {
  color: #fff;
  font-weight: 600;
}

.gallery-band .pill {
  margin-bottom: 20px;
}

.expo {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.expo__label {
  font: 600 0.9375rem/1 var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-lime);
}

.expo__name {
  margin-top: 8px;
  font: 400 1.9rem/1.1 var(--font-head);
  color: #fff;
}

.expo__note {
  margin-top: 6px;
  color: #c9d4e3;
}

.gallery-cta {
  margin-top: 28px;
}

.gallery-media {
  position: relative;
  min-width: 0;
  padding: 0 12% 14% 0;
}

.gallery-media__photo {
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-media__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-media__poster {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32%;
}

.gallery-media__poster img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(3deg);
}

@media (max-width: 860px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-media {
    order: -1;
  }
}

/* Recenzie (.reviews-split) a kontakt (.contact-stage) sú v site.css, používajú ich aj podstránky. */

@media (prefers-reduced-motion: reduce) {
  .tile-photo:hover img,
  .tile:hover > img {
    transform: none;
  }
}
