/* beg-v2.css — extensions on top of site-v2.css for the Bahamas Expedition
 * Group landing page. Holds patterns that don't reuse cleanly:
 *   - full-bleed hero image with text overlay + summary band
 *   - icon cards (What You Get)
 *   - the Crossing Decision Window diagram
 *   - image+copy split (Built on Real Experience)
 *   - pricing display (.beg-price)
 *   - CTA section (.beg-cta with button row)
 *
 * Standard v2 .card / .grid--2 / .grid--3 / .prose / .kicker still apply.
 */


/* --------------------------------------------------------------------
 * Hero — full-bleed image, overlaid text, summary band below
 * ------------------------------------------------------------------ */

.beg-hero {
    background: var(--bg);
}

.beg-hero-shell {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px 24px 0;
}

.beg-hero-media {
    position: relative;
    width: 100%;
    height: clamp(360px, 60vh, 640px);
    overflow: hidden;
    border-radius: var(--radius);
    background: #d7d1c5;
}

    .beg-hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 60%;
        display: block;
    }

.beg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(20, 30, 34, 0.10),
        rgba(20, 30, 34, 0.22) 42%,
        rgba(20, 30, 34, 0.56) 100%);
}

.beg-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(28px, 5vw, 48px);
    padding: 0 clamp(20px, 4vw, 36px);
    color: #fff;
    z-index: 2;
}

    .beg-hero-content .kicker {
        color: rgba(255, 255, 255, 0.82);
        margin: 0 0 12px;
    }

    .beg-hero-content h1 {
        font-family: var(--serif);
        font-size: clamp(2.5rem, 5vw, 4.25rem);
        line-height: 1.05;
        letter-spacing: -0.02em;
        max-width: 22ch;
        color: #fff;
        margin: 0;
    }

    .beg-hero-content .subhead {
        margin: 1rem 0 0;
        max-width: 60ch;
        font-size: clamp(1.05rem, 1.5vw, 1.22rem);
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.88);
    }

.beg-band {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 22px clamp(1rem, 4vw, 2rem) 24px;
    font-family: var(--sans);
    border-bottom: 1px solid var(--line);
}

.beg-band-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.beg-band-value {
    display: block;
    font-size: 0.96rem;
    line-height: 1.45;
    color: var(--text);
}

@media (max-width: 720px) {
    .beg-band {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


/* --------------------------------------------------------------------
 * What You Get — 4 icon cards
 * ------------------------------------------------------------------ */

.beg-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.beg-icon-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 2vw, 1.6rem) clamp(1rem, 1.8vw, 1.4rem);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .beg-icon-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

    .beg-icon-card h3 {
        margin: 0.7rem 0 0.5rem;
        font-family: var(--serif);
        font-size: 1.08rem;
        line-height: 1.3;
        color: var(--text);
    }

    .beg-icon-card p {
        margin: 0;
        font-family: var(--serif);
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--muted);
    }

.beg-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    color: var(--accent);
}

    .beg-icon svg {
        width: 100%;
        height: 100%;
        display: block;
    }

@media (max-width: 980px) {
    .beg-icon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .beg-icon-grid {
        grid-template-columns: 1fr;
    }
}


/* --------------------------------------------------------------------
 * Built on Real Experience — image + copy split
 * ------------------------------------------------------------------ */

.beg-experience-split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    margin-top: clamp(1.5rem, 3vw, 2rem);
}

.beg-image-card {
    background: linear-gradient(180deg, rgba(251, 248, 242, 0.9), rgba(247, 243, 235, 0.95));
    border: 1px solid rgba(47, 59, 64, 0.10);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 6px 18px rgba(36, 48, 54, 0.06);
}

    .beg-image-card img {
        width: 100%;
        height: 100%;
        min-height: 360px;
        object-fit: cover;
        object-position: center;
        border-radius: 10px;
        display: block;
    }

.beg-image-caption {
    margin: 0.7rem 4px 0;
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--muted);
}

.beg-experience-copy p {
    font-size: 1.075rem;
    line-height: 1.7;
    margin: 0 0 1.1em;
}

    .beg-experience-copy p:last-child {
        margin-bottom: 0;
    }

@media (max-width: 820px) {
    .beg-experience-split {
        grid-template-columns: 1fr;
    }

        .beg-experience-split .beg-image-card {
            order: -1;
        }
}


/* --------------------------------------------------------------------
 * Crossing Decision Window — diagram
 * ------------------------------------------------------------------ */

.beg-decision-window {
    margin-top: clamp(1.5rem, 3vw, 2rem);
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.beg-dw-top {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.beg-dw-phase {
    position: relative;
    min-height: 104px;
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
    border: 1px solid rgba(47, 59, 64, 0.08);
}

    .beg-dw-top .beg-dw-phase:first-child {
        clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
    }

.beg-dw-phase-title {
    display: block;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--text);
}

.beg-dw-phase-note {
    display: block;
    margin-top: 8px;
    font-family: var(--sans);
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(36, 48, 54, 0.78);
}

.beg-dw-phase.too-early  { background: #ddd8cf; }
.beg-dw-phase.building   { background: #d8c79d; }
.beg-dw-phase.ideal      { background: #7f9a78; }
.beg-dw-phase.marginal   { background: #c69257; }
.beg-dw-phase.too-late   { background: #a86452; }

.beg-dw-phase.ideal      .beg-dw-phase-title,
.beg-dw-phase.ideal      .beg-dw-phase-note,
.beg-dw-phase.marginal   .beg-dw-phase-title,
.beg-dw-phase.marginal   .beg-dw-phase-note,
.beg-dw-phase.too-late   .beg-dw-phase-title,
.beg-dw-phase.too-late   .beg-dw-phase-note {
    color: #fff;
}

.beg-dw-midline {
    margin: 18px 2px 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    position: relative;
}

    .beg-dw-midline::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        border-top: 1px solid rgba(36, 75, 99, 0.35);
        transform: translateY(-50%);
    }

    .beg-dw-midline span {
        position: relative;
        width: 12px;
        height: 12px;
        margin: 0 auto;
        border-radius: 50%;
        background: #b6bdc1;
        z-index: 1;
    }

        .beg-dw-midline span.active {
            background: var(--accent);
        }

.beg-dw-bottom {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.beg-dw-factor {
    text-align: center;
}

    .beg-dw-factor strong {
        display: block;
        margin-bottom: 6px;
        font-family: var(--sans);
        font-size: 0.86rem;
        line-height: 1.35;
        color: var(--text);
    }

    .beg-dw-factor span {
        display: block;
        font-family: var(--sans);
        font-size: 0.79rem;
        line-height: 1.45;
        color: var(--muted);
    }

.beg-dw-pressure {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.beg-dw-pressure-label {
    margin-bottom: 10px;
    font-family: var(--sans);
    font-size: 0.76rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
}

.beg-dw-pressure-bar {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.15fr 1.2fr 1.35fr;
    height: 18px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(47, 59, 64, 0.08);
}

    .beg-dw-pressure-bar span { display: block; height: 100%; }
    .beg-dw-pressure-bar .p1 { background: #9aa7ad; }
    .beg-dw-pressure-bar .p2 { background: #9cad7a; }
    .beg-dw-pressure-bar .p3 { background: #c7b46a; }
    .beg-dw-pressure-bar .p4 { background: #be8a58; }
    .beg-dw-pressure-bar .p5 { background: #a86452; }

.beg-dw-pressure-scale {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--muted);
}

.beg-chart-note {
    margin-top: 0.85rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--muted);
}

@media (max-width: 900px) {
    .beg-dw-top,
    .beg-dw-bottom {
        grid-template-columns: 1fr;
    }

    .beg-dw-phase {
        clip-path: none !important;
        min-height: auto;
        text-align: left;
        padding: 16px;
    }

    .beg-dw-midline {
        display: none;
    }

    .beg-dw-factor {
        text-align: left;
    }
}


/* --------------------------------------------------------------------
 * Pricing card details (.card extensions for the pricing section)
 * ------------------------------------------------------------------ */

.beg-price {
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1.1;
    color: var(--text);
    margin: 0.4rem 0 0.4rem;
}

.beg-price-note {
    color: var(--muted);
    font-size: 0.95rem;
    font-family: var(--sans);
    margin: 0 0 1rem;
}

.beg-includes {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}

    .beg-includes strong {
        display: block;
        margin-bottom: 0.5rem;
        font-family: var(--sans);
        font-size: 0.78rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--accent);
    }


/* --------------------------------------------------------------------
 * Form (request more information)
 * ------------------------------------------------------------------ */

.beg-form {
    max-width: 760px;
    margin: 0 auto;
}

.beg-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 1.25rem;
}

@media (max-width: 640px) {
    .beg-form-grid {
        grid-template-columns: 1fr;
    }
}

.beg-field {
    display: flex;
    flex-direction: column;
}

    .beg-field label {
        margin: 0 0 0.45rem;
        font-family: var(--sans);
        font-size: 0.74rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--accent);
    }

    .beg-field input,
    .beg-field select {
        font-family: var(--serif);
        font-size: 1.02rem;
        padding: 0.7rem 0.9rem;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 6px;
        color: var(--text);
        line-height: 1.4;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
        appearance: none;
        -webkit-appearance: none;
    }

    .beg-field select {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8" fill="none" stroke="%235f6b7a" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="1 2 6 6 11 2"/></svg>');
        background-repeat: no-repeat;
        background-position: right 0.95rem center;
        background-size: 12px 8px;
        padding-right: 2.25rem;
    }

    .beg-field input:focus,
    .beg-field select:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(36, 75, 99, 0.12);
    }

    .beg-field.has-error input,
    .beg-field.has-error select {
        border-color: #b9402b;
        background-color: rgba(185, 64, 43, 0.04);
    }

.beg-form-submit {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.beg-form-thanks {
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

    .beg-form-thanks h3 {
        font-family: var(--serif);
        font-size: clamp(1.4rem, 2.5vw, 1.85rem);
        line-height: 1.25;
        margin: 0 0 0.6rem;
    }

    .beg-form-thanks p {
        margin: 0;
        color: var(--muted);
        font-size: 1.02rem;
    }


/* --------------------------------------------------------------------
 * Loading overlay (form submit feedback)
 * ------------------------------------------------------------------ */

.beg-loading {
    position: fixed;
    inset: 0;
    background: rgba(31, 41, 55, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

    .beg-loading.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .beg-loading__spinner {
        width: 38px;
        height: 38px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top-color: #ffffff;
        border-radius: 50%;
        animation: beg-spin 0.7s linear infinite;
    }

@keyframes beg-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .beg-loading__spinner {
        animation: none;
    }
}


/* --------------------------------------------------------------------
 * CTA section + buttons
 * ------------------------------------------------------------------ */

.beg-cta {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 1px solid var(--line);
    max-width: 760px;
}

    .beg-cta h2 {
        font-family: var(--serif);
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        line-height: 1.2;
        margin: 0 0 1rem;
    }

.beg-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.2rem;
}

.beg-button {
    display: inline-block;
    padding: 0.75rem 1.2rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

    .beg-button:hover {
        background: var(--accent);
        color: #fff;
    }

    .beg-button.secondary {
        border-color: rgba(36, 75, 99, 0.4);
        color: var(--text);
    }

        .beg-button.secondary:hover {
            background: var(--text);
            color: #fff;
            border-color: var(--text);
        }
