/* CSS RESET */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* outline: 1px solid orange; */
}

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

input,
select,
textarea {
    border: none;
    outline: none;
    background-color: transparent;
    color: inherit;
}

/* ol, */
ul {
    list-style: none;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* CSS RESET END */

/* VARIABLES */

:root {
    --main-color: hsl(241 51% 37%);
    --main-middle: hsl(241 51% 25%);
    --main-dark: hsl(241 51% 15%);

    --bg-dark: hsl(0 0% 90%);
    --bg-middle: hsl(0 0% 95%);
    --bg-light: hsl(0 0% 100%);

    --text-main: hsl(0 0% 5%);
    --text-secondary: hsl(0 0% 30%);

    --text-disabled: hsl(0 0% 60%);

    --text-dark-bg-main: hsl(0 0% 95%);
    --text-dark-bg-secondary: hsl(0 0% 70%);

    --modal-bg: hsl(0 0% 5% / 0.6);

    --main-font: "Raleway", sans-serif;

    --listicon: url("/assets/listicon.webp");
    --listicon-black: url("/assets/listicon_black.webp");

    --dropdown-icon: url("/assets/arrow-down.svg");

    --header-height: 70px;
}

html[theme="dark"] {
    --main-color: hsl(136, 38%, 73%);
    --main-middle: hsl(136, 38%, 45%);
    --main-dark: hsl(136, 38%, 30%);

    --bg-dark: hsl(330 1% 5%);
    --bg-middle: hsl(330 1% 15%);
    --bg-light: hsl(330, 1%, 30%);

    --text-main: hsl(0 0% 95%);
    --text-secondary: hsl(0 0% 70%);

    --text-disabled: hsl(330, 1%, 50%);

    --listicon: url("/assets/listicon_dark.webp");
    --listicon-black: url("/assets/listicon_dark.webp");
}

/* VARIABLES END */

/* MAIN SECTION */

body {
    min-height: 100vh;
    width: 100vw;
    background-color: var(--bg-light);
    font-family: var(--main-font);
    overflow-x: hidden;
}

/* HEADER */

header {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-light);
}

.header-wrapper {
    position: relative;
    max-width: 1300px;
    width: 100%;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    height: var(--header-height);
    z-index: 10;
}

.logo-ct {
    height: 100%;
}

.logo {
    height: 100%;
}

.header-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.theme-switch {
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.theme-icon {
    fill: var(--main-color);
    height: 2rem;
}

.nav-header-wrapper,
.contact-header-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.contact-header-container a,
.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-inline: 0.5rem;
    border-right: 1px solid var(--bg-dark);
    color: var(--text-main);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item {
    font-weight: 600;
}

.contact-header-container a:hover,
.nav-item:hover {
    background-color: var(--bg-dark);
}

.mail-logo,
.phone-logo {
    height: 2rem;
    width: 2rem;
    fill: var(--main-color);
    transition: all 0.3s ease;
}

.contact-header-container a:hover .mail-logo,
.contact-header-container a:hover .phone-logo {
    fill: var(--main-dark);
}

.nav-items-container {
    height: 100%;
    display: flex;
    align-items: center;
}

/* SOON TEXT */

.nav-item.soon,
.hamburger-item.soon {
    position: relative;
    color: var(--text-disabled);
    overflow: hidden;
}

.nav-item.soon::before,
.hamburger-item.soon::before {
    position: absolute;
    content: "Hamarosan!";
    color: var(--text-dark-bg-main);
    background-color: var(--main-color);
    font-size: 0.7rem;
}

.nav-item.soon::before {
    top: 0.2rem;
    left: -2rem;
    padding: 0.2rem 2rem;
    transform: rotate(-20deg);
}

.hamburger-item.soon::before {
    top: 0;
    left: 110%;
    padding: 0.2rem 0.5rem;
    border-radius: 50vw;
}

/* HAMBURGER MENU */

.hamburger-icon,
.hamburger-menu {
    display: none;
}

.hamburger-icon {
    position: relative;
    margin-inline: 1rem;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    content: "";
    height: 3px;
    width: 25px;
    background-color: var(--main-color);
    border-radius: 50vw;
    transition: all 0.3s ease;
}

.hamburger-icon::after,
.hamburger-icon::before {
    position: absolute;
    left: 0;
}

.hamburger-icon::before {
    top: -6px;
}

.hamburger-icon::after {
    top: 6px;
}

.hamburger-icon.active {
    background-color: var(--bg-light);
}

.hamburger-icon.active::before {
    top: 0;
    transform: rotate(-45deg);
}

.hamburger-icon.active::after {
    top: 0;
    transform: rotate(45deg);
}

.hamburger-menu {
    position: absolute;
    top: 100%;
    right: 0;
    height: 0;
    width: 100%;
    justify-content: flex-end;
    background-color: var(--modal-bg);
    color: var(--text-main);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 8;
}

.hamburger-menu.active {
    height: 18rem;
}

.hamburger-items-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-block: 2rem;
    background-color: var(--bg-light);
}

.hamburger-item {
    width: 100%;
    text-align: center;
    font-weight: 600;
}

.hamburger-item.has-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hamburger-item .dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-weight: 400;
}

.hamburger-item .dropdown-menu a {
    line-height: normal;
}

.hamburger-item .dropdown-menu a:hover {
    background-color: var(--bg-light);
}

/* HAMBURGER MENU END */

/* DROPDOWN MENU */

.nav-item.has-dropdown {
    position: relative;
    fill: var(--main-color);
}

.nav-item.has-dropdown::after {
    content: "";
    /* background-image: var(--dropdown-icon);
    background-position: center;
    background-size: contain; */
    background-color: var(--main-color);
    mask-image: var(--dropdown-icon);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    height: 2rem;
    width: 2rem;
}

.nav-item.has-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    height: 0px;
    width: 150%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-light);
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    height: 7.5rem;
}

.dropdown-menu a {
    line-height: 2.5;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--bg-dark);
}

/* DROPDOWN MENU END */

/* HEADER END */

/* MAIN SECTIONS */

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

/* HERO SECTION */

.hero-wrapper {
    margin-top: calc(var(--header-height) * -1);
    width: 100%;
    background: url("/assets/network1.jpg");
    background-position: top;
    background-repeat: no-repeat;
    height: 600px;
}

.title-wrapper {
    max-width: 1300px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    margin-inline: auto;
    color: var(--text-dark-bg-main);
}

/* .title-wrapper * {
    max-width: 50%;
} */

.title-wrapper h1 {
    font-family: "Audiowide", sans-serif;
    font-size: 4rem;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1rem;
}

.title-wrapper h2 {
    font-size: 2rem;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 3px;
}

.title-wrapper p {
    font-size: 1.2rem;
}

/* HERO SECTION END */

.section-wrapper {
    width: min(90%, 1300px);
    display: flex;
    gap: 1rem;
    margin-inline: auto;
    padding-block: 2rem;
}

.section-wrapper.mirrored {
    flex-direction: row-reverse;
}

.section-text-container,
.section-img-container {
    flex: 1;
    padding-block: 2rem;
    overflow: hidden;
}

.section-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section-text-container,
.section-inputs-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-title {
    position: relative;
    font-size: 2rem;
    cursor: default;
    margin-left: 3rem;
    color: var(--main-color);
}

.section-title::before {
    background-image: var(--listicon);
    background-size: contain;
    background-repeat: no-repeat;
    content: "";
    position: absolute;
    right: calc(100% + 1rem);
    height: 100%;
    width: 2rem;
}

.section-description {
    font-size: 1.2rem;
    line-height: 1.4;
}

.section-ul,
.section-ol {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 2rem;
    font-size: 1.1rem;
}

.section-ul li {
    position: relative;
}

.section-ul li::before {
    position: absolute;
    right: calc(100% + 0.5rem);
    content: "";
    height: 1rem;
    width: 1rem;
    background-image: var(--listicon);
    background-size: cover;
}

.section-wrapper strong {
    color: var(--main-color);
}

.contact-phone,
.contact-mail,
.contact-location {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding-block: 1rem;
    transition: all 0.3s ease;
}

.contact-phone-logo,
.contact-mail-logo,
.contact-location-logo {
    fill: var(--main-color);
    height: 2rem;
    width: 2rem;
    transition: all 0.3s ease;
}

.phone-text,
.mail-text,
.location-text {
    font-size: 2rem;
    transition: all 0.3s ease;
}

.contact-phone:hover .phone-text,
.contact-mail:hover .mail-text {
    color: var(--text-secondary);
}

.contact-phone:hover .contact-phone-logo,
.contact-mail:hover .contact-mail-logo {
    fill: var(--main-middle);
}

/* REQUEST BTN */

.request-btn {
    margin-top: 2rem;
    border-radius: 50vw;
    padding: 0.5rem 3rem;
    background-color: var(--main-color);
    color: var(--bg-light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.request-btn:hover {
    background-color: var(--main-middle);
}

/* REQUEST BTN END */

/* REQUEST INPUTS */

.section-inputs-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: max-content;
}

.input-group {
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    grid-column: span 1;
    grid-row: span 1;
}

.input-group:has(textarea),
.input-group.fullrow {
    grid-column: 1 / -1;
}

.input-group input {
    width: 100%;
    border-bottom: 2px solid var(--main-color);
    color: var(--main-color);
    font-size: 1.2rem;
    padding: 0 0.5rem;
}

.input-group:has(input) label {
    color: var(--main-color);
}

.input-group textarea {
    border-bottom: 2px solid var(--main-dark);
    padding: 0.4rem;
    font-size: 1.2rem;
    width: 100%;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--main-dark);
}

.input-group textarea {
    border: 2px solid var(--main-color);
    min-height: 6rem;
    field-sizing: content;
}

.submit-btn {
    grid-column: 1 / -1;
    cursor: pointer;
    padding: 0.5rem 2rem;
    background-color: var(--main-color);
    color: var(--bg-light);
    font-size: 1.2rem;
    border: none;
    border-radius: 100vw;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--main-middle);
}

/* FLOATING LABELS */

.input-group.floating-label input {
    padding: 1rem 0.5rem 0;
}

.input-group.floating-label:has(input) label {
    position: absolute;
    top: 1.2rem;
    left: 0.5rem;
    transition: all 0.3s ease;
}

.input-group.floating-label:has(input:focus) label,
.input-group.floating-label:has(input:not(:placeholder-shown)) label {
    top: 0;
    font-size: 0.8rem;
}

/* REQUEST INPUTS END */

/* MAIN SECTIONS END */

/* FOOTER */

footer {
    width: 100%;
    background-color: var(--main-dark);
    height: var(--header-height);
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: min(90%, 1300px);
    margin-inline: auto;
    color: var(--text-dark-bg-main);
}

.footer-right {
    display: flex;
    justify-content: space-between;
}

.footer-up-icon {
    height: 2rem;
    width: 2rem;
    fill: var(--text-dark-bg-main);
}

/* FOOTER END */

/* MEDIA QUERIES */

@media (max-width: 1300px) {
    /* HEADER */
    .logo-ct,
    .header-container {
        margin-inline: 0.5rem;
    }

    .header-container {
        flex-direction: row;
    }

    .nav-header-wrapper {
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .nav-header-wrapper:hover {
        background-color: var(--bg-dark);
    }

    .nav-header-wrapper:hover .hamburger-icon:not(.active),
    .nav-header-wrapper:hover .hamburger-icon::before,
    .nav-header-wrapper:hover .hamburger-icon::after {
        background-color: var(--main-dark);
    }

    .nav-header-wrapper:hover .hamburger-icon {
        background-color: var(--bg-dark);
    }

    .nav-items-container {
        display: none;
    }

    .hamburger-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .hamburger-menu {
        display: flex;
    }

    /* HERO SECTION */
    .title-wrapper h1 {
        font-size: 2rem;
    }

    .title-wrapper h2 {
        font-size: 1.2rem;
    }

    .section-wrapper,
    .section-wrapper.mirrored {
        width: 90%;
        margin-inline: auto;
    }
}

@media (max-width: 768px) {
    /* HEADER */

    /* HERO SECTION */
    .title-wrapper h1 {
        letter-spacing: 0.2rem;
    }

    .contact-header-container {
        display: none;
    }

    /* SECTIONS */
    .section-wrapper,
    .section-wrapper.mirrored {
        width: 90%;
        margin-inline: auto;
        flex-direction: column;
    }

    .section-inputs-container {
        grid-template-columns: 1fr;
    }

    /* FOOTER */
}

@media (max-width: 380px) {
    .title-wrapper h1 {
        font-size: 1.5rem;
    }

    .title-wrapper h2 {
        font-size: 1rem;
    }
}
