/* ── Cookbook Landing Page ── */
:root {
    --cb-accent: #3C6745;
    --cb-accent-hover: #4d8257;
    --cb-cream-light: #f2efea;
    --cb-body-text: #555;
}

/* ── Hero Section ── */
#cookbook-hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding-left: 15px;
    padding-right: 15px;
    background: white;
}

/* Blurred cover image background */
#cookbook-hero .hero-blur-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(30px) saturate(1.3);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

#cookbook-hero .hero-blur-overlay {
    position: absolute;
    inset: 0;
    background: rgba(235, 231, 223, 0.55);
    z-index: 0;
    pointer-events: none;
}

#cookbook-hero .hero-inner {
    z-index: 1;
    gap: 30px;
    max-width: 1100px;
    margin: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#cookbook-hero .hero-media {
    flex: 1 1 48%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cookbook-hero .hero-text {
    flex: 1 1 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1;
}

#cookbook-hero .hero-text h1 {
    color: var(--col-green-0);
    text-align: center;
}

#cookbook-hero .hero-text p {
    color: var(--cb-body-text);
    text-align: center;
    font-size: 20px;
}

.book-mockup-container {
    position: relative;
    max-width: 380px;
    width: 80%;
}

.book-mockup-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.12) 0%,
        transparent 60%
    );
    border-radius: 50%;
    filter: blur(30px);
    z-index: 0;
}

.book-mockup-container img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
}

/* ── Cookbook Buttons ── */
.wave-button.btn-cb-orange {
    background: var(--cb-accent);
}

.wave-button.btn-cb-orange:hover {
    background: var(--cb-accent-hover);
}

/* ── Includes Cards Section ── */
#cookbook-includes {
    background: white;
}

.cb-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cb-card-photo {
    width: 230px;
    height: 330px;
    border-radius: 40px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.cb-card-body {
    background: var(--cb-cream-light);
    border-radius: 18px;
    padding: 180px 20px 28px 20px;
    margin-top: -160px;
    width: 100%;
}

.cb-card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--col-green-0);
}

.cb-card-body p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--cb-body-text);
}

/* ── Retailers Section ── */
#retailers {
    scroll-margin-top: 80px;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

#retailers .h2-question {
    margin-bottom: 0.8rem;
}

#retailers .subtext {
    font-family: var(--font-2);
}

.retailers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 0.8rem;
}

.retailer-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    background: #254221;
    color: white;
    font-family: var(--font-2);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.retailer-card:hover {
    background: #3C6745;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 35, 26, 0.25);
}

.retailer-card-wide {
    width: 100%;
    max-width: 280px;
    font-size: 16px;
}

/* ── Story Section ── */
#cookbook-story {
    background: var(--col-green-5);
}

.story-heading {
    color: var(--col-green-0);
    font-family: var(--font-0);
    margin-bottom: 1.2rem;
}

#cookbook-story .story-text {
    color: var(--cb-body-text);
}

.story-photo {
    width: 380px;
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 4px solid white;
    position: relative;
    z-index: 1;
    transform: rotate(-3deg);
}

/* ── Gallery Columns ── */
#cookbook-gallery {
    background: var(--col-green-5);
}

.gallery-columns {
    display: flex;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-img {
    border-radius: 14px;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-landscape {
    aspect-ratio: 3 / 2;
}

.gallery-portrait {
    aspect-ratio: 3 / 4;
}

@media only screen and (max-width: 768px) {
    .gallery-columns {
        flex-wrap: wrap;
    }

    .gallery-col {
        flex: 0 0 calc(50% - 6px);
    }

    .gallery-col:nth-child(3) {
        display: none;
    }
}

@media only screen and (max-width: 480px) {
    .gallery-columns {
        gap: 8px;
    }

    .gallery-col {
        flex: 0 0 calc(50% - 4px);
        gap: 8px;
    }
}

/* ── Author Card Section ── */
#cookbook-author {
    background: white;
}

.cb-author-card {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 860px;
    margin: 0 auto;
    background: var(--cb-cream-light);
    border-radius: 20px;
    padding: 40px 50px 40px 120px;
    text-align: left;
}

.cb-author-photo-col {
    position: absolute;
    left: -90px;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
}

.cb-author-photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.cb-author-text {
    flex: 1;
}

.cb-author-label {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--cb-accent);
    margin-bottom: 4px;
}

.cb-author-name {
    font-family: var(--font-0);
    margin-bottom: 1rem;
    color: var(--col-green-0);
}

.cb-author-text .subtext {
    color: var(--cb-body-text);
}

/* ── Quote Section ── */
.cb-quote-section {
    padding-top: 0px;
}

.cb-quote {
    max-width: 700px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    line-height: 1.5;
    font-style: italic;
    color: #496046;
    text-align: center;
    margin: 0;
    margin-bottom: 2rem;
}

@media only screen and (max-width: 768px) {
    .cb-quote {
        font-size: 22px;
    }
}

@media only screen and (max-width: 1028px) {
    .cb-author-card {
        flex-direction: column;
        text-align: center;
        padding: 80px 24px 30px 24px;
    }

    .cb-author-photo-col {
        position: absolute;
        left: 50%;
        top: 0;
        transform: translate(-50%, -50%);
    }

    .cb-author-photo {
        width: 130px;
        height: 130px;
    }
}

/* ── Responsive ── */
@media only screen and (max-width: 768px) {
    #cookbook-hero .hero-inner {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    #cookbook-hero .hero-media,
    #cookbook-hero .hero-text {
        flex: unset;
        width: 100%;
    }

    .book-mockup-container {
        max-width: 260px;
    }

    .retailers-grid {
        gap: 12px;
    }

    .retailer-card {
        padding: 10px 18px;
        font-size: 14px;
    }

    .story-photo {
        width: 260px;
        height: auto;
    }

    .cb-card-photo {
        width: 200px;
        height: 200px;
        border-radius: 50%;
    }

    .cb-card-body {
        padding: 115px 24px 30px 24px;
        margin-top: -95px;
    }
}

