/* ===========================
   HERO – FULLSCREEN SUNSET VIDEO
   =========================== */

/* Base hero section */
.hero {
  position: relative;
  min-height: 100vh;              /* full viewport height */
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

/* Variant flags */
.hero.hero-centered {
  /* used in combination with the styles below */
}

/* Full background video */
.hero-with-video {
  position: relative;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* fill hero area */
}

/* Sunset/gold overlay so text stays readable */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(255, 183, 77, 0.35), transparent 60%),
    radial-gradient(circle at bottom, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.94));
  z-index: -2;
}

/* Optional soft golden orbits on top of video */
.hero-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(245, 230, 179, 0.4);
  opacity: 0.18;
  pointer-events: none;
}

.hero-orbit-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -160px;
}

.hero-orbit-2 {
  width: 340px;
  height: 340px;
  bottom: -140px;
  right: 40px;
}

.hero-orbit-3 {
  width: 260px;
  height: 260px;
  top: 50%;
  left: -120px;
}

/* Make hero content sit above video + overlay */
.hero-with-video .hero-inner,
.hero-with-video .hero-orbit {
  position: relative;
  z-index: 1;
}

/* ===========================
   HERO LAYOUT & TYPOGRAPHY
   =========================== */

/* Centered hero inner layout */
.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;                     /* center block itself */
  display: flex;
  flex-direction: column;
  align-items: center;                /* center horizontally */
  justify-content: center;            /* center vertically within hero */
  gap: 2.6rem;
  padding: 4.5rem 0 3.5rem;           /* vertical breathing room */
}

/* Remove container side padding specifically for the hero */
.hero.hero-centered .hero-inner {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

/* === Text / copy === */

.hero-copy {
  max-width: 640px;
}

.hero-copy-centered {
  text-align: center;
}

.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffdd9a;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.6rem, 4.6vw, 3.6rem);
  line-height: 1.03;
  margin: 0 0 0.8rem;
  background: linear-gradient(120deg, #fff6e5, #ffd18a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.1rem;
  color: rgba(247, 247, 252, 0.9);
  font-size: 0.98rem;
}

/* Compact badges under title */
.hero-badges-compact {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.hero-badges-compact li {
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 221, 154, 0.6);
  background: rgba(7, 7, 14, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffe7bf;
}

/* CTA row centered */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-cta-centered {
  justify-content: center;
}

/* ===========================
   HERO IMAGES – APARTMENT + BEACH + SAILING + PYRAMIDS
   =========================== */

/* Wrapper for image area */
.hero-media-centered {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;                    /* center images block */
}

/* Grid:
   - First tile (apartment) spans full width and is larger
   - Remaining three images sit below in columns */
.hero-gallery-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

/* Shared card style */
.hero-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), rgba(5, 5, 9, 0.96));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
  transform: translateY(0);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
  cursor: pointer;
}

.hero-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
  z-index: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 260ms ease-out;
}

/* Make the FIRST tile (apartment) big and above the others */
.hero-gallery-row .hero-photo-tile:first-child {
  grid-column: 1 / -1;              /* span all columns */
  min-height: 360px;                /* large, immersive */
}

/* All tiles bigger and more visible */
.hero-photo-tile {
  min-height: 230px;
}

/* Hover interaction */
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(255, 189, 105, 0.3), transparent 55%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.hero-photo:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 221, 154, 0.9);
  background: radial-gradient(circle at top center, rgba(255, 189, 105, 0.18), rgba(5, 5, 9, 0.96));
}

.hero-photo:hover::before {
  opacity: 1;
}

.hero-photo:hover img {
  transform: scale(1.08);
}

/* Captions */
.hero-photo figcaption {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.8rem;
  font-size: 0.8rem;
  font-weight: bold;
  color: #faf3e8;
  text-shadow: 0px 30px 60px rgba(0, 0, 0, 2);
  z-index: 1;
}

.hero-photo-label {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 221, 154, 0.9);
  background: rgba(7, 7, 12, 0.92);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.26rem;
}

/* ===========================
   ANIMATION
   =========================== */

@keyframes float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

.hero-orbit-1,
.hero-orbit-2 {
  animation: float 9s ease-in-out infinite alternate;
}

.hero-orbit-2 {
  animation-delay: 2s;
}

/* ===========================
   RESPONSIVE HERO
   =========================== */

@media (max-width: 1100px) {
  .hero-gallery-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-gallery-row .hero-photo-tile:first-child {
    min-height: 320px;
  }

  .hero-photo-tile {
    min-height: 210px;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    gap: 2rem;
    padding: 4rem 0 3.2rem;
  }

  .hero-gallery-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-gallery-row .hero-photo-tile:first-child {
    min-height: 300px;
  }

  .hero-photo-tile {
    min-height: 200px;
  }
}

@media (max-width: 520px) {
  .hero-inner {
    gap: 1.8rem;
    padding: 3.6rem 0 3rem;
  }

  .hero-gallery-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-gallery-row .hero-photo-tile:first-child {
    min-height: 260px;
  }

  .hero-photo-tile {
    min-height: 220px;
  }

  .hero-lead {
    font-size: 0.92rem;
  }
}
