:root {
    /* --- PALETA DA FARMÁCIA SANTIAGO --- */
    --primary: #022E6F;
    --primary-dark: #011b42;
    --secondary: #219D92;
    --secondary-hover: #177a71;

    /* Neutros */
    --dark: #0a192f;
    --dark-grey: #1E1E1E;
    --medium-grey: #2C2C2C;
    --light-grey: #F4F6F8;
    --white: #ffffff;
    --white-transparent: rgba(255, 255, 255, 0.95);

    /* Texto */
    --text-main: #333333;
    --text-light: #555555;

    /* UI & Spacing */
    --shadow-sm: 0 4px 15px rgba(2, 46, 111, 0.08);
    --shadow-lg: 0 20px 50px rgba(2, 46, 111, 0.15);
    --radius: 12px;
    --container: 1200px;

    /* Fontes */
    --font-body: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* --- MODO ESCURO --- */

[data-theme="dark"] .logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    /* Opcional: deixa um pouco mais suave */
}

[data-theme="dark"] .img-front {
    filter: brightness(0) invert(1);
}


[data-theme="dark"] .floating-capsule {
    filter: brightness(0) invert(1);
}



[data-theme="dark"] {
    --primary: #5c9ce6;
    /* Azul mais legível no escuro */
    --primary-dark: #8ab8ee;
    --secondary: #219D92;

    --light-grey: #0b111a;
    --white: #161f2d;
    --white-transparent: rgba(22, 31, 45, 0.95);

    --text-main: #e6e6e6;
    --text-light: #b0b0b0;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-grey);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--container);
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);

}




/* --- TYPOGRAPHY --- */
.subtitle,
.subtitle-highlight {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--secondary);
}

.subtitle-highlight {
    color: var(--primary);
}


.text-content h2 {
    margin-bottom: 15px;
}

.text-content p {
    margin-bottom: 10px;
}

.text-content .check-list {
    margin-top: 10px;
    margin-bottom: 5px;
    /* Ajuste fino antes do botão */
}

.text-highlight {
    color: var(--secondary);
    font-style: italic;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

[data-theme="dark"] .section-header h2 {
    color: var(--text-main);
}

.divider-center {
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 20px auto;
    border-radius: 2px;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--primary);
    color: white;
    font-size: 0.8rem;
    padding: 10px 0;
}

[data-theme="dark"] .top-bar {
    background-color: #0d1624;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-social a {
    color: white;
    margin-left: 15px;
    font-size: 1rem;
}

.top-social a:hover {
    color: var(--secondary);
}

.top-info .address-link {
    color: white;
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    /* Remove o sublinhado padrão */
    transition: color 0.3s ease;
}

.top-info .address-link:hover {
    color: var(--secondary);
    /* Muda de cor ao passar o mouse */
    text-decoration: underline;
    /* Adiciona sublinhado para indicar clique */
}

/* --- HEADER --- */
header {
    background: var(--white-transparent);
    backdrop-filter: blur(10px);
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: 0.4s;
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 45px;
    width: auto;
    cursor: pointer;
    transition: 0.3s ease;

}

.logo:hover {
    transform: scale(1.1);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .nav-link {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 35px;
}

.tool-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary);
    transition: 0.3s;
}

[data-theme="dark"] .tool-btn {
    color: white;
}

.tool-btn:hover {
    color: var(--secondary);
    transform: rotate(15deg);
}

#mobile-btn {
    display: none;
}

.mobile-only .btn i {
    font-size: 1.5rem;
}

/* --- BOTÕES --- */
.btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(2, 46, 111, 0.3);
}

.btn-primary i {
    font-size: 1.2rem;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 157, 146, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-3px);
}

.btn-secondary i {
    font-size: 1.2rem;
}


.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

[data-theme="dark"] .btn-outline-light {
    border: 2px solid var(--text-main);
    color: var(--text-main);
    background: transparent;
}

[data-theme="dark"] .btn-outline-light:hover {
    background: white;
    color: var(--secondary);
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 40px;
    overflow: visible;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background-hero.png') center/cover no-repeat fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(2, 46, 111, 0.96) 0%, rgba(2, 46, 111, 0.85) 50%, rgba(33, 157, 146, 0.4) 100%);
    z-index: 2;
}

[data-theme="dark"] .hero-overlay {
    background: linear-gradient(120deg, rgba(1, 15, 36, 0.98) 0%, rgba(2, 46, 111, 0.8) 60%, rgba(33, 157, 146, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    margin-top: 0px;
}

.hero-text {
    max-width: 650px;
    margin-bottom: 80px;
}

.hero-tag {
    background: rgba(33, 157, 146, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid rgba(33, 157, 146, 0.5);
    backdrop-filter: blur(5px);
    display: inline-block;
    margin-bottom: 20px;
    color: #bbfcf7;
}

[data-theme="dark"] .hero-tag {
    color: white;
    background: rgba(251, 252, 252, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-text h1 {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
}


[data-theme="dark"] .btn-secondary {
    background: white;
    color: var(--secondary);
}

[data-theme="dark"] .btn-secondary:hover {
    background: white;
    color: var(--secondary-hover);
}

[data-theme="dark"] .fa-house-medical {
    color: white;
}

[data-theme="dark"] .fa-motorcycle {
    color: white;
}

[data-theme="dark"] .fa-certificate {
    color: white;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
    transition: 0.3s;
}

.badge-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.badge-item i {
    font-size: 1.4rem;
    color: var(--secondary);
}

.badge-item span {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.floating-capsule {
    position: absolute;
    z-index: 2;
    animation: float 6s ease-in-out infinite;

    /* Configuração para MOBILE (Padrão) */
    display: block;
    /* Agora aparece sempre! */
    right: 150px;
    /* Canto direito */
    bottom: 60px;
    /* Fica na parte de baixo do banner no mobile */
    top: auto;
    /* Ignora o topo no mobile */
}

.capsule-img {
    /* Tamanho menor no celular para não brigar com o texto */
    width: 70px;
    height: auto;
    opacity: 0.8;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.3));
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

@media (min-width: 992px) {
    .floating-capsule {
        right: 7%;
        top: 50%;
        /* Volta para o meio verticalmente */
        bottom: auto;
    }

    .capsule-img {
        width: 130px;
        /* Tamanho original grande */
        opacity: 1;
    }
}

.capsule-img {
    width: 120px;
    height: auto;
    opacity: 0.8;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.3));
}

/* --- ESTATÍSTICAS --- */
.stats-section {
    background: var(--white);
    padding: 50px 0;
    margin-top: -60px;
    position: relative;
    z-index: 4;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-box {
    text-align: center;
    border-right: 1px solid #eee;
}

.stat-box:last-child {
    border: none;
}

.stat-box strong {
    display: block;
    font-size: 2.8rem;
    color: var(--secondary);
    font-family: var(--font-body);
}

.stat-box span {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- SERVICES GRID (NOVO LAYOUT DE 6 CARDS) --- */
.services-grid {
    display: grid;
    /* Cria colunas responsivas: Cabem quantos cards de 300px couberem na tela */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
    /* Altura fixa para todos ficarem iguais */
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Efeito de Zoom na imagem ao passar o mouse */
.service-card:hover img {
    transform: scale(1.1);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(2, 46, 111, 0.95), rgba(2, 46, 111, 0.6), transparent);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    /* Gradiente cobre levemente a imagem toda para legibilidade */
}

.service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Só aparece no mobile */

/* --- SOBRE (SPLIT SCREEN) --- */
.bg-light-blue {
    background-color: #eaf4fa;
}

[data-theme="dark"] .bg-light-blue {
    background-color: #0d1624;
}

.split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.image-stack {
    position: relative;
    height: 500px;
}

.img-back {
    width: 85%;
    height: 90%;
    border-radius: var(--radius);
    position: absolute;
    top: 0;
    left: 0;
    filter: grayscale(100%);
    opacity: 0.4;
}

.img-front {
    width: 65%;
    height: auto;
    border-radius: var(--radius);
    position: absolute;
    bottom: 0;
    right: 0;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    top: 40px;
    right: 40px;
    background: var(--secondary);
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    animation: bounce 3s infinite;
}

.experience-badge .years {
    font-size: 1.8rem;
}

.experience-badge .text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.check-list i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.mt-3 {
    margin-top: 30px;
}

/* --- VALORES CARDS --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    border-top: 4px solid transparent;
    transition: 0.3s;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(33, 157, 146, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--secondary);
    font-size: 1.5rem;
    transition: 0.3s;
}

.feature-card:hover .icon-wrapper {
    background: var(--secondary);
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

[data-theme="dark"] .feature-card h3 {
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- MAPA --- */
.map-section {
    position: relative;
    height: 500px;
    width: 100%;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(10%);
}

.contact-overlay {
    position: absolute;
    top: 50px;
    left: 10%;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    z-index: 10;
    border-left: 5px solid var(--primary);
}

[data-theme="dark"] .contact-overlay {
    background: var(--medium-grey);
}

.contact-overlay h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

[data-theme="dark"] .contact-overlay h3 {
    color: white;
}

.contact-overlay p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.contact-overlay i {
    color: var(--secondary);
    margin-top: 5px;
}

.contact-overlay hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* --- FOOTER --- */
footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 80px;
}

[data-theme="dark"] footer {
    background: #01122b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.footer-brand h3 {
    color: white;
    margin-bottom: 15px;
}

.footer-newsletter p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-newsletter form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-newsletter input {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 0.9rem;
    color: white;
    background: transparent;
    width: 100%;
}

.footer-links h4,
.footer-newsletter h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.1);
}

/* --- WHATSAPP FLOATING BUTTON --- */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1ebc57;
}

[data-theme="dark"] .float-whatsapp {
    box-shadow: 2px 2px 6px #000;
    background: rgb(247, 247, 247);
    color: var(--secondary);
}


.my-float {
    margin-top: 0px;
}

.tech-bg {
    position: relative;
    /* O SEGREDO DA HARMONIA: */
    /* Começa com a cor da seção anterior (#eaf4fa) e suaviza para branco */
    background: linear-gradient(to bottom, #eaf4fa 0%, #ffffff 80%, #f8f9fa 100%);
    overflow: hidden;
    z-index: 1;
}

/* Modo Escuro: Mantém a harmonia com o azul profundo */
[data-theme="dark"] .tech-bg {
    /* Começa com o tom da seção anterior (escuro) e aprofunda levemente */
    background: linear-gradient(to bottom, #0d1624 0%, #0b111a 100%);
}

/* Orbes mais suaves para não brigar com o conteúdo */
.tech-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    /* Mais desfoque para ficar mais "nuvem" */
    opacity: 0.3;
    /* Mais sutileza */
    z-index: -1;
    animation: floatOrb 12s infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    /* Azul escuro da marca */
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary);
    /* Verde turquesa da marca */
    bottom: -50px;
    right: -50px;
}

/* Animação suave */
@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

/* Grid layout */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* --- CARTÃO DE VIDRO (GLASS CARD) --- */
.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    /* Branco Translúcido */
    backdrop-filter: blur(12px);
    /* O efeito de desfoque mágico */
    -webkit-backdrop-filter: blur(12px);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    /* Sombra suave colorida */
    transition: all 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Modo escuro do cartão */
[data-theme="dark"] .glass-card {
    background: rgba(22, 31, 45, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Efeito Hover Sofisticado: Levanta e brilha */
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px 0 rgba(33, 157, 146, 0.25);
    border-color: var(--secondary);
}

/* Borda gradiente animada (opcional, dá um toque muito tech) */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.glass-card:hover::before {
    transform: scaleX(1);
}

/* --- ÍCONE COM GLOW --- */
.icon-glow {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(33, 157, 146, 0.1), rgba(2, 46, 111, 0.05));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 25px;
    transition: 0.4s;
    border: 1px solid rgba(33, 157, 146, 0.2);
}

.glass-card:hover .icon-glow {
    background: var(--secondary);
    color: white;
    box-shadow: 0 0 20px rgba(33, 157, 146, 0.6);
    /* Brilho neon */
    transform: rotate(10deg) scale(1.1);
    border-color: transparent;
}

/* Tipografia dentro do card */
.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

[data-theme="dark"] .glass-card h3 {
    color: white;
}

.glass-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Estilização da lista de valores */
.values-list {
    width: 100%;
}

.values-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-light);
    font-size: 0.9rem;
}

[data-theme="dark"] .values-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.values-list li span {
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Correção da Fonte do Título na Seção Valores */
#valores .section-header h2 {
    font-family: var(--font-heading);
    /* Garante a Playfair Display */
    font-weight: 700;
    letter-spacing: -0.5px;
    /* Deixa as letras um pouco mais juntas (toque moderno) */
    color: var(--primary);
}

/* Garante a cor branca no título se estiver no modo escuro */
[data-theme="dark"] #valores .section-header h2 {
    color: white;
}


.legal-links a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* --- PÁGINAS LEGAIS (Termos e Política) --- */

/* Área principal do conteúdo */
.legal-main {
    padding-top: 40px;
    padding-bottom: 80px;
    min-height: 60vh;
    /* Garante que o footer não suba se o texto for curto */
}

/* Container do texto (efeito de documento) */
.legal-document {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-top: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .legal-document {
    background: var(--medium-grey);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tipografia do documento */
.legal-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 30px;
}

.legal-header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

[data-theme="dark"] .legal-header h1 {
    color: var(--white);
}

.legal-body {
    max-width: 800px;
    /* Limita a largura para leitura confortável */
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-main);
}

.legal-body h2 {
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

[data-theme="dark"] .legal-body h2 {
    color: var(--secondary);
}

.legal-body h3 {
    color: var(--text-main);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.legal-body p {
    margin-bottom: 15px;
    line-height: 1.8;
    /* Aumenta legibilidade */
    text-align: justify;
}

.legal-body ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-update-date {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 50px;
    font-style: italic;
}

/* --- BANNER DE COOKIES --- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    /* Começa escondido */
    left: 50%;
    /* Posiciona o início no meio da tela */
    transform: translateX(-50%);
    /* Recua 50% do tamanho dele para ficar EXATAMENTE no centro */

    width: 90%;
    /* Ocupa 90% da tela no mobile */
    max-width: 1100px;
    /* Trava o tamanho máximo no PC */

    margin-bottom: 20px;
    /* Espacinho do fundo */
    background-color: var(--white);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 20px 20px;
    border-radius: var(--radius);
    border-top: 4px solid var(--secondary);
    transition: bottom 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.cookie-banner.show {
    bottom: 0;
    /* Sobe para a tela */
}

/* O resto do CSS interno do banner pode manter igual */
.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.cookie-text i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.cookie-text a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

.cookie-actions .btn {
    white-space: nowrap;
}

/* Modo Escuro do Banner */
[data-theme="dark"] .cookie-banner {
    background-color: var(--medium-grey);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .cookie-text a {
    color: var(--secondary);
}

.email-link {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.email-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}



/* --- RESPONSIVE --- */
@media (max-width: 1024px) {


    .split-screen {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 768px) {

    .mobile-only {
        display: block;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
        padding: 10px 0px;
    }

    .mobile-only .btn {
        width: 80%;
        /* Deixa o botão bem largo para facilitar o toque */
        padding: 10px 10px;
        /* Mais alto */
        font-size: 1rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        /* Sombra para destaque */
        background-color: white !important;
        color: var(--secondary) !important;
        /* Texto fica verde */
        display: flex;
        /* Garante alinhamento do ícone */
    }

    .mobile-only .btn:active {
        background-color: #f0f0f0 !important;
        transform: scale(0.95);
    }

    .btn-primary {
        display: none;
    }

    /* Desabilitar Parallax no Mobile (Performance) */
    .hero-bg-image {
        background-attachment: scroll;
        background-image: url('background-hero-mobile.png');
    }

    .top-bar {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    #mobile-btn {
        display: block;
        font-size: 1.5rem;
        color: var(--primary);
        background-color: transparent;
        border: none;
    }

    [data-theme="dark"] #mobile-btn {
        color: white;
        background-color: transparent;
    }

    .nav-list {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: var(--secondary);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 50px;
        transition: 0.4s;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-list a {
        padding: 20px 20px;
        border-bottom: 1px solid #d8d8d86b;
        color: white;

    }

    .nav-list.active {
        right: 0;
    }

    [data-theme="dark"] .nav-list {
        background: #0d1624;
    }

    .nav-list .nav-link {
        font-size: 0.9rem;
        color: white;
    }

    [data-theme="dark"] .nav-list .nav-link {
        color: white;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: white;
        transform: scaleX(0);
        transform-origin: bottom left;
        transition: transform 0.3s ease-out;
    }

    .nav-link:hover::after {
        transform: scaleX(1);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-actions,
    .hero-badges {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .stat-box {
        border: none;
        border-bottom: 1px solid #eee;
        padding: 20px 0;
    }

    .split-screen {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .image-stack {
        height: 300px;
        margin-bottom: 0px;
    }

    .img-front {
        width: 55%;
    }

    .text-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 15px;
        color: var(--text-light);
        text-align: justify;

    }

    .services-grid {
        grid-template-columns: 1fr;
        /* Um card por linha no celular */
    }

    .service-card {
        height: 250px;
        /* Um pouco menor no celular */
    }

    .service-content {
        padding: 20px;
    }

    .experience-badge {
        top: 30px;
        right: 30px;
        width: 80px;
        height: 80px;
        font-size: 0.8rem;
    }

    .contact-overlay {
        position: relative;
        top: 0;
        left: 0;
        max-width: 100%;
        margin: -50px 20px 20px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .float-whatsapp {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .footer-bottom {
        padding: 40px 20px;
        padding-bottom: 60px;
        text-align: center;
        font-size: 0.85rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        /* Um em cima do outro */
        text-align: center;
        gap: 20px;
    }

    .legal-links {
        justify-content: center;
    }

    .legal-document {
        padding: 30px 20px;
    }

    .legal-header h1 {
        font-size: 1.8rem;
    }

    .legal-body p {
        text-align: left;
        /* Justificado no mobile pode criar buracos */
    }

    .cookie-banner {
        width: 95%;
        /* No celular aproveita mais espaço */
        margin-bottom: 10px;
        padding: 15px;
        /* Removemos o margin-left que estava causando o problema */
    }

    #cookie-banner .btn-primary {
        display: inline-flex !important;
        width: 100%;
        /* Garante que fica bonito e largo no dedo */
        margin-top: 10px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-text {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-actions {
        width: 100%;
        margin-top: 10px;
    }

    .cookie-actions .btn {
        width: 100%;
    }


}

/* --- ANIMATIONS --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: all 0.8s ease-out;
}


.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-scale {
    transform: scale(0.9);
}

.active-scroll {
    opacity: 1;
    transform: translate(0) scale(1);
}