/* =========================================================
   REXUS88 FASHION STORE
   MODERN FASHION / EDITORIAL STYLE
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --black: #111111;
    --dark: #181818;

    --white: #ffffff;

    --cream: #f5f3ee;

    --soft: #ebe9e4;

    --gray: #777777;

    --line: #d9d7d2;

    --serif: "Playfair Display", Georgia, serif;

    --sans: "DM Sans", Arial, sans-serif;

    --container: 1320px;

}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);

    color: var(--black);

    font-family: var(--sans);

    font-size: 14px;

    line-height: 1.7;

    overflow-x: hidden;
}

img {
    display: block;

    width: 100%;
}

a {
    color: inherit;

    text-decoration: none;
}

button,
input {
    font: inherit;
}


/* =========================================================
   GLOBAL
========================================================= */

.container {
    width: min(
        calc(100% - 80px),
        var(--container)
    );

    margin-inline: auto;
}

.section-label {
    display: block;

    color: #777;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 2px;
}

.line-link {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding-bottom: 5px;

    border-bottom: 1px solid var(--black);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 1.3px;

    text-transform: uppercase;

    transition: .3s ease;
}

.line-link span {
    font-size: 15px;
}

.line-link:hover {
    opacity: .5;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: absolute;

    top: 0;
    left: 0;

    z-index: 20;

    width: 100%;

    color: white;

    border-bottom: 1px solid rgba(255,255,255,.2);
}

.header-inner {
    min-height: 90px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.brand {
    font-size: 21px;

    font-weight: 700;

    letter-spacing: 3px;
}

.brand span {
    font-family: var(--serif);

    font-size: 25px;

    font-weight: 400;

    letter-spacing: 0;
}

.main-nav {
    display: flex;

    align-items: center;

    gap: 35px;
}

.main-nav a {
    position: relative;

    font-size: 10px;

    font-weight: 500;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    opacity: .75;

    transition: .3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    opacity: 1;
}

.main-nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -9px;

    width: 100%;

    height: 1px;

    background: white;
}

.header-actions {
    display: flex;

    align-items: center;

    gap: 25px;
}

.header-actions a {
    font-size: 10px;

    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.bag span {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 18px;
    height: 18px;

    margin-left: 5px;

    border: 1px solid rgba(255,255,255,.5);

    border-radius: 50%;

    font-size: 8px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: 920px;

    display: flex;

    align-items: center;

    color: white;

    overflow: hidden;
}

.hero-image {
    position: absolute;

    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.65),
            rgba(0,0,0,.2),
            rgba(0,0,0,.15)
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    width: min(
        calc(100% - 80px),
        var(--container)
    );

    min-height: 920px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding-top: 145px;

    padding-bottom: 45px;
}

.hero-top,
.hero-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    font-size: 9px;

    letter-spacing: 2px;
}

.hero-top span:last-child {
    border: 1px solid rgba(255,255,255,.5);

    padding: 8px 12px;
}

.hero-main {
    max-width: 800px;
}

.hero-label {
    margin-bottom: 20px;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 3px;
}

.hero-main h1 {
    font-size: clamp(
        75px,
        11vw,
        165px
    );

    line-height: .82;

    font-weight: 500;

    letter-spacing: -8px;
}

.hero-main h1 em {
    font-family: var(--serif);

    font-weight: 400;

    letter-spacing: -6px;
}

.hero-description {
    max-width: 410px;

    margin: 40px 0 30px;

    color: rgba(255,255,255,.8);

    font-size: 15px;

    line-height: 1.8;
}

.hero-button {
    display: inline-flex;

    align-items: center;

    gap: 35px;

    border: 1px solid rgba(255,255,255,.7);

    padding: 15px 20px;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    transition: .3s ease;
}

.hero-button span {
    font-size: 17px;
}

.hero-button:hover {
    background: white;

    color: var(--black);
}

.scroll-line {
    flex: 1;

    max-width: 180px;

    height: 1px;

    background: rgba(255,255,255,.4);

    margin: 0 25px;
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    padding: 150px 0;

    background: var(--cream);
}

.intro-grid {
    display: grid;

    grid-template-columns: 160px 1fr;

    gap: 80px;
}

.intro-number,
.about-number {
    font-family: var(--serif);

    font-size: 27px;
}

.intro-content {
    max-width: 1000px;
}

.intro-content h2 {
    margin: 22px 0 65px;

    font-size: clamp(
        48px,
        6vw,
        82px
    );

    line-height: 1.02;

    font-weight: 400;

    letter-spacing: -4px;
}

.intro-content h2 em {
    font-family: var(--serif);
}

.intro-bottom {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: end;
}

.intro-bottom p {
    max-width: 470px;

    color: #656565;

    font-size: 16px;

    line-height: 1.9;
}


/* =========================================================
   COLLECTION
========================================================= */

.collection {
    padding: 150px 0;
}

.section-heading {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 65px;
}

.section-heading h2 {
    margin-top: 15px;

    font-size: clamp(
        45px,
        5vw,
        70px
    );

    line-height: 1;

    font-weight: 400;

    letter-spacing: -3px;
}

.section-heading h2 em {
    font-family: var(--serif);
}

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 24px;
}

.product-image {
    position: relative;

    aspect-ratio: .76;

    overflow: hidden;

    background: #eee;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .8s
        cubic-bezier(.2,.7,.2,1);
}

.product:hover .product-image img {
    transform: scale(1.05);
}

.product-number {
    position: absolute;

    z-index: 2;

    top: 15px;
    left: 15px;

    color: white;

    font-size: 9px;

    letter-spacing: 1px;

    mix-blend-mode: difference;
}

.product-tag {
    position: absolute;

    z-index: 3;

    top: 15px;
    right: 15px;

    padding: 7px 10px;

    background: white;

    font-size: 7px;

    font-weight: 600;

    letter-spacing: 1.2px;
}

.quick-view {
    position: absolute;

    z-index: 3;

    left: 15px;
    right: 15px;

    bottom: -50px;

    background: white;

    padding: 14px;

    text-align: center;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1.2px;

    text-transform: uppercase;

    transition: .4s ease;
}

.product:hover .quick-view {
    bottom: 15px;
}

.product-info {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding-top: 17px;
}

.product-info h3 {
    font-size: 13px;

    font-weight: 600;
}

.product-info p {
    margin-top: 2px;

    color: #888;

    font-size: 10px;
}

.product-info strong {
    font-size: 12px;

    font-weight: 500;

    white-space: nowrap;
}


/* =========================================================
   EDITORIAL
========================================================= */

.editorial {
    position: relative;

    min-height: 780px;

    display: flex;

    align-items: center;

    color: white;

    overflow: hidden;
}

.editorial-image {
    position: absolute;

    inset: 0;
}

.editorial-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;
}

.editorial-overlay {
    position: absolute;

    inset: 0;

    background: rgba(0,0,0,.48);
}

.editorial-content {
    position: relative;

    z-index: 2;
}

.editorial-content .section-label {
    color: #ccc;
}

.editorial-content h2 {
    margin: 25px 0 25px;

    font-size: clamp(
        65px,
        10vw,
        140px
    );

    line-height: .8;

    font-weight: 500;

    letter-spacing: -7px;
}

.editorial-content h2 em {
    font-family: var(--serif);

    font-weight: 400;
}

.editorial-content p {
    margin-bottom: 35px;

    color: #ddd;

    font-size: 15px;
}

.light-button {
    display: inline-flex;

    align-items: center;

    gap: 30px;

    border: 1px solid rgba(255,255,255,.7);

    padding: 14px 20px;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    transition: .3s ease;
}

.light-button span {
    font-size: 16px;
}

.light-button:hover {
    background: white;

    color: black;
}


/* =========================================================
   CATEGORIES
========================================================= */

.categories {
    padding: 150px 0;
}

.category-grid {
    display: grid;

    grid-template-columns:
        1.2fr .8fr .8fr;

    gap: 20px;
}

.category {
    position: relative;

    min-height: 570px;

    overflow: hidden;

    color: white;
}

.category-large {
    min-height: 700px;
}

.category img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .8s ease;
}

.category:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            transparent 35%,
            rgba(0,0,0,.65)
        );
}

.category-content {
    position: absolute;

    left: 30px;
    right: 30px;

    bottom: 30px;
}

.category-content span {
    font-family: var(--serif);

    font-size: 23px;
}

.category-content h3 {
    margin-top: 12px;

    font-size: 38px;

    font-weight: 500;

    letter-spacing: -1px;
}

.category-content p {
    margin-top: 8px;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    padding: 150px 0;

    background: var(--cream);
}

.about-grid {
    display: grid;

    grid-template-columns: 160px 1fr 250px;

    gap: 70px;
}

.about-main h2 {
    margin: 22px 0 40px;

    font-size: clamp(
        50px,
        6vw,
        85px
    );

    line-height: .95;

    font-weight: 400;

    letter-spacing: -4px;
}

.about-main h2 em {
    font-family: var(--serif);
}

.about-main p {
    max-width: 650px;

    margin-bottom: 20px;

    color: #666;

    font-size: 16px;

    line-height: 1.9;
}

.about-main .line-link {
    margin-top: 20px;
}

.about-side {
    border-top: 1px solid var(--line);
}

.about-stat {
    display: flex;

    flex-direction: column;

    padding: 22px 0;

    border-bottom: 1px solid var(--line);
}

.about-stat strong {
    font-family: var(--serif);

    font-size: 32px;

    font-weight: 400;
}

.about-stat span {
    margin-top: 5px;

    color: #777;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 1.5px;
}


/* =========================================================
   JOURNAL
========================================================= */

.journal {
    padding: 150px 0;
}

.journal-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}

.journal-image {
    aspect-ratio: 1.15;

    margin-bottom: 20px;

    overflow: hidden;
}

.journal-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .7s ease;
}

.journal-card:hover .journal-image img {
    transform: scale(1.04);
}

.journal-card > span {
    color: #888;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 1.5px;
}

.journal-card h3 {
    max-width: 380px;

    margin: 14px 0 18px;

    font-size: 22px;

    line-height: 1.25;

    font-weight: 500;
}

.journal-card > a {
    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;

    border-bottom: 1px solid var(--black);

    padding-bottom: 4px;
}


/* =========================================================
   NEWSLETTER
========================================================= */

.newsletter {
    padding: 110px 0;

    background: var(--black);

    color: white;
}

.newsletter-inner {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: center;
}

.newsletter .section-label {
    color: #888;
}

.newsletter h2 {
    margin-top: 18px;

    font-size: clamp(
        45px,
        5vw,
        70px
    );

    line-height: .95;

    font-weight: 400;

    letter-spacing: -3px;
}

.newsletter h2 em {
    font-family: var(--serif);
}

.newsletter-form label {
    display: block;

    max-width: 430px;

    margin-bottom: 25px;

    color: #aaa;

    font-size: 12px;

    line-height: 1.7;
}

.email-row {
    display: flex;

    border-bottom: 1px solid #555;
}

.email-row input {
    flex: 1;

    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;

    padding: 15px 0;

    color: white;
}

.email-row input::placeholder {
    color: #777;
}

.email-row button {
    border: 0;

    background: transparent;

    color: white;

    cursor: pointer;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #0c0c0c;

    color: white;

    padding: 80px 0 25px;
}

.footer-top {
    display: grid;

    grid-template-columns:
        2fr repeat(3, 1fr);

    gap: 60px;

    padding-bottom: 75px;
}

.footer-brand p {
    max-width: 270px;

    margin-top: 20px;

    color: #777;

    font-size: 11px;
}

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.footer-column > span {
    margin-bottom: 20px;

    color: #777;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 2px;
}

.footer-column a {
    margin-bottom: 9px;

    color: #aaa;

    font-size: 10px;

    transition: .3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    border-top: 1px solid #292929;

    padding-top: 22px;

    color: #666;

    font-size: 8px;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.footer-bottom div {
    display: flex;

    gap: 25px;
}

.footer-bottom a:hover {
    color: white;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1000px) {

    .container {
        width:
            min(
                calc(100% - 50px),
                var(--container)
            );
    }

    .main-nav {
        gap: 20px;
    }

    .hero {
        min-height: 800px;
    }

    .hero-content {
        min-height: 800px;

        padding-top: 130px;
    }

    .product-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 35px 20px;
    }

    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .category-large {
        grid-column: 1 / -1;

        min-height: 600px;
    }

    .about-grid {
        grid-template-columns:
            100px 1fr;

        gap: 40px;
    }

    .about-side {
        grid-column: 2;
    }

    .newsletter-inner {
        gap: 50px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 680px) {

    .container {
        width: calc(100% - 30px);
    }


    /* HEADER */

    .header-inner {
        min-height: 72px;
    }

    .main-nav {
        display: none;
    }

    .header-actions {
        gap: 12px;
    }

    .header-actions > a:first-child {
        display: none;
    }


    /* HERO */

    .hero {
        min-height: 750px;
    }

    .hero-content {
        width: calc(100% - 30px);

        min-height: 750px;

        padding-top: 105px;
    }

    .hero-main h1 {
        font-size:
            clamp(
                62px,
                18vw,
                100px
            );

        letter-spacing: -5px;
    }

    .hero-main h1 em {
        letter-spacing: -4px;
    }

    .hero-description {
        max-width: 330px;

        font-size: 13px;
    }

    .hero-bottom {
        font-size: 7px;
    }

    .scroll-line {
        margin: 0 10px;
    }


    /* INTRO */

    .intro,
    .collection,
    .categories,
    .about,
    .journal {
        padding: 85px 0;
    }

    .intro-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .intro-content h2 {
        margin-bottom: 40px;

        font-size:
            clamp(
                43px,
                12vw,
                65px
            );

        letter-spacing: -2px;
    }

    .intro-bottom {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    /* COLLECTION */

    .section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 25px;
    }

    .section-heading h2 {
        font-size: 48px;
    }

    .product-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .product-image {
        aspect-ratio: .85;
    }

    .quick-view {
        bottom: 15px;
    }


    /* EDITORIAL */

    .editorial {
        min-height: 650px;
    }

    .editorial-content h2 {
        font-size:
            clamp(
                70px,
                19vw,
                115px
            );

        letter-spacing: -5px;
    }


    /* CATEGORIES */

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category,
    .category-large {
        min-height: 520px;

        grid-column: auto;
    }


    /* ABOUT */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .about-main h2 {
        font-size: 52px;

        letter-spacing: -2px;
    }

    .about-side {
        grid-column: auto;

        margin-top: 25px;
    }


    /* JOURNAL */

    .journal-grid {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .journal-card h3 {
        font-size: 20px;
    }


    /* NEWSLETTER */

    .newsletter {
        padding: 80px 0;
    }

    .newsletter-inner {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .newsletter h2 {
        font-size: 48px;
    }


    /* FOOTER */

    .footer {
        padding-top: 60px;
    }

    .footer-top {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 45px 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 15px;
    }

}
