/* =====================================================
   BOOK-RESPONSIVE.CSS
   Responsive CSS for:
   1. Header / Navbar
   2. Book Page First Section / Hero
   3. Footer

   Link this CSS LAST in <head>
   ===================================================== */

/* =====================================================
   GLOBAL RESPONSIVE FIXES
===================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
}

/* =====================================================
   NAVBAR — TABLET & MOBILE (≤900px)
===================================================== */

@media (max-width: 900px) {
  .navbar {
    width: 100%;
    min-height: auto;
    padding: 15px 0;
  }

  .navbar .container {
    width: 100%;
    max-width: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 15px;
    padding: 12px 20px;
  }

  .logo {
    display: block;
    text-align: center;
  }

  .logo-text {
    font-size: 1.8rem;
    white-space: nowrap;
  }

  .nav-links {
    position: static;

    width: 100%;
    height: auto;

    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 10px 25px;

    margin: 0;
    padding: 0;

    background: transparent;
    box-shadow: none;

    transform: none;
    transition: none;
  }

  .nav-links.open {
    transform: none;
  }

  .nav-links li {
    display: block;
    margin: 0;
    padding: 0;
  }

  .nav-links a {
    display: block;

    font-size: 1rem;
    padding: 7px 4px;

    white-space: nowrap;
  }

  .nav-toggle {
    display: none;
  }
}

/* =====================================================
   NAVBAR — SMALL PHONES (≤600px)
===================================================== */

@media (max-width: 600px) {
  .navbar .container {
    padding: 12px 15px;
    gap: 12px;
  }

  .logo-text {
    font-size: 1.55rem;
    letter-spacing: 1.5px;
  }

  .nav-links {
    width: 100%;
    gap: 6px 17px;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 6px 2px;
  }
}

/* =====================================================
   NAVBAR — VERY SMALL PHONES (≤400px)
===================================================== */

@media (max-width: 400px) {
  .navbar .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .logo-text {
    font-size: 1.35rem;
  }

  .nav-links {
    gap: 5px 13px;
  }

  .nav-links a {
    font-size: 0.82rem;
  }
}

/* =====================================================
   BOOK HERO — TABLET & MOBILE (≤768px)
   First section only
===================================================== */

@media (max-width: 768px) {
  .about-hero {
    width: 100%;

    height: auto !important;
    min-height: 420px;

    padding: 50px 20px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about-hero .container {
    width: 100%;
    max-width: 100%;

    padding: 0 20px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
  }

  /* Background image fills the entire hero */
  .about-hero .hero-bg {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
  }

  /* Book Collection title */
  .about-hero .drop-text {
    width: 100%;
    max-width: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    margin-left: auto;
    margin-right: auto;

    font-size: 2.5rem;
    line-height: 1.2;

    text-align: center;
  }

  /* Show the full description */
  .about-hero .hero-description {
    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin-top: 20px;

    overflow: visible !important;

    white-space: normal !important;
    word-wrap: break-word;

    text-align: center;

    display: block !important;

    font-size: 1.15rem;
    line-height: 1.6;
  }

  /* Disable typing restriction on mobile */
  .about-hero .typing-about {
    width: auto !important;

    animation: none !important;

    border-right: none !important;
  }

  .about-hero .hero-description span {
    white-space: normal !important;
  }
}

/* =====================================================
   BOOK HERO — SMALL PHONES (≤480px)
===================================================== */

@media (max-width: 480px) {
  .about-hero {
    min-height: 400px;
    padding: 40px 15px;
  }

  .about-hero .container {
    padding: 0 15px;
  }

  .about-hero .drop-text {
    font-size: 2rem;
    line-height: 1.2;
  }

  .about-hero .hero-description {
    width: 100% !important;

    font-size: 1rem;
    line-height: 1.6;
  }
}

/* =====================================================
   BOOK HERO — VERY SMALL PHONES (≤400px)
===================================================== */

@media (max-width: 400px) {
  .about-hero {
    min-height: 380px;
    padding: 35px 12px;
  }

  .about-hero .container {
    padding: 0 10px;
  }

  .about-hero .drop-text {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .about-hero .hero-description {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

/* =====================================================
   FOOTER — MOBILE (≤768px)
===================================================== */

@media (max-width: 768px) {
  .site-footer {
    width: 100%;
    padding: 60px 0 20px;
  }

  .footer-container {
    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    gap: 45px;

    padding: 0 25px;
  }

  .footer-brand,
  .footer-navigation,
  .footer-contact {
    width: 100%;
    max-width: 500px;

    text-align: center;

    margin-left: 0;
    left: 0;
  }

  .footer-brand p {
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;
  }

  .footer-navigation {
    margin-left: 0;
  }

  .footer-navigation h3 {
    margin-left: 0;
  }

  .footer-contact {
    left: 0;
  }

  .footer-contact p {
    justify-content: center;
  }

  .footer-bottom {
    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 20px 25px 0;
  }
}

/* =====================================================
   FOOTER — SMALL PHONES (≤480px)
===================================================== */

@media (max-width: 480px) {
  .site-footer {
    padding: 45px 0 20px;
  }

  .footer-brand h2,
  .footer-navigation h3,
  .footer-contact h3 {
    font-size: 1.4rem;
  }

  .footer-navigation a,
  .footer-contact p {
    font-size: 1.05rem;
  }

  .footer-bottom p,
  .footer-bottom span {
    font-size: 1rem;
    text-align: center;
  }
}
