/* ============================================================
   BENTO HERO LAYOUT (index.html)
   ============================================================ */

/* 1. Global resets for the home page */
.page-home-bento {
  background: var(--cream);
  min-height: 100vh;
}

/* Hide the old nav entirely on the home page so we can use our new one, 
   except we just re-styled #nav */
.page-home-bento .nav:not(.bento-nav) { display: none !important; }

/* 2. The Bento Nav */
.bento-nav {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 200;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background: transparent !important;
  pointer-events: none;
}

.bento-nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 10px 14px 10px 24px;
  border-radius: 100px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,1);
}

.bento-nav .brand img {
  height: 28px;
}

.bento-nav .nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.bento-nav .nav-links a {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.3s;
}
.bento-nav .nav-links a:hover {
  color: var(--gold-d);
}
.bento-nav .nav-links a::after { display: none; }

.bento-nav-cta {
  padding: 10px 24px;
  font-size: 13px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bento-nav .burger { display: none; }

.hero-bento {
  position: relative;
  z-index: 5;
  width: calc(100% - 40px);
  margin: 20px auto;
  height: calc(100vh - 40px);
  border-radius: 32px;
  overflow: hidden;
}

.hb-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hb-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

/* 4. The Content Overlay */
.hb-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 10;
  pointer-events: none; /* Let clicks pass through if needed, except buttons */
}

/* We need to arrange bottom-left and bottom-right */
.hb-content {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
}

.hb-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 60%;
  padding: 40px;
  pointer-events: auto;
}

.hb-ar {
  font-family: var(--f-ar);
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
  color: var(--gold-l);
  margin: 0;
  line-height: 1;
}

.hb-title {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.hb-bottom-right {
  display: flex;
  justify-content: flex-end;
  pointer-events: auto;
}

.hb-card {
  position: relative;
  background: var(--cream);
  padding: 35px 40px;
  border-top-left-radius: 40px;
  max-width: 400px;
}

/* The fluid cutout curves for the bottom right card */
.hb-card::before, .hb-card::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
}

/* Top connector */
.hb-card::before {
  top: -40px;
  right: 0;
  background: radial-gradient(circle at top left, transparent 40px, var(--cream) 40px);
}

/* Left connector */
.hb-card::after {
  bottom: 0;
  left: -40px;
  background: radial-gradient(circle at top left, transparent 40px, var(--cream) 40px);
}

.hb-card {
  max-width: 440px;   /* a touch wider so the lead sentence fits on one line */
}
.hb-card p {
  font-family: var(--f-serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 24px 0;
}
/* Keep "Luxury Travel with a Personal Touch." on a single line */
.hb-card-lead { white-space: nowrap; font-size: 0.95em; }
@media (max-width: 760px) {
  .hb-card { max-width: 400px; }
  .hb-card-lead { white-space: normal; font-size: 1em; }
}

.hb-card .btn {
  width: 100%;
  justify-content: center;
}

/* 5. Mobile Adjustments */
@media (max-width: 1024px) {
  .hero-bento { 
    width: calc(100% - 20px);
    margin: 10px auto;
    height: calc(100vh - 20px); 
    border-radius: 24px; 
  }
  
  .bento-nav-pill {
    width: calc(100% - 20px);
    justify-content: space-between;
    padding: 10px 20px;
  }
  .bento-nav .nav-links, .bento-nav-cta { display: none; }
  .bento-nav .burger { display: flex; }
  .bento-nav .burger span { background: var(--ink); }
  
  .hb-content {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
  }
  .hb-bottom-left { max-width: 100%; padding: 24px; }
  .hb-card { 
    max-width: 100%; 
    padding: 24px; 
    border-radius: 0;
    width: 100%;
  }
  /* Remove cutout curves on mobile if layout changes to full width bottom */
  .hb-card::before, .hb-card::after { display: none; }
}

/* ============================================================
   CINEMATIC HERO REVEAL (fires after preloader → body.loaded)
   ============================================================ */
/* Initial hidden state — only while the page is still loading. */
body:not(.loaded) .hb-bg-img { transform: scale(1.18); }
body:not(.loaded) .hb-ar,
body:not(.loaded) .hb-title,
body:not(.loaded) .hb-card { opacity: 0; }
body:not(.loaded) .hb-ar,
body:not(.loaded) .hb-title { transform: translateY(28px); }
body:not(.loaded) .hb-card { transform: translateY(24px); }

/* Revealed state — cinematic ease-in once loaded. */
.hb-bg-img {
  transition: transform 6s cubic-bezier(.22,1,.36,1);
}
.hb-ar, .hb-title, .hb-card {
  transition: opacity 1s ease, transform 1.1s cubic-bezier(.16,1,.3,1);
}
body.loaded .hb-bg-img { transform: scale(1.06); }
body.loaded .hb-ar    { opacity: 1; transform: none; transition-delay: .25s; }
body.loaded .hb-title { opacity: 1; transform: none; transition-delay: .45s; }
body.loaded .hb-card  { opacity: 1; transform: none; transition-delay: .7s; }

@media (prefers-reduced-motion: reduce) {
  .hb-bg-img, .hb-ar, .hb-title, .hb-card { transition: none !important; }
  body:not(.loaded) .hb-ar,
  body:not(.loaded) .hb-title,
  body:not(.loaded) .hb-card { opacity: 1; transform: none; }
  body:not(.loaded) .hb-bg-img { transform: scale(1.02); }
}

/* ============================================================
   ARABIC (RTL) HERO MIRROR — card moves to the bottom-LEFT and its
   rounded cutout flips accordingly. Arabic only; English unchanged.
   ============================================================ */
html[dir="rtl"] .hb-bottom-right { justify-content: flex-start; }
html[dir="rtl"] .hb-card {
  border-top-left-radius: 0;
  border-top-right-radius: 40px;
}
/* top connector flips to the left edge */
html[dir="rtl"] .hb-card::before {
  right: auto;
  left: 0;
  background: radial-gradient(circle at top right, transparent 40px, var(--cream) 40px);
}
/* side connector flips to the right edge */
html[dir="rtl"] .hb-card::after {
  left: auto;
  right: -40px;
  background: radial-gradient(circle at top right, transparent 40px, var(--cream) 40px);
}
