:root {
  --primary: #3d2410;
  --bg: #f5f0e8;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  font-family: "DM Sans", sans-serif;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 5%;
}

nav a {
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 60px;
}

.logo span {
  font-family: "Chewy", cursive;
  font-size: 36px;
  color: var(--primary);
  white-space: nowrap;
}

.buttons {
  display: flex;
  gap: 20px;
}

.buttons a {
  font-weight: bold;
  font-size: 18px;
  color: black;
}

.buttons a:hover {
  opacity: 0.8;
}

body.menu-open {
  overflow: hidden;
}

/* HAMBURGER — hidden on desktop */
.hamburger {
  display: none;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  z-index: 10000;
}

/* MOBILE OVERLAY */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.mobile-overlay.open {
  transform: translateY(0);
}

.mobile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
}

.mobile-logo {
  height: 40px;
}

.mobile-close {
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 40px 20px;
  align-items: center;
}

.mobile-links a {
  font-size: 24px;
  text-decoration: none;
  color: black;
  font-weight: bold;
}

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 100px;
}

h1 {
  font-family: "Chewy", cursive;
  font-weight: 100;
  font-size: clamp(40px, 8vw, 90px);
  margin-bottom: 10px;
}

h2 {
  font-size: 20px;
  margin-bottom: 30px;
}

.hero button,
.faq-button {
  padding: 20px 75px;
  font-size: 18px;
  font-family: "DM Sans", sans-serif;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.2s ease;
}

.hero button {
  margin-top: 300px;
  background: white;
  color: var(--primary);
}

.hero button:hover,
.faq-button:hover {
  opacity: 0.8;
}

/* SECTIONS */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  padding: 0 5%;
}

.cookbook div,
.plan div,
.list div {
  width: 500px;
}

.cookbook p,
.plan p,
.list p {
  max-width: 400px;
}

.cookbook h3,
.plan h3,
.list h3 {
  font-family: "Chewy";
  font-size: 35px;
  margin: 25px 0;
}

.cookbook img,
.plan img,
.list img {
  max-height: 600px;
  width: auto;
}

.plan div {
  margin-left: 100px;
}

/* FAQ */
.faq {
  padding: 120px 20px;
  text-align: center;
}

.faq h2 {
  font-family: "Chewy", cursive;
  font-size: 55px;
  margin-bottom: 60px;
}

.faq-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid #d6d0c7;
}

.faq-item:first-child {
  border-top: 1px solid #d6d0c7;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 20px;
  cursor: pointer;
}

.faq-question img {
  height: 18px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  margin: 0 0 20px;
  color: #333;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-item.active .faq-question img {
  transform: rotate(180deg);
}

.faq-button {
  margin-top: 60px;
  background: #e8e3dc;
  color: black;
  border-radius: 30px;
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 5%;
  font-size: 14px;
}

.footer-left {
  display: flex;
  gap: 20px;
}

.footer-left a {
  color: black;
}

.footer-left a:hover {
  opacity: 0.7;
}

.footer-center {
  text-align: center;
  flex: 1;
}

.footer-right {
  display: flex;
  gap: 5px;
}

.footer-right img {
  height: 60px;
  width: 60px;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s ease;
}

.footer-right img:hover {
  opacity: 0.8;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #f2f2f2;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  padding: 0;
}

.close:hover {
  background: #e0e0e0;
  transform: scale(1.05);
}

.close:active {
  transform: scale(0.95);
}

.modal input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
}

.modal-content form button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.hidden { display: none; }
#successMsg { display: none; }
#successMsg.show { display: block; }

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

  /* NAV */
  nav {
    padding: 15px 5%;
    flex-wrap: nowrap;
  }

  .logo img { height: 36px; }
  .logo span { font-size: 22px; }

  .buttons { display: none; }
  .hamburger { display: block; }

  /* HERO */
  .hero {
    margin-top: 60px;
    padding: 0 20px;
  }

  /* SECTIONS */
  .section {
    flex-direction: column !important;
    text-align: center;
    gap: 30px;
  }

  .plan div { margin-left: 0 !important; }

  .cookbook div,
  .plan div,
  .list div { width: 100% !important; }

  .section img {
    max-width: 280px;
    height: auto;
    object-fit: contain;
  }

  /* FOOTER */
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 25px;
    padding: 40px 20px;
  }

  .footer-left {
    flex-direction: column;
    gap: 10px;
  }

  .footer-center { flex: unset; }

  .footer-right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-right img {
    height: 45px;
    width: 45px;
    padding: 8px;
  }
}

/* =========================
   POLICY PAGES
   ========================= */

.policy-header {
  text-align: center;
  padding: 80px 20px 40px;
}

.policy-header h1 {
  font-family: "Chewy";
  font-size: clamp(40px, 6vw, 70px);
  margin-bottom: 10px;
}

.policy-header p {
  font-size: 18px;
  margin-bottom: 5px;
}

.policy-header span {
  font-size: 14px;
  opacity: 0.7;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 100px;
}

.policy-block {
  margin-bottom: 40px;
}

.policy-block h3 {
  font-family: "Chewy";
  font-size: 28px;
  margin-bottom: 15px;
}

.policy-block p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .policy-header { padding: 60px 15px 30px; }
  .policy-container { padding: 20px 15px 80px; }
  .policy-block h3 { font-size: 22px; }
  .policy-block p { font-size: 15px; }

  .footer-left,
  .footer-right { justify-content: center; }
}