/* =========================================================
   BOOKO
   MAIN WEBSITE STYLES
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --background: #f5ead8;
    --background-light: #fbf5eb;

    --brown-dark: #3e2b1f;
    --brown: #72543e;
    --brown-light: #a98260;

    --tan: #d7b994;
    --tan-light: #ead7bd;

    --text: #3e2b1f;
    --text-light: #765f4c;

    --white: #fffaf2;

    --max-width: 1200px;

    --radius: 14px;

    --shadow:
        0 10px 30px rgba(62, 43, 31, 0.12);

}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    background: var(--background);
    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;

    min-height: 100vh;
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    display: block;
    max-width: 100%;
}


button,
input,
textarea {
    font: inherit;
}


main {
    width: 100%;
}


section {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: 0 auto;
}


h1,
h2,
h3 {
    line-height: 1.2;
}


p {
    color: var(--text-light);
}


/* =========================================================
   EYEBROW
   ========================================================= */

.eyebrow {
    color: var(--brown);

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 12px;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    min-height: 90px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: relative;

    z-index: 100;
}


.logo {
    width: 65px;
    height: 65px;

    object-fit: cover;

    border-radius: 50%;
}


.nav-links {
    list-style: none;

    display: flex;

    align-items: center;

    gap: 35px;
}


.nav-links a {
    color: var(--brown-dark);

    font-size: 0.95rem;

    font-weight: 600;

    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}


.nav-links a:hover,
.nav-links a.active {
    color: var(--brown-light);
}


/* =========================================================
   BURGER
   ========================================================= */

.burger {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;

    border: none;

    background: transparent;

    cursor: pointer;
}


.burger span {
    display: block;

    width: 100%;
    height: 3px;

    margin: 5px 0;

    background: var(--brown-dark);

    border-radius: 5px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


.burger.active span:nth-child(1) {
    transform:
        translateY(8px)
        rotate(45deg);
}


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


.burger.active span:nth-child(3) {
    transform:
        translateY(-8px)
        rotate(-45deg);
}


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

.hero {
    min-height: 650px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 60px;

    padding-top: 60px;
    padding-bottom: 100px;
}


.hero-content {
    flex: 1;

    max-width: 600px;
}


.hero h1 {
    color: var(--brown-dark);

    font-size:
        clamp(
            3rem,
            6vw,
            5.5rem
        );

    margin-bottom: 25px;
}


.hero h1 span {
    color: var(--brown);
}


.hero-text {
    max-width: 550px;

    font-size: 1.1rem;

    margin-bottom: 35px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.hero-buttons {
    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}


.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 13px 24px;

    border-radius: 8px;

    font-weight: 700;

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


.btn:hover {
    transform: translateY(-3px);
}


.btn-primary {
    background: var(--brown);

    color: var(--white);

    box-shadow: var(--shadow);
}


.btn-primary:hover {
    background: var(--brown-dark);
}


.btn-secondary {
    border: 2px solid var(--brown);

    color: var(--brown);
}


.btn-secondary:hover {
    background: var(--tan-light);
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.hero-image {
    flex: 1;

    display: flex;

    justify-content: center;
}


.hero-image img {
    width: min(100%, 450px);

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 25px;

    box-shadow: var(--shadow);
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-heading {
    max-width: 700px;

    margin: 0 auto 60px;

    text-align: center;
}


.section-heading h2 {
    color: var(--brown-dark);

    font-size:
        clamp(
            2rem,
            4vw,
            3rem
        );

    margin-bottom: 20px;
}


/* =========================================================
   MISSION PREVIEW
   ========================================================= */

.mission-preview {
    padding-top: 100px;

    padding-bottom: 120px;

    text-align: center;
}


.mission-cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

    text-align: left;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    background: var(--background-light);

    padding: 35px;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

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


.card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 35px
        rgba(62, 43, 31, 0.18);
}


.card-icon {
    font-size: 2rem;

    margin-bottom: 20px;
}


.card h3 {
    font-size: 1.3rem;

    margin-bottom: 10px;
}


/* =========================================================
   BOOK SECTIONS
   ========================================================= */

.books-preview {
    padding-top: 80px;

    padding-bottom: 120px;
}


.book-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;
}


.book {
    overflow: hidden;

    display: block;

    background:
        var(--background-light);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

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


.book:hover {
    transform: translateY(-6px);

    box-shadow:
        0 16px 35px
        rgba(62, 43, 31, 0.18);
}


.book > img {
    width: 100%;

    height: 280px;

    object-fit: cover;
}


.book-info {
    padding: 20px;
}


.book-info h3 {
    color: var(--brown-dark);

    margin-bottom: 5px;
}


.book-price {
    color: var(--brown-light) !important;

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 1px;

    margin-bottom: 7px;
}


.book-info p:last-child {
    font-size: 0.9rem;
}


/* =========================================================
   INNER PAGE HEADER
   ========================================================= */

.page-header {
    max-width: 750px;

    text-align: center;

    padding-top: 100px;

    padding-bottom: 90px;
}


.page-header h1 {
    color: var(--brown-dark);

    font-size:
        clamp(
            3rem,
            6vw,
            5rem
        );

    margin-bottom: 20px;
}


.page-header > p:last-child {
    max-width: 600px;

    margin: 0 auto;

    font-size: 1.1rem;
}


/* =========================================================
   BOOKS PAGE
   ========================================================= */

.books-page {
    padding-bottom: 120px;
}


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


/* =========================================================
   MISSION PAGE
   ========================================================= */

.mission-page {
    padding-bottom: 120px;
}


.mission-story {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;

    gap: 70px;

    margin-bottom: 100px;
}


.mission-image img {
    width: 100%;

    max-width: 500px;

    margin: 0 auto;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 25px;

    box-shadow: var(--shadow);
}


.mission-text h2 {
    color: var(--brown-dark);

    margin-bottom: 25px;

    font-size:
        clamp(
            2rem,
            4vw,
            3rem
        );
}


.mission-text p {
    margin-bottom: 18px;
}


.mission-values {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-page {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;

    padding-bottom: 120px;

    align-items: start;
}


.contact-info h2 {
    color: var(--brown-dark);

    margin-bottom: 25px;

    font-size:
        clamp(
            2rem,
            4vw,
            3rem
        );
}


.contact-info > p {
    margin-bottom: 35px;
}


.contact-details {
    display: flex;

    flex-direction: column;

    gap: 25px;
}


.contact-details > div {
    display: flex;

    align-items: center;

    gap: 18px;
}


.contact-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 50px;
    height: 50px;

    flex-shrink: 0;

    background: var(--tan-light);

    border-radius: 50%;

    font-size: 1.3rem;
}


.contact-details h3 {
    color: var(--brown-dark);

    margin-bottom: 2px;
}


.contact-details p {
    font-size: 0.9rem;
}


/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact-form {
    background: var(--background-light);

    padding: 35px;

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}


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


.form-group label {
    display: block;

    color: var(--brown-dark);

    margin-bottom: 8px;

    font-weight: 700;
}


.form-group input,
.form-group textarea {
    width: 100%;

    padding: 14px 16px;

    border: 2px solid var(--tan);

    border-radius: 8px;

    background: var(--white);

    color: var(--brown-dark);

    font-family: inherit;

    font-size: 1rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brown);

    box-shadow:
        0 0 0 3px
        rgba(114, 84, 62, 0.12);
}


.form-group textarea {
    resize: vertical;

    min-height: 150px;
}


.contact-form .btn {
    border: none;

    cursor: pointer;

    font-family: inherit;

    font-size: 1rem;

    width: 100%;
}


.form-message {
    display: none;

    margin-top: 15px;

    text-align: center;

    font-weight: 600;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background: var(--brown-dark);

    color: var(--white);

    padding:
        60px
        20px
        25px;
}


.footer-content {
    width: min(
        100%,
        var(--max-width)
    );

    margin: 0 auto;

    display: flex;

    justify-content: space-between;

    gap: 40px;

    padding-bottom: 40px;
}


.footer-logo {
    width: 55px;
    height: 55px;

    object-fit: cover;

    border-radius: 50%;

    margin-bottom: 15px;
}


.footer-content p {
    color: var(--tan-light);
}


.footer-links {
    display: flex;

    gap: 25px;

    align-items: center;

    flex-wrap: wrap;
}


.footer-links a {
    color: var(--tan-light);

    transition:
        color 0.2s ease;
}


.footer-links a:hover {
    color: var(--white);
}


.copyright {
    width: min(
        100%,
        var(--max-width)
    );

    margin: 0 auto;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.15);

    color: var(--tan-light);

    font-size: 0.85rem;
}


/* =========================================================
   CHECKOUT PAGE
   ========================================================= */

.checkout-page {
    background: #f5f7fb;

    color: #222;
}


.mock-warning {
    background: #fff3cd;

    color: #856404;

    text-align: center;

    padding: 14px 20px;

    font-size: 14px;

    font-weight: 700;

    border-bottom:
        1px solid #ffeeba;
}


/* =========================================================
   CHECKOUT NAV
   ========================================================= */

.checkout-nav {
    width: 100%;

    min-height: 75px;

    background: white;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        0
        max(5%, calc((100% - 1100px) / 2));

    border-bottom:
        1px solid #e5e7eb;
}


.checkout-logo {
    color: #111827;

    font-size: 30px;

    font-weight: 800;
}


.checkout-nav-links {
    display: flex;

    gap: 30px;
}


.checkout-nav-links a {
    color: #4b5563;

    font-weight: 600;

    transition:
        color 0.2s ease;
}


.checkout-nav-links a:hover {
    color: #2563eb;
}


/* =========================================================
   CHECKOUT CONTAINER
   ========================================================= */

.checkout {
    width: 90%;

    max-width: 1100px;

    margin: 60px auto;
}


.checkout-header {
    text-align: center;

    margin-bottom: 40px;
}


.checkout-header h1 {
    color: #111827;

    font-size: 42px;

    margin-bottom: 10px;
}


.checkout-header p:last-child {
    color: #6b7280;

    font-size: 17px;
}


.checkout-container {
    display: grid;

    grid-template-columns:
        1.5fr 1fr;

    gap: 30px;

    align-items: start;
}


/* =========================================================
   CHECKOUT PANELS
   ========================================================= */

.payment,
.order {
    background: white;

    border-radius: 14px;

    padding: 30px;

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.07);
}


.payment h2,
.order h2 {
    color: #111827;

    margin-bottom: 25px;
}


/* =========================================================
   MOCK NOTICE
   ========================================================= */

.mock-notice {
    background: #fef3c7;

    border:
        1px solid #f59e0b;

    border-radius: 10px;

    padding: 18px;

    margin-bottom: 30px;
}


.mock-notice strong {
    display: block;

    color: #92400e;

    margin-bottom: 7px;
}


.mock-notice p {
    color: #92400e;

    line-height: 1.5;

    font-size: 14px;
}


/* =========================================================
   CHECKOUT FORM
   ========================================================= */

.form-row {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;
}


.checkout-page .form-group {
    display: flex;

    flex-direction: column;

    margin-bottom: 20px;
}


.checkout-page .form-group label {
    color: #222;

    font-weight: 600;

    margin-bottom: 8px;

    font-size: 14px;
}


.checkout-page .form-group input {
    width: 100%;

    padding: 13px 14px;

    border:
        1px solid #d1d5db;

    border-radius: 7px;

    background: white;

    color: #111827;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.checkout-page .form-group input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.1);
}


.billing-title {
    margin-top: 35px;
}


/* =========================================================
   MOCK ORDER BUTTON
   ========================================================= */

.mock-order {
    width: 100%;

    border: none;

    padding: 15px;

    border-radius: 8px;

    background: #2563eb;

    color: white;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    margin-top: 10px;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


.mock-order:hover {
    background: #1d4ed8;

    transform: translateY(-1px);
}


.no-payment {
    text-align: center;

    margin-top: 15px;

    color: #6b7280;

    font-size: 13px;
}


.checkout-message {
    display: none;

    margin-top: 15px;

    padding: 12px;

    background: #ecfdf5;

    color: #065f46;

    border-radius: 8px;

    text-align: center;

    font-weight: 600;
}


/* =========================================================
   ORDER SUMMARY
   ========================================================= */

.order {
    position: sticky;

    top: 25px;
}


.order-book {
    display: flex;

    gap: 18px;

    padding-bottom: 25px;

    border-bottom:
        1px solid #e5e7eb;
}


.order-book-image {
    width: 90px;

    height: 120px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 5px;
}


.order-book-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}


.order-book-info h3 {
    color: #111827;

    margin-bottom: 8px;
}


.order-book-info p {
    color: #6b7280;

    margin-bottom: 12px;
}


.order-book-info span {
    font-size: 14px;

    color: #6b7280;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.summary {
    margin-top: 25px;
}


.summary-row {
    display: flex;

    justify-content: space-between;

    margin-bottom: 15px;

    color: #6b7280;
}


.summary hr {
    border: none;

    border-top:
        1px solid #e5e7eb;

    margin: 20px 0;
}


.summary-total {
    display: flex;

    justify-content: space-between;

    font-size: 21px;
}


.summary-total span {
    color: #111827;
}


.summary-total strong {
    color: #111827;
}


/* =========================================================
   CART
   ========================================================= */

.cart-count {
    margin-top: 25px;

    background: #f3f4f6;

    padding: 13px;

    text-align: center;

    border-radius: 8px;

    font-weight: 600;

    color: #374151;
}


/* =========================================================
   CHECKOUT FOOTER
   ========================================================= */

.checkout-footer {
    text-align: center;

    padding: 30px;

    color: #6b7280;

    font-size: 14px;

    background: #f5f7fb;
}


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

@media (max-width: 900px) {

    .hero {
        gap: 35px;
    }


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


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


    .mission-cards {
        grid-template-columns: 1fr;
    }


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


    .mission-story {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    .mission-image {
        order: 1;
    }


    .mission-text {
        order: 2;
    }


    .mission-values {
        grid-template-columns: 1fr;
    }


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

        gap: 50px;
    }


    /* Checkout */

    .checkout-container {
        grid-template-columns: 1fr;
    }


    .order {
        position: static;

        order: -1;
    }

}


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

@media (max-width: 700px) {

    /* Navbar */

    .navbar {
        min-height: 80px;
    }


    .burger {
        display: block;
    }


    .nav-links {
        display: none;

        position: absolute;

        top: 80px;

        left: 0;

        width: 100%;

        padding: 20px;

        background:
            var(--background-light);

        border-radius: 12px;

        box-shadow: var(--shadow);

        flex-direction: column;

        align-items: stretch;

        gap: 0;
    }


    .nav-links.show {
        display: flex;
    }


    .nav-links li {
        width: 100%;
    }


    .nav-links a {
        display: block;

        width: 100%;

        padding: 12px;

        border-radius: 8px;
    }


    .nav-links a:hover {
        background: var(--tan-light);
    }


    /* Hero */

    .hero {
        min-height: auto;

        flex-direction: column;

        text-align: center;

        padding-top: 60px;

        padding-bottom: 90px;
    }


    .hero-content {
        max-width: 100%;
    }


    .hero-text {
        margin-left: auto;

        margin-right: auto;
    }


    .hero-buttons {
        justify-content: center;
    }


    .hero-image {
        width: 100%;
    }


    .hero-image img {
        width: min(100%, 350px);
    }


    /* Sections */

    .mission-preview,
    .books-preview {
        padding-top: 70px;

        padding-bottom: 80px;
    }


    /* Books */

    .book-grid,
    .books-page .book-grid {
        grid-template-columns: 1fr;
    }


    .book > img {
        height: 320px;
    }


    /* Inner pages */

    .page-header {
        padding-top: 70px;

        padding-bottom: 60px;
    }


    .books-page,
    .mission-page,
    .contact-page {
        padding-bottom: 80px;
    }


    /* Footer */

    .footer-content {
        flex-direction: column;
    }


    .footer-links {
        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }


    /* Checkout */

    .checkout-nav {
        padding: 15px 5%;

        flex-direction: column;

        gap: 15px;
    }


    .checkout-nav-links {
        width: 100%;

        justify-content: center;

        gap: 15px;

        flex-wrap: wrap;
    }


    .checkout {
        width: 94%;

        margin-top: 40px;
    }


    .checkout-header h1 {
        font-size: 32px;
    }


    .payment,
    .order {
        padding: 20px;
    }


    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .mock-warning {
        font-size: 12px;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    section {
        width:
            min(
                calc(100% - 25px),
                var(--max-width)
            );
    }


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


    .hero-buttons {
        flex-direction: column;
    }


    .btn {
        width: 100%;
    }


    .checkout-nav-links {
        font-size: 0.85rem;
    }


    .checkout-logo {
        font-size: 26px;
    }

}