/* ========================================
   AL ROWAD ERP - Landing Page Styles
   ======================================== */

/* === Base === */
body {
  font-family: "IBM Plex Sans Arabic", "Poppins", sans-serif;
  overflow-x: hidden;
  background-color: #fbf9fa;
}

/* === Variables === */
:root {
  --gold: #c7a15a;
  --gold-dark: #a67c37;
  --gold-light: #d4b76e;
  --navy: #0d1b2a;
  --navy-light: #1b2838;
  --surface: #fbf9fa;
  --surface-dim: #dbd9db;
  --surface-container: #f0edee;
  --on-surface: #1b1b1d;
  --on-surface-variant: #44474c;
  --outline-variant: #c4c6cc;
}

/* === Navbar === */
.navbar-landing {
  background: rgba(251, 249, 250, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196, 198, 204, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 80px;
}

.navbar-landing.scrolled {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 64px;
}

.navbar-landing .nav-link {
  color: var(--on-surface-variant);
  transition: color 0.3s ease;
  position: relative;
}

.navbar-landing .nav-link:hover {
  color: var(--gold);
}

.navbar-landing .nav-link.active {
  color: var(--gold-dark);
  font-weight: 700;
}

.navbar-landing .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
}

/* === Buttons === */
.btn-gold {
  background: var(--gold);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}

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

.btn-gold-outline {
  border: 2px solid var(--on-surface);
  color: var(--on-surface);
  background: transparent;
  transition: all 0.3s ease;
}

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

/* === Hero Section === */
.hero-section {
  position: relative;
  padding-top: 95px;
  padding-bottom: 80px;
}

.hero-gradient {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(199, 161, 90, 0.05) 0%,
    transparent 70%
  );
}

.gold-gradient-text {
  background: linear-gradient(135deg, #c7a15a 0%, #a67c37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(199, 161, 90, 0.1);
  border-radius: 9999px;
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 500;
}

/* === Glass Cards === */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 233, 240, 0.5);
  box-shadow: 0 30px 60px -12px rgba(13, 27, 42, 0.04);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  border-radius: 1rem;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px -15px rgba(13, 27, 42, 0.08);
}

/* === Section Styles === */
.section-gap {
  padding: 80px 0;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--gold);
  border-radius: 9999px;
  margin: 0 auto;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(254, 212, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon i {
  font-size: 32px;
  color: var(--gold);
}

/* === Dark Section (Sack Tracking) === */
.dark-section {
  background: var(--navy);
  color: #fff;
  padding: 96px 0;
}

.dark-section .section-title-gold {
  color: var(--gold);
}

.step-item {
  position: relative;
  padding-right: 40px;
  margin-bottom: 32px;
}

.step-item::before {
  content: "";
  position: absolute;
  right: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(199, 161, 90, 0.3);
}

.step-item:last-child::before {
  display: none;
}

.step-dot {
  position: absolute;
  right: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 0 0 15px rgba(199, 161, 90, 0.3);
}

.step-dot.inactive {
  background: var(--outline-variant);
  border-color: var(--outline-variant);
  box-shadow: none;
}

/* === Dashboard Preview === */
.dashboard-section {
  background: var(--surface-container);
  padding: 80px 0;
}

.dashboard-card {
  background: #fff;
  border-radius: 1rem;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 8px;
}

.progress-bar-gold {
  background: var(--gold);
  height: 8px;
  border-radius: 9999px;
}

/* === Permissions Section === */
.permission-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 233, 240, 0.5);
  border-radius: 1rem;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.permission-card:hover {
  background: var(--navy);
  color: #fff;
}

.permission-card:hover .permission-icon {
  color: var(--gold);
}

.permission-card:hover p {
  opacity: 0.9;
}

.permission-icon {
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 16px;
}

/* === CTA Section === */
.cta-section {
  background: var(--navy);
  border-radius: 1.5rem;
  padding: 96px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 256px;
  height: 256px;
  background: rgba(199, 161, 90, 0.05);
  filter: blur(100px);
}

.cta-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 256px;
  height: 256px;
  background: rgba(0, 0, 0, 0.2);
  filter: blur(100px);
}

/* === Footer === */
.footer {
  background: var(--surface-dim);
  padding: 40px 0;
}

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

.footer-brand {
  color: var(--navy);
  font-weight: 700;
}

.footer-brand:hover {
  color: var(--gold-dark);
}

.footer-link {
  color: rgba(68, 71, 76, 0.8);
  transition: all 0.3s ease;
  font-size: 14px;
  display: inline-block;
  position: relative;
}

.footer-link:hover {
  color: var(--gold);
  padding-right: 5px;
}

.footer-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(13, 27, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--on-surface-variant);
  text-decoration: none;
}

.footer-social:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(196, 198, 204, 0.3);
  padding-top: 30px;
  margin-top: 50px;
}

.footer h6 {
  font-size: 16px;
  letter-spacing: 0.5px;
}

/* === Mobile Nav === */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: 310px;
  max-width: 86vw;
  background: #fff;
  z-index: 1050;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(13, 27, 42, 0.18);
  visibility: hidden;
}

.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  backdrop-filter: blur(2px);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

body.nav-open {
  overflow: hidden;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--outline-variant);
}

.mobile-nav-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(13, 27, 42, 0.05);
  color: var(--on-surface);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.mobile-nav-close:hover {
  background: var(--navy);
  color: #fff;
}

.mobile-nav-list {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 14px 22px;
  color: var(--on-surface);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-right: 3px solid transparent;
  transition: all 0.25s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--gold-dark);
  background: rgba(199, 161, 90, 0.08);
  border-right-color: var(--gold);
}

.mobile-nav-actions {
  padding: 18px 20px;
  border-top: 1px solid var(--outline-variant);
}

@media (min-width: 992px) {
  .mobile-nav,
  .mobile-nav-overlay {
    display: none;
  }
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface-container);
}

::-webkit-scrollbar-thumb {
  background: var(--outline-variant);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* === Cursor === */
a,
button,
.btn,
.nav-link,
.footer-link,
.footer-social {
  cursor: pointer;
}

/* === Utility Classes === */
.text-gold {
  color: var(--gold);
}
.bg-gold {
  background-color: var(--gold);
}
.bg-navy {
  background-color: var(--navy);
}
.text-navy {
  color: var(--navy);
}

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}
.list-unstyled {
  padding-right: 0;
}
/* === Responsive === */
@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 120px;
    text-align: center;
  }

  .hero-section .btn-group-custom {
    justify-content: center;
  }

  .hero-features {
    justify-content: center;
  }

  .navbar-landing {
    height: 64px;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .section-gap {
    padding: 40px 0;
  }

  .dark-section {
    padding: 40px 0;
  }

  .cta-section {
    padding: 48px 24px;
    border-radius: 1rem;
  }
}
