/* -- VARIABLES -- */
:root {
  --color-bg: #0d0d0d;
  --color-surface: #1a1a1a;
  --color-text: #f4f4f4;
  --color-accent: #f26d21; /* Tiger Orange */
  --color-accent-hover: #ff8533;
  --color-black: #000000;
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* -- RESET & BASE -- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* Smooth scrolling for section links */
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

/* -- HEADER & NAVIGATION (Mobile First) -- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--color-black);
  border-bottom: 2px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-title {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--color-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Hamburger Button */
.nav-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: block; /* Visible on mobile */
}

.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.hamburger {
  position: relative;
}

.hamburger::before, .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Nav Menu */
.nav {
  display: none; /* Hidden by default on mobile */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-black);
  border-bottom: 1px solid #333;
}

.nav.active {
  display: block;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-list li {
  border-top: 1px solid #333;
  text-align: center;
}

.nav-link {
  display: block;
  padding: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-link:hover {
  color: var(--color-accent);
}

/* -- LAYOUT & SECTIONS -- */
.section {
  padding: 3rem 1.5rem;
  min-height: 50vh; /* Ensures sections take up decent space */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-content {
  width: 100%;
  max-width: 800px;
}

.section-title {
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* -- HERO SECTION (Compact Banner) -- */
.hero-section {
  min-height: auto; /* Removed the 100vh constraint so books pull up */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem 2.5rem; 
}

/* -- HERO LOGO CONTAINER -- */
.hero-logo-container {
  background-color: #696666;
  border-radius: 24px;
  padding: 1.5rem; /* Shrunk padding */
  margin-bottom: 1rem; /* Tighter gap to the tagline */
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  width: 100%;
  max-width: 220px; /* Forced smaller on mobile */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.hero-section .hero-logo {
  max-width: 100%;
  height: auto;
  display: block;
}

.tagline {
  font-size: 1.2rem; /* Slightly smaller motto */
  font-style: italic;
  color: var(--color-accent);
  letter-spacing: 2px;
  margin: 0;
}

/* -- CONTACT SECTION -- */
.contact-section {
  background-color: var(--color-surface);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: bold;
  color: #ccc;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  background-color: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.btn-submit {
  padding: 1rem;
  background-color: var(--color-accent);
  color: var(--color-black);
  border: none;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit:hover {
  background-color: var(--color-accent-hover);
}

/* -- FOOTER -- */
.footer {
  background-color: var(--color-black);
  border-top: 1px solid #333;
  padding: 3rem 1.5rem;
}

.footer-columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-col {
  color: #aaa;
  line-height: 1.8;
}

.footer-col strong {
  color: var(--color-text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* =========================================
   NEW SECTION STYLES (Books, Mission, About)
   ========================================= */

/* Alternating background colors for sections */
.showcase-section, .about-section {
  background-color: var(--color-surface);
}

.mission-section {
  background-color: var(--color-bg);
}

/* Ensure contact matches the alternating pattern */
.contact-section {
  background-color: var(--color-bg);
}

/* -- BOOK SHOWCASE STYLES (Swiper Carousel) -- */
.book-carousel {
  width: 100%;
  padding-bottom: 3rem; /* Space at the bottom for the pagination dots */
  margin-top: 1rem;
}

.swiper-slide.book-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-sizing: border-box;
}

/* Constrain the max-width of items so they don't look giant on mobile */
.book-item > a {
  width: 100%;
  max-width: 260px;
  display: block;
}

.book-item .btn-amazon {
  width: 100%;
  max-width: 260px;
}

/* Theme the Swiper UI to match your Tiger Orange */
.swiper-button-next, 
.swiper-button-prev {
  color: var(--color-accent) !important;
}

/* Non-active pagination bullets (Light Grey) */
.swiper-pagination-bullet {
  background-color: #cccccc !important; 
  opacity: 0.4 !important; /* Brings them out of the shadows */
}

/* Active pagination bullet (Tiger Orange) */
.swiper-pagination-bullet-active {
  background-color: var(--color-accent) !important;
  opacity: 1 !important; /* Full brightness for the active dot */
}

.book-thumb {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  border: 2px solid #333;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: block; /* Removes bottom spacing on images inside links */
}

/* Interactivity for the FancyBox thumbnail hover */
.book-thumb:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

/* Buy on Amazon Button */
.btn-amazon {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--color-accent);
  color: var(--color-black);
  font-weight: bold;
  text-align: center;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
}

.btn-amazon:hover {
  background-color: var(--color-accent-hover);
}

/* -- MISSION STYLES -- */
.mission-text {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-text);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* -- ABOUT STYLES -- */
.about-text {
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* -- DESKTOP QUERIES -- */
@media (min-width: 768px) {
  /* Navigation */
  .nav-toggle {
    display: none; /* Hide hamburger icon */
  }

  .nav {
    display: block; /* Show menu */
    position: static;
    width: auto;
    border: none;
    background: transparent;
  }

  .nav-list {
    flex-direction: row;
    gap: 2rem;
  }

  .nav-list li {
    border: none;
  }

  .nav-link {
    padding: 0;
  }

  /* Hero */
  .hero-logo {
    max-width: 100%;
  }

  .hero-logo-container {
    max-width: 300px; /* Kept compact on desktop so books stay visible */
  }

  .tagline {
    font-size: 1.6rem; /* Smaller desktop motto */
  }

  /* Footer */
  .footer-columns {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .footer-links {
    align-items: flex-end;
  }
}