/* ==========================================
   Honey Tales Africa - Stylesheet
   ========================================== */

/* --- Variables --- */
:root {
    --honey: #D4962A;
    --honey-dark: #B87D22;
    --action: #3A7B5A;
    --action-dark: #2D6346;
    --safari-green: #4CAF50;
    --safari-green-dark: #388E3C;
    --sunset-orange: #FF6B35;
    --brown: #2B503F;
    --brown-light: #3A6B50;
    --cream: #FFF8E7;
    --sky-blue: #87CEEB;
    --white: #ffffff;
    --text-dark: #3D2B1F;
    --text-muted: #6B5B4F;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;

}

h1, h2, h3, h4 {
    font-family: 'Bubblegum Sans', cursive;
    line-height: 1.3;
}

a {
    color: var(--action);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--sunset-orange);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.15rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--action);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(43, 80, 63, 0.35);
}

.btn-primary:hover {
    background: var(--action-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 80, 63, 0.45);
}

.btn-secondary {
    background: var(--safari-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-secondary:hover {
    background: var(--safari-green-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 248, 231, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 44px;
    width: auto;
}

.hero-bee-wrap {
    z-index: 2;
    animation: float1 3s ease-in-out infinite;
}

.hero-bee {
    width: 120px;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.2));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    display: block;
    padding: 8px 18px;
    border-radius: 50px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.nav-links a:hover {
    background: var(--action);
    color: var(--white);
}

.nav-links .nav-hidden {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--brown);
    border-radius: 3px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100svh;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: linear-gradient(160deg, #3A6B50 0%, #2B503F 60%, #223F32 100%);
    padding: 80px 20px 20px;
    overflow: hidden;
}

.hero-logo-wrap {
    z-index: 2;
}

.hero-logo {
    width: 180px;
    max-width: 50vw;
    display: block;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.hero-books {
    position: relative;
    z-index: 5;
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    perspective: 1200px;
}

.hero-book {
    flex-shrink: 0;
    width: 300px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.hero-book--1 { transform: rotate(-5deg); }
.hero-book--2 { transform: rotate(4deg); }
.hero-book--3 { transform: rotate(3deg); }
.hero-book--4 { transform: rotate(-6deg); }

/* Active book while video plays */
.hero-book--1.is-playing {
    transform: rotate(-3deg) scale(1.18) translateY(18px) perspective(700px) rotateX(-5deg);
    z-index: 10;
}
.hero-book--2.is-playing {
    transform: rotate(1deg) scale(1.22) translateY(44px) perspective(700px) rotateX(-6deg);
    z-index: 10;
}
.hero-book--3.is-playing {
    transform: rotate(-1deg) scale(1.22) translateY(44px) perspective(700px) rotateX(-6deg);
    z-index: 10;
}
.hero-book--4.is-playing {
    transform: rotate(-3deg) scale(1.18) translateY(18px) perspective(700px) rotateX(-5deg);
    z-index: 10;
}

.hero-book.is-playing .hero-cover-img {
    box-shadow: 0 48px 96px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.hero-book--1 .hero-cover-img {
    animation: float1 4s ease-in-out infinite;
}

.hero-book--2 .hero-cover-img {
    animation: float1 4s ease-in-out infinite;
    animation-delay: 2.5s;
}

.hero-book--3 .hero-cover-img {
    animation: float1 4s ease-in-out infinite;
    animation-delay: 5s;
}

.hero-book--4 .hero-cover-img {
    animation: float1 4s ease-in-out infinite;
    animation-delay: 7.5s;
}

.hero-cover-img {
    width: 300px;
    height: 400px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    display: block;
    outline: none;
    border: none;
    -webkit-appearance: none;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin-left: auto;
    margin-right: 5%;
}

.hero-content::before {
    content: '';
    position: absolute;
    inset: -60px -80px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}


.hero-author {
    font-size: 1.2rem;
    color: var(--brown);
    font-style: italic;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-badge {
    backdrop-filter: blur(6px);
    font-family: 'Bubblegum Sans', cursive;
    font-size: 0.95rem;
    padding: 6px 16px;
    border-radius: 50px;
    border: 2px solid;
}

.hero-badge:nth-child(1) {
    background: rgba(245, 166, 35, 0.25);
    border-color: rgba(245, 166, 35, 0.7);
    color: var(--brown);
}

.hero-badge:nth-child(2) {
    background: rgba(76, 175, 80, 0.25);
    border-color: rgba(76, 175, 80, 0.7);
    color: var(--brown);
}

.hero-badge:nth-child(3) {
    background: rgba(255, 107, 53, 0.25);
    border-color: rgba(255, 107, 53, 0.7);
    color: var(--brown);
}

.hero-review {
    margin-bottom: 28px;
}

.hero-stars {
    color: var(--honey);
    font-size: 1.4rem;
    letter-spacing: 3px;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.hero-quote {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-style: italic;
    font-weight: 600;
    margin-bottom: 2px;
}

.hero-quote-attr {
    font-size: 0.85rem;
    color: var(--brown);
    font-weight: 700;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.15);
    color: var(--brown);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--brown);
    border-color: var(--white);
    transform: translateY(-2px);
}

.hero-paws {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-paw {
    position: absolute;
    fill: rgba(255, 255, 255, 0.35);
}

.hero-paw--1 {
    top: 8%;
    right: -2%;
    transform: rotate(25deg);
}

.hero-paw--2 {
    bottom: 18%;
    right: 4%;
    transform: rotate(-15deg);
}

.hero-paw--3 {
    top: 40%;
    left: -4%;
    transform: rotate(40deg);
}

.hero .btn {
    font-size: 1.25rem;
    padding: 16px 40px;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* --- Hero Series Pills --- */
.hero-series-pills {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    row-gap: 16px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 60px;
    padding: 14px 8px;
}

.hero-series-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 32px;
}

.hero-series-number {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.7rem;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    overflow: hidden;
    display: block;
    white-space: nowrap;
}

@keyframes statScrollUp {
    from { transform: translateY(110%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes statPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.45); }
    65%  { transform: scale(0.88); }
    85%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.stat-scroll {
    display: inline-block;
    animation: statScrollUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stat-pop {
    animation: statPop 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}



/* --- Contact section FX --- */
.contact-fx-convert {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
    margin: 2px 0 4px;
    min-height: 1em;
}

.hero-series-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-series-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

/* --- Section Titles --- */
.section-title {
    font-size: 2.5rem;
    color: var(--brown);
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

/* --- Series Strip --- */
.series-strip {
    background: var(--white);
    padding: 48px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.series-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    row-gap: 24px;
}

.series-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 48px;
}

.series-pill-number {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 2.2rem;
    color: var(--honey);
    line-height: 1;
}

.series-pill-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.series-divider {
    width: 1px;
    height: 48px;
    background: rgba(0,0,0,0.12);
    flex-shrink: 0;
}

/* --- Books Section (legacy) --- */
.books-section {
    background: var(--cream);
    padding: 80px 0;
}

/* Compact 4-book grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.books-grid-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.books-grid-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.books-grid-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.books-grid-card:hover .books-grid-cover img {
    transform: scale(1.04);
}

.books-grid-cover {
    overflow: hidden;
}

.books-grid-info {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.books-grid-info h3 {
    font-size: 1rem;
    color: var(--brown);
    line-height: 1.3;
}

.books-grid-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    flex: 1;
}

.books-grid-cta {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 0.9rem;
    color: var(--honey-dark);
    margin-top: 4px;
}

.book-item {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 32px;
}

.book-item-cover {
    flex: 0 0 250px;
}

.book-item-cover img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition);
}

.book-item-cover img:hover {
    transform: scale(1.03);
}

.book-item-info {
    flex: 1;
    min-width: 0;
}

.book-item-info h3 {
    font-size: 1.8rem;
    color: var(--brown);
    margin-bottom: 16px;
}

.book-item-info p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.book-item-info .btn {
    margin-top: 8px;
}

.book-number-badge {
    display: inline-block;
    background: var(--honey);
    color: var(--white);
    font-family: 'Bubblegum Sans', cursive;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.book-item-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.book-item-sample {
    flex: 0 0 250px;
}

.book-item-sample img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition);
}

.book-item-sample img:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .book-item {
        flex-direction: column;
        text-align: center;
    }

    .book-item-cover {
        flex: none;
        max-width: 200px;
    }

    .book-item-sample {
        flex: none;
        max-width: 200px;
    }
}

/* --- Animals Section --- */
.animals-section {
    background: var(--cream);
    padding: 80px 0;
}

.animal-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 50px;
    position: relative;
}

.animal-item--meerkat {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.animal-item.animal-item--meerkat > img {
    max-height: 200px !important;
    width: auto;
}

.animal-item {
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition);
    position: relative;
}

.animal-item:hover {
    transform: scale(1.06);
}

.animal-item > img:not(.click-me-hint) {
    max-height: 300px;
    width: auto;
    display: block;
    margin: 0 auto;
    transition: transform var(--transition);
}

.animal-name {
    font-size: 1.4rem;
    color: var(--brown);
    margin-top: 12px;
}

.click-me-hint {
    width: 35%;
    height: auto;
    position: absolute;
    top: -16%;
    left: 15%;
    z-index: 2;
}

.animals-cta {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.animals-cta p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.animals-cta .btn {
    margin-top: 8px;
}

/* --- About Section --- */
/* About teaser on landing page */
.about-teaser {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 40px 0;
}

.about-teaser-photo {
    flex: 0 0 220px;
}

.about-teaser-photo .author-book-cover {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
}

.about-teaser-text h2 {
    font-size: 2.2rem;
    color: var(--brown);
    margin-bottom: 4px;
}

.about-teaser-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-teaser-text .btn {
    margin-top: 8px;
}

.about-section {
    background: linear-gradient(135deg, #FFF3D4, #FFE8C2);
    position: relative;
    padding: 40px 0;
}

.about-wave-top,
.about-wave-bottom {
    position: absolute;
    left: 0;
    right: 0;
}

.about-wave-top {
    top: -1px;
}

.about-wave-bottom {
    bottom: -1px;
}

.about-wave-top svg,
.about-wave-bottom svg {
    display: block;
    width: 100%;
    height: 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.about-author {
    text-align: center;
}

.author-avatar {
    width: 200px;
    margin: 0 auto 20px;
}

.author-book-cover {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.about-author h3 {
    font-size: 1.8rem;
    color: var(--brown);
    margin-bottom: 4px;
}

.author-role {
    color: var(--honey-dark);
    font-weight: 600;
    margin-bottom: 16px;
}

.about-author p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.about-testimonials h3 {
    font-size: 1.6rem;
    color: var(--brown);
    margin-bottom: 20px;
}

.testimonial {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.testimonial-quote {
    display: flex;
    gap: 12px;
}

.testimonial-quote svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.testimonial-quote p {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
}

.testimonial-author {
    text-align: right;
    font-weight: 700;
    color: var(--brown);
    font-size: 0.9rem;
    margin-top: 12px;
}

/* Book features */
.book-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.feature {
    padding: 24px;
}

.feature-icon {
    margin-bottom: 12px;
}

.feature-icon svg {
    display: inline-block;
}

.feature h4 {
    font-size: 1.3rem;
    color: var(--brown);
    margin-bottom: 8px;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-section {
    background: var(--cream);
    padding: 40px 0 80px;
    scroll-margin-top: 0px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form--centered {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.contact-info {
    padding-top: 10px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--brown);
    margin-bottom: 2px;
}

.contact-item p,
.contact-item a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-decoration {
    text-align: center;
    margin-top: 20px;
}

/* Contact form */
.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.required {
    color: #D32F2F;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E8DDD0;
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color var(--transition);
    background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--action);
    background: var(--white);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #E74C3C;
}

.error-message {
    display: block;
    color: #E74C3C;
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 20px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: #E8F5E9;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    color: var(--safari-green-dark);
}

.form-success.show {
    display: flex;
}

.contact-form .btn {
    width: 100%;
}

/* --- Qty counter (shared: contact section + order page) --- */
.book-qty-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--cream);
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--action);
    background: var(--white);
    color: var(--action);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}

.qty-btn:hover {
    background: var(--action);
    color: var(--white);
}

.qty-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.qty-display {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1rem;
    color: var(--brown);
    min-width: 20px;
    text-align: center;
}

/* --- Order Books Toggle --- */
.order-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--brown);
    user-select: none;
}

.order-toggle-label input[type="checkbox"] {
    display: none;
}

.order-toggle-box {
    width: 22px;
    height: 22px;
    border: 2px solid var(--action);
    border-radius: 6px;
    background: var(--white);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition);
}

.order-toggle-label input[type="checkbox"]:checked + .order-toggle-box {
    background: var(--action);
    border-color: var(--action);
}

.order-toggle-label input[type="checkbox"]:checked + .order-toggle-box::after {
    content: '';
    width: 6px;
    height: 11px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: block;
}

/* --- Book Order Selector --- */
.book-order-selector {
    display: none;
    margin-bottom: 20px;
    animation: fadeSlideDown 0.3s ease;
}

.book-order-selector.show {
    display: block;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.book-order-heading {
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.book-order-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.book-order-tile {
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid transparent;
    box-shadow: var(--shadow);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.book-order-tile img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.book-order-title {
    background: var(--cream);
    text-align: center;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 0.8rem;
    color: var(--brown);
    padding: 6px 4px;
}

.book-order-tile.has-qty {
    border-color: var(--action);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.book-order-tile.has-qty .book-order-title {
    background: var(--action);
    color: var(--white);
}

.book-order-tile.has-qty .book-qty-row {
    background: var(--action);
}

/* --- Contact section total --- */
.contact-total-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border: 2px solid var(--action);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    margin: 12px 0 4px;
}

.order-total-label {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1rem;
    color: var(--brown);
}

.order-total-amount {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.4rem;
    color: var(--action);
}

.order-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: #FFF8E7;
    border-left: 3px solid var(--action);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* --- Footer --- */
.footer {
    background: #2B503F;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-top: 0;
}

.footer-wave {
    position: relative;
    top: 0;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.footer-brand h3 {
    font-size: 1.6rem;
    color: var(--honey);
    margin-bottom: 8px;
}

.footer-brand p {
    margin-bottom: 4px;
}

.footer-publisher {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--honey);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--honey);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding-right: 80px;
}

.footer-credit {
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-credit a {
    color: var(--honey);
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* --- Footer Social Icons --- */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    transition: background var(--transition), transform var(--transition);
}

.footer-social-link:hover {
    background: var(--honey);
    color: #fff;
    transform: translateY(-3px);
}

/* --- WhatsApp Widget --- */
.whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.whatsapp-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
    position: relative;
}

.whatsapp-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: 2.4s ease-out 0s infinite normal none running waPulse;
}

@keyframes waPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.whatsapp-popup {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 300px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all var(--transition);
}

.whatsapp-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-popup-header {
    background: #075E54;
    color: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-popup-header span {
    font-weight: 700;
    flex: 1;
}

.whatsapp-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
}

.whatsapp-close:hover {
    opacity: 1;
}

.whatsapp-popup-body {
    padding: 16px;
}

.whatsapp-popup-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.whatsapp-popup-btn {
    display: block;
    margin: 0 16px 16px;
    padding: 10px;
    background: #25D366;
    color: white;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: background var(--transition);
}

.whatsapp-popup-btn:hover {
    background: #1DA851;
    color: white;
}

/* --- Animal Modal --- */
.animal-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: background 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.animal-modal-overlay.show {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
    visibility: visible;
}

.animal-modal {
    background: var(--cream);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.5) rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.animal-modal-overlay.show .animal-modal {
    transform: scale(1) rotate(0deg);
}

.animal-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
    background: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--brown);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all var(--transition);
    line-height: 1;
}

.animal-modal-close:hover {
    background: var(--sunset-orange);
    color: var(--white);
    transform: scale(1.1);
}

.animal-modal-image {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 16px;
}

.animal-modal-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

.animal-modal-facts {
    flex: 1;
    min-width: 0;
    padding: 32px 28px;
    overflow-y: auto;
    max-height: 85vh;
}

.animal-modal-facts h3 {
    font-size: 2rem;
    color: var(--brown);
    margin-bottom: 4px;
}

.facts-label {
    font-family: 'Bubblegum Sans', cursive;
    color: var(--honey-dark);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.animal-modal-facts ul {
    list-style: none;
    padding: 0;
}

.animal-modal-facts ul li {
    position: relative;
    padding: 10px 0 10px 32px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.animal-modal-facts ul li:last-child {
    border-bottom: none;
}

.animal-modal-facts ul li::before {
    content: '\1F43E';
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .animal-modal {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .animal-modal-image {
        flex: none;
        max-width: 100%;
        padding: 12px;
    }

    .animal-modal-facts {
        padding: 20px;
        max-height: none;
    }

    .animal-modal-facts h3 {
        font-size: 1.6rem;
    }

    .animal-modal-close {
        top: 8px;
        right: 10px;
    }
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .hero {
        height: auto;
        min-height: 100svh;
        flex-direction: column;
        gap: 24px;
        padding: 100px 20px 60px;
    }

    .hero-books {
        gap: 20px;
    }

    .hero-book {
        width: 200px;
    }

    .hero-cover-img {
        width: 200px;
        height: 267px;
    }

    .animal-gallery {
        gap: 40px;
    }

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

    .about-teaser {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .about-teaser-photo {
        flex: none;
        width: 180px;
    }

    .series-pill {
        padding: 0 28px;
    }

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

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

    .book-features {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h1 .accent {
        font-size: 3rem;
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        grid-column: 3;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 248, 231, 0.98);
        flex-direction: column;
        padding: 16px 20px;
        gap: 4px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all var(--transition);
    }

    .nav-links.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 12px 18px;
    }

    .hero {
        height: auto;
        min-height: 100svh;
        padding: 100px 20px 60px;
    }

    .hero-series-pills {
        border-radius: 40px;
    }

    .hero-series-pill {
        padding: 0 20px;
    }

    .hero-series-divider {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h1 .accent {
        font-size: 2.6rem;
    }

    .hero-book {
        width: 220px;
    }

    .hero-cover-img {
        width: 220px;
        height: 293px;
    }

    .contact-form {
        padding: 24px;
    }

    .whatsapp-popup {
        width: 270px;
        right: -8px;
    }
}

@media (max-width: 580px) {
    .animal-gallery {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h1 .accent {
        font-size: 2.2rem;
    }

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

    .series-divider {
        display: none;
    }

    .series-pill {
        padding: 0 20px;
    }

    .series-pill-number {
        font-size: 1.8rem;
    }

    .hero-book {
        width: 200px;
    }

    .hero-cover-img {
        width: 200px;
        height: 267px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

/* ==========================================
   Shared card hover animation keyframes
   (used by books.css and about.css)
   ========================================== */

/* ---- Card entrance keyframes ---- */

/* 0: Giraffe — gentle bulge + micro-wobble */
@keyframes fc-bulge {
    0%   { transform: scale(1) translateY(0) rotate(0deg); }
    28%  { transform: scale(1.08) translateY(-9px) rotate(-1.8deg); }
    50%  { transform: scale(1.05) translateY(-7px) rotate(1.2deg); }
    68%  { transform: scale(1.06) translateY(-8px) rotate(-0.6deg); }
    82%  { transform: scale(1.052) translateY(-7px) rotate(0.3deg); }
    100% { transform: scale(1.05) translateY(-7px) rotate(0deg); }
}
/* 1: Elephant — tilt sway */
@keyframes fc-tilt {
    0%   { transform: translateY(0) rotate(0deg) scale(1); }
    30%  { transform: translateY(-11px) rotate(-3deg) scale(1.07); }
    52%  { transform: translateY(-8px) rotate(2deg) scale(1.05); }
    70%  { transform: translateY(-9px) rotate(-1deg) scale(1.055); }
    85%  { transform: translateY(-8px) rotate(0.5deg) scale(1.052); }
    100% { transform: translateY(-8px) rotate(0deg) scale(1.05); }
}
/* 2: Lion — bouncy pop */
@keyframes fc-pop {
    0%   { transform: scale(1) translateY(0); }
    22%  { transform: scale(1.1) translateY(-12px); }
    42%  { transform: scale(0.97) translateY(-4px); }
    62%  { transform: scale(1.07) translateY(-9px); }
    78%  { transform: scale(1.03) translateY(-6px); }
    90%  { transform: scale(1.055) translateY(-8px); }
    100% { transform: scale(1.05) translateY(-7px); }
}
/* 3: Bee — quick lift with vibration */
@keyframes fc-lift {
    0%   { transform: translateY(0) scale(1); }
    20%  { transform: translateY(-10px) scale(1.06); }
    40%  { transform: translateY(-7px) scale(1.04); }
    60%  { transform: translateY(-9px) scale(1.055); }
    80%  { transform: translateY(-8px) scale(1.05); }
    100% { transform: translateY(-8px) scale(1.05); }
}
/* 4: Ladybird — gentle swell */
@keyframes fc-swell {
    0%   { transform: scale(1) translateY(0); }
    35%  { transform: scale(1.07) translateY(-6px); }
    55%  { transform: scale(1.04) translateY(-5px); }
    75%  { transform: scale(1.06) translateY(-7px); }
    100% { transform: scale(1.05) translateY(-7px); }
}
/* 5: Mosquito — lean right */
@keyframes fc-lean {
    0%   { transform: rotate(0deg) scale(1) translateY(0); }
    30%  { transform: rotate(2.5deg) scale(1.06) translateY(-8px); }
    55%  { transform: rotate(-1.5deg) scale(1.04) translateY(-6px); }
    75%  { transform: rotate(1deg) scale(1.055) translateY(-7px); }
    100% { transform: rotate(0deg) scale(1.05) translateY(-7px); }
}
/* 6: Frog — spring up */
@keyframes fc-spring {
    0%   { transform: scale(1) translateY(0); }
    15%  { transform: scale(0.97, 1.04) translateY(3px); }
    35%  { transform: scale(1.09) translateY(-14px); }
    55%  { transform: scale(1.03) translateY(-5px); }
    70%  { transform: scale(1.06) translateY(-9px); }
    85%  { transform: scale(1.048) translateY(-7px); }
    100% { transform: scale(1.05) translateY(-7px); }
}
/* 7: Baboon — playful rock */
@keyframes fc-rock {
    0%   { transform: rotate(0deg) translateY(0) scale(1); }
    18%  { transform: rotate(-2deg) translateY(-6px) scale(1.04); }
    36%  { transform: rotate(2.5deg) translateY(-10px) scale(1.07); }
    54%  { transform: rotate(-1.5deg) translateY(-8px) scale(1.05); }
    72%  { transform: rotate(1deg) translateY(-7px) scale(1.052); }
    100% { transform: rotate(0deg) translateY(-7px) scale(1.05); }
}
/* 8: Warthog — forward jolt */
@keyframes fc-jolt {
    0%   { transform: scale(1) translateY(0) translateX(0); }
    20%  { transform: scale(1.06) translateY(-5px) translateX(4px); }
    40%  { transform: scale(1.04) translateY(-7px) translateX(-2px); }
    60%  { transform: scale(1.055) translateY(-8px) translateX(1px); }
    80%  { transform: scale(1.05) translateY(-7px) translateX(0); }
    100% { transform: scale(1.05) translateY(-7px) translateX(0); }
}
/* 9: Hippo — heavy settle */
@keyframes fc-settle {
    0%   { transform: scale(1) translateY(0); }
    20%  { transform: scale(1.09) translateY(-4px); }
    40%  { transform: scale(1.03) translateY(-8px); }
    55%  { transform: scale(1.07) translateY(-6px); }
    70%  { transform: scale(1.045) translateY(-7px); }
    85%  { transform: scale(1.055) translateY(-7px); }
    100% { transform: scale(1.05) translateY(-7px); }
}
/* 10: Cheetah — fast slide */
@keyframes fc-slide {
    0%   { transform: translateX(0) translateY(0) scale(1); }
    25%  { transform: translateX(-6px) translateY(-9px) scale(1.07); }
    45%  { transform: translateX(3px) translateY(-6px) scale(1.04); }
    65%  { transform: translateX(-1px) translateY(-8px) scale(1.055); }
    100% { transform: translateX(0) translateY(-7px) scale(1.05); }
}
/* 11: Crocodile — lurching rise */
@keyframes fc-lurch {
    0%   { transform: scale(1) translateY(0) rotate(0deg); }
    25%  { transform: scale(1.04) translateY(-3px) rotate(1.5deg); }
    45%  { transform: scale(1.08) translateY(-10px) rotate(-1deg); }
    65%  { transform: scale(1.05) translateY(-7px) rotate(0.5deg); }
    85%  { transform: scale(1.052) translateY(-7px) rotate(-0.2deg); }
    100% { transform: scale(1.05) translateY(-7px) rotate(0deg); }
}

/* ---- Card exit keyframes ---- */

@keyframes fc-bulge-out {
    0%   { transform: scale(1.05) translateY(-7px) rotate(0deg); }
    22%  { transform: scale(1.02) translateY(-3px) rotate(1.4deg); }
    48%  { transform: scale(1.01) translateY(-1px) rotate(-0.8deg); }
    72%  { transform: scale(1.005) translateY(0) rotate(0.4deg); }
    100% { transform: scale(1) translateY(0) rotate(0deg); }
}
@keyframes fc-tilt-out {
    0%   { transform: translateY(-8px) rotate(0deg) scale(1.05); }
    25%  { transform: translateY(-4px) rotate(2.5deg) scale(1.02); }
    55%  { transform: translateY(-1px) rotate(-1.2deg) scale(1.01); }
    80%  { transform: translateY(0) rotate(0.5deg) scale(1.002); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes fc-pop-out {
    0%   { transform: scale(1.05) translateY(-7px); }
    20%  { transform: scale(0.98) translateY(-1px); }
    45%  { transform: scale(1.02) translateY(-3px); }
    68%  { transform: scale(0.995) translateY(-1px); }
    100% { transform: scale(1) translateY(0); }
}
@keyframes fc-lift-out {
    0%   { transform: translateY(-8px) scale(1.05); }
    40%  { transform: translateY(-3px) scale(1.02); }
    70%  { transform: translateY(-1px) scale(1.005); }
    100% { transform: translateY(0) scale(1); }
}
@keyframes fc-swell-out {
    0%   { transform: scale(1.05) translateY(-7px); }
    35%  { transform: scale(1.02) translateY(-3px); }
    65%  { transform: scale(1.008) translateY(-1px); }
    100% { transform: scale(1) translateY(0); }
}
@keyframes fc-lean-out {
    0%   { transform: rotate(0deg) scale(1.05) translateY(-7px); }
    30%  { transform: rotate(1.5deg) scale(1.02) translateY(-3px); }
    60%  { transform: rotate(-0.5deg) scale(1.008) translateY(-1px); }
    100% { transform: rotate(0deg) scale(1) translateY(0); }
}
@keyframes fc-spring-out {
    0%   { transform: scale(1.05) translateY(-7px); }
    30%  { transform: scale(1.01) translateY(-2px); }
    55%  { transform: scale(1.02) translateY(1px); }
    100% { transform: scale(1) translateY(0); }
}
@keyframes fc-rock-out {
    0%   { transform: rotate(0deg) translateY(-7px) scale(1.05); }
    30%  { transform: rotate(1.5deg) translateY(-3px) scale(1.02); }
    60%  { transform: rotate(-0.8deg) translateY(-1px) scale(1.008); }
    100% { transform: rotate(0deg) translateY(0) scale(1); }
}
@keyframes fc-jolt-out {
    0%   { transform: scale(1.05) translateY(-7px) translateX(0); }
    30%  { transform: scale(1.02) translateY(-3px) translateX(-2px); }
    60%  { transform: scale(1.008) translateY(-1px) translateX(1px); }
    100% { transform: scale(1) translateY(0) translateX(0); }
}
@keyframes fc-settle-out {
    0%   { transform: scale(1.05) translateY(-7px); }
    25%  { transform: scale(1.03) translateY(-4px); }
    50%  { transform: scale(1.01) translateY(-2px); }
    100% { transform: scale(1) translateY(0); }
}
@keyframes fc-slide-out {
    0%   { transform: translateX(0) translateY(-7px) scale(1.05); }
    35%  { transform: translateX(3px) translateY(-3px) scale(1.02); }
    65%  { transform: translateX(-1px) translateY(-1px) scale(1.005); }
    100% { transform: translateX(0) translateY(0) scale(1); }
}
@keyframes fc-lurch-out {
    0%   { transform: scale(1.05) translateY(-7px) rotate(0deg); }
    30%  { transform: scale(1.02) translateY(-3px) rotate(-1deg); }
    60%  { transform: scale(1.008) translateY(-1px) rotate(0.4deg); }
    100% { transform: scale(1) translateY(0) rotate(0deg); }
}

/* ---- Icon entrance keyframes ---- */

/* 0: Giraffe — stretch tall (grows vertically) */
@keyframes fi-magnify {
    0%   { transform: scale(1) rotate(0deg); }
    30%  { transform: scale(1.85) rotate(-8deg); }
    55%  { transform: scale(1.4) rotate(5deg); }
    73%  { transform: scale(1.6) rotate(-2deg); }
    88%  { transform: scale(1.48) rotate(1deg); }
    100% { transform: scale(1.5) rotate(0deg); }
}
/* 1: Elephant — slow trunk spin */
@keyframes fi-spin {
    0%   { transform: scale(1) rotate(0deg); }
    35%  { transform: scale(1.6) rotate(200deg); }
    60%  { transform: scale(1.38) rotate(168deg); }
    78%  { transform: scale(1.53) rotate(183deg); }
    92%  { transform: scale(1.47) rotate(178deg); }
    100% { transform: scale(1.5) rotate(180deg); }
}
/* 2: Lion — powerful bounce */
@keyframes fi-bounce {
    0%   { transform: scale(1) translateY(0); }
    20%  { transform: scale(1.65) translateY(-12px); }
    40%  { transform: scale(1.3) translateY(-4px); }
    58%  { transform: scale(1.55) translateY(-10px); }
    74%  { transform: scale(1.42) translateY(-7px); }
    87%  { transform: scale(1.5) translateY(-8px); }
    100% { transform: scale(1.5) translateY(-8px); }
}
/* 3: Bee — rapid buzz vibration */
@keyframes fi-buzz {
    0%   { transform: scale(1) translate(0, 0) rotate(0deg); }
    10%  { transform: scale(1.3) translate(3px, -2px) rotate(5deg); }
    20%  { transform: scale(1.35) translate(-3px, 1px) rotate(-4deg); }
    30%  { transform: scale(1.4) translate(2px, -3px) rotate(3deg); }
    40%  { transform: scale(1.42) translate(-2px, 2px) rotate(-3deg); }
    50%  { transform: scale(1.45) translate(3px, -1px) rotate(4deg); }
    60%  { transform: scale(1.47) translate(-1px, -2px) rotate(-2deg); }
    70%  { transform: scale(1.48) translate(2px, 1px) rotate(2deg); }
    80%  { transform: scale(1.49) translate(-1px, -1px) rotate(-1deg); }
    90%  { transform: scale(1.5) translate(1px, 0) rotate(1deg); }
    100% { transform: scale(1.5) translate(0, 0) rotate(0deg); }
}
/* 4: Ladybird — gentle flutter (wing-open pulse) */
@keyframes fi-flutter {
    0%   { transform: scale(1) rotate(0deg); }
    15%  { transform: scale(1.4) rotate(6deg); }
    30%  { transform: scale(1.2) rotate(-4deg); }
    45%  { transform: scale(1.55) rotate(3deg); }
    60%  { transform: scale(1.35) rotate(-2deg); }
    75%  { transform: scale(1.5) rotate(1deg); }
    90%  { transform: scale(1.45) rotate(-0.5deg); }
    100% { transform: scale(1.5) rotate(0deg); }
}
/* 5: Mosquito — erratic zigzag darting */
@keyframes fi-zigzag {
    0%   { transform: scale(1) translate(0, 0); }
    14%  { transform: scale(1.3) translate(8px, -6px); }
    28%  { transform: scale(1.35) translate(-6px, -10px); }
    42%  { transform: scale(1.4) translate(5px, -3px); }
    56%  { transform: scale(1.45) translate(-7px, -8px); }
    70%  { transform: scale(1.48) translate(4px, -5px); }
    85%  { transform: scale(1.5) translate(-2px, -2px); }
    100% { transform: scale(1.5) translate(0, 0); }
}
/* 6: Frog — leap high + squash-stretch land */
@keyframes fi-leap {
    0%   { transform: scale(1, 1) translateY(0); }
    12%  { transform: scale(1.1, 0.85) translateY(4px); }
    30%  { transform: scale(0.9, 1.7) translateY(-22px); }
    50%  { transform: scale(1.5, 1.5) translateY(-14px); }
    65%  { transform: scale(1.55, 1.4) translateY(-6px); }
    78%  { transform: scale(1.48, 1.52) translateY(-9px); }
    100% { transform: scale(1.5, 1.5) translateY(-8px); }
}
/* 7: Baboon — pendulum swing arc */
@keyframes fi-swing {
    0%   { transform: scale(1) rotate(0deg); transform-origin: 50% 0; }
    20%  { transform: scale(1.4) rotate(18deg); }
    40%  { transform: scale(1.45) rotate(-14deg); }
    55%  { transform: scale(1.48) rotate(8deg); }
    70%  { transform: scale(1.5) rotate(-5deg); }
    82%  { transform: scale(1.5) rotate(3deg); }
    92%  { transform: scale(1.5) rotate(-1deg); }
    100% { transform: scale(1.5) rotate(0deg); }
}
/* 8: Warthog — charge lunge forward + back */
@keyframes fi-charge {
    0%   { transform: scale(1) translateX(0) rotate(0deg); }
    18%  { transform: scale(1.3) translateX(-4px) rotate(-3deg); }
    35%  { transform: scale(1.55) translateX(14px) rotate(4deg); }
    50%  { transform: scale(1.45) translateX(6px) rotate(-1deg); }
    65%  { transform: scale(1.5) translateX(2px) rotate(1deg); }
    80%  { transform: scale(1.5) translateX(-1px) rotate(-0.5deg); }
    100% { transform: scale(1.5) translateX(0) rotate(0deg); }
}
/* 9: Hippo — heavy side-to-side rock */
@keyframes fi-rock {
    0%   { transform: scale(1) rotate(0deg) translateY(0); }
    18%  { transform: scale(1.35) rotate(-8deg) translateY(-2px); }
    36%  { transform: scale(1.45) rotate(6deg) translateY(-4px); }
    52%  { transform: scale(1.48) rotate(-4deg) translateY(-3px); }
    68%  { transform: scale(1.5) rotate(2.5deg) translateY(-2px); }
    82%  { transform: scale(1.5) rotate(-1deg) translateY(-1px); }
    100% { transform: scale(1.5) rotate(0deg) translateY(0); }
}
/* 10: Cheetah — speed dash (horizontal streak) */
@keyframes fi-dash {
    0%   { transform: scale(1) translateX(0) skewX(0deg); }
    15%  { transform: scale(1.2, 0.9) translateX(-8px) skewX(-8deg); }
    30%  { transform: scale(1.5, 1.1) translateX(16px) skewX(5deg); }
    45%  { transform: scale(1.4, 1.2) translateX(4px) skewX(-2deg); }
    60%  { transform: scale(1.5) translateX(-2px) skewX(1deg); }
    80%  { transform: scale(1.5) translateX(1px) skewX(0deg); }
    100% { transform: scale(1.5) translateX(0) skewX(0deg); }
}
/* 11: Crocodile — jaw snap (quick chomp) */
@keyframes fi-snap {
    0%   { transform: scale(1) scaleY(1) translateY(0); }
    12%  { transform: scale(1.3) scaleY(0.75) translateY(3px); }
    24%  { transform: scale(1.5) scaleY(1.3) translateY(-10px); }
    36%  { transform: scale(1.45) scaleY(0.85) translateY(-2px); }
    50%  { transform: scale(1.52) scaleY(1.2) translateY(-8px); }
    65%  { transform: scale(1.48) scaleY(0.95) translateY(-4px); }
    80%  { transform: scale(1.5) scaleY(1.05) translateY(-6px); }
    100% { transform: scale(1.5) scaleY(1) translateY(-5px); }
}

/* ---- Icon exit keyframes ---- */

@keyframes fi-magnify-out {
    0%   { transform: scale(1.5) rotate(0deg); }
    35%  { transform: scale(1.15) rotate(4deg); }
    65%  { transform: scale(1.04) rotate(-1deg); }
    100% { transform: scale(1) rotate(0deg); }
}
@keyframes fi-spin-out {
    0%   { transform: scale(1.5) rotate(180deg); }
    30%  { transform: scale(1.15) rotate(210deg); }
    60%  { transform: scale(1.04) rotate(195deg); }
    100% { transform: scale(1) rotate(0deg); }
}
@keyframes fi-bounce-out {
    0%   { transform: scale(1.5) translateY(-8px); }
    30%  { transform: scale(1.1) translateY(-2px); }
    60%  { transform: scale(1.04) translateY(0); }
    100% { transform: scale(1) translateY(0); }
}
@keyframes fi-buzz-out {
    0%   { transform: scale(1.5) translate(0, 0) rotate(0deg); }
    30%  { transform: scale(1.2) translate(1px, -1px) rotate(2deg); }
    60%  { transform: scale(1.05) translate(-1px, 0) rotate(-1deg); }
    100% { transform: scale(1) translate(0, 0) rotate(0deg); }
}
@keyframes fi-flutter-out {
    0%   { transform: scale(1.5) rotate(0deg); }
    30%  { transform: scale(1.2) rotate(-3deg); }
    60%  { transform: scale(1.06) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); }
}
@keyframes fi-zigzag-out {
    0%   { transform: scale(1.5) translate(0, 0); }
    30%  { transform: scale(1.2) translate(-3px, 2px); }
    60%  { transform: scale(1.06) translate(1px, -1px); }
    100% { transform: scale(1) translate(0, 0); }
}
@keyframes fi-leap-out {
    0%   { transform: scale(1.5) translateY(-8px); }
    25%  { transform: scale(1.2, 1.1) translateY(-3px); }
    50%  { transform: scale(1.05, 1.08) translateY(1px); }
    75%  { transform: scale(1.02, 0.98) translateY(0); }
    100% { transform: scale(1) translateY(0); }
}
@keyframes fi-swing-out {
    0%   { transform: scale(1.5) rotate(0deg); }
    25%  { transform: scale(1.2) rotate(6deg); }
    50%  { transform: scale(1.08) rotate(-3deg); }
    75%  { transform: scale(1.02) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); }
}
@keyframes fi-charge-out {
    0%   { transform: scale(1.5) translateX(0) rotate(0deg); }
    30%  { transform: scale(1.2) translateX(-4px) rotate(-2deg); }
    60%  { transform: scale(1.06) translateX(1px) rotate(0.5deg); }
    100% { transform: scale(1) translateX(0) rotate(0deg); }
}
@keyframes fi-rock-out {
    0%   { transform: scale(1.5) rotate(0deg) translateY(0); }
    25%  { transform: scale(1.2) rotate(4deg) translateY(0); }
    50%  { transform: scale(1.08) rotate(-2deg) translateY(0); }
    75%  { transform: scale(1.02) rotate(0.5deg) translateY(0); }
    100% { transform: scale(1) rotate(0deg) translateY(0); }
}
@keyframes fi-dash-out {
    0%   { transform: scale(1.5) translateX(0) skewX(0deg); }
    30%  { transform: scale(1.2) translateX(5px) skewX(3deg); }
    60%  { transform: scale(1.06) translateX(-1px) skewX(0deg); }
    100% { transform: scale(1) translateX(0) skewX(0deg); }
}
@keyframes fi-snap-out {
    0%   { transform: scale(1.5) scaleY(1) translateY(-5px); }
    30%  { transform: scale(1.2) scaleY(1.1) translateY(-2px); }
    60%  { transform: scale(1.06) scaleY(0.97) translateY(0); }
    100% { transform: scale(1) scaleY(1) translateY(0); }
}
