/* =========================
   FONT FACE
========================= */

@font-face {
    font-family: "Prompt";
    src: url("../fonts/prompt/Prompt-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Prompt";
    src: url("../fonts/prompt/Prompt-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Prompt";
    src: url("../fonts/prompt/Prompt-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Prompt";
    src: url("../fonts/prompt/Prompt-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =========================
   ROOT VARIABLES
========================= */

:root {

    /* Colors */
    --color-primary: #0c186a;
    --color-primary-hover: #09134f;
    --color-text: #222222;
    --color-text-light: #666666;
    --color-text-muted: #888888;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-background: #ffffff;
    --color-background-light: #f7f8fa;
    --color-border: #e8e8e8;


    /* Font */
    --font-primary: "Prompt", sans-serif;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;


    /* Font Size */
    --font-xs: 12px;
    --font-sm: 14px;
    --font-base: 16px;
    --font-lg: 18px;
    --font-xl: 20px;
    --font-h6: 16px;
    --font-h5: 18px;
    --font-h4: 20px;
    --font-h3: clamp(22px, 2vw, 28px);
    --font-h2: clamp(28px, 3vw, 40px);
    --font-h1: clamp(36px, 4vw, 56px);


    /* Container */
    --container-width: 1280px;
    --container-padding: 20px;


    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;


    /* Shadow */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.12);


    /* Transition */
    --transition: 0.2s ease;
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-base);
    font-weight: var(--font-regular);
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-background);
}


/* =========================
   MEDIA
========================= */

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


/* =========================
   LINKS
========================= */

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


/* =========================
   CONTAINER
========================= */

.container {
    width: min(var(--container-width),
            calc(100% - (var(--container-padding) * 2)));

    margin: 0 auto;
}


/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: var(--color-text);
}

h1 {
    font-size: var(--font-h1);
    font-weight: var(--font-semibold);
    line-height: 1.25;
}

h2 {
    font-size: var(--font-h2);
    font-weight: var(--font-semibold);
    line-height: 1.3;
}

h3 {
    font-size: var(--font-h3);
    font-weight: var(--font-semibold);
    line-height: 1.4;
}

h4 {
    font-size: var(--font-h4);
    font-weight: var(--font-medium);
    line-height: 1.5;
}

h5 {
    font-size: var(--font-h5);
    font-weight: var(--font-medium);
    line-height: 1.5;
}

h6 {
    font-size: var(--font-h6);
    font-weight: var(--font-medium);
    line-height: 1.5;
}

p {
    font-size: var(--font-base);
    font-weight: var(--font-regular);
    line-height: 1.7;
}

small {
    font-size: var(--font-xs);
}


/* =========================
   TEXT SIZE
========================= */

.text-xs {
    font-size: var(--font-xs);
}

.text-sm {
    font-size: var(--font-sm);
}

.text-base {
    font-size: var(--font-base);
}

.text-lg {
    font-size: var(--font-lg);
}

.text-xl {
    font-size: var(--font-xl);
}

.text-2xl {
    font-size: 24px;
}

.text-3xl {
    font-size: 30px;
}

.text-4xl {
    font-size: 36px;
}

.text-5xl {
    font-size: 48px;
}

.text-6xl {
    font-size: 60px;
}


/* =========================
   FONT WEIGHT
========================= */

.font-regular {
    font-weight: var(--font-regular);
}

.font-medium {
    font-weight: var(--font-medium);
}

.font-semibold {
    font-weight: var(--font-semibold);
}

.font-bold {
    font-weight: var(--font-bold);
}


/* =========================================================
   GLOBAL FADE UP ANIMATION
========================================================= */

.fade-up {
    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity .3s ease,
        transform .3s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

}

/* =========================================================
   GLOBAL RESPONSIVE SAFETY
========================================================= */
html,
body {
    width: 100%;
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

main,
section,
article,
div {
    min-width: 0;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

@media (max-width: 900px) {
    :root {
        --container-padding: 16px;
    }

    .container {
        width: calc(100% - 32px);
        max-width: 100%;
    }

    input,
    select,
    textarea,
    button {
        max-width: 100%;
    }

    table {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 12px;
    }

    .container {
        width: calc(100% - 24px);
    }
}
