/*
 * style.css
 * * NOTE: The following styles were moved from index.html to improve page load performance.
 */
:root {
    --primary-blue: #0056b3;
    --accent-orange: #fd7e14;
    --light-gray: #f8f9fa;
    --white: #fff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .logo img {
    height: 40px;
    width: auto;
    display: block;
}

.header nav {
    display: flex;
    gap: 25px;
}

.header nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.header nav a:hover, .header nav a.active {
    border-color: var(--primary-blue);
}

.header-right {
    display: flex;
    align-items: center;
}

.search-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
}
.search-container input[type="text"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.search-container select {
    padding: 8px;
    border: 1px solid #ccc;
    border-left: none;
    background-color: #f2f2f2;
    border-radius: 0;
}
.search-container button {
    padding: 8px 12px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.lang-link {
    background-color: #f5f5f5;
    color: #333;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s;
    white-space: nowrap;
    border: 1px solid #ddd;
}

.lang-link:hover {
    background-color: #e9e9e9;
    color: #333;
}

.cta-buttons {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.cta-contact {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}
#menu-toggle .hamburger {
    width: 30px;
    height: 2px;
    background-color: #333;
    display: block;
    position: relative;
    transition: background-color 0.3s;
}
#menu-toggle .hamburger::before,
#menu-toggle .hamburger::after {
    content: '';
    width: 30px;
    height: 2px;
    background-color: #333;
    display: block;
    position: absolute;
    transition: transform 0.3s;
}
#menu-toggle .hamburger::before {
    top: -8px;
}
#menu-toggle .hamburger::after {
    top: 8px;
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}
.mobile-menu nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 20px;
}
.mobile-menu nav a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}
.mobile-menu nav a:last-child {
    border-bottom: none;
}
.mobile-menu .cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    text-align: center;
    margin-left: 0;
    margin-top: 20px;
}
.mobile-menu .search-container {
    margin-top: 20px;
    width: 100%;
}
.mobile-menu .search-container input {
    width: 100%;
}
.mobile-menu .language-switcher {
    margin-top: 20px;
    justify-content: center;
    margin-left: 0;
}

.hero {
    position: relative;
    color: white;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: url('assets/images/hero-background.jpg') no-repeat center center/cover;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 20, 50, 0.6);
    z-index: 1;
}
.hero > * {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 20px 0;
}
.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
}
.hero-cta {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: rgba(255, 255, 255, 0.9);
    padding: 13px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.hero-cta:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.notices-section {
    background-color: var(--light-gray);
}
.notices-content {
    border-top: 3px solid var(--primary-blue);
    border-bottom: 3px solid var(--primary-blue);
    padding: 10px 0;
}
.notices-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.notices-item {
   display: flex;
   gap: 20px;
   padding: 10px 0;
   align-items: center;
}
.notices-date {
   font-weight: bold;
   color: #333;
   min-width: 100px;
}
.notices-title a {
   text-decoration: none;
   color: var(--primary-blue);
}
.notices-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}
.all-notices-link {
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
}
.notices-externals {
    display: flex;
    gap: 15px;
    align-items: center;
}
.notices-certs img { height: 50px; width: auto; }
.notices-socials img { height: 24px; width: auto; }

.section-title { text-align: center; font-size: 30px; margin-bottom: 15px; }
.section-subtitle { text-align: center; font-size: 18px; color: #666; max-width: 700px; margin: 0 auto 40px auto; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.card-content { padding: 20px; }
.card-content h3 { margin-top: 0; }
.card-link { color: var(--accent-orange); text-decoration: none; font-weight: bold; }

#main-products {
    border: 2px solid var(--accent-orange);
    border-radius: 8px;
    padding: 40px;
    position: relative;
    margin-top: 60px;
}
#main-products .section-title {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 5px;
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    white-space: nowrap;
}
.product-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}
.product-list-item:last-child {
    border-bottom: none;
}
.product-list-item img {
    height: 30px;
    width: 30px;
    object-fit: contain;
}
.product-list-text h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}
.product-list-text p {
    margin: 0;
    color: #666;
}
.product-list-link {
    margin-left: auto;
    white-space: nowrap;
}
.all-products-button-container {
    text-align: center;
    margin-top: 30px;
}

.social-proof .proof-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}
.social-proof .number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-blue);
}
.social-proof .partner-logos { display: flex; justify-content: center; align-items: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }

.footer { background-color: #343a40; color: var(--white); padding: 50px 20px; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; max-width: 1200px; margin: 0 auto; padding-bottom: 30px; border-bottom: 1px solid #495057; }
.footer-column h4 { color: var(--accent-orange); }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li a { color: #adb5bd; text-decoration: none; }
.footer-bottom { text-align: center; padding-top: 20px; max-width: 1200px; margin: 0 auto; }

/* MODIFIED COOKIE BANNER STYLES */
.cookie-banner-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}
.cookie-banner {
    background-color: rgba(30, 30, 30, 0.95);
    color: white;
    padding: 20px 25px;
    margin: 0;
    display: none; /* Initially hidden */
    align-items: center;
    gap: 20px;
    max-width: 90%; /* Adjust width to avoid being too wide */
    box-sizing: border-box;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    flex-wrap: wrap;
}
.cookie-banner p {
    margin: 0;
    text-align: left;
    flex-grow: 1;
}
.cookie-banner a { color: var(--accent-orange); text-decoration: underline; }
.cookie-buttons {
    display: flex;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    align-items: center;
}
#cookie-accept-btn, #cookie-close-btn {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
#cookie-accept-btn:hover, #cookie-close-btn:hover {
    background-color: #e66a00;
}
#cookie-close-btn {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 16px;
}

/* Responsive Styles */
@media (max-width: 1180px) {
    .header nav, .header .header-right {
        display: none;
    }
    #menu-toggle {
        display: block;
    }
    .header.open .mobile-menu {
        display: flex;
    }
    .header.open #menu-toggle .hamburger {
        background-color: transparent;
    }
    .header.open #menu-toggle .hamburger::before {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .header.open #menu-toggle .hamburger::after {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* For tablets and mobile phones */
@media (max-width: 992px) {
    /* Adjustments for hero title size */
    .hero h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        line-height: 1.3;
    }

    /* Centering cookie policy buttons */
    .cookie-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .cookie-banner p {
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }

    .cookie-buttons button {
        flex-grow: 1;
    }
    
    /* Footer line break for mobile */
    .br-sp {
        display: block;
    }
}