/*
Theme Name: United8
Theme URI: https://united8.eu
Description: Custom theme for United8 logistics company
Version: 1.0
Author: Ramunas Sakauskas
Text Domain: united8
*/

:root {
    --primary-navy: #14213D;
    --text-dark: #333333;
}

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

html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('assets/images/hexagon-bg.png');
    background-size: 1700px auto;
    background-position: center;
    opacity: 1;
}


body>ul:not(.desktop-menu):not(.mobile-menu) {
    display: none !important;
}

/* Header */
.site-header {
    padding: 40px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Desktop nav */
.desktop-menu {
    display: block;
}

.desktop-menu ul {
    display: flex;
    list-style: none;
    gap: 60px;
    margin: 0;
    padding: 0;
}

.desktop-menu a {
    color: var(--primary-navy);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.7;
    padding: 40px 0;
}

.desktop-menu .current-menu-item a {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Mobile menu button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    margin-right: -15px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-navy);
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    padding: 80px 20px 20px;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.mobile-menu li {
    margin: 20px 0;
}

.mobile-menu a {
    color: var(--primary-navy);
    text-decoration: none;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Main Content */
.page-content {
    flex: 1;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - 120px);
    padding-top: 350px;
}

.content-container {
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
}

.left-column h1 {
    font-size: 48px;
    line-height: 1.2;
    color: var(--primary-navy);
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
}

.right-column {
    font-size: 16px;
    line-height: 1.8;
    padding-top: 10px;
    overflow-wrap: break-word;
    hyphens: auto;
}

.right-column p {
    margin-bottom: 30px;
    max-width: 100%;
    word-wrap: break-word;
}

.lets-connect {
    display: inline-block;
    width: 340px;
    height: 52px;
    background-color: #14213D;
    color: #FFFFFF !important;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 28px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 56px;
}

.lets-connect:hover,
.contact-info .lets-connect {
    background-color: #14213D;
    color: #FFFFFF !important;
    text-decoration: none;
}

/* Services Page Styles */
.services-page .service-item {
    margin-bottom: 40px;
}

.services-page .service-item h2 {
    color: var(--primary-navy);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.services-page .service-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Contacts Page Styles */
.contact-info {
    margin-bottom: 40px;
}

.contact-info h2 {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-navy);
    margin-bottom: 40px;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.5;
}

.contact-info a {
    color: var(--primary-navy);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.address-block {
    margin-bottom: 30px;
}

.contact-block {
    margin-bottom: 30px;
}

.company-info-block {
    margin-bottom: 30px;
}

.bank-info-block {
    margin-bottom: 30px;
}

/* Footer & Privacy Policy */
.site-footer {
    position: relative;
    z-index: 5;
    padding-bottom: 60px;
}

.footer-policy-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 0;
    z-index: 10;
}

.privacy-policy-button {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    color: var(--primary-navy) !important;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.7;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    padding: 0 !important;
    transition: opacity 0.3s;
}

.privacy-policy-button:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 5px;
    background: none !important;
    background-color: transparent !important;
}

/* Modal Styles */
body.modal-open {
    overflow: hidden !important;
}

.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 99999 !important;
    display: none;
    overflow: auto !important;
    backdrop-filter: blur(5px) !important;
}

.modal-content {
    background-color: #fff !important;
    margin: 10vh auto !important;
    width: 70% !important;
    max-width: 700px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    padding: 40px !important;
}

.modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    font-size: 28px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    color: #14213D !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    text-align: center !important;
    z-index: 100 !important;
}

.modal * {
    box-sizing: border-box !important;
}

.modal h1,
.modal h2,
.modal h3,
.modal h4,
.modal h5,
.modal h6,
.modal p {
    color: #333 !important;
}

.modal-content h2 {
    color: #14213D !important;
    margin-bottom: 20px !important;
}

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

    /* Header & nav */
    .site-header {
        padding: 20px 0;
    }

    .header-container {
        padding: 0 20px;
    }

    .logo img {
        height: 30px;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .mobile-menu.active {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Content */
    .page-content {
        padding-top: 140px;
        min-height: calc(100vh - 100px);
    }

    .content-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
        margin: 20px auto;
    }

    .left-column h1 {
        font-size: 32px;
    }

    .right-column p {
        margin-bottom: 20px;
    }

    /* Button */
    .lets-connect {
        width: 100%;
        max-width: 280px;
        line-height: 48px;
    }

    /* Privacy policy button */
    .footer-policy-container {
        bottom: 15px;
        left: 15px;
    }

    .content-container>*:last-child {
        margin-bottom: 50px;
    }

    .privacy-policy-button {
        font-size: 10px;
    }

    /* Modal window */
    .modal-content {
        width: 95% !important;
        margin: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        padding: 30px 20px !important;
    }

        .modal-body {
            padding: 0 5px !important;
        }

        .modal-body h3+p {
            margin-top: 5px !important;
        }

         .modal-close {
             top: 15px !important;
             right: 15px !important;
             font-size: 28px !important;
             width: 40px !important;
             height: 40px !important;
             line-height: 40px !important;
             background-color: rgba(255, 255, 255, 0.8) !important;
             border-radius: 50% !important;
             box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
             display: flex !important;
             justify-content: center !important;
             align-items: center !important;
         }

        .modal {
            align-items: flex-start !important;
        }

    .modal h2 {
        font-size: 22px !important;
    }

    .modal h3 {
        font-size: 18px !important;
    }

    .modal p {
        font-size: 14px !important;
    }
}

/* Mobile devices 480px */
@media (max-width: 480px) {
    .site-header {
        padding: 15px 0;
    }

    .logo img {
        height: 25px;
    }

    .page-content {
        padding-top: 120px;
    }

    .left-column h1 {
        font-size: 28px;
    }

    .right-column p {
        font-size: 15px;
    }

    .lets-connect {
        height: 45px;
        line-height: 45px;
        font-size: 13px;
    }

    /* Modal window */
    .modal-content {
        width: 100% !important;
        margin: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }

    .modal-close {
        top: 20px !important;
        right: 20px !important;
    }
}


/* Preloader style */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.2s;
}

.preloader-content img {
    max-width: 200px;
    height: auto;
}

.preloader-content::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    background-color: #14213D;
    /* Content color */
    margin: 15px auto 0;
    transition: width 1s ease;
    animation: loadingBar 1s forwards 0.5s;
}

@keyframes loadingBar {
    to {
        width: 200px;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}