/* ===================================
   RESET E CONFIGURAÇÕES GLOBAIS
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Garantir que divs com display: flex tenham alinhamento correto */
[style*="display: flex"],
[style*="display:flex"] {
    align-items: flex-start;
}

/* Corrigir grids que podem estar desalinhados */
[style*="display: grid"],
[style*="display:grid"] {
    align-items: start;
    width: 100%;
}

/* Corrigir containers de grid com colunas repetidas */
[style*="grid-template-columns: repeat"] {
    gap: var(--spacing-md);
    width: 100%;
}

/* Garantir que boxes com padding tenham width 100% */
[style*="padding:"] {
    box-sizing: border-box;
}

/* Corrigir max-width em parágrafos */
[style*="max-width"] p {
    max-width: 100%;
}

/* Corrigir alinhamento de texto centralizado */
[style*="text-align: center"],
[style*="text-align:center"] {
    width: 100%;
}

:root {
    /* Cores Modernas (Inspirado em Brasmaquinas Instagram - Verde) */
    --primary-color: #008000; /* Um verde mais vibrante, como o do Instagram */
    --secondary-color: #e6ffe6; /* Um verde muito claro para fundos */
    --accent-color: #ffc107; /* Amarelo para destaque, mantendo um toque de energia */
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #008000 0%, #006400 100%);
    --gradient-dark: linear-gradient(135deg, #212529 0%, #343a40 100%);

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);

    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    /* Tipografia */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Corrigir flex gaps */
.hero [style*="display: flex"],
.hero [style*="display:flex"] {
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Garantir que seções com background tenham padding correto em mobile */
section[style*="background"],
div[style*="background"] {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    box-sizing: border-box;
}

/* Corrigir botões em linha */
a.btn + a.btn {
    margin-left: 0;
}

/* Garantir que cards dentro de grids tenham mesma altura */
.cards-grid > * {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Corrigir espaçamento de títulos em seções especiais */
.highlight-box > div,
.form-section > div {
    width: 100%;
}

/* Garantir que highlight boxes não quebrem em mobile */
.highlight-box [style*="display: grid"],
.highlight-box [style*="display:grid"] {
    gap: var(--spacing-md);
}

@media (max-width: 600px) {
    .highlight-box [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Corrigir alinhamento da seção escola e outros highlight-box */
.highlight-box {
    width: 100%;
    box-sizing: border-box;
}

.highlight-box .cards-grid {
    width: 100%;
    gap: var(--spacing-md);
}

.highlight-box h2,
.highlight-box h3,
.highlight-box h4 {
    color: var(--text-light) !important;
}

.highlight-box p {
    color: rgba(255, 255, 255, 0.95) !important;
}

.highlight-box .section-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Garantir que divs dentro de highlight-box fiquem centralizados */
.highlight-box > div {
    width: 100%;
}

/* Ajustar grid dentro de highlight-box para mobile */
@media (max-width: 600px) {
    .highlight-box .cards-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-lg);
    }

    .highlight-box .cards-grid > div {
        padding: var(--spacing-md);
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
    }
}

/* Garantir que botões dentro de highlight-box fiquem bem posicionados */
.highlight-box .btn {
    margin-top: var(--spacing-md);
}

.highlight-box .text-center {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Mobile: botão em largura total */
@media (max-width: 600px) {
    .highlight-box .btn-large {
        width: 100%;
        max-width: 100%;
    }
}

/* Tablet e Desktop: botão com largura automática */
@media (min-width: 601px) {
    .highlight-box .btn-large {
        width: auto;
        min-width: 250px;
    }
}

/* Corrigir alinhamento de ícones/emojis grandes */
[style*="font-size: 3rem"] {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Garantir que formulários sejam 100% width */
form {
    width: 100%;
}

/* Corrigir botões com style="width: 100%" para manter em mobile */
.btn[style*="width: 100%"],
.btn[style*="width:100%"] {
    width: 100% !important;
}

@media (min-width: 600px) {
    .btn[style*="width: 100%"],
    .btn[style*="width:100%"] {
        width: auto !important;
        min-width: 200px;
    }
}

/* Corrigir gaps em divs flex do hero */
.hero-content [style*="display: flex"] {
    gap: var(--spacing-sm);
}

@media (min-width: 600px) {
    .hero-content [style*="display: flex"] {
        gap: var(--spacing-md);
    }
}

/* Garantir responsividade de imagens */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Corrigir overflow de texto em cards */
.card-content * {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Melhorar espaçamento em listas de features */
.card-features {
    padding-left: 0;
    margin-left: 0;
}

/* Garantir que sections tenham box-sizing correto */
section,
.container,
.highlight-box {
    box-sizing: border-box;
}

/* Corrigir alinhamento vertical de elementos centrados */
.text-center > * {
    margin-left: auto;
    margin-right: auto;
}

/* Prevenir overflow horizontal */
body,
html {
    overflow-x: hidden;
    width: 100%;
}

* {
    max-width: 100%;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Touch targets mínimos para mobile (44x44px) */
@media (max-width: 768px) {
    a,
    button,
    .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav a {
        min-height: 48px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* Corrigir heights em mobile */
@media (max-width: 600px) {
    [style*="height: 250px"],
    [style*="height:250px"] {
        height: 200px !important;
    }

    [style*="font-size: 3rem"],
    [style*="font-size:3rem"] {
        font-size: 2.5rem !important;
    }

    [style*="font-size: 2.5rem"],
    [style*="font-size:2.5rem"] {
        font-size: 2rem !important;
    }
}

/* Corrigir display: grid com minmax */
@media (max-width: 600px) {
    [style*="grid-template-columns"][style*="minmax"] {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 768px) {
    [style*="grid-template-columns"][style*="minmax"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Desktop */
@media (min-width: 769px) {
    [style*="grid-template-columns"][style*="minmax"] {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    }
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===================================
   TIPOGRAFIA
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600; /* Mais suave */
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
}

h3 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-gray);
}

/* ===================================
   CONTAINER E LAYOUT - MOBILE FIRST
   =================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

section {
    padding: clamp(3rem, 6vw, 5rem) 0;
    width: 100%;
}

/* ===================================
   HEADER E NAVEGAÇÃO - MOBILE FIRST
   =================================== */

.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px; /* Ajuste conforme necessário */
    width: auto;
    vertical-align: middle;
}

.logo span {
    color: var(--primary-color);
}

/* Menu Mobile First - Escondido por padrão */
.nav {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-normal);
    z-index: 999;
    overflow-y: auto;
}

.nav.active {
    left: 0;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    text-align: center;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.nav a.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.nav a.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: var(--spacing-xs);
    width: 40px;
    height: 40px;
}

/* ===================================
   HERO SECTION - MOBILE FIRST
   =================================== */

.hero {
    position: relative;
    background: var(--gradient-dark);
    color: var(--text-light);
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23008000" fill-opacity="0.25" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 640px;
}

.hero h1 {
    color: var(--text-light);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
}

.hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-note {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.hero-media img {
    width: min(100%, 420px);
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.hero--home {
    background: linear-gradient(135deg, rgba(10, 14, 10, 0.95) 0%, rgba(0, 61, 16, 0.92) 45%, rgba(10, 82, 32, 0.85) 100%);
}

.hero--home .hero-media {
    background: rgba(0, 0, 0, 0.25);
}

.hero--product {
    background: linear-gradient(135deg, rgba(12, 18, 12, 0.96) 0%, rgba(5, 45, 18, 0.92) 50%, rgba(20, 90, 40, 0.85) 100%);
}

.hero--product .hero-media img {
    width: min(100%, 360px);
}

@media (max-width: 767px) {
    .hero-content {
        justify-items: center;
        text-align: center;
    }

    .hero-copy {
        align-items: center;
    }

    .hero-media {
        order: 2;
        width: 100%;
        margin-top: var(--spacing-md);
    }
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: minmax(0, 1.2fr) minmax(260px, 420px);
    }
}

@media (min-width: 1200px) {
    .hero-content {
        grid-template-columns: minmax(0, 1.2fr) minmax(320px, 520px);
    }

    .hero-media img {
        width: min(100%, 460px);
    }
}

/* ===================================
   BOTÕES
   =================================== */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background: var(--primary-color) !important;
    color: var(--text-light) !important;
}

.btn-dark {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-dark:hover {
    background: #2c2c2c;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===================================
   CARDS E PRODUTOS - MOBILE FIRST
   =================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    background-color: var(--secondary-color);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.card-description {
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md) 0;
}

.card-features li {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xs);
    color: var(--text-gray);
}

.card-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: var(--spacing-xs);
}

/* ===================================
   FORMULÁRIO
   =================================== */

.form-section {
    background: var(--bg-light);
    padding: var(--spacing-xl) 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-success {
    display: none;
    text-align: center;
    padding: var(--spacing-lg);
}

.form-success h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   SEÇÕES ADICIONAIS
   =================================== */

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.highlight-box {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.highlight-box h2,
.highlight-box h3,
.highlight-box h4 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.highlight-box p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.highlight-box .cards-grid {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Garantir que section > highlight-box fique bem posicionado */
section > .highlight-box {
    margin: var(--spacing-lg) 0;
}

/* ===================================
   LAYOUTS VERTICAIS
   =================================== */

.section-block {
    padding-block: clamp(4rem, 8vw, 6rem);
}

section + section {
    margin-top: var(--spacing-lg);
}

.section-elevated {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 5vw, 3.5rem);
    box-shadow: var(--shadow-md);
}

.section-elevated .section-title,
.section-elevated .section-subtitle {
    text-align: center;
}

.layout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.layout-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.layout-actions--center {
    justify-content: center;
}

.layout-actions--stretch .btn {
    flex: 1 1 180px;
}

.stats-grid {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: clamp(2rem, 5vw, 3rem) 0;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    min-height: 160px;
    box-shadow: var(--shadow-sm);
}

.stat-card__value {
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-card__label {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

.stat-card__description {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.lead-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-gray);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
}

.feature-tile {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    height: 100%;
}

.feature-tile h3,
.feature-tile h4 {
    margin-bottom: var(--spacing-xs);
}

.feature-tile p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.6;
}

.icon-feature {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    min-height: 180px;
}

.icon-feature__icon {
    font-size: clamp(2.25rem, 6vw, 3rem);
    line-height: 1;
    display: inline-flex;
    margin-bottom: var(--spacing-sm);
}

.icon-feature h3 {
    margin-bottom: var(--spacing-xs);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    margin: clamp(2rem, 5vw, 3rem) 0;
}

.highlight-grid > div {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.highlight-grid > div h4 {
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.highlight-grid > div p {
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.metric-card__value {
    font-size: clamp(2.25rem, 6vw, 2.75rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.metric-card__label {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.content-narrow {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 600px) {
    .layout-actions {
        flex-direction: column;
    }

    .layout-actions .btn {
        width: 100%;
    }

    .icon-feature {
        min-height: 150px;
    }
}

@media (min-width: 1024px) {
    .layout-actions--stretch {
        justify-content: flex-start;
    }
}

/* ===================================
   ANIMAÇÕES E EFEITOS VISUAIS MODERNOS
   =================================== */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Parallax Effect for Hero */
.hero {
    animation: gradientShift 18s ease infinite;
    background-size: 220% 220%;
    background-position: center;
}

@media (min-width: 1024px) {
    .hero {
        background-attachment: fixed;
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.layout-actions {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-note {
    animation: fadeIn 1s ease-out 1s both;
}

/* Card Hover Effects com 3D Transform */
.card {
    transition: all var(--transition-normal), transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-image {
    overflow: hidden;
    position: relative;
    transition: var(--transition-slow);
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.card:hover .card-image::after {
    left: 100%;
}

/* Image Reveal Effect */
.card-image img {
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1) rotate(2deg);
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation for Cards */
.cards-grid .card:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.cards-grid .card:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cards-grid .card:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.cards-grid .card:nth-child(4) {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cards-grid .card:nth-child(5) {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.cards-grid .card:nth-child(6) {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Icon Features Animation */
.icon-feature {
    animation: fadeInUp 1s ease-out both;
    transition: all var(--transition-normal);
}

.icon-feature:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.icon-feature__icon {
    transition: var(--transition-normal);
    display: inline-block;
}

.icon-feature:hover .icon-feature__icon {
    transform: scale(1.2) rotate(10deg);
    animation: pulse 1s ease infinite;
}

/* Button Effects */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-size: 200% auto;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(46, 204, 113, 0.4);
}

.btn-outline {
    transition: all var(--transition-normal);
}

.btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
}

/* Section Titles Animation */
.section-title {
    animation: fadeInUp 0.8s ease-out both;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.8s ease;
}

.section-title.animated::after {
    width: 100px;
}

/* Gradient Text Effect */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* Glass Morphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Floating Animation for Images */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Loading Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Smooth Reveal on Scroll */
.reveal {
    position: relative;
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-left.active {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-right.active {
    transform: translateX(0);
}

.reveal-bottom {
    transform: translateY(50px);
}

.reveal-bottom.active {
    transform: translateY(0);
}

/* Highlight Box Enhanced */
.highlight-box {
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out both;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s linear infinite;
}

/* Form Input Focus Effects */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Stat Card Animation */
.stat-card {
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease-out both;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.stat-card__value {
    animation: pulse 2s ease-in-out infinite;
}

/* Feature Tile Hover */
.feature-tile {
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-tile::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 204, 113, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-tile:hover::after {
    left: 100%;
}

.feature-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

/* Parallax Sections */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   UTILITÁRIOS E HELPERS
   =================================== */

/* Texto */
.text-center {
    text-align: center;
}

.text-light {
    color: var(--text-light);
}

.text-accent {
    color: var(--secondary-color);
}

.text-gray {
    color: var(--text-gray);
}

.text-dark {
    color: var(--text-dark);
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

/* Espaçamentos */
.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-0 {
    margin-bottom: 0;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

/* Flex Utilities - Alinhamento Vertical */
.flex {
    display: flex;
}

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

.flex-row {
    flex-direction: row;
}

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

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

/* Width */
.w-full {
    width: 100%;
}

.max-w-full {
    max-width: 100%;
}

/* Display */
.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ===================================
   CORREÇÃO DE BOTÕES EM FLEX CONTAINERS
   =================================== */

/* Hero - Botões */
.hero [style*="display: flex"],
.hero [style*="display:flex"] {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
    align-items: center;
}

/* Cards - Botões inline */
.card-content [style*="display: flex"],
.card-content [style*="display:flex"] {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: auto;
    align-items: stretch;
}

.card-content [style*="display: flex"] .btn,
.card-content [style*="display:flex"] .btn {
    flex: 1;
    min-width: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile: Botões em coluna */
@media (max-width: 480px) {
    .card-content [style*="display: flex"],
    .card-content [style*="display:flex"] {
        flex-direction: column;
    }

    .card-content [style*="display: flex"] .btn,
    .card-content [style*="display:flex"] .btn {
        width: 100%;
    }
}

/* ===================================
   CORREÇÃO DE GRIDS INLINE
   =================================== */

/* Grids inline com display: grid */
[style*="display: grid"][style*="grid-template-columns"],
[style*="display:grid"][style*="grid-template-columns"] {
    display: grid;
    width: 100%;
    gap: var(--spacing-md);
    align-items: start;
}

/* Mobile: Forçar 1 coluna */
@media (max-width: 600px) {
    [style*="display: grid"][style*="grid-template-columns"],
    [style*="display:grid"][style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet: 2 colunas */
@media (min-width: 601px) and (max-width: 768px) {
    [style*="display: grid"][style*="repeat(auto-fit"],
    [style*="display:grid"][style*="repeat(auto-fit"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===================================
   CORREÇÃO DE SECTIONS COM BACKGROUNDS
   =================================== */

/* Sections com background e padding inline */
section[style*="background"],
div[style*="background"][style*="padding"] {
    width: 100%;
    box-sizing: border-box;
}

/* Garantir que padding não quebre layout */
[style*="padding:"][style*="border-radius"],
[style*="padding"][style*="border-radius"] {
    width: 100%;
    box-sizing: border-box;
}

/* ===================================
   CORREÇÃO DE BADGES/STATS
   =================================== */

/* Badges de estatísticas (40L, 50kg, etc) */
[style*="text-align: center"][style*="padding: 2rem"],
[style*="text-align:center"][style*="padding:2rem"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    text-align: center;
}

[style*="text-align: center"][style*="padding: 2rem"] h3,
[style*="text-align:center"][style*="padding:2rem"] h3 {
    margin: 0;
    line-height: 1;
}

/* ===================================
   CORREÇÃO DE MAX-WIDTH
   =================================== */

/* Divs com max-width devem ser centralizados */
[style*="max-width: 900px"],
[style*="max-width:900px"],
[style*="max-width: 800px"],
[style*="max-width:800px"],
[style*="max-width: 700px"],
[style*="max-width:700px"] {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    box-sizing: border-box;
}

/* ===================================
   CORREÇÃO ESPECÍFICA PARA BADGES DE STATS
   =================================== */

/* Overview badges - sempre alinhados */
section.container > [style*="display: grid"] {
    width: 100%;
    box-sizing: border-box;
}

/* Stats/Badges individuais */
section.container > [style*="display: grid"] > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 140px;
    padding: var(--spacing-md);
}

section.container > [style*="display: grid"] > div h3 {
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

section.container > [style*="display: grid"] > div p {
    margin-bottom: 0;
    font-weight: 600;
}

/* Mobile: Reduzir padding e altura */
@media (max-width: 600px) {
    section.container > [style*="display: grid"] > div {
        min-height: 100px;
        padding: var(--spacing-sm);
    }

    section.container > [style*="display: grid"] > div h3 {
        font-size: 2rem !important;
    }
}

/* ===================================
   CORREÇÃO PARA CARDS-GRID COM INLINE STYLES
   =================================== */

/* Cards-grid com grid-template-columns inline */
.cards-grid[style*="grid-template-columns"] {
    width: 100%;
}

@media (max-width: 600px) {
    .cards-grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .cards-grid[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===================================
   CORREÇÃO PARA SECTIONS COM BACKGROUND INLINE
   =================================== */

/* Sections dentro de container com background inline */
section.container[style*="background"] {
    width: calc(100% + var(--spacing-md) * 2);
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    box-sizing: border-box;
}

/* Mobile: Ajustar para não quebrar */
@media (max-width: 600px) {
    section.container[style*="background"] {
        padding: var(--spacing-lg) var(--spacing-md);
        margin: var(--spacing-lg) calc(-1 * var(--spacing-md));
    }
}

/* ===================================
   CORREÇÃO PARA PARÁGRAFOS COM INLINE STYLES
   =================================== */

/* Parágrafos com font-size e line-height inline */
[style*="max-width"] p[style*="font-size"],
div[style*="max-width"] p[style*="font-size"] {
    width: 100%;
    max-width: 100%;
}

/* ===================================
   CORREÇÃO PARA DIVS DE BENEFÍCIOS/FEATURES
   =================================== */

/* Divs dentro de highlight-box ou sections especiais */
.highlight-box > div[style*="display: grid"],
section > div[style*="display: grid"] {
    width: 100%;
}

.highlight-box > div[style*="display: grid"] > div,
section > div[style*="display: grid"] > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Quando está centralizado */
.highlight-box > div[style*="display: grid"] > div h3,
.highlight-box > div[style*="display: grid"] > div h4 {
    width: 100%;
}

/* ===================================
   CORREÇÃO PARA COMPARAÇÃO DE MODELOS
   =================================== */

/* Cards de comparação - sempre mesma altura */
section .cards-grid .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

section .cards-grid .card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

section .cards-grid .card ul {
    flex-grow: 1;
}

section .cards-grid .card .btn {
    margin-top: auto;
}

/* ===================================
   CORREÇÃO PARA HIGHLIGHT-BOX COM GRIDS INLINE
   =================================== */

/* Seções highlight-box.container (estrutura incorreta mas vamos corrigir via CSS) */
section.highlight-box.container,
section.container.highlight-box {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
    width: 100%;
    max-width: 1200px;
}

/* Grid dentro de highlight-box */
section.highlight-box > div[style*="display: grid"],
section.highlight-box div[style*="display: grid"] {
    display: grid;
    width: 100%;
    gap: var(--spacing-md);
}

/* Items do grid dentro de highlight-box */
section.highlight-box > div[style*="display: grid"] > div,
section.highlight-box div[style*="display: grid"] > div {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

section.highlight-box > div[style*="display: grid"] > div h3,
section.highlight-box div[style*="display: grid"] > div h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

section.highlight-box > div[style*="display: grid"] > div p,
section.highlight-box div[style*="display: grid"] > div p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
}

/* Mobile: 1 coluna */
@media (max-width: 600px) {
    section.highlight-box > div[style*="display: grid"],
    section.highlight-box div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-sm);
    }
}

/* Tablet: 2 colunas */
@media (min-width: 601px) and (max-width: 900px) {
    section.highlight-box > div[style*="display: grid"],
    section.highlight-box div[style*="display: grid"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Desktop: 3 colunas */
@media (min-width: 901px) {
    section.highlight-box > div[style*="display: grid"],
    section.highlight-box div[style*="display: grid"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ===================================
   CORREÇÃO GLOBAL PARA DIVS COM PADDING E TEXT-ALIGN CENTER
   =================================== */

/* Divs centralizados com padding (benefícios, stats, etc) */
div[style*="text-align: center"][style*="padding"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    height: 100%;
}

div[style*="text-align: center"][style*="padding"] h3,
div[style*="text-align: center"][style*="padding"] h4 {
    margin-bottom: var(--spacing-sm);
    width: 100%;
}

div[style*="text-align: center"][style*="padding"] p {
    margin: 0;
    width: 100%;
}

/* ===================================
   CORREÇÃO PARA SEÇÕES COM BACKGROUND E PADDING
   =================================== */

/* Seções com background: var(--bg-light) */
section[style*="background: var(--bg-light)"],
section[style*="background:var(--bg-light)"] {
    width: 100%;
    box-sizing: border-box;
}

/* Container dentro de sections com background */
section[style*="background"] .container,
section[style*="background"] > div {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================================
   CORREÇÃO PARA MARGIN INLINE
   =================================== */

/* Divs e sections com margin inline */
[style*="margin: 2rem 0"],
[style*="margin:2rem 0"],
[style*="margin: 3rem 0"],
[style*="margin:3rem 0"],
[style*="margin: 4rem 0"],
[style*="margin:4rem 0"] {
    width: 100%;
}

/* ===================================
   ALINHAMENTO VERTICAL FORÇADO
   =================================== */

/* Garantir que items de grids tenham alinhamento consistente */
[style*="display: grid"] > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Quando tem text-align: center, centralizar */
[style*="display: grid"] > div[style*="text-align: center"] {
    align-items: center;
    text-align: center;
}

/* H3 e H4 dentro de grids sempre com espaçamento consistente */
[style*="display: grid"] > div h3,
[style*="display: grid"] > div h4 {
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

[style*="display: grid"] > div p {
    margin: 0;
    line-height: 1.6;
}

/* ===================================
   CORREÇÃO PARA BOXES COM GRADIENT
   =================================== */

/* Divs com background: gradient-primary */
div[style*="background: var(--gradient-primary)"],
div[style*="background:var(--gradient-primary)"] {
    width: 100%;
    box-sizing: border-box;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

/* Grid dentro de gradient boxes */
div[style*="background: var(--gradient-primary)"] > div[style*="display: grid"],
div[style*="background:var(--gradient-primary)"] > div[style*="display: grid"] {
    width: 100%;
}

/* Items dentro de gradient grid */
div[style*="background: var(--gradient-primary)"] div[style*="display: grid"] > div {
    text-align: center;
}

div[style*="background: var(--gradient-primary)"] h3 {
    color: var(--text-light) !important;
    margin-bottom: var(--spacing-xs);
}

div[style*="background: var(--gradient-primary)"] p {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Mobile: Reduzir padding em gradient boxes */
@media (max-width: 600px) {
    div[style*="background: var(--gradient-primary)"],
    div[style*="background:var(--gradient-primary)"] {
        padding: var(--spacing-md);
    }

    div[style*="background: var(--gradient-primary)"] h3 {
        font-size: 1.75rem !important;
    }
}

/* ===================================
   CORREÇÃO FINAL - OVERFLOW E BOX-SIZING
   =================================== */

/* Garantir que NENHUM elemento quebre o layout */
section,
div,
article,
main {
    box-sizing: border-box;
}

/* Prevenir overflow horizontal em qualquer elemento */
section > *,
div > * {
    max-width: 100%;
}

/* Garantir que grids não ultrapassem container */
.container [style*="display: grid"],
section.container > [style*="display: grid"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ===================================
   OTIMIZAÇÕES MOBILE - TODAS AS PÁGINAS
   Mobile-First Design Principles
   =================================== */

/* Melhorias gerais de leitura em mobile */
@media (max-width: 768px) {

    /* === HERO SECTION === */
    .hero {
        min-height: 400px;
        padding: 2.5rem 0;
        margin-bottom: 2rem;
    }

    .hero-content {
        gap: 1.75rem;
    }

    .hero-copy {
        gap: 1.25rem;
    }

    .hero-media {
        padding: 1.5rem;
        max-width: 320px;
        margin-inline: auto;
    }

    .hero-media img {
        max-width: 280px;
    }

    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    /* === STATS GRID === */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2rem 0 2.5rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
        min-height: 140px;
        border-radius: 12px;
    }

    .stat-card__value {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        display: block;
    }

    .stat-card__label {
        font-size: 0.875rem;
        line-height: 1.4;
        margin: 0;
    }

    /* === SEÇÕES === */
    .section-block {
        padding-block: 3rem;
        margin-bottom: 1.5rem;
    }

    /* Aumentar espaçamento entre seções adjacentes */
    section + section {
        margin-top: 1.5rem;
    }

    .section-elevated {
        padding: 2rem 1.25rem;
        margin: 2rem -1rem;
        border-radius: 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.75rem;
        padding: 0 0.5rem;
        line-height: 1.6;
    }

    /* === CONTEÚDO === */
    .content-narrow {
        padding: 0 0.25rem;
    }

    .lead-text {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .lead-text:last-child {
        margin-bottom: 0;
    }

    /* === CARDS === */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .card {
        border-radius: 12px;
        margin-bottom: 0;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .card p {
        margin-bottom: 1rem;
    }

    .card-features {
        margin-bottom: 1.25rem;
        margin-top: 1rem;
    }

    .card-features li {
        padding: 0.625rem 0;
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .card-description {
        margin-bottom: 1.25rem;
    }

    /* === BOTÕES === */
    .layout-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .layout-actions .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .btn {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn + .btn {
        margin-top: 0;
    }

    /* === HIGHLIGHT BOX === */
    .highlight-box {
        padding: 2rem 1.25rem;
        margin: 2.5rem -1rem;
        border-radius: 0;
    }

    .highlight-box .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.75rem;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin: 2rem 0 1.5rem;
    }

    .highlight-grid > div {
        padding: 1.25rem;
        border-radius: 8px;
    }

    .highlight-grid h4 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

    .highlight-grid p {
        font-size: 0.9375rem;
        margin: 0;
        line-height: 1.6;
    }

    /* === ÍCONES DE FEATURES === */
    .icon-feature {
        min-height: 140px;
        padding: 1.5rem 1.25rem;
    }

    .icon-feature__icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .icon-feature h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .icon-feature p {
        font-size: 0.9375rem;
        margin: 0;
        line-height: 1.6;
    }
}

/* === OTIMIZAÇÕES PARA TELAS MUITO PEQUENAS === */
@media (max-width: 375px) {

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .stats-grid {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem 0.5rem;
        min-height: 120px;
    }

    .stat-card__value {
        font-size: 1.75rem;
    }

    .stat-card__label {
        font-size: 0.8125rem;
    }

    .card-content {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* === MELHORIAS DE TOUCH E INTERATIVIDADE === */
@media (hover: none) and (pointer: coarse) {

    /* Aumentar área de toque para botões */
    .btn,
    .nav a {
        min-height: 48px;
        padding: 0.875rem 1.25rem;
    }

    /* Remover hover effects em dispositivos touch */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }

    .btn-primary:hover {
        transform: none;
    }

    .icon-feature:hover {
        transform: none;
    }

    /* Melhorar feedback visual em tap */
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .card:active {
        opacity: 0.95;
    }
}

/* === MELHORIAS DE LEGIBILIDADE === */
@media (max-width: 768px) {

    /* Aumentar contraste e legibilidade */
    body {
        font-size: 16px;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Melhor espaçamento entre linhas */
    p, li {
        line-height: 1.65;
    }

    /* Garantir que textos não fiquem muito próximos das bordas */
    .container {
        padding: 0 1rem;
    }

    /* === FORMULÁRIOS === */
    .form-section {
        padding: 3rem 0;
        margin-top: 2rem;
    }

    .form-container {
        padding: 2rem 1.25rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        margin-bottom: 0.5rem;
        display: block;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.875rem 1rem;
    }

    /* === FOOTER === */
    .footer {
        padding: 3rem 0 2rem;
        margin-top: 3rem;
    }

    .footer-content {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }

    .footer-section h3 {
        margin-bottom: 1rem;
    }

    .footer-section p,
    .footer-section a {
        margin-bottom: 0.75rem;
    }

    /* === ESPAÇAMENTOS ADICIONAIS === */

    /* Espaçamento entre elementos de texto */
    h2 + p,
    h3 + p {
        margin-top: 0.75rem;
    }

    /* Espaçamento entre listas e conteúdo */
    ul + .btn,
    ul + .layout-actions {
        margin-top: 1.5rem;
    }

    /* Melhor espaçamento em parágrafos sequenciais */
    p + p {
        margin-top: 1rem;
    }
}

/* === OTIMIZAÇÕES DE PERFORMANCE === */
@media (max-width: 768px) {

    /* Reduzir animações pesadas em mobile */
    .card,
    .btn,
    .icon-feature {
        transition: all 0.2s ease;
    }

    /* Simplificar animações de entrada */
    .cards-grid .card {
        animation: fadeIn 0.4s ease-out both;
    }

    .cards-grid .card:nth-child(n) {
        animation-delay: 0s;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}

/* === ACESSIBILIDADE MOBILE === */
@media (max-width: 768px) {

    /* Garantir foco visível para navegação por teclado */
    .btn:focus,
    .nav a:focus {
        outline: 3px solid var(--secondary-color);
        outline-offset: 2px;
    }

    /* Melhorar contraste em links */
    a {
        text-decoration-skip-ink: auto;
    }

    /* Garantir que formulários sejam fáceis de usar */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Previne zoom automático no iOS */
        min-height: 48px;
    }
}

/* === MODO PAISAGEM === */
@media (max-width: 768px) and (orientation: landscape) {

    .hero {
        min-height: 320px;
        padding: 2rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .stat-card {
        min-height: 110px;
        padding: 1rem 0.75rem;
    }
}

/* === TABLETS (600px - 768px) === */
@media (min-width: 600px) and (max-width: 768px) {

    .section-block {
        padding-block: 3.5rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stats-grid {
        gap: 1.25rem;
    }

    .stat-card {
        padding: 1.75rem 1.25rem;
    }

    .card-content {
        padding: 1.75rem;
    }

    .highlight-box {
        padding: 2.5rem 2rem;
        margin: 3rem -1rem;
    }

    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

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

/* === MELHORIAS PARA DARK MODE === */
@media (prefers-color-scheme: dark) {
    /* Preparação para futuro suporte a dark mode */
}


/* Tablet - 600px e acima */
@media (min-width: 600px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .hero {
        min-height: 500px;
    }

    .hero p {
        font-size: 1.25rem;
        max-width: 600px;
    }

    .card-image {
        height: 220px;
    }
}

/* Desktop - 768px e acima */
@media (min-width: 768px) {
    :root {
        --spacing-md: 2rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Menu Desktop - horizontal */
    .nav {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        padding: 0;
        gap: var(--spacing-md);
        box-shadow: none;
        background: transparent;
        align-items: center;
    }

    .nav a {
        margin-bottom: 0;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .nav-toggle {
        display: none;
    }

    .hero {
        min-height: 600px;
        padding: var(--spacing-xl) 0;
    }

    .card-image {
        height: 250px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .form-container {
        padding: var(--spacing-lg);
    }
}

/* Desktop Large - 1024px e acima */
@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .btn-large {
        padding: 1.25rem 2.5rem;
    }
}

/* Desktop Extra Large - 1200px e acima */
@media (min-width: 1200px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}
