/* ============================================================
   3 RACCOONS IN CANADA — BOOK PAGE
   ============================================================ */
.lmibc-book-page {
    font-family: var(--font-body);
}

/* Shared section styles */
.rb-section {
    padding: 100px 0 140px;
    position: relative;
    overflow: hidden;
}

/* Two-column layout */
.rb-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.rb-two-col--reverse { direction: rtl; }
.rb-two-col--reverse > * { direction: ltr; }

.rb-col-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.rb-col-image img {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}
.rb-col-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--ink);
    margin-bottom: 20px;
}
.rb-body { font-size: 1.05rem; line-height: 1.85; color: var(--ink-mid); }
.rb-body p { margin-bottom: 1em; }
.rb-body p:last-child { margin-bottom: 0; }

/* HERO — full-bleed image */
.rb-hero {
    width: 100%;
    line-height: 0;
}
.rb-hero__bg {
    width: 100%;
    height: auto;
    display: block;
}

/* HERO INTRO — text section below hero image */
.rb-hero-intro {
    background: var(--offwhite);
    padding: 80px 0 140px;
    position: relative;
    overflow: hidden;
}
.rb-hero-intro::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 80px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.rb-hero__text h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--ink);
    margin-bottom: 24px;
    line-height: 1.2;
}

/* ABOUT RACCOONS */
.rb-raccoons {
    background: var(--white);
}

/* PROGRESS — two-panel full-bleed, sky image / butter text */
.rb-progress {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}
.rb-progress__image {
    background: var(--sky);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
}
.rb-progress__image img {
    width: 100%;
    max-width: 340px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    display: block;
}
.rb-progress__text {
    background: var(--butter);
    display: flex;
    align-items: center;
    padding: 80px 56px;
}
.rb-progress__text-inner { max-width: 460px; }
.rb-progress__text-inner h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: var(--ink);
    margin-bottom: 20px;
}

/* NEWSLETTER — dark bold band */
/* TIMELINE — what's next */
.rb-timeline {
    background: var(--offwhite);
    padding: 90px 0 100px;
    text-align: center;
    overflow: hidden;
}
.rb-timeline h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--ink);
    margin-bottom: 8px;
}
.rb-timeline__intro {
    font-size: 1rem;
    color: var(--ink-mid);
    margin-bottom: 64px;
}

/* Horizontal track — scrollable on small screens */
.rb-timeline__track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    padding: 0 40px 16px;
    scrollbar-width: none;
}
.rb-timeline__track::-webkit-scrollbar { display: none; }

/* Each step: dot above, line through middle, label below */
.rb-timeline__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 100px;
    max-width: 160px;
}

/* date above dot */
.rb-timeline__date {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-mid);
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

/* connecting line between dots */
/* top = date height (18px) + date margin-bottom (6px) + half dot (16px) = 40px */
.rb-timeline__item:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 40px;
    right: 50%;
    left: -50%;
    height: 2px;
    z-index: 0;
}
.rb-timeline__item.is-done::before {
    background: var(--amber);
}
.rb-timeline__item.is-next::before {
    background: repeating-linear-gradient(
        to right,
        rgba(0,0,0,0.18) 0px,
        rgba(0,0,0,0.18) 6px,
        transparent 6px,
        transparent 12px
    );
}
.rb-timeline__item.is-todo::before {
    background: repeating-linear-gradient(
        to right,
        rgba(0,0,0,0.18) 0px,
        rgba(0,0,0,0.18) 6px,
        transparent 6px,
        transparent 12px
    );
}
/* first item has no left line */
.rb-timeline__item:first-child::before { display: none; }

/* bullet dot */
.rb-timeline__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
}
.rb-timeline__item.is-done .rb-timeline__dot {
    background: var(--amber);
    color: var(--white);
}
.rb-timeline__item.is-next .rb-timeline__dot {
    background: var(--peach);
    border: 2px solid var(--amber);
    color: var(--ink);
    animation: rb-pulse 2.4s ease-in-out infinite;
}
.rb-timeline__item.is-todo .rb-timeline__dot {
    background: var(--white);
    border: 2px solid rgba(0,0,0,0.15);
    color: var(--ink-mid);
}
@keyframes rb-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212,130,74,0.35); }
    50%       { box-shadow: 0 0 0 8px rgba(212,130,74,0); }
}

/* label */
.rb-timeline__label {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--ink);
    font-weight: 500;
    text-align: center;
    padding: 0 6px;
}
.rb-timeline__item.is-todo .rb-timeline__label {
    color: var(--ink-mid);
    font-weight: 400;
}
.rb-timeline__item.is-done .rb-timeline__label {
    color: var(--amber-dark);
    font-weight: 600;
}

/* NEWSLETTER */
.rb-newsletter {
    background: var(--peach);
    padding: 80px 0;
    text-align: center;
}
.rb-newsletter h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--ink);
    margin-bottom: 12px;
}
.rb-newsletter .rb-body { color: var(--ink-mid); }
.rb-newsletter__sub {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-mid);
    margin: 0 auto 16px;
    width: 50%;
}
.rb-newsletter__form {
    max-width: 560px;
    margin: 32px auto 0;
    text-align: left;
}

.rb-newsletter__form #mc_embed_signup {
    background: transparent;
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.rb-newsletter__form #mc_embed_signup h2 { display: none; }
.rb-newsletter__form #mc_embed_signup .indicates-required { display: none; }
.rb-newsletter__form #mc_embed_signup .mc-field-group label {
    font-size: 0.82rem;
    color: var(--ink-mid);
    font-family: var(--font-body);
}
.rb-newsletter__form #mc_embed_signup .mc-field-group input[type="email"] {
    width: 100%;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(42,37,32,0.2);
    color: var(--ink);
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    border-radius: 6px;
    box-sizing: border-box;
}
.rb-newsletter__form #mc_embed_signup .mc-field-group input[type="email"]:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: none;
}
.rb-newsletter__form #mc_embed_signup .mc-field-group input[type="email"]::placeholder {
    color: var(--ink-light);
}
.rb-newsletter__form #mc_embed_signup #mc-embedded-subscribe {
    background: var(--ink);
    color: var(--white);
    border: none;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s;
}
.rb-newsletter__form #mc_embed_signup #mc-embedded-subscribe:hover { background: var(--amber); }
.rb-newsletter__form #mc_embed_signup #mc-embedded-subscribe {
    display: block;
    text-align: center;
    line-height: 1;
    margin-top: 12px;
}
.rb-newsletter__form #mc_embed_signup .asterisk { color: var(--ink-mid); }
.rb-newsletter__form #mergeRow-gdpr,
.rb-newsletter__form #mc_embed_signup .content__gdpr,
.rb-newsletter__form #mc_embed_signup .content__gdprLegal { display: none; }
.rb-newsletter__form #mc_embed_signup .mc-field-group { min-height: 0; }
.rb-newsletter__form #mc_embed_signup .content__gdpr label,
.rb-newsletter__form #mc_embed_signup .content__gdpr p,
.rb-newsletter__form #mc_embed_signup .content__gdprLegal p {
    font-size: 0.78rem;
    color: var(--ink-mid);
    line-height: 1.5;
    font-family: var(--font-body);
}
.rb-newsletter__form .refferal_badge { display: none; }

/* WHILE WE WAIT — full-bleed split, image left */
.rb-wait {
    background: var(--white);
    padding: 90px 0 0;
}
.rb-wait__text {
    text-align: center;
    padding: 0 40px 64px;
}
.rb-wait__text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--ink);
    margin-bottom: 14px;
}
.rb-wait__sub {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-mid);
    margin-bottom: 12px;
}
.rb-wait__body {
    font-size: 1rem;
    color: var(--ink-mid);
    max-width: 560px;
    margin: 0 auto;
}

/* Masonry brick gallery — full bleed */
.rb-wait__gallery {
    columns: 3;
    column-gap: 6px;
    width: 100%;
    padding: 0;
}
.rb-wait__tile {
    break-inside: avoid;
    margin-bottom: 6px;
    overflow: hidden;
    background: var(--offwhite);
    display: block;
}
.rb-wait__tile img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.rb-wait__tile:hover img {
    transform: scale(1.04);
}

/* SOCIALS — white, coloured organic pills */
.rb-socials {
    background: var(--white);
    padding: 90px 0 100px;
    text-align: center;
}
.rb-socials h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--ink);
    margin-bottom: 16px;
}
.rb-socials__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 36px;
}
.rb-social-pill {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink) !important;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-soft);
}
.rb-social-pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.rb-social-pill--lavender { background: var(--lavender); }
.rb-social-pill--peach    { background: var(--peach); }
.rb-social-pill--butter   { background: var(--butter); }
.rb-social-pill--sage     { background: var(--sage-light); }
.rb-socials__email {
    margin-top: 32px;
    font-size: 1rem;
    color: var(--ink-mid);
}
.rb-socials__email a {
    color: var(--amber-dark);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

/* Responsive */
@media (max-width: 900px) {
    .rb-two-col { grid-template-columns: 1fr; gap: 40px; }
    .rb-two-col--reverse { direction: ltr; }
    .rb-hero-intro { padding: 60px 0 120px; }
    .rb-progress { grid-template-columns: 1fr; }
    .rb-progress__image { min-height: 280px; }
    .rb-progress__text { padding: 60px 40px; }
    .rb-progress__text-inner { max-width: 100%; }
    .rb-wait__gallery { columns: 2; }
}
@media (max-width: 600px) {
    .rb-hero-intro { padding: 48px 0 100px; }
    .rb-hero__text h1 { font-size: 2rem; }
    .rb-wait__gallery { columns: 1; }
    .rb-newsletter__sub { width: 80%; }

    /* Timeline — vertical on mobile */
    .rb-timeline__track {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        overflow: visible;
        padding: 0;
        text-align: left;
    }
    .rb-timeline__item {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0;
        max-width: 100%;
        width: 100%;
        padding-bottom: 32px;
    }
    /* Vertical connector — runs upward from current dot to previous */
    .rb-timeline__item:not(:first-child)::before {
        top: -32px;
        left: 15px;
        right: auto;
        width: 2px;
        height: 32px;
    }
    /* dot: order 1 — renders first (left), fixed width */
    .rb-timeline__dot {
        order: 1;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 16px;
    }
    /* date: order 2 — sits right of dot on the same row */
    .rb-timeline__date {
        order: 2;
        flex: 1;
        height: auto;
        justify-content: flex-start;
        margin-bottom: 2px;
    }
    /* label: order 3 — wraps to next row, indented past the dot */
    .rb-timeline__label {
        order: 3;
        width: 100%;
        padding-left: 48px; /* 32px dot + 16px gap */
        text-align: left;
        padding-top: 0;
    }
}

@media (max-width: 375px) {
    .lmibc-hero-content h1 { font-size: 1.5rem; }
    .lmibc-cat-tile-label span { font-size: 0.7rem; }
}

