/* ==========================================================================
   HOME COMPACT FIT — makes every section fit one screen at 100% zoom
   (loaded last; overrides style.css + luxury-home.css spacing/sizing)
   ========================================================================== */

/* --- Global section rhythm --- */
#story.story-section,
#books.books-section,
#audio.audio-section,
#library.features-section,
.kids-games-section,
.why-section,
.testimonials-section,
.faq-section {
    padding: clamp(36px, 6vh, 64px) 0 !important;
}
.cta-section { padding: clamp(48px, 8vh, 80px) 0 !important; }

.section-header { margin-bottom: clamp(20px, 3.5vh, 34px) !important; }
.section-subtitle { font-size: 0.72rem !important; margin-bottom: 4px !important; }
.section-title { font-size: clamp(1.5rem, 2.4vw, 2rem) !important; margin-bottom: 8px !important; }
.section-divider { margin-bottom: 8px !important; }
.section-description { font-size: 0.92rem !important; line-height: 1.6 !important; }

/* --- Hero: exactly one viewport --- */
.home-hero.hero-section {
    min-height: 100vh !important;
    min-height: 100svh !important;
    padding: 90px 0 40px !important;
}
.hero-badge { margin-bottom: 12px !important; }
.hero-title { margin-bottom: 8px !important; }
.hero-title-line-1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem) !important; }
.hero-title-line-2 { font-size: clamp(1.5rem, 2.8vw, 2.4rem) !important; }
.hero-typed-wrapper { font-size: 1.3rem !important; margin-bottom: 10px !important; min-height: 30px !important; }
.hero-paragraph { font-size: 0.98rem !important; margin-bottom: 20px !important; }
.hero-buttons { margin-bottom: 0 !important; }
.hero-highlights { margin-top: 22px !important; }
.hero-highlight { padding: 12px !important; }
.home-hero .hero-image,
.hero-image { height: clamp(260px, 52vh, 420px) !important; }
.hero-scroll-indicator { bottom: 12px !important; }

/* --- Search --- */
.search-section { margin-top: -20px !important; padding-bottom: 30px !important; }

/* --- Story --- */
.story-image { height: clamp(240px, 48vh, 380px) !important; }
.story-heading { font-size: clamp(1.4rem, 2.2vw, 1.9rem) !important; margin-bottom: 12px !important; }
.story-text { font-size: 0.94rem !important; line-height: 1.7 !important; margin-bottom: 10px !important; }
.story-features-mini { margin: 16px 0 !important; gap: 10px !important; }

/* --- Recommended books --- */
.recommendations-heading { margin-bottom: 20px !important; }
.home-recommendations .book-card-image-wrapper { height: clamp(160px, 26vh, 240px) !important; }
.home-recommendations .book-card-body { padding: 14px !important; }

/* --- Ebooks & Audiobooks --- */
.audio-card { padding: 26px 24px !important; }
.audio-card-icon-wrapper { width: 54px !important; height: 54px !important; margin-bottom: 14px !important; font-size: 1.4rem !important; }
.audio-card-title { font-size: 1.25rem !important; margin-bottom: 8px !important; }
.audio-card-text { font-size: 0.9rem !important; margin-bottom: 14px !important; }
.audio-card-features { margin-bottom: 18px !important; }
.audio-card-features li { margin-bottom: 6px !important; font-size: 0.86rem !important; }

/* --- Features slider --- */
#library .kingdomSwiper { padding: 6px 0 16px !important; }
#library .kingdom-card { min-height: 275px !important; padding: 22px 18px 16px !important; }
#library .kingdom-icon-box { width: 50px !important; height: 50px !important; font-size: 1.4rem !important; margin-bottom: 12px !important; }
#library .kingdom-card-desc { margin-bottom: 14px !important; font-size: 0.85rem !important; }
#library .kingdom-controls-dock { margin-bottom: 18px !important; padding: 10px 18px !important; }

/* --- Why choose --- */
.why-section .row.g-4 { --bs-gutter-y: 1rem; --bs-gutter-x: 1rem; }
.why-card { padding: 22px 20px !important; }
.why-card-icon { font-size: 1.7rem !important; margin-bottom: 10px !important; }
.why-card-title { font-size: 1.08rem !important; margin-bottom: 6px !important; }
.why-card-text { font-size: 0.86rem !important; line-height: 1.55 !important; }
.why-card-number { font-size: 1.4rem !important; top: 14px !important; right: 18px !important; }

/* --- Testimonials --- */
.testimonial-card { padding: 24px 22px !important; }
.testimonial-quote-icon { font-size: 1.6rem !important; margin-bottom: 8px !important; }
.testimonial-text { font-size: 1rem !important; line-height: 1.6 !important; margin-bottom: 16px !important; }

/* --- FAQ --- */
.faq-accordion .accordion-item { margin-bottom: 10px !important; }
.faq-accordion .accordion-button { padding: 15px 20px !important; font-size: 1rem !important; }
.faq-accordion .accordion-body { padding: 14px 20px !important; font-size: 0.9rem !important; }

/* --- CTA --- */
.cta-title { font-size: clamp(1.7rem, 3vw, 2.5rem) !important; }
.cta-text { font-size: 0.98rem !important; margin-bottom: 22px !important; }
.cta-trust-badges { margin-top: 20px !important; }

/* --- Short laptop screens (e.g. 1366x768, 1280x720) --- */
@media (min-width: 992px) and (max-height: 800px) {
    .home-hero.hero-section { padding: 80px 0 30px !important; }
    .hero-title-line-1 { font-size: 3.2rem !important; }
    .hero-title-line-2 { font-size: 2rem !important; }
    .hero-highlights { margin-top: 16px !important; }
    .hero-image { height: 340px !important; }
    .story-image { height: 320px !important; }
    #library .kingdom-card { min-height: 250px !important; }
}

/* --- Mobile --- */
@media (max-width: 575px) {
    .home-hero.hero-section { min-height: auto !important; padding: 90px 0 36px !important; }
    #story.story-section, #books.books-section, #audio.audio-section,
    #library.features-section, .kids-games-section, .why-section,
    .testimonials-section, .faq-section { padding: 36px 0 !important; }
    .hero-image { height: 260px !important; }
    .story-image { height: 240px !important; }
}
