/* ─── Call to Action Band — louisbourg/cta-band ─── */
/* Eyebrow wrapper display/gap — see style.css shared rules.    */
/* .btn, .btn-on-photo, .btn-outline-light — see style.css.     */

.cta-band {
    position: relative;
    min-height: 500px;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Gradient fallback; replaced by background-image when a photo is set */
.cta-photo {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 120% at 80% 20%, #b03050 0%, var(--crimson) 38%, var(--crimson-dk) 100%);
    background-size: cover;
    background-position: center 35%;
}

.cta-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(74,10,24,.97) 0%, rgba(88,13,29,.93) 38%, rgba(88,13,29,.55) 64%, rgba(40,8,16,.35) 100%),
        linear-gradient(0deg, rgba(20,4,9,.5) 0%, rgba(20,4,9,0) 50%);
}
/* design system v1: same photo treatment as the hero */
.cta-photo[style*="background-image"] { filter: saturate(.9) brightness(.72) contrast(1.12); }

.cta-inner {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 100px 40px;
    width: 100%;
}

/* ─── Eyebrow on dark background ─── */

.cta-band .eyebrow-wrapper { margin-bottom: 22px; }

.cta-band .eyebrow-wrapper .rule    { background: rgba(255,255,255,.55); }
.cta-band .eyebrow-wrapper .eyebrow { color: rgba(255,255,255,.75); }

/* ─── Headline ─── */

.cta-band h2 {
    font-family: var(--serif);
    color: #fff;
    font-size: clamp(32px, 3.6vw, 50px);
    font-weight: 700;
    max-width: 760px;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -.01em;
    transition: opacity .25s;
}
.cta-band h2.swap, .cta-band .cta-desc.swap { opacity: 0; }

.cta-band h2 em {
    font-style: italic;
    font-weight: 400;
    color: rgba(255,255,255,.78);
}

/* ─── Description ─── */

.cta-desc {
    font-size: var(--t-lead, 18px);
    color: rgba(255,255,255,.86);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.6;
    transition: opacity .25s;
}
.cta-aside { margin-top: 28px; }
.cta-aside:empty { display: none; }

/* ─── Button row ─── */

.cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ─── Full-bleed inside article prose ───
   On pages this block is a direct child of #main-content and already spans
   the viewport, so no breakout is needed — adding one globally would double
   up and cause horizontal overflow there. Inside a single post it sits in
   .prose-content, whose `> *` rule pins every child to the 740px prose
   measure. This rule is scoped to that container only, so page layouts and
   the editor canvas are untouched. */

.article-body .prose-content > .wp-block-louisbourg-cta-band {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    margin-top: 0;
}

/* Butt against whatever precedes it — bands supply their own padding, so a
   gap between two of them reads as a seam. Kills the previous block's
   bottom margin rather than pulling the CTA up, so no overlap. */
.article-body .prose-content > :has(+ .wp-block-louisbourg-cta-band) {
    margin-bottom: 0;
}

/* ─── Buttons inside article prose ───
   `.prose-content a` (0,2,0) sets crimson + underline on every link in the
   article body, which outranks the `.btn-*` colour rules (0,1,0). Inside this
   block that turns the primary button's white label crimson-on-crimson —
   invisible — and tints the outline button. Restate the button colours at
   higher specificity rather than weakening the prose link rule. */

.article-body .prose-content .cta-band a.btn {
    text-decoration: none;
}

.article-body .prose-content .cta-band a.btn-primary,
.article-body .prose-content .cta-band a.btn-outline-light {
    color: #fff;
}

.article-body .prose-content .cta-band a.btn-on-photo {
    color: var(--crimson);
}

.article-body .prose-content .cta-band a.btn-ghost {
    color: var(--ink);
}

.article-body .prose-content .cta-band a.btn-outline-light:hover {
    color: var(--crimson);
}

.article-body .prose-content .cta-band a.btn-on-photo:hover {
    color: #fff;
}

/* ─── Split layout ───
   Compact end-of-article decision strip: copy left, buttons stacked right,
   on a flat crimson gradient with two faint concentric rings. Same fields as
   the full layout — only the arrangement and finish differ. */

.cta-band.is-layout-split {
    min-height: 0;
    display: block;
    background: linear-gradient(120deg, var(--crimson-dk) 0%, #2a0710 100%);
}

/* Decorative rings, top right */
.cta-band.is-layout-split::before,
.cta-band.is-layout-split::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-band.is-layout-split::before {
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, .06);
}

.cta-band.is-layout-split::after {
    top: -60px;
    right: -60px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, .04);
}

.cta-band.is-layout-split .cta-inner {
    max-width: 860px;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.cta-band.is-layout-split .eyebrow-wrapper { margin-bottom: 20px; }

.cta-band.is-layout-split h2 {
    font-size: clamp(26px, 3vw, 40px);
    margin-bottom: 18px;
    max-width: none;
}

.cta-band.is-layout-split h2 em { color: rgba(255, 255, 255, .7); }

.cta-band.is-layout-split .cta-desc {
    font-size: 16.5px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 0;
}

.cta-band.is-layout-split .cta-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
}

/* Mockup button spec for this strip: no trailing arrow, tighter padding,
   12px type. The theme's global .btn adds an arrow via ::after, which the
   decision strip doesn't use. */
.cta-band.is-layout-split .cta-actions .btn {
    justify-content: center;
    white-space: nowrap;
    font-size: 12px;
    padding: 15px 28px;
}

.cta-band.is-layout-split .cta-actions .btn::after {
    content: none;
}

/* ─── Responsive ─── */

@media (max-width: 640px) {
    .cta-inner { padding: 72px 24px; }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cta-band.is-layout-split .cta-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 64px 22px;
    }
}


/* ─── Form layout (design system v1) ───
   Copy and buttons left, a contact form in a white card on the right. With no
   inner blocks the right column is empty and the band reads as the Full layout. */

.cta-band.is-layout-form .cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    padding: 96px 40px;
}

.cta-band.is-layout-form .cta-actions { margin-bottom: 0; }

.cta-form-col {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
    padding: 40px;
}

.cta-form-col:empty { display: none; }

.cta-form-col h2,
.cta-form-col h3,
.cta-form-col h4 {
    color: var(--ink);
    font-size: var(--t-eyebrow, 11px);
    font-family: var(--sans);
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--grey);
    padding-bottom: 14px;
    margin: 0 0 22px;
    border-bottom: 1px solid var(--line);
}

.cta-form-col label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.cta-form-col input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.cta-form-col textarea,
.cta-form-col select {
    font-family: var(--sans);
    font-size: 16px;
    color: var(--ink);
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 2px;
    margin-bottom: 16px;
}

.cta-form-col textarea { min-height: 96px; resize: vertical; }

.cta-form-col input:focus,
.cta-form-col textarea:focus,
.cta-form-col select:focus {
    outline: 2px solid var(--crimson);
    outline-offset: 0;
    border-color: var(--crimson);
}

.cta-form-col button,
.cta-form-col input[type="submit"],
.cta-form-col .btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 17px 28px;
    background: var(--crimson);
    color: #fff;
    border: 1.5px solid var(--crimson);
    border-radius: 2px;
    cursor: pointer;
    margin-top: 6px;
}

.cta-form-col button:hover,
.cta-form-col input[type="submit"]:hover { background: var(--crimson-dk); border-color: var(--crimson-dk); }

.cta-form-col p,
.cta-form-col .wp-block-paragraph { color: var(--grey); font-size: 13px; line-height: 1.5; }

@media (max-width: 900px) {
    .cta-band.is-layout-form .cta-inner { grid-template-columns: 1fr; gap: 36px; padding: 64px 24px; }
    .cta-form-col { padding: 24px; }
}

/* ─── ed/contact-form inside the Form layout ─── */
.cta-form-col .ed-contact-form-wrap.container { padding: 0; max-width: none; margin: 0; }
.cta-form-col .contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.cta-form-col .contact-field--full { grid-column: 1 / -1; }
.cta-form-col .contact-field label { font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.cta-form-col .contact-form-footer { display: flex; flex-direction: column-reverse; gap: 14px; margin-top: 4px; }
.cta-form-col .contact-submit { width: 100%; margin: 0; }
.cta-form-col .contact-privacy { margin: 0; font-size: 12px; color: var(--grey-soft); line-height: 1.5; }
.cta-form-col .contact-select-wrap { position: relative; }
.cta-form-col .contact-select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
@media (max-width: 640px) { .cta-form-col .contact-form-grid { grid-template-columns: 1fr; } }
