
/* Effective - Rekonštrukcie & Kúpeľne modernize overrides - non-breaking */
:root {
  --maxw: 1100px;
}
.container { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
h1, h2, h3 { letter-spacing: -0.02em; }
.hero { padding-top: 36px; padding-bottom: 16px; }
.hero .card { background: linear-gradient(180deg, #ffffff, #fbfdff); }
.btn { border-radius: 12px; padding: 12px 16px; }
.btn-primary { box-shadow: 0 8px 18px rgba(37,99,235,.2); }
.btn-primary:hover { transform: translateY(-1px); }
.services { gap: 16px; }
.service { border-radius: 16px; }
.supplement-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #78350f;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  padding: 3px 8px;
  border-radius: 999px;
  vertical-align: middle;
}
#effective-footer { font-size: 14px; }

/* Anchor offset so formulár sa zobrazí správne pod pevnou hlavičkou */
#requestForm { scroll-margin-top: 96px; }


/* Placeholder tile for interiéry slider */
.rem-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:300px;
  background: repeating-linear-gradient(135deg,#f8fafc,#f8fafc 12px,#eef2ff 12px,#eef2ff 24px);
  border: 2px dashed #c7d2fe;
  color:#475569;
  font-weight:800;
  letter-spacing:.02em;
  border-radius:12px;
}
@media (max-width:560px){
  .rem-placeholder{ min-height: 220px; }
}


/* Mini line under hero H1 */
.mini-line{
  font-size: 12px;
  font-weight: 800;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 6px 0 8px;
}

/* Form anchor offset so header neprekryje hornú časť na všetkých zariadeniach */
#requestForm.anchor-target{ scroll-margin-top: 140px; }
@media (min-width: 981px){
  #requestForm.anchor-target{ scroll-margin-top: 110px; }
}


/* Centered badge under H1 */
.hero .mini-line{
  display:block;
  text-align:center;
  font-size:12px;
  font-weight:800;
  color:#065f46;
  background:#ecfdf5;
  border:1px solid #a7f3d0;
  padding:6px 12px;
  border-radius:999px;
  width:max-content;
  margin:8px auto 10px;
}

/* Make interiéry gallery placeholders landscape like top gallery */
.rem-gal .swiper-slide img{
  width: 100%;
  height: auto;
  display:block;
  border-radius:12px;
}
.rem-placeholder{
  aspect-ratio: 16/9;
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: repeating-linear-gradient(135deg,#f8fafc,#f8fafc 12px,#eef2ff 12px,#eef2ff 24px);
  border: 2px dashed #c7d2fe;
  color:#475569;
  font-weight:800;
  letter-spacing:.02em;
  border-radius:12px;
}
@supports not (aspect-ratio: 16/9){
  .rem-placeholder{ position: relative; height: 0; padding-top: 56.25%; }
  .rem-placeholder::after{
    content: "Pripravujeme";
    position:absolute; inset:0;
    display:flex; align-items:center; justify-content:center;
    color:#475569; font-weight:800;
  }
}


/* Modern pagination bullets */
.swiper .swiper-pagination-bullet{
  width: 10px; height: 10px; opacity: .4;
}
.swiper .swiper-pagination-bullet-active{
  opacity: 1;
}

/* Modern draggable scrollbar */
.swiper .swiper-scrollbar{
  height: 4px; background: rgba(2,6,23,.08); border-radius: 999px; margin: 10px 16px;
}
.swiper .swiper-scrollbar-drag{
  background: #60a5fa; border-radius: 999px;
}

/* Ensure gallery images are wide and cover the frame */
.rem-gal .swiper-slide img{
  width:100%; height:280px; object-fit:cover; border-radius:12px;
}
@media (min-width: 980px){
  .rem-gal .swiper-slide img{ height: 420px; }
}


/* === Effective - Rekonštrukcie & Kúpeľne custom animations v1 === */

/* 1) Heartbeat (slow, subtle) for trust block */
@keyframes rem-heartbeat {
  0%   { transform: scale(1); }
  20%  { transform: scale(1.02); }
  40%  { transform: scale(1); }
  60%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.effective-trust.rem-pulse { 
  animation: rem-heartbeat 4.5s ease-in-out infinite;
  transform-origin: center;
}

/* 2) Slow zoom in/out for service images */
@keyframes rem-zoomio {
  0%   { transform: scale(1.03); }
  50%  { transform: scale(0.97); }
  100% { transform: scale(1.03); }
}

/* Only animate when in viewport (reduced motion respect) */
@media (prefers-reduced-motion: reduce){
  .effective-trust.rem-pulse, 
}


/* === v26: subtle shake for service images === */
@keyframes rem-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(1px, -1px); }
  40% { transform: translate(-1px, 1px); }
  60% { transform: translate(1px, 1px); }
  80% { transform: translate(-1px, -1px); }
}
.service img { will-change: transform; transform-origin: center; }
/* jemné rozfázovanie medzi sekciami (vyzerá prirodzenejšie) */
.service:nth-of-type(1) img { animation-delay: .0s }
.service:nth-of-type(2) img { animation-delay: .7s }
.service:nth-of-type(3) img { animation-delay: 1.4s }
.service:nth-of-type(4) img { animation-delay: 2.1s }
.service:nth-of-type(5) img { animation-delay: 2.8s }
.service:nth-of-type(6) img { animation-delay: 3.5s }

@media (prefers-reduced-motion: reduce){
  .service img { will-change: transform; transform-origin: center; }
}


/* === v27: "on-enter" shake (twice) for service images === */
@keyframes rem-shake-once {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-7px); }
  30% { transform: translateX(7px); }
  45% { transform: translateX(-5px); }
  60% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(3px); }
}
/* Class pridaná JS-om pri vstupe do viewportu */
.service img.rem-shake { animation: rem-shake-once 0.72s cubic-bezier(.36,.07,.19,.97) 0s 1 both; }
@media (prefers-reduced-motion: reduce){
  .service img.rem-shake { animation: rem-shake-once 0.72s cubic-bezier(.36,.07,.19,.97) 0s 1 both; }
}


/* ===== HERO with photo background (2026-01) ===== */
.hero--photo{
  position: relative;
  margin-top: 18px;
  border-radius: 22px;
  overflow: hidden;
  min-height: 360px;
}
.hero--photo .hero-media{
  position:absolute; inset:0;
}
.hero--photo .hero-media img{
  width:100%; height:100%;
  object-fit:cover;
  object-position: right center;
  display:block;
  filter:saturate(1.05) contrast(1.02);
}
.hero--photo .hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.78) 42%, rgba(255,255,255,.22) 72%, rgba(255,255,255,0) 100%);
}
.hero--photo .hero-inner{
  position:relative;
  padding: 28px 18px;
}
.hero--photo .hero-card{
  max-width: 520px;
  /* Text a tlačidlá priamo "v obrázku" (bez bielej karty) */
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}
.hero--photo .hero-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(5,150,105,.92);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 10px 20px rgba(5,150,105,.18);
}
.hero--photo .hero-pill:before{
  content:"";
  width:8px; height:8px;
  border-radius:999px;
  background: rgba(255,255,255,.85);
}
.hero--photo h1{
  margin-top: 14px;
  text-shadow: 0 10px 28px rgba(15,23,42,.18);
}
.hero--photo .sub{
  margin-top: 10px;
  max-width: 46ch;
  color: rgba(15,23,42,.82);
  text-shadow: 0 8px 22px rgba(15,23,42,.14);
}
.hero--photo .cta{
  display:flex;
  gap: 12px;
  align-items:center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.hero--photo .btn-primary{
  background: linear-gradient(180deg,#2563eb,#1d4ed8);
  border: none;
}
.hero--photo .btn-ghost{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.14);
}
@media (min-width: 900px){
  .hero--photo{ min-height: 420px; }
  .hero--photo .hero-inner{ padding: 44px 40px; }
  .hero--photo .hero-card{ padding: 0; }
}
@media (max-width: 420px){
  .hero--photo{ border-radius: 18px; min-height: 420px; }
  .hero--photo .hero-overlay{
    background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.82) 55%, rgba(255,255,255,.20) 100%);
  }
  .hero--photo .hero-media img{ object-position: 75% center; }
}
