
/*
Theme Name: ONE TALLOW Signature
Version: 1.2.0
Author: ONE TALLOW
Text Domain: onetallow
*/

/* BRAND IDENTITY */

:root {
    --green: #091f12;
    --gold: #c5a46d;
    --ivory: #faf7f1;
    --cream: #f0ebe1;
    --white: #ffffff;
    --muted: #596359;
    --border: #ded8cc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--green);
    font: 16px/1.7 system-ui, sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    line-height: 1.15;
}

h1 {
    font-size: clamp(36px, 5vw, 72px);
    margin: 18px 0;
}

h2 {
    font-size: clamp(28px, 3.5vw, 48px);
    margin: 14px 0 22px;
}

p {
    margin: 0 0 20px;
}

/* TOP BAR */

.top {
    text-align: center;
    background: var(--green);
    color: #e8cf98;
    padding: 9px 12px;
    font-size: 11px;
    letter-spacing: .2em;
}

/* HEADER */

.head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 5%;
    background: var(--ivory);
}

.brand a {
    display: block;
    background: transparent;
}

.brand img {
    width: 145px;
    display: block;
    object-fit: contain;
    background: transparent;
    height: auto;
}

.nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav a {
    text-decoration: none;
    font-size: 14px;
    transition: color .2s;
}

.nav a:hover {
    color: #806027;
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.head-actions a {
    text-decoration: none;
}

.head-actions form {
    display: flex;
    align-items: center;
}

.head-actions input {
    width: 100px;
    min-width: 0;
    border: 0;
    border-bottom: 1px solid var(--gold);
    background: transparent;
    padding: 6px;
}

.head-actions button {
    background: none;
    border: 0;
    font-size: 22px;
    cursor: pointer;
}

.ot-mobile-toggle,
.ot-mobile-cart {
    display: none;
}

/* HERO */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: 560px;
    padding: 65px 8%;
    gap: 35px;
    background: var(--green);
    color: var(--ivory);
    overflow: hidden;
    isolation: isolate;
}

.hero.has-product {
    grid-template-columns: 1.1fr 1fr;
}

.hero video,
.hero .hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .9;
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(9,31,18,.80),
        rgba(9,31,18,.35)
    );
    pointer-events: none;
    z-index: -1;
}

.hero-copy {
    position: relative;
    width: 100%;
    max-width: 700px;
}

.hero-copy h1 {
    font-size: clamp(38px, 5vw, 72px);
    letter-spacing: -.025em;
    margin: 18px 0 22px;
}

.hero-copy p {
    max-width: 490px;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 26px;
}

.eyebrow {
    display: inline-block;
    color: #806027;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #e8cf98;
}

.hero-art {
    display: grid;
    place-items: center;
}

.hero-art img {
    width: 100%;
    max-height: 440px;
    object-fit: contain;
}

.seal {
    font: italic 40px Georgia, serif;
    color: var(--gold);
    text-align: center;
}

/* BUTTONS */

.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    display: inline-block;
    background: var(--gold);
    color: var(--green);
    padding: 13px 26px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    transition: background .2s, color .2s;
}

.btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: #d8bd8f;
    color: var(--green);
}

.btn-outline {
    background: transparent;
    border-color: var(--green);
    color: var(--green);
}

/* BRAND STRIP */

.strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 18px 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    letter-spacing: .13em;
    flex-wrap: wrap;
}

/* SECTIONS */

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 65px 6%;
}

.center {
    text-align: center;
}

.collection-section {
    text-align: center;
}

.empty {
    max-width: 650px;
    margin: 24px auto 0;
    background: var(--cream);
    border: 1px solid var(--border);
    padding: 28px 20px;
    color: var(--muted);
}

/* TALLOW INFORMATION */

.tallow-info {
    max-width: none;
    background: var(--cream);
    text-align: center;
    padding: 60px 8%;
}

.tallow-info p {
    max-width: 650px;
    margin: 0 auto 25px;
    color: var(--muted);
}

.tallow-info h2 {
    color: var(--green);
}

/* PHILOSOPHY */

.story {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 45px;
    background: var(--green);
    color: var(--ivory);
    padding: 65px 8%;
    text-align: center;
}

.story.has-image {
    grid-template-columns: 1fr 1fr;
    text-align: left;
}

.story-copy {
    max-width: 650px;
    margin: 0 auto;
}

.story .eyebrow {
    color: #e8cf98;
}

.story p {
    color: #e2e5de;
    margin: 0 0 22px;
}

.story-image {
    display: block;
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

/* COMMUNITY */

.community {
    text-align: center;
    background: var(--ivory);
}

/* FOOTER */

.foot {
    background: var(--green);
    color: var(--ivory);
    border-top: 1px solid #ffffff26;
    padding: 35px 6%;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 14px;
}

.foot a {
    color: #e8cf98;
    text-decoration: none;
}

.foot .nav {
    gap: 16px;
}

.foot p {
    margin-bottom: 12px;
}

/* CONTENT PAGES */

body.page-id-24 main,
body.page-id-37 main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 35px 24px;
}

body.page-id-24 main h1,
body.page-id-37 main h1 {
    font-size: clamp(30px, 4vw, 44px);
}

body.page-id-24 main h2,
body.page-id-37 main h2 {
    font-size: 28px;
}

body.page-id-24 main p,
body.page-id-37 main p {
    font-size: 17px;
    line-height: 1.8;
}

.wp-block-image img {
    height: auto;
    max-width: 100%;
}

/* WOOCOMMERCE */

.woocommerce ul.products li.product {
    background: var(--white);
    padding: 15px;
    border: 1px solid var(--border);
}

.cart-link {
    text-decoration: none;
    white-space: nowrap;
}

/* ACCESSIBILITY */

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 10px;
    top: 10px;
    background: white;
    z-index: 99;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* TABLET */

@media (min-width: 768px) and (max-width: 1100px) {

    .head {
        flex-wrap: wrap;
        gap: 18px;
    }

    .brand img {
        width: 125px;
    }

    .nav {
        gap: 16px;
    }

    .hero {
        min-height: 460px;
        padding: 50px 6%;
    }

}

/* MOBILE */

@media (max-width: 767px) {

    .top {
        font-size: 9px;
        padding: 8px;
        letter-spacing: .15em;
    }

    .head {
        flex-wrap: wrap;
        gap: 10px;
        padding: 6px 16px;
    }

    .brand img,
    header .custom-logo {
        width: 100px !important;
        height: auto !important;
    }

    header.head.ot-menu-ready {
        display: grid !important;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        gap: 0 !important;
        padding: 5px 16px !important;
        min-height: 0 !important;
    }

    .head.ot-menu-ready .brand {
        grid-column: 2;
        grid-row: 1;
        text-align: center;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    /* MOBILE MENU */

    .head.ot-menu-ready .ot-mobile-toggle {
        display: flex !important;
        grid-column: 1;
        grid-row: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        background: transparent;
        border: 0;
        padding: 10px;
        cursor: pointer;
    }

    .ot-mobile-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--green);
        transition: transform .25s, opacity .25s;
    }

    .ot-menu-open .ot-mobile-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .ot-menu-open .ot-mobile-toggle span:nth-child(2) {
        opacity: 0;
    }

    .ot-menu-open .ot-mobile-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .head.ot-menu-ready .ot-mobile-cart {
        display: flex !important;
        justify-content: center;
        align-items: center;
        grid-column: 3;
        grid-row: 1;
        min-height: 44px;
    }

    .head.ot-menu-ready #ot-main-nav,
    .head.ot-menu-ready .head-actions {
        display: none !important;
    }

    .head.ot-menu-ready.ot-menu-open #ot-main-nav {
        display: block !important;
        grid-column: 1 / -1;
        width: 100%;
        margin: 0 !important;
        padding: 0;
    }

    .head.ot-menu-open .nav {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .head.ot-menu-open .nav a {
        display: block;
        padding: 12px 5px;
        font-size: 15px;
        text-align: left;
        border-bottom: 1px solid var(--border);
        color: var(--green);
    }

    .head.ot-menu-ready.ot-menu-open .head-actions {
        display: flex !important;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 15px 5px;
    }

    .head.ot-menu-open .head-actions form {
        width: 100%;
    }

    .head.ot-menu-open .head-actions input {
        width: 100%;
        min-width: 0;
        padding: 10px 0;
        font-size: 16px;
    }

    .head.ot-menu-open .head-actions a {
        font-size: 14px;
        padding: 8px 0;
    }

    .head.ot-menu-open .head-actions a[href*="warenkorb"],
    .head.ot-menu-open .head-actions a[href*="/cart"] {
        display: none !important;
    }

    /* MOBILE HERO */

    .hero,
    .hero.has-product {
        grid-template-columns: minmax(0, 1fr);
        min-height: 360px;
        height: auto;
        padding: 32px 22px;
        gap: 20px;
    }

    .hero::after {
        background: rgba(9,31,18,.48);
    }

    .hero-copy {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .hero-copy h1 {
        font-size: 30px;
        line-height: 1.15;
        letter-spacing: -.5px;
        margin: 14px 0 16px;
    }

    .hero-copy p {
        font-size: 15px;
        line-height: 1.6;
        margin: 0 0 20px;
    }

    .hero-copy .btn {
        padding: 13px 22px;
        font-size: 14px;
    }

    .hero-art img {
        max-height: 240px;
    }

    /* MOBILE SECTIONS */

    .strip {
        gap: 10px 16px;
        padding: 16px 12px;
        font-size: 9px;
        letter-spacing: .08em;
    }

    .section {
        padding: 35px 20px;
    }

    h2 {
        font-size: 28px;
        margin: 12px 0 18px;
    }

    .empty {
        padding: 22px 16px;
        font-size: 15px;
        margin-top: 18px;
    }

    .tallow-info {
        padding: 35px 22px;
    }

    .story,
    .story.has-image {
        grid-template-columns: minmax(0, 1fr);
        padding: 35px 22px;
        gap: 24px;
        text-align: center;
    }

    .story-image {
        max-height: 300px;
    }

    .foot {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 28px 22px;
    }

    body.page-id-24 main,
    body.page-id-37 main {
        padding: 20px 18px;
    }

    body.page-id-24 main h1,
    body.page-id-37 main h1 {
        font-size: 28px;
    }

    body.page-id-24 main h2,
    body.page-id-37 main h2 {
        font-size: 24px;
    }

    body.page-id-24 main p,
    body.page-id-37 main p {
        font-size: 16px;
        line-height: 1.7;
    }

}

@media (prefers-reduced-motion: reduce) {
    .hero video {
        display: none;
    }

    * {
        transition: none !important;
    }
}
