/* ============================
   GLOBAL
   ============================ */

body {
  margin: 0;
  background: #f4f0e8;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

/* ============================
   NAVIGATION BAR
   ============================ */

.navbar {
  background: #e8dfd0;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.navbar img:not(.lang-flag) {
  height: 60px;
  max-width: 100%;
}


.navbar a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 20px;
}

.language-select {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-label {
  color: white;
  font-weight: bold;
  font-size: 20px;
}

/* FIXED FLAG SIZE — 24×16 EXACTLY */
.lang-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-flag:hover {
  transform: scale(1.25);
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

/* ============================
   HERO SECTION
   ============================ */

.hero {
  display: flex;
  padding: 40px 60px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-text {
  flex: 1 1 400px;
  text-align: center;
}

.title-lines {
  display: inline-block;
  padding: 20px 0;
  border-top: 4px solid black;
  border-bottom: 4px solid black;
  margin: 20px auto;
}

.hero-text h2 {
  font-size: 36px;
  color: #F27C55;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 70px;
  margin: 0;
  font-family: 'Broadway', sans-serif;
}

.hero-text p {
  font-size: 26px;
  color: #F27C55;
  margin-bottom: 30px;
}

.order-button img {
  height: 150px;
  max-width: 100%;
}

.hero img.book {
  height: 520px;
  max-width: 100%;
}

/* ============================
   UNIVERSAL FLEX SECTION
   ============================ */

.info-bar {
  padding: 60px 40px;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  width: 100%;
  box-sizing: border-box;
}

/* SECTION BACKGROUNDS */
.book-section {
  background: #e8dfd0;
}

.author-section {
  background: #f4f0e8;
}

/* ============================
   CONTENT BLOCKS
   ============================ */

.info-block {
  flex: 1 1 400px;
  text-align: center;
  color: #F27C55;
  font-size: 20px;
  line-height: 1.6;
  box-sizing: border-box;
}

.info-block img {
  width: 100%;
  max-width: 350px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.info-block h3 {
  font-family: 'Broadway', sans-serif;
  font-size: 36px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 3px solid black;
}

.info-block .subtitle {
  font-weight: bold;
  margin-bottom: 20px;
}

/* ============================
   READ MORE BUTTON
   ============================ */

.read-more-btn {
  background: black;
  color: white;
  padding: 14px 28px;
  font-size: 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 20px;
}

.read-more-btn:hover {
  background: #333;
}

/* ============================
   CONTACT FORM
   ============================ */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border: 3px solid #e8dfd0;
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
  background: #f4f0e8;
  box-sizing: border-box;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
  padding: 12px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.submit-btn {
  background: black;
  color: white;
  padding: 16px 32px;
  font-size: 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
}

.submit-btn:hover {
  background: #333;
}

/* ============================
   POPUP OVERLAY
   ============================ */

#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-box {
  background: #f4f0e8;
  padding: 30px;
  border-radius: 10px;
  width: 350px;
  max-width: 90%;
  text-align: center;
  position: relative;
  border: 3px solid #e8dfd0;
  box-sizing: border-box;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.popup-title {
  color: #F27C55;
  margin-bottom: 20px;
}

.popup-input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.popup-submit {
  background: black;
  color: white;
  padding: 14px 28px;
  font-size: 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
}

.popup-submit:hover {
  background: #333;
}

/* ============================
   RESPONSIVE FIXES
   ============================ */

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .hero-text h1 {
    font-size: 48px;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 20px;
  }

  .hero img.book {
    height: auto;
    width: 80%;
    max-width: 400px;
  }
}

@media (max-width: 850px) {
  .info-bar {
    flex-direction: column;
    padding: 20px;
  }

  .navbar {
    padding: 10px 20px;
    flex-direction: column;
    gap: 10px;
  }

  .nav-left {
    flex-direction: column;
    gap: 10px;
  }

  .navbar a {
    font-size: 18px;
  }

  .info-block img {
    max-width: 280px;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 38px;
  }

  .hero-text h2 {
    font-size: 24px;
  }

  .hero-text p {
    font-size: 18px;
  }

  .order-button img {
    height: auto;
    width: 70%;
    max-width: 250px;
  }

  .submit-btn {
    width: 100%;
    font-size: 18px;
  }

  .popup-box {
    width: 90%;
    padding: 20px;
  }

  button,
  .submit-btn,
  .popup-submit {
    touch-action: manipulation;
    padding: 14px 20px;
    font-size: 16px;
  }
}
