/* =========================================================
   KARTEL62 PERFUME STORE
   RESPONSIVE STYLE SHEET
   Desktop / Tablet / Mobile
   ========================================================= */


/* =========================================================
   LARGE TABLET / SMALL DESKTOP
   Max Width: 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .container {
        width: min(
            calc(100% - 40px),
            1000px
        );
    }


    /* Header */

    .nav-container {
        gap: 20px;
    }

    .main-nav {
        gap: 20px;
    }

    .main-nav a {
        font-size: 0.70rem;
    }

    .nav-button {
        padding: 0 16px;

        font-size: 0.64rem;
    }


    /* Hero */

    .hero {
        min-height: 700px;
    }

    .hero h1 {
        font-size: clamp(
            2.8rem,
            6vw,
            5rem
        );
    }


    /* Categories */

    .category-card {
        min-height: 500px;
    }

    .category-content {
        padding: 28px;
    }


    /* Products */

    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 28px 20px;
    }


    /* Story */

    .brand-story-grid {
        gap: 50px;
    }


    /* Benefits */

    .benefit-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .benefit-card {
        min-height: 260px;

        border-bottom: 1px solid var(--border-light);
    }

    .benefit-card:nth-child(2) {
        border-right: 0;
    }

    .benefit-card:nth-child(3),
    .benefit-card:nth-child(4) {
        border-bottom: 0;
    }


    /* Footer */

    .footer-grid {
        grid-template-columns:
            1.4fr
            1fr
            1fr;

        gap: 45px;
    }

    .footer-brand {
        grid-column: span 3;
        max-width: 500px;
    }
}


/* =========================================================
   TABLET
   Max Width: 900px
   ========================================================= */

@media (max-width: 900px) {

    .section {
        padding: 85px 0;
    }


    /* Header */

    .nav-container {
        min-height: 78px;
    }

    .main-nav {
        gap: 16px;
    }

    .main-nav a {
        font-size: 0.63rem;
        letter-spacing: 0.04em;
    }

    .nav-button {
        display: none;
    }


    /* Hero */

    .hero {
        min-height: 650px;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.90) 0%,
                rgba(0, 0, 0, 0.68) 65%,
                rgba(0, 0, 0, 0.42) 100%
            );
    }

    .hero-container {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .hero-content {
        max-width: 680px;
    }

    .hero h1 {
        font-size: clamp(
            2.7rem,
            7vw,
            4.6rem
        );
    }

    .hero-content > p {
        max-width: 580px;

        font-size: 0.96rem;
    }

    .hero-stat {
        margin-top: 50px;

        gap: 35px;
    }


    /* Categories */

    .category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .category-card:last-child {
        grid-column: span 2;

        min-height: 420px;
    }


    /* Story */

    .brand-story-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .story-content {
        max-width: 700px;
    }

    .story-image {
        max-width: 650px;
    }


    /* CTA */

    .cta-box {
        min-height: 300px;

        padding: 50px;
    }

    .cta-box h2 {
        font-size: clamp(
            2rem,
            5vw,
            3.2rem
        );
    }
}


/* =========================================================
   MOBILE LANDSCAPE / LARGE PHONE
   Max Width: 700px
   ========================================================= */

@media (max-width: 700px) {

    .container {
        width: min(
            calc(100% - 32px),
            100%
        );
    }


    /* General */

    .section {
        padding: 70px 0;
    }

    .section-heading {
        display: block;

        margin-bottom: 38px;
    }

    .section-heading h2 {
        font-size: clamp(
            2rem,
            9vw,
            3rem
        );
    }

    .section-heading p {
        font-size: 0.91rem;
    }

    .section-heading .text-link {
        margin-top: 20px;
    }


    /* Header */

    .site-header {
        position: relative;
    }

    .nav-container {
        min-height: 72px;
    }

    .brand-mark {
        width: 39px;
        height: 39px;

        font-size: 0.70rem;
    }

    .brand-text strong {
        font-size: 0.88rem;
    }

    .brand-text span {
        font-size: 0.46rem;
    }

    /*
       Mobile navigation tetap horizontal.
       Jika layar terlalu kecil, navigasi dapat
       digeser secara horizontal.
    */

    .main-nav {
        flex: 1;

        justify-content: flex-start;

        gap: 18px;

        overflow-x: auto;
        overflow-y: hidden;

        padding-bottom: 3px;

        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        flex-shrink: 0;

        font-size: 0.60rem;
    }


    /* Hero */

    .hero {
        min-height: 650px;
    }

    .hero-background img {
        object-position: 62% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.48) 0%,
                rgba(0, 0, 0, 0.84) 60%,
                rgba(0, 0, 0, 0.95) 100%
            );
    }

    .hero-container {
        padding-top: 70px;
        padding-bottom: 60px;
    }

    .eyebrow {
        font-size: 0.61rem;

        letter-spacing: 0.15em;
    }

    .eyebrow::before {
        width: 24px;
    }

    .hero h1 {
        margin-top: 18px;

        font-size: clamp(
            2.35rem,
            11vw,
            3.8rem
        );

        line-height: 1.03;
    }

    .hero-content > p {
        margin-top: 20px;

        font-size: 0.87rem;
        line-height: 1.75;
    }

    .hero-actions {
        margin-top: 28px;

        gap: 10px;
    }

    .btn {
        min-height: 50px;

        padding: 0 20px;

        font-size: 0.65rem;
    }

    .hero-stat {
        margin-top: 42px;

        gap: 25px;
    }

    .hero-stat > div:not(:last-child)::after {
        right: -14px;

        height: 36px;
    }

    .hero-stat strong {
        font-size: 1.4rem;
    }

    .hero-stat span {
        font-size: 0.56rem;
    }


    /* Intro */

    .intro .section-heading h2 {
        font-size: clamp(
            2.25rem,
            10vw,
            3.2rem
        );
    }


    /* Categories */

    .category-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .category-card,
    .category-card:last-child {
        grid-column: auto;

        min-height: 460px;
    }

    .category-content {
        padding: 25px;
    }

    .category-content h3 {
        font-size: 1.7rem;
    }


    /* Products */

    .product-grid {
        grid-template-columns: 1fr 1fr;

        gap: 25px 12px;
    }

    .product-image {
        aspect-ratio: 0.82;
    }

    .product-badge {
        top: 9px;
        left: 9px;

        padding: 6px 8px;

        font-size: 0.52rem;
    }

    .quick-view {
        left: 8px;
        right: 8px;
        bottom: 8px;

        min-height: 42px;

        font-size: 0.58rem;
    }

    .product-info {
        padding-top: 15px;
    }

    .product-category {
        font-size: 0.55rem;
    }

    .product-info h3 {
        font-size: 1.18rem;
    }

    .product-info p {
        font-size: 0.67rem;
    }

    .price {
        margin-top: 9px;

        font-size: 0.78rem;
    }


    /* Story */

    .brand-story-grid {
        gap: 38px;
    }

    .story-image::before {
        top: 16px;
        left: 16px;

        width: 55px;
        height: 55px;
    }

    .story-content h2 {
        font-size: clamp(
            2.3rem,
            11vw,
            3.5rem
        );
    }

    .story-content p {
        margin-top: 18px;

        font-size: 0.87rem;
    }

    .story-content .btn {
        margin-top: 25px;
    }


    /* Benefits */

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card,
    .benefit-card:nth-child(3),
    .benefit-card:nth-child(4) {
        min-height: auto;

        padding: 30px 25px;

        border-right: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .benefit-card:last-child {
        border-bottom: 0;
    }

    .benefit-card h3 {
        margin-top: 35px;

        font-size: 1.45rem;
    }

    .benefit-card p {
        font-size: 0.78rem;
    }


    /* CTA */

    .cta-section {
        padding: 20px 0;
    }

    .cta-box {
        min-height: auto;

        display: block;

        padding: 42px 28px;
    }

    .cta-box::before {
        right: -20px;
        bottom: -40px;

        font-size: 10rem;
    }

    .cta-box h2 {
        font-size: clamp(
            2rem,
            9vw,
            2.8rem
        );
    }

    .cta-box p {
        font-size: 0.84rem;
    }

    .cta-box .btn {
        margin-top: 25px;
    }


    /* Footer */

    .site-footer {
        padding-top: 65px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;

        gap: 40px 25px;

        padding-bottom: 45px;
    }

    .footer-brand {
        grid-column: span 2;

        max-width: 100%;
    }

    .footer-column {
        gap: 8px;
    }

    .footer-column h3 {
        font-size: 0.65rem;
    }

    .footer-column > a,
    .footer-column > p {
        font-size: 0.73rem;
    }

    .footer-bottom {
        display: block;

        padding-top: 20px;
    }

    .footer-bottom p + p {
        margin-top: 7px;
    }
}


/* =========================================================
   SMALL MOBILE
   Max Width: 480px
   ========================================================= */

@media (max-width: 480px) {

    .container {
        width: min(
            calc(100% - 24px),
            100%
        );
    }


    /* Header */

    .nav-container {
        gap: 10px;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 35px;
        height: 35px;
    }

    .brand-text strong {
        font-size: 0.78rem;

        letter-spacing: 0.08em;
    }

    .brand-text span {
        display: none;
    }

    .main-nav {
        gap: 14px;
    }

    .main-nav a {
        font-size: 0.55rem;
    }


    /* Hero */

    .hero {
        min-height: 620px;
    }

    .hero-container {
        padding-top: 60px;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero-content > p {
        font-size: 0.82rem;
    }

    .hero-actions {
        display: grid;

        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stat {
        justify-content: space-between;

        gap: 15px;
    }

    .hero-stat > div:not(:last-child)::after {
        right: -8px;
    }

    .hero-stat strong {
        font-size: 1.2rem;
    }

    .hero-stat span {
        font-size: 0.49rem;
    }


    /* Sections */

    .section {
        padding: 60px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 2rem;
    }


    /* Categories */

    .category-card,
    .category-card:last-child {
        min-height: 390px;
    }

    .category-content {
        padding: 20px;
    }

    .category-content h3 {
        font-size: 1.5rem;
    }


    /* Products */

    .product-grid {
        gap: 22px 10px;
    }

    .product-info h3 {
        font-size: 1.05rem;
    }

    .product-info p {
        font-size: 0.60rem;
    }

    .price {
        font-size: 0.73rem;
    }


    /* Story */

    .story-content h2 {
        font-size: 2.35rem;
    }


    /* CTA */

    .cta-box {
        padding: 35px 22px;
    }


    /* Footer */

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-column {
        width: 100%;
    }
}


/* =========================================================
   VERY SMALL DEVICES
   Max Width: 360px
   ========================================================= */

@media (max-width: 360px) {

    .main-nav {
        gap: 11px;
    }

    .main-nav a {
        font-size: 0.50rem;
    }

    .hero h1 {
        font-size: 2.05rem;
    }

    .hero-stat {
        gap: 10px;
    }

    .hero-stat strong {
        font-size: 1.05rem;
    }

    .hero-stat span {
        font-size: 0.45rem;
    }

    .product-info h3 {
        font-size: 0.95rem;
    }

    .category-card,
    .category-card:last-child {
        min-height: 350px;
    }
}


/* =========================================================
   LANDSCAPE MOBILE
   ========================================================= */

@media (max-height: 520px) and (orientation: landscape) {

    .hero {
        min-height: 560px;
    }

    .hero-container {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .hero-stat {
        margin-top: 30px;
    }
}

