/* Globālie stili */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Galvenes un navigācijas stili */
.header {
    background-color: #fff;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;       /* Nomaini max-width: 1200px uz width: 100% */
    padding: 0 20px;   /* Atstāj nelielu atstarpīti smukumam */
}

/* LOGO STILI */
.logo {
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    flex-direction: row;
    align-items: center;
    line-height: 1;
    pointer-events: none;
    cursor: default;
}

.logo .top-line {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.logo .pv-box {
    background-color: #000;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    min-width: 80px;
    display: inline-block;
    margin-right: 0.5rem;
}

.logo .star {
    font-size: 1.2rem;
    color: #3498db;
    margin-left: 5px;
}

.logo .nordic {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #2c3e50;
    margin-top: 0;
}

.logo .line {
    width: 100px;
    height: 2px;
    background-color: #3498db;
    margin: 5px 0;
}

.logo .logistics {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: #2c3e50;
}

.logo .tagline {
    font-size: 0.75rem;
    font-weight: 300;
    margin-top: 0.5rem;
    color: #2c3e50;
    opacity: 1;
}

/* Šis ir jaunais bloks, kas jāpievieno */
.main-nav {
    margin-left: 100px;
}

/* NAVIGĀCIJAS STIĻI */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease-in-out;
}

.main-nav a:hover::after {
    width: 100%;
}

/* KONTAKTI */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    margin-left: 2rem;  
    margin-right: 100px;
    font-weight: 600;
}

.contact-info .whatsapp-link,
.contact-info .phone-link {
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.contact-info .whatsapp-link {
    color: #25D366;
}

.contact-info .whatsapp-link:hover {
    color: #128C7E;
}

.contact-info .phone-link {
    color: #3498db;
}

.contact-info .phone-link:hover {
    color: #2980b9;
}

.contact-info .fab,
.contact-info .fas {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* HAMBURGERA POGAS */
.hamburger-menu, .close-menu {
    display: none; 
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2c3e50;
    z-index: 1000;
}


/* GALVENĀ SATURA STIĻI */
.main-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.form-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    margin-bottom: 50px;
}

h2 {
    color: #ffffff;
    background-color: #0056b3; 
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

h4 {
    color: #ffffff;
    background-color: #3498db; 
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin: 0;
}

legend {
    font-weight: bold;
    padding: 0 10px;
    color: #555;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    resize: none;
}

.form-group.dimensions div {
    display: flex;
    gap: 10px;
}

.form-group.dimensions input {
    flex: 1;
}

.form-group.address-group {
    display: flex;
    flex-direction: column;
}

.form-group.address-group input {
    margin-bottom: 10px;
}

button[type="submit"] {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* KĀJENES STIĻI */
.main-footer {
    background-color: #013A6B;
    color: #ffffff;
    padding: 60px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-column h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #3498db;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: #3498db;
    font-size: 1.1rem;
}

.footer-contact p a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact p a:hover {
    color: #3498db;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    color: #f0f0f0;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-contact-item .fas.fa-phone {
    margin-right: 10px;
    color: #3498db;
    font-size: 1.1rem;
}

.footer-contact-item .fab.fa-whatsapp {
    margin-right: 10px;
    color: #25D366;
    font-size: 1.5rem;
}

.footer-contact-item a {
    color: #f0f0f0;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #3498db;
}

.footer-branding .footer-logo {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
}

.footer-branding .footer-logo .top-line {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.footer-branding .footer-logo .pv-box {
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    font-weight: 800;
    font-size: 2.4rem;
    border-radius: 4px;
    min-width: 80px;
    display: inline-block;
}

.footer-branding .footer-logo .star {
    color: #3498db;
    font-size: 1.2rem;
    margin-left: 5px;
}

.footer-branding .footer-logo .nordic {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: #7BC4F2;
}

.footer-branding .footer-logo .line {
    width: 100px;
    height: 2px;
    background-color: #3498db;
    margin: 5px 0;
}

.footer-branding .footer-logo .logistics {
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-branding .footer-logo .tagline {
    font-size: 0.75rem;
    font-weight: 300;
    opacity: 1;
    color: #ffffff;
}

.footer-description {
    margin-bottom: 20px;
    color: #e0e0e0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a i {
    color: inherit;
}

.social-links a img {
    width: 32px;
    height: 32px;
    transition: filter 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.1);
}

.footer-bottom {
    background-color: #002c5c;
    color: #cccccc;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.85rem;
    border-top: 1px solid #1a5697;
    width: 100%;
}


/* --- VALODU PĀRSLĒDZĒJA STIĻI (DARBVIRSMAS) --- */
.language-switcher {
    position: relative;
    margin-left: 2rem;
    cursor: pointer;
    list-style: none;
}

.language-switcher .lang-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.language-switcher img {
    width: 25px;
    height: auto;
    margin-right: 5px;
    vertical-align: middle;
}

.language-switcher .dropdown-arrow {
    font-size: 0.8rem;
    margin-left: 5px;
    color: #2c3e50;
    transition: transform 0.3s;
}

.language-switcher:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: #3498db;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 120px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.dropdown-menu li a {
    color: #2c3e50;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
}

.language-switcher:hover .dropdown-menu {
    display: block;
}


/* --- RESPONSĪVIE STIĻI (Zem 768px) --- */

/* Paslēpj mobilo hamburgera izvēlni un mobilo valodu izvēli darbvirsmas skatā */
@media (min-width: 769px) {
    .hamburger-menu, .close-menu {
        display: none;
    }
    .language-switcher-mobile {
        display: none !important; 
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    /* Slēpj Darbvirsmas elementus */
    .main-nav, .contact-info, .header-button, .desktop-lang-switcher {
        display: none;
    }
    
    /* Pārliecināmies, ka hamburgera poga ir redzama un atrodas pareizajā vietā */
    .hamburger-menu {
        display: block; 
        order: 3; 
        position: static; 
        background: #3498db;
        color: white;
        padding: 10px 15px;
        border-radius: 4px;
        font-size: 1.2rem;
    }

    /* Mobilā izvēlne - parādās kā pārklājums */
    .main-nav {
        display: block !important;
        position: relative;
    }
    
    .main-nav .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 20px;
        transition: right 0.3s ease-in-out;
        z-index: 999;
        display: flex !important; 
    }
    
    .main-nav .nav-links.active {
        right: 0; 
    }
    
    .main-nav .nav-links li {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .main-nav .nav-links a {
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid #eee;
    }

    /* Aizvēršanas poga (kontrolēta ar JS, bet stils ir šāds) */
    .close-menu {
        display: none; 
        position: fixed; 
        top: 1rem;
        right: 1rem;
        background: #3498db; 
        color: white;
        padding: 10px 15px;
        border-radius: 4px;
        z-index: 1000;
    }
    
    /* Valodu pārslēdzēja stilizācija (iekšpusē mobilajā izvēlnē) */
    .language-switcher-mobile {
        display: flex !important; 
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }

    .language-switcher-mobile a {
        display: flex;
        align-items: center;
        padding: 8px 0;
        text-decoration: none;
        color: #2c3e50;
        font-weight: 600;
        transition: color 0.2s;
    }

    /* LABOJUMS: Nodrošina karodziņu attēlošanos un izmēru */
    .language-switcher-mobile a img {
        width: 25px; 
        height: 18px; /* Noregulēts augstums */
        margin-right: 10px;
        border: 1px solid #eee;
        display: inline-block; /* Nodrošina, ka attēls tiek rādīts */
    }

    .language-switcher-mobile a:hover {
        color: #3498db;
    }

    /* Kājenes stili mobilajai versijai */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 15px;
    }
    .footer-column {
        min-width: 100%;
        margin-bottom: 30px;
    }
    .footer-column h3 {
        text-align: center;
    }
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-links ul, .footer-legal ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-contact p {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-branding .footer-logo {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 40px 0;
        font-size: 0.85rem;
    }
    .footer-column h3 {
        font-size: 1.2rem;
    }
}

