/* ===================================
   GENTE DA SERRA - LANDING PAGE
   High Conversion Landing Page Styles
   =================================== */

/* ===================================
   GLOBAL STYLES & RESET
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary-color: #2d5016;
    --primary-dark: #3e5136;
    --primary-light: #4a7c2a;

    /* Secondary Colors — AMARELO PADRÃO */
    --secondary-color: #d68910;
    --secondary-dark: #b87209;
    --secondary-light: #f5a623;

    /* Neutral Colors */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-light: #f9faf8;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;

    /* Accent Colors */
    --accent-green: #4CAF50;
    --accent-blue: #2196F3;
    --accent-red: #f44336;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(45, 80, 22, 0.95) 0%, rgba(74, 124, 42, 0.85) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.7;
    /* FIX: previne scroll horizontal global */
    overflow-x: hidden;
    max-width: 100vw;
    background-color: var(--bg-white);
}

/* FIX: container seguro em qualquer tela */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem); /* FIX: padding responsivo sem media query extra */
    width: 100%;
    box-sizing: border-box;
}

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

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

ul { list-style: none; }

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #eeebdc;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

.logo i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.nav-menu a:hover {
    color: var(--secondary-color) !important;
    background: var(--bg-light);
}

.btn-nav {
    background: var(--secondary-color);
    color: var(--bg-white) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    background-image: url('../img/associacao-cannabis-agsmantiqueira.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(214, 137, 16, 0.15), transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-sm); /* FIX: padding lateral no mobile */
    width: 100%;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 4rem); /* FIX: mínimo menor para telas pequenas */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
}

.highlight {
    color: var(--secondary-light);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    /*font-weight: 300;*/
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

/* FIX: hero-stats com colunas adaptativas seguras */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas no desktop */
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    width: 100%;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 0; /* FIX: grid blowout */
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* FIX: responsivo */
    font-weight: 700;
    color: var(--secondary-light);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--bg-white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===================================
   BUTTONS — Amarelo padrão
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
    justify-content: center;
    text-decoration: none;
    white-space: normal;        /* FIX mobile: permite quebra em botões longos */
    word-break: break-word;
    max-width: 100%;            /* FIX: botão não estoura container */
    box-sizing: border-box;
}

.btn-primary {
    background: var(--gradient-secondary); /* ← AMARELO */
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--bg-white);
}

.btn-primary:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: #eeebdc;
    color: var(--primary-color);
    border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--secondary-color);
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ===================================
   SECTIONS
   =================================== */
section {
    padding: var(--spacing-xl) 0;
}

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

.section-title {
    font-size: clamp(1.6rem, 4vw, 3rem); /* FIX: mínimo menor */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-secondary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about { background: var(--bg-light); }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

/* FIX: min-width:0 nos filhos do grid para não vazar */
.about-text,
.about-image { min-width: 0; }

.about-text .lead {
    font-size: 1.1rem;
    text-align: justify;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.about-features {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-secondary);
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
}

/* ===================================
   BENEFITS SECTION
   =================================== */
.benefits { background: var(--bg-white); }

/* FIX: minmax com min() para não estourar em mobile */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--spacing-md);
}

.benefit-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition-normal);
    text-align: center;
    min-width: 0; /* FIX */
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.benefit-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bg-white);
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.benefit-card p { color: var(--text-secondary); }

/* ===================================
   HOW IT WORKS SECTION
   =================================== */
.how-it-works { background: var(--bg-light); }

.steps-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 50px; /* FIX: alinhado ao centro do círculo de 100px */
    top: 40px;
    bottom: 40px;
    width: 3px;
    background: var(--border-color);
}

/* FIX: coluna da esquerda = tamanho do step-number */
.step-item {
    display: grid;
    grid-template-columns: 90px 1fr; /* sincronizado com step-number 80px + margem */
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    position: relative;
    align-items: start;
    min-width: 0; /* FIX */
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.step-content {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    min-width: 0; /* FIX */
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    margin: 0;
}

.step-list {
    list-style: none;
    padding: 0;
}

.step-list li {
    color: var(--text-secondary);
    margin-bottom: 6px;
    padding-left: 4px;
}

.step-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===================================
   IMPACT SECTION
   =================================== */
.impact { background: var(--bg-white); }

/* FIX: minmax seguro */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.impact-stat-card {
    background: var(--gradient-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    min-width: 0; /* FIX */
}

.impact-stat-card:hover { transform: translateY(-5px); }

.impact-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.impact-label {
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.5;
}

.testimonials { margin-top: var(--spacing-xl); }

.testimonials h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
}

/* FIX: minmax seguro */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    min-width: 0; /* FIX */
}

.testimonial-stars {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    background: var(--gradient-hero);
    background-image: linear-gradient(135deg, rgba(45, 80, 22, 0.95) 0%, rgba(74, 124, 42, 0.85) 100%);
    padding: var(--spacing-xl) 0;
}

.cta-content {
    text-align: center;
    color: var(--bg-white);
    margin: 0 auto;
    padding: 0 var(--spacing-sm); /* FIX: padding lateral mobile */
}

.cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 3rem); /* FIX */
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
}

.cta-content p {
    font-size: clamp(1rem, 2vw, 1.3rem); /* FIX */
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    background: var(--bg-light);
    padding: 80px 0; /* FIX: padding horizontal removido — container cuida disso */
}

.contact .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* FIX: grid seguro */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 30px;
    align-items: start;
}

/* Painel esquerdo */
.contact-info {
    background: var(--bg-white);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-width: 0; /* FIX */
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    min-width: 0; /* FIX */
}

.contact-item i {
    font-size: 1.4rem;
    color: var(--primary-color);
    width: 30px;
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--text-secondary);
    word-break: break-all; /* FIX: email longo não vaza */
}

.contact-item a:hover { color: var(--primary-color); }

.contact-item span { color: var(--text-secondary); }

.social-links h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.social-icon {
    width: 46px;
    height: 46px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.2rem;
    transition: var(--transition-normal);
    text-decoration: none;
    flex-shrink: 0;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--bg-white);
}

/* Painel direito — formulário */
.contact-form-wrapper {
    background: var(--bg-white);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0; /* FIX */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* ===================================
   FORM GROUPS
   =================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 18px;
    min-width: 0; /* FIX */
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95em;
}

/* FIX: inputs 100% da largura sem transbordar */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none; /* FIX iOS inputs */
    appearance: none;
}

.form-group select {
    -webkit-appearance: auto;
    appearance: auto;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-group textarea { resize: vertical; }

/* ===================================
   DOCUMENTOS — ÁREA DE UPLOAD
   =================================== */
.associacao-fields {
    background: linear-gradient(135deg, #f0f7e8, #e8f5d6);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* FIX */
}

.file-upload-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 6px;
    flex-wrap: wrap; /* FIX: não quebra em linha */
}

.file-upload-section h4 i { color: var(--secondary-color); }

.file-help-global {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.83em;
    margin-bottom: 18px;
    flex-wrap: wrap; /* FIX */
    line-height: 1.4;
}

.file-help-global i {
    color: var(--primary-light);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Campo individual de arquivo */
.file-upload-group {
    background: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden; /* FIX */
    min-width: 0;
}

.file-upload-group:last-child { margin-bottom: 0; }

.file-upload-group:hover {
    border-color: var(--primary-light);
    box-shadow: 0 3px 12px rgba(45, 80, 22, 0.10);
}

.file-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 0.93em;
    color: var(--primary-color);
    margin-bottom: 10px;
    cursor: default;
    flex-wrap: wrap; /* FIX: label longo não quebra layout */
    line-height: 1.4;
}

.file-label i {
    color: var(--secondary-color);
    font-size: 1.1em;
    flex-shrink: 0;
}

/* FIX: input de arquivo nativo 100% responsivo */
.file-input-native {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9em;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    transition: border-color var(--transition-normal);
    /* FIX iOS: não deixa o input exceder a largura do pai */
    min-width: 0;
    /* FIX iOS/Android: impede overflow horizontal em inputs de arquivo */
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-input-native:hover { border-color: var(--primary-light); }

/* Botão interno do file input — amarelo padrão */
.file-input-native::-webkit-file-upload-button {
    background: var(--gradient-secondary);
    color: var(--bg-white);
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85em;
    font-family: var(--font-primary);
    font-weight: 600;
    margin-right: 10px;
    transition: opacity 0.2s;
    white-space: nowrap; /* FIX */
}

.file-input-native::-webkit-file-upload-button:hover { opacity: 0.88; }

/* FIX: preview do arquivo */
.file-preview {
    display: none;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    background: #d4edda;
    border-left: 4px solid #28a745;
    border-radius: var(--radius-md);
    font-size: 0.87em;
    color: #155724;
    word-break: break-word;    /* FIX: nomes longos não vazam */
    overflow-wrap: break-word; /* FIX */
}

.file-preview.show { display: flex; }

.file-preview i {
    color: #28a745;
    font-size: 1.1em;
    flex-shrink: 0;
    margin-top: 2px;
}

.file-preview span {
    flex: 1;
    min-width: 0;             /* FIX: span flex não vaza */
    overflow-wrap: break-word;
}

.remove-file {
    background: none;
    border: none;
    color: var(--accent-red);
    cursor: pointer;
    font-size: 1.05em;
    padding: 2px 5px;
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.remove-file:hover { color: #c82333; }

/* ===================================
   CHECKBOX DECLARAÇÃO DE VERACIDADE
   =================================== */
.checkbox-group {
    background: #fffaf0;
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 19px;
    height: 19px;
    min-width: 19px; /* FIX: não encolhe */
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-text {
    color: #744210;
    font-size: 0.92em;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0; /* FIX */
}

.checkbox-text i {
    color: var(--secondary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===================================
   FORM MESSAGES
   =================================== */
.form-message {
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
    display: none;
    margin-top: 16px;
    font-size: 0.95em;
    word-break: break-word; /* FIX */
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    display: block;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--primary-dark);
    color: var(--bg-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-logo i {
    font-size: 2rem;
    color: var(--secondary-light);
}

.footer-column p {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-column h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-light);
    font-weight: 600;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column ul a {
    opacity: 0.9;
    transition: var(--transition-normal);
}

.footer-column ul a:hover {
    opacity: 1;
    padding-left: 0.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
    flex-wrap: wrap; /* FIX */
}

.newsletter-form input {
    flex: 1;
    min-width: 180px; /* FIX */
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
}

.newsletter-form button {
    background: var(--secondary-color);
    color: var(--bg-white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.newsletter-form button:hover { background: var(--secondary-dark); }

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.9em;
}

/* ===================================
   SCROLL TO TOP
   =================================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { transform: translateY(-3px); }

/* ===================================
   ANIMATIONS
   =================================== */
.animate-fade-in { animation: fadeIn 0.8s ease-out; }
.animate-fade-in-delay { animation: fadeIn 0.8s ease-out 0.3s backwards; }
.animate-fade-in-delay-2 { animation: fadeIn 0.8s ease-out 0.6s backwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===================================
   VIDEO SECTION
   =================================== */
.video-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    background: #1a1a1a;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
}

.video-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    color: #ffffff;
    padding: 0 var(--spacing-sm); /* FIX: padding lateral */
}

/* ===================================
   GALLERY (About Swiper)
   =================================== */
.gallery-wrap {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(48, 79, 48, 0.4);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.goverlay { background: rgba(48, 79, 48, 0.7) !important; }

.main-swiper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.main-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-swiper .swiper-button-prev,
.main-swiper .swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    transition: transform 0.15s ease, background 0.15s ease;
    opacity: 0.95;
}

.main-swiper .swiper-button-prev:hover,
.main-swiper .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.50);
    transform: scale(1.03);
}

.main-swiper .swiper-button-prev::after,
.main-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}

.thumbs-swiper {
    padding: 12px 12px 14px;
    background: rgba(48, 79, 48, 0.04);
}

.thumbs-swiper .swiper-slide {
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0.65;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
    border: 1px solid rgba(48, 79, 48, 0.08);
}

.thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    transform: translateY(-1px);
    border-color: rgba(48, 79, 48, 0.22);
}

.thumbs-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===================================================
   RESPONSIVE — Tablet (≤ 992px)
   =================================================== */
@media (max-width: 992px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2.5rem;
    }

    .about-content { grid-template-columns: 1fr; }

    .gallery-wrap {
        max-width: 100%;
        margin-left: 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 28px 22px;
    }

    .steps-timeline::before { left: 40px; }

    .step-item { grid-template-columns: 80px 1fr; }

    .step-number {
        width: 65px;
        height: 65px;
        font-size: 1.4rem;
    }
}

/* ===================================================
   RESPONSIVE — Mobile (≤ 768px)
   =================================================== */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-lg: 2rem;
    }

    /* Nav mobile */
    .mobile-menu-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active { left: 0; }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: var(--spacing-sm);
    }

    /* Hero */
    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn-lg { width: 100%; }
    .hero-stats { grid-template-columns: 1fr; } /* 1 coluna em mobile */
    .hero-content { padding-left: var(--spacing-sm); padding-right: var(--spacing-sm); }

    /* Grids — 1 coluna */
    .benefits-grid,
    .testimonials-grid { grid-template-columns: 1fr; }
    .impact-stats { grid-template-columns: repeat(2, 1fr); } /* 2 colunas em mobile médio */

    /* Footer */
    .footer-content { grid-template-columns: 1fr; }

    /* Vídeo */
    .video-section {
        height: 50vh;
        min-height: 350px;
        background-image: url('/img/video-poster.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .background-video { display: none; }

    /* Contact */
    .contact { padding: 50px 0; } /* FIX: sem padding horizontal — container cuida */

    .contact-info,
    .contact-form-wrapper {
        padding: 22px 16px;
        border-radius: var(--radius-md);
    }

    .contact-info h3 { font-size: 1.25em; }

    /* Formulário */
    .associacao-fields { padding: 16px 12px; }

    .file-upload-group { padding: 12px 10px; }

    .file-input-native {
        font-size: 0.8em;
        padding: 7px 8px;
    }

    .file-input-native::-webkit-file-upload-button {
        padding: 5px 10px;
        font-size: 0.78em;
        margin-right: 8px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* FIX iOS: impede zoom automático */
        padding: 10px 12px;
    }

    .btn-primary { padding: 13px 18px; }

    .checkbox-text { font-size: 0.87em; }

    /* Step */
    .steps-timeline::before { display: none; }

    .step-item {
        grid-template-columns: 60px 1fr;
        gap: 14px;
    }

    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
    }

    /* Step actions */
    .step-actions {
        flex-direction: column;
        gap: 10px;
    }

    .step-actions .btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    /* Gallery */
    .gallery-wrap { max-width: 100%; }
    .thumbs-swiper .swiper-slide { height: 52px; }
}

/* ===================================================
   RESPONSIVE — Mobile pequeno (≤ 480px)
   =================================================== */
@media (max-width: 480px) {
    .container { padding: 0 0.875rem; } /* FIX: padding menor em telas muito estreitas */

    .hero-content { padding: var(--spacing-md) var(--spacing-xs); padding-top:100px; }

.hero-subtitle {
    color: #1a4020;
}
    .video-section {
        height: 40vh;
        min-height: 300px;
    }

    /* Steps em coluna */
    .step-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step-number { margin: 0 auto var(--spacing-sm); }

    .step-content { text-align: left; }

    /* Título menor */
    .section-title { font-size: 1.3rem; }

    /* Impact em coluna única em telas muito pequenas */
    .impact-stats { grid-template-columns: 1fr; }

    /* Hero stats — garantia 1 coluna */
    .hero-stats { grid-template-columns: 1fr; }

    .file-label { font-size: 0.88em; }

    /* Botão de arquivo em linha completa */
    .file-input-native {
        font-size: 0.78em;
    }

    .file-input-native::-webkit-file-upload-button {
        padding: 4px 8px;
        font-size: 0.75em;
        display: block;
        margin-bottom: 6px;
        margin-right: 0;
    }
}

/* ===================================================
   RESPONSIVE — Extra pequeno (≤ 360px)
   =================================================== */
@media (max-width: 360px) {
    .contact { padding: 40px 0; } /* FIX: sem padding lateral duplicado */

    .contact-info,
    .contact-form-wrapper { padding: 14px 10px; }

    .associacao-fields { padding: 12px 8px; }

    .file-upload-group { padding: 10px 8px; }

    .checkbox-text { font-size: 0.83em; }

    .btn { font-size: 0.88em; padding: 0.75rem 1rem; }

    /* FIX 360: inputs maiores para facilitar toque */
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 16px; padding: 10px 10px; }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .background-video { display: none; }
}

:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    :root {
        --primary-color: #1a3009;
        --text-secondary: #333333;
    }
}

@media (prefers-reduced-data: reduce) {
    .background-video { display: none; }
}
