/* ──────────────────────────────────────────────────────────────────────────
   Minis CTA button
   ──────────────────────────────────────────────────────────────────────────
   Desktop (row layout, >1440):  anchored at the right edge of the bento
                                 grid (max-width 1800px, 40px side padding)
                                 so it never overflows the grid's right
                                 padding on wide screens.
   Column layout (≤1440):        top-right corner of the header.
   Mobile (≤768):                inline beneath the title/pill, centered.
   ────────────────────────────────────────────────────────────────────────── */

/* Sticky note: butter-yellow paper, a strip of tape, a slight tilt that
   straightens on hover. Fits the hand-made header instead of shouting. */
.minis-button {
    position: absolute;
    top: 20px;
    /* Sits visually centered above the get-in-touch card (col 4 of the bento
       grid) across the row-layout range. Derived from a linear fit:
         viewport 1441 → right 100,  viewport 1920 → right 220
       Capped at 320 so it stays roughly on the rightmost bento column at
       wide viewports. */
    right: clamp(100px, calc(25vw - 260px), 320px);
    display: flex;
    align-items: center;
    gap: clamp(10px, 0.9vw, 16px);
    padding: clamp(9px, 0.85vw, 16px) clamp(16px, 1.55vw, 28px);
    background-color: #F6E3A1;
    border: 0;
    border-radius: 4px 4px 12px 4px;
    font-family: "Delius", cursive;
    font-weight: 700;
    font-size: clamp(18px, 1.35vw, 24px);
    color: #3b342d;
    cursor: pointer;
    z-index: 1000;
    box-shadow:
        0 1px 1px rgba(59, 52, 45, 0.12),
        0 14px 22px -12px rgba(59, 52, 45, 0.45);
    transform: rotate(-2.5deg);
    transition:
        transform 280ms cubic-bezier(0.32, 0.72, 0, 1),
        box-shadow 280ms cubic-bezier(0.32, 0.72, 0, 1),
        background-color 200ms ease;
}

/* The tape */
.minis-button::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    width: 58px;
    height: 18px;
    transform: translateX(-50%) rotate(3deg);
    background-color: rgba(232, 217, 205, 0.85);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.minis-button:hover {
    transform: rotate(0deg) translateY(-3px);
    background-color: #F8E7AE;
    box-shadow:
        0 2px 2px rgba(59, 52, 45, 0.12),
        0 20px 28px -14px rgba(59, 52, 45, 0.5);
}

.minis-button:active {
    transform: rotate(-1deg) scale(0.98);
}

.minis-button:focus-visible {
    outline: 3px solid #3b342d;
    outline-offset: 4px;
}

.minis-button-icon {
    width: clamp(30px, 2.1vw, 38px);
    height: clamp(30px, 2.1vw, 38px);
    flex-shrink: 0;
    border-radius: 8px;
}

.minis-button-text {
    white-space: nowrap;
    letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
    .minis-button {
        transition: none;
    }

    .minis-button:hover,
    .minis-button:active {
        transform: rotate(-2.5deg);
    }
}

/* ── Column-stacked header (≤1440): minis floats separately at the
   top-right corner, independent of the centered title/pill below. */
@media (max-width: 1440px) {
    .minis-button {
        top: 60px;
        right: 40px;
        font-size: 24px;
        padding: 14px 28px;
        gap: 16px;
    }

    .minis-button-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 1024px) {
    .minis-button {
        top: 60px;
        right: 30px;
    }
}

/* Slightly smaller for the narrow tablet range so the button still has
   breathing room next to the pill. */
@media (max-width: 992px) {
    .minis-button {
        font-size: 20px;
        padding: 12px 22px;
        gap: 12px;
    }

    .minis-button-icon {
        width: 34px;
        height: 34px;
    }
}

/* ── Mobile (≤768): inline beneath the pill, centered in the column flex */
@media (max-width: 768px) {
    .minis-button {
        position: relative;
        top: auto;
        right: auto;
        width: max-content;
        max-width: calc(100% - 32px);
        margin: 8px auto 14px auto;
        padding: 10px 24px;
        font-size: 22px;
        gap: 12px;
    }

    .minis-button-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .minis-button {
        padding: 9px 20px;
        font-size: 19px;
        gap: 10px;
        margin-bottom: 10px;
    }

    .minis-button-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 360px) {
    .minis-button {
        padding: 8px 18px;
        font-size: 17px;
        gap: 9px;
    }

    .minis-button-icon {
        width: 28px;
        height: 28px;
    }
}
