/* =========================================================
   نور الحرمين - الإصدار التفاعلي
   ========================================================= */

:root {
  --primary: #0f2e46;
  --primary-2: #173f5f;
  --gold: #c5a059;
  --gold-light: #e4c982;
  --text: #17212b;
  --muted: #687481;
  --light: #f6f8fa;
  --success: #218838;
  --shadow: 0 16px 45px rgba(15, 46, 70, 0.12);
  --shadow-hover: 0 24px 60px rgba(15, 46, 70, 0.20);
  --radius: 20px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html {
  scroll-behavior: smooth;
}


body {
  font-family: "Cairo", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


main {
  flex: 1;
  width: 100%;
}


::selection {
  background: var(--gold);
  color: #fff;
}


img,
video {
  display: block;
  max-width: 100%;
}


a {
  text-decoration: none;
  color: inherit;
}


button,
input,
select,
textarea {
  font: inherit;
}


button {
  border: 0;
}


.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}


.center {
  text-align: center;
  margin-top: 28px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 46, 70, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}


.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}


.brand img {
  width: 72px;
  height: 58px;
  object-fit: contain;
  border-radius: 10px;
}


.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}


.main-nav a {
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}


.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}


.main-nav .nav-cta {
  background: var(--gold);
  color: #fff;
}


.nav-toggle {
  display: none;
  background: none;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
  padding: 8px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--primary);
}


.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(15, 46, 70, 0.86),
      rgba(15, 46, 70, 0.52),
      rgba(15, 46, 70, 0.76)
    );
}


.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 850px;
  text-align: center;
  padding: 90px 0;
}


.eyebrow,
.section-heading > span,
.section-kicker,
.page-hero span {
  color: var(--gold);
  font-weight: 800;
}


.hero h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.25;
  margin: 12px 0;
}


.hero p {
  font-size: 1.08rem;
  max-width: 760px;
  margin: 0 auto 28px;
  color: #eef4f7;
}


.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}


.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}


.btn-primary {
  background: var(--primary);
  color: #fff;
}


.btn-gold {
  background: var(--gold);
  color: #fff;
}


.btn-outline {
  border-color: #fff;
  color: #fff;
  background: transparent;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  padding: 78px 0;
}


.section-dark {
  background: var(--primary);
  color: #fff;
}


.section-heading {
  text-align: center;
  margin-bottom: 38px;
}


.section-heading h2 {
  font-size: 2rem;
  color: var(--primary);
  margin: 5px 0 8px;
}


.section-heading.light h2 {
  color: #fff;
}


.section-heading p {
  color: var(--muted);
}


.section-dark .section-heading p {
  color: #d9e4eb;
}


/* =========================================================
   CARDS
   ========================================================= */

.card-grid {
  display: grid;
  gap: 24px;
}


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


.media-card,
.video-card,
.service-item,
.hotel-card,
.form-box,
.contact-info {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}


.media-card {
  background: #fff;
}


.media-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}


.media-card > div {
  padding: 22px;
}


.media-card h3 {
  color: var(--primary);
  margin-bottom: 6px;
}


.media-card p {
  color: var(--muted);
}


.interactive-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}


.interactive-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}


.card-icon,
.service-icon {
  color: var(--gold);
  font-size: 25px;
  margin-bottom: 8px;
}


.card-link {
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  margin-top: 10px;
}


/* =========================================================
   VIDEOS
   ========================================================= */

.video-card {
  background: rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}


.video-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
}


.video-wrap {
  position: relative;
  overflow: hidden;
  background: #000;
}


.video-card video {
  width: 100%;
  height: 235px;
  object-fit: cover;
  background: #000;
  transition: transform 0.7s ease;
}


.video-card:hover video {
  transform: scale(1.045);
}


.video-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(
    transparent,
    rgba(0, 0, 0, 0.82)
  );
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}


.video-card:hover .video-overlay,
.video-card:focus-within .video-overlay,
.interactive-video.is-active .video-overlay {
  opacity: 1;
  transform: none;
}


.video-overlay a {
  background: var(--gold);
  padding: 7px 12px;
  border-radius: 9px;
  font-weight: 800;
}


.video-card h2,
.video-card h3 {
  font-size: 1.1rem;
  padding: 14px 18px 0;
  color: #fff;
}


.video-caption {
  padding: 0 18px;
  color: #cbd8df;
  font-size: 0.9rem;
}


/* =========================================================
   FEATURES
   ========================================================= */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}


.feature {
  text-align: center;
  padding: 28px 18px;
  border: 1px solid #e8edf1;
  border-radius: var(--radius);
  background: #fff;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


.feature:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}


.feature i {
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}


.feature:hover i {
  animation: iconFloat 0.8s ease;
}


.feature h3 {
  color: var(--primary);
  margin-bottom: 6px;
}


.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}


@keyframes iconFloat {

  50% {
    transform: translateY(-7px) rotate(-4deg);
  }

}


/* =========================================================
   LOCATION
   ========================================================= */

.location {
  background: var(--light);
}


.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 35px;
  align-items: center;
}


.location h2 {
  font-size: 2rem;
  color: var(--primary);
  margin: 6px 0 10px;
}


.location p {
  color: var(--muted);
  margin-bottom: 22px;
}


.map-wrap {
  min-height: 370px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}


.map-wrap iframe {
  width: 100%;
  height: 370px;
  border: 0;
}


/* =========================================================
   CTA
   ========================================================= */

.cta-section {
  padding: 70px 0;
  text-align: center;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-2)
    );
  color: #fff;
}


.cta-section h2 {
  font-size: 2rem;
}


.cta-section p {
  margin: 8px 0 22px;
  color: #e5edf2;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: #091d2c;
  color: #dce5ea;
  padding: 22px 0;
  margin-top: auto;
}


.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}


.footer-wrap a {
  color: var(--gold-light);
  font-weight: 700;
}


/* =========================================================
   FLOATING BUTTONS
   ========================================================= */

.floating-buttons {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}


.float-btn:hover {
  transform: scale(1.1) translateY(-2px);
}


.facebook {
  background: #1877f2;
}


.whatsapp {
  background: #25d366;
}


/* الحفاظ على توحيد الحجم والشكل مع باقي الأزرار العائمة */
.float-btn.call-btn {
  background: linear-gradient(135deg, #28a745, #20c997); /* لون مميز للاتصال */
  animation: call-pulse 2.5s infinite;
}

/* تأثير النبض الخاص بزر الاتصال فقط دون التأثير على الأزرار الأخرى */
@keyframes call-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* =========================================================
   INNER PAGES
   ========================================================= */

.page-hero {
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-2)
    );
  color: #fff;
  padding: 75px 0;
  text-align: center;
}


.page-hero h1 {
  font-size: 2.5rem;
  margin: 5px 0;
}


.page-hero p {
  color: #e4edf2;
}


.page-section {
  position: relative;
  padding: 78px 0;
  z-index: 2;
}


.page-intro {
  text-align: center;
  margin-bottom: 38px;
}


.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
  margin: 5px 0 8px;
}


.section-description {
  max-width: 850px;
  margin: auto;
  color: var(--muted);
}


/* =========================================================
   SERVICES
   ========================================================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}


.service-item {
  background: #fff;
  display: block;
}


.service-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}


.service-content {
  padding: 20px;
}


.service-content h2 {
  color: var(--primary);
  font-size: 1.25rem;
}


.service-content p {
  color: var(--muted);
}


/* =========================================================
   HOTELS
   ========================================================= */

.with-page-video {
  background: #edf2f5;
}


.page-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  opacity: 0.22;
}


.page-video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  z-index: -2;
}


.hotel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}


.hotel-card {
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
}


.hotel-image-wrap {
  height: 245px;
  overflow: hidden;
  background: #e8edf1;
}


.hotel-card > .hotel-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}


.hotel-card:hover .hotel-image-wrap img {
  transform: scale(1.05);
}


.hotel-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}


.hotel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}


.hotel-header h2 {
  color: var(--primary);
  font-size: 1.2rem;
}


.hotel-stars {
  color: var(--gold);
  white-space: nowrap;
  font-size: 0.9rem;
  margin-top: 3px;
}


.badge {
  color: var(--success);
  background: #eaf7ed;
  border: 1px solid #c9e8d0;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}


.hotel-info {
  margin-top: 15px;
}


.hotel-info > div {
  padding: 10px 0;
  border-bottom: 1px solid #edf0f2;
}


.hotel-info strong {
  color: var(--primary);
  font-size: 0.9rem;
}


.hotel-info strong i {
  color: var(--gold);
  width: 20px;
}


.hotel-info p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 3px;
}


.hotel-book-btn {
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
}


/* =========================================================
   FORMS
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}


.contact-info,
.form-box {
  background: #fff;
  padding: 28px;
}


.contact-info h2,
.form-box h2 {
  color: var(--primary);
  margin-bottom: 18px;
}


.contact-info a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f2;
}


.contact-info i {
  width: 28px;
  color: var(--gold);
}


.contact-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  background: #f8f3e8;
  color: var(--primary);
}


.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}


.form-box label {
  display: block;
  font-weight: 700;
  margin-bottom: 15px;
}


.form-box input,
.form-box select,
.form-box textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #d8e0e5;
  border-radius: 10px;
  outline: 0;
  background: #fff;
}


.form-box input:focus,
.form-box select:focus,
.form-box textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}


.form-box .btn {
  width: 100%;
  margin-top: 8px;
}


.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 8px 0 15px;
}


.narrow {
  max-width: 800px;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}


.reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

  .card-grid.three,
  .service-grid,
  .hotel-grid {
    grid-template-columns: repeat(2, 1fr);
  }


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

}


@media (max-width: 900px) {

  .main-nav {
    position: absolute;
    top: 76px;
    right: 4%;
    left: 4%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--primary);
    padding: 12px;
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow);
  }


  .main-nav.is-open {
    display: flex;
  }


  .main-nav a {
    text-align: center;
  }


  .nav-toggle {
    display: block;
  }


  .location-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }


  .page-video {
    opacity: 0.12;
  }

}


@media (max-width: 700px) {

  .section {
    padding: 58px 0;
  }


  .hero {
    min-height: 72vh;
  }


  .hero-content {
    padding: 70px 0;
  }


  .hero h1 {
    font-size: 2rem;
  }


  .hero p {
    font-size: 0.98rem;
  }


  .card-grid.three,
  .service-grid,
  .hotel-grid,
  .features {
    grid-template-columns: 1fr;
  }


  .media-card img,
  .service-item img {
    height: 210px;
  }


  .video-card video {
    height: 220px;
  }


  .hotel-image-wrap {
    height: 220px;
  }


  .page-hero {
    padding: 58px 0;
  }


  .page-hero h1 {
    font-size: 2rem;
  }


  .form-grid {
    grid-template-columns: 1fr;
  }


  .footer-wrap {
    flex-direction: column;
    text-align: center;
  }


  .floating-buttons {
    left: 14px;
    bottom: 14px;
  }


  .float-btn {
    width: 46px;
    height: 46px;
  }


  .video-overlay {
    opacity: 1;
    transform: none;
  }


  .video-card:hover video {
    transform: none;
  }


  .hero-actions .btn {
    width: 100%;
  }

}


@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }


  .hero-video {
    display: none;
  }


  .page-video {
    display: none;
  }


  .reveal {
    opacity: 1;
    transform: none;
  }

}