/* ============================================
   Adonis Travel — Homepage (modern redesign)
   Scoped to body.home-page
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

body.home-page {
  --home-bg: #0c0c0e;
  --home-surface: #141416;
  --home-elevated: #1c1c1f;
  --home-border: rgba(255, 255, 255, 0.08);
  --home-gold: #ffbd59;
  --home-gold-soft: rgba(255, 189, 89, 0.12);
  --home-text: #f4f4f5;
  --home-muted: #a1a1aa;
  --home-radius: 16px;
  --home-radius-lg: 24px;
  --home-max: 1200px;
  background: var(--home-bg) !important;
}

body.home-page,
body.home-page .home-main {
  font-family: 'Outfit', 'DM Sans', system-ui, sans-serif !important;
}

html[lang="en"] body.home-page .home-hero__title,
html[lang="en"] body.home-page .home-section__title {
  font-family: 'Cinzel', serif !important;
}

/* Transparent nav over hero */
body.home-page .custom-navbar {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

body.home-page .custom-navbar.is-scrolled {
  background: rgba(12, 12, 14, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--home-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

body.home-page .main-section,
body.home-page #posts {
  background: transparent !important;
  padding: 0 !important;
}

/* ---- Hero ---- */
.home-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(12, 12, 14, 0.92) 0%, rgba(12, 12, 14, 0.75) 45%, rgba(12, 12, 14, 0.88) 100%),
    url('../images/69a331fd41d3aa572fd5363b_128-14.jpg') center / cover no-repeat;
  z-index: 0;
}

.home-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(255, 189, 89, 0.15), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255, 189, 89, 0.08), transparent 45%);
  pointer-events: none;
}

.home-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  z-index: 1;
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--home-max);
  margin: 0 auto;
  width: 100%;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--home-gold-soft);
  border: 1px solid rgba(255, 189, 89, 0.35);
  color: var(--home-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.home-hero__badge i {
  font-size: 0.85rem;
}

.home-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--home-text);
  margin: 0 0 20px;
  max-width: 14ch;
  letter-spacing: -0.02em;
}

.home-hero__title .highlight {
  color: var(--home-gold);
  display: block;
}

html[lang="ar"] .home-hero__title {
  max-width: none;
  line-height: 1.25;
}

.home-hero__lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--home-muted);
  max-width: 520px;
  margin: 0 0 36px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.home-btn--primary {
  background: var(--home-gold);
  color: #0c0c0e;
  box-shadow: 0 4px 24px rgba(255, 189, 89, 0.35);
}

.home-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 189, 89, 0.45);
  background: #e6aa50;
}

.home-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--home-text);
  border: 1px solid var(--home-border);
}

.home-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 189, 89, 0.3);
  color: var(--home-gold);
}

.home-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--home-border);
}

.home-hero__stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--home-gold);
  line-height: 1.2;
}

html[lang="en"] .home-hero__stat strong {
  font-family: 'Cinzel', serif;
}

.home-hero__stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-transform: none;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

html[lang="ar"] .home-hero__stat span {
  letter-spacing: 0;
  font-size: 0.95rem;
}

body.home-page .home-hero .home-hero__stat .login-en,
body.home-page .home-hero .home-hero__stat .login-ar {
  color: rgba(255, 255, 255, 0.88) !important;
  opacity: 1 !important;
}

.home-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--home-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: homeBounce 2s ease-in-out infinite;
}

.home-hero__scroll i {
  color: var(--home-gold);
}

@keyframes homeBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Hero text colors override global login-en */
body.home-page .home-hero .login-en,
body.home-page .home-hero .login-ar {
  color: inherit !important;
}

/* ---- Trust bar ---- */
.home-trust {
  background: var(--home-surface);
  border-top: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
  padding: 20px 24px;
}

.home-trust__inner {
  max-width: var(--home-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 48px;
}

.home-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--home-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.home-trust__item i {
  color: var(--home-gold);
  font-size: 1rem;
}

/* ---- Features ---- */
.home-features {
  padding: 72px 24px;
  max-width: var(--home-max);
  margin: 0 auto;
}

.home-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-feature {
  padding: 28px 24px;
  background: var(--home-elevated);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.home-feature:hover {
  border-color: rgba(255, 189, 89, 0.25);
  transform: translateY(-3px);
}

.home-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--home-gold-soft);
  color: var(--home-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.home-feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--home-text);
  margin: 0 0 8px;
}

html[lang="en"] .home-feature h3 {
  font-family: 'Cinzel', serif !important;
}

.home-feature p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--home-muted);
}

body.home-page .home-features .login-en,
body.home-page .home-features .login-ar {
  color: inherit !important;
}

/* ---- Sections ---- */
.home-section {
  padding: 64px 24px 80px;
}

.home-section--alt {
  background: var(--home-surface);
  border-top: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
}

.home-section__head {
  max-width: var(--home-max);
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

html[lang="ar"] .home-section__head {
  flex-direction: row-reverse;
}

.home-section__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--home-gold);
  margin-bottom: 8px;
}

.home-section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--home-text);
  margin: 0;
  line-height: 1.2;
}

.home-section__sub {
  margin: 8px 0 0;
  color: var(--home-muted);
  font-size: 1rem;
  max-width: 480px;
}

.home-section__link {
  color: var(--home-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: gap 0.2s ease;
}

.home-section__link:hover {
  gap: 12px;
}

html[lang="ar"] .home-section__link i {
  transform: scaleX(-1);
}

html[lang="ar"] .home-hero__actions {
  flex-direction: row-reverse;
}

html[lang="ar"] .home-hero__stats {
  flex-direction: row-reverse;
}

body.home-page .home-section .login-en,
body.home-page .home-section .login-ar {
  color: inherit !important;
}

.home-section__sub .login-en,
.home-section__sub .login-ar {
  color: var(--home-muted) !important;
}

/* ---- Trip grids ---- */
.trips-grid {
  max-width: var(--home-max);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  list-style: none;
  padding: 0;
}

.trips-grid--featured {
  grid-template-columns: repeat(2, 1fr);
}

.trips-grid--recent {
  grid-template-columns: repeat(3, 1fr);
}

/* Hide webflow row floats on home */
body.home-page .trips-grid .w-col,
body.home-page .trips-grid [class*="w-col-"] {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

/* ---- Trip cards ---- */
.trip-card {
  background: var(--home-elevated);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.trip-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 189, 89, 0.2);
}

.trip-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.trip-card--featured .trip-card__link {
  flex-direction: row;
}

.trip-card__media {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.trip-card--featured .trip-card__media {
  width: 48%;
  min-height: 280px;
}

.trip-card:not(.trip-card--featured) .trip-card__media {
  aspect-ratio: 16 / 10;
}

.trip-card__img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.trip-card--featured .trip-card__img {
  min-height: 100%;
  position: absolute;
  inset: 0;
}

.trip-card:hover .trip-card__img {
  transform: scale(1.06);
}

.trip-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  width: fit-content;
  max-width: calc(100% - 28px);
  backdrop-filter: blur(8px);
  z-index: 1;
}

html[lang="ar"] .trip-card__badge {
  left: auto;
  right: 14px;
}

.trip-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.trip-card--featured .trip-card__body {
  width: 52%;
  justify-content: center;
}

.trip-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--home-text);
  margin: 0 0 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[lang="en"] .trip-card__title {
  font-family: 'Cinzel', serif !important;
}

.trip-card__desc {
  font-size: 0.88rem;
  color: var(--home-muted);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trip-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--home-border);
}

html[lang="ar"] .trip-card__meta {
  flex-direction: row-reverse;
}

.trip-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 189, 89, 0.4);
}

.trip-card__author {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--home-text);
}

.trip-card__date {
  display: block;
  font-size: 0.75rem;
  color: var(--home-muted);
}

.trip-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html[lang="ar"] .trip-card__footer {
  flex-direction: row-reverse;
}

.trip-card__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--home-gold);
}

.trip-card__btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--home-gold);
  color: #0c0c0e;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.trip-card__btn:hover {
  background: #e6aa50;
  transform: scale(1.03);
}

.empty-programs {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  background: var(--home-elevated);
  border-radius: var(--home-radius-lg);
  border: 1px dashed var(--home-border);
  color: var(--home-muted);
}

.empty-programs i {
  font-size: 2.5rem;
  color: var(--home-gold);
  margin-bottom: 16px;
  display: block;
}

/* ---- CTA strip ---- */
.home-cta {
  margin: 0 24px 80px;
  max-width: calc(var(--home-max) - 48px);
  margin-left: auto;
  margin-right: auto;
  padding: 48px 40px;
  border-radius: var(--home-radius-lg);
  background: linear-gradient(135deg, rgba(255, 189, 89, 0.18) 0%, rgba(255, 189, 89, 0.04) 100%);
  border: 1px solid rgba(255, 189, 89, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 189, 89, 0.1), transparent 50%);
  pointer-events: none;
}

.home-cta__inner {
  position: relative;
  z-index: 1;
}

.home-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--home-text);
  margin: 0 0 12px;
}

html[lang="en"] .home-cta h2 {
  font-family: 'Cinzel', serif !important;
}

.home-cta p {
  color: var(--home-muted);
  margin: 0 0 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

body.home-page .home-cta .login-en,
body.home-page .home-cta .login-ar {
  color: inherit !important;
}

body.home-page .home-cta p .login-en,
body.home-page .home-cta p .login-ar {
  color: var(--home-muted) !important;
}

/* Footer on home — keep dark cohesive */
body.home-page #site-footer {
  border-top: 1px solid var(--home-border);
  margin-top: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .trips-grid--featured {
    grid-template-columns: 1fr;
  }

  .trip-card--featured .trip-card__link {
    flex-direction: column;
  }

  .trip-card--featured .trip-card__media,
  .trip-card--featured .trip-card__body {
    width: 100%;
  }

  .trip-card--featured .trip-card__media {
    min-height: 220px;
  }

  .trips-grid--recent {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-features__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: auto;
    padding: 90px 20px 72px;
  }

  .home-hero__scroll {
    display: none;
  }

  .home-hero__stats {
    gap: 20px;
  }

  .trips-grid--recent {
    grid-template-columns: 1fr;
  }

  .home-section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  html[lang="ar"] .home-section__head {
    align-items: flex-end;
  }

  .home-cta {
    padding: 36px 24px;
    margin-bottom: 48px;
  }
}
