/* ─── TABLET: ≤1024px ─────────────────────────── */

@media (max-width: 1024px) {
    .hero__photo {
        width: 260px;
        height: 260px;
    }

    .products__grid,
    .purpose__grid,
    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .why-hire__inner {
        gap: 40px;
    }

    .why-hire__screenshots {
        width: 240px;
        height: 400px;
    }
}

/* ─── MOBILE: ≤768px ──────────────────────────── */

@media (max-width: 768px) {
    :root {
        --spacing-2xl: 64px;
    }

    /* Header */
    .header__nav,
    .header__cta {
        display: none;
    }

    .header__hamburger {
        display: flex;
    }

    .header__nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: rgba(13, 13, 13, 0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--color-border);
        padding: 24px 40px;
        gap: 24px;
        z-index: 99;
    }

    .header__nav.open a {
        font-size: 18px;
    }

    .header__cta.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: calc(var(--header-height) + 244px);
        left: 0;
        right: 0;
        background-color: rgba(13, 13, 13, 0.97);
        padding: 0 40px 24px;
        z-index: 99;
    }

    /* Hero */
    .hero {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .hero__photo-wrap {
        order: -1;
    }

    .hero__photo {
        width: 180px;
        height: 180px;
    }

    .hero__photo-ring {
        inset: -12px;
    }

    .hero__title {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .hero__sub {
        font-size: 16px;
    }

    .hero__cta {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero__cta .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Trust strip */
    .trust-strip__grid {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .trust-strip__item {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .trust-strip__item:last-child {
        border-bottom: none;
    }

    /* Products */
    .products__grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    /* Why Hire Me */
    .why-hire__inner {
        grid-template-columns: 1fr;
    }

    .why-hire__visuals {
        order: -1;
        overflow: hidden;
        width: 100%;
    }

    .why-hire__screenshots {
        width: 220px;
        height: 320px;
        margin: 0 auto;
    }

    .why-hire__screenshot:nth-child(1) {
        transform: translateX(-50%) rotate(-4deg);
    }

    /* Featured Projects */
    .project-block {
        grid-template-columns: 1fr;
    }

    .project-block--reverse {
        direction: ltr;
    }

    .project-block__details {
        grid-template-columns: 1fr;
    }

    /* Purpose */
    .purpose__grid {
        grid-template-columns: 1fr;
    }

    /* Blog */
    .blog__grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact__inner {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    /* Section headings */
    .section-title {
        font-size: 28px;
    }

    /* FAQ padding reduction */
    .faq-item__question {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .faq-item.open .faq-item__answer {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    /* Container padding */
    .container {
        padding: 0 24px;
    }

    .header {
        padding: 0 24px;
    }
}

/* ─── SMALL MOBILE: ≤375px ────────────────────── */

@media (max-width: 375px) {
    .hero__title {
        font-size: 28px;
        overflow-wrap: break-word;
    }

    .section-title {
        font-size: 24px;
        overflow-wrap: break-word;
    }

    .donation__card {
        padding: 32px 20px;
    }

    .hero__title br {
        display: none;
    }
}

/* ─── LARGE DESKTOP: ≥1440px ─────────────────── */

@media (min-width: 1440px) {
    .hero__title {
        font-size: 64px;
    }
}
