/* =============================================
   SAFAR — Saudi Arabia Luxury Tourism
   Shared Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --gold:    #C9A84C;
  --gold-lt: #E8D5A3;
  --dark:    #0D0D0D;
  --ink:     #1A1A1A;
  --sand:    #F5F0E8;
  --sand2:   #EDE6D6;
  --white:   #FFFFFF;
  --muted:   #7A7A7A;
  --border:  rgba(201,168,76,0.25);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', system-ui, sans-serif;

  --radius: 2px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--dark);
  color: var(--sand);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--sans); }

/* ── LOADER ─────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--gold);
  animation: pulse 1.5s ease-in-out infinite;
}
.loader-bar {
  width: 120px; height: 1px;
  background: var(--border);
  margin: 1rem auto 0;
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--gold);
  animation: barSlide 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:0.5} 50%{opacity:1} }
@keyframes barSlide { 0%{transform:translateX(-100%)} 100%{transform:translateX(350%)} }

/* ── NAVIGATION ──────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition);
}
.nav.scrolled {
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  padding: 0.85rem 3rem;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0.8;
  transition: opacity var(--transition), color var(--transition);
}
.nav-links a:hover { opacity: 1; color: var(--gold); }

.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 0.35rem; }
.nav-dropdown > a::after {
  content: '›';
  font-size: 1rem;
  transform: rotate(90deg);
  display: inline-block;
  transition: transform var(--transition);
}
.nav-dropdown:hover > a::after { transform: rotate(270deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(13,13,13,0.97);
  border: 1px solid var(--border);
  min-width: 160px;
  padding: 0.75rem 0;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dropdown-menu a:hover { color: var(--gold); background: rgba(201,168,76,0.06); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.55rem 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.nav-cta:hover { background: var(--gold); color: var(--dark); }

.nav-lang {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.35rem 0.7rem;
  transition: color var(--transition), border-color var(--transition);
}
.nav-lang:hover { color: var(--gold); border-color: var(--gold); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: var(--sand);
  transition: all var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--dark);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--sand);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: var(--sand); font-size: 2rem; cursor: pointer;
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 4rem 3rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}
.footer-brand .footer-logo {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 220px;
}
.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--sand); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── UTILITY ─────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
.section-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
}
.divider {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* ── DESTINATION PAGE HERO ───────────────────── */
.dest-hero {
  height: 70vh; min-height: 480px;
  position: relative;
  display: flex; align-items: flex-end;
  padding-bottom: 4rem;
}
.dest-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}
.dest-hero-content {
  position: relative;
  padding: 0 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.dest-hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--white);
}
.dest-hero-content .subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
}

/* ── DESTINATION CONTENT ─────────────────────── */
.dest-section {
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.dest-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.dest-intro-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
}
.dest-intro-text .section-label { margin-bottom: 0.5rem; }
.dest-intro-text p {
  font-size: 1rem;
  color: rgba(245,240,232,0.7);
  margin-top: 1rem;
  line-height: 1.8;
}

/* Highlights */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2rem;
}
.highlight-item {
  background: var(--ink);
  padding: 1.75rem;
  display: flex; align-items: flex-start; gap: 1rem;
}
.highlight-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
}
.highlight-text {
  font-size: 0.85rem;
  color: var(--sand);
  line-height: 1.5;
  padding-top: 0.3rem;
}

/* Services */
.services-grid {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 2rem;
}
.service-tag {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.65rem 1.1rem;
  font-size: 0.8rem;
  color: rgba(245,240,232,0.8);
}
.service-tag .icon { font-size: 1.1rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 2rem;
}
.gallery-grid img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  transition: filter var(--transition), transform var(--transition);
}
.gallery-grid img:hover { filter: brightness(1.15); transform: scale(1.02); }

/* Pricing */
.pricing-box {
  border: 1px solid var(--border);
  padding: 3rem;
  max-width: 500px;
  margin-top: 2rem;
  background: rgba(255,255,255,0.02);
}
.price-amount {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.price-unit {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}
.traveler-control {
  display: flex; align-items: center; gap: 1.5rem;
  margin: 1.5rem 0;
}
.traveler-control label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 100px;
}
.traveler-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: none;
  color: var(--sand);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.traveler-btn:hover { border-color: var(--gold); color: var(--gold); }
.traveler-count {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--white);
  min-width: 32px;
  text-align: center;
}
.total-price {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.total-price span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
}
.btn-book {
  display: block; width: 100%;
  background: var(--gold);
  color: var(--dark);
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
}
.btn-book:hover { background: var(--gold-lt); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 1rem 1.5rem; }
  .nav.scrolled { padding: 0.7rem 1.5rem; }
  .nav-links, .nav-cta, .nav-lang { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dest-intro { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .dest-section { padding: 3rem 1.5rem; }
  .dest-hero-content { padding: 0 1.5rem; }
  .container { padding: 0 1.5rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .highlights-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .pricing-box { padding: 2rem 1.5rem; }
}
