/* R1 Slider — Fullscreen Carousel */
.r1-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}
.r1-slider.r1s-fullscreen,
.r1-slider.r1s-overlay-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
}

.r1s-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}
.r1s-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Background */
.r1s-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.r1s-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Overlay */
.r1s-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Content layers */
.r1s-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    z-index: 3;
}

/* Layer base */
.r1s-layer {
    text-align: center;
    color: #fff;
    margin: 0;
    font-family: 'Poppins', 'Helvetica Neue', sans-serif;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Layer entrance animations */
.r1s-layer {
    opacity: 0;
}
.r1s-layer.visible { opacity: 1; transform: none; }

.r1s-anim-fadeUp    { transform: translateY(40px); }
.r1s-anim-fadeDown  { transform: translateY(-40px); }
.r1s-anim-fadeLeft  { transform: translateX(-40px); }
.r1s-anim-fadeRight { transform: translateX(40px); }
.r1s-anim-popIn     { transform: scale(0.8); }
.r1s-anim-none      { opacity: 1; transform: none; }
.r1s-anim-fadeUp.visible, .r1s-anim-fadeDown.visible,
.r1s-anim-fadeLeft.visible, .r1s-anim-fadeRight.visible,
.r1s-anim-popIn.visible { opacity: 1; transform: none; }

/* Text styles for the pre-built classes */
.r1s-welcome {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.9);
}
.r1s-tagline {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.r1s-tagline2 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    color: #4cd964;
}
.r1s-phone {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.r1s-phone::before { content: '\260E'; margin-right: 8px; font-size: 18px; }

.r1s-coupon-title {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.9);
}
.r1s-coupon-code {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 6px;
    margin-bottom: 8px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.5);
    color: #4cd964;
}
.r1s-coupon-desc {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.r1s-breakfast {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    white-space: pre-line;
    text-shadow: 0 3px 12px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

/* Button */
.r1s-btn {
    display: inline-block;
    padding: 14px 42px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff !important;
    background: #4cd964;
    border: 2px solid #4cd964;
    border-radius: 30px;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 15px rgba(76,217,100,0.4);
    transition: all 0.3s ease;
    margin-top: 14px;
}
.r1s-btn:hover, .r1s-btn:focus {
    background: #3ab84d;
    border-color: #3ab84d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76,217,100,0.5);
    color: #fff !important;
}

/* Dots */
.r1s-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.r1s-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}
.r1s-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

@media (min-width: 768px) {
    .r1s-welcome { font-size: 24px; }
    .r1s-tagline, .r1s-tagline2 { font-size: 48px; }
    .r1s-phone { font-size: 26px; }
    .r1s-coupon-code { font-size: 64px; letter-spacing: 10px; }
    .r1s-coupon-desc { font-size: 26px; }
    .r1s-breakfast { font-size: 42px; }
    .r1s-btn { padding: 16px 50px; font-size: 18px; }
}

/* Chevron — escape the deck */
.r1s-chevron {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.4);
    transition: background 0.3s, border-color 0.3s;
    text-decoration: none;
}
.r1s-chevron:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.7);
}
.r1s-chevron svg {
    display: block;
}

/* Chevron animations */
@keyframes r1s-chevron-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-12px); }
}
@keyframes r1s-chevron-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.2; }
}
@keyframes r1s-chevron-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50%      { transform: translateX(-50%) scale(1.15); }
}

.r1s-chevron-bounce { animation: r1s-chevron-bounce 2s ease-in-out infinite; }
.r1s-chevron-blink  { animation: r1s-chevron-blink 2s ease-in-out infinite; }
.r1s-chevron-pulse  { animation: r1s-chevron-pulse 2s ease-in-out infinite; }
.r1s-chevron-none   { animation: none; }

/* Deck escape animation — slide entire slider up offscreen */
.r1-slider.r1s-escaped {
    animation: r1s-escape-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}
@keyframes r1s-escape-up {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* Post slide */
.r1s-slide-post .r1s-bg.r1s-kenburns {
    animation: r1s-kenburns 20s ease-in-out infinite alternate;
}
@keyframes r1s-kenburns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.r1s-post-content {
    justify-content: center;
    gap: 0;
}
.r1s-post-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 12px;
}

/* Tile grid — column on desktop, row on mobile */
.r1s-post-tiles {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
    margin-bottom: 16px;
}
.r1s-post-tile {
    display: flex;
    align-items: flex-end;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #333;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    padding: 0;
}
.r1s-post-tile.active {
    outline: 3px solid #fff;
    outline-offset: 2px;
}
.r1s-tile-desktop-only {
    display: none;
}
.r1s-post-tile:hover {
    opacity: 0.9;
    transform: scale(1.05);
}
.r1s-post-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 50%);
}
.r1s-post-tile-text {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 9px;
    line-height: 1.2;
    padding: 4px 6px;
    font-weight: 500;
}

/* Main card + tiles wrapper */
.r1s-post-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 340px;
    width: 90%;
}
.r1s-post-card-img-wrap {
    position: relative;
    width: 100%;
    max-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255,255,255,0.15), 0 8px 32px rgba(0,0,0,0.5);
    border: 3px solid rgba(255,255,255,0.2);
}
.r1s-post-card-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 13px;
}
.r1s-post-fb-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1877f2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.r1s-post-card-text {
    text-align: center;
    margin-top: 14px;
    color: #fff;
}
.r1s-post-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    line-height: 1.15;
}
.r1s-post-excerpt {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 8px 0;
    line-height: 1.5;
}
.r1s-post-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    margin: 0 0 2px 0;
    font-style: italic;
}
.r1s-post-link {
    font-size: 12px;
    color: #4cd964;
    text-decoration: none;
    margin-top: -15px;
}
.r1s-post-link:hover { text-decoration: underline; }

/* Desktop: tiles column left, main card right */
@media (min-width: 768px) {
    .r1s-post-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 32px;
        padding: 40px 40px;
    }
    .r1s-post-label {
        width: 100%;
        text-align: center;
        font-size: 22px;
        font-weight: 700;
        letter-spacing: 5px;
        margin-bottom: 8px;
    }
    .r1s-post-tiles {
        flex-direction: column;
        gap: 14px;
        max-width: none;
        margin-bottom: 0;
        order: 1;
    }
    .r1s-post-tile {
        width: 100px;
        height: 100px;
        border-radius: 10px;
    }
    .r1s-tile-desktop-only {
        display: flex;
    }
    .r1s-post-tile-text {
        font-size: 11px;
    }
    .r1s-post-card {
        max-width: 740px;
        width: auto;
        order: 2;
    }
    .r1s-post-card-img-wrap {
        width: 700px;
        max-height: none;
        height: auto;
    }
    .r1s-post-card-img-wrap.r1s-img-portrait {
        width: 600px;
    }
    .r1s-post-title {
        font-size: 28px;
    }
    .r1s-post-meta {
        font-size: 16px;
    }
    .r1s-post-link {
        font-size: 16px;
        margin-top: 0;
    }
}

/* When no tiles, hide tile row */
.r1s-post-tiles:empty { display: none; }

/* Logo */
.r1s-logo {
    position: absolute;
    z-index: 5;
    height: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    opacity: 0;
    animation: r1s-logo-in 0.6s ease 0.3s forwards;
}
.r1s-logo-left  { left: 24px; right: auto; transform: none; }
.r1s-logo-right { left: auto; right: 24px; transform: none; }
.r1s-logo-center { left: 50%; transform: translateX(-50%); }

@keyframes r1s-logo-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.r1s-logo-center.r1s-logo { animation-name: r1s-logo-in-center; }
@keyframes r1s-logo-in-center {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
