/* ==========================================================================
   Re-Member Movement — Responsive
   Mobile-first responsive breakpoints and print styles.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Small Mobile — max-width: 480px
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .membership-benefits {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .cta-section__buttons {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form__inline {
        flex-direction: column;
    }

    .card--featured {
        grid-template-columns: 1fr;
    }

    .card--featured .card__image {
        height: 200px;
    }

    .related-articles__grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .truth-statement--large {
        font-size: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   Tablet Portrait — 481px to 768px
   -------------------------------------------------------------------------- */

@media (min-width: 481px) and (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .card--featured {
        grid-template-columns: 1fr;
    }

    .related-articles__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .membership-benefits {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Tablet & Mobile Navigation — max-width: 1024px
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .site-header__menu-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 80px;
        right: 0;
        bottom: 0;
        width: 300px;
        background: var(--cream);
        transform: translateX(100%);
        opacity: 0;
        padding: 2rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
    }

    .site-nav.is-open {
        transform: translateX(0);
        opacity: 1;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 0;
    }

    .site-nav__list li {
        border-bottom: 1px solid var(--cream-dark);
    }

    .site-nav__list a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .site-nav__list a::after {
        display: none;
    }

    body.nav-open {
        overflow: hidden;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 998;
    }

    body.nav-open .mobile-overlay {
        display: block;
    }
}

/* --------------------------------------------------------------------------
   Desktop — min-width: 1025px
   -------------------------------------------------------------------------- */

@media (min-width: 1025px) {
    .site-header__menu-toggle {
        display: none;
    }

    .site-nav {
        /* Undo mobile positioning */
        position: static;
        width: auto;
        background: transparent;
        transform: none;
        opacity: 1;
        padding: 0;
        box-shadow: none;
        overflow: visible;
    }

    .site-nav__list {
        flex-direction: row;
        gap: 2rem;
    }

    .site-nav__list li {
        border-bottom: none;
    }

    .site-nav__list a {
        display: inline;
        padding: 0;
        font-size: 0.95rem;
    }

    .site-nav__list a::after {
        display: block;
    }
}

/* --------------------------------------------------------------------------
   Large Desktop — min-width: 1200px
   -------------------------------------------------------------------------- */

@media (min-width: 1200px) {
    .container {
        padding: 0 3rem;
    }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */

@media print {
    /* Hide interactive and navigational elements */
    .site-header,
    .site-footer,
    .site-nav,
    .breathing-hero,
    .breathing-circle,
    .breathing-label,
    .breathing-hero__skip,
    .breathing-hero__scroll-indicator,
    .newsletter-form__inline,
    .newsletter-form__fields,
    .newsletter-form__title,
    .share-buttons,
    .skip-link,
    .grain-overlay,
    .mobile-overlay,
    .site-header__menu-toggle,
    .topic-filter,
    .pagination,
    .btn,
    .search-form,
    .mirror-practice__toggle,
    .social-links,
    .cta-section__buttons {
        display: none !important;
    }

    /* Reset body for print */
    body {
        background: white !important;
        color: black !important;
        padding-top: 0 !important;
        font-size: 12pt;
        line-height: 1.5;
    }

    /* Readable content width */
    .article-content {
        max-width: 100%;
    }

    .container,
    .container--narrow,
    .container--medium {
        max-width: 100%;
        padding: 0;
    }

    /* Ensure headings are dark */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
    }

    /* Show link URLs in parentheses */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #555;
    }

    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }

    /* Remove decorative elements */
    .section--forest,
    .section--cream-dark {
        background: white !important;
        color: black !important;
    }

    /* Images */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* Remove animations and transforms */
    .fade-in-up,
    .section-reveal,
    .mirror-reveal,
    .mirror-practice__step {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Remove box shadows */
    .card,
    .testimonial,
    .benefit-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}
