
/*
Theme Name: THE NEWOLD
Theme URI: https://example.com/
Author: THE NEWOLD
Description: A clean, editorial WooCommerce-ready storefront theme for THE NEWOLD.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: the-newold
*/


/* ==========================================
   THE NEWOLD — PREMIUM PRODUCT ACCORDION
========================================== */

body.single-product .woocommerce-tabs.newold-accordion-ready {
    width: 100%;
    max-width: 100%;
    margin: 35px 0 45px;
    padding: 0 16px;
    border: 1px solid #e5e2dd;
    border-radius: 18px;
    background: #fcfbf9;
    overflow: hidden;
    box-sizing: border-box;
}

/* Accordion buttons */

body.single-product .woocommerce-tabs .newold-accordion-trigger {
    width: 100%;
    min-height: 92px;
    padding: 24px 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #e3ded5 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    color: #171717 !important;
    font-family: inherit;
    font-size: 21px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    appearance: none;

    transition: color 0.25s ease;
}

/* Remove border from last accordion row */

body.single-product .woocommerce-tabs
.newold-accordion-trigger:last-of-type {
    border-bottom: none !important;
}

/* Plus and minus icon */

body.single-product .newold-accordion-icon {
    color: #a88a45;
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
}

/* Hover */

body.single-product .woocommerce-tabs
.newold-accordion-trigger:hover {
    color: #a88a45 !important;
}

/* Expanded content */

body.single-product .woocommerce-tabs
.woocommerce-Tabs-panel {
    padding: 25px 0 30px !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Respect JavaScript hidden state */

body.single-product .woocommerce-tabs
.woocommerce-Tabs-panel[hidden] {
    display: none !important;
}

/* Content typography */

body.single-product .woocommerce-tabs
.woocommerce-Tabs-panel h2 {
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 22px;
}

body.single-product .woocommerce-tabs
.woocommerce-Tabs-panel p,
body.single-product .woocommerce-tabs
.woocommerce-Tabs-panel li {
    font-size: 17px;
    line-height: 1.8;
}


/* ==========================================
   THE NEWOLD — HOMEPAGE HERO
========================================== */

.hero {
    position: relative;
    min-height: 680px;
    height: min(760px, 75vw);

    display: flex;
    align-items: center;

    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(20, 18, 16, 0.48) 0%,
            rgba(20, 18, 16, 0.20) 42%,
            rgba(20, 18, 16, 0.02) 72%
        ),
        var(
            --hero-image,
            linear-gradient(
                115deg,
                #cfc2b5,
                #eee8df 60%,
                #b7a99b
            )
        );

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    color: #fff;
}

/* Hero shade overlay */

.hero-shade {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.18) 0%,
        rgba(0, 0, 0, 0.08) 45%,
        transparent 75%
    );

    pointer-events: none;
}

/* Hero text container */

.hero-content {
    position: relative;
    z-index: 2;

    width: min(620px, 44%);

    margin-left: max(
        7vw,
        calc((100vw - var(--max)) / 2)
    );

    padding: 70px 0;
}

/* Hero eyebrow */

.hero .eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 28px;
}

/* Hero main heading */

.hero h1 {
    max-width: 650px;
    margin: 0 0 28px;

    font-size: clamp(52px, 6.5vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 700;
}

/* Hero description */

.hero-description {
    max-width: 460px;
    margin: 0;

    font-size: clamp(16px, 1.5vw, 21px);
    line-height: 1.7;
    font-weight: 400;
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 30px;

    padding: 19px 28px;

    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 700;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.button span {
    font-size: 17px;
}

/* Dark button */

.button-dark {
    margin-top: 32px;
    background: #111;
    color: #fff;
}

.button-dark:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Light button */

.button-light {
    margin-top: 18px;
    background: #fff;
    color: #111;
}

/* Hero bottom label */

.hero-index {
    position: absolute;
    right: 5vw;
    bottom: 30px;
    z-index: 2;

    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* ==========================================
   HOMEPAGE SECTIONS & PRODUCT CARDS
========================================== */

.section-wrap {
    max-width: var(--max);
    margin: auto;
    padding: 90px 5vw;
}

/* Brand intro */

.intro-section {
    padding-top: 100px;
    padding-bottom: 75px;
    text-align: center;
}

.intro-section h2,
.section-heading h2 {
    margin: 15px 0;
    font-size: clamp(34px, 4.5vw, 58px);
    letter-spacing: -2.5px;
}

.intro-section > p:last-child {
    color: var(--muted);
    font-size: 15px;
}

/* Section heading */

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 35px;
}

.section-heading h2 {
    margin-bottom: 0;
}

/* Text links */

.text-link {
    padding-bottom: 7px;
    border-bottom: 1px solid;

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Product grid */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    min-width: 0;
}

/* Product image */

.product-card__image {
    position: relative;
    display: block;

    overflow: hidden;
    aspect-ratio: 4 / 5;

    background: var(--paper);
}

.product-card__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s;
}


/* ==========================================
   HERO — TABLET
========================================== */

@media (max-width: 1000px) {

    .hero {
        min-height: 580px;
        height: 68vw;
        max-height: 720px;
    }

    .hero-content {
        width: 50%;
        margin-left: 6vw;
    }

    .hero h1 {
        font-size: clamp(48px, 7vw, 78px);
    }

}


/* ==========================================
   HERO — MOBILE
========================================== */

@media (max-width: 768px) {

    .hero {
        min-height: 600px;
        height: 125vw;
        max-height: 760px;

        background-position: 62% center;
    }

    .hero-content {
        width: 86%;
        margin-left: 7%;
        padding: 50px 0;
    }

    .hero h1 {
        max-width: 440px;

        font-size: clamp(44px, 12vw, 68px);
        letter-spacing: -0.045em;
        line-height: 0.98;
    }

    .hero-description {
        max-width: 340px;

        font-size: 16px;
        line-height: 1.65;
    }

    .hero .eyebrow {
        font-size: 10px;
        letter-spacing: 2.5px;
    }

    .button {
        padding: 17px 23px;
    }

}


/* ==========================================
   HERO — SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .hero {
        min-height: 560px;
        height: 145vw;

        background-position: 66% center;
    }

    .hero-content {
        width: 88%;
        margin-left: 6%;
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

}


/* ==========================================
   PRODUCT ACCORDION — MOBILE
========================================== */

@media (max-width: 767px) {

    body.single-product .woocommerce-tabs.newold-accordion-ready {
        margin: 25px 0;
        padding: 0 14px;
        border-radius: 14px;
    }

    body.single-product .woocommerce-tabs
    .newold-accordion-trigger {
        min-height: 72px;
        padding: 19px 0;
        font-size: 17px;
    }

    body.single-product .woocommerce-tabs
    .newold-accordion-icon {
        font-size: 24px;
    }

    body.single-product .woocommerce-tabs
    .woocommerce-Tabs-panel p,
    body.single-product .woocommerce-tabs
    .woocommerce-Tabs-panel li {
        font-size: 15px;
    }

}
