/*
  Padrão do Projeto
  - Paleta: #FFCC29 (amarelo), #F58634 (laranja)
  - Tipografia: Poppins
  - Layout: claro, leve, mobile-first
  - Componentes: header fixo, footer, botões, cards, grid, slider
*/

/* Fonte da marca: Euromode */
@font-face {
  font-family: 'Euromode';
  src: url('../fonts/euron.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Euromode';
  src: url('../fonts/eurob.TTF') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Euromode';
  src: url('../fonts/euroi.TTF') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --brand-yellow: #FFCC29;
  --brand-orange: #F58634;
  --text: #1A1A1A;
  --muted: #666;
  --bg: #ffffff;
  --bg-soft: #FAFAFA;
  --border: #eee;
  --shadow: 0 10px 20px rgba(0,0,0,.06);
  --font-brand: 'Euromode', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Utilitários */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { font-size: 2rem; margin: 0 0 1rem; }
.section-lead { color: var(--muted); margin-bottom: 2rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; box-shadow: var(--shadow); }
.card-title { margin: 0 0 .5rem; font-size: 1.125rem; }
.card-text { color: var(--muted); }

.btn { display: inline-block; padding: .75rem 1.25rem; border-radius: 10px; text-decoration: none; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus { outline: 2px solid var(--brand-orange); outline-offset: 2px; }
.btn-primary { background: var(--brand-orange); color: #fff; }
.btn-secondary { background: var(--brand-yellow); color: #1A1A1A; }
.btn-outline { border: 2px solid var(--brand-orange); color: var(--brand-orange); background: transparent; }
.btn-small { padding: .5rem .75rem; font-size: .9rem; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,.04); z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--text); text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.logo-mark { display: inline-block; width: 20px; height: 20px; background: linear-gradient(135deg, var(--brand-yellow), var(--brand-orange)); border-radius: 4px; }
.logo-text { letter-spacing: .2px; font-family: var(--font-brand); }
.logo-img { height: clamp(26px, 6vw, 40px); width: auto; display: block; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.08)); }
.nav { display: flex; align-items: center; }
.nav-list { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 1rem; }
.nav-list a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav-list a:not(.btn):hover { color: var(--brand-orange); }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; background: transparent; border: none; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }

/* Espaço para header fixo */
body { padding-top: 64px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  /* Esconde o nav do cabeçalho até o usuário abrir o menu */
  .nav { position: fixed; display: none; top: 64px; right: 0; left: 0; background: #fff; border-top: 1px solid var(--border); transform: translateY(-100%); transition: transform .25s ease; z-index: 1001; }
  .nav.open { display: block; transform: translateY(0); }
  .nav-list { flex-direction: column; padding: 1rem; }
  /* Garante que a logo não encolha e o texto permaneça visível */
  .logo { flex-shrink: 0; max-width: 70%; }
  .logo-text { font-size: clamp(.95rem, 3.2vw, 1.1rem); overflow: hidden; text-overflow: ellipsis; }
}

/* Hero / Slider */
.hero { position: relative; }
.hero-content { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem; }
.hero-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 .75rem; }
.hero-subtitle { color: var(--muted); margin-bottom: 1.25rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-visual { position: relative; }
.device { border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); background: linear-gradient(180deg, #fff, var(--bg-soft)); overflow: hidden; }
.device-bar { display: flex; align-items: center; gap: .35rem; height: 36px; padding: 0 .75rem; background: #F7F8FA; border-bottom: 1px solid var(--border); }
.device-dot { width: 10px; height: 10px; border-radius: 50%; background: #DADADA; display: inline-block; }
.device-screen { position: relative; padding: 1rem; }
.device-image { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 20px rgba(0,0,0,.1)); }
.device-caption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(255,255,255,.92); border: 1px solid var(--border); backdrop-filter: blur(6px); padding: .75rem 1rem; border-radius: 10px; box-shadow: var(--shadow); max-width: 70%; }
.device-caption h3 { margin: 0 0 .25rem; font-size: 1rem; }
.device-caption p { margin: 0; color: var(--muted); font-size: .95rem; }
.float-badges { position: absolute; top: .75rem; right: .75rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }
.float-badges .logo-pill { background: rgba(255,255,255,.96); border-color: var(--brand-orange); color: var(--text); }

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .device-image { max-width: 100%; }
  .device-caption { max-width: 100%; left: .75rem; right: .75rem; }
  .float-badges { top: .5rem; right: .5rem; }
}

/* Ícones redondos */
.icon-circle { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-yellow), var(--brand-orange)); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); margin-bottom: .75rem; }
.icon-card { text-align: left; }

/* CTA */
.cta-inner { text-align: center; }
.cta-inner p { color: var(--muted); }
.cta-actions { display: inline-flex; gap: .75rem; margin-top: .5rem; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--border); margin-top: 2rem; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding: 2rem 0; }
.footer-col h4 { margin: 0 0 .5rem; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }
.social { display: flex; align-items: center; gap: .5rem; }
.social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: transparent; color: var(--muted); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease; }
.social a svg { width: 18px; height: 18px; }
.social a i { font-size: 18px; line-height: 1; }
.social a .icon-wa { width: 16px; height: 16px; }
.social a:hover { background: linear-gradient(135deg, var(--brand-yellow), var(--brand-orange)); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.social a:focus-visible { outline: 2px solid var(--brand-yellow); outline-offset: 2px; }
.social.social--tiles a { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow); }
.social.social--tiles a:hover { background: var(--brand-orange); color: #fff; }
.social.social--tiles a svg { width: 20px; height: 20px; }
.social.social--tiles a i { font-size: 20px; line-height: 1; }
.social.social--tiles a .icon-wa { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1rem 0; text-align: center; color: var(--muted); }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr; } }

/* Formulário */
.form { width: 100%; max-width: none; }
.form.form--wide { width: 100%; max-width: none; }
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; margin-bottom: .25rem; font-weight: 500; }
.form-row input,
.form-row textarea { width: 100%; padding: .75rem; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; }
.form-row select { width: 100%; padding: .75rem; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; background: #fff; appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='%23666' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 16px; padding-right: 2rem; }
.form-row input:focus,
.form-row textarea:focus { outline: 2px solid var(--brand-yellow); border-color: var(--brand-yellow); }
.form-row select:focus { outline: 2px solid var(--brand-yellow); border-color: var(--brand-yellow); }
.form-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.hp { position: absolute; left: -9999px; top: -9999px; }
.alert { padding: .75rem 1rem; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 1rem; }
.alert.success { background: #F4FFF5; border-color: #C8E6C9; }
.alert.error { background: #FFF4F4; border-color: #F5C6CB; }

/* Team */
.team-grid { align-items: stretch; }
.team-card { text-align: center; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-yellow), var(--brand-orange)); display: inline-grid; place-items: center; color: #fff; font-weight: 700; margin-bottom: .75rem; }

/* Stats / Prova social */
.stats-grid { grid-template-columns: repeat(4, 1fr); }
.stat-card { text-align: center; padding: 1.5rem; }
.stat-value { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--brand-orange); }
.stat-label { color: var(--muted); }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; } }

/* Check list */
.check-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.check-list li { position: relative; padding-left: 24px; margin: .35rem 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-orange); font-weight: 700; }

/* Logo cloud */
.logo-cloud { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.logo-pill { display: inline-block; padding: .5rem .75rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--muted); box-shadow: var(--shadow); }

/* Testimonials */
.testimonial-card .quote { font-style: italic; margin: 0 0 .5rem; }
.testimonial-card .author { color: var(--muted); margin: 0; }

/* Certificações */
.cert-cloud { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cert-badge { display: inline-block; padding: .5rem .75rem; border-radius: 999px; border: 1px solid var(--brand-orange); background: #fff; color: var(--text); box-shadow: var(--shadow); font-weight: 600; }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 20px rgba(0,0,0,.06); transform: translateY(100%); transition: transform .25s ease; z-index: 1001; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .container { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; }
.cookie-banner p { margin: 0; color: var(--muted); font-size: .95rem; }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 640px) {
  .cookie-banner .container { flex-direction: column; align-items: flex-start; }
}

/* Modal (padrão) */
.modal { position: fixed; inset: 0; display: none; z-index: 1002; }
.modal.show { display: grid; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); backdrop-filter: blur(2px); }
.modal-content { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); width: min(640px, calc(100% - 2rem)); padding: 1rem; }
.modal-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: .5rem; }
.modal-title { margin: 0; font-size: 1.25rem; }
.modal-close { background: transparent; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 1rem 0; }
.modal-footer { display: flex; gap: .75rem; justify-content: flex-end; border-top: 1px solid var(--border); padding-top: .75rem; }

/* Grupos de cookies */
.cookie-group { border: 1px solid var(--border); border-radius: 10px; padding: .75rem; margin-bottom: .75rem; }
.cookie-group h4 { margin: 0 0 .25rem; font-size: 1rem; }
.cookie-group p { margin: 0; color: var(--muted); }
.switch { display: flex; align-items: center; gap: .5rem; }
.switch label { font-weight: 600; }
.switch input[type="checkbox"] { width: 40px; height: 24px; appearance: none; background: #ddd; border-radius: 999px; position: relative; outline: none; cursor: pointer; transition: background .2s ease; }
.switch input[type="checkbox"]::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: transform .2s ease; box-shadow: var(--shadow); }
.switch input[type="checkbox"]:checked { background: var(--brand-orange); }
.switch input[type="checkbox"]:checked::after { transform: translateX(16px); }
.switch input[disabled] { opacity: .6; cursor: not-allowed; }