@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Oswald:wght@500;700&display=swap');

:root {
    /* Colors */
    --bg-color: #0F0F0F;
    --bg-secondary: #111111;
    --text-color: #EDEDED;
    --text-muted: #888888;
    --accent-color: #D4AF37;
    /* Muted Gold */
    --border-color: #333333;
    --color-red: #ff3b3b;
    /* Bright red for branding */

    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 20px;
    --font-size-xl: 32px;
    --font-size-hero: 48px;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --container-max-width: 1200px;

    /* UI */
    --border-radius: 12px;
    /* Sharper corners for premium feel */
    --transition-speed: 0.3s;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    /* True-to-life Atlanta roadmap texture behind radial depth gradient */
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(26, 26, 26, 0.45) 0%, rgba(10, 10, 10, 0.58) 70%),
        url("assets/atl_street_map.png");
    background-size: 100% 100%, cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-blend-mode: normal, screen;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Increased tracking */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    /* Strong shadow for depth */
}

h1 {
    letter-spacing: 4px;
    /* Even wider for hero */
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
    /* Hero specific depth */
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity var(--transition-speed);
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font-family: inherit;
    border-radius: var(--border-radius);
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.section {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-primary {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: #FFFFFF;
    transform: scale(1.02);
}

.btn-accent {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-accent:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 96%; /* Stretches header beyond the global container restriction */
}

.brand-logo {
    display: inline-flex;
    gap: 3px;
    font-weight: 700;
    font-size: var(--font-size-lg);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brand-logo span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #1a1a1a 49%, #000 50%, #151515 51%);
    color: #fff;
    min-width: 22px;
    height: 32px;
    padding: 0 3px;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 4px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-color);
    position: relative;
    letter-spacing: normal;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    font-family: var(--font-heading);
    /* Headers in Nav */
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Nav depth */
}

/* Split-Flap Nav Items */
.nav-links > li > a,
.nav-links > li > span.nav-item {
    display: inline-flex;
    gap: 2px;
}

.nav-links > li > a span,
.nav-links > li > span.nav-item span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #1a1a1a 49%, #000 50%, #151515 51%);
    color: inherit;
    min-width: 14px;
    height: 24px;
    padding: 0 2px;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 4px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-color);
    position: relative;
    letter-spacing: normal;
    text-shadow: none;
    transition: color var(--transition-speed);
}

.nav-links a:hover,
.nav-links a.active,
.dropdown:hover .nav-item {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    padding-bottom: 10px;
    /* Bridge gap to menu */
    margin-bottom: -10px;
}

.nav-item {
    cursor: default;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-speed);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    /* Rounded corners */
    padding: 8px 0;
    /* Vertical padding only */
    min-width: 200px;
    /* Slightly wider */
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    gap: 0;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    /* Specific padding for hit area */
    color: var(--text-muted);
    border-bottom: none !important;
    /* Override standard hover underline */
    font-family: var(--font-body);
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    /* Subtle highlight */
    padding-left: 28px;
    /* Slight movement on hover */
}

/* Nested Dropdown Styles */
.dropdown-submenu-parent {
    position: relative;
}

.dropdown-menu .dropdown-submenu {
    display: none;
    position: relative;
    /* Change from absolute to relative */
    left: 0;
    /* Align with parent */
    top: 0;
    width: 100%;
    /* Fill width */
    background-color: transparent;
    /* Seamless look */
    border: none;
    padding: 0;
    box-shadow: none;
    flex-direction: column;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.2);
    /* Darker background for nested area */
}

/* .dropdown-submenu-parent:hover .dropdown-submenu {
    display: flex; 
    (Old CSS hover logic removed for JS sticky behavior)
} */

.dropdown-submenu.active {
    display: flex;
    max-height: 500px;
    /* Ensure enough height */
    opacity: 1;
    transition-delay: 0s;
    /* Open instantly */
}

.dropdown-submenu a {
    padding-left: 40px;
    /* Deep indentation for hierarchy */
    font-size: 13px;
    color: #888;
}

.dropdown-submenu a:hover {
    padding-left: 44px;
    /* Movement matches parent style */
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.03);
}

.submenu-trigger {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

/* Lightbox Modal */
/* Lightbox Modal - Legacy Styles Removed */
/* New styles handled by .floating-window and specific overrides below */


/* Text Modal (FAQ) */
/* Draggable Text Window (FAQ) */
/* Shared Floating Window Styles */
.floating-window {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);

    width: 400px;
    max-width: 90vw;
    height: auto;

    background: rgba(20, 20, 20, 0.85);
    /* Dark semi-transparent */
    backdrop-filter: blur(12px);
    /* Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 12px;
    z-index: 2000;

    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-window.active {
    display: flex;
    opacity: 1;
}

/* Specific Adjustments */
#lightbox-modal {
    width: auto;
    /* Let image dictate width, but max-width applies */
    max-height: 80vh;
}

/* Text Modal (FAQ) uses default .floating-window styles */
#text-modal {
    /* No overrides needed */
}

#text-modal.active {
    display: flex;
    opacity: 1;
}

.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    /* Slight distinction */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: move;
    /* Indicates draggable */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.window-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.window-content {
    padding: 24px;
    text-align: left;
    overflow-y: auto;
    /* Allow scrolling content if needed */
    max-height: 70vh;
    /* Prevent window from being taller than screen */
}

.window-content h3 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.window-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.window-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.text-modal-close {
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
    transition: color 0.3s;
}

.text-modal-close:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

footer a {
    color: var(--text-muted);
}

footer a:hover {
    color: var(--accent-color);
}

/* Base Form Styles */
input,
textarea {
    width: 100%;
    padding: 12px;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    transition: border-color 0.3s, background 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(15, 15, 15, 0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* --- Homepage Specific Styles --- */

/* Hero */
.hero {
    position: relative;
    height: 45vh;
    /* Requested 45% viewport */
    min-height: 400px;
    background-color: var(--bg-secondary);
    background: linear-gradient(rgba(15, 15, 15, 0.5), rgba(15, 15, 15, 0.5)), url('assets/ATLbackground.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    /* Offset fixed nav */
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: var(--font-size-hero);
    letter-spacing: 4px;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
}

.hero-buttons .btn {
    margin: 0 var(--spacing-sm);
}

/* Countdown */
.countdown-section {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(8px);
}

.countdown-label {
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    font-family: monospace;
    font-size: var(--font-size-lg);
}

.countdown-timer .label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Feature Panels */
.panel-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.panel {
    position: relative;
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed), border-color var(--transition-speed), background var(--transition-speed);
    min-height: 400px;
}

.panel:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
    background: rgba(17, 17, 17, 0.4);
    z-index: 10;
}

/* Make entire panel clickable */
.panel-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

.panel h3 {
    letter-spacing: 1px;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
}

.panel p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-lg);
}

/* Placeholders inside panels */
.placeholder-product,
.placeholder-hero-img {
    background: #222;
    border-radius: var(--border-radius);
    margin-top: auto;
}

.placeholder-img,
.placeholder-hero-img {
    width: 100%;
    height: 200px;
    background-color: #333;
    margin-bottom: var(--spacing-sm);
}

.placeholder-hero-img {
    height: 250px;
}

/* Newsletter */
.newsletter-section {
    border-top: 1px solid var(--border-color);
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(8px);
}

.newsletter-form {
    max-width: 500px;
    margin: var(--spacing-lg) auto 0;
    display: flex;
    gap: var(--spacing-sm);
}

.newsletter-form input {
    margin-bottom: 0;
    /* Override global input margin */
}

/* Responsive Styles */
@media (max-width: 992px) {
    .panel-grid {
        grid-template-columns: 1fr;
        /* Stack panels on smaller screens */
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 32px;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

.text-red {
    color: var(--color-red) !important;
}

/* --- Cart Drawer Styles --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    max-width: 90vw;
    height: 100vh;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.cart-title {
    font-family: var(--font-heading);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.cart-close:hover {
    color: var(--color-red);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty-message {
    text-align: center;
    color: var(--text-muted);
    margin-top: 40px;
    font-style: italic;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-image {
    width: 80px;
    height: 100px;
    background: #222;
    border-radius: 4px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 4px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-item-variant {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-item-price {
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 8px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 4px 8px;
    cursor: pointer;
}

.qty-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.qty-value {
    font-size: 13px;
    padding: 0 8px;
    color: #fff;
}

.remove-item {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.remove-item:hover {
    color: var(--color-red);
}

/* Cart Footer */
.cart-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 20, 0.98);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 18px;
}

.checkout-btn {
    width: 100%;
    background: #fff;
    color: #000;
    padding: 16px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.checkout-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.cart-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* --- Solari Board Animation Styles --- */
.brand-logo {
    font-variant-numeric: tabular-nums;
    /* Monospace numbers */
    white-space: nowrap;
    /* Prevent breaking */
    display: inline-flex;
    /* Keep spans in row */
    min-width: 200px;
    /* Reserve space to prevent layout shift */
}

.brand-logo span {
    display: inline-block;
    width: auto;
    min-width: 12px;
    /* Prevent total collapse */
    text-align: center;
    font-family: inherit;
    /* Inherit Oswald */
}