/* =========================================================
   GLOBAL STYLES
   Applied across ALL pages (index, terms, faq, etc.)
   ========================================================= */

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}


/* =========================================================
   NAVIGATION BAR (All pages)
   ========================================================= */

.navbar {
  background-color: #1a1a2e;
  height: 70px;
}

/* Taller navbar for non-index pages (pages with .page-title) */
body:not(.home-page) .navbar {
  height: 90px;
}

/* Grey background for dropdown menus */
.navbar .dropdown-menu {
  background-color: #fffbfb;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Grey background for mobile navbar collapse side menu */
.navbar-collapse {
  background-color: #18181862;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
}

.navbar-collapse .nav-link {
  color: #ffffff;
}

.navbar-collapse .nav-link:hover {
  color: #000000;
}

/* Prevent page scroll when modal is open */
.modal-open {
  overflow: auto !important;
  padding-right: 0 !important;
}

.modal-backdrop.show {
  opacity: 0.5;
}

.navbar .dropdown-item {
  color: rgb(255, 255, 255);
  padding: 10px 20px;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: #e9ecef;
  color: #1a1a2e;
}

.navbar .dropdown-divider {
  border-color: #dee2e6;
}

/* Logo inside navbar */
.top-logo {
  max-width: 6.25rem;
  height: auto;
  margin-left: -1.125rem;
  cursor: pointer;
}

/* Page title in navbar for other pages */
.navbar .page-title {
  color: #ffffff;
  text-align: center;
  flex: 1;
}

.navbar .page-title h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.navbar .page-title p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
  .navbar .page-title h1 {
    font-size: 1.2rem;
  }
  .navbar .page-title p {
    font-size: 0.75rem;
  }
  .navbar .spacer {
    display: none;
  }
}

/* =========================================================
   HERO SECTION (index.html only)
   ========================================================= */

.hero {
  background-color: #1a1a2e;
  min-height: 100vh;
  padding-top: 7.5rem; /* space for fixed navbar */
}

/* Main logo in hero */
.logo {
  display: block;
  margin: 0 auto 0.5rem;
  max-width: 9.375rem;
  height: auto;
}

/* Hero tagline text */
.tagline {
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
}


/* =========================================================
   SECTION SPACING (Used across index.html sections)
   ========================================================= */

.section-padding {
  padding-top: 6.25rem;   /* avoids overlap with navbar */
  padding-bottom: 3.75rem;
}


/* =========================================================
   "HOW IT WORKS" STEP CARDS (index.html)
   ========================================================= */

.step-card {
  background: #ffffff;
  padding: 1.875rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}


/* =========================================================
   SAFETY SECTION LIST (index.html)
   ========================================================= */

.safety-list {
  max-width: 600px;
  list-style: none;
  padding: 0;
}

.safety-list li {
  margin-bottom: 12px;
  padding-left: 1.25rem;
  position: relative;
}

.safety-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1a1a2e;
}


/* =========================================================
   FOOTER (All pages)
   ========================================================= */

.footer {
  background-color: #1a1a2e;
  padding: 2.5rem 0;
  margin-top: auto; /* pushes footer to bottom */
}

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

.footer a:hover {
  text-decoration: underline;
}

/* Mobile footer links vertical */
@media (max-width: 576px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .footer-links li {
    margin: 0;
  }
}


/* =========================================================
   TERMS / POLICY PAGES (terms.html, privacy.html)
   ========================================================= */

/* Header container with white text */
.container-header {
  color: white;
  margin: 0 auto;
}

.container-header p {
  color: white;
}

/* Main content width for long text pages */
.container-terms {
    padding-top: 5rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Mobile padding for terms pages */
@media (max-width: 576px) {
  .container-terms {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


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

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-down {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.6s ease-out;
}

.fade-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease-out;
}

.fade-right {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.6s ease-out;
}

.fade-up.visible,
.fade-down.visible,
.fade-left.visible,
.fade-right.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Mobile responsiveness for screens < 768px */
@media (max-width: 767.98px) {
  .hero {
    padding-top: 5rem; /* reduced to avoid overlap with fixed navbar */
  }
  .section-padding {
    padding-top: 3.125rem; /* reduced padding */
  }
  .step-card {
    padding: 1.25rem; /* reduced padding */
  }
  .navbar .page-title h1 {
    font-size: 1rem; /* further reduced font size */
  }
  .navbar .page-title p {
    font-size: 0.625rem; /* further reduced font size */
  }
}
