/* ===============================
   GLOBAL
================================= */

    body {
      margin: 0;
      font-family: Inter, sans-serif;
      background: #0f1220;
      color: #f4f4f8;
    }
    a { color: inherit; text-decoration: none; }
/* ===============================
   HEADER
================================= */

    header {
      background: #0b0e1a;
      border-bottom: 1px solid #d4af37;
    }
    .nav {
      max-width: 1200px;
      margin: 0 auto;
      padding: 16px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
    }
    .logo {
      font-family: Cinzel, serif;
      font-size: 22px;
      color: #d4af37;
    }

    .logo img {
      height: 40px;
      width: auto;
      margin-right: 8px;
      vertical-align: middle;
    }
 
    nav {
      display: flex;
      gap: 20px;
    }

nav a {
  padding: 6px 4px;
}

nav a {
  font-weight: 600;
  padding-bottom: 4px;
  position: relative;
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* =============================== 
Create invisible underline to prevent jump 
================================*/

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #d4af37;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

/* ===============================
Only hovered link moves 
================================*/

nav a:hover {
  transform: translateY(-6px);
}

/* Animate underline */
nav a:hover::after {
  transform: scaleX(1);
}

    nav a:hover {
      border-bottom: 2px solid #d4af37;
    }

/* ===============================
   HERO
================================= */

    .hero {
      background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.85)),
      url('https://www.kjvbiblestories.com/images/hero.jpg') center/cover;
      padding: 100px 20px;
      text-align: center;
    }
    .hero h1 {
      font-family: Cinzel, serif;
      font-size: 48px;
      margin-bottom: 16px;
    }
    .hero p {
      max-width: 700px;
      margin: 0 auto;
      font-size: 18px;
      color: #e0e0f0;
    }

    section {
      max-width: 1200px;
      margin: 0 auto;
      padding: 15px 5px;
    }
    .section-title {
      font-family: Cinzel, serif;
      font-size: 28px;
      margin-bottom: 12px;
      color: #d4af37;
    }

/* ===============================
   PRODUCTS GRID
================================= */

    .grid {
      display: grid;
      gap: 20px;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    .card {
      background: #171a2e;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(0,0,0,.4);
    }
    .card img {
      height: 160px;
      width: 100%;
      object-fit: cover;
    }
    .card div {
      padding: 16px;
    }

/* ===============================
   FOOTER
=============================== */

footer {
  background: #070b12;
  border-top: 1px solid #d4af37;
  padding: 30px 20px;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

/* NAV MENU BASE */
.nav-menu {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 20px;
}

/* =============================
   HAMBURGER BUTTON 
==============================*/

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #d4af37;
  cursor: pointer;
}

/* ===============================
   MOBILE STYLES 
================================*/

@media (max-width: 768px) {

  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 48px;
    right: 0;
    background: #0b0e1a;
    flex-direction: column;
    width: 200px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #d4af37;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    text-align: center;
  }

}

/* ================================
   MOBILE 
=================================*/

@media (max-width: 768px) {

  /* Stack header */
  .nav {
    flex-direction: column;
    gap: 14px;
  }

  /* Center logo */
  .logo {
    text-align: center;
  }

  /* Stack navigation links */
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  nav a {
    font-size: 16px;
  }

  /* Hero text scaling */
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 16px;
  }

  /* Cards spacing */
  section {
    padding: 30px 16px;
  }

}

}

