/* =========================================================
   One+ Form — vizuální varianta (header/hero, dlaždice služeb...)
   Sdílí identickou paletu s Body (viz CLAUDE.md)
   ========================================================= */

/* ---------- Header (nad hero, sticky — zůstává nahoře při scrollu) ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  color: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
}

.brand-group,
.nav-header-actions {
  height: 48px;
  padding: 0 32px;
  border-radius: var(--radius);
  background: rgba(66, 54, 39, 0.25);
}

/* Po začátku scrollu se header posune nahoru, po odjetí z hero se pills zesvětlají (bílá 70 %), rozmažou pozadí a text/loga ztmavnou */
.brand-group,
.nav-header-actions {
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition:
    background-color 0.7s ease,
    -webkit-backdrop-filter 0.7s ease,
    backdrop-filter 0.7s ease,
    box-shadow 0.7s ease;
}
.site-header {
  transition: transform 0.35s ease, color 0.7s ease;
}
.site-header.is-shifted {
  transform: translateY(-10px);
}
.site-header.is-scrolled .brand-group,
.site-header.is-scrolled .nav-header-actions {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.site-header.is-scrolled {
  color: var(--c-text);
}
.brand-group__home { display: flex; align-items: center; }


/* Levá skupina — One+ logo + brand nav (Form / Body / Bali) */

.brand-group {
  display: flex;
  align-items: center;
  gap: 48px;
}

.brand-group__logo {
  display: block;
  height: 28px;
  width: auto;
}
.brand-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
/* Aktuální značka (Form) je plně viditelná, ostatní jsou utlumené */
.brand-nav a {
  display: block;
  opacity: 0.3;
  transition: opacity 0.2s ease;
}
.brand-nav a:hover { opacity: 0.7; }
.brand-nav a[aria-current="page"] { opacity: 1; }
.brand-nav__logo {
  display: block;
  height: 18px;
  width: auto;
}
/* Pravá skupina — navigace + CTA */

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a,
.main-nav button.nav-link {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: var(--fs-small);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.main-nav button.nav-link { padding: 0; line-height: 1; } /* text v jedné rovině s logy */

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Dropdown „Služby“ */

.dropdown { position: relative; }
.dropdown__menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--c-text);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  padding: 10px;
  min-width: 240px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.dropdown.is-open .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
/* Rozbalení i při najetí myší (a při focusu z klávesnice); neviditelný "most" přes mezeru pod tlačítkem */
@media (hover: hover) {
  .dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 20px;
  }
  .dropdown:hover .dropdown__menu,
  .dropdown:focus-within .dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}
.dropdown__menu li a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 400;
}
.dropdown__menu li a:hover { background: var(--c-bg-alt); }

/* Mobilní menu toggle (schovaný na desktopu) */
.menu-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 12s ease-out forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg img { animation: none; }
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  color: #fff;
  padding: 0 var(--gutter);
}

.hero__mark {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__mark svg {
  height: var(--fs-h1);
  width: auto;
  color: #fff;
}

.hero__slogan {
  max-width: none;
  font-size: 17px; /* VÝJIMKA ze škály — velikost zadána ručně */
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}
/* První slovo sloganu (CHANGE) větší a tučně, zbytek menší — na společné účaří */
.hero__slogan strong {
  font-size: 21px; /* VÝJIMKA ze škály — velikost zadána ručně */
  font-weight: 700;
  line-height: 1;
}

.hero__mark.hero-in { --reveal-delay: 0.1s; }
.hero__content > .btn-primary.hero-in { --reveal-delay: 0.3s; }
.hero__slogan.hero-in { --reveal-delay: 0.5s; }

.hero__content > .btn-primary {
  background: rgba(220, 208, 206, 0.2);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-small);
  font-weight: 400;
  padding: 10px 100px;
}
/* Hero CTA má vlastní nástupní animaci (.hero-in), proto zde výčet přechodů znovu včetně hoveru */
.hero__content > .btn-primary.hero-in {
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0s),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0s),
    background-color 0.25s ease,
    translate 0.25s ease,
    box-shadow 0.25s ease;
}
@media (hover: hover) {
  .hero__content > .btn-primary:not(.btn-disabled):hover { background: rgba(220, 208, 206, 0.3); }
}

/* ---------- Dlaždice služeb ---------- */

.services {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.services__head {
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.services__head-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.services__head-text p { margin: 0; font-size: var(--fs-body); }
/* Úvodní text bez verzálek (výjimka z globálního text-transform: uppercase) */
.services__head-text { text-transform: none; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1099px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-tile:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-tile:nth-child(3) { aspect-ratio: 4 / 3; }
}

.service-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: #fff;
  isolation: isolate;
}
@media (max-width: 767px) {
  .service-tile { aspect-ratio: 4 / 3; }
}
@media (min-width: 1100px) {
  .services-grid .service-tile:nth-child(2) { margin-top: 56px; }
}
.service-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.5s ease;
}
.service-tile:hover img { transform: scale(1.06); }
.service-tile img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

.services-grid .service-tile { --reveal-travel: 140px; }
.services-grid .service-tile:nth-child(1) { --reveal-delay: 0s; }
.services-grid .service-tile:nth-child(2) { --reveal-delay: 0.12s; --reveal-from: -1; --reveal-travel: 50px; }
.services-grid .service-tile:nth-child(3) { --reveal-delay: 0.24s; }

.why__list .why__item:nth-child(1) { --reveal-delay: 0s; }
.why__list .why__item:nth-child(2) { --reveal-delay: 0.12s; }
.why__list .why__item:nth-child(3) { --reveal-delay: 0.24s; }
.why__list .why__item:nth-child(4) { --reveal-delay: 0.36s; }

.location__gallery img:nth-child(1) { --reveal-delay: 0s; }
.location__gallery img:nth-child(2) { --reveal-delay: 0.1s; }
.location__gallery img:nth-child(3) { --reveal-delay: 0.2s; }
.location__gallery img:nth-child(4) { --reveal-delay: 0.3s; }
.location__info.reveal { --reveal-delay: 0.15s; }

.service-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%);
}
.service-tile__label {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Proč my ---------- */

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 767px) {
  .why { grid-template-columns: 1fr; gap: 32px; }
}

.why__list {
  display: grid;
  gap: 28px;
}
.why__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.why__item .num {
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--c-accent);
  line-height: 1;
}
.why__item p {
  margin-top: 8px;
  color: rgba(0,0,0,0.65);
}

/* ---------- Recenze (Elfsight placeholder) ---------- */

.reviews__widget {
  min-height: 340px;
  border-radius: var(--radius);
}

/* ---------- Fotky studia + lokace ---------- */

.location {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
@media (max-width: 1099px) {
  .location { grid-template-columns: 1fr; }
}

.location__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.location__gallery img {
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.location__info {
  background: var(--c-bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.location__info dt {
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  margin-bottom: 4px;
}
.location__info dd {
  margin: 0 0 16px;
  font-size: var(--fs-body);
}
.location__info dd:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--c-text);
  color: #fff;
  padding: 100px 0 32px;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.site-footer__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__btn {
  min-width: 315px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 400;
  text-transform: uppercase;
}
.site-footer__btn--primary { background: rgba(220, 208, 206, 0.3); }
.site-footer__btn:hover { background: rgba(220, 208, 206, 0.38); }
.site-footer__contact {
  font-style: normal;
  text-align: center;
  font-size: var(--fs-small);
  line-height: 1.5;
}
.site-footer__mark {
  width: 100%;
  height: auto;
  margin-block: 32px;
  color: rgba(169, 151, 128, 0.3);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}
.site-footer__legal a:hover { opacity: 0.7; }
.site-footer__bottom {
  align-self: stretch;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15); /* oddělovací linka nad spodním řádkem */
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--fs-small);
  text-transform: uppercase;
}

/* ---------- Responsive: header nav se na mobilu a tabletu schová ---------- */

@media (max-width: 1099px) {
  .main-nav { display: none; }
  .brand-group__mark { display: none; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    width: 36px;
    height: 36px;
  }
}
}


/* ---------- Mobilní / tabletové fullscreen menu ---------- */

.mobile-menu { display: none; }

/* Mobil/tablet — header bez pozadí, logo a tlačítko ve stejné pozici jako ve fullscreen menu */
@media (max-width: 1099px) {
  .brand-group,
  .nav-header-actions,
  .site-header.is-scrolled .brand-group,
  .site-header.is-scrolled .nav-header-actions {
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
  }
  .site-header { position: absolute; } /* na mobilu a tabletu není sticky, odjíždí se stránkou */
  .site-header.is-shifted { transform: none; }
  .menu-toggle { justify-content: flex-end; padding: 0; }
}

@media (max-width: 1099px) {
  .mobile-menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--c-text);
    color: #fff;
    padding: 24px var(--gutter) 40px;
    overflow-y: auto;
  }
}
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px; /* stejná výška řádku jako header, aby logo a tlačítko seděly na stejném místě */
}
.mobile-menu__logo-svg {
  display: block;
  height: 28px;
  width: auto;
  color: #fff;
}
.mobile-menu__close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
}

/* Tři klikací loga značek — aktivní plně viditelné s podtržením, ostatní utlumená */
.mobile-menu__brands {
  display: flex;
  align-items: flex-end;
  gap: 28px;
}
.mobile-menu__brand {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0 0 10px;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}
.mobile-menu__brand.is-active {
  opacity: 1;
  border-bottom-color: #fff;
}
.mobile-menu__brand:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }

/* Loga Form / Body / Bali — inline SVG od zákazníka, barva přes currentColor */
.brand-logo {
  display: block;
  height: 22px;
  width: auto;
  color: #fff;
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu__list li { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.mobile-menu__list a {
  display: block;
  padding: 16px 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.15;
}
.mobile-menu__cta { margin-top: 32px; width: 100%; }

/* Společné položky (Ceník, Vouchery, Kontakt) — oddělené od služeb značky */
.mobile-menu__common {
  margin-top: 40px;
}
.mobile-menu__common a { font-weight: 400; }

.menu-icon { display: block; width: 24px; height: 24px; }

/* Firemní údaje ve footeru */
.site-footer__company {
  max-width: 70ch;
  text-align: center;
  font-size: var(--fs-small);
  line-height: 1.5;
  opacity: 0.6;
}


/* ---------- Co je to cvičení na reformeru + carousel fotek ---------- */
.reformer__head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.reformer__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-transform: none; /* text bez verzálek (výjimka z globálního uppercase) */
}
.reformer__text p { margin: 0; font-size: var(--fs-body); }

/* Carousel na celou šířku okna: nekonečná smyčka, hrany vlevo/vpravo jsou vždy useknuté */
.gallery { overflow: hidden; }
.gallery__track {
  display: flex;
  width: max-content;
  animation: gallery-scroll 60s linear infinite;
}
.gallery__set {
  display: flex;
  gap: 24px;
  padding: 0 24px 0 0; /* mezera i na konci sady, aby smyčka navazovala */
  list-style: none;
  margin: 0;
}
@keyframes gallery-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .gallery__track { animation: none; }
}
.gallery__slide {
  flex: 0 0 auto;
  width: clamp(200px, 18vw, 348px);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- FAQ: jeden sloupec (nadpis nad rozbalovacími otázkami) ---------- */
.faq__layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.faq__head { display: flex; flex-direction: column; gap: 1rem; }
.faq__head p { margin: 0; font-size: var(--fs-body); text-transform: none; }

.faq__item { border-top: 1px solid rgba(0, 0, 0, 0.2); }
.faq__item:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.2); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font-size: var(--fs-h3); font-weight: 700; line-height: 1.15; }

/* Ikona: jednoduchá šipka bez kruhu, po otevření se otočí nahoru */
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  transition: rotate .3s;
}
.faq__icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  translate: -50% -70%;
  rotate: 45deg;
}
.faq__item[open] .faq__icon { rotate: 180deg; }
.faq__item summary:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }

.faq__a { padding: 0 64px 24px 0; text-transform: none; }
.faq__a p { margin: 0; font-size: var(--fs-body); }
