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

/* CSS Variables - Western Warmth Theme */
:root {
    /* Warm backgrounds - leather & wood */
    --bg-primary: #1a1209;         /* Deep leather */
    --bg-secondary: #241a0f;       /* Warm charcoal */
    --bg-tertiary: #2e2114;        /* Rich brown */
    --bg-card: #1f1610;            /* Card surface */

    /* Gold & warm accents */
    --color-primary: #c9a86c;      /* Gold (from logo brass) */
    --color-secondary: #c2410c;    /* Terracotta accent */
    --color-accent-1: #d4b878;     /* Light gold */
    --color-accent-2: #7a6b55;     /* Muted warm */
    --color-accent-3: #d97706;     /* Warm amber */
    --color-gold: #c9a86c;         /* Brass/gold highlight */
    --color-gold-light: #d4b878;   /* Light gold */
    --color-terracotta: #c2410c;   /* Terracotta */

    /* Text colors - warm whites */
    --text-primary: #f5ede0;       /* Parchment white */
    --text-secondary: #b8a88a;     /* Muted gold-tan */
    --text-muted: #7a6b55;         /* Subtle label */

    /* Borders */
    --border-color: #3d2e1f;       /* Warm brown */
    --border-highlight: #c9a86c;   /* Gold highlight */

    /* Gradients - gold warmth */
    --gradient-primary: linear-gradient(135deg, #c9a86c 0%, #d97706 50%, #d4b878 100%);
    --gradient-glow: linear-gradient(135deg, rgba(201, 168, 108, 0.12) 0%, rgba(217, 119, 6, 0.12) 100%);

    /* Shadows - warm tones */
    --shadow-sm: 0 1px 2px rgba(10, 5, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(10, 5, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(10, 5, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(201, 168, 108, 0.25);

    /* Typography */
    --font-heading: 'Vollkorn', Georgia, serif;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Product brand fonts */
    --font-young-mysteries: 'Playfair Display', Georgia, serif;
    --font-paratissimus: 'Cinzel', Georgia, serif;
    --font-cards-carbines: 'Rye', cursive;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Base styles */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-top: 70px;
}

/* Heading typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

/* Product brand font classes */
.font-ym {
    font-family: var(--font-young-mysteries);
}

.font-para {
    font-family: var(--font-paratissimus);
}

.font-cc {
    font-family: var(--font-cards-carbines);
}

/* Warm grain texture overlay */
.grain-texture {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.035;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Main container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Navigation */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    background: rgba(26, 18, 9, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition-normal);
}

.site-nav.scrolled {
    background: rgba(26, 18, 9, 0.98);
    border-bottom-color: var(--border-color);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Main content */
main {
    flex: 1;
}

/* ============================
   HOMEPAGE STYLES
   ============================ */

/* Hero - Updated */
.hero {
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: var(--spacing-lg);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
}

.hero h1 .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.7;
}

/* Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--gradient-primary);
    color: #1a1209;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Section Titles */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Products Section */
.products {
    padding: var(--spacing-2xl) 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.product-card:hover {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.product-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

/* Coming Soon tag on product cards */
.coming-soon-tag {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--gradient-primary);
    color: #1a1209;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    z-index: 1;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
}

.product-info {
    padding: var(--spacing-md);
}

.product-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.product-category {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.product-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.product-cta {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: var(--spacing-2xl) 0;
}

.about-content {
    max-width: 700px;
    margin: var(--spacing-xl) auto 0;
    text-align: center;
}

.about-content > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

/* Contact Card */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--spacing-lg);
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.contact-card:hover {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

.contact-email {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.contact-email:hover {
    background: var(--bg-secondary);
    border-color: var(--color-primary);
}

.email-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-nav, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-nav h4, .footer-contact h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.footer-nav a, .footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-nav a:hover, .footer-contact a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   PRODUCT PAGE STYLES
   ============================ */

/* Product Hero */
.product-hero {
    padding: var(--spacing-2xl) 0;
}

.product-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.product-hero-category {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.product-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
}

.product-hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.product-hero-image .image-placeholder.large {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Store Badges */
.store-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.store-badge:hover {
    border-color: var(--border-highlight);
    background: var(--bg-secondary);
}

/* Coming Soon store badges (non-clickable) */
.store-badge-soon {
    opacity: 0.5;
    cursor: default;
}

.store-badge-soon:hover {
    border-color: var(--border-color);
    background: var(--bg-tertiary);
}

.store-badge-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.store-badge-text small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.store-badge-text strong {
    font-size: 1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transition: var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.gallery-item .image-placeholder {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.gallery-item:hover .image-placeholder {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow);
}

/* Product page sections */
.product-features, .product-gallery {
    padding: var(--spacing-2xl) 0;
}

/* Cards & Carbines Hero */
.cards-carbines-hero {
    position: relative;
    padding: var(--spacing-2xl) 0;
    min-height: 450px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.cards-carbines-hero .hero-bg {
    position: absolute;
    inset: 0;
}

.cards-carbines-hero .hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform-origin: center center;
    animation: kenburns 32s infinite;
}

.cards-carbines-hero .hero-bg img:nth-child(1) { animation-delay: 0s; animation-name: kenburns-right; }
.cards-carbines-hero .hero-bg img:nth-child(2) { animation-delay: 8s; animation-name: kenburns-left; }
.cards-carbines-hero .hero-bg img:nth-child(3) { animation-delay: 16s; animation-name: kenburns-right; }
.cards-carbines-hero .hero-bg img:nth-child(4) { animation-delay: 24s; animation-name: kenburns-left; }

@keyframes kenburns-right {
    0%    { opacity: 0; transform: scale(1.0) translateX(-2%); }
    2%    { opacity: 1; }
    23%   { opacity: 1; }
    25%   { opacity: 0; transform: scale(1.12) translateX(2%); }
    100%  { opacity: 0; }
}

@keyframes kenburns-left {
    0%    { opacity: 0; transform: scale(1.0) translateX(2%); }
    2%    { opacity: 1; }
    23%   { opacity: 1; }
    25%   { opacity: 0; transform: scale(1.12) translateX(-2%); }
    100%  { opacity: 0; }
}

.cards-carbines-hero .hero-bg img:first-child { opacity: 1; }

.cards-carbines-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 18, 9, 0.55), rgba(26, 18, 9, 0.92));
    z-index: 1;
}

.cards-carbines-hero .container {
    position: relative;
    z-index: 2;
}

/* CTA Section */
.product-cta-section {
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: var(--spacing-sm);
    }
    .nav-links.active { display: flex; }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .product-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .store-badges {
        justify-content: center;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .grain-texture {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
