/*
Theme Name: IsCoffee Theme
Theme URI: https://iscoffeeco.com
Author: IsCoffee Team
Author URI: https://iscoffeeco.com
Description: A custom premium theme for IsCoffee - "Nordic Minimalism meets Luxury"
Version: 2.0.0
Text Domain: iscoffee-theme

===========================================
AUDIT FIXES APPLIED:
- Fixed syntax error (stray font-weight on line ~1795)
- Consolidated duplicate mobile menu systems
- Unified responsive breakpoints
- Fixed mobile navigation display issues
- Removed redundant declarations
- Optimized media query organization
===========================================
*/

/* ===========================================
   1. CSS VARIABLES & RESET
   =========================================== */
:root {
    /* Colors */
    --color-espresso: #2C241B;
    --color-gold: #C6A87C;
    --color-cream: #F9F5F0;
    --color-white: #FFFFFF;
    --color-slate: #4A4A4A;
    --color-text-muted: #888888;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-container: 1440px;
    --spacing-pad: 2.5rem;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    --blur-glass: 12px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-cream);
    color: var(--color-slate);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background-color: var(--color-espresso);
    color: var(--color-gold);
}

/* ===========================================
   2. TYPOGRAPHY
   =========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--color-espresso);
    line-height: 1.1;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

p {
    margin-bottom: 1.5rem;
}

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

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
}

/* ===========================================
   3. LAYOUT UTILITIES
   =========================================== */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 var(--spacing-pad);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===========================================
   4. BUTTONS
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 36, 27, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-espresso);
    border: 1px solid var(--color-espresso);
}

.btn-secondary:hover {
    background-color: var(--color-espresso);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
}

/* ===========================================
   5. ANNOUNCEMENT MARQUEE
   =========================================== */
.announcement-marquee {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--color-cream);
    z-index: 10002;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: nowrap;
}

.announcement-marquee-cream {
    background-color: var(--color-white);
    color: var(--color-espresso);
}

.marquee-track-nav {
    display: inline-flex;
    gap: 4rem;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite;
        flex-shrink: 0;
    min-width: 100%;
}

.marquee-item {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-espresso);
    opacity: 0.9;
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.marquee-item:hover {
    color: var(--color-gold);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.announcement-marquee:hover .marquee-track-nav {
    animation-play-state: paused;
}

/* Impact Bar Marquee - Single Row Fix */
.marquee-container {
    overflow: hidden !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    max-height: 50px !important;
}

.marquee-track {
    display: inline-flex !important;
    white-space: nowrap !important;
    animation: marquee-scroll 30s linear infinite;
    flex-shrink: 0;
}

/* ===========================================
   6. HEADER
   =========================================== */
.header-wrapper {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    z-index: 10000;
    transition: var(--transition-normal);
}

.header-wrapper.scrolled .main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.4rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* Top Bar */
.header-top-bar {
    background-color: var(--color-espresso);
    color: var(--color-white);
    padding: 0.4rem 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.top-bar-socials {
    display: flex;
    gap: 0.75rem;
}

.top-bar-socials a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.top-bar-socials a:hover {
    color: var(--color-gold);
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-links a {
    color: rgba(255, 255, 255, 0.85);
}

.top-bar-links a:hover {
    color: var(--color-gold);
}

.top-bar-links .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.6rem;
}

/* Main Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.6rem 0;
    transition: var(--transition-normal);
}

.main-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.brand-link:hover .brand-logo {
    transform: scale(1.05);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-espresso);
    letter-spacing: 0.02em;
}

/* Desktop Navigation */
.header-main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-main-nav li {
    list-style: none;
}

.header-main-nav a {
    color: var(--color-slate);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
    text-transform: none;
}

.header-main-nav a:hover {
    color: var(--color-espresso);
}

.header-main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), #D4A574);
    transition: width var(--transition-normal);
}

.header-main-nav a:hover::after {
    width: 100%;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.header-icon-link {
    color: var(--color-espresso);
    opacity: 0.7;
    transition: all var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-gold);
    color: var(--color-white);
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header CTA Button */
.header-cta-btn {
    background: var(--color-espresso);
    color: var(--color-white);
    padding: 0.55rem 1.25rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.header-cta-btn:hover {
    background: var(--color-gold);
    color: var(--color-espresso);
}

/* ===========================================
   7. MOBILE HAMBURGER TOGGLE
   =========================================== */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 10001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-espresso);
    transition: var(--transition-normal);
    display: block;
}

/* ===========================================
   8. MOBILE SLIDE-IN NAVIGATION
   =========================================== */
.mobile-slide-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-espresso);
    z-index: 99999;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 4rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-slide-nav.open {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.mobile-nav-close:hover {
    color: var(--color-gold);
}

.mobile-slide-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-slide-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-slide-nav a {
    display: block;
    color: var(--color-white);
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 500;
    padding: 1.25rem 0;
    transition: all var(--transition-fast);
}

.mobile-slide-nav a:hover {
    color: var(--color-gold);
    padding-left: 0.5rem;
}

/* Mobile Menu Backdrop */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    animation: fadeIn 0.3s ease;
}

body.menu-open {
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===========================================
   9. HERO SECTIONS
   =========================================== */
.hero-section {
    display: flex;
    min-height: 100vh;
    width: 100%;
    padding-top: 125px;
    flex-direction: row;
}

.hero-split {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    z-index: 0;
}

.hero-split:hover .hero-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.75));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

/* Premium Hero */
.hero-premium {
    position: relative;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

.hero-parallax-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    background: radial-gradient(ellipse at center,
            transparent 40%,
            rgba(44, 36, 27, 0.25) 70%,
            rgba(44, 36, 27, 0.5) 100%);
}

.hero-bg-parallax {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(44, 36, 27, 0.85) 0%,
            rgba(44, 36, 27, 0.6) 50%,
            rgba(44, 36, 27, 0.75) 100%);
    z-index: 1;
}

/* Hero Text Styles */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-gold) 0%, #E8D5B7 50%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 480px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--color-gold);
    color: var(--color-espresso);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--color-gold);
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition-slow);
}

.btn-hero-primary:hover {
    background: transparent;
    color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(198, 168, 124, 0.3);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition-slow);
}

.btn-hero-ghost:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Floating Elements */
.hero-float-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 2;
    filter: blur(40px);
}

.hero-float-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    right: -50px;
    animation: float-slow 8s ease-in-out infinite;
}

.hero-float-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 10%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.hero-float-3 {
    width: 250px;
    height: 250px;
    top: 40%;
    left: -80px;
    animation: float-slow 7s ease-in-out infinite;
}

@keyframes float-slow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    display: none !important; visibility: hidden !important; opacity: 0 !important;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(10px);
    }
}

/* Hero Seal */
.hero-seal {
    position: static;
    display: block;
    margin: 0 auto 4rem auto;
    width: 300px;
    height: auto;
    z-index: 10;
    transition: var(--transition-normal);
}

/* ===========================================
   10. CONTENT SECTIONS
   =========================================== */
.section-common {
    padding: var(--spacing-xl) 0;
}

/* Promo Section */
.promo-section {
    background-color: #1a1a1a;
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
}

.promo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.promo-image-wrapper {
    flex: 1;
    max-width: 500px;
}

.promo-video {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.promo-content {
    flex: 1;
    max-width: 500px;
    color: var(--color-white);
}

.promo-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--color-gold);
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.promo-heading {
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--color-gold);
    font-family: var(--font-heading);
}

.promo-text {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ===========================================
   11. PRODUCT CARDS
   =========================================== */
.product-card {
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    border-radius: 8px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.product-card-premium {
    position: relative;
    background: transparent;
    transition: var(--transition-slow);
}

.product-image-wrap {
    position: relative;
    height: 420px;
    background-color: var(--color-cream);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.product-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card-premium:hover .product-img {
    transform: scale(1.08) translateY(-10px);
}

.quick-actions {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.product-card-premium:hover .quick-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Toggle Controls */
.product-toggle-wrapper {
    display: inline-flex;
    background-color: #f0ebe5;
    padding: 6px;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.toggle-control {
    padding: 0.75rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #888;
    transition: var(--transition-normal);
    position: relative;
    z-index: 2;
}

.toggle-control.active {
    color: var(--color-white);
    background-color: var(--color-espresso);
    box-shadow: 0 4px 12px rgba(44, 26, 14, 0.2);
}

/* ===========================================
   12. FORMS
   =========================================== */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.newsletter-input {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-espresso);
    width: 100%;
    outline: none;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: 4px;
    transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
    border-color: var(--color-espresso);
}

.newsletter-btn {
    background: var(--color-gold);
    color: var(--color-espresso);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 0.8rem;
}

.newsletter-btn:hover {
    background: var(--color-espresso);
    color: var(--color-white);
    transform: translateY(-2px);
}

.newsletter-form.inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.newsletter-form.inline .newsletter-input {
    flex: 1;
    min-width: 250px;
}

.input-premium {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--color-white);
    border-radius: 4px;
    font-family: inherit;
    width: 100%;
    transition: var(--transition-normal);
}

.input-premium:focus {
    outline: none;
    border-color: var(--color-espresso);
    box-shadow: 0 0 0 3px rgba(43, 33, 30, 0.05);
}

/* ===========================================
   13. FOOTER
   =========================================== */
.footer-section {
    background-color: #f9f9f9;
    padding: 4rem 0;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
}

.footer-social-icons a {
    font-size: 1.2rem;
    color: var(--color-espresso);
    transition: color var(--transition-fast);
}

.footer-social-icons a:hover {
    color: var(--color-gold);
}

/* ===========================================
   14. CHATBOT & FLOATING BUTTONS
   =========================================== */
.chatbot-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-espresso);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.chatbot-fab:hover {
    transform: scale(1.05);
    background-color: #3a2e2c;
}

.chatbot-helper-text {
    position: fixed;
    bottom: 2.5rem;
    right: 5rem;
    background-color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-espresso);
    z-index: 9998;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition-normal);
    pointer-events: none;
}

.chatbot-helper-text.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.chatbot-window {
    position: fixed;
    bottom: 7rem;
    right: 2rem;
    width: 320px;
    height: 400px;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-fast);
    pointer-events: none;
}

.chatbot-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    background-color: var(--color-espresso);
    color: var(--color-white);
    padding: 1rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    background-color: #f9f9f9;
    overflow-y: auto;
}

.chat-msg-bot {
    background-color: var(--color-white);
    padding: 0.8rem;
    border-radius: 8px 8px 8px 0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    max-width: 85%;
}

.chat-input-area {
    padding: 0.8rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
    background-color: var(--color-white);
}

.chat-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.chat-send-btn {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-espresso);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blog Button */
.blog-btn-fab {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    height: 50px;
    padding: 0 1.5rem;
    border-radius: 25px;
    background-color: var(--color-white);
    color: var(--color-espresso);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    border: 1px solid #eee;
    text-decoration: none;
    transition: transform var(--transition-fast);
    opacity: 0;
    transform: translateX(-20px);
}

.blog-btn-fab.visible {
    opacity: 1;
    transform: translateX(0);
}

.blog-btn-fab:hover {
    transform: scale(1.05) translateX(0);
}

.blog-btn-text {
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* ===========================================
   15. CART DRAWER
   =========================================== */
.cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.cart-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--color-cream);
    z-index: 2001;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-white);
}

.drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.drawer-footer {
    padding: 2rem;
    background-color: var(--color-white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.drawer-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

/* ===========================================
   16. ANIMATION SYSTEM
   =========================================== */
.js-loaded [data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.js-loaded [data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos-delay="100"] {
    transition-delay: 0.1s;
}

[data-aos-delay="200"] {
    transition-delay: 0.2s;
}

[data-aos-delay="300"] {
    transition-delay: 0.3s;
}

[data-aos-delay="400"] {
    transition-delay: 0.4s;
}

[data-aos-delay="500"] {
    transition-delay: 0.5s;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.reveal {
    opacity: 1;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   17. ABOUT PAGE
   =========================================== */
.about-hero {
    position: relative;
    padding: 14rem 0 10rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/about_hero_premium.png') no-repeat center center;
    background-size: cover;
    z-index: 0;
}

.about-hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.about-hero .hero-subtext {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.about-section {
    padding: 8rem 0;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.subheading-gold {
    display: block;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-frame:hover img {
    transform: scale(1.05);
}

/* Stats Bar */
.stats-bar {
    padding: 6rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-val {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-espresso);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-val .small {
    font-size: 2rem;
    color: var(--color-gold);
    vertical-align: super;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* ===========================================
   18. WORDPRESS UTILITIES
   =========================================== */
.aligncenter {
    display: block;
    margin: 0 auto;
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

/* Content offset for fixed header */
body:not(.home) .site-main,
body:not(.home) #primary {
    padding-top: 140px;
}

body.home .hero-content {
    margin-top: 190px;
}

/* ===========================================
   19. RESPONSIVE - TABLET (max-width: 1024px)
   =========================================== */
@media screen and (max-width: 1024px) {
    :root {
        --spacing-pad: 2rem;
    }

    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .section-common {
        padding: 4rem 0;
    }

    /* Hide shop button on tablet */
    .header-cta-btn {
        display: none;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* ===========================================
   20. RESPONSIVE - MOBILE (max-width: 900px)
   =========================================== */
@media screen and (max-width: 900px) {

    /* Hide desktop nav */
    .header-main-nav {
        display: none;
    }

    /* Show hamburger */
    .mobile-toggle {
        display: flex;
    }

    /* Hero adjustments */
    .hero-parallax-wrapper {
        flex-direction: column;
    }

    .hero-split {
        min-height: 60vh;
        padding: 3rem 1.5rem;
    }

    .hero-section {
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding-top: 70px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }

    .btn-hero-primary,
    .btn-hero-ghost {
        width: 100%;
        justify-content: center;
    }

    .hero-float-element,
    .hero-scroll-indicator {
        display: none;
    }

    .hero-seal {
        width: 260px;
        margin-bottom: 2rem;
    }

    /* Top bar grid layout */
    .top-bar-flex {
        display: grid;
        grid-template-columns: auto 1fr auto;
        width: 100%;
        align-items: center;
        padding: 0 1rem;
    }

    .top-bar-socials {
        grid-column: 1;
        justify-self: start;
    }

    .top-bar-links {
        grid-column: 3;
        justify-self: end;
    }

    /* Main header */
    .main-header-flex {
        gap: 0.5rem;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .header-icons {
        gap: 0.4rem;
    }

    .header-right {
        gap: 0.5rem;
    }

    /* About page */
    .about-hero h1 {
        font-size: 3.5rem;
    }

    .split-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .stats-grid {
        flex-direction: column;
        gap: 3rem;
    }

    /* Promo section */
    .promo-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .promo-content {
        text-align: center;
    }

    .promo-heading {
        font-size: 2.5rem;
    }

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

    .footer-col {
        align-items: center;
    }

    .footer-social-icons {
        justify-content: center;
    }
}

/* ===========================================
   21. RESPONSIVE - SMALL MOBILE (max-width: 768px)
   =========================================== */
@media screen and (max-width: 768px) {
    :root {
        --spacing-pad: 1rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Header compact */
    .header-top-bar {
        padding: 0.3rem 0;
        font-size: 0.65rem;
    }

    .announcement-marquee {
        font-size: 0.7rem;
    }

    .main-header {
        padding: 0.5rem 0;
    }

    /* Hide floating buttons on mobile */
    .blog-btn-fab,
    .chatbot-fab,
    .chatbot-helper-text {
        display: none;
    }

    /* Full width buttons */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
    }

    /* Product cards */
    .product-image-wrap {
        height: 300px;
    }

    /* Sections */
    .section-common,
    .promo-section {
        padding: 4rem 0;
    }

    /* About page */
    .about-hero {
        padding: 10rem 0 6rem;
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }

    .about-hero .hero-subtext {
        font-size: 1.1rem;
    }
}

/* ===========================================
   22. RESPONSIVE - EXTRA SMALL (max-width: 500px)
   =========================================== */
@media screen and (max-width: 500px) {
    html {
        font-size: 14px;
    }

    /* Header */
    .header-cta-btn {
        display: block;
        padding: 0.35rem 0.6rem;
        font-size: 0.6rem;
    }

    .top-bar-flex {
        padding: 0 0.5rem;
    }

    .top-bar-socials {
        gap: 0.5rem;
    }

    .top-bar-links {
        gap: 0.3rem;
        font-size: 0.55rem;
    }

    .top-bar-links .separator {
        display: none;
    }

    .brand-logo {
        width: 24px;
        height: 24px;
    }

    .brand-name {
        font-size: 0.85rem;
    }

    .header-icons {
        gap: 0.35rem;
    }

    .header-icon-link svg {
        width: 16px;
        height: 16px;
    }

    .header-right {
        gap: 0.3rem;
    }

    /* Hero */
    .hero-seal {
        width: 50px;
        height: 50px;
    }

    /* Stats */
    .stat-val {
        font-size: 3rem;
    }
}

/* ===========================================
   23. PRINT STYLES
   =========================================== */
@media print {

    .announcement-marquee,
    .header-wrapper,
    .mobile-slide-nav,
    .chatbot-fab,
    .blog-btn-fab,
    .cart-drawer,
    .cart-backdrop {
        display: none !important;
    }

    body {
        padding-top: 0 !important;
    }

    .site-main {
        padding-top: 0 !important;
    }
}

/* ===================================================
   MOBILE MENU PREMIUM STYLING FIX
   =================================================== */

/* Override mobile menu with premium effects */
.mobile-slide-nav {
    background: rgba(30, 25, 20, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5) !important;
    border-left: 1px solid rgba(200, 169, 126, 0.15) !important;
    padding: 5rem 2rem 2rem !important;
}

.mobile-slide-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(200, 169, 126, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Premium close button */
.mobile-nav-close {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.mobile-nav-close:hover {
    background: rgba(200, 169, 126, 0.2) !important;
    border-color: rgba(200, 169, 126, 0.5) !important;
    color: var(--color-gold, #C8A97E) !important;
    transform: rotate(90deg);
}

/* Staggered animation for menu items */
.mobile-slide-nav.open li {
    animation: slideInRight 0.4s ease forwards;
}

.mobile-slide-nav.open li:nth-child(1) { animation-delay: 0.1s; }
.mobile-slide-nav.open li:nth-child(2) { animation-delay: 0.15s; }
.mobile-slide-nav.open li:nth-child(3) { animation-delay: 0.2s; }
.mobile-slide-nav.open li:nth-child(4) { animation-delay: 0.25s; }
.mobile-slide-nav.open li:nth-child(5) { animation-delay: 0.3s; }
.mobile-slide-nav.open li:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Premium link styling */
.mobile-slide-nav a {
    padding: 1rem 1.25rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.mobile-slide-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--color-gold, #C8A97E), #d4a574);
    border-radius: 3px;
    transition: height 0.3s ease;
}

.mobile-slide-nav a:hover {
    color: var(--color-gold, #C8A97E) !important;
    background: rgba(200, 169, 126, 0.08) !important;
    padding-left: 1.5rem !important;
}

.mobile-slide-nav a:hover::before {
    height: 60%;
}

/* Backdrop overlay when menu is open */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    animation: fadeInBackdrop 0.3s ease;
}

@keyframes fadeInBackdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ===================================================
   HERO SEAL / COMPANY LOGO FIX
   =================================================== */

/* Make the hero seal circular and properly sized */
.hero-seal {
    width: 180px !important;
    height: 180px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto 2rem auto !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 
                0 0 0 4px rgba(255, 255, 255, 0.1),
                inset 0 0 20px rgba(0, 0, 0, 0.1) !important;
    border: 3px solid rgba(200, 169, 126, 0.4) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.hero-seal:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 
                0 0 0 4px rgba(200, 169, 126, 0.3),
                inset 0 0 20px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile responsive - maintain good size */
@media screen and (max-width: 768px) {
    .hero-seal {
        width: 140px !important;
        height: 140px !important;
        margin-bottom: 1.5rem !important;
    }
}

@media screen and (max-width: 500px) {
    .hero-seal {
        width: 120px !important;
        height: 120px !important;
        margin-bottom: 1rem !important;
    }
}

/* ===========================================
   24. GLOBAL TRANSITION OVERLAY
   =========================================== */
.hidden {
    display: none !important;
}

#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #2C241B;
    z-index: 99999;

    /* Safe Default: Hidden & Non-Blocking */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #FFFFFF;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.6s ease-out, visibility 0.6s;
}

#transition-overlay.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
