/* ============================================
   MAKHDOOM TRAVELS — Design System & Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-bg: #f9f6f0;
  --color-surface: #ffffff;
  --color-primary: #1a6b3c;
  --color-primary-light: #2e8b57;
  --color-accent: #c9a84c;
  --color-text: #1c1c1c;
  --color-text-muted: #6b6b6b;
  --color-border: #e0ddd6;
  --font-heading: "Cormorant Garamond", serif;
  --font-body: "DM Sans", sans-serif;
  --font-arabic: "Amiri", serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --container: 1200px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility ---------- */
.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}
.section-subheading {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ISLAMIC GEOMETRIC PATTERN (SVG inline BG)
   ============================================ */
.geo-pattern {
  position: relative;
}
.geo-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231A6B3C' stroke-width='1'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z'/%3E%3Cpath d='M30 10L50 30L30 50L10 30Z'/%3E%3Cpath d='M30 20L40 30L30 40L20 30Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* ============================================
   1. NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-surface);
  padding: 16px 0;
  transition:
    box-shadow 0.3s ease,
    padding 0.3s ease;
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.nav-logo span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s;
}
.nav-links a:hover {
  color: var(--color-primary);
}
.nav-links a:hover::after {
  width: 100%;
}
.btn-book {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    background 0.3s,
    transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-book:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}
.btn-book::after {
  display: none !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.3s;
}
.mobile-menu a:hover {
  color: var(--color-primary);
}

/* ============================================
   2. HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/hajjimg2.jpeg")
    center top / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 107, 60, 0.85) 0%,
    rgba(26, 107, 60, 0.4) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 80px 24px 0;
  max-width: 780px;
}
.hero-bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--color-accent);
  margin-bottom: 20px;
  display: block;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.9;
  margin-bottom: 36px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: var(--color-primary-light);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition:
    background 0.3s,
    transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-hero-primary:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}
.btn-hero-outline {
  background: transparent;
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s;
  cursor: pointer;
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* Floating Particles */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  opacity: 0.3;
  border-radius: 50%;
  animation: floatUp linear infinite;
}
.particle:nth-child(odd) {
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  width: 10px;
  height: 10px;
}
@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* ============================================
   3. TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--color-primary);
  padding: 48px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  color: #fff;
}
.trust-item {
  padding: 16px 20px;
  border-right: 1px solid var(--color-accent);
}
.trust-item:last-child {
  border-right: none;
}
.trust-item .number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--color-accent);
  display: block;
}
.trust-item .label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 4px;
}

/* ============================================
   4. ABOUT
   ============================================ */
.about {
  padding: 100px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  padding: 20px;
}
.about-img-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-primary);
  border-radius: var(--radius);
  transform: translate(12px, 12px);
  z-index: 0;
}
.about-img-wrap img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  width: 100%;
  height: auto;
}
.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}
.about-text h2 {
  margin-bottom: 20px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 12px;
  transition: gap 0.3s;
}
.link-arrow:hover {
  gap: 12px;
}

/* ============================================
   5. PACKAGES
   ============================================ */
.packages {
  padding: 100px 0;
  background: var(--color-bg);
}
.packages-header {
  text-align: center;
  margin-bottom: 56px;
}
.packages-images-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.package-img-item {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}
.package-img-item:hover {
  transform: translateY(-5px);
}
.package-img-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.pkg-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.3s;
}
.pkg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-primary);
}
.pkg-card-img {
  position: relative;
  overflow: hidden;
}
.pkg-card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s;
}
.pkg-card:hover .pkg-card-img img {
  transform: scale(1.05);
}
.pkg-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}
.pkg-badge.green {
  background: var(--color-primary);
}
.pkg-badge.gold {
  background: var(--color-accent);
}
.pkg-badge.dark-green {
  background: #145530;
}
.pkg-card-body {
  padding: 28px;
}
.pkg-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}
.pkg-features {
  margin-bottom: 24px;
}
.pkg-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
.pkg-features li:last-child {
  border-bottom: none;
}
.pkg-features li::before {
  content: "✦";
  color: var(--color-accent);
  font-size: 0.7rem;
  flex-shrink: 0;
}
.btn-details {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 12px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  cursor: pointer;
  background: none;
}
.btn-details:hover {
  background: var(--color-primary);
  color: #fff;
}
.packages-note {
  text-align: center;
  margin-top: 48px;
  color: var(--color-text-muted);
  font-size: 1rem;
}
.packages-note span {
  color: var(--color-accent);
}

/* ============================================
   5.5 GALLERY
   ============================================ */
.gallery {
  padding: 100px 0;
  background: var(--color-surface);
}
.gallery-header {
  text-align: center;
  margin-bottom: 56px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   6. WHY CHOOSE US
   ============================================ */
.why-us {
  padding: 100px 0;
  background: var(--color-surface);
}
.why-us-header {
  text-align: center;
  margin-bottom: 56px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.why-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.why-tile-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.why-tile h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.why-tile p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   7. TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 100px 0;
  background: var(--color-primary);
  color: #fff;
}
.testimonials-header {
  text-align: center;
  margin-bottom: 56px;
}
.testimonials-header h2 {
  color: #fff;
}
.testimonials-header p {
  color: rgba(255, 255, 255, 0.7);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.test-card {
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
}
.test-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-accent);
  position: absolute;
  top: 12px;
  left: 24px;
  line-height: 1;
  opacity: 0.4;
}
.test-stars {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.test-card blockquote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-style: italic;
}
.test-author {
  font-weight: 700;
  font-size: 0.95rem;
}
.test-city {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================
   8. CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 24px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(26, 107, 60, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-detail p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.contact-detail strong {
  color: var(--color-text);
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 16px;
  transition:
    background 0.3s,
    transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
}
.contact-form {
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-bg);
  transition: border-color 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.btn-submit {
  background: var(--color-primary);
  color: #fff;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.2s;
  width: 100%;
}
.btn-submit:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

/* ============================================
   9. FOOTER
   ============================================ */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 72px 0 0;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-accent) 0,
    var(--color-accent) 20px,
    transparent 20px,
    transparent 30px
  );
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-brand .nav-logo span {
  color: #fff;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  opacity: 0.8;
  line-height: 1.7;
  max-width: 320px;
}
.footer h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}
.footer ul li {
  margin-bottom: 10px;
}
.footer ul a {
  font-size: 0.92rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.footer ul a:hover {
  opacity: 1;
  color: var(--color-accent);
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s;
}
.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .packages-grid,
  .testimonials-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-item {
    border-right: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  }
  .trust-item:nth-child(2) {
    border-right: none;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-img-wrap {
    max-width: 500px;
    margin: 0 auto;
  }
  .packages-grid,
  .testimonials-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 28px;
  }
}
