/* ==========================================================================
   Responsive — Breakpoints & Mobile Overrides
   Breast Connect Theme
   ========================================================================== */

/* ---------- 1200px — Large Tablets / Small Desktops ---------- */

@media (max-width: 1200px) {
    .bc-header__nav {
        gap: 24px;
    }

    .bc-program-row {
        gap: 40px;
    }

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

    /* Resources spans both columns at this breakpoint so 2-col list still fits */
    .bc-footer__col--resources {
        grid-column: 1 / -1;
    }

    .bc-explore__inner {
        gap: 40px;
    }

    .bc-about__grid {
        gap: 40px;
    }
}

/* ---------- 992px — Tablets ---------- */

@media (max-width: 992px) {
    /* Header / Nav */
    .bc-header {
        height: 90px;
    }

    .bc-header__logo img {
        height: 75px;
    }

    .bc-header__nav {
        display: none;
    }

    .bc-hamburger {
        display: block;
    }

    /* Programs */
    .bc-program-row {
        flex-direction: column;
        gap: 30px;
    }

    .bc-program-row--reversed {
        flex-direction: column;
    }

    .bc-program-row__image {
        flex: 0 0 auto;
        width: 100%;
        height: 320px;
    }

    /* Membership */
    .bc-membership {
        flex-direction: column;
    }

    .bc-membership__image {
        flex: 0 0 auto;
        height: 300px;
    }

    .bc-membership__image::after {
        width: 100%;
        height: 80px;
        top: auto;
        bottom: 0;
        right: auto;
        background: linear-gradient(to bottom, transparent, var(--navy));
    }

    .bc-membership__content {
        padding: 40px 30px;
    }

    /* Explore */
    .bc-explore__inner {
        flex-direction: column;
    }

    .bc-explore__image {
        width: 100%;
        height: 300px;
    }

    /* About */
    .bc-about__grid {
        grid-template-columns: 1fr;
    }

    .bc-about__photos {
        height: 350px;
    }

    /* Inner page grids — collapse */
    .bc-about-mission [style*="grid-template-columns: 1fr 1fr"],
    section [style*="grid-template-columns:1fr 1fr"],
    section [style*="grid-template-columns:1fr 380px"],
    section [style*="grid-template-columns:1.2fr 0.8fr"],
    section [style*="grid-template-columns:2fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    section [style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Sticky sidebars — unstick on tablet */
    aside[style*="position:sticky"] {
        position: static !important;
    }

    /* Archive */
    .bc-archive-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero */
    .bc-hero__title {
        font-size: 2.5rem;
    }
}

/* ---------- 768px — Mobile Landscape / Small Tablets ---------- */

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
        --section-padding: clamp(40px, 6vw, 60px);
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    /* Hero */
    .bc-hero {
        min-height: 70vh;
    }

    .bc-hero-short {
        height: 280px;
    }

    /* Mission Card — more breathing room on mobile */
    .bc-mission-card-wrap {
        margin-top: -20px;
        margin-bottom: -20px;
    }

    .bc-mission-card {
        padding: 30px;
    }

    /* Hero — more bottom padding on mobile so mission card doesn't crowd CTA */
    .bc-hero__content {
        padding-bottom: 120px;
    }

    .bc-mission-card__heading {
        font-size: 1.35rem;
    }

    /* Footer */
    .bc-footer__grid {
        grid-template-columns: 1fr;
    }

    .bc-footer__col--resources {
        grid-column: auto;
    }

    .bc-footer__links-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bc-footer__member-cta {
        margin-top: 20px;
        width: 100%;
        justify-content: center;
    }

    .bc-footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .bc-footer__legal a {
        margin-left: 12px;
    }

    .bc-footer__legal a:first-child {
        margin-left: 0;
    }

    /* Archive */
    .bc-archive-grid--3,
    .bc-archive-grid--2 {
        grid-template-columns: 1fr;
    }

    /* About */
    .bc-about__photos {
        height: 280px;
    }

    /* About page — single column on mobile */
    section [style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Parallax bg — disable fixed attachment on mobile */
    [style*="background-attachment:fixed"] {
        background-attachment: scroll !important;
    }

    /* Dividers — reduce overlap on mobile to prevent covering content */
    .bc-divider-wave {
        height: 40px;
        margin-top: -40px;
    }

    .bc-divider-curve {
        height: 35px;
    }

    /* Inner page grids — collapse to single column */
    section [style*="grid-template-columns:1fr 1fr"],
    section [style*="grid-template-columns:1fr 380px"],
    section [style*="grid-template-columns:1.2fr 0.8fr"],
    section [style*="grid-template-columns:2fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Sticky sidebars — unstick on mobile */
    aside[style*="position:sticky"] {
        position: static !important;
    }

    .bc-about__photo:nth-child(1) {
        width: 220px;
        height: 165px;
        top: 10px;
        left: 10px;
    }

    .bc-about__photo:nth-child(2) {
        width: 180px;
        height: 150px;
        top: 80px;
        left: 120px;
    }

    .bc-about__photo:nth-child(3) {
        width: 150px;
        height: 180px;
        top: 20px;
        right: 10px;
    }

    .bc-about__text {
        padding-left: 0;
    }

    /* Newsletter */
    .bc-newsletter__heading {
        font-size: 1.8rem;
    }

    .bc-newsletter__script {
        font-size: 1.3rem;
    }

    /* Explore */
    .bc-explore__heading {
        font-size: 1.8rem;
    }

    /* Membership */
    .bc-membership__heading {
        font-size: 1.8rem;
    }

    /* CTA Band */
    .bc-cta-band__heading {
        font-size: 1.8rem;
    }

    /* Mobile Nav */
    .bc-mobile-nav {
        width: 280px;
    }

    /* Programs */
    .bc-program-row__image {
        height: 260px;
    }

    .bc-program-row__title {
        font-size: 1.5rem;
    }

    /* Fixed image heights — cap on mobile */
    .bc-program-detail__image,
    .bc-img-container[style*="height:450px"],
    .bc-img-container[style*="height:420px"],
    .bc-img-container[style*="height:400px"],
    .bc-img-container[style*="height:380px"] {
        height: 260px !important;
    }
}

/* ---------- 480px — Mobile Portrait ---------- */

@media (max-width: 480px) {
    /* Hero — keep generous padding for mission card spacing */
    .bc-hero__content {
        padding-bottom: 120px;
    }

    .bc-hero__actions {
        flex-direction: column;
        width: 100%;
    }

    /* Explore */
    .bc-explore__buttons {
        flex-direction: column;
        width: 100%;
    }

    /* Buttons */
    .bc-btn {
        width: 100%;
        justify-content: center;
    }

    /* About */
    .bc-about__photos {
        height: 220px;
    }

    .bc-about__photo:nth-child(1) {
        width: 180px;
        height: 135px;
        top: 5px;
        left: 5px;
        transform: rotate(-2deg);
    }

    .bc-about__photo:nth-child(2) {
        width: 150px;
        height: 125px;
        top: 60px;
        left: 100px;
        transform: rotate(1deg);
    }

    .bc-about__photo:nth-child(3) {
        width: 120px;
        height: 150px;
        top: 10px;
        right: 5px;
        transform: rotate(2deg);
    }

    /* Mission Card */
    .bc-mission-card {
        padding: 24px 20px;
        margin-top: -30px;
    }

    /* Leader Cards */
    .bc-leader-card__photo {
        width: 160px;
        height: 160px;
    }

    /* Footer */
    .bc-footer {
        padding-top: 50px;
    }

    /* Forms */
    .bc-form-inline {
        flex-direction: column;
    }

    .bc-form-inline input {
        border-radius: var(--radius-pill);
        margin-bottom: 10px;
    }

    .bc-form-inline button {
        border-radius: var(--radius-pill);
    }
}

/* ---------- Sisterhood split, Contact & Donate — responsive grids ---------- */

@media (max-width: 992px) {
    /* Sisterhood: 2-col header + split → stack */
    #sisterhood .container > div[style*="1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    /* Contact: stack form + sidebar */
    .bc-contact section > .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Donate: 4-col tiers → 2-col */
    div[style*="repeat(4,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Donate: navy 2-col → stack */
    section[style*="--navy"] > .container > div[style*="1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    /* Contact form: 2-col name/email → stack */
    .bc-native-form div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Donate tiers → single column */
    div[style*="repeat(4,1fr)"] {
        grid-template-columns: 1fr !important;
    }
}
