/* ============================================================================
   Blowout Event — hidden landing page.
   All rules are scoped under .blowout so nothing leaks to the rest of the site.
   Design: "The Homecoming Event" — warm, dignified, price-forward.
   ========================================================================== */

.blowout {
    --bo-ink: #221a15;
    --bo-ink-soft: #5c5149;
    --bo-cream: #fff7ee;
    --bo-cream-2: #fbead7;
    --bo-paper: #ffffff;
    --bo-red: #f0452d;
    --bo-red-ink: #c62f1a;
    --bo-green: #1e7a54;
    --bo-amber: #e8a020;
    --bo-line: rgba(34, 26, 21, 0.12);
    --bo-shadow: 0 18px 50px -24px rgba(34, 26, 21, 0.5);
    --bo-radius: 18px;
    --bo-display: "Archivo", "Helvetica Neue", Arial, sans-serif;

    background: var(--bo-cream);
    color: var(--bo-ink);
    /* No overflow clipping here: it would risk clipping the position:fixed
       sticky bar in some browsers. The hero clips its own gradient bleed. */
}

.blowout *,
.blowout *::before,
.blowout *::after {
    box-sizing: border-box;
}

.blowout__wrap {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: clamp(18px, 5vw, 40px);
}

/* ---- Buttons -------------------------------------------------------------- */
.blowout-btn {
    --btn-bg: var(--bo-ink);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.95em 1.6em;
    border-radius: 999px;
    font-family: var(--bo-display);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.blowout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(34, 26, 21, 0.55);
    color: var(--btn-fg);
}
.blowout-btn:focus-visible {
    outline: 3px solid var(--bo-amber);
    outline-offset: 2px;
}
.blowout-btn--primary {
    --btn-bg: linear-gradient(180deg, #ff5a3c 0%, var(--bo-red) 55%, var(--bo-red-ink) 100%);
    box-shadow: 0 10px 22px -12px rgba(240, 69, 45, 0.85);
}
.blowout-btn--dark { --btn-bg: var(--bo-ink); }
.blowout-btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--bo-ink);
    border-color: currentColor;
}
.blowout-btn--sm {
    padding: 0.72em 1.05em;
    font-size: 0.86rem;
}
.blowout-btn .bi {
    font-size: 1.05em;
    line-height: 0;
}

/* ---- Hero ----------------------------------------------------------------- */
.blowout-hero {
    position: relative;
    background:
        radial-gradient(120% 100% at 85% -10%, rgba(232, 160, 32, 0.22), transparent 55%),
        radial-gradient(120% 120% at 0% 0%, rgba(240, 69, 45, 0.12), transparent 45%),
        var(--bo-cream);
    padding-block: clamp(48px, 9vw, 96px);
    overflow: hidden;
}
.blowout-hero.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--blowout-hero) center/cover no-repeat;
    opacity: 1; /* full-strength photo */
    z-index: 0;
}
/* No flat veil. A soft light pool sits only behind the headline column so the
   photo shows through at the top, sides and bottom; a faint bottom fade keeps
   the countdown/buttons legible. */
.blowout-hero.has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 82% 72% at 50% 44%, rgba(255, 247, 238, 0.6) 0%, rgba(255, 247, 238, 0.14) 55%, rgba(255, 247, 238, 0) 78%),
        linear-gradient(180deg, rgba(255, 247, 238, 0.04) 0%, rgba(255, 247, 238, 0) 55%, rgba(255, 247, 238, 0.32) 100%);
    z-index: 0;
}
/* Light halo so the dark headline stays crisp over any photo. */
.blowout-hero.has-image .blowout-hero__title,
.blowout-hero.has-image .blowout-hero__subhead {
    text-shadow: 0 1px 14px rgba(255, 247, 238, 0.92);
}
.blowout-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    text-align: center;
}
.blowout-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin: 0 0 20px;
    padding: 0.5em 1.1em;
    border-radius: 999px;
    background: var(--bo-ink);
    color: var(--bo-cream);
    font-family: var(--bo-display);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.blowout-hero__spark { color: var(--bo-amber); }
.blowout-hero__title {
    margin: 0;
    font-family: var(--bo-display);
    font-weight: 900;
    font-size: clamp(2.3rem, 6.4vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.blowout-hero__subhead {
    margin: 20px auto 0;
    max-width: 620px;
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    line-height: 1.5;
    color: var(--bo-ink-soft);
}
.blowout-hero__actions {
    margin-top: 34px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Countdown ------------------------------------------------------------ */
.blowout-countdown {
    margin-top: 30px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.blowout-countdown__label {
    font-family: var(--bo-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bo-red-ink);
}
.blowout-countdown__clock {
    display: inline-flex;
    gap: 10px;
}
.blowout-countdown__seg {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 66px;
    padding: 10px 8px;
    background: var(--bo-paper);
    border: 1px solid var(--bo-line);
    border-radius: 12px;
    box-shadow: var(--bo-shadow);
}
.blowout-countdown__seg b {
    font-family: var(--bo-display);
    font-weight: 900;
    font-size: 1.7rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--bo-ink);
}
.blowout-countdown__seg i {
    margin-top: 5px;
    font-style: normal;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bo-ink-soft);
}

/* ---- Trust strip ---------------------------------------------------------- */
.blowout-trust {
    background: var(--bo-cream-2);
    border-block: 1px solid var(--bo-line);
}
.blowout-trust__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 34px;
    padding-block: 16px;
}
.blowout-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--bo-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--bo-ink);
}
.blowout-trust__item .bi { color: var(--bo-green); }

/* ---- Section heading ------------------------------------------------------ */
.blowout-grid-section { padding-block: clamp(44px, 7vw, 76px); }
.blowout-section-head { text-align: center; margin-bottom: 40px; }
.blowout-section-head__title {
    margin: 0;
    font-family: var(--bo-display);
    font-weight: 900;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    letter-spacing: -0.01em;
}
.blowout-section-head__sub {
    margin: 10px auto 0;
    max-width: 540px;
    color: var(--bo-ink-soft);
    font-size: 1.05rem;
}
.blowout-empty {
    text-align: center;
    padding: 30px;
    border: 2px dashed var(--bo-line);
    border-radius: var(--bo-radius);
    color: var(--bo-ink-soft);
}

/* ---- Puppy grid + cards --------------------------------------------------- */
.blowout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(20px, 3vw, 30px);
}
.blowout-card {
    display: flex;
    flex-direction: column;
    background: var(--bo-paper);
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-radius);
    overflow: hidden;
    box-shadow: var(--bo-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.blowout-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px -26px rgba(34, 26, 21, 0.6);
}
.blowout-card__media {
    position: relative;
    display: block;
    flex: none; /* strictly honor the aspect ratio; never flex-grow in the column */
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bo-cream-2);
}
/* Absolutely fill the aspect-ratio box so a portrait/landscape source image
   can't drive the media height — every card gets an identical 4:3 photo. */
.blowout-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blowout-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(34, 26, 21, 0.25);
}
.blowout-card__img--placeholder .bi { font-size: 48px; }
.blowout-card__flag {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: baseline;
    gap: 0.25em;
    padding: 0.4em 0.7em;
    border-radius: 10px;
    background: linear-gradient(180deg, #ff5a3c, var(--bo-red-ink));
    color: #fff;
    font-family: var(--bo-display);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 16px -8px rgba(198, 47, 26, 0.9);
}
.blowout-card__flag b { font-size: 1.05rem; font-weight: 900; }
.blowout-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.4em 0.7em;
    border-radius: 10px;
    background: var(--bo-ink);
    color: var(--bo-cream);
    font-family: var(--bo-display);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}
.blowout-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto; /* fill the equal-height card so actions can pin to the bottom */
    gap: 8px;
    padding: 18px 18px 20px;
}
.blowout-card__breed {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bo-green);
}
.blowout-card__name {
    margin: 0;
    font-family: var(--bo-display);
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.1;
}
.blowout-card__name a { color: inherit; text-decoration: none; }
.blowout-card__name a:hover { color: var(--bo-red-ink); }
.blowout-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0;
    font-size: 0.82rem;
    color: var(--bo-ink-soft);
}

/* Signature: take-me-home ticket */
.blowout-ticket {
    position: relative;
    margin-top: 4px;
    padding: 16px 16px 14px;
    background: var(--bo-cream);
    border: 1px solid var(--bo-line);
    border-radius: 14px;
}
.blowout-ticket__pricing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
}
.blowout-ticket__was {
    font-size: 1rem;
    color: var(--bo-ink-soft);
    text-decoration: line-through;
    text-decoration-color: rgba(198, 47, 26, 0.65);
}
.blowout-ticket__now {
    font-family: var(--bo-display);
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 2.6rem);
    line-height: 1;
    color: var(--bo-red-ink);
    font-variant-numeric: tabular-nums;
}
.blowout-ticket__now .woocommerce-Price-currencySymbol { font-size: 0.6em; vertical-align: 0.15em; }
.blowout-ticket__save {
    display: inline-block;
    margin-top: 10px;
    padding: 0.3em 0.7em;
    border-radius: 999px;
    background: var(--bo-green);
    color: #fff;
    font-family: var(--bo-display);
    font-weight: 800;
    font-size: 0.8rem;
}
.blowout-ticket__mo {
    position: relative;
    margin: 12px -16px -14px;
    padding: 11px 16px 0;
    border-top: 2px dashed rgba(34, 26, 21, 0.22);
    font-size: 0.9rem;
    color: var(--bo-ink);
}
.blowout-ticket__mo b { color: var(--bo-red-ink); font-family: var(--bo-display); font-weight: 900; }
/* Perforation notches at the dashed tear line */
.blowout-ticket__mo::before,
.blowout-ticket__mo::after {
    content: "";
    position: absolute;
    top: -9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bo-paper);
    border: 1px solid var(--bo-line);
}
.blowout-ticket__mo::before { left: -8px; }
.blowout-ticket__mo::after { right: -8px; }

.blowout-card__scarcity {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin: 2px 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--bo-red-ink);
}
.blowout-card__scarcity .bi { font-size: 1em; }
.blowout-card__actions {
    display: flex;
    gap: 8px;
    margin-top: auto; /* pin CTAs to the bottom of the card */
    padding-top: 10px;
    flex-wrap: wrap;
}
.blowout-card__actions .blowout-btn { flex: 1 1 auto; }

/* ---- Financing band ------------------------------------------------------- */
.blowout-finance {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(30, 122, 84, 0.35), transparent 55%),
        var(--bo-ink);
    color: var(--bo-cream);
    padding-block: clamp(44px, 7vw, 74px);
}
.blowout-finance__inner {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: clamp(28px, 5vw, 60px);
    align-items: center;
}
.blowout-finance__eyebrow {
    margin: 0 0 8px;
    font-family: var(--bo-display);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bo-amber);
}
.blowout-finance__title {
    margin: 0;
    font-family: var(--bo-display);
    font-weight: 900;
    font-size: clamp(1.7rem, 3.8vw, 2.7rem);
    line-height: 1.04;
    letter-spacing: -0.01em;
}
.blowout-finance__note {
    margin: 14px 0 0;
    font-size: 1.08rem;
    line-height: 1.5;
    color: rgba(255, 247, 238, 0.82);
}
.blowout-finance__list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.blowout-finance__list li {
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-size: 0.98rem;
}
.blowout-finance__list .bi {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: none;
    color: #7ee0af;
    background: rgba(30, 122, 84, 0.4);
    border-radius: 50%;
    font-size: 0.82em;
}
.blowout-finance__actions {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.blowout-finance__actions .blowout-btn--dark {
    --btn-bg: transparent;
    border-color: rgba(255, 247, 238, 0.4);
}
.blowout-finance__steps {
    display: grid;
    gap: 14px;
}
.blowout-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 247, 238, 0.06);
    border: 1px solid rgba(255, 247, 238, 0.14);
    border-radius: 14px;
}
.blowout-step__n {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    background: var(--bo-amber);
    color: var(--bo-ink);
    font-family: var(--bo-display);
    font-weight: 900;
    font-size: 1.1rem;
}
.blowout-step__t { font-family: var(--bo-display); font-weight: 700; font-size: 1.02rem; }

/* ---- Disclaimer + sticky bar --------------------------------------------- */
/* Fine print sits at the foot of the dark financing band, set off by a hairline. */
.blowout-disclaimer {
    max-width: 820px;
    margin: clamp(28px, 4vw, 44px) auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 247, 238, 0.16);
    font-size: 0.74rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: rgba(255, 247, 238, 0.62);
    text-align: center;
    text-wrap: balance;
}
.blowout-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: none;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 247, 238, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--bo-line);
    box-shadow: 0 -10px 30px -18px rgba(34, 26, 21, 0.6);
}
.blowout-sticky .blowout-btn {
    flex: 1;
    padding-block: 0.85em;
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
    .blowout-finance__inner { grid-template-columns: 1fr; }
    .blowout-finance__steps { grid-auto-flow: row; }
}
@media (max-width: 780px) {
    .blowout-sticky { display: flex; }
    .blowout { padding-bottom: 78px; } /* room for the sticky bar */
}

/* ---- Entrance reveal (added by JS only; content is never hidden w/o JS) --- */
.blowout .bo-reveal {
    opacity: 0;
    transform: translateY(18px);
}
.blowout .bo-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

/* Sticky bar: visible by default (safe if JS is off); JS tucks it away until
   the hero is scrolled past, then slides it back in. */
@media (max-width: 780px) {
    .blowout-sticky { transition: transform 0.25s ease; }
    .blowout-sticky.is-tucked { transform: translateY(130%); }
}

/* ---- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .blowout *,
    .blowout *::before,
    .blowout *::after {
        transition: none !important;
        animation: none !important;
    }
    .blowout .bo-reveal { opacity: 1; transform: none; }
    .blowout-sticky { transform: none; }
}
