/* Wedding Photo Books - SEO landing page
   Uses global tokens from style.css. Mirrors the QR cards landing page. */

/* ---- Section rhythm ---- */
.wpb-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    text-align: center;
    margin: 0 0 var(--spacing-sm);
    color: var(--color-text);
}

.wpb-section-subtitle {
    max-width: 640px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
    color: var(--color-text-light);
    line-height: 1.65;
}

.wpb-hero,
.wpb-how,
.wpb-books,
.wpb-keepsake,
.wpb-features,
.wpb-faq {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.wpb-how,
.wpb-keepsake { background-color: var(--color-secondary); }

/* ---- Hero ---- */
.wpb-hero {
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-background) 100%);
}

.wpb-hero-inner {
    text-align: center;
}

.wpb-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-xs);
}

.wpb-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.15;
    margin: 0 0 var(--spacing-md);
}

.wpb-hero-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--color-text-light);
    max-width: 560px;
    margin: 0 auto var(--spacing-md);
}

/* Mobile hero photo; replaced by a background image on desktop. */
.wpb-hero-image {
    display: block;
    width: 100%;
    max-width: 520px;
    margin: 0 auto var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px rgba(44, 44, 44, 0.10);
}

.wpb-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xs) var(--spacing-md);
}

.wpb-hero-meta span {
    position: relative;
    font-size: 0.92rem;
    color: var(--color-text);
    font-weight: 500;
}

.wpb-hero-meta span:not(:last-child)::after {
    content: "\00b7";
    position: absolute;
    right: calc(var(--spacing-md) / -2);
    color: var(--color-primary);
}

/* ---- How it works ---- */
.wpb-how-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.wpb-how-step { text-align: center; }

.wpb-how-num {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-sm);
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #fff;
    /* Body font (Inter) has symmetric vertical metrics, so the digit centres
       cleanly - Playfair's lopsided metrics left it sitting high. */
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* tiny downward nudge to optically centre the digit (padding shifts the
       flex-centred glyph by half its value, so this is ~2px down) */
    padding-top: 4px;
}

.wpb-how-step h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0 0 var(--spacing-xs);
}

.wpb-how-step p {
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

/* ---- Choose your book ---- */
.wpb-book-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.wpb-book-grid--two { max-width: 640px; }
.wpb-book-grid--one { max-width: 340px; }

.wpb-book-card {
    position: relative;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
}

.wpb-book-card--popular {
    border-color: var(--color-primary);
    box-shadow: 0 8px 28px rgba(139, 157, 131, 0.18);
}

.wpb-book-badge {
    position: absolute;
    top: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
}

.wpb-book-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0 0 var(--spacing-xs);
}

.wpb-book-size {
    color: var(--color-text);
    margin: 0 0 0.25rem;
}

.wpb-book-pages {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0;
}

.wpb-book-note {
    color: var(--color-primary-dark);
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0.5rem 0 0;
}

.wpb-book-price {
    margin-top: var(--spacing-md);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-text);
}

.wpb-books-note {
    max-width: 620px;
    margin: var(--spacing-lg) auto 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ---- Features ---- */
.wpb-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.wpb-feature {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 6px 20px rgba(44, 44, 44, 0.07);
}

.wpb-feature h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0 0 var(--spacing-xs);
}

.wpb-feature p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ---- FAQ ---- */
.wpb-faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.wpb-faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-sm) 0;
}

.wpb-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text);
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

.wpb-faq-item summary::-webkit-details-marker { display: none; }

.wpb-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: -0.1em;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-primary);
    line-height: 1;
}

.wpb-faq-item[open] summary::after { content: "\2212"; }

.wpb-faq-item p {
    margin: var(--spacing-sm) 0 0;
    color: var(--color-text-light);
    line-height: 1.65;
}

/* ---- Image + content split (the two book sections) ---- */
.wpb-split-image {
    margin: 0 auto var(--spacing-lg);
    max-width: 520px;
}

.wpb-split-image img {
    display: block;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px rgba(44, 44, 44, 0.10);
}

/* ---- Tablet / desktop ---- */
@media (min-width: 700px) {
    .wpb-how-steps { grid-template-columns: repeat(3, 1fr); }
    .wpb-book-grid--two { grid-template-columns: repeat(2, 1fr); }
    .wpb-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .wpb-split {
        display: flex;
        align-items: center;
        gap: var(--spacing-xl);
    }
    .wpb-split--reverse { flex-direction: row-reverse; }
    .wpb-split-image {
        flex: 0 0 44%;
        margin: 0;
        max-width: none;
    }
    .wpb-split-content { flex: 1; }
    /* Left-align the heading, copy and cards beside the image. */
    .wpb-split .wpb-section-title,
    .wpb-split .wpb-section-subtitle {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }
    .wpb-split-content .wpb-book-grid { margin: 0; }
}

@media (min-width: 900px) {
    /* Hero becomes a single band with the photo bled in from the right and a
       gradient fading it into the page behind the copy - same as the homepage. */
    .wpb-hero-inner {
        display: flex;
        align-items: center;
        text-align: left;
        min-height: 400px;
        padding: var(--spacing-xl);
        border-radius: var(--radius-lg);
        background:
            linear-gradient(to right,
                var(--color-background) 0%,
                var(--color-background) 42%,
                rgba(254, 253, 251, 0.85) 54%,
                rgba(254, 253, 251, 0.25) 70%,
                rgba(254, 253, 251, 0) 84%),
            url('/images/photobook-on-coffee-table.jpg') right center / auto 100% no-repeat;
    }
    .wpb-hero-content { max-width: 540px; }
    .wpb-hero-image { display: none; }
    .wpb-hero-lead { margin-left: 0; margin-right: 0; }
    .wpb-hero-meta { justify-content: flex-start; }
}
