/* ========================================
   SALEM BOOKSTORE KE - MAIN STYLESHEET
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Color Palette */
:root {
  --primary-blue: #1e3a8a;
  --secondary-purple: #5b21b6;
  --accent-gold: #d4af37;
  --light-gold: #f4d03f;
  --dark-blue: #0f172a;
  --light-bg: #f9fafb;
  --white: #ffffff;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --border-light: #e5e7eb;
}

/* Typography */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Garamond', serif;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-purple);
}

/* ========== HEADER & NAVIGATION ========== */

header {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'Georgia', serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--secondary-purple);
}

.logo span {
  color: var(--accent-gold);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-blue);
}

/* ========== HERO SECTION ========== */

.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero p {
  color: #e0e7ff;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */

.btn {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--primary-blue);
}

.btn-primary:hover {
  background-color: var(--light-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* ========== CONTAINER & SECTIONS ========== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 2rem;
}

section:nth-child(even) {
  background-color: var(--light-bg);
}

/* ========== FEATURED PRODUCTS ========== */

.featured {
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding: 1.5rem;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.product-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.product-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.view-all {
  text-align: center;
}

/* ========== ABOUT SECTION ========== */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  padding: 1.5rem;
  background-color: var(--light-bg);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0.5rem;
}

.value-item h4 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.about-image {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
  border-radius: 1rem;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--white);
}

/* ========== TESTIMONIALS ========== */

.testimonials {
  background-color: var(--light-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--accent-gold);
}

.stars {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.testimonial-text {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-blue);
}

/* ========== SHOP PAGE ========== */

.shop-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.filters {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  height: fit-content;
}

.filter-group {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.filter-group:last-child {
  border-bottom: none;
}

/* ========== TIMELINE STYLES (Our Journey 2017-2026) ========== */
.timeline-section .timeline {
  display: grid;
  gap: 1.25rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid var(--accent-gold);
}

.timeline-year {
  min-width: 72px;
  font-weight: 700;
  color: var(--primary-blue);
  background: rgba(30,58,138,0.06);
  padding: 0.5rem 0.75rem;
  text-align: center;
  border-radius: 0.5rem;
}

.timeline-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
}

.timeline-content p {
  margin: 0;
  color: var(--text-light);
}

@media (min-width: 768px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline-item { align-items: center; }
}

.filter-group h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.filter-option {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.filter-option input {
  margin-right: 0.5rem;
  cursor: pointer;
}

.filter-option label {
  cursor: pointer;
  color: var(--text-dark);
}

.shop-products {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
}

/* ========== MINISTRY SECTION ========== */

.ministry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.ministry-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--secondary-purple);
}

.ministry-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.ministry-card p {
  color: var(--text-light);
}

/* ========== RESOURCES SECTION ========== */

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resource-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.resource-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.resource-card h3 {
  margin-bottom: 0.75rem;
}

.resource-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ========== LOCATION & MAP ========== */

.location-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.location-info {
  background: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.location-info h3 {
  margin-bottom: 1.5rem;
}

.info-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-item-icon {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-top: 0.25rem;
}

.info-item-content h4 {
  font-size: 1rem;
  color: var(--primary-blue);
  margin-bottom: 0.25rem;
}

.info-item-content p {
  color: var(--text-light);
  margin-bottom: 0;
}

.map-container {
  background: var(--light-bg);
  border-radius: 0.75rem;
  overflow: hidden;
  height: 400px;
}

/* ========== CONTACT FORM ========== */

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-box {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
  color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
}

.info-box h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.info-box a {
  color: var(--accent-gold);
  font-weight: 600;
}

/* ========== NEWS/PROMOTIONS ========== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.news-card {
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-image {
  background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--primary-blue) 100%);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white);
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.875rem;
}

.news-card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.news-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ========== NEWSLETTER ========== */

.newsletter {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
}

.newsletter h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.newsletter p {
  color: #e0e7ff;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
}

/* ========== FOOTER ========== */

footer {
  background-color: #374151; /* grey (slate-700) */
  color: var(--white);
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--accent-gold) !important;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255,255,255,0.92);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-gold);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent-gold);
  color: var(--dark-blue);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: rgba(255,255,255,0.85);
}

/* Ensure all footer writings are white and bold across the site */
footer, footer * {
  color: var(--white) !important;
  font-weight: 700 !important;
}

/* Make all footer headings (titles) yellow/gold across the site */
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
  color: var(--accent-gold) !important;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    width: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--border-light);
  }

  .nav-menu a {
    display: block;
    padding: 1rem;
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 3rem 2rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .about-content,
  .location-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .shop-container {
    grid-template-columns: 1fr;
  }

  .filters {
    order: 2;
  }

  .shop-products {
    order: 1;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    gap: 1rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  .map-container {
    height: 300px;
  }

  section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 1rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section-title {
    min-height: auto;
  }

  .products-grid,
  .testimonials-grid,
  .ministry-grid,
  .resources-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
