/* Home page redesign inspired by the green and gold logo identity. */
:root {
  --home-green-950: #031f1a;
  --home-green-900: #052d26;
  --home-green-800: #063f33;
  --home-green-700: #0a5a48;
  --home-gold-700: #9b742d;
  --home-gold-600: #c99a3d;
  --home-gold-300: #efd28a;
  --home-cream: #fbf7ec;
  --home-paper: #fffdf7;
  --home-ink: #12231e;
  --home-muted: #65746f;
  --home-line: rgba(10, 90, 72, 0.14);
  --home-shadow: 0 24px 70px rgba(3, 31, 26, 0.14);
}

.home-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 154, 61, 0.14), transparent 26rem),
    linear-gradient(180deg, var(--home-cream), #ffffff 45%, #f6f8f2);
  color: var(--home-ink);
}

.home-page .scroll-progress .progress-bar {
  background: linear-gradient(90deg, var(--home-green-700), var(--home-gold-600)) !important;
}

.home-page .revolutionary-header {
  background: rgba(251, 247, 236, 0.88) !important;
  border-bottom: 1px solid rgba(201, 154, 61, 0.22) !important;
  box-shadow: 0 12px 40px rgba(3, 31, 26, 0.08);
}

.home-page .revolutionary-header.scrolled {
  background: rgba(255, 253, 247, 0.96) !important;
}

.home-page .header-particles,
.home-page .packages-particles,
.home-page .floating-element {
  display: none !important;
}

.home-page .header-container {
  padding: 10px 0 !important;
}

.home-page .revolutionary-header.scrolled .header-container {
  padding: 8px 0 !important;
}

.home-page .logo-image {
  height: 58px !important;
  max-width: 132px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(3, 31, 26, 0.18)) !important;
}

.home-page .revolutionary-header.scrolled .logo-image {
  height: 52px !important;
}

.home-page .nav-menu {
  gap: 0.25rem !important;
}

.home-page .nav-link {
  color: var(--home-green-900) !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
}

.home-page .nav-link::before {
  background: rgba(201, 154, 61, 0.12) !important;
}

.home-page .nav-link::after {
  background: var(--home-gold-600) !important;
}

.home-page .nav-link:hover,
.home-page .nav-link.active,
.home-page .nav-link:hover i,
.home-page .nav-link.active i {
  color: var(--home-gold-700) !important;
}

.home-page .mobile-whatsapp {
  display: none !important;
}

.home-page .mobile-menu-btn {
  width: 44px !important;
  height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 0 !important;
  background: var(--home-green-800) !important;
  border: 1px solid rgba(201, 154, 61, 0.5) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(3, 31, 26, 0.16) !important;
}

.home-page .mobile-menu-btn:hover,
.home-page .mobile-menu-btn.active {
  background: var(--home-gold-600) !important;
}

.home-page .menu-line {
  width: 22px !important;
  height: 2px !important;
  background: #ffffff !important;
}

.home-page .whatsapp-btn,
.home-page .floating-whatsapp {
  background: linear-gradient(135deg, var(--home-green-800), var(--home-green-700)) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(10, 90, 72, 0.22) !important;
}

.home-page .new-hero-section {
  min-height: 78vh !important;
  padding: 120px 0 58px;
  background:
    linear-gradient(270deg, rgba(3, 31, 26, 0.98) 0%, rgba(5, 45, 38, 0.94) 46%, rgba(10, 90, 72, 0.84) 100%),
    url("../images/kaaba-2217859_1280.jpg") center/cover !important;
  isolation: isolate;
  animation: homeHeroDrift 22s ease-in-out infinite alternate;
}

.home-page .new-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(201, 154, 61, 0.2), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255, 253, 247, 0.045) 0 1px, transparent 1px 20px);
  z-index: 1;
  animation: homeHeroPattern 18s linear infinite;
}

.home-page .new-hero-section::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(0deg, var(--home-cream), rgba(3, 31, 26, 0));
  z-index: 2;
}

.home-page .new-hero-section .col-lg-10 {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.58fr);
  gap: clamp(24px, 4.2vw, 56px);
  align-items: center;
  text-align: right !important;
}

.home-page .new-hero-section .col-lg-10 > *:not(.hero-logo-wrapper) {
  position: relative;
  z-index: 2;
}

.home-page .new-hero-section .col-lg-10 > div:first-child {
  justify-self: start;
  margin: 0 0 20px !important;
  background: rgba(255, 253, 247, 0.1) !important;
  color: var(--home-gold-300) !important;
  border: 1px solid rgba(201, 154, 61, 0.36) !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 30px rgba(3, 31, 26, 0.18);
}

.home-page .hero-logo-wrapper {
  grid-column: 2;
  grid-row: 1 / span 5;
  width: min(100%, 340px);
  min-height: 330px;
  margin: 0 auto !important;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.12), rgba(255, 253, 247, 0.04)),
    radial-gradient(ellipse at center, rgba(239, 210, 138, 0.3), transparent 64%);
  border: 1px solid rgba(201, 154, 61, 0.34);
  border-radius: 999px;
  box-shadow: 0 26px 70px rgba(3, 31, 26, 0.12);
  position: relative;
  animation: homeHeroFloat 6s ease-in-out infinite;
}

.home-page .hero-logo-wrapper::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(239, 210, 138, 0.28);
  border-radius: inherit;
  animation: homeHeroRotate 28s linear infinite;
}

.home-page .hero-logo-wrapper::after {
  content: "";
  position: absolute;
  inset: 44px;
  border-block: 2px solid rgba(201, 154, 61, 0.26);
  border-radius: inherit;
  transform: rotate(-12deg);
  animation: homeHeroPulse 5s ease-in-out infinite;
}

.home-page .hero-logo {
  width: min(76%, 260px) !important;
  filter: drop-shadow(0 18px 28px rgba(3, 31, 26, 0.18)) !important;
  animation: logoFloat 5s ease-in-out infinite !important;
  position: relative;
  z-index: 2;
}

.home-page .new-hero-section h1 {
  max-width: 710px;
  margin: 0 0 20px !important;
  font-size: clamp(2.15rem, 4.3vw, 4.55rem) !important;
  line-height: 1.06 !important;
}

.home-page .new-hero-section h1 div:first-child {
  color: #ffffff !important;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.28) !important;
}

.home-page .new-hero-section h1 div:last-child {
  color: var(--home-gold-300) !important;
  font-size: clamp(1.18rem, 2.2vw, 2.15rem) !important;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

.home-page .new-hero-section p {
  max-width: 690px !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  color: rgba(255, 253, 247, 0.82) !important;
  text-shadow: none !important;
}

.home-page .new-hero-section p:nth-of-type(1) {
  font-size: clamp(1.02rem, 1.55vw, 1.24rem) !important;
  color: rgba(255, 253, 247, 0.94) !important;
  font-weight: 800 !important;
  margin-bottom: 24px !important;
}

.home-page .new-hero-section p:nth-of-type(2) {
  display: none !important;
}

.home-page .new-hero-section div[style*="flex-wrap"] {
  justify-content: flex-start !important;
  margin-bottom: 0 !important;
}

.home-page .new-hero-section div[style*="flex-wrap"] a,
.home-page .about-btn,
.home-page .package-btn,
.home-page .view-all-btn,
.home-page .hotel-btn,
.home-page .gallery-overlay-btn,
.home-page .no-gallery-btn,
.home-page .contact-btn {
  border-radius: 8px !important;
  min-height: 52px;
  font-weight: 800 !important;
}

.home-page .new-hero-section div[style*="flex-wrap"] a:first-child,
.home-page .package-btn-primary,
.home-page .view-all-btn,
.home-page .hotel-btn-primary,
.home-page .gallery-overlay-btn {
  background: linear-gradient(135deg, var(--home-green-900), var(--home-green-700)) !important;
  color: #fff !important;
  border: 1px solid rgba(239, 210, 138, 0.38) !important;
  box-shadow: 0 18px 36px rgba(5, 45, 38, 0.22) !important;
}

.home-page .new-hero-section div[style*="flex-wrap"] a:last-child,
.home-page .about-btn-secondary,
.home-page .package-btn-secondary,
.home-page .hotel-btn-secondary {
  background: rgba(255, 253, 247, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(201, 154, 61, 0.48) !important;
  box-shadow: 0 12px 26px rgba(3, 31, 26, 0.16) !important;
}

.home-page .new-hero-section > div:last-child {
  display: none !important;
}

.home-page .revolutionary-about,
.home-page .revolutionary-features,
.home-page .revolutionary-packages,
.home-page .hotels-grid-section,
.home-page .revolutionary-bus-gallery,
.home-page .revolutionary-hotel-gallery {
  padding: clamp(58px, 7vw, 92px) 0 !important;
}

.home-page .revolutionary-about,
.home-page .revolutionary-packages,
.home-page .revolutionary-hotel-gallery {
  background: var(--home-cream) !important;
}

.home-page .revolutionary-features,
.home-page .hotels-grid-section,
.home-page .revolutionary-bus-gallery {
  background: var(--home-paper) !important;
}

.home-page .revolutionary-features {
  padding: clamp(50px, 6vw, 76px) 0 !important;
}

.home-page .revolutionary-features::before,
.home-page .revolutionary-packages::before,
.home-page .hotels-grid-section::before {
  background: linear-gradient(135deg, rgba(10, 90, 72, 0.06), rgba(201, 154, 61, 0.09)) !important;
  opacity: 1 !important;
}

.home-page .features-title h2,
.home-page .packages-title h2,
.home-page .hotels-grid-title h2,
.home-page .gallery-title h2,
.home-page .about-content h2 {
  color: var(--home-green-950) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  font-size: clamp(1.85rem, 3vw, 2.75rem) !important;
  letter-spacing: 0 !important;
}

.home-page .features-title {
  display: grid;
  grid-template-columns: minmax(220px, 0.44fr) minmax(0, 0.56fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: end;
  text-align: right !important;
  margin-bottom: clamp(24px, 4vw, 40px) !important;
}

.home-page .features-title h2,
.home-page .features-title p {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.home-page .features-title p,
.home-page .packages-title p,
.home-page .hotels-grid-title p,
.home-page .gallery-title p,
.home-page .about-content p {
  color: var(--home-muted) !important;
  line-height: 1.8;
}

.home-page .about-grid {
  gap: clamp(30px, 5vw, 70px) !important;
}

.home-page .about-image,
.home-page .feature-card,
.home-page .package-card,
.home-page .hotel-card,
.home-page .revolutionary-gallery-item,
.home-page .no-gallery-items,
.home-page .no-packages,
.home-page .no-hotels {
  border-radius: 8px !important;
  border: 1px solid var(--home-line) !important;
  background: rgba(255, 253, 247, 0.92) !important;
  box-shadow: 0 18px 50px rgba(3, 31, 26, 0.09) !important;
}

.home-page .feature-card {
  min-height: 100%;
  padding: 24px 22px !important;
  text-align: right !important;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}

.home-page .features-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.home-page .feature-card::before,
.home-page .package-card::before {
  background: linear-gradient(180deg, rgba(201, 154, 61, 0.18), transparent) !important;
}

.home-page .feature-card:hover,
.home-page .package-card:hover,
.home-page .hotel-card:hover,
.home-page .revolutionary-gallery-item:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(201, 154, 61, 0.5) !important;
}

.home-page .feature-icon,
.home-page .package-badge,
.home-page .hotel-badge,
.home-page .gallery-badge,
.home-page .no-gallery-icon,
.home-page .no-hotels-icon,
.home-page .no-packages .icon {
  background: linear-gradient(135deg, var(--home-green-800), var(--home-gold-600)) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(10, 90, 72, 0.2) !important;
}

.home-page .feature-icon {
  width: 60px !important;
  height: 60px !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 18px 18px 6px 18px !important;
  font-size: 1.28rem !important;
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.home-page .feature-icon::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(201, 154, 61, 0.28);
  border-radius: 24px 24px 8px 24px;
  z-index: -1;
}

.home-page .feature-icon::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  inset-inline-start: -5px;
  bottom: -5px;
  background: var(--home-gold-300);
  border: 3px solid var(--home-paper);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(3, 31, 26, 0.16);
}

.home-page .feature-card:nth-child(1) .feature-icon {
  background: linear-gradient(135deg, #06483b, #0f8a6c) !important;
}

.home-page .feature-card:nth-child(2) .feature-icon {
  background: linear-gradient(135deg, #8a6422, #d6a949) !important;
}

.home-page .feature-card:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, #173f63, #2f83b7) !important;
}

.home-page .feature-card:nth-child(4) .feature-icon {
  background: linear-gradient(135deg, #5f2f18, #bd7440) !important;
}

.home-page .feature-icon i {
  transform: translateY(1px);
}

.home-page .feature-card h3,
.home-page .package-title,
.home-page .hotel-title,
.home-page .gallery-overlay-title {
  color: var(--home-green-950) !important;
}

.home-page .feature-card h3 {
  font-size: 1.18rem !important;
  margin-bottom: 10px !important;
  align-self: end;
}

.home-page .feature-card p {
  grid-column: 2;
  font-size: 0.94rem !important;
  line-height: 1.72 !important;
  margin-bottom: 0 !important;
}

.home-page .about-image img,
.home-page .about-image video,
.home-page .package-image img,
.home-page .hotel-card-image img,
.home-page .gallery-image img {
  border-radius: 8px !important;
}

.home-page .package-image::after,
.home-page .revolutionary-gallery-overlay {
  background: linear-gradient(180deg, transparent, rgba(3, 31, 26, 0.86)) !important;
}

.home-page .package-meta-item,
.home-page .feature-item,
.home-page .amenity-tag {
  background: rgba(10, 90, 72, 0.08) !important;
  color: var(--home-green-800) !important;
  border: 1px solid rgba(10, 90, 72, 0.12) !important;
  border-radius: 8px !important;
}

.home-page .feature-item i,
.home-page .hotel-location i,
.home-page .hotel-stars i {
  color: var(--home-gold-600) !important;
}

.home-page .hotels-scroll-wrapper {
  padding: 0 !important;
}

.home-page .hotels-grid {
  gap: 24px !important;
}

.home-page .hotel-card {
  width: 330px !important;
}

.home-page .revolutionary-footer {
  background: var(--home-green-950) !important;
}

.home-page .footer-main {
  background: linear-gradient(145deg, var(--home-green-950), var(--home-green-800)) !important;
}

.home-page .footer-bottom {
  background: #021511 !important;
}

.home-page .footer-logo img {
  filter: none !important;
}

@media (max-width: 991.98px) {
  .home-page .new-hero-section {
    min-height: auto !important;
    padding: 116px 0 50px;
  }

  .home-page .new-hero-section .col-lg-10 {
    grid-template-columns: 1fr;
    text-align: center !important;
  }

  .home-page .hero-logo-wrapper {
    grid-column: auto;
    grid-row: auto;
    order: -1;
    min-height: 250px;
    width: min(100%, 280px);
  }

  .home-page .new-hero-section .col-lg-10 > div:first-child,
  .home-page .new-hero-section p,
  .home-page .new-hero-section h1 {
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .home-page .new-hero-section div[style*="flex-wrap"] {
    justify-content: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }

  .home-page .about-grid {
    grid-template-columns: 1fr !important;
  }

  .home-page .features-title {
    grid-template-columns: 1fr;
    text-align: center !important;
  }

  .home-page .features-title h2,
  .home-page .features-title p {
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .home-page .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .home-page .logo-image {
    height: 50px !important;
    max-width: 112px;
  }

  .home-page .mobile-menu {
    background: rgba(255, 253, 247, 0.98) !important;
  }

  .home-page .new-hero-section div[style*="flex-wrap"] a {
    width: calc(50% - 5px) !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
    font-size: 0.88rem !important;
    gap: 7px !important;
    white-space: nowrap;
  }

  .home-page .feature-card,
  .home-page .package-card,
  .home-page .hotel-card {
    width: 100% !important;
  }

  .home-page .features-grid {
    grid-template-columns: 1fr !important;
  }

  .home-page .feature-card {
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 14px;
    padding: 20px 18px !important;
  }

  .home-page .feature-icon {
    width: 54px !important;
    height: 54px !important;
    font-size: 1.16rem !important;
  }
}

@keyframes homeHeroDrift {
  from {
    background-position: center center;
  }
  to {
    background-position: 54% 48%;
  }
}

@keyframes homeHeroPattern {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 0, 120px 120px;
  }
}

@keyframes homeHeroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes homeHeroRotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes homeHeroPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: rotate(-12deg) scale(0.96);
  }
  50% {
    opacity: 0.9;
    transform: rotate(-12deg) scale(1.04);
  }
}
