/* FILE ROLE: Luxury Hero and advertisement fallback styling. Markup/data logic: inc/luxury-hero.php and inc/hero-ad.php. */
/* =========================================
   SHUBHAARAMBH LUXURY HERO DESIGN 01
========================================= */

:root {
  --luxury-accent: #b88945;
  --luxury-accent-dark: #916a32;
  --luxury-maroon: #7d1f2f;
  --luxury-ink: #181818;
  --luxury-muted: #6d6d6d;
  --luxury-paper: #f7f5f0;
  --luxury-white: #ffffff;
  --luxury-line: rgba(24, 24, 24, .12);
}

/* Prevent horizontal scrolling */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Main hero */
.luxury-hero {
  font-family: var(--rf-font-body);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 74px 0 82px;
  overflow: hidden;
  background: var(--luxury-paper);
  color: var(--luxury-ink);
  font-family: Inter, Arial, sans-serif;
}

/* Hero container */
.luxury-hero__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  gap: 48px;
  align-items: center;
}

/* Content */
.luxury-hero__copy {
  min-width: 0;
  animation: luxuryHeroContentIn .8s ease both;
}

/* Breadcrumb */
.luxury-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 25px;
  color: #777777;
  font-size: 12px;
  line-height: 1.5;
}

.luxury-hero__breadcrumb a {
  color: #777777;
  text-decoration: none;
  transition: color .2s ease;
}

.luxury-hero__breadcrumb a:hover {
  color: var(--luxury-accent);
}

.luxury-hero__breadcrumb span[aria-current="page"] {
  color: var(--luxury-ink);
  font-weight: 600;
}

.luxury-hero__separator {
  color: var(--luxury-accent);
  opacity: .75;
}

/* Eyebrow */
.luxury-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: var(--luxury-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.luxury-hero__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  flex: 0 0 24px;
  background: currentColor;
}

/* Title */
.luxury-hero h1 {
  max-width: 600px;
  margin: 0 0 18px;
  color: var(--luxury-ink);
  font-family: var(--rf-font-heading);
  font-size: clamp(34px, 3.5vw, 50px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.035em;
}

/* Description */
.luxury-hero__description {
  max-width: 480px;
  margin: 0 0 22px;
  color: var(--luxury-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* Metadata */
.luxury-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  color: #777777;
  font-size: 11px;
  line-height: 1.6;
}

.luxury-hero__meta span + span::before {
  content: "•";
  margin-right: 13px;
  color: var(--luxury-accent);
}

.luxury-hero__meta strong {
  color: var(--luxury-ink);
}

/* Buttons */
.luxury-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

.luxury-hero__button {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none !important;
  transition: background .25s ease, color .25s ease,
              border-color .25s ease, transform .25s ease;
}

.luxury-hero__button:focus-visible {
  outline: 3px solid rgba(184, 137, 69, .45);
  outline-offset: 3px;
}

.luxury-hero__button--primary {
  background: var(--luxury-accent);
  color: #ffffff !important;
}

.luxury-hero__button--primary:hover {
  background: var(--luxury-maroon);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.luxury-hero__button--outline {
  border: 1px solid #c8c4bb;
  color: var(--luxury-ink) !important;
  background: transparent;
}

.luxury-hero__button--outline:hover {
  border-color: var(--luxury-accent);
  color: var(--luxury-accent) !important;
  transform: translateY(-2px);
}

/* Image and video wrapper */
.luxury-hero__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #e8e5de;
  box-shadow: 0 25px 55px rgba(0, 0, 0, .14);
  animation: luxuryHeroImageIn .9s ease both;
}

.luxury-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, .16),
    transparent 55%
  );
}

.luxury-hero__image img,
.luxury-hero__image video,
.luxury-hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #181818;
}

/* Native video controls */
.luxury-hero__video {
  cursor: pointer;
}

.luxury-hero__video:focus {
  outline: 3px solid var(--luxury-accent);
  outline-offset: -3px;
}

/* Remove GeneratePress default featured image/title */
.luxury-hero-active .page-header,
.luxury-hero-active .entry-header,
.luxury-hero-active .post-image,
.luxury-hero-active .page-header-image,
.luxury-hero-active .page-header-image-wrap,
.luxury-hero-active .featured-image,
.luxury-hero-active .inside-article > .post-image,
.luxury-hero-active .inside-article > .featured-image,
.luxury-hero-active .entry-header .post-image,
.luxury-hero-active .entry-header .featured-image {
  display: none !important;
}

/* Remove unwanted top spacing */
.luxury-hero-active .site-content,
.luxury-hero-active .content-area,
.luxury-hero-active .inside-article {
  padding-top: 0 !important;
}

/* Animations */
@keyframes luxuryHeroContentIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes luxuryHeroImageIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Tablet */
@media (max-width: 900px) {
  .luxury-hero {
    padding: 58px 0 68px;
  }

  .luxury-hero__inner {
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    gap: 30px;
  }

  .luxury-hero h1 {
    font-size: clamp(34px, 5vw, 46px);
  }
}

/* Mobile */
@media (max-width: 720px) {
  .luxury-hero {
    padding: 48px 0 58px;
  }

  .luxury-hero__inner {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .luxury-hero__copy {
    order: 1;
  }

  .luxury-hero__image {
    order: 2;
    border-radius: 17px;
  }

  .luxury-hero h1 {
    max-width: 100%;
    font-size: clamp(36px, 10vw, 48px);
  }

  .luxury-hero__description {
    font-size: 14px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .luxury-hero {
    padding: 38px 0 46px;
  }

  .luxury-hero__inner {
    width: calc(100% - 28px);
    gap: 26px;
  }

  .luxury-hero__breadcrumb {
    margin-bottom: 19px;
    font-size: 11px;
  }

  .luxury-hero__eyebrow {
    font-size: 9px;
    letter-spacing: .12em;
  }

  .luxury-hero__description {
    font-size: 13px;
  }

  .luxury-hero__meta {
    font-size: 10px;
  }

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

  .luxury-hero__button {
    width: 100%;
  }

  .luxury-hero__image {
    border-radius: 14px;
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .luxury-hero__copy,
  .luxury-hero__image {
    animation: none;
  }

  .luxury-hero__button {
    transition: none;
  }
}
/* =========================================
   HERO AD FALLBACK
   Used ONLY when no Hero Video and no Featured Image exists.
========================================= */
.luxury-hero__ad {
  position: relative;
  width: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 24, .10);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 25px 55px rgba(0, 0, 0, .08);
}

.luxury-hero__ad-label {
  position: absolute;
  top: 11px;
  right: 14px;
  z-index: 2;
  color: #8a8a8a;
  font-family: Inter, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.luxury-hero__ad-content {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Common ad-network wrappers should stay inside the reserved hero area. */
.luxury-hero__ad-content iframe,
.luxury-hero__ad-content ins,
.luxury-hero__ad-content > div {
  max-width: 100%;
}

@media (max-width: 720px) {
  .luxury-hero__ad {
    min-height: 250px;
    border-radius: 17px;
  }
}

@media (max-width: 480px) {
  .luxury-hero__ad {
    min-height: 220px;
    border-radius: 14px;
  }
}
