/*
Theme Name: Premium Corporate Master
Theme URI: https://example.com/premium-corp
Author: AI Developer
Author URI: https://example.com
Description: A massive, premium 3-in-1 corporate ecommerce theme. Includes Dark Luxury, Clean Corporate, and Modern Gradient styles via Customizer. Built with GSAP, Lenis, Swiper, and fully WooCommerce ready + B2B options.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: premium-corp
Tags: luxury, e-commerce, custom-colors, animated, b2b, woocommerce
*/

/* --------------------------------------------------------------------------
 * Base CSS Variables (Fallback/Defaults - Overridden by Customizer Presets)
 * Default Preset: Dark Luxury
 * -------------------------------------------------------------------------- */
:root {
    --pc-primary: #D4AF37;
    /* Gold */
    --pc-secondary: #FFFFFF;
    /* White */
    --pc-bg-solid: #0A0A0A;
    /* Deep Black */
    --pc-bg-elevated: #111111;
    /* Slightly lighter black */
    --pc-text-main: rgba(255, 255, 255, 0.9);
    --pc-text-muted: rgba(255, 255, 255, 0.6);
    --pc-border: rgba(212, 175, 55, 0.2);
    /* Gold subtle border */

    /* Typography: Playfair Display + Inter by default */
    --pc-font-heading: 'Playfair Display', serif;
    --pc-font-body: 'Inter', sans-serif;

    --pc-transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --pc-radius: 4px;
    /* Default border radius */
    --pc-container: 1400px;
}

/* --------------------------------------------------------------------------
 * Reset & Smooth Scrolling (Lenis)
 * -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

body {
    font-family: var(--pc-font-body);
    color: var(--pc-text-main);
    background-color: var(--pc-bg-solid);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--pc-font-heading);
    color: var(--pc-secondary);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--pc-primary);
}

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

ul,
ol {
    list-style: none;
}

/* --------------------------------------------------------------------------
 * Layout Utilities
 * -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--pc-container);
    margin: 0 auto;
    padding: 0 5vw;
}

.section-padding {
    padding: 6rem 0;
}

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

/* --------------------------------------------------------------------------
 * Animated Buttons
 * -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--pc-font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: var(--pc-radius);
    transition: var(--pc-transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid var(--pc-border);
    color: var(--pc-secondary);
    background: transparent;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--pc-primary);
    border-radius: var(--pc-radius);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn:hover::after {
    transform: translateY(0);
}

.btn:hover {
    color: var(--pc-bg-solid);
    border-color: var(--pc-primary);
}

.btn-solid {
    background: var(--pc-primary);
    color: var(--pc-bg-solid);
    border-color: var(--pc-primary);
}

.btn-solid::after {
    background: var(--pc-secondary);
}

.btn-solid:hover {
    color: var(--pc-bg-solid);
}

/* --------------------------------------------------------------------------
 * Header & Navigation
 * -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--pc-transition);
    background: transparent;
    padding: 1.5rem 0;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: var(--pc-bg-solid);
    /* Will be semi-transparent in glassmorphism preset */
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--pc-border);
}

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

.site-logo img {
    max-height: 50px;
    transition: var(--pc-transition);
}

.main-navigation ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-navigation a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--pc-secondary);
    position: relative;
    padding: 0.5rem 0;
}

/* Hover Underline */
.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--pc-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.main-navigation a:hover::before,
.main-navigation .current-menu-item>a::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Header Icons (User, Cart, Search) */
.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-icon {
    color: var(--pc-secondary);
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.header-icon:hover {
    color: var(--pc-primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--pc-primary);
    color: var(--pc-bg-solid);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
 * Mobile Bottom Nav Bar (Navyugs Reference)
 * -------------------------------------------------------------------------- */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--pc-bg-elevated);
    border-top: 1px solid var(--pc-border);
    z-index: 999;
    padding: 0.8rem 1rem;
    justify-content: space-around;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-bar .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--pc-text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-bottom-bar .bottom-nav-item i {
    font-size: 1.25rem;
}

.mobile-bottom-bar .bottom-nav-item.active,
.mobile-bottom-bar .bottom-nav-item:hover {
    color: var(--pc-primary);
}

/* Mobile Toggles */
.menu-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--pc-secondary);
        cursor: pointer;
    }

    .main-navigation {
        display: none;
    }

    .mobile-bottom-bar {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    /* Moved to bottom bar on mobile */
}

/* --------------------------------------------------------------------------
 * GSAP Animation Targets
 * -------------------------------------------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
}

.parallax-bg {
    height: 120%;
    width: 100%;
    object-fit: cover;
}

.parallax-wrap {
    overflow: hidden;
    position: relative;
}