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

.header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header.header--over-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  box-shadow: none;
  transition: background 0.25s ease, box-shadow 0.25s ease,
    backdrop-filter 0.25s ease;
}

.header.header--over-hero.header--scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.header__container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
  position: relative;
}

a.header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  z-index: 1001;
}

img.header__logo {
  width: 92px;
  height: 68px;
  display: block;
}

.header.header--over-hero a.header__logo {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.header.header--over-hero.header--scrolled a.header__logo {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.header__burger {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  z-index: 1001;
  position: relative;
}

.header__burger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: all 0.3s ease;
  display: block;
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: color 0.3s ease;
}

.header.header--over-hero .header__nav a {
  color: rgba(255, 255, 255, 0.92);
}

.header.header--over-hero .header__nav .dropdown-content a {
  color: var(--dark);
}

.header.header--over-hero .header__nav .dropdown-content a:hover {
  color: var(--gold);
}

.header.header--over-hero.header--scrolled .header__nav a {
  color: var(--dark);
}

.header__nav a:hover {
  color: var(--gold);
}

.header.header--over-hero img.header__logo {
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.25));
}

.header.header--over-hero .header__burger span {
  background: rgba(255, 255, 255, 0.92);
}

.header.header--over-hero.header--scrolled .header__burger span {
  background: var(--dark);
}

.header__cta {
  background: var(--gold);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.header__cta:hover {
  background: #a56825;
  color: #fff;
}

/* Mobile Styles for Header */
@media (max-width: 768px) {
  .header__container {
    justify-content: space-between;
  }
  .header__burger {
    display: flex;
  }

  body.menu-open a.header__logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.98);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 25px;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .header.header--over-hero .header__nav a {
    color: var(--dark);
  }

  .header__nav.active {
    right: 0;
  }

  .header__nav a {
    width: 100%;
    padding: 12px 0;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
  }

  .header__nav a:last-child {
    border-bottom: none;
    margin-top: 10px;
  }

  .header__cta {
    width: 100%;
    text-align: center;
    padding: 12px 18px;
  }

  /* Dropdown styles for mobile */
  .header__nav .dropdown {
    width: 100%;
    position: relative;
  }

  .header__nav .dropbtn {
    width: 100%;
    padding: 12px 0;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    text-align: right;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header__nav .dropbtn::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-right: 10px;
  }

  .header__nav .dropdown.active .dropbtn::after {
    transform: rotate(180deg);
  }

  .header__nav .dropdown-content {
    position: relative;
    opacity: 0;
    visibility: hidden;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    min-width: 100%;
    width: 100%;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
    background-color: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .header__nav .dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
    padding: 10px 0;
    margin-top: 10px;
  }

  .header__nav .dropdown-content li {
    list-style: none;
    margin: 0;
  }

  .header__nav .dropdown-content li a {
    color: var(--dark);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s, color 0.2s;
  }

  .header__nav .dropdown-content li:last-child a {
    border-bottom: none;
  }

  .header__nav .dropdown-content li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--gold);
  }

  /* Overlay when menu is open */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
}

/* Desktop dropdown button styles */
@media (min-width: 769px) {
  .header__nav .dropbtn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 auto;
    background: transparent;
    border: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
  }

  .header__nav .dropbtn:hover {
    color: var(--gold);
  }

  .header__nav .dropbtn::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 5px;
  }

  .header__nav .dropdown.active .dropbtn::after {
    transform: rotate(180deg);
  }

  .header__nav .dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .header__nav .dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
  }

  .header__nav .dropdown-content li {
    list-style: none;
  }

  .header__nav .dropdown-content li a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
  }

  .header__nav .dropdown-content li a:hover {
    background-color: #f1f1f1;
    color: var(--gold);
  }
}

/* Nav bar dropdown styling */
/* 1. Parent Container */
.dropdown {
  position: relative;
  display: inline-block;
  list-style: none;
}

/* 2. The Menu (Hidden by default) */
.dropdown-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1;
  padding: 10px 0;
  border-radius: 4px;
  transform: translateX(-50%);
  will-change: opacity, transform;
}

/* Create an invisible bridge above the dropdown */
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -30px;
  height: 30px;
  left: 0;
  right: 0;
  display: block;
}

/* 3. Show the Menu on Hover (Desktop only) */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
  }
}

/* 4. Dropdown Link Styles */
.dropdown-content li {
  list-style: none;
}

.dropdown-content li a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: background 0.2s;
}

/* 5. Hover Effect for Menu Items */
.dropdown-content li a:hover {
  background-color: #f1f1f1;
  color: #007bff;
}

.dropdown > a {
  display: inline-block;
  padding-bottom: 10px; /* This extends the hoverable area downward naturally */
  margin-bottom: -10px; /* This cancels the spacing so it doesn't move other items */
}

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

.hero {
  position: relative;
  height: 90vh;
  background-image: linear-gradient(
      rgba(47, 45, 50, 0.3),
      rgba(47, 45, 50, 0.4)
    ),
    url('../../images/hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 40%,
      rgba(190, 123, 46, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(64, 98, 110, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
} */

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 8%;
  color: #ffffff;
  backdrop-filter: blur(1px);
}

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

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  max-width: 800px;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.8;
  max-width: 650px;
  margin-bottom: 40px;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.2s both;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, #a96926 100%);
  color: #fff;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(190, 123, 46, 0.3);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(190, 123, 46, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(-1px) scale(1.02);
}

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

.section {
  padding: 20px 0;
  position: relative;
}

/* .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  border-radius: 2px;
} */

.section h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section p {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.8;
  color: var(--dark);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  opacity: 0.9;
}

/* ===============================
   WHY US
================================ */

.why-us {
  margin-top: 50px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.why-us li {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
  padding: 20px 24px 20px 40px;
  background: rgba(250, 247, 242, 0.8);
  border-radius: 12px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.why-us li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(190, 123, 46, 0.15);
  background: rgba(250, 247, 242, 0.95);
}

.why-us li::before {
  content: '✓';
  color: var(--gold);
  position: absolute;
  left: 12px;
  top: 20px;
  font-size: 20px;
  font-weight: bold;
}

/* ===============================
   CTA SECTION (BOTTOM)
================================ */

.cta {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
  color: #fff;
  text-align: center;
  padding: 140px 20px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(190, 123, 46, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(64, 98, 110, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.cta h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 24px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.cta p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  max-width: 750px;
  margin: 0 auto 50px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.cta .btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #a96926 100%);
  box-shadow: 0 6px 20px rgba(190, 123, 46, 0.4);
  position: relative;
  z-index: 1;
}

.cta .btn-primary:hover {
  box-shadow: 0 10px 30px rgba(190, 123, 46, 0.5);
}

/* ===============================
   ANIMATIONS
================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-item {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.feature-item p {
  text-align: center;
  margin-bottom: 0;
  font-size: 1rem;
}

/* ===============================
   PROCESS SECTION
================================ */

.process-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 40px;
  font-weight: 500;
}

.steps {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.steps li {
  background: white;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-right: 4px solid var(--gold);
  font-size: 1.1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.services-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 40px;
  font-weight: 500;
}

.services-detailed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-item {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-item p {
  text-align: right;
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ===============================
   PRICING SECTION
================================ */

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.pricing-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.pricing-card.featured {
  border: 2px solid var(--gold);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'الأكثر طلباً';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: white;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.pricing-card h3 {
  color: var(--dark);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 30px;
}

.price span {
  font-size: 1rem;
  color: var(--blue);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: right;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

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

/* ===============================
   WHY CHOOSE US SECTION
================================ */

.why-intro {
  text-align: center;
  font-size: 1.3rem;
  color: var(--blue);
  margin-bottom: 50px;
  font-weight: 500;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.why-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.why-item {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.why-item:hover {
  transform: translateY(-5px);
}

.why-item h3 {
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.why-item p {
  text-align: right;
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

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

@media (max-width: 1024px) {
  .hero-overlay {
    padding: 0 6%;
  }

  .why-us {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .features-grid,
  .services-detailed,
  .pricing-cards,
  .why-items {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 80dvh;
  }

  .hero-overlay {
    align-items: center;
    text-align: center;
    padding: 0 6%;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 18px;
    margin-bottom: 32px;
  }

  .btn-primary {
    padding: 14px 32px;
    font-size: 15px;
  }

  .section {
    padding: 80px 20px;
  }

  .section::before {
    width: 60px;
    height: 3px;
  }

  .section h2 {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .why-us {
    padding: 0;
    margin-top: 30px;
  }

  .why-us li {
    padding: 16px 20px 16px 36px;
    font-size: 16px;
  }

  .cta {
    padding: 100px 20px;
  }

  .cta h2 {
    font-size: 36px;
  }

  .cta p {
    font-size: 18px;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .btn-primary {
    padding: 12px 28px;
    font-size: 14px;
  }

  .section {
    padding: 60px 20px;
  }

  .section h2 {
    font-size: 28px;
  }

  .cta {
    padding: 80px 20px;
  }

  .cta h2 {
    font-size: 28px;
  }

  .cta p {
    font-size: 16px;
  }
}
