/* ============================================================
   VALOUS WORLD — Main Stylesheet
   ============================================================ */

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
    --black:      #0A0A0C;
    --white:      #FFFFFF;
    --gold:       #B8976A;
    --mid-grey:   #222222;
    --light-grey: #444444;
    --transition: 0.3s ease;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--black);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo a {
    color: var(--white);
    text-decoration: none;
}

/* WooCommerce / WordPress custom logo */
.logo .custom-logo-link img {
    height: 40px;
    width: auto;
}

/* Primary nav menu */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a,
.nav-links .primary-menu a {
    margin-left: 30px;
    text-decoration: none;
    color: var(--white);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links .primary-menu a:hover {
    color: var(--gold);
}

/* WP nav menu wrapper fix */
.primary-menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu li {
    display: inline-block;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    height: 100vh;
    min-height: 500px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 0 60px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 12, 0.75) 0%,
        rgba(10, 10, 12, 0.2) 60%,
        rgba(10, 10, 12, 0) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.hero-content h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
}

.hero-content p {
    margin: 20px 0 32px;
    opacity: 0.75;
    font-size: 16px;
    line-height: 1.6;
}

/* ─── BUTTON ─────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 13px 30px;
    border: 1px solid var(--white);
    color: var(--white);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    transition: background var(--transition), color var(--transition);
}

.btn:hover {
    background: var(--white);
    color: var(--black);
}

/* ─── SECTIONS ───────────────────────────────────────────── */
.section {
    padding: 80px 60px;
}

/* ─── CATEGORY GRID ──────────────────────────────────────── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    height: 340px;
    background: #111;
    position: relative;
    overflow: hidden;
}

.category-card a {
    display: block;
    width: 100%;
    height: 100%;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card span {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ─── PRODUCTS GRID ──────────────────────────────────────── */
.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product {
    position: relative;
    overflow: hidden;
}

.product > a > img,
.product > img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product:hover > a > img,
.product:hover > img {
    transform: scale(1.06);
}

.product-info {
    margin-top: 12px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.product-name a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition);
}

.product-name a:hover {
    color: var(--gold);
}

.price {
    margin-top: 4px;
    opacity: 0.6;
    font-size: 13px;
}

/* WooCommerce price */
.price .woocommerce-Price-amount {
    font-size: 13px;
    opacity: 1;
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold);
    color: var(--black);
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}

/* ─── BRAND STATEMENT ────────────────────────────────────── */
.section-statement {
    padding-top: 60px;
    padding-bottom: 60px;
}

.statement {
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

/* ─── WHY US ─────────────────────────────────────────────── */
.why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.why-item h3 {
    margin-bottom: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.why-item p {
    opacity: 0.65;
    font-size: 15px;
    line-height: 1.6;
}

/* ─── REVIEWS ────────────────────────────────────────────── */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review {
    border: 1px solid var(--mid-grey);
    padding: 24px;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.85;
    transition: border-color var(--transition);
}

.review:hover {
    border-color: var(--gold);
}

/* ─── CTA ────────────────────────────────────────────────── */
.cta {
    text-align: center;
    background: linear-gradient(to bottom, #0d0d0f, #0A0A0C);
}

.cta h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 40px;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
    padding: 36px 60px;
    border-top: 1px solid var(--mid-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.75;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a,
.footer-menu a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-menu a:hover {
    color: var(--gold);
}

/* WP footer menu */
.footer-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ─── INDEX / BLOG POSTS ─────────────────────────────────── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.post-item {
    background: #111;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.post-title a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition);
}

.post-title a:hover {
    color: var(--gold);
}

.post-meta {
    font-size: 12px;
    opacity: 0.5;
    margin-bottom: 12px;
}

.post-excerpt {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    font-size: 12px;
    padding: 9px 20px;
}

/* Pagination */
.navigation.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.navigation.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--mid-grey);
    color: var(--white);
    font-size: 13px;
    transition: background var(--transition), color var(--transition);
}

.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
    background: var(--white);
    color: var(--black);
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 0;
}

.no-results h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.no-results p {
    opacity: 0.65;
    margin-bottom: 24px;
}

/* ─── UTILITIES ──────────────────────────────────────────── */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 900px) {
    .grid-3,
    .why,
    .reviews {
        grid-template-columns: 1fr;
    }

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

    .hero h1 {
        font-size: 44px;
    }

    .statement {
        font-size: 36px;
    }

    .navbar {
        padding: 20px 24px;
    }

    .section {
        padding: 60px 24px;
    }

    .footer {
        padding: 28px 24px;
        flex-direction: column;
        text-align: center;
    }

    /* Mobile nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 12, 0.97);
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        border-top: 1px solid var(--mid-grey);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a,
    .nav-links .primary-menu a {
        margin: 0 0 16px;
        font-size: 18px;
    }

    .primary-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .primary-menu li {
        display: block;
    }
}

@media (max-width: 540px) {
    .products {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 0 24px;
    }

    .hero-content h1 {
        font-size: 36px;
    }
}
