/* =====================================================
   BASE STYLES (GLOBAL)
===================================================== */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1f2933;
  background: #ffffff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 750px;
}

/* =====================================================
   HEADER & BRANDING
===================================================== */

.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  position: relative;
  z-index: 1001;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-img {
  height: 55px;
  width: auto;
  display: block;
}

/* =====================================================
   HAMBURGER BUTTON (MOBILE)
===================================================== */

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1f2933;
  margin: 5px 0;
}

/* Hamburger active (X state) */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   OFF-CANVAS MOBILE NAVIGATION
===================================================== */

.main-nav {
  position: fixed;
  top: 0;
  right: -70vw;
  width: 70vw;
  max-width: 360px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.08);
  padding-top: 90px;
  transition: right 0.25s ease;
  z-index: 1000;
}

.main-nav.active {
  right: 0;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.main-nav a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2933;
  text-decoration: none;
  border-bottom: 1px solid #e5e7eb;
}

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 900;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero {
  padding: 50px 0;
  background: #f5f9ff;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 1.1rem;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-actions .btn {
  width: 80%;
  text-align: center;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn {
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}

.btn.primary {
  background: #0b5ed7;
  color: #ffffff;
}

.btn.secondary {
  border: 1px solid #0b5ed7;
  color: #0b5ed7;
}

/* =====================================================
   TRUST / COMPLIANCE SECTION
===================================================== */

.trust {
  padding: 80px 0;
  background: #ffffff;
}

.trust-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 85%;
}

.trust-text p {
  line-height: 1.6;
}

.trust-image {
  display: flex;
  justify-content: center;
}

.trust-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

/* =====================================================
   CARDS & GRIDS
===================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.card-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  background: #0b5ed7;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* =====================================================
   FOOTER
===================================================== */

.site-footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 40px 0;
}

/* =====================================================
   DESKTOP OVERRIDES (EASY TO FIND)
   EVERYTHING BELOW ONLY APPLIES TO DESKTOP
===================================================== */

@media (min-width: 900px) {

  /* NAV */
  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    width: auto;
    height: auto;
    box-shadow: none;
    padding-top: 0;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 20px;
    padding: 0;
    align-items: center;
  }

  .main-nav a {
    border-bottom: none;
    padding: 0;
  }

  /* HERO */
  .hero-actions {
    flex-direction: row;
  }

  .hero-actions .btn {
    width: auto;
  }

  /* TRUST SECTION */
  .trust-inner {
    flex-direction: row;
    align-items: center;
  }

  .trust-text {
    flex: 1.1;
  }

  .trust-image {
    flex: 0.9;
  }

}
