/* ============================================================
   RoboFaz — Folha de estilos
   Paleta extraída da identidade da marca:
   Laranja #f08c04 | Grafite #3f4145 | Cinza #535352 | Cinza claro #919295
   Estilo: institucional, claro, minimalista e corporativo.
   ============================================================ */

:root {
  /* Cores da marca */
  --color-accent: #f08c04;
  --color-accent-dark: #d47a02;
  --color-ink: #2b2d31;
  --color-graphite: #3f4145;
  --color-gray: #535352;
  --color-gray-light: #919295;

  /* Neutros / superfícies claras */
  --color-bg: #ffffff;
  --color-bg-alt: #f6f6f4;
  --color-border: #e7e7e3;
  --color-white: #ffffff;

  /* Tipografia */
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .08);
  --transition: .25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .4em; color: var(--color-ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.6rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 1.5px solid transparent; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: transform var(--transition);
  will-change: transform;
}
/* Esconde o header ao rolar para baixo; reaparece ao rolar para cima */
.site-header.header-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand-logo { height: 30px; width: auto; }
.nav-list { display: flex; align-items: center; gap: 2rem; }
.nav-list a { font-weight: 500; font-size: .98rem; color: var(--color-graphite); transition: color var(--transition); }
.nav-list a:not(.btn):hover { color: var(--color-accent); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-ink); transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
  /* Fallback caso o vídeo não carregue */
  background-image: url("../assets/img/hero-placeholder.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(43, 45, 49, .55) 0%, rgba(43, 45, 49, .68) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; padding-top: 4rem; padding-bottom: 4rem; margin-inline: auto; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
  font-weight: 600; color: var(--color-accent); margin-bottom: 1rem;
}
.hero-title { font-size: clamp(2.3rem, 6vw, 4rem); color: #fff; margin-bottom: .5em; }
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255, 255, 255, .92); max-width: 640px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Cabeçalho de páginas internas (sem vídeo) ---------- */
.page-hero {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 72px 0 56px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .section-lead { max-width: 640px; margin: 0 auto; }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-lead { color: var(--color-gray); font-size: 1.1rem; }
.kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 700; color: var(--color-accent); margin-bottom: .9rem;
}

/* ---------- Cards de soluções ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 2.2rem 2rem; text-align: center;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #f0dcc0; }
.card-icon {
  width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.7rem;
  background: rgba(240, 140, 4, .1);
}
.card h3 { font-size: 1.3rem; }
.card p { color: var(--color-gray); margin: 0; }

/* ---------- Grade de usos ---------- */
.usos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.uso-card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.uso-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.uso-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.uso-body { padding: 1.4rem 1.5rem 1.6rem; }
.uso-body h3 { font-size: 1.2rem; margin-bottom: .3em; }
.uso-body p { color: var(--color-gray); font-size: .96rem; margin: 0; }

/* ---------- Nossos robôs (2 cards) ---------- */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.robo-card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 2.4rem 2.2rem; text-align: center;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.robo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #f0dcc0; }
.robo-card .card-icon {
  width: 72px; height: 72px; margin: 0 auto 1.3rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem;
  background: rgba(240, 140, 4, .1);
}
.robo-card h3 { font-size: 1.4rem; }
.robo-card p { color: var(--color-gray); margin: 0; }
.robo-photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-sm); margin: 0 auto 1.3rem;
}

/* ---------- Grade de tipos de evento ---------- */
.eventos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.evento-card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 2rem 1.8rem; text-align: center;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.evento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #f0dcc0; }
.evento-card h3 { font-size: 1.2rem; margin-bottom: .3em; }
.evento-card p { color: var(--color-gray); font-size: .96rem; margin: 0; }

/* ---------- FAQ ---------- */
.container-narrow { max-width: 820px; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 0 1.4rem; transition: var(--transition);
}
.faq-item[open] { border-color: #f0dcc0; box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  color: var(--color-ink); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--color-accent);
  line-height: 1; transition: transform var(--transition); flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 1.2rem; }
.faq-answer p { color: var(--color-gray); margin: 0; }
.faq-cta { text-align: center; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--color-border); }
.faq-cta h2 { font-size: 1.5rem; }
.faq-cta p { color: var(--color-gray); margin-bottom: 1.4rem; }
.faq-more { text-align: center; margin-top: 28px; margin-bottom: 0; }
.faq-more a { font-family: var(--font-head); font-weight: 600; color: var(--color-accent); }
.faq-more a:hover { color: var(--color-accent-dark); }

/* ---------- Experiências robóticas (faixa escura) ---------- */
.experiencias {
  background: var(--color-graphite);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
/* Brilho sutil de fundo para dar profundidade */
.experiencias::before {
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 680px; height: 680px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 140, 4, .18), transparent 62%);
  pointer-events: none;
}
.experiencias .container { position: relative; z-index: 1; }
.experiencias .section-head h2 { color: #fff; }
.experiencias .section-lead { color: rgba(255, 255, 255, .82); }

.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.exp-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center;
  transition: var(--transition);
}
.exp-card:hover { background: rgba(255, 255, 255, .09); transform: translateY(-5px); border-color: rgba(240, 140, 4, .5); }
.exp-icon { font-size: 2.1rem; display: block; margin-bottom: .7rem; line-height: 1; }
.exp-card h3 { color: #fff; font-size: 1.18rem; margin-bottom: .35em; }
.exp-card p { color: rgba(255, 255, 255, .75); font-size: .94rem; margin: 0; }
.exp-tagline {
  margin: 48px 0 0; text-align: center; font-family: var(--font-head);
  font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--color-accent);
}

/* ---------- Vantagens ---------- */
.vantagens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.vantagem {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm); padding: 1.8rem;
}
.v-num { font-family: var(--font-head); font-weight: 800; color: var(--color-gray-light); font-size: 1.1rem; }
.vantagem h3 { font-size: 1.15rem; margin: .5rem 0 .3rem; }
.vantagem p { color: var(--color-gray); font-size: .96rem; margin: 0; }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.about-text p { color: var(--color-gray); }
.about-text .btn { margin-top: .8rem; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { margin-top: 1.6rem; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; flex-direction: column; }
.ci-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--color-gray-light); font-weight: 600; margin-bottom: .15rem; }
.contact-list a { font-weight: 600; color: var(--color-graphite); }
.contact-list a:hover { color: var(--color-accent); }

.contact-form {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .4rem; color: var(--color-graphite); }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem;
  color: var(--color-ink); background: #fff; transition: var(--transition);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(240, 140, 4, .15);
}
.field textarea { resize: vertical; }
.form-status { font-size: .92rem; margin: .8rem 0 0; min-height: 1.2em; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: #c22; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-graphite); color: rgba(255, 255, 255, .8); padding-top: 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-logo { height: 28px; margin-bottom: 1rem; }
.footer-brand { max-width: 360px; }
.footer-brand p { font-size: .95rem; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.footer-nav a { font-weight: 500; font-size: .95rem; transition: color var(--transition); }
.footer-nav a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; font-size: .88rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }
.footer-bottom span { color: rgba(255, 255, 255, .6); }
.footer-cnpj { color: rgba(255, 255, 255, .4); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .cards-3, .usos-grid, .vantagens-grid, .eventos-grid, .exp-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-2 { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { order: -1; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%); transition: transform var(--transition);
    box-shadow: var(--shadow-md);
  }
  .nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px; }
  .nav-list li { border-bottom: 1px solid var(--color-border); }
  .nav-list li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav-list a:not(.btn) { display: block; padding: 14px 0; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 68px 0; }
  .hero { min-height: 80vh; }
}

@media (max-width: 480px) {
  .cards-3, .usos-grid, .vantagens-grid, .eventos-grid, .exp-grid, .blog-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Blog: listagem ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.8rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #f0dcc0; }
.blog-card .kicker { margin-bottom: .7rem; }
.blog-card h2 { font-size: 1.2rem; line-height: 1.3; margin-bottom: .5em; }
.blog-card h2 a { color: var(--color-ink); }
.blog-card h2 a:hover { color: var(--color-accent); }
.blog-card p { color: var(--color-gray); font-size: .95rem; margin: 0 0 1rem; flex-grow: 1; }
.blog-card-meta { font-size: .82rem; color: var(--color-gray-light); margin-bottom: .6rem; }
.blog-card-more { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--color-accent); }
.blog-card-more:hover { color: var(--color-accent-dark); }
.blog-back { display: inline-block; margin-bottom: 28px; font-weight: 600; color: var(--color-gray); }
.blog-back:hover { color: var(--color-accent); }

/* ---------- Blog: artigo ---------- */
.article-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem;
  color: var(--color-gray-light); font-size: .9rem; margin-top: .6rem;
}
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: 1.5rem; margin-top: 2.2em; }
.article-body h3 { font-size: 1.2rem; margin-top: 1.8em; }
.article-body p { color: var(--color-gray); margin-bottom: 1.2em; }
.article-body ul, .article-body ol { color: var(--color-gray); margin: 0 0 1.4em; padding-left: 1.3em; }
.article-body li { margin-bottom: .5em; }
.article-body strong { color: var(--color-ink); }
.article-body blockquote {
  margin: 1.8em 0; padding: .2em 1.4em; border-left: 3px solid var(--color-accent);
  color: var(--color-graphite); font-style: italic;
}
.article-cta {
  text-align: center; margin: 56px auto 0; max-width: 760px;
  padding-top: 40px; border-top: 1px solid var(--color-border);
}
.article-cta h2 { font-size: 1.4rem; margin-top: 0; }
.article-cta p { color: var(--color-gray); margin-bottom: 1.4rem; }

/* Acessibilidade: respeita preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
