/* =====================================================
   CORE RESPONSIVE ENGINE
   AVM NETWORKS LIMITED
   PURPOSE:
   - Global design system (CSS variables)
   - Typography & scaling
   - Containers & flex helpers
   - Responsive utilities
   ❌ NO background
   ❌ NO header
   ❌ NO footer
===================================================== */


/* =====================
   ROOT VARIABLES (DESIGN SYSTEM)
===================== */

:root {

    /* Brand Colors (used across components) */
    --primary: #0B3A6E;
    --secondary: #020617;
    --accent: #38BDF8;

    /* Text Colors */
    --text-light: #E5E7EB;
    --text-dark: #0F172A;

    /* Link helpers */
    --link-hover-color: #38BDF8;
}


/* =====================
   GLOBAL TYPOGRAPHY
===================== */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Ubuntu, sans-serif;
    line-height: 1.6;
}


/* =====================
   GLOBAL LINKS
===================== */

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--link-hover-color);
}


/* =====================
   CONTAINER SYSTEM
===================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 16px;
}


/* =====================
   FLEX HELPERS
===================== */

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}


/* =====================
   RESPONSIVE STACK HELPERS
===================== */

@media (max-width: 768px) {

    .stack-mobile {
        flex-direction: column !important;
        gap: 16px;
    }

    .full-width-mobile {
        width: 100% !important;
    }

    .text-center-mobile {
        text-align: center;
    }
}


/* =====================
   TYPOGRAPHY SCALE
===================== */

html {
    font-size: 14px;
}

@media (min-width: 481px) {
    html { font-size: 15px; }
}

@media (min-width: 769px) {
    html { font-size: 15.5px; }
}

@media (min-width: 1025px) {
    html { font-size: 16px; }
}

@media (min-width: 1441px) {
    html { font-size: 17px; }
}


/* =====================
   MEDIA SAFETY
===================== */

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}


/* =====================
   ACCESSIBILITY
===================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
