/* XNVR Custom Redesign Styles */

:root {
    --primary-color: #2c3e50;
    --accent-color: #e67e22;
    --bg-light: #f9f9f9;
    --text-main: #333;
    --text-muted: #666;
    --font-heading: 'Playfair Display', serif;
    /* Assuming likely available or fallback */
    --font-body: 'Inter', sans-serif;
    --spacing-lg: 80px;
    --spacing-md: 40px;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    scroll-behavior: smooth;
}

/* Base resets for container hack */
.xnvr-home-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow-x: hidden;
}

.xnvr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Overrides */
h1,
h2,
h3 {
    font-family: var(--font-heading, serif);
    color: var(--primary-color);
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
}

/* Hero Section */
.xnvr-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
}

.xnvr-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xnvr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.xnvr-hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.xnvr-hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: white;
    margin-bottom: 20px;
}

.xnvr-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.9;
}

.xnvr-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.xnvr-buttons {
    display: flex;
    gap: 15px;
}

/* Brands */
.xnvr-brands {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.brand-list {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    color: #999;
    font-weight: 600;
    margin-top: 10px;
    font-size: 1.2rem;
}

/* Categories */
.xnvr-categories {
    padding: var(--spacing-lg) 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cat-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.cat-card:hover {
    transform: translateY(-5px);
}

.cat-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.cat-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.cat-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Featured Posts */
.xnvr-featured-posts {
    padding: var(--spacing-lg) 0;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.post-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.post-thumb {
    height: 220px;
    background: #ddd;
    overflow: hidden;
}

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

.post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-meta {
    margin-bottom: 15px;
}

.post-cat {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.post-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
}

/* Newsletter */
.xnvr-newsletter {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-bottom: 0;
    /* Flush with footer if needed */
}

.newsletter-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

.newsletter-form input {
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    width: 100%;
    max-width: 400px;
}

/* Shop By Age */
.xnvr-age-shop {
    padding: var(--spacing-lg) 0;
    background: #fff;
}

.age-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.age-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    display: block;
    box-shadow: var(--shadow);
}

.age-card img,
.age-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.age-placeholder {
    background: #ddd;
}

.age-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
}

.age-overlay h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.age-overlay span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.age-card:hover img {
    transform: scale(1.1);
}

/* Quote Break */
.xnvr-quote-break {
    padding: 100px 0;
    background: var(--primary-color);
    text-align: center;
    color: white;
}

.xnvr-quote-break blockquote {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.4;
    color: white;
    /* Force white */
}

.xnvr-quote-break cite {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    font-style: normal;
}

/* Meet the Editor */
.xnvr-about-promo {
    padding: var(--spacing-lg) 0;
    background: #fdfdfd;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 20px 20px 0 var(--accent-color);
}

.about-text {
    flex: 1;
}

.about-text .eyebrow {
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .xnvr-hero-content h1 {
        font-size: 2.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        max-width: 400px;
        box-shadow: 10px 10px 0 var(--accent-color);
    }
}

/* Page Template Styles */
.xnvr-page-wrapper {
    background: #fdfdfd;
    padding-bottom: 80px;
}

.xnvr-page-header {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}

.xnvr-page-header h1 {
    color: white;
    font-size: 3rem;
    margin: 0;
}

.xnvr-page-content-box {
    background: white;
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.entry-content {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.entry-content p {
    margin-bottom: 20px;
}