/* Global Variables */
:root {
    /* Brand Colors - TANKEM Identity */
    --primary-color: #00491E;
    /* Verde Militar */
    --accent-color: #F7B718;
    /* Amarelo Spectra */
    --secondary-color: #53565A;
    /* Cinza Escuro Metálico */
    --text-color: #333333;
    --text-light: #666666;
    --heading-color: #00491E;
    /* Verde para títulos */
    --light-bg: #f4f6f9;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
    --container-width: 1240px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

    /* Typography */
    --heading-font: 'Anton', sans-serif;
    --text-font: 'Open Sans', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--text-font);
}

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

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* padding-top: 138px; */
    padding-top: 0 !important;
    /* Padding removed to allow header overlay on hero */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 400;
    /* Anton is usually 400 */
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #e5b225;
    /* Darker yellow */
    border-color: #e5b225;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-top: 15px;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* ===== HEADER WRAPPER & ADAPTIVE BEHAVIOR ===== */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Top Bar Styles */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    /* Default fallback */
}

/* Top Bar - Transparent at Top */
.header-wrapper:not(.scrolled) .top-bar {
    background-color: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

/* Top Bar - Scrolled */
.header-wrapper.scrolled .top-bar {
    background-color: var(--primary-color);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Social Media Icons */
.social-icon {
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

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

.lang-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

/* Login Button */
.btn-login {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-login:hover {
    background-color: #e5b225;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-login i {
    font-size: 0.95rem;
}

/* Header - Default State (Semi-Transparent with Blur) */
.header-wrapper:not(.scrolled) {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
}

.header-wrapper:not(.scrolled) .site-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
}

.header-wrapper:not(.scrolled) .main-nav>ul>li>a,
.header-wrapper:not(.scrolled) .logo {
    color: var(--white);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Ensure mega menu links do NOT have shadow */
.header-wrapper .main-nav .mega-menu a,
.header-wrapper:not(.scrolled) .main-nav .mega-menu a {
    text-shadow: none;
    color: var(--primary-color);
}

.header-wrapper:not(.scrolled) .header-logo-img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) !important;
    opacity: 1;
}

.header-wrapper:not(.scrolled) .btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.header-wrapper:not(.scrolled) .mobile-toggle {
    color: var(--white);
}

.header-wrapper:not(.scrolled) .main-nav a::after {
    background-color: var(--accent-color);
}

/* Header - Scrolled State (Solid White) */
.header-wrapper.scrolled .site-header {
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 60px;
}

.header-wrapper.scrolled .header-logo-img {
    height: 35px;
    filter: none;
}

.header-wrapper.scrolled .main-nav a {
    color: var(--primary-color);
    padding: 15px 0;
    /* Adjust padding to center in reduced height */
}

/* Header */
.site-header {
    background-color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 90px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    /* Font styles removed as we use image now */
}

.header-logo-img {
    height: 55px;
    /* Adjust based on header height */
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    height: 70px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 40px;
    align-items: center;
    /* Ensure alignment */
}

.main-nav a {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--primary-color);
    padding: 10px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mega Menu Styles */
.dropdown {
    position: static;
    /* Allows mega menu to be full width relative to header/nav */
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #f7f5f3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Mega Menu Visibility */
.dropdown:hover .mega-menu,
.dropdown.active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Override hover effect when manually closed */
.dropdown.manual-close:hover .mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

/* Chevron Rotation */
.dropdown.active .dropdown-trigger .fa-chevron-down,
.dropdown:hover .dropdown-trigger .fa-chevron-down {
    transform: rotate(180deg);
}

/* Prevent rotation when manually closed */
.dropdown.manual-close:hover .dropdown-trigger .fa-chevron-down {
    transform: rotate(0deg);
}

.mega-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    padding: 40px 0;
    max-width: 1200px;
    /* Use container max-width */
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Mega Menu Sidebar */
.mega-sidebar {
    padding-right: 30px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.mega-sidebar h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mega-sidebar p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-link {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-link:hover {
    gap: 12px;
}

/* Mega Menu Links Grid */
.mega-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.mega-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.mega-col ul li {
    margin-bottom: 12px;
}

.mega-col ul li a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 0;
    background: none;
    display: inline-block;
    transition: transform 0.2s;
    width: auto;
}

.mega-col ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
    background: none;
}

.mega-col ul li a::after {
    display: none;
}

/* Ensure mega menu links are always readable, overriding the transparent header text color */
.header-wrapper .main-nav .mega-menu a,
.header-wrapper:not(.scrolled) .main-nav .mega-menu a {
    color: var(--primary-color);
}

.header-wrapper .main-nav .mega-menu a:hover,
.header-wrapper:not(.scrolled) .main-nav .mega-menu a:hover {
    color: var(--secondary-color);
}

/* Adjustments for Responsive Mobile */
@media (max-width: 992px) {
    .dropdown {
        position: relative;
    }

    .mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: rgba(247, 245, 243, 0.5);
        display: none;
        padding: 0;
        border: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .dropdown:hover .mega-menu {
        display: none;
        /* Disable hover on mobile, rely on click/toggle */
    }

    /* Show mega menu when dropdown is active on mobile */
    .dropdown.active .mega-menu {
        display: block;
        max-height: 1000px;
        padding: 20px 0;
        margin-top: 10px;
        border-radius: 8px;
        background-color: #f7f5f3;
        /* Solid background to prevent site content showing through */
    }

    .mega-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px 20px;
    }

    .mega-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding-bottom: 15px;
        text-align: left;
        padding-right: 0;
    }

    .mega-sidebar h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .mega-sidebar p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .mega-links-grid {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 20px;
    }

    .mega-col h4 {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .mega-col ul li {
        margin-bottom: 10px;
    }

    .mega-col ul li a {
        font-size: 0.95rem;
        text-shadow: none !important;
    }

    /* Smooth chevron rotation */
    .dropdown-trigger .fa-chevron-down {
        transition: transform 0.3s ease;
    }
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: #001a33;
    /* Fallback */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 73, 30, 0.1);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 650px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Features / Solutions Section */
.card {
    background-color: var(--white);
    padding: 40px;
    border-top: 5px solid var(--accent-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card p {
    color: var(--text-light);
    margin-bottom: 30px;
    flex-grow: 1;
}

.link-arrow {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-arrow i {
    color: var(--accent-color);
    transition: transform 0.3s;
}

.link-arrow:hover i {
    transform: translateX(5px);
}

/* Industries Section */
.industry_card {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
}

.industry_card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.industry_card:hover img {
    transform: scale(1.1);
}

.industry_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 73, 30, 0.95), transparent);
    padding: 30px;
    color: var(--white);
}

.industry_overlay h3 {
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

/* Footer (Scanreco style) */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Responsive - Top Bar */
@media (max-width: 768px) {
    body {
        /* padding-top: 118px; */
        /* Padding removed */
    }

    .top-bar {
        padding: 6px 0;
        font-size: 0.8rem;
    }

    .top-bar .container {
        gap: 10px;
    }

    .top-bar-left {
        gap: 10px;
    }

    .top-bar-right {
        gap: 10px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .lang-btn {
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    .btn-login {
        padding: 5px 12px;
        font-size: 0.8rem;
        gap: 4px;
    }

    .btn-login i {
        font-size: 0.85rem;
    }

    /* Adjust mobile menu position for top bar */
    .main-nav {
        top: 118px;
        /* top-bar + header height */
        height: calc(100vh - 118px);
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 70px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding-top: 40px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
        /* Enable scrolling when content exceeds viewport */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
    }

    .main-nav.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: left;
        width: 100%;
        padding: 0 30px;
    }

    .main-nav a {
        font-size: 1.5rem;
        color: var(--primary-color) !important;
        text-shadow: none !important;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

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

    .header-actions .btn {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- PRODUCT PAGE STYLES --- */

/* Product Hero */
.product-hero {
    padding: 80px 0;
    background-color: #f8f9fa;
    /* Off-white */
    overflow: hidden;
}

.product-hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.product-info {
    flex: 1;
}

.cert-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.badge {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    border: 2px solid var(--accent-color);
}

.product-info h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 300;
}

.btn-outline-dark {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--primary-color);
    color: var(--white);
}

.product-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Circle background behind product */
.circle-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-color: #ebedf0;
    border-radius: 50%;
    z-index: 0;
}

.product-image img,
.img-placeholder {
    position: relative;
    z-index: 1;
}

/* Placeholders (Remove when real images added) */
.img-placeholder {
    width: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    flex-direction: column;
    gap: 10px;
    border: 2px dashed #bbb;
    border-radius: 8px;
}

.product-image .img-placeholder {
    width: 350px;
    height: 450px;
}

.rect {
    height: 300px;
    width: 100%;
}

/* Z-Layout Sections */
.img-text-section .row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.img-text-section .row.reverse {
    flex-direction: row-reverse;
}

.col-text,
.col-img {
    flex: 1;
}

.col-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.check-list {
    margin-top: 25px;
}

.check-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-weight: 500;
}

.check-list li::before {
    content: '\f00c';
    /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* Features Grid (Product Page) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 32, 91, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Specs Section */
.bg-dark {
    background-color: var(--primary-color);
    color: white;
}

.specs-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.spec-group h3 {
    color: var(--accent-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table td:first-child {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.specs-table td:last-child {
    text-align: right;
    font-weight: 500;
}

.mt-5 {
    margin-top: 3rem;
}

/* Product Mobile Responsive */
@media (max-width: 992px) {
    .product-hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }

    .cert-badges {
        justify-content: center;
    }

    .product-info h1 {
        font-size: 2.5rem;
    }

    .img-text-section .row,
    .img-text-section .row.reverse {
        flex-direction: column;
        text-align: center;
    }

    .check-list li {
        text-align: left;
        display: inline-block;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specs-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .spec-group {
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .product-image .img-placeholder {
        width: 100%;
        max-width: 300px;
        height: 350px;
    }
}


/* Utility */
.align-center {
    align-items: center;
}

/* SUPPORT PAGE STYLES */
.page-header {
    background-color: var(--primary-color);
    padding: 160px 0 60px;
    color: var(--white);
    text-align: center;
    background-image: url('../assets/images/bg.png?v=2');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 0;
}

.page-header h1 {
    color: var(--white) !important;
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 73, 30, 0.9);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.map-section {
    padding: 80px 0;
    background-color: var(--white);
}

.map-interface {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.map-container {
    flex: 2;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    min-height: 500px;
    position: relative;
    border: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brazil-map-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.brazil-map-svg path {
    fill: #d1d5db;
    /* Neutral Gray */
    stroke: #ffffff;
    stroke-width: 1.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.brazil-map-svg path:hover {
    fill: #4d8c63;
    /* Lighter Brand Green */
    transform: translateY(-2px);
    stroke: #4d8c63;
    z-index: 10;
}

/* Support Page & Interactive Map */
.map-section {
    padding: 60px 0;
    background-color: #f9fafb;
}

.map-interface {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

#map {
    flex: 2;
    height: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1;
    /* Ensure basic z-index */
    background: #e5e7eb;
    /* Placeholder color before map loads */
}

/* Sidebar Styles */
.location-sidebar {
    flex: 1;
    background: white;
    padding: 20px;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: 600px;
    overflow-y: auto;
}

/* List Items */
.state-group {
    margin-bottom: 2rem;
}

.state-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.location-item {
    padding: 10px 12px;
    border-radius: 6px;
    background: #f8f9fa;
    margin-bottom: 8px;
    border-left: 4px solid #ccc;
    transition: all 0.2s ease;
    cursor: default;
}

.location-item h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-item p {
    font-size: 0.85rem;
    margin-bottom: 2px;
    line-height: 1.3;
}

.location-item.has-coords {
    cursor: pointer;
    border-left-color: var(--primary-color);
}

.location-item.has-coords:hover,
.location-item.active-item {
    background: #f0fdf4;
    /* Light tint */
    border-left-color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.view-map-btn {
    text-align: right;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.8rem;
    display: none;
    /* Hide by default, show maybe on mobile? or keep hidden if logic handles it */
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.map-popup {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.map-popup strong {
    color: var(--primary-color);
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.badge-sm {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 700;
}

/* Tabs for International */
.support-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 30px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Responsive */
@media (max-width: 900px) {
    .map-section {
        padding: 120px 0 0 0;
        /* Padding to clear fixed header safely */
        display: block;
    }

    .map-section .container {
        padding: 0;
        max-width: none;
    }

    .map-interface {
        flex-direction: column;
        height: calc(100vh - 120px);
        /* Safe height calculation */
        margin-top: 0;
        gap: 0;
    }

    #map {
        height: 40%;
        /* Top part: Map */
        min-height: 250px;
        order: 1;
        flex: none;
        width: 100%;
        border-radius: 0;
        display: block !important;
    }

    .location-sidebar {
        flex: 1;
        /* Bottom part: List fills remaining space */
        order: 2;
        width: 100%;
        height: auto;
        /* Uses flex height */
        max-height: none;
        overflow-y: auto;
        /* Scroll inside sidebar */
        border-radius: 0;
        border: none;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 15px;
    }

    /* Adjust headers for mobile */
    .page-header {
        display: none;
    }

    /* Force Solid Header on Mobile Map View ONLY (Support Page) */
    .page-support .header-wrapper .site-header {
        background-color: var(--primary-color) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

    .page-support .header-wrapper .mobile-toggle {
        color: var(--white) !important;
    }

    /* Ajuste para logo se necessário */
    .header-logo-img {
        filter: brightness(0) invert(1);
        /* Tenta deixar logo branca se for preta */
    }
}

/* Force Desktop Order Explicitly */
@media (min-width: 901px) {
    #map {
        order: 1;
        display: block !important;
    }

    .location-sidebar {
        order: 2;
    }
}

/* Fix Badge Style Global (remove big yellow circle) */
.location-item .badge {
    display: inline-block;
    width: auto;
    height: auto;
    border-radius: 4px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid #ccc;
    font-size: 0.65rem;
    padding: 1px 5px;
    margin-left: 8px;
    text-transform: uppercase;
    vertical-align: middle;
    box-shadow: none;
    font-weight: 600;
}

/* Floating WhatsApp Button */

/* Floating WhatsApp Button - Fixed & Robust */
.whatsapp-float {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    background-color: #25d366 !important;
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2147483647 !important;
    /* Max Z-Index */
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20b85c !important;
    transform: scale(1.1);
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.whatsapp-label {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background-color: white;
    padding: 8px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #333;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.whatsapp-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid white;
}