/* =========================================================
   ICOFFEE — RESPONSIVE STYLES
   ========================================================= */


/* =========================================================
   TABLET / SMALL LAPTOP
   ========================================================= */

@media(max-width:1050px) {

    .nav {
        grid-template-columns: 1fr auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 118px;
        background: rgba(29, 15, 10, .96);
        padding: 24px 5vw;
        flex-direction: column;
        gap: 18px;
    }

    .nav-links.open {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .announcement-right,
    .announcement-mid {
        display: none;
    }

    .hero-copy {
        width: min(650px, 72vw);
        margin-left: 6vw;
    }

    .product-art {
        height: 520px;
    }

    .ingredient-section,
    .shop-inner {
        grid-template-columns: 1fr;
    }

    .ingredient-stage {
        min-height: 520px;
    }

    .shop-products {
        min-height: 480px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   WHY ICOFFEE
   SMALL LAPTOP / TABLET
   ========================================================= */

@media(max-width:1100px) {

    /*
       Desktop layout:
       2x2 information grid + portrait video.

       At this breakpoint the video moves
       underneath the information grid.
    */

    .iv-why-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .iv-why-video {
        margin-top: 0;
        width: 100%;
        height: 560px;
        aspect-ratio: auto;
        min-height: 0;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:900px) {

    .iv-why-section {
        padding: 90px 5vw;
    }

    .iv-why-heading h2 {
        font-size: clamp(40px, 6vw, 60px);
    }

    .iv-why-item {
        min-height: 210px;
        padding: 35px 30px;
    }

    .iv-why-video {
        height: 520px;
        min-height: 0;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:720px) {

    /* -----------------------------------------
       ANNOUNCEMENT
       ----------------------------------------- */

    .announcement {
        padding: 0 18px;
        font-size: 9px;
    }


    /* -----------------------------------------
       NAVIGATION
       ----------------------------------------- */

    .nav {
        height: 72px;
        padding: 0 18px;
    }

    .brand {
        gap: 12px;
    }

    .brand-divider {
        height: 18px;
    }

    .brand-indus {
        font-size: 10px;
    }

    .brand-icoffee {
        font-size: 23px;
    }

    .account-btn span {
        display: none;
    }


    /* -----------------------------------------
       HERO
       ----------------------------------------- */

    .hero {
        min-height: 820px;
        align-items: flex-end;
        padding-bottom: 105px;
    }

    .hero-copy {
        width: auto;
        margin: 0 24px;
    }

    .hero h1 {
        font-size: clamp(55px, 17vw, 86px);
    }

    .hero-copy > p {
        font-size: 21px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-trust {
        gap: 12px;
    }

    .hero-trust span {
        font-size: 10px;
    }

    .scroll-cue {
        display: none;
    }

    .hero-pagination {
        right: 20px;
        bottom: 24px;
    }


    /* -----------------------------------------
       GENERAL SECTION
       ----------------------------------------- */

    .section {
        padding: 88px 24px;
    }


    /* -----------------------------------------
       PRODUCT GRID
       ----------------------------------------- */

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 50px;
    }

    .product-art {
        height: 440px;
    }

    .product-meta h3 {
        font-size: 31px;
    }


    /* -----------------------------------------
       IMMERSIVE SECTION
       ----------------------------------------- */

    .immersive-section {
        min-height: 720px;
        background-attachment: scroll;
    }

    .immersive-copy {
        margin: 0 24px;
    }


    /* -----------------------------------------
       BENEFITS
       ----------------------------------------- */

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

    .benefit {
        padding-right: 16px;
    }

    .benefit:not(:first-child) {
        padding-left: 16px;
    }

    .benefit h3 {
        font-size: 30px;
        margin-top: 30px;
    }


    /* -----------------------------------------
       INGREDIENT
       ----------------------------------------- */

    .ingredient-copy {
        padding: 76px 24px;
    }

    .ingredient-stage {
        min-height: 420px;
    }


    /* -----------------------------------------
       STATEMENT
       ----------------------------------------- */

    .statement-section {
        padding: 100px 24px;
    }


    /* -----------------------------------------
       FAQ
       ----------------------------------------- */

    .faq-section {
        padding: 90px 24px;
    }

    .faq-list {
        margin-top: 44px;
    }


    /* -----------------------------------------
       SHOP
       ----------------------------------------- */

    .shop-section {
        padding: 90px 24px;
    }

    .shop-products {
        min-height: 380px;
        gap: 6px;
    }

    .shop-products img {
        height: 390px;
    }


    /* -----------------------------------------
       FOOTER
       ----------------------------------------- */

    .footer {
        padding: 60px 24px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        margin-top: 55px;
        flex-direction: column;
    }


    /* =====================================================
       WHY ICOFFEE — MOBILE
       ===================================================== */

    .iv-why-section {
        padding: 80px 24px;
    }

    /*
       On mobile:
       heading
       ↓
       01
       02
       03
       04
       ↓
       video
    */

    .iv-why-layout {
        display: block;
    }

    .iv-why-content {
        width: 100%;
    }

    .iv-why-heading {
        margin-bottom: 40px;
    }

    .iv-why-heading h2 {
        font-size: clamp(38px, 10vw, 52px);
        line-height: 1;
    }

    .iv-heading-line {
        margin: 32px auto 0;
    }


    /* -----------------------------------------
       WHY ICOFFEE GRID
       ----------------------------------------- */

    .iv-why-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .iv-why-item {
        min-height: auto;
        padding: 30px 25px;
    }

    .iv-why-item h3 {
        font-size: 25px;
    }

    .iv-why-item p {
        max-width: 100%;
        font-size: 14px;
    }


    /* -----------------------------------------
       VIDEO
       ----------------------------------------- */

    .iv-why-video {
        width: 100%;
        height: 500px;
        min-height: 0;
        margin-top: 35px;
        aspect-ratio: 9 / 16;
        border-radius: 14px;
    }

    .iv-story-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media(max-width:480px) {

    /* -----------------------------------------
       WHY ICOFFEE
       ----------------------------------------- */

    .iv-why-section {
        padding: 70px 20px;
    }

    .iv-section-label {
        font-size: 9px;
        gap: 10px;
    }

    .iv-section-label span {
        width: 28px;
    }

    .iv-why-heading h2 {
        font-size: 36px;
    }


    /* -----------------------------------------
       WHY ICOFFEE CARDS
       ----------------------------------------- */

    .iv-why-item {
        padding: 28px 22px;
    }

    .iv-why-number {
        margin-bottom: 20px;
    }

    .iv-why-item h3 {
        font-size: 23px;
    }

    .iv-why-item p {
        font-size: 13px;
        line-height: 1.65;
    }


    /* -----------------------------------------
       VIDEO
       ----------------------------------------- */

    .iv-why-video {
        width: 100%;
        height: 440px;
        min-height: 0;
        margin-top: 30px;
        aspect-ratio: 9 / 16;
        border-radius: 12px;
    }

    .iv-story-video {
        object-fit: cover;
        object-position: center;
    }

    .iv-video-top {
        top: 22px;
        left: 22px;
        right: 22px;
    }

    .iv-video-bottom {
        left: 22px;
        right: 22px;
        bottom: 24px;
    }

    .iv-video-bottom h3 {
        font-size: 31px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media(prefers-reduced-motion:reduce) {

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-media {
        transform: none !important;
    }

    .btn,
    .product-art img {
        transition: none;
    }

}

/* =========================================================
   ICOFFEE — FINAL WHY iCOFFEE LAYOUT OVERRIDES
   Equal-height grid + compact cards + responsive portrait video
   ========================================================= */

/* DESKTOP / LARGE TABLET
   The four cards and the portrait video use the same visual height.
*/
.iv-why-section {
    background: #f7efe3;
    color: #2c1a12;
}

.iv-why-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: clamp(28px, 4vw, 64px);
}

.iv-why-content {
    min-width: 0;
}

.iv-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 205px);
}

.iv-why-item {
    min-height: 0;
    height: 205px;
    padding: 28px 30px;
}

.iv-why-number {
    margin-bottom: 18px;
}

.iv-small-line {
    margin: 16px 0 18px;
}

.iv-why-item p {
    max-width: 360px;
    font-size: 13.5px;
    line-height: 1.6;
}

.iv-why-video {
    margin-top: 245px;
    width: auto;
    height: 410px;
    aspect-ratio: 9 / 16;
    min-height: 0;
    align-self: start;
}

.iv-story-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Keep the video visually centered beside the compact grid. */
@media (min-width: 1101px) {
    .iv-why-layout {
        grid-template-columns: minmax(0, 1fr) 255px;
    }

    .iv-why-video {
        width: 255px;
        height: 410px;
    }
}

/* TABLET
   Keep the content comfortable before switching to one column.
*/
@media (max-width: 1100px) and (min-width: 721px) {
    .iv-why-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .iv-why-grid {
        grid-template-rows: repeat(2, minmax(190px, auto));
    }

    .iv-why-item {
        height: auto;
        min-height: 190px;
        padding: 28px 30px;
    }

    .iv-why-video {
        width: min(100%, 360px);
        height: 640px;
        margin: 0 auto;
        aspect-ratio: 9 / 16;
    }
}

/* MOBILE */
@media (max-width: 720px) {
    .iv-why-section {
        padding: 72px 20px;
    }

    .iv-why-layout {
        display: block;
    }

    .iv-why-heading {
        margin-bottom: 34px;
    }

    .iv-why-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .iv-why-item {
        height: auto;
        min-height: 0;
        padding: 26px 22px;
    }

    .iv-why-number {
        margin-bottom: 16px;
    }

    .iv-why-item h3 {
        font-size: 24px;
    }

    .iv-small-line {
        margin: 14px 0 17px;
    }

    .iv-why-item p {
        max-width: none;
        font-size: 13.5px;
        line-height: 1.6;
    }

    .iv-why-video {
        width: 100%;
        height: auto;
        aspect-ratio: 9 / 16;
        margin: 32px auto 0;
        border-radius: 14px;
    }

    .iv-story-video {
        object-fit: cover;
        object-position: center;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .iv-why-section {
        padding: 64px 18px;
    }

    .iv-why-heading {
        margin-bottom: 30px;
    }

    .iv-why-item {
        padding: 24px 20px;
    }

    .iv-why-item h3 {
        font-size: 22px;
    }

    .iv-why-item p {
        font-size: 13px;
    }

    .iv-why-video {
        margin-top: 28px;
        border-radius: 12px;
    }

    .iv-video-top {
        top: 20px;
        left: 20px;
        right: 20px;
    }

    .iv-video-bottom {
        left: 20px;
        right: 20px;
        bottom: 22px;
    }

    .iv-video-bottom h3 {
        font-size: 29px;
    }
}

/* =========================================================
   ICOFFEE WHY — FINAL 3-COLUMN RESPONSIVE LAYOUT
   01 + 03 | VIDEO | 02 + 04
   ========================================================= */

/* Desktop */
@media (min-width: 1101px) {
    .iv-why-section {
        padding: 110px 5vw;
        overflow: hidden;
    }

    .iv-why-layout.iv-why-layout--three {
        width: 100%;
        max-width: 1500px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr);
        grid-template-rows: repeat(2, 1fr);
        column-gap: clamp(28px, 3vw, 48px);
        row-gap: 0;
        align-items: stretch;
    }

    .iv-why-column {
        display: grid;
        grid-template-rows: repeat(2, 205px);
        min-width: 0;
    }

    .iv-why-column--left {
        grid-column: 1;
    }

    .iv-why-column--right {
        grid-column: 3;
    }

    .iv-why-column .iv-why-item {
        height: 205px;
        min-height: 0;
        padding: 28px 30px;
    }

    .iv-why-column .iv-why-number {
        margin-bottom: 18px;
    }

    .iv-why-column .iv-small-line {
        margin: 16px 0 18px;
    }

    .iv-why-column .iv-why-item p {
        max-width: 360px;
        font-size: 13.5px;
        line-height: 1.6;
    }

    .iv-why-video {
        grid-column: 2;
        grid-row: 1 / 3;
        width: 300px;
        height: 410px;
        margin: auto;
        aspect-ratio: 9 / 16;
        min-height: 0;
        align-self: center;
        justify-self: center;
        overflow: hidden;
        border-radius: 18px;
    }

    .iv-story-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        background: #2c1a12;
    }
}

/* Medium desktop / tablet */
@media (max-width: 1100px) and (min-width: 721px) {
    .iv-why-section {
        padding: 90px 5vw;
    }

    .iv-why-layout.iv-why-layout--three {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(250px, 300px) minmax(0, 1fr);
        gap: 20px;
        align-items: stretch;
    }

    .iv-why-column {
        display: grid;
        grid-template-rows: repeat(2, minmax(190px, auto));
        min-width: 0;
    }

    .iv-why-column .iv-why-item {
        height: auto;
        min-height: 190px;
        padding: 26px 22px;
    }

    .iv-why-column .iv-why-number {
        margin-bottom: 16px;
    }

    .iv-why-column .iv-small-line {
        margin: 14px 0 16px;
    }

    .iv-why-column .iv-why-item p {
        font-size: 13px;
        line-height: 1.55;
    }

    .iv-why-video {
        grid-column: 2;
        grid-row: 1 / 3;
        width: 100%;
        height: auto;
        min-height: 0;
        margin: auto;
        aspect-ratio: 9 / 16;
        align-self: center;
    }

    .iv-story-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
}

/* Mobile — 01, 03, VIDEO, 02, 04 */
@media (max-width: 720px) {
    .iv-why-section {
        padding: 72px 20px;
    }

    .iv-why-layout.iv-why-layout--three {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .iv-why-column {
        display: contents;
    }

    .iv-why-column--left {
        order: 1;
    }

    .iv-why-column--right {
        order: 3;
    }

    .iv-why-column--left .iv-why-item:nth-child(1) {
        order: 1;
    }

    .iv-why-column--left .iv-why-item:nth-child(2) {
        order: 2;
    }

    .iv-why-video {
        order: 2;
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 32px auto;
        aspect-ratio: 9 / 16;
        border-radius: 14px;
        align-self: auto;
    }

    .iv-why-column--right .iv-why-item:nth-child(1) {
        order: 3;
    }

    .iv-why-column--right .iv-why-item:nth-child(2) {
        order: 4;
    }

    .iv-why-item,
    .iv-why-column .iv-why-item {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 26px 22px;
    }

    .iv-why-grid {
        display: block;
    }

    .iv-story-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        background: #2c1a12;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .iv-why-section {
        padding: 64px 18px;
    }

    .iv-why-heading h2 {
        font-size: 36px;
    }

    .iv-why-column .iv-why-item {
        padding: 24px 20px;
    }

    .iv-why-video {
        margin: 28px auto;
        border-radius: 12px;
    }

    .iv-story-video {
        object-fit: contain;
    }
}



/* =========================================================
   iCOFFEE — MOBILE HERO IMAGE
   Uses the dedicated portrait hero artwork
   ========================================================= */

@media (max-width: 720px) {

    /* Hide the normal HTML hero content because
       the mobile artwork already contains the text,
       products and CTA. */
    .hero-copy,
    .hero-vignette,
    .scroll-cue,
    .hero-pagination {
        display: none !important;
    }

    /* Make the hero exactly the same aspect ratio
       as icoffee-mobile-hero.png */
    .hero {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: calc(100vw * 1.7758) !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: #29160e !important;
    }

    /* The actual mobile artwork */
    .hero-media {
        position: absolute !important;
        inset: 0 !important;

        width: 100% !important;
        height: 100% !important;

        background-image:
            url('../assets/images/hero/icoffee-mobile-hero.png') !important;

        background-size: 100% 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;

        transform: none !important;
        filter: none !important;

        z-index: 1 !important;
    }

    .hero:hover .hero-media {
        background-size: 100% 100% !important;
        filter: none !important;
    }

    /* The artwork already contains all visual text,
       product imagery and hero composition. */
    .hero-media::after {
        display: none !important;
    }
}
