/* KW Real Estate – Home Variante 3 (Premium) */

.page-home-v3 {
  --hx-pad: clamp(1.5rem, 4vw, 2.5rem);
  --hx-max: 1320px;
}

/* ─── Hero ─── */
.page-home-v3 .hero--luxury {
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-home-v3 .hero--luxury .hero__image {
  inset: -8% 0 0;
}

.page-home-v3 .hero--luxury .hero__image img {
  object-position: center 35%;
  transform-origin: center center;
}

.page-home-v3 .hero__overlay--luxury {
  background:
    linear-gradient(105deg, rgba(6, 6, 20, 0.88) 0%, rgba(6, 6, 20, 0.55) 42%, rgba(6, 6, 20, 0.12) 72%, transparent 100%),
    linear-gradient(180deg, rgba(6, 6, 20, 0.35) 0%, transparent 28%, rgba(6, 6, 20, 0.65) 100%);
}

.page-home-v3 .hero__content--luxury {
  max-width: var(--hx-max);
  padding: 0 var(--hx-pad) clamp(4rem, 8vw, 6.5rem);
}

.page-home-v3 .hero__content--luxury::before {
  display: none;
}

.hx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.55fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.hx-label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: var(--track-xl);
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.75rem;
}

.hx-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hx-label--light {
  color: rgba(255, 255, 255, 0.75);
}

.page-home-v3 .hero--luxury h1 {
  font-size: clamp(2.4rem, 5.8vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.03em;
  max-width: 14ch;
  margin-bottom: 1.75rem;
  color: var(--white);
  text-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  animation: hxFadeUp 1.1s var(--ease) 0.15s both;
}

.page-home-v3 .hero--luxury h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--gold-light);
}

.hx-lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  margin-bottom: 2.25rem;
  animation: hxFadeUp 1.1s var(--ease) 0.3s both;
}

.hx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  animation: hxFadeUp 1.1s var(--ease) 0.45s both;
}

.hx-ghost-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--track-lg);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(196, 160, 106, 0.55);
  padding-bottom: 4px;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.hx-ghost-link:hover {
  color: var(--white);
  border-color: var(--gold-light);
}

.hx-ghost-link--light:hover {
  color: var(--gold-light);
}

.hx-hero__panel {
  display: grid;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 24, 0.45);
  backdrop-filter: blur(20px) saturate(140%);
  animation: hxFadeUp 1.2s var(--ease) 0.55s both;
}

.hx-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hx-hero__stat:last-child {
  border-bottom: 0;
}

.hx-hero__stat-value {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white);
}

.hx-hero__stat-label {
  font-size: 0.68rem;
  letter-spacing: var(--track-lg);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hx-scroll-hint {
  position: absolute;
  right: var(--hx-pad);
  bottom: 2.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.62rem;
  letter-spacing: var(--track-xl);
  text-transform: uppercase;
}

.hx-scroll-hint::after {
  content: '';
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, rgba(196, 160, 106, 0.8), transparent);
  animation: hxScrollPulse 2.2s ease-in-out infinite;
}

@keyframes hxFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hxScrollPulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.35; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ─── Ticker ─── */
.hx-ticker {
  overflow: hidden;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  padding: 1.1rem 0;
}

.hx-ticker__track {
  display: flex;
  gap: clamp(2.5rem, 6vw, 5rem);
  width: max-content;
  animation: hxTicker 38s linear infinite;
}

.hx-ticker__track span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--track-xl);
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}

.hx-ticker__track span::after {
  content: '·';
  margin-left: clamp(2.5rem, 6vw, 5rem);
  color: var(--gold);
}

@keyframes hxTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── Manifest ─── */
.hx-manifest {
  padding: clamp(5rem, 10vw, 8rem) var(--hx-pad);
  background: var(--navy);
  position: relative;
}

.hx-manifest::before {
  content: '“';
  position: absolute;
  top: clamp(2rem, 5vw, 3.5rem);
  left: clamp(1rem, 4vw, 3rem);
  font-size: clamp(6rem, 14vw, 10rem);
  line-height: 1;
  font-weight: 200;
  color: rgba(196, 160, 106, 0.12);
  pointer-events: none;
}

.hx-manifest__inner {
  max-width: 52rem;
  text-align: center;
}

.hx-manifest blockquote {
  margin: 0;
}

.hx-manifest blockquote p {
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.hx-manifest__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 2.5rem;
  font-size: 0.72rem;
  letter-spacing: var(--track-lg);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hx-manifest__meta span:first-child {
  color: var(--gold-light);
  font-weight: 500;
}

/* ─── Editorial split ─── */
.hx-editorial {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: min(90vh, 820px);
  background: var(--white);
}

.hx-editorial__media {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.hx-editorial__media .image-block,
.hx-editorial__media {
  height: 100%;
}

.hx-editorial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hx-editorial__frame {
  position: absolute;
  inset: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.hx-editorial__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5.5rem);
  border-left: 1px solid var(--gray-200);
}

.hx-editorial__copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0;
}

.hx-checklist {
  margin: 2rem 0 2.5rem;
  display: grid;
  gap: 0.9rem;
}

.hx-checklist li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.hx-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ─── Spotlight ─── */
.hx-spotlight {
  position: relative;
  min-height: clamp(420px, 58vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hx-spotlight__bg {
  position: absolute;
  inset: 0;
}

.hx-spotlight__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
}

.hx-spotlight__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 20, 0.82) 0%, rgba(6, 6, 20, 0.45) 55%, rgba(6, 6, 20, 0.25) 100%),
    linear-gradient(180deg, rgba(6, 6, 20, 0.2) 0%, transparent 40%);
}

.hx-spotlight__content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding: clamp(4rem, 8vw, 6rem) var(--hx-pad);
  color: var(--white);
}

.hx-spotlight__content h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.hx-spotlight__content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  max-width: 42ch;
}

/* ─── Offerings ─── */
.hx-section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hx-section-head--center {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hx-section-head__lead {
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--gray-600);
}

.hx-offerings__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
}

.hx-offering {
  background: var(--white);
  overflow: hidden;
}

.hx-offering--featured {
  grid-row: span 2;
}

.hx-offering__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  transition: color 0.35s var(--ease);
}

.hx-offering--featured .hx-offering__link {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100%;
}

.hx-offering__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hx-offering--featured .hx-offering__media {
  aspect-ratio: auto;
  flex: 1;
  min-height: 280px;
}

.hx-offering__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.hx-offering__link:hover .hx-offering__media img {
  transform: scale(1.06);
}

.hx-offering__body {
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.hx-offering__index {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: var(--track-xl);
  color: var(--gold);
}

.hx-offering__body h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0;
}

.hx-offering__body p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--gray-600);
  flex: 1;
}

.hx-offering__cta {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: var(--track-lg);
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: color 0.35s var(--ease);
}

.hx-offering__link:hover .hx-offering__cta {
  color: var(--gold);
}

.hx-offerings__more {
  margin-top: 2rem;
  text-align: center;
}

.hx-inline-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--track-lg);
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.hx-inline-link:hover {
  color: var(--gold);
}

/* ─── Volume ─── */
.hx-volume {
  position: relative;
  overflow: hidden;
}

.hx-volume::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(196, 160, 106, 0.08), transparent 70%);
  pointer-events: none;
}

.hx-volume__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hx-volume__highlight {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hx-volume__peak {
  display: block;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
}

.hx-volume__peak-unit {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: var(--track-lg);
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ─── Team ─── */
.hx-team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.hx-team-card {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.hx-team-card:hover {
  border-color: rgba(154, 122, 82, 0.35);
  box-shadow: 0 24px 64px rgba(12, 12, 52, 0.06);
}

.hx-team-card__portrait {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--gray-100);
}

.hx-team-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s var(--ease);
}

.hx-team-card:hover .hx-team-card__portrait img {
  transform: scale(1.04);
}

.hx-team-card__info h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.hx-team-card__role {
  font-size: 0.72rem;
  letter-spacing: var(--track-lg);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hx-team-card__quote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* ─── Finale CTA ─── */
.hx-finale {
  position: relative;
  min-height: clamp(480px, 65vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hx-finale__bg {
  position: absolute;
  inset: 0;
}

.hx-finale__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hx-finale__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 20, 0.55) 0%, rgba(6, 6, 20, 0.78) 100%),
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent, rgba(6, 6, 20, 0.4));
}

.hx-finale__content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: clamp(4rem, 8vw, 6rem) var(--hx-pad);
  color: var(--white);
}

.hx-finale__content .hx-label {
  justify-content: center;
}

.hx-finale__content .hx-label::before {
  display: none;
}

.hx-finale__content h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  color: var(--white);
}

.hx-finale__content > p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.25rem;
}

.hx-finale__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
}

/* ─── Header on v3 ─── */
body.page-home-v3 .site-header.is-scrolled .logo__img {
  filter: none;
}

body.page-home-v3 .site-header.is-transparent .logo__img {
  filter: brightness(0) invert(1);
}

/* ─── Parallax wrapper for editorial ─── */
.hx-editorial__media {
  position: relative;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hx-hero__grid {
    grid-template-columns: 1fr;
  }

  .hx-hero__panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hx-hero__stat {
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hx-hero__stat:last-child {
    border-right: 0;
  }

  .hx-editorial {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hx-editorial__copy {
    border-left: 0;
    border-top: 1px solid var(--gray-200);
  }

  .hx-offerings__grid {
    grid-template-columns: 1fr;
  }

  .hx-offering--featured {
    grid-row: auto;
  }

  .hx-offering--featured .hx-offering__link {
    display: flex;
    flex-direction: column;
  }

  .hx-volume__grid {
    grid-template-columns: 1fr;
  }

  .hx-team__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hx-hero__panel {
    grid-template-columns: 1fr;
  }

  .hx-hero__stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hx-hero__stat:last-child {
    border-bottom: 0;
  }

  .hx-scroll-hint {
    display: none;
  }

  .hx-team-card {
    grid-template-columns: 1fr;
  }

  .hx-team-card__portrait {
    max-height: 360px;
    aspect-ratio: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hx-ticker__track {
    animation: none;
  }

  .hx-scroll-hint::after {
    animation: none;
  }

  .page-home-v3 .hero--luxury h1,
  .hx-lead,
  .hx-hero__actions,
  .hx-hero__panel {
    animation: none;
  }
}
