/* Home Hero — Minimal Luxury v3 */

.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 3rem) 0 5rem;
  background: var(--color-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg__image {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.svg') center / cover no-repeat;
  opacity: 1;
}

.hero-bg__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 78% 18%, rgba(201, 162, 74, 0.16) 0%, transparent 58%),
    radial-gradient(ellipse 40% 35% at 12% 88%, rgba(255, 255, 255, 0.05) 0%, transparent 55%);
}

.hero-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.hero-bg__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-content {
  max-width: 38rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 2.25rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.9;
}

.hero-eyebrow .icon-svg {
  color: var(--color-accent);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.035em;
  margin-bottom: 1.875rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.72);
  max-width: 32rem;
  margin-bottom: 2.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-actions .btn-primary {
  box-shadow: 0 8px 28px rgba(201, 162, 74, 0.28);
}

.hero-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Portrait / visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-portrait {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 4 / 5;
}

.hero-portrait::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1px solid rgba(201, 162, 74, 0.28);
  border-radius: 1.5rem;
  pointer-events: none;
}

.hero-portrait::after {
  content: '';
  position: absolute;
  top: -24px;
  right: -24px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 74, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-portrait-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(30, 58, 95, 0.95) 0%, rgba(11, 31, 59, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(201, 162, 74, 0.15) 0%, transparent 45%),
    linear-gradient(160deg, #1E3A5F 0%, #0B1F3B 100%);
}

.hero-monogram {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #E8D5A3 0%, var(--color-accent) 50%, #A8842E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-portrait-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hero-portrait-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(11, 31, 59, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-portrait-badge strong {
  display: block;
  color: #fff;
  font-size: 0.875rem;
  font-family: var(--font-heading);
}

.hero-portrait-badge span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.hero-portrait-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(201, 162, 74, 0.6);
}

/* Hide old visual elements */
.hero-visual-ring,
.hero-badge,
.hero-visual-card,
.hero-visual-placeholder {
  display: none !important;
}

/* Stats — floating card over hero */
.stats-bar {
  position: relative;
  z-index: 2;
  margin-top: -4rem;
  padding: 0 0 3.5rem;
  background: transparent;
  border: none;
}

.stats-bar .container {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.stats-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 4vw, 2.75rem);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 1.25rem;
  backdrop-filter: blur(20px);
  box-shadow:
    0 1px 2px rgba(11, 31, 59, 0.04),
    0 16px 48px rgba(11, 31, 59, 0.11);
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent) 50%, transparent);
  opacity: 0.9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  position: relative;
  padding: 0.35rem 1rem;
  text-align: center;
}

.stat-item + .stat-item {
  border-inline-start: 1px solid rgba(11, 31, 59, 0.08);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 3.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-muted);
}

@media (max-width: 1024px) {
  .stats-bar {
    margin-top: -3rem;
    padding-bottom: 2.5rem;
  }

  .hero {
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: none;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-portrait {
    width: min(72vw, 240px);
  }

  .hero-portrait-badge {
    display: none;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.25rem;
  }

  .stat-item + .stat-item {
    border-inline-start: none;
  }

  .stat-item:nth-child(even) {
    border-inline-start: 1px solid rgba(11, 31, 59, 0.08);
  }

  .stat-item:nth-child(n + 3) {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(11, 31, 59, 0.08);
  }
}

@media (max-width: 640px) {
  .stats-bar {
    margin-top: -2rem;
  }

  .stats-card {
    padding: 1.25rem 1rem;
    border-radius: 1rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 2rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}
