/* ============================================================
   AYOBABALOLA COMICS - Custom Single Page Design
   assets2/css/style.css
   ============================================================ */

/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 8, 20, 0.92);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    cursor: zoom-out;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 92%;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.6rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.lightbox .close-btn:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.lightbox .caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #d6d0ea;
    font-size: 0.95rem;
    padding: 0 20px;
}

/* Make clickable images show a subtle zoom hint */
.clickable {
    cursor: zoom-in;
    transition: transform 0.3s, box-shadow 0.3s;
}

.clickable:hover {
    transform: scale(1.02);
}

:root {
    --primary: #e63946;
    /* comic red */
    --primary-dark: #c1121f;
    --secondary: #f4a261;
    /* warm amber */
    --accent: #ffd166;
    /* comic yellow */
    --dark: #1d1a2f;
    /* deep indigo */
    --dark-2: #2a2542;
    --light: #faf7f2;
    /* warm paper */
    --text: #3a3547;
    --muted: #6b6577;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(29, 26, 47, 0.12);
    --shadow-lg: 0 20px 50px rgba(29, 26, 47, 0.25);
    --radius: 18px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(29, 26, 47, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar .logo img {
    height: 46px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
}

.nav-links a {
    color: #e8e4f5;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.25s, color 0.25s;
}

.nav-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: 0.3s;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(230, 57, 70, 0.35), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(244, 162, 97, 0.3), transparent 45%),
        linear-gradient(135deg, #1d1a2f 0%, #2a2542 60%, #3a2e5c 100%);
    color: var(--white);
    padding-top: 72px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 60px;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.15;
    margin-bottom: 18px;
    font-weight: 800;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.1rem;
    color: #d6d0ea;
    margin-bottom: 30px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(230, 57, 70, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-visual img {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    border: 6px solid rgba(255, 255, 255, 0.15);
}

.hero-float {
    position: absolute;
    background: var(--white);
    color: var(--dark);
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    font-size: 0.85rem;
}

.hero-float.f1 {
    top: 8%;
    left: -6%;
    animation: float 4s ease-in-out infinite;
}

.hero-float.f2 {
    bottom: 10%;
    right: -4%;
    animation: float 5s ease-in-out infinite 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ============ SECTION COMMON ============ */
.section {
    padding: 90px 0;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-head .tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--dark);
    margin-bottom: 14px;
    font-weight: 800;
}

.section-head p {
    color: var(--muted);
}

.section.alt {
    background: var(--white);
}

/* ============ INTRODUCTION ============ */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.intro-grid .text p {
    margin-bottom: 18px;
    color: var(--text);
}

.intro-grid .text p strong {
    color: var(--primary);
}

.intro-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.intro-images img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.intro-images img:hover {
    transform: scale(1.03);
}

.intro-images img:first-child {
    grid-column: span 2;
    height: 260px;
}

/* ============ FEATURE CARDS ============ */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 34px 28px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card .icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.card h3 {
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ============ BOOKS GALLERY ============ */
.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.book-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.book-item:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: var(--shadow-lg);
}

.book-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.book-item .book-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(29, 26, 47, 0.9));
    color: var(--white);
    padding: 30px 16px 14px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ============ AUTHOR ============ */
.author-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.author-grid .photo img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.author-grid .bio p {
    margin-bottom: 16px;
    color: var(--text);
}

.author-grid .bio h3 {
    color: var(--dark);
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.author-grid .bio .role {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 18px;
}

/* ============ PRICE / CTA ============ */
.price-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    padding: 50px 40px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.price-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 22px 22px;
}

.price-banner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 12px;
    position: relative;
}

.price-banner p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 26px;
    position: relative;
}

.price-banner .price {
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--accent);
    color: var(--dark);
    display: inline-block;
    padding: 8px 30px;
    border-radius: 40px;
    margin-bottom: 26px;
    position: relative;
}

/* ============ CONTACT ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    color: var(--dark);
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
    align-items: flex-start;
}

.contact-item .c-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    color: var(--muted);
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-logo {
    text-align: center;
}

.contact-logo img {
    max-width: 260px;
    margin: 0 auto 20px;
    border-radius: 12px;
}

.contact-logo p {
    color: var(--muted);
    font-style: italic;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--dark);
    color: #b9b3d0;
    padding: 40px 0 30px;
    text-align: center;
}

.footer p {
    margin-bottom: 8px;
}

.footer .copy {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 20px;
    }

    .intro-grid,
    .author-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--dark);
        padding: 20px;
        gap: 10px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-links a {
        display: block;
        padding: 12px;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-float.f1 {
        left: 0;
    }

    .hero-float.f2 {
        right: 0;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: 1fr;
    }

    .intro-images {
        grid-template-columns: 1fr;
    }

    .intro-images img:first-child {
        grid-column: span 1;
    }
}