/* =========================================================
   SAVVY LEATHER CRAFT
   GLOBAL / BASE STYLES
   ========================================================= */


/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {

    /* Colors */
    --black: #151310;
    --dark: #211c18;

    --brown: #60493c;
    --brown-2: #866d5c;

    --cream: #f6f2eb;
    --beige: #ebe3d8;

    --white: #ffffff;

    --line: #ddd3c7;
    --muted: #756b62;


    /* Layout */
    --container: 1240px;


    /* Typography */
    --serif:
        Georgia,
        "Times New Roman",
        serif;

    --sans:
        Inter,
        Arial,
        sans-serif;


    /* Animation */
    --ease: .3s ease;
}


/* =========================================================
   02. RESET
   ========================================================= */

* {
    box-sizing: border-box;

    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: var(--sans);

    color: var(--dark);

    background: var(--white);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}


img {
    display: block;

    width: 100%;

    max-width: 100%;
}


a {
    color: inherit;

    text-decoration: none;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


/* =========================================================
   03. GLOBAL LAYOUT
   ========================================================= */

.container {
    width:
        min(
            calc(100% - 48px),
            var(--container)
        );

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   04. GENERIC SECTION
   ========================================================= */

.section {
    padding: 90px 0;
}


/* =========================================================
   05. GENERIC SECTION HEADER
   ========================================================= */

.section-heading-row {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 30px;

    margin-bottom: 38px;
}


.section-heading-row h2,
.center-heading h2 {

    color: var(--black);

    font:
        500
        clamp(34px, 4vw, 52px)
        / 1.05
        var(--serif);

    letter-spacing: -1.5px;
}


.section-link {

    font-size: 11px;

    font-weight: 800;

    color: var(--black);

    border-bottom:
        1px solid var(--black);

    padding-bottom: 5px;

    white-space: nowrap;
}


/* =========================================================
   06. GENERIC EYEBROW
   ========================================================= */

.eyebrow {

    color: var(--brown-2);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* =========================================================
   07. TRUST STRIP
   ========================================================= */

.trust-strip {

    border-bottom:
        1px solid var(--line);

    background: var(--white);
}


.trust-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);
}


.trust-item {

    min-height: 96px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    border-right:
        1px solid var(--line);
}


.trust-item:last-child {
    border-right: 0;
}


.trust-icon {

    font-size: 22px;

    color: var(--brown);
}


.trust-item strong,
.trust-item small {
    display: block;
}


.trust-item strong {

    font-size: 11px;

    font-weight: 800;
}


.trust-item small {

    margin-top: 2px;

    color: var(--muted);

    font-size: 10px;
}


/* =========================================================
   08. CATEGORIES
   ========================================================= */

.categories-section {
    background: var(--white);
}


.category-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}


.category-loading {

    grid-column: 1 / -1;

    padding: 50px;

    color: var(--muted);

    text-align: center;
}


.category-card {

    position: relative;

    display: block;

    aspect-ratio: 1 / 1.08;

    overflow: hidden;

    background: var(--beige);
}


.category-card img {

    height: 100%;

    object-fit: cover;

    transition:
        transform .6s ease;
}


.category-card:hover img {

    transform:
        scale(1.05);
}


.category-card::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            transparent 48%,
            rgba(0, 0, 0, .65)
        );
}


.category-card-content {

    position: absolute;

    z-index: 2;

    left: 22px;
    right: 22px;
    bottom: 20px;

    color: var(--white);
}


.category-card-content span {

    font-size: 9px;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    opacity: .8;
}


.category-card-content h3 {

    margin-top: 3px;

    font:
        500
        25px
        var(--serif);
}


/* =========================================================
   09. GENERIC PRODUCT GRID
   ========================================================= */

.product-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;
}


.product-loading {

    grid-column: 1 / -1;

    padding: 55px;

    color: var(--muted);

    text-align: center;
}



/* =========================================================
   12. STORY SECTION
   ========================================================= */

.story-section {

    background: var(--white);
}


.story-grid {

    display: grid;

    grid-template-columns:
        .9fr 1.1fr;

    gap: 90px;

    align-items: center;
}


.story-content {

    max-width: 520px;
}


.story-content h2 {

    color: var(--black);

    font:
        500
        clamp(40px, 5vw, 65px)
        / 1.02
        var(--serif);

    letter-spacing: -2px;
}


.story-content > p:not(.eyebrow) {

    margin-top: 19px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.9;
}


.story-content .text-link {

    display: inline-block;

    margin-top: 25px;
}


.story-image {

    position: relative;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: var(--beige);
}


.story-image img {

    height: 100%;

    object-fit: cover;
}


.story-number {

    position: absolute;

    right: 20px;
    bottom: 18px;

    padding:
        8px 11px;

    background: var(--white);

    font-size: 9px;

    letter-spacing: 1px;
}


/* =========================================================
   13. VALUES SECTION
   ========================================================= */

.values-section {

    background: var(--cream);
}


.center-heading {

    max-width: 650px;

    margin:
        0 auto 45px;

    text-align: center;
}


.values-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);
}


.value-card {

    padding:
        35px 30px;

    border-right:
        1px solid var(--line);
}


.value-card:last-child {

    border-right: 0;
}


.value-card span {

    color: var(--brown-2);

    font-size: 10px;

    letter-spacing: 1px;
}


.value-card h3 {

    margin:
        18px 0 9px;

    color: var(--black);

    font:
        500
        25px
        var(--serif);
}


.value-card p {

    color: var(--muted);

    font-size: 12px;

    line-height: 1.8;
}


/* =========================================================
   14. FINAL CTA
   ========================================================= */

.final-cta {

    padding:
        105px 0;

    background: var(--black);

    color: var(--white);

    text-align: center;
}


.final-cta .eyebrow {

    color: #a99b90;
}


.final-cta h2 {

    font:
        500
        clamp(45px, 6vw, 76px)
        / .98
        var(--serif);

    letter-spacing: -2px;
}


.final-cta .btn {

    margin-top: 30px;
}


/* =========================================================
   15. TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .main-nav {
        display: none;
    }


    .mobile-menu-button {
        display: block;
    }


    .mobile-nav {

        position: absolute;

        z-index: 999;

        left: 0;
        right: 0;

        padding:
            14px 24px;

        background: var(--white);

        border-bottom:
            1px solid var(--line);

        box-shadow:
            0 15px 30px
            rgba(0, 0, 0, .08);
    }


    .mobile-nav.active {
        display: block;
    }


    .mobile-nav a {

        display: flex;

        justify-content: space-between;

        padding: 13px 0;

        border-bottom:
            1px solid var(--line);

        font-size: 13px;
    }


    .hero-grid {

        grid-template-columns: 1fr;

        gap: 45px;
    }


    .hero-visual {
        margin: auto;
    }


    .category-grid,
    .product-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }


    .story-grid {

        grid-template-columns:
            1fr 1fr;

        gap: 45px;
    }

}


/* =========================================================
   16. MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .container {

        width:
            min(
                calc(100% - 30px),
                var(--container)
            );
    }


    .announcement-inner {

        font-size: 8px;

        letter-spacing: 1px;
    }


    .announcement-inner span:nth-of-type(2),
    .announcement-inner span:nth-of-type(3),
    .announcement-separator {

        display: none;
    }


    .header-inner {

        min-height: 70px;
    }


    .brand-name {

        font-size: 26px;
    }


    .cart-label {

        display: none;
    }


    .hero {

        padding:
            58px 0
            65px;
    }


    .hero h1 {

        font-size:
            clamp(
                44px,
                13vw,
                62px
            );

        letter-spacing: -1.8px;
    }


    .hero-description {

        font-size: 14px;
    }


    .hero-actions {

        align-items: flex-start;

        flex-direction: column;

        gap: 18px;
    }


    .hero-points {

        gap: 17px;
    }


    .hero-points span {

        font-size: 9px;
    }


    .hero-floating-card {

        right: 10px;

        bottom: 12px;

        width: 190px;
    }


    .trust-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .trust-item {

        justify-content: flex-start;

        padding:
            12px 8px;

        min-height: 78px;
    }


    .trust-item:nth-child(2) {

        border-right: 0;
    }


    .trust-item:nth-child(-n+2) {

        border-bottom:
            1px solid var(--line);
    }


    .section {

        padding:
            65px 0;
    }


    .section-heading-row {

        align-items: flex-start;

        flex-direction: column;

        gap: 16px;

        margin-bottom: 30px;
    }


    .category-grid,
    .product-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 16px;
    }


    .category-card-content h3 {

        font-size: 21px;
    }


    .product-name {

        font-size: 16px;
    }


    .promo-grid {

        grid-template-columns: 1fr;
    }


    .promo-image {

        height: 360px;
    }


    .promo-content {

        padding:
            55px 30px;
    }


    .story-grid {

        grid-template-columns: 1fr;

        gap: 35px;
    }


    .story-image {

        order: -1;
    }


    .values-grid {

        grid-template-columns: 1fr;
    }


    .value-card {

        border-right: 0;

        border-bottom:
            1px solid var(--line);
    }


    .value-card:last-child {

        border-bottom: 0;
    }


    .footer-grid {

        grid-template-columns:
            1fr 1fr;

        gap: 35px;
    }


    .footer-brand {

        grid-column:
            1 / -1;
    }

}


/* =========================================================
   17. SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .hero-points {

        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 10px;
    }


    .hero-points div {

        min-width: 0;
    }


    .hero-points span {

        line-height: 1.3;
    }


    .hero-floating-card {

        position: relative;

        right: auto;
        bottom: auto;

        width:
            calc(100% - 20px);

        margin:
            -35px 10px 0 auto;
    }


    .product-grid {

        gap: 12px;
    }


    .product-info {

        padding-top: 10px;
    }


    .current-price {

        font-size: 11px;
    }


    .compare-price {

        font-size: 10px;
    }


    .footer-grid {

        grid-template-columns: 1fr;
    }


    .footer-brand {

        grid-column: auto;
    }

}