/* ══════════════════════════════════════════════════════════════════════════
   THE CANNABIS CO. — RESPONSIVE STYLES
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Viewports <= 1100px ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .locals-shell {
        padding: 0 32px;
    }
    
    .story-shell {
        padding: 0 32px;
        gap: 40px;
    }

    .daily-deals-shell {
        padding: 0 32px;
    }

    .deals-grid {
        display: flex;
        gap: 28px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: 10px;
        scroll-padding-left: 32px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .deals-grid::-webkit-scrollbar {
        display: none;
    }

    .deals-grid .deal-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }

    .main-header .header-container {
        flex-wrap: wrap;
        gap: 18px 24px;
    }

    .rewards-panel {
        grid-template-columns: 1fr;
    }

    .rewards-copy {
        max-width: none;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-right {
        margin-left: auto;
    }

    .feeling-header {
        gap: 24px;
    }

    .feeling-card {
        flex: 0 0 256px;
        max-width: 256px;
        scroll-snap-align: start;
    }

    .district-row {
        flex-direction: column;
        min-height: 0;
    }

    .district-video-panel,
    .district-content {
        flex: 0 0 auto;
    }

    .district-video-panel {
        min-height: 420px;
    }

    .district-video-overlay {
        background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 55%);
    }

    .store-shell,
    .footer-pre {
        padding: 0 32px;
    }
}

/* ── Viewports <= 1024px ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .locals-section {
        padding: 100px 0;
        background-image:
            linear-gradient(
                to right,
                rgba(10, 10, 15, 0.98) 0%,
                rgba(10, 10, 15, 0.9) 60%,
                rgba(10, 10, 15, 0.5) 100%
            ),
            url("../assets/images/where-locals.webp");
    }
    .locals-content {
        max-width: 540px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .footer-shell {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

/* ── Viewports <= 992px ───────────────────────────────────────────────── */
@media (max-width: 992px) {
    .story-section {
        padding: 80px 0;
    }
    .story-shell {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .story-content {
        max-width: 600px;
    }
    .story-swiper {
        width: 100%;
        margin-right: 0;
        overflow: hidden !important;
    }

    .store-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .store-map-card {
        min-height: 380px;
    }
    .store-map {
        min-height: 380px;
    }
}

/* ── Viewports <= 768px ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .locals-section {
        padding: 80px 0;
        background-image:
            linear-gradient(
                to bottom,
                rgba(10, 10, 15, 0.98) 0%,
                rgba(10, 10, 15, 0.85) 60%,
                rgba(10, 10, 15, 0.4) 100%
            ),
            url("../assets/images/where-locals.webp");
        background-position: center top;
        display: block;
    }
    .locals-shell {
        padding: 0 20px;
    }
    .locals-content {
        max-width: 100%;
    }
    .locals-title {
        margin-bottom: 28px;
    }
    .locals-bullets {
        margin-bottom: 36px;
    }

    .story-shell {
        padding: 0 20px;
    }

    .testimonials-shell {
        padding: 60px 24px 0;
    }
    .testimonials-header {
        margin-bottom: 36px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .store-section {
        padding: 80px 0;
    }
    .store-shell,
    .footer-pre {
        padding: 0 20px;
    }

    .footer-pre-text {
        font-size: 13px;
        letter-spacing: 1px;
    }
}

/* ── Viewports <= 700px ───────────────────────────────────────────────── */
@media (max-width: 700px) {
    .daily-deals-section {
        padding: 84px 0 92px;
    }

    .daily-deals-shell {
        padding: 0 22px;
    }

    .daily-deals-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 30px;
    }

    .daily-deals-title {
        font-size: clamp(42px, 12vw, 56px);
    }

    .daily-deals-link {
        font-size: 18px;
    }

    .deals-grid {
        gap: 22px;
        scroll-padding-left: 22px;
    }

    .deals-grid .deal-card {
        flex-basis: 272px;
    }

    .deal-card-main {
        min-height: 232px;
        padding: 12px 10px;
    }

    .deal-card-logo-wrap {
        min-height: 104px;
        margin: 10px 0;
    }

    .deal-card-logo-shine {
        width: 132px;
    }

    .deal-card-logo-keef {
        width: 124px;
    }

    .deal-card-offer {
        font-size: 28px;
        line-height: 28px;
    }

    .top-bar .header-container {
        justify-content: center;
    }

    .main-header .header-container,
    .header-right,
    .logo {
        width: 100%;
    }

    .logo img {
        margin: 0 auto;
    }

    .header-right {
        justify-content: center;
        margin-left: 0;
    }

    nav {
        gap: 14px 18px;
    }

    .btn-order,
    .cta-group .btn {
        width: 100%;
        max-width: 340px;
    }

    .hero-section {
        padding-bottom: 34px;
    }

    .three-canvas-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-content {
        margin-top: 26px;
    }

    .hero-title {
        font-size: clamp(46px, 14vw, 74px);
    }

    .hero-title.elevated,
    .hero-subtitle {
        font-size: clamp(36px, 11vw, 58px);
    }

    .hero-subtitle {
        margin-bottom: 22px;
    }

    .cta-group {
        width: 100%;
        align-items: center;
        flex-direction: column;
    }

    .feeling-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 34px;
    }

    .feeling-menu-link {
        margin-bottom: 0;
    }

    .feeling-card {
        flex-basis: 250px;
        max-width: 250px;
        min-height: 260px;
    }

    .district-video-panel {
        min-height: 320px;
    }

    .district-content {
        padding: 44px 22px 40px;
    }

    .rewards-section {
        padding: 64px 0 88px;
    }

    .rewards-panel {
        gap: 28px;
        padding: 24px 18px;
        border-radius: 24px;
    }

    .rewards-eyebrow {
        font-size: 15px;
        letter-spacing: 3px;
    }

    .rewards-title {
        font-size: clamp(42px, 13vw, 66px);
    }

    .rewards-description {
        margin-bottom: 28px;
        font-size: 16px;
    }

    .rewards-actions {
        flex-direction: column;
        margin-bottom: 32px;
    }

    .rewards-btn {
        width: 100%;
        font-size: 18px;
    }

    .rewards-stats {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .rewards-stat {
        gap: 14px;
    }

    .rewards-stat-value {
        font-size: 42px;
    }

    .rewards-tier {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .rewards-tier-badge {
        width: 78px;
        height: 78px;
    }

    .rewards-tier-name {
        font-size: 24px;
    }

    .rewards-tier-text {
        font-size: 15px;
    }

    .rewards-tier-points {
        grid-column: 2;
        margin-top: 8px;
        font-size: 22px;
    }

    .district-headline-white,
    .district-headline-teal,
    .district-tagline {
        font-size: clamp(40px, 13vw, 58px);
    }

    .district-built {
        font-size: 18px;
    }

    .district-cta {
        width: 100%;
        max-width: 320px;
    }

    .footer-shell {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ── Viewports <= 480px ───────────────────────────────────────────────── */
@media (max-width: 480px) {
    .footer-pre {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 40px;
    }
    .footer-pre-line {
        width: 100%;
        height: 1px;
    }
    .footer-pre-text {
        text-align: center;
    }
}

/* ── Viewports <= 420px ───────────────────────────────────────────────── */
@media (max-width: 420px) {
    .deals-grid {
        gap: 18px;
        scroll-padding-left: 22px;
    }

    .deal-card-main {
        min-height: 0;
        padding: 12px 12px 14px;
    }

    .deals-grid .deal-card {
        flex-basis: min(320px, calc(100vw - 82px));
    }

    .deal-card-brand {
        font-size: 19px;
    }

    .deal-card-description {
        font-size: 15px;
        line-height: 1.45;
    }

    nav a {
        font-size: 12px;
    }

    .insider-text {
        white-space: normal;
        text-align: center;
    }

    .eyebrow {
        letter-spacing: 1.5px;
    }

    .feeling-card {
        flex-basis: min(320px, calc(100vw - 82px));
        max-width: min(320px, calc(100vw - 82px));
    }

    .rewards-tier {
        grid-template-columns: 1fr;
    }

    .rewards-tier-badge,
    .rewards-tier-points {
        grid-column: auto;
    }

    .rewards-tier-badge {
        width: 72px;
        height: 72px;
    }

    .rewards-tier-points {
        margin-top: 2px;
    }
}

/* ── Interaction (Hover) Media Queries ───────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
    .rewards-tier:not(.is-featured):hover {
        background: rgba(126, 237, 87, 0.06);
        border-color: #7eed57;
        opacity: 1;
        transform: translateY(-1px);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.03),
            0 0 0 1px rgba(126, 237, 87, 0.18);
    }

    .rewards-tier:hover .rewards-tier-badge {
        background: rgba(126, 237, 87, 0.12);
    }

    .rewards-tier:hover .rewards-tier-name,
    .rewards-tier:hover .rewards-tier-text,
    .rewards-tier:hover .rewards-tier-points {
        opacity: 1;
    }
}
