/* ==========================================================================
   Refresh Studio Kadaň — Homepage (index.html) Styles
   Hero with fullscreen video, stats bar, services grid with elevated middle
   card, HR spotlight with glow halos, story, reviews, green CTA banner.
   ========================================================================== */

/* --- HERO — fullsize video, AR set z JS po loadedmetadata --- */
.hero {
  position: relative;
  width: 100%;
  /* Default 16/9 fallback — JS to přepíše skutečným AR videa po načtení.
     Tím dosáhneme: žádné černé pruhy + žádný crop (cover na perfektní AR
     kontejner = identický s contain). */
  aspect-ratio: 16 / 9;
  min-height: 540px;
  max-height: 100vh;
  overflow: hidden;
  background-color: var(--black);
}

/* Mobile: aspect-ratio 16:9 dělá hero příliš krátký (~220px na 390px wide),
   text content (h1 + body + CTA) přetéká. Přepneme na auto height
   s min-height, aby se text vešel komfortně. JS dropu AR neaplikuje
   pod 768px (viz js/index.js). */
@media (max-width: 768px) {
  .hero {
    aspect-ratio: auto;
    min-height: 92vh;
    max-height: none;
  }
}

.hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--black);
}

.hero__video-bg video,
.hero__video-bg iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* s aspect-ratio přesně podle videa = bez crop, bez bars */
  border: 0;
}

/* For YouTube iframe fallback: ensure it covers */
.hero__video-bg iframe {
  width: 120vw;
  height: 120vh;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  transition: background 2s ease;
}

.hero__overlay.darken {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 4rem 4.5rem;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.4s ease, transform 1.4s ease;
  max-width: 1400px;
  margin: 0 auto;
}

.hero__content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(160, 200, 20, 0.35);
  padding: 0.375rem 1.25rem;
  margin-bottom: 1.25rem;
}

.hero__claim {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.875rem);
  font-weight: 600;
  color: var(--pure-white);
  line-height: 1.12;
  margin-bottom: 1.25rem;
  max-width: 760px;
  letter-spacing: -0.01em;
}

.hero__text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2.25rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero__phone {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  margin-left: 0.5rem;
}

.hero__phone a {
  color: var(--lime);
  font-weight: 700;
}

.hero__phone a:hover {
  color: var(--lime-light);
}

/* Play button — bottom right corner, glassy */
.hero__play-btn {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.375rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--pure-white);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-base),
              border-color var(--transition-base),
              color var(--transition-base);
}

.hero__play-btn:hover,
.hero__play-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--lime);
  color: var(--lime);
}

.hero__play-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Scroll hint indicator */
.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0.5;
  animation: hero-float 2.5s ease-in-out infinite;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

@keyframes hero-float {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll {
    animation: none;
  }
  .hero__content {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1024px) {
  .hero__content {
    padding: 0 1.5rem 3.5rem;
  }
  .hero__play-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
  }
  .hero__scroll {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    text-align: center;
  }
  .hero__phone {
    margin-left: 0;
    text-align: center;
  }
}

/* --- STATS BAR --- */
.stats-bar {
  background-color: var(--charcoal);
  padding: 3.5rem 1.5rem;
  border-bottom: 3px solid var(--lime);
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.08);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .stat-number {
    font-size: 2.25rem;
  }
  .stats-bar {
    padding: 2.5rem 1rem;
  }
}

/* --- SERVICES — 3 cards, middle card elevated --- */
.services {
  background-color: var(--cream);
  text-align: center;
}

.services__subtitle {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--lime-dark);
  margin-bottom: 0.625rem;
  font-weight: 600;
}

.services h2 {
  margin-bottom: 1rem;
}

.services__intro {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.7;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  text-align: left;
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: stretch;
  }
}

.service-card {
  background-color: var(--pure-white);
  padding: 3rem 2.25rem 2.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s, box-shadow 0.45s;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}

.service-card:hover::before {
  transform: scaleX(1);
}

@media (min-width: 768px) {
  .service-card:nth-child(2) {
    transform: translateY(-1.25rem);
  }

  .service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.07);
  }

  .service-card:nth-child(2):hover {
    transform: translateY(-1.75rem);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.08);
  }
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(160, 200, 20, 0.12);
  line-height: 0.8;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.service-card__icon {
  width: 120px;
  height: 120px;
  background-color: var(--lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card__icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  /* Šárčina sada má smíšené barvy: SVG ikony (icon-hr, icon-masaze, icon-kegel)
     jsou černé, číslované PNG (1-36) jsou lime. brightness(0) sjednotí na černou
     siluetu s max kontrastem na lime kruhu (WCAG AAA). */
  filter: brightness(0);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
  color: var(--text);
}

.service-card__text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--lime-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: gap var(--transition-base), color var(--transition-base);
  margin-top: auto;
}

.service-card__link::after {
  content: '→';
  transition: transform var(--transition-base);
}

.service-card__link:hover {
  gap: 0.875rem;
  color: var(--lime);
}

.service-card__link:hover::after {
  transform: translateX(4px);
}

.services .section-cta {
  margin-top: 1rem;
}

/* --- HR FEATURE SPOTLIGHT --- */
.hr-feature {
  background-color: var(--black);
  color: var(--pure-white);
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
}

.hr-feature::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    var(--lime-glow) 0%,
    transparent 65%
  );
  top: -100px;
  right: -50px;
  pointer-events: none;
}

.hr-feature::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(160, 200, 20, 0.08) 0%,
    transparent 65%
  );
  bottom: -80px;
  left: 10%;
  pointer-events: none;
}

.hr-feature .container {
  position: relative;
  z-index: 1;
}

.hr-feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hr-feature__grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 5rem;
  }
}

.hr-feature__image {
  position: relative;
  overflow: hidden;
}

.hr-feature__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.hr-feature__image::before {
  content: '';
  position: absolute;
  inset: -0.75rem;
  border: 1px solid rgba(160, 200, 20, 0.2);
  pointer-events: none;
  z-index: 1;
}

.hr-feature__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.8vw, 3rem);
  font-weight: 600;
  color: var(--pure-white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hr-feature__text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.125rem;
}

.hr-feature__highlight {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--lime);
  border-left: 2px solid var(--lime);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  line-height: 1.5;
}

.hr-feature__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem 1rem;
  margin: 1.75rem 0;
}

.hr-feature__list-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
}

.hr-feature__list-item::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--lime);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hr-feature__list {
    grid-template-columns: 1fr;
  }
}

/* --- STORY SECTION (Šárčin medailonek) --- */
.story {
  background-color: var(--cream);
}

.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .story__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4.5rem;
  }
}

.story__image-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.story__image-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.story__image-wrap::before {
  content: '';
  position: absolute;
  top: 1rem;
  right: -1rem;
  bottom: -1rem;
  left: 1rem;
  border: 1.5px solid var(--lime);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.story__label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime-dark);
  margin-bottom: 0.625rem;
}

.story__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.2vw, 2.625rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.story__body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 1rem;
}

.story__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  font-style: italic;
  color: var(--lime-dark);
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .story__image-wrap {
    margin: 0;
  }
}

/* --- REVIEWS SECTION --- */
.reviews {
  background-color: var(--white);
  text-align: center;
}

.reviews h2 {
  margin-bottom: 0.75rem;
}

.reviews__intro {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.7;
}

.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: left;
}

@media (min-width: 768px) {
  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.review-card {
  background-color: var(--cream);
  padding: 2.5rem 2rem;
  border-left: 3px solid var(--lime);
  position: relative;
  transition: transform 0.4s;
}

.review-card:hover {
  transform: translateY(-4px);
}

.review-card__quote {
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--lime);
  line-height: 0.5;
  margin-bottom: 1.25rem;
  opacity: 0.4;
}

.review-card__stars {
  display: block;
  color: var(--lime-dark);
  font-size: 0.875rem;
  letter-spacing: 0.125em;
  margin-bottom: 0.875rem;
}

.review-card__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.review-card__author {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}
