/**
 * Coupons Block Styles
 * Loaded automatically only when this block is present on the page.
 */

/* ==========================================================================
   SECTION
   ========================================================================== */

.coupons-block {
    position: relative;
    background-image: url('/wp-content/uploads/2026/04/Frame-10.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0 100px;
    overflow: hidden;
}

/* ── Top wave ── */
.coupons-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0%2C80 C360%2C0 1080%2C0 1440%2C80 L1440%2C0 L0%2C0 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}

/* ==========================================================================
   DECORATIVE ELEMENTS
   ========================================================================== */

/* Thin-border circle — top right */
.coupons-deco--tr {
    position: absolute;
    top: 40px;
    right: -24px;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(64, 195, 247, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

/* Rotated square — bottom left */
.coupons-deco--bl {
    position: absolute;
    bottom: 48px;
    left: -24px;
    width: 56px;
    height: 56px;
    border: 2px solid rgba(64, 195, 247, 0.15);
    border-radius: 10px;
    transform: rotate(45deg);
    pointer-events: none;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.coupons-header {
    text-align: center;
    margin-bottom: 56px;
}

.coupons-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.75rem, 3.5vw, 2.625rem);
    line-height: 1.2;
    color: #fff;
    margin-bottom: 16px;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.coupons-subtitle {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    line-height: 1.5;
    color: var(--color-light-grey);
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.coupons-subtitle p {
    margin: 0;
}

/* ==========================================================================
   COUPONS GRID
   ========================================================================== */

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 896px;
    margin: 0 auto 56px;
}

/* ==========================================================================
   COUPON CARD
   ========================================================================== */

.coupon-card {
    position: relative;
    background-color: rgba(14, 44, 94, 0.6);
    border: 2px solid var(--color-light-blue);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Scissors badge — top-right, overlapping the border */
.coupon-card__scissors {
    position: absolute;
    top: -16px;
    right: 24px;
    width: 32px;
    height: 32px;
    background-color: var(--color-light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0px 10px 15px rgba(0, 0, 0, 0.1),
        0px 4px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.coupon-card__scissors svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Top row: title left, expiry right */
.coupon-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.coupon-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.1;
    color: #fff;
    margin: 0;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.coupon-card__expires {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-light-blue);
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
}

/* Fine print body */
.coupon-card__content {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.4);
    margin-top: auto;
}

.coupon-card__content p {
    margin: 0 0 0.5em;
}

.coupon-card__content p:last-child {
    margin-bottom: 0;
}

/* Bold text inside WYSIWYG (e.g. "Call For Details") */
.coupon-card__content strong,
.coupon-card__content b {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.coupons-cta-wrap {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 767.98px) {
    .coupons-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .coupon-card__top {
        flex-direction: column;
        gap: 8px;
    }

    .coupon-card__expires {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .coupons-block {
        padding: 60px 0 80px;
    }
}
