/* =====================================================
   STYLE.CSS  |  AI Brasil – Tema: Criativo & Vibrante
   Tipografia primária: Roboto (titulos) / Lato (texto)
   ===================================================== */

/* ---------- 1. RESET BÁSICO & ROOT VARS ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-normal);
    background: #ffffff;
    overflow-x: hidden;
}

:root {
    /* Paleta Viva (Bright) */
    --color-primary: #00C4FF;
    --color-primary-dark: #0092CC;
    --color-secondary: #FF0066;
    --color-secondary-dark: #CC0052;
    --color-accent: #6FFF00;
    --color-gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --color-bg-light: #F5F9FF;
    --color-bg-dark: #111827;

    --text-normal: #333333;
    --text-light: #FFFFFF;

    /* Efeitos */
    --radius: 12px;
    --shadow-3d: 0 8px 20px rgba(0,0,0,0.15);
    --transition-fast: 0.3s ease;
}

/* ---------- 2. UTILIDADES ---------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 24px;
}
.is-two-thirds { width: 66.666%; }

.text-center        { text-align: center; }
.text-light         { color: var(--text-light); }
.mt-2               { margin-top: 0.5rem; }
.mt-4               { margin-top: 1rem; }
.mb-4               { margin-bottom: 1rem; }

/* ---------- 3. TIPOGRAFIA ---------- */
h1, h2, h3, h4, h5 {
    font-family: 'Roboto', sans-serif;
    color: var(--text-normal);
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.15; }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .75rem; text-align:center; }
h3 { font-size: 1.5rem; margin-bottom: .5rem; }

/* ---------- 4. NAVEGAÇÃO FIXA ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    z-index: 90;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-secondary);
    text-decoration: none;
}
.main-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
}
.main-nav a {
    font-weight: 600;
    color: var(--text-normal);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
}
.main-nav a::after {
    content:'';
    position:absolute; bottom:-6px; left:0;
    width:0; height:2px;
    background: var(--color-primary);
    transition: width var(--transition-fast);
}
.main-nav a:hover { color: var(--color-primary-dark); }
.main-nav a:hover::after { width: 100%; }

/* ---------- 5. BURGER (MOBILE) ---------- */
.burger { display:none; cursor:pointer; }
.burger span {
    display:block; width:24px; height:3px; background:var(--text-normal);
    margin:4px 0; transition: var(--transition-fast);
}

/* ---------- 6. HERO SECTION ---------- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text-light);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.hero-section::before {
    content:'';
    position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.6) 100%);
}
.hero-section .container {
    position: relative;
    z-index: 1;
}
.hero-title { color:#FFFFFF; text-shadow:0 3px 8px rgba(0,0,0,0.5); }
.hero-buttons { margin-top:2rem; display:flex; gap:1rem; flex-wrap:wrap; }

/* ---------- 7. BOTÕES GLOBAL ---------- */
.btn,
button,
input[type='submit'] {
    --bg: var(--color-primary);
    --bg-hover: var(--color-primary-dark);
    --txt: #fff;
    display:inline-block;
    padding:14px 32px;
    font-family:'Roboto',sans-serif;
    font-weight:700;
    border:none;
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--txt);
    cursor: pointer;
    perspective: 1000px;
    transition: transform .25s ease, box-shadow .25s ease, background var(--transition-fast);
    box-shadow: var(--shadow-3d);
}
.btn-secondary { --bg: var(--color-secondary); --bg-hover: var(--color-secondary-dark); }
.btn-link {
    background:none;
    color:var(--color-primary);
    padding:0;
    font-weight:700;
}
.btn-link:hover { text-decoration: underline; }

.btn:hover,
button:hover,
input[type='submit']:hover {
    background: var(--bg-hover);
    transform: translateY(-4px) rotateX(6deg);
}

/* ---------- 8. STATISTICS BAR ---------- */
.stats-bar {
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:2rem;
    position:absolute; bottom:5%; left:50%;
    transform:translateX(-50%);
    justify-content:center;
    z-index:1;
}
.stat-widget {
    background:rgba(0,0,0,0.55);
    padding:1rem 2rem;
    border-radius:var(--radius);
    color:#fff;
    text-align:center;
    backdrop-filter:blur(3px);
}
.stat-number { font-family:'Roboto'; font-size:2rem; font-weight:700; display:block; }

/* ---------- 9. SEÇÕES PADRÃO ---------- */
.section {
    padding: 80px 0;
}
.parallax,
.parallax-light {
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}
.parallax::before,
.parallax-light::before {
    content:'';
    position:absolute; inset:0;
    background:rgba(0,0,0,0.45);
}
.parallax-light::before { background:rgba(255,255,255,0.75); }
.parallax .container,
.parallax-light .container {
    position:relative; z-index:1;
}

/* ---------- 10. CARDS UNIVERSAIS ---------- */
.card {
    background:#fff;
    border-radius: var(--radius);
    overflow:hidden;
    box-shadow: var(--shadow-3d);
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    transition: transform .4s cubic-bezier(.19,1,.22,1);
}
.card:hover { transform:translateY(-6px) rotateX(4deg) rotateY(-2deg); }
.card-image {
    width:100%;
    height:220px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}
.card-image img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.card-content { padding:24px; }

/* ---------- 11. GRIDs ESPECÍFICOS ---------- */
.process-steps,
.projects-grid,
.team-grid,
.news-grid,
.resources-list {
    display:grid;
    gap: 2rem;
}
.process-steps           { grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.projects-grid           { grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); }
.team-grid               { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.news-grid               { grid-template-columns: repeat(auto-fit, minmax(360px,1fr)); }
.resources-list          { grid-template-columns: 1fr; }

/* ---------- 12. FORMS ---------- */
form {
    display:flex;
    flex-direction:column;
    gap:1rem;
}
input[type=text],
input[type=email],
textarea {
    width:100%;
    padding:14px 18px;
    border:2px solid #e0e0e0;
    border-radius:var(--radius);
    font-family:inherit;
    resize:vertical;
    transition:border var(--transition-fast), box-shadow var(--transition-fast);
}
input:focus,
textarea:focus {
    outline:none;
    border-color:var(--color-primary);
    box-shadow:0 0 0 4px rgba(0,196,255,.25);
}

/* ---------- 13. FOOTER ---------- */
.site-footer {
    background: var(--color-bg-dark);
    color:#d1d5db;
    padding: 60px 0 40px;
}
.footer-links ul,
.footer-social ul {
    list-style:none;
    padding:0;
    display:flex;
    flex-wrap:wrap;
    gap:16px;
}
.site-footer a {
    color:#d1d5db;
    text-decoration:none;
    transition:color var(--transition-fast);
}
.site-footer a:hover { color:var(--color-accent); }
.footer-social p { margin-right:12px; display:inline-block; }

/* ---------- 14. LINKS "LER MAIS" ---------- */
.btn-link,
a.btn-link {
    font-size:.95rem;
    letter-spacing:.3px;
    position:relative;
}
.btn-link::after {
    content:'→';
    margin-left:4px;
    transition:margin-left var(--transition-fast);
}
.btn-link:hover::after { margin-left:8px; }

/* ---------- 15. SUCCESS PAGE ---------- */
.success-page {
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--color-gradient);
    color:#fff;
    text-align:center;
}

/* ---------- 16. PRIVACY & TERMS PAGES ---------- */
.legal-page {
    padding-top:100px; /* evita sobreposição do header fixo */
}

/* ---------- 17. ANIMAÇÕES 3D (KEYFRAMES) ---------- */
@keyframes float {
  0% { transform: translateY(0px) rotateX(0deg); }
  50% { transform: translateY(-12px) rotateX(5deg); }
  100% { transform: translateY(0px) rotateX(0deg); }
}
.card:hover { animation: float 6s ease-in-out infinite; }

/* ---------- 18. RESPONSIVO ---------- */
@media (max-width: 992px) {
    .main-nav { display:none; }
    .burger { display:block; }
}
@media (max-width: 600px) {
    h1 { font-size:2rem; }
    .hero-buttons .btn { width:100%; text-align:center; }
}

/* ---------- 19. PLACEHOLDER SOCIAL ICONS (TEXT ONLY) ---------- */
.footer-social ul li {
    position:relative;
}
.footer-social a::before {
    content:'◆';
    color:var(--color-accent);
    margin-right:6px;
}