@import 'components/utilities.css';
@import 'components/buttons.css';
@import 'components/header.css';
@import 'components/hero.css';
@import 'components/footer.css';
@import 'components/sidebar.css';
@import 'components/features.css';
@import 'components/forms.css';
@import 'components/about.css';
@import 'components/pricing.css';
@import 'components/services.css';
@import 'components/quote.css';

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
    --primary: #fd6921;
    --primary-rgb: 253, 105, 33;
    --secondary: #1e2326;
    --secondary-rgb: 30, 35, 38;
    --text: #ffffff;
    --text-muted: #d1d5db;
    --bg: #0f1214;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --font-main: 'Outfit', sans-serif;
    --gradient: linear-gradient(135deg, #fd6921 0%, #ff8c52 100%);

    /* Standardized Spacing Tokens */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;

    /* Expanded Breakpoint System */
    --bp-foldable: 320px;
    /* Galaxy Fold (folded), Watch */
    --bp-mini: 375px;
    /* iPhone SE, Mini Smartphones */
    --bp-sm: 576px;
    /* Landscape Phones */
    --bp-md: 768px;
    /* Tablets */
    --bp-lg: 992px;
    /* Laptops */
    --bp-xl: 1200px;
    /* Desktops */
    --bp-xxl: 1400px;
    /* Large Screens / 4K */
}

/* =========================================
   CORE RESET & BASE
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Core Web Vitals Optimization */
.mega-footer,
#services,
.markets {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Fluid Typography: Scales seamlessly from Mini to XXL */
h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
}

h2 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
}

h3 {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
}

h4 {
    font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
}

h5 {
    font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem);
}

h6 {
    font-size: clamp(1rem, 1vw + 0.5rem, 1.25rem);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
}

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

ul {
    list-style: none;
}

/* Responsive Container */
.container {
    max-width: 1400px;
    /* XXL Ready */
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Device Specific Tweaks --- */

/* 1. Foldable & Mini Devices (0px - 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 16px;
        /* Reduce padding to give content more room */
    }

    html {
        font-size: 14px;
        /* Slightly reduce base font size */
    }
}

/* 2. Foldable Posture (Dual Screen Detection) */
@media (horizontal-viewport-segments: 2) {
    body {
        /* Ensure content doesn't get hidden in the hinge */
        padding-left: env(viewport-segment-left 0 0 width);
        padding-right: calc(100vw - env(viewport-segment-right 0 0 left));
    }
}
/* Niche Page Hero Text constraint */
.hero-content p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
