/* =========================================================
   WILLOW & HUE
   INDIVIDUAL BOOK PAGES
   ========================================================= */


/* =========================================================
   BREADCRUMBS
   ========================================================= */

.book-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    padding-top: 28px;
    padding-bottom: 10px;

    font-size: 0.9rem;
    color: var(--muted);
}

.book-breadcrumbs a {
    color: var(--muted);
    text-decoration: none;

    transition: color 0.2s ease;
}

.book-breadcrumbs a:hover {
    color: var(--sage-dark);
}

.book-breadcrumbs span:last-child {
    color: var(--brown);
    font-weight: 600;
}

.book-breadcrumb-bar {
    background: var(--cream);
}

.book-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    padding-top: 28px;
    padding-bottom: 20px;

    font-size: 0.9rem;
    color: var(--muted);
}

.book-breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.book-breadcrumbs a:hover {
    color: var(--sage-dark);
}

.book-breadcrumbs span:last-child {
    color: var(--brown);
    font-weight: 600;
}


/* =========================================================
   BOOK HERO
   ========================================================= */

.book-hero {
    position: relative;

    padding: 45px 0 95px;

    background: var(--cream);

    overflow: hidden;
}

.book-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    align-items: center;
    gap: 90px;
}


/* =========================================================
   LARGE BOOK COVER
   ========================================================= */

.book-cover-feature {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
}

.book-cover-decoration {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 510px;

    padding: 30px;
}

.book-cover-decoration::before {
    content: "";

    position: absolute;
    z-index: 0;

    width: 92%;
    height: 92%;

    border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%;
}

.book-cover-large {
    position: relative;
    z-index: 1;

    display: block;

    width: 100%;
    max-width: 500px;
    height: auto;

    border-radius: 4px;

    transform: rotate(-2deg);

    box-shadow:
        0 24px 45px rgba(82, 59, 43, 0.18),
        0 7px 14px rgba(82, 59, 43, 0.10);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.book-cover-large:hover {
    transform: rotate(-1deg) translateY(-4px);

    box-shadow:
        0 30px 55px rgba(82, 59, 43, 0.20),
        0 10px 18px rgba(82, 59, 43, 0.10);
}


/* =========================================================
   BOOK DETAILS
   ========================================================= */

.book-details {
    min-width: 0;
    max-width: 600px;
}

.book-details .eyebrow {
    margin-bottom: 16px;
}

.book-details h1 {
    margin: 0;

    color: var(--brown);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.3rem, 5vw, 5.1rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
}

.book-details h1 span {
    display: block;

    margin-top: 10px;

    color: var(--sage-dark);

    font-size: 0.62em;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.book-intro {
    max-width: 570px;

    margin: 28px 0 0;

    color: var(--text);

    font-size: 1.08rem;
    line-height: 1.7;
}

.book-amazon-button.button-disabled {
    background: #c9c2b7;
    color: #fffdf8;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    opacity: 0.8;
}

.book-amazon-button.button-disabled:hover {
    background: #c9c2b7;
    transform: none;
    box-shadow: none;
}

/* =========================================================
   BOOK FACTS
   ========================================================= */

.book-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;

    margin-top: 38px;
}

.book-fact {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;

    text-align: center;
}

.book-fact-icon {
    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;

    margin-bottom: 10px;

    border-radius: 50%;

    background: var(--cream-dark);
    color: var(--sage-dark);

    font-size: 1.5rem;
}

.book-fact strong {
    display: block;

    margin-bottom: 4px;

    color: var(--brown);

    font-size: 0.9rem;
    line-height: 1.25;
}

.book-fact span {
    display: block;

    color: var(--muted);

    font-size: 0.78rem;
    line-height: 1.3;
}


/* =========================================================
   AMAZON CTA
   ========================================================= */

.book-purchase {
    margin-top: 38px;
}

.book-amazon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    max-width: 430px;

    min-height: 58px;

    padding: 15px 28px;

    border-radius: 999px;

    background: var(--willow);
    color: white;

    text-decoration: none;

    font-size: 1rem;
    font-weight: 700;

    box-shadow: 0 12px 25px rgba(82, 59, 43, 0.12);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.book-amazon-button:hover {
    background: var(--willow-dark);

    transform: translateY(-2px);

    box-shadow: 0 16px 30px rgba(82, 59, 43, 0.16);
}

.amazon-note {
    width: 100%;
    max-width: 430px;

    margin: 10px 0 0;

    color: var(--muted);

    text-align: center;

    font-size: 0.78rem;
}


/* =========================================================
   PEEK INSIDE
   ========================================================= */

.book-preview-section {
    position: relative;

    padding: 85px 0 105px;

    background: var(--sage-light);

    overflow: hidden;
}

.book-preview-section::before {
    content: "";

    position: absolute;
    top: -55px;
    left: -5%;

    width: 110%;
    height: 90px;

    border-radius: 50%;

    background: var(--cream);
}

.book-preview-section .container {
    position: relative;
    z-index: 1;
}

.book-section-heading {
    max-width: 650px;

    margin-bottom: 48px;
}

.book-section-heading .eyebrow {
    margin-bottom: 12px;
}

.book-section-heading h2 {
    margin: 0 0 12px;

    color: var(--brown);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.book-section-heading p:last-child {
    margin: 0;

    color: var(--text);

    font-size: 1rem;
    line-height: 1.65;
}


/* =========================================================
   SAMPLE PAGE GALLERY
   ========================================================= */

.book-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 18px;
}

.book-preview {
    min-width: 0;

    margin: 0;
}

.book-preview:nth-child(1) {
    transform: rotate(-4deg);
}

.book-preview:nth-child(2) {
    transform: rotate(2deg) translateY(8px);
}

.book-preview:nth-child(3) {
    transform: rotate(-1deg) translateY(-5px);
}

.book-preview:nth-child(4) {
    transform: rotate(3deg) translateY(7px);
}

.book-preview:nth-child(5) {
    transform: rotate(-3deg);
}

.book-preview-image {
    position: relative;

    padding: 8px;

    background: white;

    box-shadow:
        0 15px 30px rgba(82, 59, 43, 0.13),
        0 3px 8px rgba(82, 59, 43, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.book-preview:hover .book-preview-image {
    transform: translateY(-6px) scale(1.02);

    box-shadow:
        0 22px 38px rgba(82, 59, 43, 0.17),
        0 5px 10px rgba(82, 59, 43, 0.08);
}

.book-preview-image img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 8.5 / 8.5;

    object-fit: contain;

    background: white;
}


/* =========================================================
   BOOK BENEFITS
   ========================================================= */

.book-benefits {
    padding: 95px 0;

    background: var(--paper);
}

.book-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 45px;
}

.book-benefit {
    text-align: center;
}

.book-benefit .benefit-icon {
    display: grid;
    place-items: center;

    width: 72px;
    height: 72px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: var(--cream-dark);
    color: var(--peach);

    font-size: 1.7rem;
}

.book-benefit h3 {
    margin: 0 0 10px;

    color: var(--brown);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    line-height: 1.2;
}

.book-benefit p {
    max-width: 250px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 0.9rem;
    line-height: 1.6;
}


/* =========================================================
   RELATED BOOKS
   ========================================================= */

.related-books {
    padding: 20px 0 100px;

    background: var(--paper);
}

.related-books-card {
    padding: 48px;

    border-radius: var(--radius-large);

    background: var(--cream);

    box-shadow: 0 12px 35px rgba(82, 59, 43, 0.05);
}

.related-books-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 38px;
}

.related-books-heading .eyebrow {
    margin-bottom: 10px;
}

.related-books-heading h2 {
    margin: 0 0 7px;

    color: var(--brown);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 3.5vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.related-books-heading p {
    margin: 0;

    color: var(--muted);
}

.related-books-heading .text-link {
    flex-shrink: 0;

    color: var(--sage-dark);

    font-weight: 700;
    text-decoration: none;
}

.related-books-heading .text-link:hover {
    text-decoration: underline;
}


/* =========================================================
   RELATED BOOK CARDS
   ========================================================= */

.related-books-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.related-book {
    min-width: 0;
}

.related-book > a:first-child {
    display: block;

    margin-bottom: 18px;

    text-decoration: none;
}

.related-book img {
    display: block;

    width: 100%;
    max-width: 260px;
    height: auto;

    margin: 0 auto;

    border-radius: 3px;

    box-shadow:
        0 13px 25px rgba(82, 59, 43, 0.14),
        0 4px 8px rgba(82, 59, 43, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.related-book > a:first-child:hover img {
    transform: translateY(-5px);

    box-shadow:
        0 18px 32px rgba(82, 59, 43, 0.18),
        0 5px 10px rgba(82, 59, 43, 0.08);
}

.related-book h3 {
    margin: 0 0 8px;

    color: var(--brown);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

.related-book-link {
    color: var(--sage-dark);

    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.related-book-link:hover {
    text-decoration: underline;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .book-hero {
        padding-top: 30px;
        padding-bottom: 80px;
    }

    .book-hero-grid {
        grid-template-columns: 0.85fr 1fr;
        gap: 45px;
    }

    .book-cover-decoration {
        padding: 15px;
    }

    .book-details h1 {
        font-size: clamp(2.8rem, 6vw, 4rem);
    }

    .book-facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 15px;
    }

    .book-preview-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .book-preview:nth-child(4),
    .book-preview:nth-child(5) {
        transform: none;
    }

    .book-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 30px;
    }

    .related-books-card {
        padding: 38px;
    }

    .related-books-grid {
        gap: 25px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    /* -------------------------
       BREADCRUMBS
       ------------------------- */

    .book-breadcrumbs {
        padding-top: 18px;
        padding-bottom: 5px;

        font-size: 0.78rem;
    }


    /* -------------------------
       HERO
       ------------------------- */

    .book-hero {
        padding: 25px 0 65px;
    }

    .book-hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .book-cover-feature {
        order: 1;
    }

    .book-details {
        order: 2;

        max-width: none;
    }

    .book-cover-decoration {
        max-width: 380px;

        margin: 0 auto;

        padding: 15px 30px;
    }

    .book-cover-large {
        max-width: 285px;
    }

    .book-details .eyebrow {
        margin-bottom: 12px;
    }

    .book-details h1 {
        font-size: clamp(2.8rem, 13vw, 3.8rem);
        line-height: 0.97;
    }

    .book-details h1 span {
        margin-top: 8px;

        font-size: 0.58em;
    }

    .book-intro {
        margin-top: 22px;

        font-size: 1rem;
        line-height: 1.65;
    }


    /* -------------------------
       FACTS
       ------------------------- */

    .book-facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px;

        margin-top: 30px;
    }

    .book-fact-icon {
        width: 52px;
        height: 52px;

        font-size: 1.3rem;
    }


    /* -------------------------
       AMAZON
       ------------------------- */

    .book-purchase {
        margin-top: 32px;
    }

    .book-amazon-button {
        max-width: none;
    }

    .amazon-note {
        max-width: none;
    }


    /* -------------------------
       PEEK INSIDE
       ------------------------- */

    .book-preview-section {
        padding: 75px 0 80px;
    }

    .book-preview-section::before {
        top: -40px;

        height: 65px;
    }

    .book-section-heading {
        margin-bottom: 35px;
    }

    .book-section-heading h2 {
        font-size: 2.7rem;
    }


    /*
       Two-column gallery works much better
       than shrinking all five pages into one row.
    */

    .book-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .book-preview:nth-child(1) {
        transform: rotate(-2deg);
    }

    .book-preview:nth-child(2) {
        transform: rotate(2deg);
    }

    .book-preview:nth-child(3) {
        transform: rotate(1deg);
    }

    .book-preview:nth-child(4) {
        transform: rotate(-2deg);
    }

    .book-preview:nth-child(5) {
        grid-column: 1 / -1;

        width: calc(50% - 7px);

        margin-inline: auto;

        transform: rotate(1deg);
    }

    .book-preview-image {
        padding: 5px;
    }


    /* -------------------------
       BENEFITS
       ------------------------- */

    .book-benefits {
        padding: 75px 0;
    }

    .book-benefits-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .book-benefit .benefit-icon {
        width: 64px;
        height: 64px;

        margin-bottom: 16px;
    }

    .book-benefit p {
        max-width: 300px;
    }


    /* -------------------------
       RELATED BOOKS
       ------------------------- */

    .related-books {
        padding: 5px 0 70px;
    }

    .related-books-card {
        padding: 32px 20px;

        border-radius: 26px;
    }

    .related-books-heading {
        display: block;

        margin-bottom: 35px;
    }

    .related-books-heading .text-link {
        display: inline-block;

        margin-top: 18px;
    }

    .related-books-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .related-book {
        text-align: center;
    }

    .related-book img {
        max-width: 230px;
    }

    .related-book h3 {
        font-size: 1.2rem;
    }
}