/* ===================================
   BASE STYLES
   Reset, Variables, Typography
   =================================== */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ========== TYPOGRAPHY SCALE ========== */
    --font-xs: 0.75rem;
    /* 12px */
    --font-sm: 0.875rem;
    /* 14px */
    --font-base: 1rem;
    /* 16px */
    --font-md: 1.125rem;
    /* 18px */
    --font-lg: 1.25rem;
    /* 20px */
    --font-xl: 1.5rem;
    /* 24px */
    --font-2xl: 1.875rem;
    /* 30px */
    --font-3xl: 2.25rem;
    /* 36px */
    --font-4xl: 2.625rem;
    /* 42px */
    --font-5xl: 3.75rem;
    /* 60px */

    /* ========== SPACING SCALE (8px base) ========== */
    --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-7: 2rem;
    /* 32px */
    --space-8: 2.5rem;
    /* 40px */
    --space-9: 3rem;
    /* 48px */
    --space-10: 4rem;
    /* 64px */
    --space-11: 5rem;
    /* 80px */
    --space-12: 6rem;
    /* 96px */

    /* ========== COLOR PALETTE ========== */
    /* Primary Brand Colors */
    --primary: #E94333;
    --primary-dark: #C7382B;
    --primary-light: #FF6B5B;
    --primary-subtle: #FFF5F4;

    /* Legacy aliases (for compatibility) */
    --primary-color: var(--primary);
    --accent-color: var(--primary);

    /* Neutral Gray Scale */
    --gray-900: #1A1818;
    --gray-800: #2D2A2A;
    --gray-700: #484444;
    --gray-600: #5C5858;
    --gray-500: #7A7575;
    --gray-400: #9E9999;
    --gray-300: #C4C0C0;
    --gray-200: #E8E5E5;
    --gray-100: #F5F3F3;
    --gray-50: #FAF9F9;

    /* Semantic Text Colors */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --text-white: #FFFFFF;

    /* Legacy aliases */
    --text-dark: var(--gray-900);
    --text-light: var(--gray-600);
    --text-body: var(--gray-600);
    --secondary-color: var(--gray-900);
    --secondary-light: var(--gray-800);

    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: var(--gray-100);
    --bg-dark: var(--gray-900);

    /* Legacy aliases */
    --bg-white: #FFFFFF;
    --bg-light: var(--gray-100);
    --bg-gray-light: var(--gray-100);
    --bg-gray: var(--gray-400);

    /* Border Colors */
    --border-color: var(--gray-200);
    --border-light: var(--gray-100);

    /* ========== SHADOWS (Elevation) ========== */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

    /* ========== TRANSITIONS ========== */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 250ms var(--ease-out);
    --transition-slow: 400ms var(--ease-out);

    /* Legacy alias */
    --transition: var(--transition-base);

    /* ========== BORDER RADIUS ========== */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Legacy aliases */
    --border-radius: var(--radius-md);
    --border-radius-lg: var(--radius-lg);
}

/* Font Families */
:root {
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Caveat', cursive;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-base);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    padding-top: 110px;
    /* Space for fixed top-bar (41px) + header (80px) + header padding (16px) */
}

.mobile_sticky {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-top: 127px;
        /* top-bar (41px) + smaller header (70px) + padding (16px) */
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 86px;
        /* top-bar (37px) + smaller header (70px) + padding (16px) */
    }
    .hero-content.container {
        padding: 0 0 40px;
    }
    .mobile_sticky {
        display: block;
        position: fixed;
        bottom: 0;
        width: 100%;
        background: #1a1818;
        padding: 16px 0;
        text-align: center;
        z-index: 9;
    }
    .mobile_sticky a.btn {
        padding: 12px;
        font-size: 12px;
        margin: 0 6px;
    }
    .scroll-to-top {
        bottom: 62px !important;
        right: 12px !important;
    }
}

/* Prevent scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Typography Base Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

h1 {
    font-size: var(--font-5xl);
    font-weight: 700;
}

h2 {
    font-size: var(--font-4xl);
}

h3 {
    font-size: var(--font-xl);
}

h4 {
    font-size: var(--font-lg);
    font-family: 'Roboto', sans-serif;
}

h5 {
    font-size: var(--font-md);
    font-family: 'Roboto', sans-serif;
}

h6 {
    font-size: var(--font-base);
    font-family: 'Roboto', sans-serif;
}

/* Only specific elements get uppercase */
.hero-badge,
.section-badge,
.service-link,
.nav-link,
.btn {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: var(--font-4xl);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

p a {
    color: var(--primary);
}