/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    /* Original Color Palette */
    --primary-orange: #F4A460;
    --warm-gold: #DAA520;
    --deep-orange: #CD853F;
    --savanna-brown: #8B4513;
    --dark-charcoal: #2F2F2F;
    --soft-cream: #FFF8DC;
    --accent-red: #DC143C;
    --light-gray: #f8fafc;
    --medium-gray: #64748b;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Fredoka', cursive;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --section-padding: 80px 0;
    --container-padding: 0 20px;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --border-radius: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-charcoal);
    background: linear-gradient(135deg, var(--soft-cream) 0%, var(--white) 100%);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(244, 164, 96, 0.1);
}

/* Extend navbar background upward to cover gap during banner animation */
.navbar::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    z-index: -1;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo img.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-logo a {
    display: block;
    text-decoration: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1002;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.nav-logo h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-orange), var(--warm-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-link {
    text-decoration: none;
    color: var(--dark-charcoal);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
}

.nav-link:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateY(-2px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    overflow-x: hidden;
    width: 100%;
}


/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--warm-gold) 100%);
    color: white;
    overflow: hidden;
    transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--soft-cream);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 16px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--white);
    color: var(--primary-orange);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--soft-cream);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-orange);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: var(--white);
}

.btn-small {
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-showcase {
    position: relative;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.book-showcase:hover {
    transform: rotate(0deg) scale(1.05);
}

.featured-book {
    width: 300px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
}

.book-placeholder {
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--warm-gold) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.book-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.placeholder-content {
    z-index: 1;
    position: relative;
    padding: 20px;
}

.placeholder-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.placeholder-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.placeholder-characters {
    font-size: 3rem;
    margin-top: 20px;
}

/* Featured Book Section */
.featured-book-section {
    padding: var(--section-padding);
    background: white;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-xl);
    background: linear-gradient(135deg, var(--primary-orange), var(--warm-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.book-feature {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.book-cover img {
    width: 100%;
    max-width: 350px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.book-cover .book-placeholder {
    width: 100%;
    max-width: 350px;
    height: 450px;
}

.book-details h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

.book-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #555;
}

.book-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Coming Soon Section */
.coming-soon {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--soft-cream) 0%, #FFF 100%);
}

.upcoming-book {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.placeholder-cover {
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-orange), var(--warm-gold));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-medium);
}

.upcoming-details h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

.upcoming-details p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Hide desktop menu by default */
    .nav-menu {
        position: fixed;
        top: 80px !important;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 0;
        margin: 0;
        box-shadow: none;
        max-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        z-index: 1001;
        display: flex !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        border-top: 1px solid rgba(244, 164, 96, 0.1);
    }

    /* Show menu when active */
    .nav-menu.active {
        max-height: calc(100vh - 80px);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu li {
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
        border-bottom: 1px solid rgba(244, 164, 96, 0.08);
        flex-shrink: 0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 1.5rem 2rem;
        text-align: left;
        border-radius: 0;
        transition: all 0.2s ease;
        color: var(--dark-charcoal);
        font-weight: 600;
        font-size: 1.05rem;
        position: relative;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 0;
        background: linear-gradient(90deg, var(--primary-orange), var(--warm-gold));
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(244, 164, 96, 0.05);
        color: var(--primary-orange);
        transform: none;
        padding-left: 2.5rem;
    }

    .nav-link:hover::before {
        width: 4px;
    }

    .nav-link:active {
        background: linear-gradient(90deg, var(--primary-orange), var(--warm-gold));
        color: white;
    }

    /* Override banner positioning - menu always stays at 80px */
    body.banner-shown .nav-menu {
        top: 80px !important;
        height: calc(100vh - 80px);
    }

    body.banner-shown .nav-menu.active {
        max-height: calc(100vh - 80px);
    }

    /* Hero adjustments for mobile - fit in viewport */
    .hero {
        padding: 90px 0 30px;
        min-height: calc(100vh - 80px);
        display: flex;
        align-items: center;
    }

    body.banner-shown .hero {
        padding-top: 150px;
        min-height: calc(100vh - 140px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-container .hero-image {
        order: -1;
        /* Move image above content on mobile */
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .hero-buttons {
        justify-content: center;
        gap: 0.75rem;
    }

    .featured-book {
        width: 200px;
        max-width: 75vw;
    }

    /* Book carousel section - fit in viewport */
    .book2-section {
        padding: 50px 0 30px;
        min-height: calc(100vh - 80px);
        display: flex;
        align-items: center;
    }

    body.banner-shown .book2-section {
        padding-top: 90px;
        min-height: calc(100vh - 140px);
    }

    .book2-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
        padding: 0 var(--space-md);
    }

    .book2-image {
        order: -1;
    }

    .book2-showcase {
        transform: rotate(0deg);
    }

    .book2-cover {
        width: 240px;
        height: auto;
    }

    .book-badge {
        top: -10px;
        right: -10px;
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .book2-content h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .book2-content p {
        font-size: 1rem;
        margin-bottom: var(--space-md);
        line-height: 1.5;
    }

    .book2-features {
        gap: 0.4rem;
        margin-bottom: var(--space-md);
        justify-content: center;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .book2-buttons {
        gap: 0.5rem;
        justify-content: center;
        margin-bottom: var(--space-sm);
    }

    .book2-buttons .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .carousel-dots {
        margin-top: 1rem;
        gap: 0.6rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .carousel-dot.active {
        width: 24px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-arrow-left {
        left: 0.5rem;
    }

    .carousel-arrow-right {
        right: 0.5rem;
    }

    /* Adjust Book 3 placeholder for mobile */
    .book2-showcase div[style*="width: 320px"] {
        width: 240px !important;
        height: 312px !important;
        font-size: 1rem !important;
        padding: 1rem !important;
    }

    .videos-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }

    .characters-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }

    .section-content h2 {
        font-size: 2rem;
        /* Smaller on mobile */
    }

    .section-content p {
        font-size: 1rem;
        /* Smaller on mobile */
    }

    .section-visual {
        font-size: 5rem;
        /* Bigger icons on mobile */
        min-height: 200px;
    }

    .section-content {
        min-height: auto;
    }

    .promise-features {
        flex-direction: column;
        align-items: center;
    }

    /* Videos section - move icon above text on mobile */
    .videos-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .videos-container .section-visual {
        order: -1;
        /* Move icon above text on mobile */
    }

    /* Characters section - move icon above text on mobile */
    .characters-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .characters-container .section-visual {
        order: -1;
        /* Move icon above text on mobile */
    }

    .book-feature,
    .upcoming-book {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .featured-book,
    .book-placeholder {
        width: 250px;
    }

    .book-cover .book-placeholder {
        max-width: 250px;
        height: 330px;
    }

    .placeholder-cover {
        width: 250px;
        height: 330px;
    }
}

/* Footer Styles */
.footer {
    background: var(--dark-charcoal);
    color: var(--white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-orange), var(--warm-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--warm-gold);
    margin-bottom: var(--space-md);
}

.footer-section p {
    line-height: 1.7;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-orange), var(--warm-gold));
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    color: var(--white);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--warm-gold);
    transform: translateX(5px);
}

.footer-note {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: var(--space-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    margin: var(--space-xs) 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Active nav link styles */
.nav-link.active {
    color: var(--primary-orange);
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* About Preview Section */
.about-preview {
    padding: var(--section-padding);
    background: white;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #555;
}

.mission-points {
    margin: 2rem 0;
}

.mission-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mission-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.mission-point h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.mission-point p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.about-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.mission-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* Responsive about section */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .mission-point {
        text-align: left;
    }

    .about-actions {
        justify-content: center;
    }
}

/* Enhanced Coming Soon Section */
.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.upcoming-adventures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.upcoming-book {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upcoming-book:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.book-preview {
    position: relative;
}

.upcoming-cover {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.book-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-orange);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-light);
}

.book-badge.planned {
    background: var(--warm-gold);
}

.upcoming-details h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.book-series {
    font-size: 0.9rem;
    color: var(--warm-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.upcoming-details p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #555;
}

.upcoming-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: var(--soft-cream);
    color: var(--primary-orange);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--primary-orange);
}

.series-promise {
    background: linear-gradient(135deg, var(--soft-cream) 0%, #FFF 100%);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
}

.promise-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

.promise-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.promise-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.promise-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--dark-charcoal);
}

.promise-icon {
    font-size: 1.5rem;
}

/* Book 2 Banner */
.book2-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--accent-red) 0%, #FF6B6B 100%);
    color: white;
    z-index: 1002;
    height: 60px;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    overflow: hidden;
    will-change: transform;
}

.book2-banner.show {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

/* Prevent animation on page load when banner should be shown instantly */
body.banner-shown:not(.transitions-enabled) .book2-banner {
    transform: translateY(0);
    transition: none;
}

/* Re-enable transitions after initial load */
body.banner-shown.transitions-enabled .book2-banner.show {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adjust navbar when banner is shown */
.navbar {
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.banner-shown .navbar {
    top: 60px;
}

/* Prevent navbar animation on initial page load when banner is pre-shown */
body.banner-shown:not(.transitions-enabled) .navbar {
    transition: none;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.banner-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.banner-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.banner-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}

.banner-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    white-space: nowrap;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--accent-red);
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: var(--soft-cream);
}

.banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.8;
    flex-shrink: 0;
}

.banner-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Smooth content adjustment when banner is shown */
body.banner-shown .hero {
    padding-top: 200px;
    /* 120px original + 60px banner + 20px extra spacing */
}

/* Adjust other page sections when banner is shown */
body.banner-shown .page-hero {
    padding-top: 200px;
    /* For other pages with page-hero class */
}

body.banner-shown .books-hero {
    padding-top: 200px;
    /* For books page */
}

/* Adjust navbar when banner is shown */
body.banner-shown .navbar {
    top: 60px;
}

/* Adjust page content when banner is shown */
body.banner-shown .hero {
    padding-top: 200px;
}

body.banner-shown .page-hero {
    padding-top: 180px;
}

/* Prevent hero animation on initial page load when banner is pre-shown */
body.banner-shown:not(.transitions-enabled) .hero,
body.banner-shown:not(.transitions-enabled) .page-hero,
body.banner-shown:not(.transitions-enabled) .books-hero {
    transition: none;
}

/* Responsive updates */
@media (max-width: 768px) {
    .book2-banner {
        height: auto;
        min-height: 65px;
        padding: 6px 0;
    }

    .banner-content {
        flex-direction: row;
        gap: 6px;
        padding: 0 8px;
        justify-content: space-between;
        align-items: center;
    }

    .banner-text {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
        align-items: flex-start;
    }

    .banner-badge {
        font-size: 0.6rem;
        padding: 2px 5px;
        align-self: flex-start;
        line-height: 1;
    }

    .banner-title {
        font-size: 0.8rem;
        white-space: normal;
        line-height: 1.1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .banner-subtitle {
        font-size: 0.65rem;
        white-space: nowrap;
        line-height: 1;
    }

    .banner-actions {
        display: flex;
        gap: 3px;
        flex-shrink: 0;
        align-items: center;
    }

    .banner-btn {
        font-size: 0.65rem;
        padding: 4px 8px;
        white-space: nowrap;
    }

    .banner-close {
        padding: 3px;
        font-size: 0.9rem;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.banner-shown .navbar {
        top: 65px;
    }

    body.banner-shown .hero {
        padding-top: 205px;
    }

    body.banner-shown .page-hero {
        padding-top: 205px;
    }

    body.banner-shown .books-hero {
        padding-top: 205px;
    }

    body.banner-shown .nav-menu.active {
        top: 145px;
    }

    .upcoming-adventures {
        grid-template-columns: 1fr;
    }

    .upcoming-book {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .promise-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .series-promise {
        padding: 2rem;
    }
}

@media (max-width: 400px) {
    .banner-title {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .banner-btn {
        font-size: 0.6rem;
        padding: 3px 6px;
    }

    .banner-badge {
        font-size: 0.55rem;
    }

    .banner-subtitle {
        font-size: 0.6rem;
    }
}