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

:root {
    --sm: 0.5rem;
    --md: 1rem;
    --lg: 1.5rem;
    --xl: 2rem;
    --xl2: 2.5rem;
    --xl3: 3rem;
    --xl4: 5rem;
    --section-vpadding: clamp(3rem, 10vh, 7rem);
    --heading-space-bottom: 3rem;
    --primary-color: #004962;
    --primary-hover: color-mix(in hsl, var(--primary-color) 70%, white);
    --primary-darker: color-mix(in hsl, var(--primary-color) 70%, black);
    --secondary-color: #ef171e;
    --soft-black: #2c2c2c;
    --soft-white: #f5f5f5;
}

@font-face {
    font-family: "GolosFont";
    src: url(/assets/GolosText-VariableFont_wght.ttf) format("truetype");
}

/* || General Styles */

body {
    font-family: "GolosFont", sans-serif;
    color: #2c2c2c;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    font-style: normal;
}

input,
textarea {
    width: 100%;
}

h1,
h2 {
    text-align: center;
}

h1 {
    font-size: clamp(2rem, 2.5vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: normal;
}

textarea {
    resize: none;
}

li {
    list-style-type: none;
}

.section {
    padding: var(--section-vpadding) var(--xl2);
}

.main-section-heading {
    padding: 0 var(--md) var(--heading-space-bottom);
}

.navbar {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--sm) var(--md);
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    a:first-of-type{
        margin-right: auto;
    }

    .social-links-container {
        display: flex;
        justify-content: end;
        gap: var(--md);
        flex-wrap: wrap;

        @media (width <= 1366px) {
            font-size: 1.3rem;
        }
    }

    .link {
        color: var(--primary-color);
        transition: color 0.2s;

        &:hover {
            color: var(--primary-hover);
        }

        &:active {
            color: var(--secondary-color);
        }
    }
}

.header-main {
    background: var(--primary-color) url(/assets/header-bg-min.jpg) center/cover;
    background-attachment: fixed;
    box-shadow: inset 0 0 0 100vmax rgba(0, 38, 49, 0.7);
    padding: var(--xl3);
    min-height: 600px;
    color: var(--soft-white);

    h1 {
        margin-bottom: var(--lg);
    }

    ul {
        padding: var(--xl4) 0;
        margin: 0 auto;
        font-size: 1.2rem;
        font-weight: bold;
        display: grid;
        justify-content: center;
        column-gap: var(--md);
        row-gap: var(--lg);
        grid-template-columns: min-content auto;
        
        li {
            display: contents;

            span.fa-solid {
                justify-self: center;
                align-self: center;
            }
        }
    }

    .btn-container {
        display: flex;
        gap: var(--lg);
        justify-content: center;
        flex-wrap: wrap;
    }

    @media only screen and (width <= 1366px) {
        background-attachment: scroll;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--xl);
    max-width: 1200px;
    margin: auto;

    .service {
        box-shadow: 0px 2px 4px 0 lightgray;
        padding: var(--lg);

        h3 {
            margin-bottom: var(--md);
            font-weight: bold;
            padding-bottom: 1rem;
            border-bottom: 5px solid;
            border-image: linear-gradient(to right, rgba(0, 24, 98, 1) 0%, rgba(0, 73, 98, 1) 35%, rgba(7, 179, 136, 1) 100%) 1;
            color: var(--primary-color);
        }
    }

    @media only screen and (width <= 700px) {
        grid-template-columns: 1fr;
    }
}

#steps {
    background-color: #f5f5f5;
    display: grid;
    place-items: center;

    ol {
        counter-reset: list;
        display: grid;
        gap: var(--xl3);

        h3 {
            color: var(--primary-color);
            margin-bottom: var(--sm);
        }

        li {
            box-shadow: 0px 2px 4px 0 lightgray;
            counter-increment: list;
            position: relative;

            &:before {
                content: counter(list);
                width: 4rem;
                height: 4rem;
                left: -1rem;
                top: -1rem;
                position: absolute;
                display: flex;
                border-radius: 2rem;
                justify-content: center;
                align-items: center;
                font-weight: bold;
                font-size: 1.7rem;
                color: white;
                background: var(--primary-color) linear-gradient(135deg, rgba(0, 24, 98, 1) 0%, rgba(0, 73, 98, 1) 35%, rgba(7, 179, 136, 1) 100%);
                @media (width <= 1366px) {
                    left: -0.5rem;
                }
            }

            .content {
                padding: 1rem 1rem 1rem 4rem;
            }
        }
    }
}

#contact {
    color: #f5f5f5;
    background: var(--primary-color) url(/assets/form-bg-min.jpg) center/cover no-repeat;
    box-shadow: inset 0 0 0 100vmax rgba(0, 38, 49, 0.6);

    .contact-socials-container {
        background: var(--primary-color) linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-color) 35%, var(--primary-darker) 100%);
        width: fit-content;
        margin: 0 auto var(--heading-space-bottom);
        padding: var(--lg);
        display: flex;
        gap: var(--xl);
        justify-content: center;
        flex-wrap: wrap;
        box-shadow: 0px 4px 6px 0 rgba(12, 12, 12, 0.7);
        border-radius: 1em;
    }

    .link {
        color: white;
        transition: all 0.3s ease;
        position: relative;
        top: 0;
        text-align: center;

        &:hover {
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
            top: -3px;
        }
    }

}

.form-container {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    background: var(--primary-color) linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-color) 35%, var(--primary-darker) 100%);
    padding: var(--xl3);
    box-shadow: 0px 4px 6px 0 rgba(12, 12, 12, 0.7);
    border-radius: 1em;

    .form-pair {
        margin-bottom: var(--xl2);
    }

    button {
        display: block;
        margin: 0 auto;
    }

    label {
        display: block;
        margin-bottom: var(--sm);
    }

    input,
    textarea {
        font-family: sans-serif;
        background: none;
        border: 2px solid transparent;
        padding: var(--sm) var(--md);
        background: rgba(0, 0, 0, 0.4);
        color: white;
        border-radius: 0.5em;
        transition: all 0.2s ease-in-out;

        &:focus {
            box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.6);
            outline: none;
            border-color: white;
        }
    }

    label,
    input,
    button,
    textarea {
        font-size: 1.3rem;
        line-height: 1.2;
    }

    .checkbox-pair {
        label {
            margin-bottom: 0;
            position: relative;
            padding-left: 3rem;
            cursor: pointer;
            user-select: none;
            font-size: 1rem;
            max-width: 70ch;

            /* Box */
            &::before {
                content: '';
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 2rem;
                height: 2rem;
                border: 2px solid transparent;
                background: rgba(0, 0, 0, 0.4);
                border-radius: 0.5em;
                transition: all 0.2s ease-in-out;
            }
            
            /* Checkmark */
            &::after {
                content: '';
                position: absolute;
                left: 0.7rem;
                top: 50%;
                width: 0.6rem;
                height: 1.4rem;
                border: solid #fff;
                border-width: 0 3px 3px 0;
                transform: translateY(-60%) rotate(45deg) scale(0);
                opacity: 0;
                transition: all 0.2s ease-in-out;
            }
        }

        &:hover label::before,
        input[type="checkbox"]:focus-visible + label::before {
            box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.6);
            border-color: white;
        }

        input[type="checkbox"] {
            position: absolute;
            opacity: 0;
            height: 0;
            width: 0;

            &:checked + label::after {
                transform: translateY(-60%) rotate(45deg) scale(1);
                opacity: 1;
            }
        }
    }
}

.btn {
    --btn-color: #006F95;
    background-color: var(--btn-color);
    color: white;
    border: none;
    padding: var(--md);
    display: inline-block;
    text-shadow: none;
    transition: background-color 0.1s;
    border-radius: 3em;
    font-weight: bold;

    &:hover {
        cursor: pointer;
        background-color: #008ab9;
    }
}

footer {
    text-align: center;
    background: var(--primary-color) linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-color) 35%, var(--primary-darker) 100%);
    padding: var(--sm);

    .link {
        color: white;
        transition: all 0.3s ease;

        &:hover {
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
        }
    }
}

@media (width <= 1366px) {
    .hide-mobile {
        display: none;
    }

    .section {
        padding: var(--section-vpadding) var(--md);
    }

    .form-container {
        padding: var(--lg);
    }
}

.address-field {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}