/* Base e Variáveis */
:root {
    --bg-color: #ffffff;
    --gray-light: #f3f4f6;
    --gray-dark: #FFFFFF;
    --text-main: #111827;
    --text-muted: #000000;
    --primary-green: #42C881;
    --primary-cyan: #007B8B;
    --teal-dark: #007B8B;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    min-height: auto;
    margin: 0 auto;
    padding: 20px 20px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 20px;
}

.mt-4 {
    margin-top: 40px;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 125%;
}

h3 {
    font-size: 16px;
    line-height: 125%;
    margin-bottom: 0px;
}

p {
    color: var(--text-muted);
    line-height: 135%;
}

.subtitle {
    margin-bottom: 40px;
    font-size: 14px;
}

.box-tooltip {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 14px !important;
    margin-left: 5px;
    border-radius: 50%;
    color: #ACACAC;
    position: absolute;
    right: 25px;
    top: 25px;
    z-index: 6;
    cursor: help;
    opacity: 0.5;
}

/* Hero Section */
.hero {
    background: url('../../images/banners/banner-exportacoes.webp') top/cover no-repeat;
    height: 350px;
    position: relative;
    margin-top: 75px;
}

.container.hero-content {
    position: relative;
    bottom: -75px;
}

.hero-overlay {
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    color: white;
}

.hero-content h1 {
    margin-bottom: 10px;
}

.hero-content p {
    color: #FFFFFF;
    font-size: 16px;
}

/* Botões */
.btn-group {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.btn {
    padding: 6px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    cursor: pointer;
    border: none;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-green {
    background-color: var(--primary-green);
    color: white;
}

.btn-green:hover {
    background-color: #22c55e;
}

.btn-outline {
    border: 1px solid var(--text-main);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: white;
}

/* Grids Gerais */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

@media (max-width: 900px) {

    .grid-4,
    .grid-5,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .grid-4,
    .grid-5,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Cards (Cartões cinzentos) */
.card {
    background-color: var(--gray-light);
    padding: 17px;
    position: relative;
}

.card h3 {
    margin-bottom: 5px;
}

.card-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-center .icon-ctn {
    color: var(--primary-cyan);
    margin-bottom: 10px;
    background: #007b8b3b;
    padding: 17px;
    display: flex;
    border-radius: 66%;
    justify-content: center;
    align-items: center;
    height: 55px;
    width: 55px;
}

/* Tags de cor Ciano */
.tag-title {
    color: var(--primary-cyan);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.tag-cyan {
    color: var(--primary-cyan);
    font-size: 10px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

/* Imagens Placeholder Produtos */
.img-placeholder {
    width: 100%;
    height: 150px;
    background-color: #d1d5db;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.img-placeholder .fundo-cinza {
    object-fit: cover;
    width: 100%;
    bottom: -7px;
    position: absolute;
}

.img-placeholder .tamanho-copos {
    position: absolute;
    left: 45px;
    bottom: 8px;
}

.img-placeholder .porta-copos {
    position: absolute;
    left: -2px;
    bottom: -2px;
    width: 110%;
}

/* Números Gigantes (Estatísticas) */
.stat-number {
    font-size: 32px;
    color: var(--primary-cyan);
    margin-bottom: 5px;
}

/* Listas e Barras de Regiões */
.country-list {
    list-style-type: disc !important;
    margin-left: 20px;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 14px;
}

.country-list li {
    list-style-type: disc;
    display: list-item;
}

.region-bar {
    display: flex;
    justify-content: space-between;
    background-color: #007b8b10;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.grid-2 .card {
    padding: 25px;
}

.grid-2 .card h3 {
    margin-bottom: 30px;
}

.region-bar:first-of-type {
    margin-top: 20px;
}

/* Secção de Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    background-color: var(--gray-light);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-card .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.info-card .value {
    font-weight: 700;
    color: var(--text-main);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--text-main);
}

.location-card {
    background-color: var(--teal-dark);
    color: white;
    align-items: flex-start;
    height: 235px;
}

.location-card .label {
    color: #ccfbf1;
}

.location-card .value {
    color: white;
}

.location-card i {
    color: white;
}

.font-light {
    font-weight: 400 !important;
}

.grid-4.stats .card {
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.grid-4.stats .card h2 {
    margin-bottom: 10px;
}

.grid-4.stats .card p {
    font-weight: 600;
    font-size: 16px;
}

.grid-2.stats .card p {
    font-weight: 600;
    font-size: 16px;
}

/* Formulário */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}


#contacto {
    margin-bottom: 50px;
}

/* =========================================
   AJUSTES DE RESPONSIVIDADE (MOBILE)
   ========================================= */

@media (max-width: 768px) {
    .products.container {
        padding-right: 0px;
    }

    .product-carousel-container {
        width: 100%;
        overflow: hidden;
    }

    .product-carousel-inner {
        display: flex !important;
        /* O !important desliga a grelha do desktop */
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;

        gap: 0 !important;
        /* Anula o espaçamento da grelha */
        padding: 10px 20px 20px;
        margin-left: -20px;
        margin-right: -20px;
    }

    .product-carousel-inner::-webkit-scrollbar {
        display: none;
    }

    .product-carousel-inner {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .product-carousel-inner .product-card {
        flex: 0 0 calc(185px - 20px) !important;
        margin-right: 15px;
        scroll-snap-align: center;
    }

    /* Empilha a área de contatos (telefone, email) e o formulário */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Faz os campos que estavam lado a lado ficarem um embaixo do outro */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        /* Remove o vão lateral, pois eles vão empilhar */
    }

    /* Reduz um pouco o espaçamento interno dos cartões no celular */
    .card {
        padding: 15px;
    }

    /* Ajuste para o cartão de localização não quebrar o layout */
    .info-card {
        align-items: center;
    }

    .location-card {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .location-card i {
        align-self: flex-start;
        font-size: 1.8rem;
    }
}

.skiptranslate,
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0px !important;
}

/* Container fixo no canto inferior direito */
.floating-lang-switcher {
    position: fixed;
    bottom: calc(50% - 22px);
    right: 0px;
    z-index: 9999;
}

/* O botão principal */
.lang-toggle {
    background-color: #f68c51;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.lang-toggle:hover {
    background-color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* O Menu que abre para cima */
.lang-menu {
    position: absolute;
    bottom: calc(100% + 15px);
    /* Fica acima do botão */
    right: 0;
    background: white;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    width: 140px;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    /* Estado inicial invisível e um pouco mais baixo */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Classe que será adicionada pelo JavaScript para mostrar o menu */
.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Links dentro do menu */
.lang-menu a {
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-light);
    transition: background-color 0.2s, color 0.2s;
    text-align: right;
}

.lang-menu a:last-child {
    border-bottom: none;
}

.lang-menu a:hover {
    background-color: var(--gray-light);
    color: var(--primary-cyan);
}

/* Ajuste para mobile (deixar o botão um pouco menor e mais perto da borda) */
@media (max-width: 768px) {
    .floating-lang-switcher {
        bottom: 90px;
        right: 0px;
    }

    .lang-toggle {
        padding: 10px 16px;
    }
}