/* ============================================================
   Reale Empresas — styles.css
   Site estático single-page, mobile-first
   ============================================================ */

:root {
  --navy: #0E2A55;
  --navy-700: #0a1f40;
  --blue: #1E63E8;
  --blue-600: #1853c8;
  --blue-300: #3DA9FC;
  --ink: #1A1F2E;
  --text: #3A3F4B;
  --muted: #6B7280;
  --line: #E5E9F2;
  --bg: #FFFFFF;
  --bg-alt: #F4F6FA;
  --bg-soft: #EEF2F9;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14,42,85,.05), 0 1px 3px rgba(14,42,85,.06);
  --shadow-md: 0 6px 18px rgba(14,42,85,.08);
  --shadow-lg: 0 20px 40px rgba(14,42,85,.12);
  --container: 1180px;
  --header-h: 80px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Compensa o header fixo ao navegar por âncoras */
section[id], [id="topo"] { scroll-margin-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; }
p  { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------- HEADER ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; }
.brand-logo {
  height: 56px; width: auto; object-fit: contain;
}
.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: 8px 0; position: relative;
}
.primary-nav a:hover { color: var(--blue); }
.header-cta { display: none; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: transparent; border: 1px solid var(--line);
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 16px 20px 24px;
}
.mobile-menu ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.mobile-menu a { display: block; padding: 12px 4px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu .btn-block { width: 100%; justify-content: center; }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-lg { padding: 16px 24px; font-size: 1rem; border-radius: 14px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(30,99,232,.25); }
.btn-primary:hover { background: var(--blue-600); color: #fff; box-shadow: 0 10px 26px rgba(30,99,232,.35); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------------- HERO ---------------- */
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
  padding: 6px 12px; background: rgba(30,99,232,.08); border-radius: 999px;
}
.eyebrow-light { color: #BFD3FA; background: rgba(255,255,255,.1); }

.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 80px;
  background:
    radial-gradient(1100px 600px at 110% -20%, rgba(30,99,232,.10), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(61,169,252,.10), transparent 55%),
    linear-gradient(180deg, #FFFFFF, #F8FAFE);
}
.hero-inner { display: grid; gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(1.9rem, 3.4vw, 2.65rem); max-width: 22ch; }
.hero-copy .lead { font-size: 1.125rem; color: var(--text); max-width: 580px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-meta {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px;
  color: var(--muted); font-size: .9rem;
}
.hero-meta span { color: var(--blue); font-weight: 700; margin-right: 6px; }

.hero-visual { position: relative; min-height: 320px; display: none; }
.hero-card {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  max-width: 420px; margin-left: auto; z-index: 2;
}
.hero-card-bg {
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff 60%, rgba(30,99,232,.06));
  pointer-events: none;
}
.hero-mark { width: 72px; height: 72px; object-fit: contain; position: relative; }
.hero-logo {
  width: 240px; max-width: 100%; height: auto; object-fit: contain;
  position: relative; margin-bottom: 4px;
}
.hero-card-text { position: relative; }
.hero-card-text strong { color: var(--navy); font-size: 1.05rem; display: block; margin-bottom: 6px; }
.hero-card-text span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55;
}
.blob-1 { width: 260px; height: 260px; background: rgba(30,99,232,.35); top: -30px; right: -40px; }
.blob-2 { width: 200px; height: 200px; background: rgba(61,169,252,.4); bottom: -30px; left: -10px; }

/* ---------------- SECTIONS ---------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D4DEEF; }

/* Audience cards */
.audience-card .icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(30,99,232,.12), rgba(61,169,252,.18));
  color: var(--blue); display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.audience-card svg { width: 22px; height: 22px; }
.audience-card h3 { font-size: 1.05rem; color: var(--navy); }
.audience-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Product cards */
.product-card { position: relative; padding: 28px; }
.product-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 14%, white);
  color: var(--c); display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.product-icon svg { width: 26px; height: 26px; }
/* Slot pronto para receber fotos reais dos produtos no lugar do ícone */
.product-media {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 12px;
  background: #F8FAFE; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-card h3 { color: var(--navy); font-size: 1.15rem; }
.product-card p { color: var(--text); margin: 0; }
.product-eval { background: linear-gradient(180deg, #fff, #F8FBFF); border-style: dashed; border-color: #BFD3FA; }
.badge-eval {
  position: absolute; top: 14px; right: 14px;
  background: #FFF3D6; color: #8A6100; font-size: .72rem;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}

/* Region */
.region-wrap { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
.region-map {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-md);
}
.region-map svg { width: 100%; height: auto; display: block; }
/* Reforça a leitura dos nomes das cidades no mapa, sobretudo no mobile */
.region-map svg text { font-size: 18px; font-weight: 600; }
.region-map svg text[font-weight="700"] { font-size: 22px; }
@media (min-width: 640px) {
  .region-map svg text { font-size: 15px; }
  .region-map svg text[font-weight="700"] { font-size: 17px; }
}
@media (min-width: 900px) {
  .region-map svg text { font-size: 13px; }
  .region-map svg text[font-weight="700"] { font-size: 15px; }
}
.region-side h3 { color: var(--navy); font-size: 1.25rem; }
.region-side .muted { color: var(--muted); margin-top: -4px; }
.city-pills { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  font-size: .9rem; font-weight: 500;
}
.pill-strong { background: var(--navy); color: #fff; border-color: var(--navy); }
.note {
  margin-top: 12px; padding: 14px 16px; border-left: 3px solid var(--blue);
  background: #F4F8FF; color: var(--text); border-radius: 0 10px 10px 0; font-size: .95rem;
}

/* Benefits */
.benefit-card { position: relative; padding-top: 32px; }
.benefit-num {
  position: absolute; top: 18px; right: 22px;
  font-weight: 800; font-size: 2rem; color: rgba(30,99,232,.12);
  letter-spacing: -.02em;
}
.benefit-card h3 { color: var(--navy); }
.benefit-card p { color: var(--text); margin: 0; }

/* Timeline */
.timeline-card {
  max-width: 860px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.timeline li {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  background: transparent; border: 0; border-radius: 0;
  padding: 20px 8px; box-shadow: none;
  border-bottom: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 0; }
.timeline .step {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-300));
  color: #fff; font-weight: 700; font-size: 1.05rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(30,99,232,.25);
}
.timeline h3 { color: var(--navy); margin-bottom: 4px; }
.timeline p { color: var(--text); margin: 0; }
@media (min-width: 900px) {
  .timeline-card { padding: 40px 48px; }
}

/* Contact */
.section-contact { padding: 80px 0; }
.contact-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 60%, #051838 100%);
  border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  padding: 48px;
  display: grid; gap: 32px; align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.contact-card::after {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,99,232,.35), transparent 70%);
}
.contact-card h2 { color: #fff; }
.contact-card p { color: rgba(255,255,255,.85); }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 20px; }
.contact-list { list-style: none; padding: 0; margin: 0; color: rgba(255,255,255,.9); font-size: .98rem; }
.contact-list li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list a { color: #BFD3FA; }
.contact-list a:hover { color: #fff; }
.contact-visual { display: none; }
.contact-logo-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25); display: inline-block;
}
.contact-logo-card img { width: 220px; max-width: 100%; height: auto; display: block; }

/* Footer */
.site-footer {
  background: #0a1f40; color: rgba(255,255,255,.75); padding: 56px 0 0;
}
.footer-inner { display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer-logo-card {
  background: #fff; border-radius: 12px; padding: 14px 18px;
  display: inline-block; margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.footer-logo-card img { height: 44px; width: auto; display: block; }
.footer-brand p { max-width: 360px; color: rgba(255,255,255,.7); }
.footer-cols { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.footer-cols h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.footer-cols a { color: rgba(255,255,255,.75); }
.footer-cols a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom small { color: rgba(255,255,255,.5); font-size: .85rem; }

/* ---------------- RESPONSIVE ---------------- */
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .header-cta { display: inline-flex; }
  .primary-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 96px 0 110px; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .hero-visual { display: block; }
  .region-wrap { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .contact-card { grid-template-columns: 1.4fr 1fr; padding: 64px; }
  .contact-visual { display: block; position: relative; z-index: 2; }
  .footer-inner { grid-template-columns: 1fr 1.5fr; }
}
@media (min-width: 1200px) {
  .brand-logo { height: 60px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .card { transition: none; }
}
