/*
Theme Name: Cognito Base
Theme URI: https://cognito.guru
Author: Cognito Guru
Description: Authoritative structural chassis for all restaurant and local business websites.
Version: 1.0.0
License: GPL v2 or later
Text Domain: cognito-base
*/

/* 
  THEME DESIGN TOKEN MAP
  These are populated via PHP from the active Variant JSON.
  Variables below are placeholders/fallbacks.
*/

:root {
    /* Dynamics - Populated by Variant */
    --cg-primary: #FF6B35;
    --cg-secondary: #004E89;
    --cg-accent: #FFD166;
    --cg-background: #FFFFFF;
    --cg-surface: #F8F9FA;
    --cg-text-primary: #1D3557;
    --cg-text-secondary: #457B9D;

    --cg-heading-font: 'Inter', sans-serif;
    --cg-body-font: 'Inter', sans-serif;

    --cg-border-radius: 8px;
    --cg-section-gap: 4rem;
}

/* Global Grid & Spacing */
body {
    font-family: var(--cg-body-font);
    background-color: var(--cg-background);
    color: var(--cg-text-primary);
    line-height: 1.6;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--cg-heading-font);
    margin-top: 0;
}

.cg-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cg-section {
    padding-top: var(--cg-section-gap);
    padding-bottom: var(--cg-section-gap);
}

/* Global Components */
.cg-button {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: var(--cg-border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Animations */
.cg-fade-in {
    animation: cgFadeIn 0.8s ease-out forwards;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(var(--cg-background-rgb, 18, 18, 18), 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(var(--cg-primary-rgb, 230, 57, 70), 0.1);
    transition: all 0.3s ease;
}

/* Luxe Specific Header */
.header-luxe {
    position: absolute;
    width: 100%;
    background: transparent !important;
    backdrop-filter: none;
    border-bottom: none;
    color: white;
}

.header-luxe .brand-logo {
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 300;
}

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

.header-luxe nav a {
    color: white;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.header-luxe nav a:hover {
    opacity: 1;
}

.site-header.header-luxe .cg-container {
    max-width: 1400px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Vanguard Specific Header */
.header-vanguard {
    background-color: var(--cg-background) !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.vanguard-navigation ul {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vanguard-navigation ul a {
    text-decoration: none;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cg-text-primary);
    transition: color 0.3s ease;
}

.vanguard-navigation ul a:hover {
    color: var(--cg-primary);
}

#primary-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu a {
    text-decoration: none;
    color: var(--cg-text-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
}

#primary-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cg-primary);
    transition: width 0.3s ease;
}

#primary-menu a:hover::after {
    width: 100%;
}

@keyframes cgFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Scroll Utilities */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ADMIN BAR FIX: Ensure header is not covered by WP Admin Bar */
body.admin-bar .site-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px !important;
    }
}