/* ==========================================================================
   MH Cleaning Service — Early Black Friday 2026 campaign styles
   Scoped with the .mhbf- prefix. Loaded only on index.html and the landing
   page. Safe to delete together with js/mh-promo.js and js/mh-autumn-leaves.js
   when the seasonal campaign is retired.
   ========================================================================== */

:root {
    --mhbf-charcoal: #1F2328;
    --mhbf-ink: #1F2937;
    --mhbf-muted: #4B5563;
    --mhbf-paper: #FFFFFF;
    --mhbf-ice: #BFE3F3;
    --mhbf-ice-soft: #EAF6FC;
    --mhbf-teal: #1A8FC1;
    --mhbf-teal-deep: #0F6F9A;
    --mhbf-brand: #084783;
    --mhbf-amber: #C47A2C;
    --mhbf-copper: #9E5A2B;
    --mhbf-radius: 22px;
    --mhbf-radius-sm: 14px;
    --mhbf-border: 1px solid rgba(8, 71, 131, 0.10);
    --mhbf-shadow: 0 18px 48px rgba(8, 71, 131, 0.12);
    --mhbf-shadow-soft: 0 8px 24px rgba(8, 71, 131, 0.08);
}

/* --------------------------------------------------------------------------
   State gating. Everything date-dependent is hidden in the HTML and only
   revealed by JavaScript once the campaign status is known. The <html>
   attribute is set synchronously by js/mh-campaign.js, so there is no flash
   of expired promotional content on cached pages.
   -------------------------------------------------------------------------- */
[data-mhbf-when][hidden],
.mhbf-promo[hidden],
.mhbf-modal[hidden],
.mhbf-leaves-toggle[hidden] {
    display: none !important;
}

html.mhbf-scroll-lock {
    overflow: hidden;
    scrollbar-gutter: stable;
}

/* --------------------------------------------------------------------------
   Typography accents
   -------------------------------------------------------------------------- */
.mhbf-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.6rem;
    margin: 0 0 0.85rem;
    color: var(--mhbf-brand);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mhbf-eyebrow .mhbf-script {
    text-transform: none;
    letter-spacing: 0;
}

.mhbf-script {
    font-family: 'Allura', 'Brush Script MT', 'Segoe Script', cursive;
    font-weight: 400;
    font-size: 2.1em;
    line-height: 0.9;
    color: var(--mhbf-teal);
}

.mhbf-eyebrow__dates {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--mhbf-ice-soft);
    color: var(--mhbf-brand);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.mhbf-eyebrow__dates svg {
    width: 14px;
    height: 14px;
    flex: none;
}

.mhbf-lede {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--mhbf-muted);
    max-width: 56ch;
}

.mhbf-note {
    font-size: 0.95rem;
    color: var(--mhbf-muted);
}

.mhbf-fineprint {
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--mhbf-muted);
    margin: 1rem 0 0;
}

/* --------------------------------------------------------------------------
   Coupon cards (artwork motif: perforated ticket with a dashed divider)
   -------------------------------------------------------------------------- */
.mhbf-coupon-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    list-style: none;
    padding: 0;
}

.mhbf-coupon {
    --mhbf-cutout: var(--mhbf-paper);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
    border-radius: var(--mhbf-radius);
    background: var(--mhbf-ice);
    color: var(--mhbf-charcoal);
    box-shadow: var(--mhbf-shadow-soft);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.mhbf-coupon:hover {
    transform: translateY(-3px);
    box-shadow: var(--mhbf-shadow);
}

.mhbf-coupon--deep {
    background: var(--mhbf-teal);
    color: var(--mhbf-paper);
}

.mhbf-coupon__amount,
.mhbf-coupon__terms {
    padding: 1.35rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.mhbf-coupon__amount {
    position: relative;
    text-align: center;
    border-right: 2px dashed rgba(31, 35, 40, 0.28);
}

.mhbf-coupon--deep .mhbf-coupon__amount {
    border-right-color: rgba(255, 255, 255, 0.55);
}

/* Perforation cut-outs at both ends of the dashed divider */
.mhbf-coupon__amount::before,
.mhbf-coupon__amount::after {
    content: "";
    position: absolute;
    right: -11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--mhbf-cutout);
    box-shadow: inset 0 2px 4px rgba(8, 71, 131, 0.08);
}

.mhbf-coupon__amount::before { top: -10px; }
.mhbf-coupon__amount::after { bottom: -10px; }

.mhbf-coupon__value {
    display: block;
    font-size: clamp(2.2rem, 4.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.mhbf-coupon__off {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
}

.mhbf-coupon__title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.25rem;
    color: inherit;
}

.mhbf-coupon__detail {
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0;
    color: inherit;
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Dates / audience chips
   -------------------------------------------------------------------------- */
.mhbf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.mhbf-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: var(--mhbf-border);
    background: var(--mhbf-paper);
    color: var(--mhbf-ink);
    font-size: 0.92rem;
    font-weight: 600;
}

.mhbf-meta svg {
    width: 16px;
    height: 16px;
    color: var(--mhbf-teal-deep);
    flex: none;
}

/* --------------------------------------------------------------------------
   Actions
   -------------------------------------------------------------------------- */
.mhbf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.mhbf-actions .btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mhbf-actions .btn-outline {
    background: var(--mhbf-paper);
}

.mhbf-actions .btn:focus-visible,
.mhbf-link:focus-visible,
.mhbf-modal button:focus-visible,
.mhbf-modal a:focus-visible,
.mhbf-leaves-toggle:focus-visible {
    outline: 3px solid var(--mhbf-teal);
    outline-offset: 3px;
}

.mhbf-link {
    color: var(--mhbf-brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mhbf-link:hover {
    color: var(--mhbf-teal-deep);
}

/* --------------------------------------------------------------------------
   Homepage promotion section (directly below the hero)
   -------------------------------------------------------------------------- */
.mhbf-promo {
    position: relative;
    padding: 72px 0;
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(191, 227, 243, 0.45), transparent 70%),
        linear-gradient(180deg, #FFFFFF 0%, #F3FAFD 100%);
    border-bottom: var(--mhbf-border);
}

.mhbf-promo__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.5rem;
    align-items: center;
}

.mhbf-promo h2 {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.9rem;
}

.mhbf-promo .mhbf-coupon {
    --mhbf-cutout: #F7FBFE;
}

.mhbf-figure {
    position: relative;
    margin: 0;
}

.mhbf-figure::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    border-radius: var(--mhbf-radius);
    background: var(--mhbf-ice);
    opacity: 0.55;
    z-index: 0;
}

.mhbf-figure img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--mhbf-radius);
    box-shadow: var(--mhbf-shadow);
}

.mhbf-figure figcaption {
    position: absolute;
    left: 1.1rem;
    bottom: 1.1rem;
    z-index: 2;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(31, 35, 40, 0.78);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   Promotional modal (native <dialog>)
   -------------------------------------------------------------------------- */
.mhbf-modal {
    padding: 0;
    border: 0;
    background: transparent;
    width: min(100% - 24px, 920px);
    max-width: none;
    max-height: calc(100dvh - 24px);
    margin: auto;
    color: var(--mhbf-ink);
}

.mhbf-modal::backdrop {
    background: rgba(31, 35, 40, 0.6);
    backdrop-filter: blur(4px);
}

.mhbf-modal__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    max-height: calc(100dvh - 24px);
    border-radius: 26px;
    background: var(--mhbf-paper);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.mhbf-modal__media {
    position: relative;
    min-height: 100%;
    background: var(--mhbf-charcoal);
}

.mhbf-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mhbf-modal__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 35, 40, 0) 55%, rgba(31, 35, 40, 0.55) 100%);
}

.mhbf-modal__media-label {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 1;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mhbf-modal__body {
    padding: 2rem 2.25rem 2rem 2rem;
    overflow: auto;
    overscroll-behavior: contain;
}

.mhbf-modal__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mhbf-modal__brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.mhbf-modal__brand span {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mhbf-brand);
}

.mhbf-modal h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: -0.02em;
    margin: 0.35rem 0 0.6rem;
    outline: none;
}

.mhbf-modal .mhbf-lede {
    font-size: 1.02rem;
    margin-bottom: 0.5rem;
}

.mhbf-modal .mhbf-coupon-list {
    margin: 1.1rem 0;
}

.mhbf-modal .mhbf-coupon__amount,
.mhbf-modal .mhbf-coupon__terms {
    padding: 1rem 1rem;
}

.mhbf-modal .mhbf-coupon__value {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.mhbf-modal .mhbf-actions {
    margin-top: 0.25rem;
}

.mhbf-modal .mhbf-actions .btn-primary {
    flex: 1 1 auto;
}

.mhbf-modal__later {
    background: none;
    border: 0;
    padding: 0.75rem 0.5rem;
    color: var(--mhbf-muted);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mhbf-modal__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--mhbf-charcoal);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mhbf-modal__close:hover {
    background: #fff;
    transform: scale(1.05);
}

.mhbf-modal__close svg {
    width: 18px;
    height: 18px;
}

.mhbf-modal .mhbf-fineprint {
    margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Landing page
   -------------------------------------------------------------------------- */
.mhbf-landing .section {
    padding: 72px 0;
}

.mhbf-hero {
    position: relative;
    padding: 3.5rem 0 4rem;
    background:
        radial-gradient(55% 70% at 85% 10%, rgba(191, 227, 243, 0.55), transparent 70%),
        linear-gradient(180deg, #FFFFFF 0%, #F3FAFD 100%);
    overflow: hidden;
}

.mhbf-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
    align-items: center;
}

.mhbf-hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.25rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin-bottom: 1rem;
}

.mhbf-hero .mhbf-lede {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.mhbf-hero__media {
    position: relative;
    margin: 0;
}

.mhbf-hero__media::before {
    content: "";
    position: absolute;
    inset: 22px -22px -22px 22px;
    border-radius: var(--mhbf-radius);
    background: var(--mhbf-ice);
    opacity: 0.6;
}

.mhbf-hero__media img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--mhbf-radius);
    box-shadow: var(--mhbf-shadow);
}

.mhbf-status {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-radius: var(--mhbf-radius-sm);
    border: 1px solid rgba(196, 122, 44, 0.35);
    border-left: 5px solid var(--mhbf-amber);
    background: #FFF8F1;
    color: var(--mhbf-ink);
    margin: 0 0 1.5rem;
}

.mhbf-status svg {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--mhbf-copper);
    margin-top: 0.1rem;
}

.mhbf-status p {
    margin: 0;
    font-size: 1rem;
    color: var(--mhbf-ink);
}

.mhbf-status strong {
    display: block;
    margin-bottom: 0.2rem;
}

.mhbf-status--info {
    border-color: rgba(26, 143, 193, 0.35);
    border-left-color: var(--mhbf-teal);
    background: var(--mhbf-ice-soft);
}

.mhbf-status--info svg {
    color: var(--mhbf-teal-deep);
}

.mhbf-offer .mhbf-coupon-list {
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.mhbf-offer .mhbf-coupon {
    --mhbf-cutout: #FFFFFF;
}

.mhbf-tier-table {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 1.25rem;
    border-collapse: separate;
    border-spacing: 0;
    border: var(--mhbf-border);
    border-radius: var(--mhbf-radius-sm);
    overflow: hidden;
    background: var(--mhbf-paper);
    font-size: 1rem;
}

.mhbf-tier-table caption {
    caption-side: top;
    text-align: left;
    padding: 0 0 0.6rem;
    font-weight: 700;
    color: var(--mhbf-brand);
}

.mhbf-tier-table th,
.mhbf-tier-table td {
    padding: 0.9rem 1.1rem;
    text-align: left;
    border-bottom: var(--mhbf-border);
}

.mhbf-tier-table thead th {
    background: var(--mhbf-ice-soft);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mhbf-brand);
}

.mhbf-tier-table tbody tr:last-child td,
.mhbf-tier-table tbody tr:last-child th {
    border-bottom: 0;
}

.mhbf-tier-table td strong {
    color: var(--mhbf-brand);
    font-size: 1.1rem;
}

.mhbf-centered {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.mhbf-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    counter-reset: mhbf-step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mhbf-step {
    position: relative;
    padding: 2rem 1.5rem 1.6rem;
    border-radius: var(--mhbf-radius);
    border: var(--mhbf-border);
    background: var(--mhbf-paper);
    box-shadow: var(--mhbf-shadow-soft);
}

.mhbf-step::before {
    counter-increment: mhbf-step;
    content: counter(mhbf-step, decimal-leading-zero);
    display: inline-block;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--mhbf-teal-deep);
}

.mhbf-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.mhbf-step p {
    font-size: 1rem;
    margin: 0;
}

.mhbf-areas .areas-grid {
    margin-top: 1.5rem;
}

.mhbf-areas__lead {
    max-width: 820px;
    margin: 0 auto 0.5rem;
    text-align: center;
}

.mhbf-faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.mhbf-faq article {
    padding: 1.6rem 1.6rem 1.4rem;
    border-radius: var(--mhbf-radius);
    border: var(--mhbf-border);
    background: var(--mhbf-paper);
    box-shadow: var(--mhbf-shadow-soft);
}

.mhbf-faq h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.mhbf-faq p {
    font-size: 1rem;
    margin: 0;
}

.mhbf-faq p + p {
    margin-top: 0.6rem;
}

.mhbf-quote {
    scroll-margin-top: 110px;
}

.mhbf-quote__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 2.5rem;
    align-items: start;
}

.mhbf-quote__aside {
    position: sticky;
    top: 110px;
}

.mhbf-quote__aside h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.02em;
}

.mhbf-quote__aside ul {
    margin: 1rem 0 1.5rem 1.1rem;
    color: var(--mhbf-muted);
}

.mhbf-quote__aside li {
    margin: 0.4rem 0;
}

.mhbf-quote__contact {
    padding: 1.25rem 1.4rem;
    border-radius: var(--mhbf-radius-sm);
    background: var(--mhbf-paper);
    border: var(--mhbf-border);
}

.mhbf-quote__contact p {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.mhbf-quote__contact a {
    color: var(--mhbf-brand);
    font-weight: 700;
}

.mhbf-quote .form-container {
    background: var(--mhbf-paper);
    border-radius: var(--mhbf-radius);
    border: var(--mhbf-border);
    box-shadow: var(--mhbf-shadow);
    padding: 1.5rem;
}

.mhbf-quote .form-container iframe {
    width: 100%;
    border: 0;
    border-radius: 8px;
}

.mhbf-terms {
    padding: 2.5rem 0 3rem;
    background: var(--mhbf-paper);
    border-top: var(--mhbf-border);
}

.mhbf-terms h2 {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.mhbf-terms p {
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 0 0.5rem;
}

.mhbf-breadcrumb {
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.mhbf-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    align-items: center;
    color: var(--mhbf-muted);
}

.mhbf-breadcrumb a {
    color: var(--mhbf-brand);
    font-weight: 600;
}

.mhbf-breadcrumb [aria-current="page"] {
    color: var(--mhbf-muted);
}

/* --------------------------------------------------------------------------
   Autumn leaves layer + toggle
   -------------------------------------------------------------------------- */
.mhbf-leaves {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 850;
}

.mhbf-leaves-toggle {
    position: fixed;
    left: max(14px, env(safe-area-inset-left));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.55rem 0.95rem 0.55rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(8, 71, 131, 0.18);
    background: rgba(255, 255, 255, 0.94);
    color: var(--mhbf-brand);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mhbf-leaves-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.mhbf-leaves-toggle svg {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--mhbf-amber);
    transition: color 0.2s ease, opacity 0.2s ease;
}

.mhbf-leaves-toggle[aria-pressed="false"] svg {
    color: #9CA3AF;
    opacity: 0.8;
}

.mhbf-leaves-toggle__state {
    display: inline-block;
    min-width: 2ch;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--mhbf-ice-soft);
    color: var(--mhbf-teal-deep);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mhbf-leaves-toggle[aria-pressed="false"] .mhbf-leaves-toggle__state {
    background: #F3F4F6;
    color: #4B5563;
}

.mhbf-toggle-slot {
    margin-top: 1.1rem;
}

.mhbf-toggle-slot:empty {
    display: none;
}

.mhbf-leaves-toggle--inline {
    position: static;
    left: auto;
    bottom: auto;
    z-index: auto;
    box-shadow: 0 4px 14px rgba(8, 71, 131, 0.10);
    backdrop-filter: none;
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .mhbf-coupon,
    .mhbf-coupon:hover,
    .mhbf-leaves-toggle,
    .mhbf-leaves-toggle:hover,
    .mhbf-modal__close,
    .mhbf-modal__close:hover {
        transition: none;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .mhbf-promo__grid,
    .mhbf-hero__grid {
        gap: 2.5rem;
    }
}

@media (max-width: 900px) {
    .mhbf-promo__grid,
    .mhbf-hero__grid,
    .mhbf-quote__grid {
        grid-template-columns: 1fr;
    }

    .mhbf-figure,
    .mhbf-hero__media {
        max-width: 560px;
        margin: 0 auto;
    }

    .mhbf-promo__visual {
        order: -1;
    }

    .mhbf-hero__media {
        order: -1;
    }

    .mhbf-figure img {
        aspect-ratio: 4 / 3;
    }

    .mhbf-steps {
        grid-template-columns: 1fr;
    }

    .mhbf-quote__aside {
        position: static;
    }
}

@media (max-width: 768px) {
    .mhbf-promo,
    .mhbf-landing .section {
        padding: 56px 0;
    }

    .mhbf-hero {
        padding: 2.5rem 0 3rem;
    }

    .mhbf-faq {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .mhbf-modal__panel {
        grid-template-columns: 1fr;
    }

    .mhbf-modal__media {
        display: none;
    }

    .mhbf-modal__body {
        padding: 1.5rem 1.25rem 1.4rem;
    }

    .mhbf-modal__close {
        top: 0.6rem;
        right: 0.6rem;
    }

    .mhbf-modal__brand {
        padding-right: 3rem;
    }
}

@media (max-width: 640px) {
    .mhbf-coupon-list {
        grid-template-columns: 1fr;
    }

    .mhbf-modal .mhbf-coupon-list {
        gap: 0.75rem;
    }

    .mhbf-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mhbf-actions .btn {
        width: 100%;
    }

    .mhbf-modal .mhbf-actions .btn-primary {
        flex: none;
    }
}

@media (max-width: 480px) {
    .mhbf-promo,
    .mhbf-landing .section {
        padding: 48px 0;
    }

    .mhbf-promo h2 {
        font-size: 1.85rem;
    }

    .mhbf-hero h1 {
        font-size: 2rem;
    }

    .mhbf-hero .mhbf-lede,
    .mhbf-lede {
        font-size: 1.05rem;
    }

    .mhbf-coupon__amount,
    .mhbf-coupon__terms {
        padding: 1.1rem 1rem;
    }

    .mhbf-coupon__value {
        font-size: 2rem;
    }

    .mhbf-modal {
        width: calc(100% - 16px);
        max-height: calc(100dvh - 16px);
    }

    .mhbf-modal__panel {
        border-radius: 20px;
        max-height: calc(100dvh - 16px);
    }

    .mhbf-modal__body {
        padding: 1.25rem 1rem 1.2rem;
    }

    .mhbf-modal h2 {
        font-size: 1.35rem;
    }

    .mhbf-tier-table {
        font-size: 0.95rem;
    }

    .mhbf-tier-table th,
    .mhbf-tier-table td {
        padding: 0.75rem 0.85rem;
    }

    .mhbf-quote .form-container {
        padding: 1rem;
    }

    .mhbf-leaves-toggle {
        padding: 0.5rem 0.8rem 0.5rem 0.65rem;
        font-size: 0.82rem;
    }
}
