/* ============================================================
   RESPONSIVE OVERRIDES — all breakpoints
   Add this at the bottom of styles.css
   ============================================================ */

/* ── LARGE DESKTOP (1400px+) ── */
@media (min-width: 1400px) {
    .intro-col {
        font-size: clamp(1rem, 1.2vw, 1.4rem);
    }

    .philosophy-title {
        left: -200px;
    }

    .philosophy-subtitle {
        left: -200px;
    }
}

/* ── TABLET LANDSCAPE (901px–1199px) ── */
@media (max-width: 1199px) {

    /* Section 3 */
    .intro-top {
        grid-template-columns: auto 20px 1fr;
    }

    .intro-col:last-child {
        grid-column: 1 / -1;
    }

    .intro-col {
        font-size: clamp(0.85rem, 1.4vw, 1.2rem);
    }

    /* Section 4 */
    .philosophy-title {
        left: -150px;
        font-size: clamp(2.5rem, 8vw, 6rem);
    }

    .philosophy-subtitle {
        left: -150px;
    }

    .philosophy-stamp {
        left: -100px;
    }

    /* Section 6 */
    .nn-content {
        margin-left: 5vw;
        width: 90%;
    }
}

/* ── TABLET PORTRAIT (601px–900px) ── */
@media (max-width: 900px) {

    /* ── SECTION 1 · COVER ── */
    .section-cover {
        flex-direction: column;
        justify-content: center;
        gap: 6vw;
        padding: calc(72px + 6vw) 6vw 10vw 6vw;
    }

    .logo-section,
    .title-section {
        flex: 0 0 auto;
        width: 100%;
        align-items: flex-start;
    }

    .brand-book-title {
        text-align: left;
    }

    .tagline {
        text-align: left;
    }

    .divider {
        display: none;
    }

    .brand-line,
    .book-line {
        font-size: clamp(4rem, 18vw, 9rem);
    }

    /* ── SECTION 2 · INDEX ── */
    .section-index {
        padding: 6vw 5vw;
        align-items: center;
    }

    .index-word {
        font-size: clamp(4rem, 22vw, 12rem);
    }

    /* ── SECTION 3 · INTRODUCTION ── */
    .intro-top {
        grid-template-columns: 1fr;
        gap: 4vw 0;
    }

    .zig-divider {
        display: none;
    }

    .fun-fact {
        max-width: 100%;
    }

    .intro-col {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    }

    .intro-title {
        font-size: clamp(3.5rem, 16vw, 8rem);
        letter-spacing: -0.01em;
    }

    .gift-wrap {
        width: clamp(80px, 20vw, 130px);
    }

    .stamp-wrap {
        display: none;
    }

    /* ── SECTION 4 · PHILOSOPHY ── */
    .section-philosophy {
        min-height: auto;
        width: 100%;
        margin-left: 0;
    }

    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 4vw 0;
        padding: 8vw 5vw;
    }

    .philosophy-title {
        left: 0;
        font-size: clamp(3rem, 14vw, 6rem);
    }

    .philosophy-subtitle {
        left: 0;
        font-size: clamp(1rem, 4vw, 2rem);
    }

    .philosophy-stamp {
        position: absolute;
        top: -5%;
        right: 0%;
        left: auto;
        margin: 0;
    }

    .philosophy-stamp img {
        content: url("assets/The NCC Logo Files_28.svg");
        /* swap pink for grey */
        position: absolute;
        right: -5vw;
        /* Shift into the padding space slightly to fill exactly to edge */
        left: auto;
        top: 0;
        width: 380%;
    }

    .philosophy-right {
        grid-template-columns: 1fr;
        padding-top: 0;
    }

    .phil-zig {
        display: none;
    }

    .teal-leaf {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: clamp(80px, 20vw, 120px);
        margin-bottom: 1rem;
    }

    .philosophy-bg-img {
        left: 0;
        transform: none;
        width: 100%;
        object-fit: cover;
    }

    @media (max-width: 900px) {

        .philosophy-content {
            grid-template-columns: 1fr;
            /* 🔥 stack */
            gap: 2rem;
            padding: 6vw 5vw;
        }

        .philosophy-left {
            transform: none;
            margin: 0;
        }

        .philosophy-right {
            margin: 0;
            transform: none;
        }

        .philosophy-title {
            font-size: clamp(2rem, 10vw, 4rem);
        }

        .phil-zig {
            display: none;
        }
    }

    @media (max-width: 900px) {

        .philosophy-content {
            grid-template-columns: 1fr;
            justify-items: start;
            /* 🔥 KEY FIX */
            text-align: left;
            /* ensures text stays left */
        }

        .philosophy-left {
            align-items: flex-start;
            /* 🔥 prevents centering */
            text-align: left;
        }

        .philosophy-title,
        .philosophy-subtitle {
            text-align: left;
        }
    }

    /* ── SECTION 5 · BRAND VALUES ── */
    .bv-section {
        height: auto;
        min-height: 100vh;
    }

    .bv-left {
        clip-path: none;
        position: relative;
        width: 100%;
        height: 50vh;
    }

    .bv-right {
        clip-path: none;
        position: relative;
        width: 100%;
        height: 50vh;
    }

    .bv-values-wrap {
        padding: 5vw 5vw 5vw 5vw;
    }

    .bv-stamp {
        left: 50%;
        top: 0;
    }

    .bv-leaf {
        width: clamp(180px, 50vw, 300px);
    }

    .bv-main-heading {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    /* ── SECTION 6 · NON-NEGOTIABLES ── */
    .nn-top {
        min-height: 20vh;
        padding: 8vw 5vw 0;
    }

    .nn-title {
        font-size: clamp(2.5rem, 10vw, 8rem);
    }

    .nn-subtitle {
        font-size: clamp(1rem, 4vw, 2.5rem);
        margin-right: 0;
    }

    .nn-content {
        margin-left: 0;
        width: 100%;
        gap: 6vw;
    }

    .nn-row {
        flex-direction: column;
        gap: 4vw;
    }

    .nn-zag {
        transform: rotate(90deg);
    }

    .nn-stamp {
        bottom: 2%;
        right: 2%;
        width: clamp(80px, 18vw, 140px);
        height: clamp(80px, 18vw, 140px);
        opacity: 0.5;
    }

    /* ── FOOTER ── */
    .footer-top-row {
        grid-template-columns: 1fr 1fr;
        gap: 6vw;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ── MOBILE (max 768px) ── */
@media (max-width: 768px) {
    body {
        padding-top: 72px;
    }

    /* ── SECTION 1 ── */
    .brand-line,
    .book-line {
        font-size: clamp(3.5rem, 22vw, 7rem);
    }

    .tagline {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    /* ── SECTION 2 ── */
    .index-word {
        font-size: clamp(3.5rem, 24vw, 8rem);
    }

    /* ── SECTION 3 ── */
    .intro-col {
        font-size: clamp(0.85rem, 3.5vw, 1.1rem);
    }

    .intro-title {
        font-size: clamp(2.5rem, 18vw, 6rem);
    }

    .intro-subtitle {
        font-size: clamp(1rem, 4vw, 1.8rem);
    }

    .gift-wrap {
        display: none;
    }

    /* ── SECTION 4 ── */
    .philosophy-title {
        font-size: clamp(2.5rem, 16vw, 5rem);
    }

    .philosophy-col {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }

    /* ── SECTION 5 ── */
    .bv-left,
    .bv-right {
        height: 45vh;
    }

    .bv-main-heading {
        font-size: clamp(2rem, 14vw, 4rem);
    }

    .bv-value-title {
        font-size: clamp(0.85rem, 3.5vw, 1.2rem);
    }

    .bv-value-desc {
        font-size: clamp(0.6rem, 2.5vw, 0.8rem);
    }

    /* ── SECTION 6 ── */
    .nn-title {
        font-size: clamp(1.8rem, 12vw, 5rem);
    }

    .nn-item {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        max-width: 100%;
    }

    .nn-footer {
        font-size: clamp(0.7rem, 3vw, 0.95rem);
    }

    /* ── FOOTER ── */
    .footer-top-row {
        grid-template-columns: 1fr;
    }

    .footer-social-row {
        gap: 1rem;
    }

    .footer-link {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }

    .footer-tagline {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    }
}

/* ── VERY SMALL (max 380px) ── */
@media (max-width: 380px) {

    .brand-line,
    .book-line {
        font-size: clamp(3rem, 24vw, 6rem);
    }

    .index-word {
        font-size: clamp(3rem, 26vw, 6rem);
    }

    .intro-title {
        font-size: clamp(2rem, 20vw, 5rem);
    }

    .philosophy-title {
        font-size: clamp(2rem, 18vw, 4rem);
    }

    .nn-title {
        font-size: clamp(1.5rem, 14vw, 4rem);
    }
}

/* ── ABOUT PAGE: BRAND VALUES MOBILE FIX ── */
@media (max-width: 900px) {
    .bv-section {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
        position: relative;
    }

    .bv-left {
        position: relative; /* takes space */
        inset: auto;
        width: 100%;
        height: 50vh;
        clip-path: none; /* removes desktop jagged tear */
        z-index: 2;
    }

    .bv-right {
        position: absolute;
        top: 50vh;
        bottom: 0;
        left: 0;
        width: 100%;
        inset: auto;
        clip-path: none;
        z-index: 1;
    }

    .bv-values-wrap {
        position: relative;
        inset: auto;
        padding: 10vw 6vw 15vw 6vw;
        width: 100%;
        z-index: 4;
        display: block;
    }

    .bv-leaf {
        top: 0px;
        left: -20px;
        width: 140%;
        transform: rotate(155deg);
    }

    .bv-stamp {
        position: absolute;
        top: 50vh;
        left: 80%;
        transform: translate(-50%, -50%);
        width: clamp(80px, 12vw, 110px);
        height: clamp(80px, 12vw, 110px);
        z-index: 5;
    }

    .title-with-coco {
        justify-content: flex-start;
    }
    
    .bv-coco-decor.top-center {
        top: 5vh;
        left: 10vw;
        transform: none;
    }

    .bv-coco-decor.bottom-left {
        display: none;
    }

    .bv-coco-decor.bottom-right {
        bottom: 5vh;
        right: 10vw;
    }
}

/* Header responsiveness is handled in `header.css`. */

@media (max-width: 900px) {

    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 8vw 5vw;
    }

    .philosophy-right {
        grid-template-columns: 1fr;
    }

    .phil-zig {
        display: none;
    }

    .philosophy-title {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    .philosophy-subtitle {
        font-size: clamp(1rem, 4vw, 1.8rem);
    }
}