/* css/base.css */

/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --gray: #333333;
    --light-gray: #888888;
    --white: #ffffff;
    --accent: #ffb800;

    /* Typography */
    --font-heading: 'Rubik', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;  /* 8px */
    --space-sm: 0.9rem;   /* ~14px */
    --space-md: 2rem;    /* 32px */
    --space-lg: 4rem;    /* 64px */
    --space-xl: 8rem;    /* 128px */

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;

    /* Z-indices */
    --z-index-background: -1;
    --z-index-default: 1;
    --z-index-overlay: 10;
    --z-index-scrolled-nav: 100;
    --z-index-mobile-nav: 101;
    --z-index-menu-toggle: 102;
    --z-index-loader: 9999;

    /* Assets & Shared Values */
    --footer-bg-motif: url('../images/logo_bg.webp');
    --client-logo-height: 50px;

    @media (min-width: 1400px) {
        --client-logo-height: 60px;
    }
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; /* Base font size */
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Adjust scroll target position */
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body.menu-open {
    overflow-y: hidden; /* Prevent scrolling when mobile menu is open */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    pointer-events: none; /* Prevents interaction with image */
    user-select: none;
    -webkit-user-drag: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    padding: 0;
}

iframe {
    border: none;
}

/* ===== BASE LAYOUT & TYPOGRAPHY ===== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

section {
    padding: var(--space-lg) 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Coolvetica', var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

/* Responsive Base Typography */
h1 { 
    font-size: clamp(2.2rem, 7vw, 4.5rem); 
}
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p {
    margin-bottom: var(--space-sm);
    max-width: 70ch;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

/* Accessibility Helper */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ===== BASE MEDIA QUERIES ===== */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 767px) {
     section {
         padding: var(--space-md) 0; /* Reduce section padding on mobile */
     }
    h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
    h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
    p { font-size: 0.95rem; }
}