/* ==============================================================================
   GentsGallery - Design Tokens & Global Root CSS
   Modern, responsive, framework-free architecture
   ============================================================================== */

:root {
    /* Color Palette - Clean, Professional White / Black / Orange System */
    --color-bg: #ffffff;
    /* Pure white background */
    --color-surface: #ffffff;
    /* Pure white surface */
    --color-surface-hover: #fafafa;
    --color-border: #e5e7eb;
    /* Subtle neutral border */
    --color-border-dark: #d1d5db;

    --color-text-main: #0a0a0a;
    /* Sharp luxury black */
    --color-text-muted: #52525b;
    /* Refined neutral zinc */
    --color-text-light: #9ca3af;
    --color-text-inverse: #ffffff;

    /* Brand Colors */
    --color-primary: #0a0a0a;
    /* Solid luxury black for buttons & elements */
    --color-primary-hover: #262626;
    /* Charcoal hover state */
    --color-accent: #FC470F;
    /* Professional orange for small icons & links */
    --color-accent-hover: #c2410c;
    /* Burnt orange hover state */
    --color-accent-light: #fff7ed;
    /* Soft warm orange tint for icon backdrops & badges */
    --color-accent-border: #fed7aa;
    /* Delicate orange border */
    --color-gold: #ea4b0c;
    /* Harmonized with the orange accent system */

    /* Feedback Colors - Understated & Professional */
    --color-success: #059669;
    --color-success-bg: #f0fdf4;
    --color-warning: #d97706;
    --color-warning-bg: #fffbeb;
    --color-danger: #dc2626;
    --color-danger-bg: #fef2f2;
    --color-info: #0f172a;
    --color-info-bg: #f8fafc;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Playfair Display", Georgia, serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Spacing Scale */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;

    /* Layout Constraints */
    --container-max: 1280px;
    --header-height: 70px;
    --sidebar-width: 260px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    max-width: 100vw;
    background-color: #040810;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    max-width: 100vw;
}

img,
svg,
picture {
    display: block;
    max-width: 100%;
}

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

a:hover {
    color: var(--color-accent);
}

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

button {
    cursor: pointer;
    background: none;
    border: none;
}

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

@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (min-width: 768px) {
    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

/* Mobile Touch & Form Usability: Prevent iOS Safari Auto-Zoom on Inputs */
@media (max-width: 768px) {

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Screen-reader & Semantic SEO Accessibility Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
