/* ============================================================
   WESTCOTT'S DECORATING - BATHROOMS (v2.7 §22 redesign)
   Content/images/palette/typeface preserved; layout redesigned
   to the homepage language (alternating rows + overlap accent).
   Page prefix: wb-
   ============================================================ */

/* ============================================================
   INNER HERO
   ============================================================ */
.wb-hero {
    position: relative;
    background-image:
        linear-gradient(90deg, rgba(29,31,32,0.84) 0%, rgba(29,31,32,0.58) 55%, rgba(29,31,32,0.34) 100%),
        url('/images/bathrooms-top.jpg');
    background-size: cover;
    background-position: center;
    color: var(--grey);
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.wb-hero-inner { max-width: 640px; }
.wb-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-light);
    margin-bottom: 16px;
}
.wb-hero h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.wb-hero p {
    font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
    line-height: 1.6;
    margin: 0;
    max-width: 46ch;
    color: rgba(236,235,233,0.92);
}

/* ============================================================
   ALTERNATING CONTENT ROWS
   ============================================================ */
.wb-section { padding: var(--section-y) 0; background: var(--white); }
.wb-section--alt { background: var(--grey); }

.wb-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}
.wb-row--reverse .wb-media { order: -1; }

.wb-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* heading, rule, list, CTA share the left edge */
}
.wb-text h2 {
    font-size: var(--fs-h2);
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.18;
    margin: 0 0 8px 0;
}
.wb-text__rule {
    width: 54px; height: 3px;
    background: var(--brand);
    border-radius: 2px;
    margin: 0 0 24px 0;
}

.wb-list { list-style: none; padding: 0; margin: 0; }
.wb-list li {
    font-size: var(--fs-body);
    color: var(--charcoal);
    line-height: 1.6;
    padding: 12px 0 12px 34px;
    position: relative;
    border-bottom: 1px solid var(--grey-line);
}
.wb-list li:last-child { border-bottom: none; }
.wb-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 13px;
    font-size: 0.9rem;
    color: var(--brand);
}

/* Media with measured overlap accent (offset gold frame, desktop only) */
.wb-media { position: relative; display: grid; }
.wb-media img {
    position: relative;
    z-index: 1;
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    grid-area: 1 / 1;
}
.wb-media::before {
    content: '';
    grid-area: 1 / 1;
    border: 2px solid var(--brand);
    border-radius: var(--radius-lg);
    transform: translate(18px, 18px);
    z-index: 0;
}
.wb-row--reverse .wb-media::before { transform: translate(-18px, 18px); }


.wb-cta { margin-top: 28px; }
@media (max-width: 900px) { .wb-cta { margin-top: 24px; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .wb-hero {
        background-image:
            linear-gradient(rgba(29,31,32,0.7), rgba(29,31,32,0.7)),
            url('/images/bathrooms-top.jpg');
        text-align: center;
    }
    .wb-hero-inner { max-width: 100%; }
    .wb-hero p { max-width: 100%; margin-inline: auto; }

    .wb-row { grid-template-columns: 1fr; gap: 32px; }
    .wb-row--reverse .wb-media { order: 0; }
    .wb-media { max-width: 460px; margin-inline: auto; }
    .wb-media::before { display: none; }
    .wb-text { align-items: center; text-align: center; }
    .wb-text__rule { margin-inline: auto; }
    .wb-list { text-align: left; max-width: 380px; }
}

@media (prefers-reduced-motion: reduce) {
    .wb-media img { transition: none; }
}
