/* AVENTURA homepage identity correction: broad brand, crisp logo, full-bleed readable hero. */

body[data-page="home"] .site-header,
body[data-page="home"] .site-header.is-scrolled,
body[data-page="home"] .site-header.menu-open {
  /* A permanent, calm surface keeps the brand readable over the opening mosaic. */
  color: #0f2742;
  background: rgba(255, 250, 242, 0.98);
  border-bottom: 1px solid rgba(15, 39, 66, 0.14);
  box-shadow: 0 10px 30px rgba(15, 39, 66, 0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body[data-page="home"] .site-header .brand {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}

body[data-page="home"] .site-header .brand-logo {
  width: 190px;
  opacity: 1;
  filter: none;
  transform: none;
  image-rendering: auto;
}

body[data-page="home"] .site-header .nav-link {
  color: #596978;
}

body[data-page="home"] .site-header .nav-link:hover,
body[data-page="home"] .site-header .nav-link.is-active {
  color: #0f2742;
}

body[data-page="home"] .site-header .lang-switch,
body[data-page="home"] .site-header .nav-toggle {
  color: #0f2742;
  border-color: rgba(15, 39, 66, 0.22);
}

body[data-page="home"] .site-header .lang-switch button {
  color: #596978;
}

body[data-page="home"] .site-header .lang-switch button.is-active {
  color: #fffaf2;
  background: #0f2742;
}

.home-hero-aventura {
  min-height: 100svh;
  padding-top: var(--header-height);
  background: #173247;
  place-items: end start;
}

.home-hero-aventura .hero-media {
  object-position: center 52%;
  filter: saturate(1.04) contrast(1.03) brightness(0.96);
}

.home-hero-aventura::before {
  background:
    linear-gradient(90deg, rgba(4, 17, 29, 0.7) 0%, rgba(4, 17, 29, 0.42) 44%, rgba(4, 17, 29, 0.08) 78%, rgba(4, 17, 29, 0.14) 100%),
    linear-gradient(180deg, rgba(4, 17, 29, 0.01), rgba(4, 17, 29, 0.2));
}

html[dir="rtl"] .home-hero-aventura::before {
  background:
    linear-gradient(270deg, rgba(4, 17, 29, 0.7) 0%, rgba(4, 17, 29, 0.42) 44%, rgba(4, 17, 29, 0.08) 78%, rgba(4, 17, 29, 0.14) 100%),
    linear-gradient(180deg, rgba(4, 17, 29, 0.01), rgba(4, 17, 29, 0.2));
}

.home-hero-aventura .hero-content {
  max-width: 860px;
  padding-top: 96px;
  padding-bottom: 150px;
}

.home-hero-aventura h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6.6vw, 6.4rem);
  line-height: 1.02;
}

html[lang="ar"] .home-hero-aventura h1 {
  max-width: 11ch;
  line-height: 1.18;
}

.home-hero-aventura .hero-description {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.94);
}

/* The home image is intentionally light, so the main title needs the brand navy—not white. */
@media (min-width: 681px) {
  .home-hero-aventura h1 {
    color: #071a2a !important;
    text-shadow: 0 2px 22px rgba(255, 249, 239, 0.82);
  }

  .home-hero-aventura .hero-description {
    margin-inline-start: -16px;
    padding: 12px 16px 13px;
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(4, 17, 29, 0.72), rgba(4, 17, 29, 0.46));
    border-inline-start: 2px solid rgba(229, 206, 157, 0.86);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 12px 28px rgba(4, 17, 29, 0.16);
  }

  html[dir="rtl"] .home-hero-aventura .hero-description {
    background: linear-gradient(270deg, rgba(4, 17, 29, 0.72), rgba(4, 17, 29, 0.46));
    border-radius: 12px 0 0 12px;
  }
}

/* Historic Jeddah remains first in the experience order, not the identity of the whole company. */
.experience-grid-home {
  grid-template-rows: auto;
}

.experience-grid-home .experience-card-featured {
  grid-column: span 7;
  min-height: 520px;
}

.experience-grid-home .experience-card-featured::after {
  display: none;
}

.experience-grid-home .experience-card:nth-child(2) {
  grid-column: span 5;
}

.experience-grid-home .experience-card:nth-child(3),
.experience-grid-home .experience-card:nth-child(4),
.experience-grid-home .experience-card:nth-child(5) {
  grid-column: span 4;
}

@media (max-width: 900px) {
  body[data-page="home"] .site-header .brand-logo {
    width: 154px;
  }

  .home-hero-aventura {
    min-height: 100svh;
  }

  .home-hero-aventura .hero-content {
    padding-top: 96px;
    padding-bottom: 150px;
  }

  .experience-grid-home .experience-card-featured,
  .experience-grid-home .experience-card:nth-child(2),
  .experience-grid-home .experience-card:nth-child(3),
  .experience-grid-home .experience-card:nth-child(4),
  .experience-grid-home .experience-card:nth-child(5) {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  body[data-page="home"] .site-header {
    height: 72px;
  }

  body[data-page="home"] .site-header .brand-logo {
    width: 146px;
  }

  .home-hero-aventura {
    min-height: 100svh;
    padding-top: 72px;
    place-items: end stretch;
  }

  .home-hero-aventura .hero-media {
    object-position: 52% center;
    filter: saturate(1.03) contrast(1.03) brightness(0.96);
  }

  .home-hero-aventura::before,
  html[dir="rtl"] .home-hero-aventura::before {
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0.1) 0%, rgba(255, 249, 239, 0.24) 30%, rgba(255, 249, 239, 0.78) 68%, rgba(255, 249, 239, 0.94) 100%);
  }

  .home-hero-aventura::after {
    /* Replace the shared dark lower fade with ivory so navy copy remains legible. */
    background: linear-gradient(180deg, rgba(255, 249, 239, 0) 36%, rgba(255, 249, 239, 0.88) 100%);
  }

  .home-hero-aventura .hero-content {
    max-width: none;
    margin: 0;
    padding: 70px 0 44px;
    color: #071a2a;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-hero-aventura .eyebrow {
    margin-bottom: 10px;
    color: #806735;
    font-size: 0.68rem;
  }

  .home-hero-aventura h1,
  html[lang="ar"] .home-hero-aventura h1 {
    max-width: 11ch;
    margin-bottom: 14px;
    color: #071a2a !important;
    font-size: clamp(2.45rem, 10.8vw, 3.45rem);
    line-height: 1.2;
    text-shadow: 0 2px 18px rgba(255, 249, 239, 0.8);
  }

  .home-hero-aventura .hero-description {
    max-width: 35ch;
    margin-bottom: 16px;
    color: #17324a !important;
    font-size: 0.96rem;
    line-height: 1.72;
    text-shadow: none;
  }

  .home-hero-aventura .hero-audience {
    gap: 6px;
    margin-bottom: 18px;
  }

  .home-hero-aventura .hero-audience span {
    min-height: 30px;
    padding: 5px 9px;
    color: #17324a;
    background: rgba(255, 249, 239, 0.78);
    border-color: rgba(23, 50, 74, 0.18);
    font-size: 0.64rem;
  }

  .home-hero-aventura .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .home-hero-aventura .hero-actions .btn {
    width: 100%;
    min-height: 50px;
    padding: 9px 10px;
    font-size: 0.8rem;
  }

  .home-hero-aventura .hero-proof {
    display: none;
  }

  .experience-grid-home .experience-card-featured,
  .experience-grid-home .experience-card:nth-child(2),
  .experience-grid-home .experience-card:nth-child(3),
  .experience-grid-home .experience-card:nth-child(4),
  .experience-grid-home .experience-card:nth-child(5) {
    grid-column: 1 / -1;
    min-height: 400px;
  }
}

@media (max-width: 390px) {
  .home-hero-aventura .hero-content {
    padding-bottom: 34px;
  }

  .home-hero-aventura .hero-actions {
    grid-template-columns: 1fr;
  }
}

/* Pre-DNS direction: Historic Jeddah leads the opening image, with the sea,
   desert and Taif visible as distinct supporting worlds. */
.home-hero-aventura .home-hero-mosaic {
  position: absolute;
  z-index: -3;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(180px, 0.9fr) minmax(160px, 0.72fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: #071a2a;
}

.home-hero-aventura .home-hero-tile {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #17324a;
}

.home-hero-aventura .home-hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.02) brightness(1.02);
  transform: scale(1.015);
}

.home-hero-aventura .home-hero-tile-historic {
  grid-row: 1 / -1;
  grid-column: 1;
}

.home-hero-aventura .home-hero-tile-historic img {
  object-position: center;
}

.home-hero-aventura .home-hero-tile-sea {
  grid-row: 1;
  grid-column: 2;
}

.home-hero-aventura .home-hero-tile-desert {
  grid-row: 2;
  grid-column: 2;
}

.home-hero-aventura .home-hero-tile-taif {
  grid-row: 1 / -1;
  grid-column: 3;
}

.home-hero-aventura::before,
html[dir="rtl"] .home-hero-aventura::before {
  background:
    linear-gradient(90deg, rgba(4, 17, 29, 0.7) 0%, rgba(4, 17, 29, 0.42) 42%, rgba(4, 17, 29, 0.12) 73%, rgba(4, 17, 29, 0.24) 100%),
    linear-gradient(180deg, rgba(4, 17, 29, 0.04), rgba(4, 17, 29, 0.34));
}

html[dir="rtl"] .home-hero-aventura::before {
  background:
    linear-gradient(270deg, rgba(4, 17, 29, 0.7) 0%, rgba(4, 17, 29, 0.42) 42%, rgba(4, 17, 29, 0.12) 73%, rgba(4, 17, 29, 0.24) 100%),
    linear-gradient(180deg, rgba(4, 17, 29, 0.04), rgba(4, 17, 29, 0.34));
}

.home-hero-aventura::after {
  background: linear-gradient(180deg, rgba(4, 17, 29, 0) 35%, rgba(4, 17, 29, 0.68) 100%);
}

.home-hero-aventura .hero-content {
  position: relative;
  z-index: 1;
}

@media (min-width: 681px) {
  .home-hero-aventura h1,
  html[lang="ar"] .home-hero-aventura h1 {
    color: #fff9ef !important;
    text-shadow: 0 3px 24px rgba(4, 17, 29, 0.56);
  }

  .home-hero-aventura .hero-description {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(4, 17, 29, 0.64), rgba(4, 17, 29, 0.34));
    box-shadow: 0 12px 28px rgba(4, 17, 29, 0.18);
  }

  html[dir="rtl"] .home-hero-aventura .hero-description {
    background: linear-gradient(270deg, rgba(4, 17, 29, 0.64), rgba(4, 17, 29, 0.34));
  }
}

@media (max-width: 680px) {
  .home-hero-aventura {
    min-height: 840px;
    background: #17324a;
  }

  .home-hero-aventura .home-hero-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1.55fr) minmax(0, 0.62fr);
    gap: 3px;
    padding: 3px;
  }

  .home-hero-aventura .home-hero-tile-historic {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .home-hero-aventura .home-hero-tile-sea {
    grid-row: 2;
    grid-column: 1;
  }

  .home-hero-aventura .home-hero-tile-desert {
    grid-row: 2;
    grid-column: 2;
  }

  .home-hero-aventura .home-hero-tile-taif {
    grid-row: 2;
    grid-column: 3;
  }

  .home-hero-aventura::before,
  html[dir="rtl"] .home-hero-aventura::before {
    background: linear-gradient(180deg, rgba(4, 17, 29, 0.06) 0%, rgba(4, 17, 29, 0.16) 34%, rgba(4, 17, 29, 0.74) 63%, rgba(4, 17, 29, 0.94) 100%);
  }

  .home-hero-aventura::after {
    background: linear-gradient(180deg, rgba(4, 17, 29, 0) 44%, rgba(4, 17, 29, 0.84) 100%);
  }

  .home-hero-aventura h1,
  html[lang="ar"] .home-hero-aventura h1 {
    color: #fff9ef !important;
    text-shadow: 0 3px 18px rgba(4, 17, 29, 0.66);
  }

  .home-hero-aventura .hero-description {
    color: rgba(255, 255, 255, 0.92) !important;
  }

  .home-hero-aventura .hero-audience span {
    color: #fff9ef;
    background: rgba(4, 17, 29, 0.42);
    border-color: rgba(255, 255, 255, 0.3);
  }
}
