/* ================================================================= */
/* UTILITIES.CSS */
/* Global variables, resets, and utility helpers. */
/* ================================================================= */

/* ================================================================= */
/* 1. BRAND VARIABLES */
/* ================================================================= */

:root {

    /* --- COLORS --- */
    /* Backgrounds */
    --color-bg-primary: #131313;
    /* Main site background (Near Black) */
    --color-bg-secondary: #252525;
    /* Alternate sections, cards (Dark Gray) */

    /* Text */
    --color-text-primary: #EAEAEA;
    /* Main body text, headings (Light Gray) */
    --color-text-secondary: #b3b3b3;
    /* Sub-text, metadata, muted elements (Medium Gray) */

    /* Accents & Brand Colors */
    --color-accent-primary: #368edb;
    /* Links, interactive highlights (Brand Blue) */
    --color-accent-highlight: #1C2A47;
    /* Primary CTAs, key elements (Dark Navy) */
    --color-brand-brown: #2b1d13;
    /* Secondary brand color (Rich Leather Brown) */


    /* --- TYPOGRAPHY --- */
    /* Families */
    --font-family-header: 'Inter Tight', sans-serif;
    --font-family-body: 'Inter Tight', sans-serif;

    /* Base Size & Weights */
    --font-size-xs: 0.85rem;
    --font-size-sm: 1.0rem;
    --font-size-base: 1.1rem;
    /* Scaled down from 1.2rem */
    --font-size-lg: 1.25rem;
    --font-weight-regular: 400;
    --font-weight-bold: 700;


    /* --- SIZING & SPACING --- */
    /* Spacing Scale */
    --spacing-unit: 1rem;
    /* Base unit (16px) */
    --spacing-xs: calc(var(--spacing-unit) * 0.5);
    /* Extra Small (8px) */
    --spacing-sm: var(--spacing-unit);
    /* Small (16px) */
    --spacing-md: calc(var(--spacing-unit) * 2);
    /* Medium (32px) */
    --spacing-lg: calc(var(--spacing-unit) * 4);
    /* Large (64px) */
    --spacing-xl: calc(var(--spacing-unit) * 6);
    /* Extra Large (96px) */

    /* Borders */
    --border-radius-base: 0;
    /* Standard corners (buttons, inputs) */
    --border-radius-img: 0px;
    /* Larger radius for images */

}

/* ================================================================= */
/* 2. BASE RESET & TYPOGRAPHY */
/* ================================================================= */

html,
body {
    overflow-x: clip;
    /* Safer than hidden for sticky positioning */
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-size: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    font-weight: var(--font-weight-regular);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height, 84px);
    /* Offset for fixed header, defaults to 84px if JS fails */
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-header);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Main Layout Container */
.main-container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    position: relative;
    /* Ensure containment */
}

@media (max-width: 1024px) {
    .main-container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
}

/* ================================================================= */
/* 3. UTILITY HELPERS */
/* ================================================================= */

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

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

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

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

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

.align-start {
    align-items: flex-start !important;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-xl {
    margin-top: var(--spacing-xl) !important;
}

.mt-md {
    margin-top: var(--spacing-md) !important;
}

.mb-md {
    margin-bottom: var(--spacing-md) !important;
}

.mb-lg {
    margin-bottom: var(--spacing-lg) !important;
}

/* Vertical Padding Scale */
.py-sm {
    padding-top: var(--spacing-sm) !important;
    padding-bottom: var(--spacing-sm) !important;
}

.py-md {
    padding-top: var(--spacing-md) !important;
    padding-bottom: var(--spacing-md) !important;
}

.py-lg {
    padding-top: var(--spacing-lg) !important;
    padding-bottom: var(--spacing-lg) !important;
}

.py-xl {
    padding-top: var(--spacing-xl) !important;
    padding-bottom: var(--spacing-xl) !important;
}

/* Single Direction Padding */
.pt-0 {
    padding-top: 0 !important;
}

.pt-sm {
    padding-top: var(--spacing-sm) !important;
}

.pt-md {
    padding-top: var(--spacing-md) !important;
}

.pt-lg {
    padding-top: var(--spacing-lg) !important;
}

.pt-xl {
    padding-top: var(--spacing-xl) !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pb-sm {
    padding-bottom: var(--spacing-sm) !important;
}

.pb-md {
    padding-bottom: var(--spacing-md) !important;
}

.pb-lg {
    padding-bottom: var(--spacing-lg) !important;
}

.pb-xl {
    padding-bottom: var(--spacing-xl) !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.max-w-900 {
    max-width: 900px !important;
    margin-left: auto;
    margin-right: auto;
}

.max-w-700 {
    max-width: 700px !important;
    margin-left: auto;
    margin-right: auto;
}

.max-w-400 {
    max-width: 400px !important;
    margin-left: auto;
    margin-right: auto;
}

.w-full {
    width: 100% !important;
}

.h-auto {
    height: auto !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.letter-spacing-1 {
    letter-spacing: 1px !important;
}

.font-1-5 {
    font-size: 1.5rem !important;
}

.font-sm {
    font-size: 0.8em !important;
}


/* --- ADDED UTILITIES (Retained) --- */
.btn-block {
    width: 100%;
    display: block;
}

.border-top-subtle {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.border-bottom-subtle {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Text Wrapping */
.u-nowrap {
    white-space: nowrap;
}
