/* ==========================================================
   Where to Buy page
   Loads after book-page.css and inherits its fonts and colors.
   Upload to: /css/where-to-buy.css
========================================================== */

/* ---------- Compact hero (this page only) ---------- */
.wtb-hero {
    min-height: 0;
    height: auto;
    /* top padding is left to book-page.css so the fixed header is cleared */
    padding-bottom: 2.5rem;
}

.wtb-hero .book-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    min-height: 0;
}

/* Change 220px to make the cover bigger or smaller */
.wtb-hero .book-cover-large {
    flex: 0 0 220px;
    width: 220px;
    max-width: 220px;
    margin: 0;
}

.wtb-hero .book-cover-large img {
    width: 100%;
    height: auto;
    display: block;
}

.wtb-hero .book-hero-text {
    flex: 0 1 auto;
}

.wtb-hero + .wtb-section {
    padding-top: 2.5rem;
}

@media (max-width: 768px) {
    .wtb-hero .book-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .wtb-hero .book-cover-large {
        flex-basis: auto;
        width: 160px;
        max-width: 160px;
    }
}

.wtb-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.95rem;
    color: #c9a961;
    margin: 0 0 0.5rem;
}

.wtb-section {
    padding: 4rem 1.5rem;
}

.wtb-container {
    max-width: 1100px;
    margin: 0 auto;
}

.wtb-group {
    margin-bottom: 3.5rem;
}

.wtb-group-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 1.25rem;
    margin: 0 0 1.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.45);
}

/* Cards centre themselves, so a group of 1, 3 or 5 all look balanced */
.wtb-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.wtb-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 240px;
    max-width: 100%;
    padding: 1.5rem 1.25rem;
    border: 1px solid rgba(201, 169, 97, 0.45);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wtb-card:hover,
.wtb-card:focus {
    transform: translateY(-4px);
    border-color: #c9a961;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/* Logo sits on a white tile so any retailer logo reads cleanly */
.wtb-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 110px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #ffffff;
    border-radius: 4px;
    box-sizing: border-box;
}

.wtb-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Shown only until a logo file is uploaded */
.wtb-logo-text {
    color: #222222;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
}

.wtb-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.wtb-note {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 0.35rem;
}

.wtb-buy {
    margin-top: auto;
    padding-top: 0.6rem;
    color: #c9a961;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.wtb-donation {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    text-align: center;
    font-size: 0.95rem;
    font-style: italic;
}

.wtb-donation a {
    color: #c9a961;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .wtb-section {
        padding: 2.5rem 1rem;
    }

    .wtb-card {
        width: 100%;
    }
}