/* =============================================
   SOURDOUGH DISCARD – STYLE.CSS
   Mobile-first, clean & organized
============================================= */

/* ---- CSS Variables ---- */
:root {
  --color-brown: #0a7cde;
  --color-brown-dark: #0869be;
  --color-red: #e42628;
  --color-green: #4caf50;
  --color-green-dark: #388e3c;
  --color-white: #ffffff;
  --color-text: #111111;
  --color-text-light: #ffffff;
  --color-gray: #636363;
  --color-star: #f8b400;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Cardo', Georgia, serif;

  --max-content: 680px;
  --max-wide: 1280px;

  --radius-btn: 20px;
  --shadow-natural: 6px 6px 9px rgba(0, 0, 0, 0.2);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400; /* Ensure baseline legibility */
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ========================================
   COUNTDOWN BANNER
======================================== */
.countdown-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: var(--color-red);
  color: var(--color-white);
  text-align: center;
  padding: 10px 16px;
  border-bottom: 2px solid rgba(0,0,0,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.banner-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.banner-emoji {
  font-size: 1.1rem;
}

.countdown-wrap {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 6px;
}

.time-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-card {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Arial', sans-serif;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #000;
  min-width: 40px;
  text-align: center;
  line-height: 1;
}

.time-label {
  display: block;
  font-size: 0.7rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  margin-top: 3px;
  text-align: center;
}

.time-sep {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  padding-top: 4px;
  line-height: 1;
  align-self: flex-start;
  padding-top: 6px;
}

/* ========================================
   MAIN PAGE
======================================== */
.page-main {
  background-color: var(--color-brown);
  color: var(--color-white);
}

/* ========================================
   LAYOUT UTILITIES
======================================== */
.content-wrap {
  max-width: var(--max-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

.text-center {
  text-align: center;
}

.text-narrow {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   TYPOGRAPHY SCALE
======================================== */
.text-xl {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
}

.text-lg {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  line-height: 1.35;
  font-weight: 600;
}

.text-md {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 14px;
  font-weight: 500;
}

.text-italic {
  font-style: italic;
}

/* ========================================
   SECTION HERO
======================================== */
.section-hero {
  padding-top: 56px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ========================================
   FULL WIDTH IMAGES
======================================== */
.full-width-img {
  width: 100%;
  overflow: hidden;
}

.full-width-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.full-width-img.no-padding {
  padding: 0;
}

/* ========================================
   CTA SECTION
======================================== */
.section-cta {
  padding: 40px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.product-title {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 800; /* Increased from 700 to 800 as requested */
  color: var(--color-white);
  line-height: 1.2;
}

.white-text {
  color: var(--color-white) !important;
}

.stars {
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.price-line {
  font-size: 1.05rem;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.price-current {
  font-size: 1.2rem;
}

.price-old {
  color: var(--color-red);
  font-size: 1rem;
  background: var(--color-white);
  padding: 1px 4px;
  border-radius: 3px;
}

.price-old-red {
  color: var(--color-red);
  font-size: 1rem;
}

/* ========================================
   BUY BUTTON
======================================== */
.btn-buy {
  display: inline-block;
  background-color: var(--color-green);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-natural);
  width: 75%;
  max-width: 360px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  will-change: transform;
  text-decoration: none;
}

.btn-buy:hover,
.btn-buy:focus {
  background-color: var(--color-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  outline: none;
}

.btn-buy:active {
  transform: translateY(0);
}

/* Pulse animation for CTA buttons */
@keyframes pulse-btn {
  0%, 100% { box-shadow: var(--shadow-natural); }
  50% { box-shadow: 0 0 0 6px rgba(76, 175, 80, 0.35); }
}

.btn-buy {
  animation: pulse-btn 2.5s ease infinite;
}

.btn-buy:hover {
  animation: none;
}

/* ========================================
   DIVIDER
======================================== */
.divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.3);
  margin: 28px 0;
}

.white-divider {
  border-top-color: rgba(255,255,255,0.4);
}

/* ========================================
   BUNDLE SECTION (brown bg, full width)
======================================== */
.section-bundle {
  background-color: var(--color-brown);
  padding-bottom: 0;
}

.section-bundle .content-wrap {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-bundle .text-xl,
.section-bundle .text-lg,
.section-bundle .text-md {
  color: var(--color-white);
}

.section-bundle h2,
.section-bundle h3,
.section-bundle p {
  color: var(--color-white);
}

/* Benefits list */
.benefits-list {
  text-align: left;
  max-width: 560px;
  margin: 16px auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.benefits-list li {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-white);
  padding-left: 4px;
}

/* Checklist */
.checklist {
  text-align: left;
  max-width: 480px;
  margin: 16px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-white);
}

/* ========================================
   SPACERS
======================================== */
.spacer-20 { height: 20px; }
.spacer-30 { height: 30px; }
.spacer-40 { height: 40px; }

/* ========================================
   REVIEWS SECTION
======================================== */
.section-reviews {
  background-color: var(--color-white);
  padding-top: 52px;
  padding-bottom: 52px;
}

.section-reviews h2 {
  color: var(--color-text);
  margin-bottom: 36px;
}

.reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 8px 20px rgba(0,0,0,0.12);
}

.review-stars {
  font-size: 1.1rem;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.review-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.review-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 12px;
}

.review-author {
  font-size: 0.88rem;
  color: var(--color-gray);
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background-color: var(--color-white);
  border-top: 1px solid #eee;
  padding: 40px 20px;
}

.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-gray);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--color-brown);
  text-decoration: underline;
}

/* ========================================
   DESKTOP / TABLET OVERRIDES
   min-width: 768px
======================================== */
@media (min-width: 768px) {
  .countdown-banner {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .banner-text {
    font-size: 0.95rem;
  }

  .countdown-wrap {
    margin-top: 0;
  }

  .time-card {
    font-size: 1.6rem;
    padding: 5px 12px;
    min-width: 46px;
  }

  .time-sep {
    font-size: 1.6rem;
    padding-top: 5px;
  }

  .section-hero {
    padding-top: 56px;
    gap: 18px;
  }

  .reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }

  .footer-nav ul {
    align-items: flex-start;
  }
}

/* ========================================
   LARGE DESKTOP
   min-width: 1024px
======================================== */
@media (min-width: 1024px) {
  .content-wrap {
    padding-left: 32px;
    padding-right: 32px;
  }

  .text-xl {
    font-size: 1.85rem;
  }

  .text-lg {
    font-size: 1.55rem;
  }

  .section-cta {
    padding: 40px 32px 24px;
    gap: 16px;
  }

  .product-title {
    font-size: 1.9rem;
  }

  .btn-buy {
    font-size: 1.2rem;
    padding: 16px 40px;
  }

  .section-bundle .content-wrap {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .benefits-list {
    gap: 18px;
  }

  .review-card {
    padding: 28px 24px;
  }

  .review-title {
    font-size: 1.05rem;
  }

  .review-text {
    font-size: 1rem;
  }
}

/* ========================================
   ACCESSIBILITY – reduced motion
======================================== */
@media (prefers-reduced-motion: reduce) {
  .btn-buy {
    animation: none;
  }

  .review-card:hover {
    transform: none;
  }
}

/* ========================================
   FADE-IN ANIMATIONS (via IntersectionObserver)
======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================
   PRICE BREAKDOWN GRID (BUY 1 GET 3)
======================================== */
.section-price-breakdown {
  background-color: var(--color-brown);
  padding: 0 0 8px;
}

.price-breakdown-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  padding: 20px 16px;
  flex-wrap: wrap;
}

.book-price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.book-price-img-wrap {
  width: 90px;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-price-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-book .book-price-img-wrap {
  width: 110px;
  height: 145px;
}

.book-price-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.book-price-amount {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
}

.book-price-old {
  color: var(--color-red);
  font-size: 0.95rem;
  text-decoration: line-through;
  background: var(--color-white);
  padding: 1px 5px;
  border-radius: 3px;
}

.book-price-free {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.04em;
}


/* ========================================
   70% OFF SECTION (coded text)
======================================== */
.section-70off {
  background-color: var(--color-brown);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 32px 0 0;
}

.off-headline-block {
  text-align: center;
  padding: 0 20px 16px;
}

.off-headline {
  font-size: clamp(3.5rem, 14vw, 7rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.off-sub {
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.off-product-img {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.off-product-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   FOOTER – MODAL TRIGGER BUTTONS
======================================== */
.modal-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text);
  padding: 0;
  text-align: left;
  transition: color 0.15s;
  font-family: inherit;
  line-height: 1.6;
}

.modal-trigger:hover {
  color: var(--color-brown);
  text-decoration: underline;
}

/* ========================================
   MODALS
======================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--color-white);
  border-radius: 14px;
  padding: 32px 28px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: modal-slide-in 0.25s ease;
}

@keyframes modal-slide-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-box h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brown);
  margin-bottom: 16px;
  padding-right: 28px;
}

.modal-box p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 10px;
}

.modal-box p:last-child {
  margin-bottom: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: #666;
  transition: color 0.15s, transform 0.15s;
  font-family: inherit;
}

.modal-close:hover {
  color: var(--color-text);
  transform: scale(1.15);
}

@media (min-width: 768px) {
  .price-breakdown-grid {
    gap: 20px;
  }

  .book-price-img-wrap {
    width: 110px;
    height: 145px;
  }

  .main-book .book-price-img-wrap {
    width: 130px;
    height: 170px;
  }

  .off-headline {
    font-size: 7rem;
  }

  .off-product-img {
    max-width: 460px;
  }
}

