/* ==========================================================
   INNOVASEG — estilos globais
   Paleta: azul-marinho + laranja | Fontes: Space Grotesk + Inter
   ========================================================== */

:root {
  --navy: #0e2a47;
  --navy-deep: #081a2e;
  --orange: #f28c1e;
  --orange-dark: #d9750c;
  --bg: #f6f7f9;
  --white: #ffffff;
  --ink: #1b2430;
  --ink-soft: #55606e;
  --line: #dde2e8;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 10px;
  --container: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1rem; }
p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: var(--navy-deep);
}
.btn-primary:hover { background: var(--orange-dark); }

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-light:hover { background: var(--white); color: var(--navy); }

.btn svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.brand span { color: var(--orange); }



.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}
.nav a:hover,
.nav a.active { color: var(--orange); }

.nav .btn { padding: 0.6rem 1.1rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5.5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* faixa laranja diagonal — o único elemento decorativo do site */
  content: "";
  position: absolute;
  right: -10%;
  top: 0;
  width: 42%;
  height: 100%;
  background: var(--orange);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.95;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.hero h1 { color: var(--white); }
.hero .lead { color: rgba(255, 255, 255, 0.82); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-panel {
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  justify-self: end;
  width: min(100%, 380px);
}

.hero-panel h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hero-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.hero-panel li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-panel li strong { color: var(--orange); font-weight: 600; white-space: nowrap; }

/* ---------- Serviços ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border-top: 4px solid var(--navy);
}
.service:nth-child(2) { border-top-color: var(--orange); }

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.service ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}
.service li { margin-bottom: 0.35rem; }

.service a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--orange-dark);
}
.service a:hover { text-decoration: underline; }

/* ---------- Faixa de confiança ---------- */
.trust {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
}

.trust .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-item .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.trust-item .num small { font-size: 1.2rem; color: var(--orange); }
.trust-item p { color: var(--ink-soft); margin: 0.4rem 0 0; font-size: 0.95rem; }

/* ---------- Como funciona ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}

.step::before {
  content: counter(step);
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.step p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* ---------- CTA final ---------- */
.cta {
  background: var(--navy);
  color: var(--white);
  padding: 4.5rem 0;
}

.cta .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta h2 { color: var(--white); margin: 0; }
.cta p { color: rgba(255, 255, 255, 0.8); margin: 0.4rem 0 0; }

/* ---------- Rodapé ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.5rem; }
.footer a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Acessibilidade ---------- */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-panel { justify-self: start; }
  .hero::after { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .trust .container { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 3.5rem 0; }

  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-deep);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav .btn { margin-top: 1rem; justify-content: center; }

  .trust .container,
  .steps,
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   Páginas internas — cabeçalho de página
   ========================================================== */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0;
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255, 255, 255, 0.82); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--orange);
  margin: 0 0 0.5rem;
}

/* ==========================================================
   Serviços — blocos alternados
   ========================================================== */
.svc-alt { background: var(--white); }

.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.svc-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--orange-dark);
  margin-bottom: 0.5rem;
}

.svc-list {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.svc-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
}

.svc-aside {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.svc-alt .svc-aside { background: var(--white); }
.svc-aside h3 { margin-bottom: 0.5rem; }
.svc-aside p { margin: 0; color: var(--ink-soft); }

@media (max-width: 820px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   Página Sobre
   ========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.about-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.about-card h3 { color: var(--white); }
.about-card p { color: rgba(255, 255, 255, 0.82); }

.about-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.about-facts li {
  color: rgba(255, 255, 255, 0.82);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.about-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.about-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--orange);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.value {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.value p { color: var(--ink-soft); margin: 0; }
.svc-alt .value { background: var(--bg); }

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   Página Contato
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

.contact-channels {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s;
}
a.contact-card:hover {
  border-color: var(--orange);
  transform: translateX(3px);
}
.contact-card--static { cursor: default; }

.contact-icon {
  width: 28px;
  height: 28px;
  color: var(--navy);
  flex-shrink: 0;
}
.contact-card h3 { margin: 0 0 0.15rem; font-size: 1.05rem; }
.contact-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.contact-map {
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.contact-map iframe { display: block; height: 100%; min-height: 420px; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}