﻿:root {
    --primary-blue: #1d388c;
    --primary-blue-hover: #D2D6E9;
    --primary-green: #0db14b;
    --primary-gray: #898b8e;
    --light-primary: #0b1215;
    --light-secondary: #86868a;
    --light-tertiary: #bdbdbf;
    --light-quaternary: #d0d0d1;
    --dark-primary: #ffffff;
    --dark-secondary: #dedede;
    --dark-tertiary: #b3b3b3;
    --dark-quaternary: #a3a3a3;
    --base-gray: #f2f2f7;
    --shades-gray-50: #fcedee;
    --shades-gray-100: #f3f3f4;
    --shades-gray-200: #d0d1d2;
    --shades-gray-300: #898b8e;
    --shades-gray-400: #292a2b;
    --shades-gray-500: #0e0e0e;
    --shades-blue-100: #dce3f7;
    --shades-blue-200: #6b7db7;
    --shades-blue-300: #1d388c;
    --shades-blue-400: #192e71;
    --shades-blue-500: #132255;
    --shades-green-100: #baeece;
    --shades-green-200: #63cf8d;
    --shades-green-300: #0db14b;
    --shades-green-400: #0a8d3c;
    --shades-green-500: #076a2d;
    --shades-success-100: #ccf0e3;
    --shades-success-200: #80dab9;
    --shades-success-300: #2ac18a;
    --shades-success-400: #009760;
    --shades-success-500: #005b39;
    --shades-warning-100: #fbe6d4;
    --shades-warning-200: #f6c193;
    --shades-warning-300: #ef984a;
    --shades-warning-400: #c56d20;
    --shades-warning-500: #764113;
    --shades-error-100: #f8d0d4;
    --shades-error-200: #ed8a93;
    --shades-error-300: #e13c4b;
    --shades-error-400: #b61221;
    --shades-error-500: #6e0b14;
    --shades-link-100: #ccf3ff;
    --shades-link-200: #80d8ff;
    --shades-link-300: #2969ff;
    --shades-link-400: #1b46aa;
    --shades-link-500: #14347f;
    --equipment: #4e9b4c;
    --retail: #005b8e;
    --text-primary: #293032;

    --text-3xl: 96px;
    --text-3xl--line-height: 110px;
    --text-2xl: 56px;
    --text-2xl--line-height: 66px;
    --text-xl: 42px;
    --text-xl--line-height: 48px;
    --text-lg: 34px;
    --text-lg--line-height: 41px;
    --text-title: 28px;
    --text-title--line-height: 34px;
    --text-2title: 22px;
    --text-2title--line-height: 28px;
    --text-3title: 20px;
    --text-3title--line-height: 25px;
    --text-body: 17px;
    --text-body--line-height: 22px;
    --text-callout: 16px;
    --text-callout--line-height: 21px;
    --text-subheadline: 15px;
    --text-subheadline--line-height: 21px;
    --text-footnote: 13px;
    --text-footnote--line-height: 18px;
    --text-sm: 13px;
    --text-sm--line-height: 18px;
    --text-caption: 12px;
    --text-caption--line-height: 16px;
    --text-2caption: 11px;
    --text-2caption--line-height: 12px;

    --border-radius: 1rem;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text-primary);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0rem 1rem;
}

header {
    width: 100%;
    background-color: #ffffff;

    .navbar {
        width: 100%;
        height: 90px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 3rem;

        ul.nav-links {
            list-style-type: none;
            margin-block-start: 0px;
            margin-block-end: 0px;
            padding-inline-start: 0px;

            li {
                display: inline;
                margin-right: 1rem;

                a {
                    text-decoration: none;
                    font-size: var(--text-subheadline);
                    color: var(--primary-blue);
                    font-weight: normal;
                }
            }
        }
    }
}

.home-page {
    height: 100lvh;
    width: 100%;
    background-image: linear-gradient(to right, #221F56, #185780, #0F1233);
    display: flex;
    flex-direction: column;
    justify-content: space-around;

    main {
        height: 100%;
        display: flex;
        align-items: center;
        padding: 1rem;
    }

    h1 {
        color: #ffffff;
    }
}

footer {
    width: 100%;
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 2rem 0rem;

    >div {
        div:first-child {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.5rem;

            .socials {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 12px;

                a {
                    height: 40px;
                    width: 50px;
                    border-radius: 8px;
                    background-color: var(--shades-blue-400);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            }
        }

        h5 {
            margin-bottom: 0.5rem;
        }

        p {
            color: var(--dark-secondary);
            font-size: var(--text-callout);
            margin: 0px;

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

        .legal-section {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            margin-top: 2rem;
            color: var(--primary-blue);
            font-size: var(--text-callout);
            background-color: #ffffff;
            padding: 1.5rem;
            border-radius: var(--border-radius);

            p {
                color: inherit;
            }

            /*.legal-links a {
                color: inherit;
                text-decoration: none;
                margin-right: 1rem;

                &:last-child {
                    margin-right: 0rem;
                }
            }*/
        }
    }
}

/* Typography */
h1 {
    font-size: var(--text-xl);
    line-height: var(--text-xl--line-height);
    font-weight: bold;
    margin-block-start: 0;
    margin-block-end: 0;
}

h2 {
    font-size: var(--text-lg);
    line-height: var(--text-lg--line-height);
    font-weight: bold;
    margin-block-start: 0;
    margin-block-end: 0;
}

h3 {
    font-size: var(--text-title);
    line-height: var(--text-title--line-height);
    font-weight: bold;
    margin-block-start: 0;
    margin-block-end: 0;
}

h4 {
    font-size: var(--text-2title);
    line-height: var(--text-2title--line-height);
    font-weight: bold;
    margin-block-start: 0;
    margin-block-end: 0;
}

h5 {
    font-size: var(--text-3title);
    line-height: var(--text-3title--line-height);
    font-weight: bold;
    margin-block-start: 0;
    margin-block-end: 0;
}

h6 {
    font-size: var(--text-body);
    line-height: var(--text-body--line-height);
    font-weight: bold;
    margin-block-start: 0;
    margin-block-end: 0;
}

p {
    font-size: var(--text-body);
    line-height: var(--text-body--line-height);
}

/* Buttons */
.button {
    all: unset;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.button:disabled {
    background-color: #89898D;
    color: #414146;
    cursor: not-allowed;
}

.button:disabled:hover {
    background-color: #89898D;
}

.button-primary {
    background-color: var(--primary-blue);
    color: #ffffff;
}

.button-primary:hover {
    background-color: var(--shades-blue-400);
}

.button-secondary {
    background-color: #ffffff;
    color: var(--primary-blue);
}

.button-secondary-border {
    border: 1px solid var(--primary-blue);
}

.button-secondary:hover {
    background-color: var(--primary-blue-hover);
}

/* Hamburger menu styles */
.hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    margin-left: auto;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 24px;
    background: var(--primary-blue);
    margin-bottom: 6px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(-45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(45deg);
}

.nav-links {
    transition: right 0.3s, opacity 0.3s;
}

/* Modal Background Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal Box */
.modal {
    background: var(--base-gray);
    padding: 2rem;
    border-radius: 20px;
    max-width: 1200px;
    width: 80%;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Modal Show Animation */
.modal.show {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;

    p {
        font-size: var(--text-body);
        color: var(--light-secondary);
        margin-top:0.5rem;
        margin-bottom: 0;
    }
}

.modal-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;

    .button-container {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 2rem;
    }
}

form {
    .form-field-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .form-field {
        display: flex;
        flex-direction: column;

        label {
            margin-bottom: 0.5rem;
            font-size: var(--text-sm);
            color: var(--light-secondary);

            span {
                color: var(--shades-error-300);
            }
        }

        input,
        textarea {
            padding: 0.8rem 1rem;
            border: 1px solid var(--shades-gray-200);
            border-radius: 5px;
            font-size: var(--text-sm);
        }

        textarea {
            resize: vertical;
            min-height: 100px;
        }

        input::placeholder, textarea::placeholder {
            color: var(--light-tertiary);
        }

        input:focus, textarea:focus {
            outline: var(--primary-blue) solid 2px;
            outline-offset: 2px;
        }

        .error-message {
            color: var(--shades-error-300);
            font-size: var(--text-2caption);
            margin-top: 0.25rem;
            display: none;
        }
    }
}

.message {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-primary);
    margin-top:16px;
}

/* Medium (md): ≥768px */
@media (min-width: 768px) {

    /* Typography */
    h1 {
        font-size: var(--text-2xl);
        line-height: var(--text-2xl--line-height);
    }

    h2 {
        font-size: var(--text-xl);
        line-height: var(--text-xl--line-height);
    }

    h3 {
        font-size: var(--text-lg);
        line-height: var(--text-lg--line-height);
    }

    h4 {
        font-size: var(--text-title);
        line-height: var(--text-title--line-height);
    }

    h5 {
        font-size: var(--text-2title);
        line-height: var(--text-2title--line-height);
    }

    h6 {
        font-size: var(--text-3title);
        line-height: var(--text-3title--line-height);
    }

    .container {
        padding: 0rem 2rem;
    }
}

/* Styles for the humburger menu */
@media (max-width: 768px) {
    .navbar {
        position: relative;
    }

    .hamburger {
        display: flex;
        position: relative;
        right: -16px;
    }

    .hamburger.active {
        position: fixed;
        right: 0px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 0vh;
        background: #fff;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        padding-top: 90px;
    }

    .nav-links.open {
        height: 100vh;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        display: block;
        padding-left: 24px;
    }

    .navbar ul.nav-links {
        display: flex;
        flex-direction: column;

        a {
            text-decoration: none;
            font-size: var(--text-title) !important;
            color: var(--text-primary) !important;
            font-weight: bold !important;
        }
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background: none;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        padding: 0;
        gap: 0;
    }

    .nav-links li {
        display: inline;
    }
}