/* ============================================================
   Apartments Veronika — Homepage
   ============================================================ */

/* ── HERO — SCROLL EXPANSION ─────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  /* Starts contained, expands to full viewport on scroll */
  overflow: hidden;
}

.hero__track {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* The scroll-drive wrapper — height determines scroll distance */
.hero__scroll-driver {
  height: 100vh; /* Full viewport hero — no extra scroll dead zone */
  position: relative;
}

.hero__image-wrap {
  position: relative;
  top: 0;
  height: 100vh;
  overflow: hidden;
  will-change: transform;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform-origin: center center;
  /* Starts slightly zoomed, relaxes as user scrolls */
  transform: scale(1.08);
  transition: transform 0.1s linear;
  display: block;
}

/* Dark overlay that fades as scroll progresses */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.28) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

/* Content centered over the hero */
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(20px, 5vw, 80px);
  padding-top: calc(var(--banner-h, 0px) + var(--navbar-h, 72px) + 40px);
}

.hero__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade-up 0.9s ease 0.2s forwards;
}

.hero__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.08;
  color: #FFFFFF;
  margin: 0 0 1.5rem;
  max-width: 16ch;
  text-shadow: 0 2px 40px rgba(0,0,0,0.30);
  opacity: 0;
  transform: translateY(24px);
  animation: hero-fade-up 1.0s ease 0.4s forwards;
}

.hero__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  max-width: 48ch;
  line-height: 1.7;
  margin: 0 0 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 1.0s ease 0.65s forwards;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade-up 1.0s ease 0.85s forwards;
}

/* Glass CTA buttons over hero */
.hero__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 24px rgba(128,104,254,0.45);
}
.hero__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(128,104,254,0.55);
  color: #fff;
}

.hero__btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.hero__btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  animation: hero-fade-up 1s ease 1.4s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.35);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.8);
  animation: scroll-line 1.8s ease-in-out 1.4s infinite;
}

@keyframes scroll-line {
  0%   { top: -100%; }
  100% { top: 200%; }
}

/* Placeholder hero (no image yet) */
.hero__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1A1825 0%, #2D1F5E 45%, #1A1825 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay on placeholder */
.hero__placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 50%, rgba(128,104,254,0.18) 0%, transparent 50%),
                    radial-gradient(circle at 70% 30%, rgba(128,104,254,0.12) 0%, transparent 40%);
}

/* ── HERO ANIMATIONS ─────────────────────────────────────── */
@keyframes hero-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ── SECTION: QUICK STATS BAR ────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  padding: 0;
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--divider);
}

.stats-bar__item {
  padding: 28px 32px;
  text-align: center;
  border-right: 1px solid var(--divider);
  transition: background 0.2s ease;
}
.stats-bar__item:last-child { border-right: none; }
.stats-bar__item:hover { background: var(--surface2); }

.stats-bar__number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}

.stats-bar__label {
  font-size: 0.8rem;
  color: var(--text2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── SECTION: FEATURES ───────────────────────────────────── */
.features-section {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: clamp(3rem, 5vw, 4rem);
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  transition: background 0.25s ease;
  position: relative;
}

.feature-card:hover {
  background: var(--surface2);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  transition: transform 0.25s ease;
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.08) rotate(-4deg);
}

.feature-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.feature-card__body {
  font-size: 0.9375rem;
  color: var(--text2);
  line-height: 1.7;
  margin: 0;
  max-width: 100%;
}

/* ── SECTION: GALLERY TEASER ─────────────────────────────── */
.gallery-section {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--bg-alt);
  overflow: hidden;
}

.gallery-section .section-header {
  margin-bottom: 3rem;
}

/* Horizontal scroll strip */
.gallery-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 clamp(16px, 4vw, 48px) 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  justify-content: center;
  flex-wrap: nowrap;
}
.gallery-strip:active { cursor: grabbing; }
.gallery-strip::-webkit-scrollbar { display: none; }

.gallery-strip__item {
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform 0.30s ease, box-shadow 0.30s ease;
}

.gallery-strip__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Varying heights for visual interest */
.gallery-strip__item:nth-child(1) { width: 340px; height: 440px; }
.gallery-strip__item:nth-child(2) { width: 260px; height: 320px; margin-top: 60px; }
.gallery-strip__item:nth-child(3) { width: 400px; height: 480px; }
.gallery-strip__item:nth-child(4) { width: 280px; height: 360px; margin-top: 40px; }
.gallery-strip__item:nth-child(5) { width: 320px; height: 420px; }
.gallery-strip__item:nth-child(6) { width: 240px; height: 300px; margin-top: 80px; }

.gallery-strip__item picture,
.gallery-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder tiles when no images yet */
.gallery-strip__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  color: var(--text3);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-section__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── SECTION: REVIEWS TEASER ─────────────────────────────── */
.reviews-section {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--bg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-mid);
}

.review-card__score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.review-card__label {
  font-size: 0.8rem;
  color: var(--text3);
  line-height: 1.4;
}

.review-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.review-card__body {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.7;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 1rem;
  border-top: 1px solid var(--divider);
  font-size: 0.8125rem;
  color: var(--text3);
}

.review-card__flag {
  font-size: 1.1rem;
  line-height: 1;
}

/* Empty review card placeholder */
.review-card--placeholder {
  opacity: 0.5;
  pointer-events: none;
}

.reviews-section__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── SECTION: ABOUT TEASER ───────────────────────────────── */
.about-section {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--bg-alt);
}

.about-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-section__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}

.about-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.about-section__image:hover img { transform: scale(1.04); }

/* Accent tag on the image */
.about-section__image-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--glass-bg-heavy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-section__image-tag .score {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.about-section__image-tag .label {
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.4;
}

/* Placeholder */
.about-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-section__content { }

.about-section__content h2 {
  margin-bottom: 1.25rem;
}

.about-section__content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text2);
  margin-bottom: 1rem;
  max-width: 52ch;
}

.about-section__signature {
  margin-top: 2rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
}

/* ── SECTION: CTA BANNER ─────────────────────────────────── */
.cta-section {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Decorative background accent */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
    var(--accent-light) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 1.75rem;
}

.cta-section__headline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.cta-section__sub {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.75;
  margin: 0 auto 2.5rem;
  max-width: 46ch;
}

.cta-section__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Divider ornament between sections */
.section-divider {
  height: 1px;
  background: var(--divider);
  margin: 0;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-bar__item:nth-child(2) { border-right: none; }
  .stats-bar__item:nth-child(3) { border-right: 1px solid var(--divider); }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .about-section__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-section__image {
    aspect-ratio: 16/9;
    max-height: 380px;
  }
}

@media (max-width: 600px) {
  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__headline {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__btn-primary,
  .hero__btn-ghost {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .gallery-strip__item:nth-child(1) { width: 260px; height: 340px; }
  .gallery-strip__item:nth-child(2) { width: 200px; height: 260px; margin-top: 40px; }
  .gallery-strip__item:nth-child(3) { width: 300px; height: 380px; }
  .gallery-strip__item:nth-child(4) { width: 220px; height: 280px; margin-top: 30px; }
  .gallery-strip__item:nth-child(5) { width: 260px; height: 320px; }
  .gallery-strip__item:nth-child(6) { display: none; }
}
