/* =====================================================
   AGNILEAF PRESS
   BOOK DETAILS PAGE
===================================================== */


:root {

    --book-green: #12382d;
    --book-dark: #092219;

    --book-orange: #ef7f00;

    --book-gold: #c89a52;

    --book-cream: #faf7f1;

    --book-paper: #fffdf9;

    --book-text: #1b211e;

    --book-muted: #70756f;

    --book-border: #e6dfd4;

    --book-serif: "Playfair Display",
        Georgia,
        serif;

    --book-sans: "DM Sans",
        Arial,
        sans-serif;

}


/* =====================================================
   HEADER
===================================================== */

.brand-logo img {

    width: 190px;

    height: auto;

}


/* =====================================================
   BREADCRUMB
===================================================== */

.book-breadcrumb {

    background: #f4efe7;

    border-bottom: 1px solid var(--book-border);

}


.book-breadcrumb .container {

    min-height: 55px;

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 11px;

    color: #777;

}


.book-breadcrumb a {

    color: var(--book-green);

    font-weight: 700;

}


.book-breadcrumb a:hover {

    color: var(--book-orange);

}


.book-breadcrumb span {

    color: #aaa;

}


.book-breadcrumb strong {

    color: var(--book-orange);

}



/* =====================================================
   BOOK DETAILS HERO
===================================================== */

.book-details-section {

    padding: 95px 0 105px;

    background:

        radial-gradient(circle at 10% 20%,
            rgba(239, 127, 0, .06),
            transparent 30%),

        var(--book-paper);

}


.book-details-grid {

    display: grid;

    grid-template-columns:
        0.85fr 1.15fr;

    gap: 100px;

    align-items: center;

}



/* =====================================================
   BOOK COVER
===================================================== */

.book-cover-area {

    display: flex;

    flex-direction: column;

    align-items: center;

}


.book-cover-wrapper {

    position: relative;

    width: 330px;

    perspective: 1000px;

}


.book-cover {

    height: 350px;

    position: relative;

    z-index: 2;

    overflow: hidden;

    color: white;

    padding: 27px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

/*
    background:

        radial-gradient(circle at 85% 10%,
            rgba(239, 127, 0, .9),
            transparent 28%),
*/
        linear-gradient(145deg,
            #345746,
            #12382d 45%,
            #071b13);


    box-shadow:

        20px 30px 55px rgba(12, 35, 26, .25);


    transform:
        rotateY(-7deg) rotateX(2deg);


    transition:
        transform .45s ease,
        box-shadow .45s ease;

}


.book-cover:hover {

    transform:
        rotateY(0) rotateX(0) translateY(-8px);

    box-shadow:

        25px 35px 65px rgba(12, 35, 26, .30);

}


/* Orange decorative shape */

.book-cover::before {

    content: "";

    position: absolute;

    width: 240px;

    height: 240px;

    border-radius: 50%;

    right: -125px;

    top: -110px;

    border: 1px solid rgba(255, 255, 255, .20);

    box-shadow:

        0 0 0 30px rgba(239, 127, 0, .05),

        0 0 0 60px rgba(239, 127, 0, .03);

}


.book-cover::after {

    content: "";

    position: absolute;

    width: 4px;

    height: 100%;

    left: 0;

    top: 0;

    background: var(--book-orange);

}



/* Cover Top */

.book-cover-top {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    position: relative;

    z-index: 2;

}


.book-cover-top span {

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 4px;

}


.book-cover-top small {

    font-size: 8px;

    letter-spacing: 2px;

    color: #f5c981;

}



/* Cover Middle */

.book-cover-middle {

    position: relative;

    z-index: 2;

}


.book-category {

    display: inline-block;

    padding: 6px 9px;

    border: 1px solid rgba(255, 255, 255, .35);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 18px;

}


.book-cover-middle h2 {

    font-family: var(--book-serif);

    font-size: 31px;

    line-height: 1.15;

    margin: 0;

    font-weight: 600;

}


.cover-line {

    width: 55px;

    height: 2px;

    background: var(--book-orange);

    margin: 22px 0 12px;

}


.book-cover-middle p {

    font-size: 9px;

    letter-spacing: 1px;

    color: #d5dfda;

}



/* Cover Bottom */

.book-cover-bottom {

    position: relative;

    z-index: 2;

    border-top: 1px solid rgba(255, 255, 255, .2);

    padding-top: 14px;

}


.book-cover-bottom span {

    font-size: 9px;

    letter-spacing: 2px;

}



/* Shadow */

.book-shadow {

    position: absolute;

    width: 280px;

    height: 30px;

    bottom: -25px;

    left: 25px;

    background: rgba(0, 0, 0, .22);

    filter: blur(18px);

}



/* =====================================================
   BOOK ACTIONS
===================================================== */

.book-actions {

    display: flex;

    gap: 10px;

    margin-top: 35px;

}


.action-btn {

    border: 1px solid var(--book-border);

    background: white;

    color: var(--book-green);

    padding: 11px 16px;

    cursor: pointer;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .4px;

    transition: .25s;

}


.action-btn:hover {

    border-color:
        var(--book-orange);

    color:
        var(--book-orange);

    transform:
        translateY(-2px);

}


.action-btn span {

    margin-right: 6px;

}



/* =====================================================
   BOOK INFORMATION
===================================================== */

.book-information {

    max-width: 650px;

}


.book-label {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--book-orange);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 20px;

}


.book-label::before {

    content: "";

    width: 28px;

    height: 2px;

    background: var(--book-orange);

}


.book-information h1 {

    font-family:
        var(--book-serif);

    font-size:
        clamp(42px, 5vw, 67px);

    line-height: 1.05;

    font-weight: 600;

    letter-spacing: -2px;

    color: var(--book-green);

    margin: 0 0 25px;

}


.book-information h1 em {

    color: var(--book-orange);

    font-style: italic;

}


.book-intro {

    max-width: 580px;

    color: var(--book-muted);

    font-size: 16px;

    line-height: 1.8;

}



/* =====================================================
   AUTHOR
===================================================== */

.author-block {

    display: flex;

    align-items: center;

    gap: 15px;

    margin: 32px 0;

    padding-bottom: 30px;

    border-bottom: 1px solid var(--book-border);

}


.author-avatar {

    width: 54px;

    height: 54px;

    border-radius: 50%;

    background:

        linear-gradient(145deg,
            var(--book-orange),
            #c95f00);

    color: white;

    display: grid;

    place-items: center;

    font-family: var(--book-serif);

    font-size: 24px;

}


.author-block span {

    display: block;

    color: #999;

    font-size: 8px;

    letter-spacing: 2px;

    font-weight: 800;

    margin-bottom: 3px;

}


.author-block strong {

    font-family:
        var(--book-serif);

    font-size: 18px;

    color:
        var(--book-green);

}



/* =====================================================
   PUBLICATION INFORMATION
===================================================== */

.publication-info {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 13px;

}


.info-item {

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 15px;

    background: #f7f3ec;

}


.info-icon {

    width: 38px;

    height: 38px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border: 1px solid rgba(239, 127, 0, .35);

    color: var(--book-orange);

    font-size: 8px;

    font-weight: 800;

}


.info-item small {

    display: block;

    color: #999;

    font-size: 8px;

    letter-spacing: 1.5px;

    margin-bottom: 2px;

}


.info-item strong {

    display: block;

    color: var(--book-green);

    font-size: 11px;

}



/* =====================================================
   CTA
===================================================== */

.book-cta {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 30px;

}


.primary-book-btn {

    display: inline-flex;

    align-items: center;

    gap: 25px;

    background: var(--book-green);

    color: white;

    padding: 15px 20px;

    font-size: 11px;

    font-weight: 800;

    transition: .25s;

}


.primary-book-btn:hover {

    background: var(--book-orange);

    transform:
        translateY(-2px);

}


.primary-book-btn span {

    font-size: 18px;

}


.secondary-book-btn {

    display: inline-flex;

    align-items: center;

    padding: 15px 20px;

    border: 1px solid var(--book-border);

    color: var(--book-green);

    font-size: 11px;

    font-weight: 800;

}


.secondary-book-btn:hover {

    border-color:
        var(--book-orange);

    color:
        var(--book-orange);

}



/* Availability */

.availability {

    margin-top: 18px;

    font-size: 10px;

    color: #777;

}


.availability span {

    width: 7px;

    height: 7px;

    display: inline-block;

    border-radius: 50%;

    background: #3d9b61;

    margin-right: 7px;

}



/* =====================================================
   DESCRIPTION
===================================================== */

.book-content-section {

    background: var(--book-cream);

    padding: 100px 0;

}


.book-content-grid {

    display: grid;

    grid-template-columns:
        1.4fr .6fr;

    gap: 90px;

}


.section-eyebrow {

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 3px;

    color: var(--book-orange);

    margin: 0 0 12px;

}


.book-description h2 {

    font-family:
        var(--book-serif);

    font-size: 43px;

    line-height: 1.15;

    color: var(--book-green);

    margin: 0 0 25px;

}


.book-description>p {

    color: var(--book-muted);

    line-height: 1.9;

    max-width: 760px;

}


.book-description blockquote {

    margin: 35px 0;

    padding: 25px 30px;

    border-left: 3px solid var(--book-orange);

    background: white;

    color: var(--book-green);

    font-family:
        var(--book-serif);

    font-size: 22px;

    font-style: italic;

}



/* =====================================================
   HIGHLIGHTS
===================================================== */

.book-highlights {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin-top: 35px;

}


.book-highlights>div {

    padding: 23px;

    background: white;

    border: 1px solid var(--book-border);

}


.book-highlights span {

    display: block;

    color: var(--book-orange);

    font-family:
        var(--book-serif);

    font-size: 20px;

    margin-bottom: 7px;

}


.book-highlights strong {

    display: block;

    color: var(--book-green);

    font-family:
        var(--book-serif);

    font-size: 17px;

}


.book-highlights p {

    color: var(--book-muted);

    font-size: 11px;

    line-height: 1.6;

    margin-bottom: 0;

}



/* =====================================================
   SIDEBAR
===================================================== */

.book-sidebar {

    display: flex;

    flex-direction: column;

    gap: 20px;

}


.sidebar-card {

    background: white;

    border: 1px solid var(--book-border);

    padding: 28px;

}


.sidebar-heading span {

    font-size: 9px;

    color: var(--book-orange);

    letter-spacing: 2px;

    font-weight: 800;

}


.sidebar-heading h3 {

    font-family:
        var(--book-serif);

    color: var(--book-green);

    font-size: 23px;

    margin: 5px 0 25px;

}


.detail-row {

    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding: 12px 0;

    border-bottom: 1px solid var(--book-border);

}


.detail-row:last-child {

    border-bottom: 0;

}


.detail-row span {

    color: #888;

    font-size: 10px;

}


.detail-row strong {

    color: var(--book-green);

    font-size: 10px;

    text-align: right;

}



/* =====================================================
   AUTHOR CARD
===================================================== */

.author-card {

    background:
        linear-gradient(145deg,
            var(--book-green),
            #081c14);

    padding: 30px;

    color: white;

    position: relative;

    overflow: hidden;

}


.author-card::after {

    content: "";

    position: absolute;

    width: 170px;

    height: 170px;

    border: 1px solid rgba(239, 127, 0, .35);

    border-radius: 50%;

    right: -80px;

    bottom: -80px;

}


.author-card-icon {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    background: var(--book-orange);

    font-family: var(--book-serif);

    font-size: 22px;

}


.author-card p {

    color: #ef7f00;

    font-size: 8px;

    letter-spacing: 2px;

    font-weight: 800;

    margin: 25px 0 4px;

}


.author-card h3 {

    font-family:
        var(--book-serif);

    font-size: 24px;

    margin: 0;

}


.author-card>span {

    color: #b9c9c1;

    font-size: 10px;

}


.author-card a {

    display: inline-block;

    margin-top: 20px;

    color: #f1c785;

    font-size: 10px;

    font-weight: 800;

    position: relative;

    z-index: 2;

}



/* =====================================================
   PUBLISHING PROCESS
===================================================== */

.mini-process {

    padding: 95px 0;

    background:
        var(--book-green);

    color: white;

}


.mini-process-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 30px;

    margin-bottom: 55px;

}


.mini-process-header h2 {

    font-family:
        var(--book-serif);

    font-size: 43px;

    line-height: 1.1;

    margin: 0;

}


.process-btn {

    background:
        var(--book-orange);

    color: white;

    padding: 15px 20px;

    font-size: 10px;

    font-weight: 800;

    display: inline-flex;

    align-items: center;

    gap: 20px;

}


.process-btn span {

    font-size: 17px;

}


.process-line {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    border-top: 1px solid rgba(255, 255, 255, .18);

}


.process-step {

    padding: 25px 20px 0;

    border-right: 1px solid rgba(255, 255, 255, .12);

}


.process-step:last-child {

    border-right: 0;

}


.process-step>span {

    color: var(--book-orange);

    font-family:
        var(--book-serif);

    font-size: 23px;

}


.process-step h3 {

    font-family:
        var(--book-serif);

    font-size: 19px;

    margin: 8px 0;

}


.process-step p {

    color: #b9c8c0;

    font-size: 10px;

    line-height: 1.6;

}



/* =====================================================
   RELATED BOOKS
===================================================== */

.related-books {

    padding: 95px 0;

    background:
        var(--book-paper);

}


.related-heading {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 40px;

}


.related-heading h2 {

    font-family:
        var(--book-serif);

    color: var(--book-green);

    font-size: 43px;

    margin: 0;

}


.view-all {

    color: var(--book-green);

    font-size: 11px;

    font-weight: 800;

}


.view-all:hover {

    color: var(--book-orange);

}


.related-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;

}


.related-card {

    cursor: pointer;

}


.related-cover {

    height: 280px;

    padding: 25px;

    display: flex;

    align-items: flex-end;

    color: white;

    position: relative;

    overflow: hidden;

    transition: .3s;

    box-shadow:
        0 14px 30px rgba(0, 0, 0, .12);

}


.related-cover:hover {

    transform:
        translateY(-7px);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, .18);

}


.related-cover span {

    font-family:
        var(--book-serif);

    font-size: 22px;

    line-height: 1.15;

    border-left: 2px solid #f1c785;

    padding-left: 12px;

}


.cover-one {

    background:
        linear-gradient(145deg,
            #536e60,
            #0d271d);

}


.cover-two {

    background:
        linear-gradient(145deg,
            #d0782d,
            #60311c);

}


.cover-three {

    background:
        linear-gradient(145deg,
            #9b835f,
            #403729);

}


.cover-four {

    background:
        linear-gradient(145deg,
            #60726f,
            #162d29);

}


.related-card h3 {

    font-family:
        var(--book-serif);

    color:
        var(--book-green);

    font-size: 17px;

    margin:
        15px 0 3px;

}


.related-card p {

    color:
        var(--book-muted);

    font-size: 10px;

    margin: 0;

}



/* =====================================================
   MODAL
===================================================== */

.cover-modal {

    position: fixed;

    inset: 0;

    z-index: 999;

    display: none;

    align-items: center;

    justify-content: center;

}


.cover-modal.show {

    display: flex;

}


.modal-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(5, 17, 12, .85);

    backdrop-filter:
        blur(8px);

}


.cover-modal-content {

    position: relative;

    z-index: 2;

    animation:
        modalIn .35s ease;

}


@keyframes modalIn {

    from {

        opacity: 0;

        transform:
            scale(.9) translateY(20px);

    }

    to {

        opacity: 1;

        transform:
            scale(1) translateY(0);

    }

}


.modal-close {

    position: absolute;

    right: -50px;

    top: -20px;

    width: 40px;

    height: 40px;

    border: 0;

    background: white;

    color: var(--book-green);

    border-radius: 50%;

    font-size: 25px;

    cursor: pointer;

}


.large-book-cover {

    width: 400px;

    height: 570px;

    color: white;

    padding: 32px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background:

        radial-gradient(circle at 85% 10%,
            rgba(239, 127, 0, .95),
            transparent 28%),

        linear-gradient(145deg,
            #345746,
            #12382d 45%,
            #071b13);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .4);

}


.large-book-cover .book-cover-middle h2 {

    font-size: 39px;

}



/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1050px) {

    .book-details-grid {

        grid-template-columns:
            1fr 1fr;

        gap: 50px;

    }


    .book-cover-wrapper {

        width: 285px;

    }


    .book-cover {

        height: 410px;

    }


    .book-information h1 {

        font-size: 48px;

    }


    .related-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}



@media (max-width: 800px) {

    .book-details-grid {

        grid-template-columns: 1fr;

        gap: 70px;

    }


    .book-cover-wrapper {

        width: 310px;

    }


    .book-cover {

        height: 440px;

    }


    .book-information {

        max-width: none;

    }


    .book-content-grid {

        grid-template-columns: 1fr;

        gap: 50px;

    }


    .process-line {

        grid-template-columns:
            1fr 1fr;

    }


    .process-step {

        border-bottom: 1px solid rgba(255, 255, 255, .12);

    }


    .mini-process-header {

        align-items: flex-start;

        flex-direction: column;

    }

}



@media (max-width: 560px) {

    .book-details-section {

        padding: 65px 0;

    }


    .book-cover-wrapper {

        width: 250px;

    }


    .book-cover {

        height: 365px;

        padding: 22px;

    }


    .book-cover-middle h2 {

        font-size: 24px;

    }


    .book-information h1 {

        font-size: 40px;

        letter-spacing: -1px;

    }


    .publication-info {

        grid-template-columns: 1fr;

    }


    .book-highlights {

        grid-template-columns: 1fr;

    }


    .book-description h2 {

        font-size: 34px;

    }


    .process-line {

        grid-template-columns: 1fr;

    }


    .related-grid {

        grid-template-columns: 1fr 1fr;

        gap: 14px;

    }


    .related-cover {

        height: 220px;

        padding: 17px;

    }


    .related-cover span {

        font-size: 17px;

    }


    .related-heading {

        align-items: flex-start;

        flex-direction: column;

        gap: 15px;

    }


    .related-heading h2 {

        font-size: 35px;

    }


    .large-book-cover {

        width: 285px;

        height: 410px;

        padding: 24px;

    }


    .large-book-cover .book-cover-middle h2 {

        font-size: 28px;

    }


    .modal-close {

        right: -10px;

        top: -55px;

    }

}



/* =====================================================
   PRINT
===================================================== */

@media print {

    .header,
    .book-breadcrumb,
    .book-actions,
    .book-cta,
    .mini-process,
    .related-books,
    .footer {

        display: none !important;

    }


    .book-details-section {

        padding: 20px;

    }


    .book-details-grid {

        grid-template-columns:
            300px 1fr;

    }

}