/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS & MOBILE-FIRST OPTIMIZATIONS
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual-card,
  .hero-visual-wrapper {
    order: -1;
  }

  .cover-wrapper,
  .book-mockup-frame {
    max-width: 340px;
    margin: 0 auto;
    transform: none;
  }

  .bundle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-display-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .offer-card {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-section {
    padding: 36px 0 56px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .hero-price-card {
    padding: 20px;
  }

  .cover-spec-chips {
    gap: 8px;
    margin-top: 14px;
  }

  .selling-price {
    font-size: 2.125rem;
  }

  .bundle-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .preview-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .preview-tab-btn {
    white-space: nowrap;
    font-size: 0.8125rem;
    padding: 8px 16px;
  }

  .preview-display-card {
    padding: 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mobile-sticky-cta {
    display: block;
  }

  .announcement-bar {
    display: none; /* Hide top bar on small screens to save vertical height */
  }

  .brand-text {
    display: none;
  }

  .modal-card {
    padding: 24px 18px;
  }
}
/* Intermediate Screens (769px to 1120px) */
@media (max-width: 1120px) {
  .brand-text {
    display: none;
  }
  .nav-menu {
    gap: 4px;
  }
  .nav-menu-item a {
    font-size: 0.8125rem;
    padding: 5px 8px;
  }
  .nav-actions .btn {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .nav-menu-wrap {
    display: none !important;
  }
}

/* ==========================================================================
   ENHANCED RESPONSIVE TWEAKS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-menu-wrap {
    display: none !important; /* Keep tablet header clean */
  }
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block !important;
    transform: translateY(0) !important;
  }
  body {
    padding-bottom: 74px;
  }
}

@media (min-width: 769px) {
  .mobile-sticky-cta {
    display: none !important;
  }
}

.hero-title, .section-title {
  overflow-wrap: break-word;
}

.cover-spec-chips {
  flex-wrap: wrap;
  justify-content: center;
}
