/* =========================================================
   SOFTRENIX TECHNOLOGIES
   GLOBAL STYLES
========================================================= */


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;

    scroll-behavior: smooth;

    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;

    width: 100%;
    max-width: 100%;

    background: var(--color-off-white);
    color: var(--color-navy);

    font-family: var(--font-body);
    font-weight: var(--font-weight-regular);

    line-height: 1.6;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* =========================================================
   BASIC ELEMENTS
========================================================= */

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
}

p {
    margin-bottom: 1rem;
}


/* =========================================================
   TEXT SELECTION
========================================================= */

::selection {
    background: var(--color-blue);
    color: var(--color-white);
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(
        100%,
        var(--container-width)
    );

    margin-inline: auto;

    padding-inline: var(--container-padding);
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);

    font-weight: var(--font-weight-semibold);

    line-height: 0.98;

    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(
        4rem,
        9vw,
        var(--text-8xl)
    );
}

h2 {
    font-size: clamp(
        3rem,
        6vw,
        var(--text-6xl)
    );
}

h3 {
    font-size: clamp(
        2rem,
        4vw,
        var(--text-4xl)
    );
}


/* =========================================================
   EYEBROW
========================================================= */

.eyebrow {
    display: flex;

    align-items: center;

    gap: 0.65rem;

    margin-bottom: 2rem;

    color: var(--color-gray-500);

    font-family: var(--font-body);

    font-size: var(--text-xs);

    font-weight: var(--font-weight-semibold);

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


/* =========================================================
   SECTION DESCRIPTION
========================================================= */

.section-description {
    max-width: 650px;

    margin-top: 2rem;

    color: var(--color-gray-600);

    font-size: clamp(
        1rem,
        1.5vw,
        1.25rem
    );

    line-height: 1.7;
}


/* =========================================================
   GENERIC SECTION
========================================================= */

section {
    position: relative;

    overflow: hidden;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {
    outline: 2px solid var(--color-blue);

    outline-offset: 4px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }
}