/* ========================================
   FOUNDATION.CSS
   Base styles, variables, resets, typography
   ======================================== */

/* CSS Variables */
:root {
    --background: #f2f2f2;
    --color: #171717;
    --primary-orange: #f07c00;
    --primary-orange-hover: #d06900;
    --font-main: "termina", sans-serif;
    --gray-light: #E5E5E5;
    --gray-medium: #9ca3af;
    --gray-dark: #4b5563;
    --white: #ffffff;
    --black: #000000;
}

/* CSS Reset & Base Styles */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

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

body {
    color: var(--color);
    background: var(--background);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-style: normal;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    line-height: 1.5;
}

/* Prevent scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

h1 {
    font-size: 2.5em;
    font-weight: 500;
    letter-spacing: 0.025em;
}

h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.025em;
}

h3 {
    font-size: 2em;
    font-weight: 700;
}

h4 {
    font-size: 0.75rem;
    font-weight: 700;
}

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

a {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 1920px) {
    h1 {
        font-size: clamp(1.5rem, 1.0529rem + 1.9872vw, 3.4375rem);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
    background: black;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hidden-mobile {
    display: none;
}

@media(min-width: 1024px) {
    .hidden-mobile {
        display: flex;
    }

    .hidden-desktop {
        display: none;
    }
}

/* Widescreen Scaling */
@media (min-width: 1441px) {
    html {
        zoom: 1.1;
        /* Slight scale for ~1600px */
    }
}

@media (min-width: 1920px) {
    html {
        zoom: 1.33;
        /* 1920 / 1440 = 1.33 */
    }
}

@media (min-width: 2560px) {
    html {
        zoom: 1.77;
        /* 2560 / 1440 = 1.77 */
    }
}