/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===== CSS VARIABLES ===== */
:root {
    --color-dark: #192e37;
    --color-blue: #144be2;
    --color-blue-dark: #053463;
    --color-blue-light: #0084cc;
    --color-text-dark: #071b8e;
    --color-white: #ffffff;
    --color-gray-light: #efefef;
    --color-border: #eae9e9;
    --header-height: 80px;
    --max-width: 1144px;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-dark);
    border-bottom: 3px solid #152a34;
    transition: background-color 0.3s ease;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: var(--header-height);
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 10px 18px;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-blue-light);
}

.main-nav a i {
    font-size: 10px;
    margin-left: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== LANGUAGE SELECTOR ===== */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.lang-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.lang-selector.open .lang-btn i {
    transform: rotate(180deg);
}

.lang-flag {
    font-size: 18px;
    line-height: 1;
}

.lang-flag-svg {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lang-text {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.lang-option:hover {
    background: #f5f5f5;
}

.lang-option.active {
    background: #e8f4fd;
    color: #192e37;
    font-weight: 600;
}

.lang-option .lang-flag {
    font-size: 20px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero-section {
    margin-top: var(--header-height);
    min-height: 500px;
    background: linear-gradient(230deg, rgba(25, 47, 56, 0.4) 0%, #192e37 85%),
                url('../img/banner.jpg');
    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 20px 30px 60px;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.hero-title-line {
    display: block;
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 40px 20px 60px;
    background-color: var(--color-white);
}

.products-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 15px 0;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: var(--color-dark);
    margin: 10px 0;
    text-transform: uppercase;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background-image: linear-gradient(360deg, #0084cc 0%, #ffffff 36%);
    background-color: var(--color-blue);
    border: 1px solid var(--color-blue-dark);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 2px 2px 0px 0px var(--color-gray-light);
    padding: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 4px 8px 15px rgba(0, 0, 0, 0.15);
}

.product-image {
    text-align: center;
}

.product-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.card-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 15px 0;
}

.product-name {
    font-size: 20px;
    color: var(--color-text-dark);
    text-align: center;
}

.product-cta {
    text-align: center;
}

.btn-saiba-mais {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--color-blue);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.btn-saiba-mais:hover {
    background-color: var(--color-blue-dark);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 40px 20px;
    background-color: var(--color-white);
}

.about-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-container p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
    text-align: center;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    position: relative;
    background-color: var(--color-dark);
    padding: 60px 20px;
    overflow: hidden;
}

.contact-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20width%3D%221920%22%20height%3D%22954%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23prefix__clip0_75_23004%29%22%20fill%3D%22rgba%2838%2C70%2C83%2C1%29%22%3E%3Cpath%20d%3D%22M2351.91%20237.689l-852.66-492.288-412.33%20714.165%20852.67%20492.288%20412.32-714.165zM1936.18%20957.764l-852.67-492.287-54.86%2095.015%20852.67%20492.288%2054.86-95.016zM1874.49%201064.6l-852.66-492.286-46.452%2080.454%20852.672%20492.292%2046.44-80.46zM1814.38%201168.72L961.712%20676.436l-30.743%2053.248%20852.671%20492.286%2030.74-53.25zM1763.15%201257.46L910.479%20765.174%20889.507%20801.5l852.663%20492.29%2020.98-36.33zM1714.85%201341.11L862.185%20848.824l-16.461%2028.51%20852.666%20492.286%2016.46-28.51zM1664.23%201428.78L811.568%20936.496l-10.796%2018.698%20852.668%20492.286%2010.79-18.7zM1612.45%201518.47l-852.666-492.28-6.215%2010.76%20852.671%20492.29%206.21-10.77zM1558.42%201612.05l-852.663-492.28-2.599%204.5%20852.662%20492.29%202.6-4.51z%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22prefix__clip0_75_23004%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M0%200h1920v954H0z%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
    background-size: cover;
    transform: scale(-1, -1);
    pointer-events: none;
}

.contact-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.contact-left {
    flex: 1;
}

.contact-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.contact-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.contact-phone {
    font-size: 24px;
    color: var(--color-white);
    margin-bottom: 20px;
}

.contact-right {
    flex: 1;
    padding-left: 30px;
}

/* ===== CONTACT FORM ===== */
.contact-form label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 5px;
    margin-top: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-blue-light);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-enviar {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 40px;
    background-color: var(--color-blue);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.btn-enviar:hover {
    background-color: var(--color-blue-dark);
}

.form-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.form-message.success {
    background-color: rgba(0, 200, 100, 0.2);
    color: #00c864;
    border: 1px solid rgba(0, 200, 100, 0.3);
}

.form-message.error {
    background-color: rgba(255, 50, 50, 0.2);
    color: #ff5050;
    border: 1px solid rgba(255, 50, 50, 0.3);
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #111;
    border-top: 10px solid #152a34;
    padding: 40px 20px 20px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-col {
    flex: 1;
}

.footer-logo {
    text-align: left;
}

.footer-logo img {
    max-width: 200px;
}

.footer-address {
    text-align: center;
}

.footer-address p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer-social {
    text-align: right;
}

.social-links {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-white);
    color: var(--color-dark);
    border-radius: 12px;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
    transform: scale(1.1);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--color-blue-light);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--color-dark);
    color: var(--color-white);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-blue);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6); }
}

/* ===== GOOGLE TRANSLATE ===== */
#google_translate_element {
    display: inline-block;
}

.goog-te-gadget {
    display: inline-block;
}

.goog-te-gadget .goog-te-combo {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
    outline: none;
    appearance: auto;
    -webkit-appearance: auto;
}

.goog-te-gadget .goog-te-combo:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.25);
}

.goog-te-gadget .goog-te-combo option {
    color: #333;
    background-color: #fff;
}

/* Google Translate - hide attribution / powered by bar */
.goog-logo-link,
.goog-te-gadget .goog-te-combo + span,
.goog-te-balloon-frame {
    display: none !important;
}

/* ===== DESKTOP DROPDOWN ===== */

.has-dropdown{
    position:relative;
}

.dropdown-menu{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    min-width:240px;
    background:#192e37;
    padding:10px 0;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
    flex-direction:column;
    z-index:999;
}

.dropdown-menu li{
    width:100%;
}

.dropdown-menu a{
    padding:12px 20px;
    white-space:nowrap;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.active .dropdown-menu{
    display:flex;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-container {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-dark);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav a {
        padding: 12px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Dropdown menu mobile styles */
    .dropdown-menu {
        display: none !important;
        position: static;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        border-radius: 0;
        padding-left: 20px;
    }

    .has-dropdown.active .dropdown-menu {
        display: block !important;
    }

    .has-dropdown > a {
        position: relative;
    }

    .has-dropdown > a i {
        transition: transform 0.3s ease;
    }

    .has-dropdown.active > a i {
        transform: rotate(180deg);
    }

    .lang-selector {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 18px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .contact-title {
        font-size: 20px;
    }

    .contact-phone {
        font-size: 20px;
    }
}

    .lang-selector {
        display: none;
    }


    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-dark);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav a {
        padding: 12px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hero-section {
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 18px;
        text-align: center;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-right {
        padding-left: 0;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-social {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    #google_translate_element {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 18px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .contact-title {
        font-size: 20px;
    }

    .contact-phone {
        font-size: 20px;
    }
}
