/*
Theme Name: Agency Directory Theme
Theme URI: https://agency-platform.internal
Author: Agency Engineering Team
Author URI: https://agency-platform.internal
Description: Production-ready, luxury dark aesthetic WordPress directory theme built for profile catalogs and VIP advertising platforms. Features 100% market neutrality, zero external CSS/JS dependencies, and dynamic CSS variable theming.
Version: 1.6.2
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agency-theme
Tags: grid-layout, custom-colors, custom-menu, featured-images, full-width-template, theme-options
*/

/* ==========================================================================
   1. Design System Tokens (CSS Custom Properties)
   ========================================================================== */
:root {
    --agency-primary: #eb3b8f;
    --agency-primary-hover: #d81b60;
    --agency-secondary: #0088cc;
    --agency-accent: #2cb742;
    --agency-surface: #ffffff;
    --agency-surface-card: #ffffff;
    --agency-surface-elevated: #f8f9fa;
    --agency-surface-border: #e9ecef;
    --agency-surface-border-hover: #eb3b8f;
    --agency-text: #212529;
    --agency-text-muted: #6c757d;
    --agency-text-dim: #adb5bd;
    --agency-font-sans: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --agency-radius-sm: 6px;
    --agency-radius-md: 10px;
    --agency-radius-lg: 16px;
    --agency-radius-full: 9999px;
    --agency-shadow-card: 0 4px 14px rgba(0, 0, 0, 0.06);
    --agency-shadow-glow: 0 6px 20px rgba(235, 59, 143, 0.25);
    --agency-container-max: 1280px;
    --agency-transition: all 0.2s ease-in-out;
}

/* ==========================================================================
   2. Modern Reset & Base Elements
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

body {
    background-color: var(--agency-surface);
    color: var(--agency-text);
    font-family: var(--agency-font-sans);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--agency-primary);
    text-decoration: none;
    transition: var(--agency-transition);
}

a:hover, a:focus-visible {
    color: var(--agency-primary-hover);
}

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

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

/* Container */
.agency-container {
    width: 100%;
    max-width: var(--agency-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Main Site Content Wrapper */
.agency-site-main {
    flex: 1 0 auto;
    width: 100%;
}

.agency-archive-wrapper {
    padding: 36px 0 60px;
}

@media (max-width: 768px) {
    .agency-archive-wrapper {
        padding: 24px 0 40px;
    }
}

/* ==========================================================================
   3. Cross-Browser Custom Scrollbars & Progressive Enhancement Fallbacks
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Fallback for browsers lacking backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
    .agency-site-header,
    .agency-mobile-bottom-bar,
    .agency-mobile-drawer,
    .agency-age-gate-modal {
        background-color: #ffffff !important;
    }
}
