/* ==========================================================
   RavoDigital · Software sob medida
   Paleta tirada do logo: azul-marinho + laranja
   ========================================================== */

:root {
  --navy-900: #0e1838;
  --navy-800: #14204a;
  --navy-700: #1d2c63;
  --navy-500: #3a4c8f;
  --orange-500: #f7941d;
  --orange-600: #e07d06;
  --orange-100: #fff1df;

  --ink: #14204a;
  --text: #4a5372;
  --muted: #7a829c;
  --line: #e4e7f0;
  --bg: #ffffff;
  --bg-tint: #f5f7fc;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 24, 56, .06), 0 2px 8px rgba(14, 24, 56, .05);
  --shadow-lg: 0 20px 50px -12px rgba(14, 24, 56, .25);

  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--orange-500); }

.hl {
  background: linear-gradient(transparent 62%, var(--orange-100) 62%);
  color: var(--navy-700);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--orange-500);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(247, 148, 29, .6);
}
.btn--primary:hover { background: var(--orange-600); }
.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}
.btn--ghost:hover { border-color: var(--navy-700); }
.btn--sm { padding: 10px 20px; font-size: .92rem; }
.btn--block { width: 100%; }

.link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--orange-600);
  text-decoration: none;
}
.link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.header__logo img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle__btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 104px;
  background:
    radial-gradient(800px 400px at 90% 10%, rgba(247, 148, 29, .12), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(29, 44, 99, .08), transparent 70%),
    var(--bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.lead { font-size: 1.15rem; max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 40px; }
.hero__facts {
  list-style: none;
  margin: 0; padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: .95rem;
  color: var(--muted);
}
.hero__facts strong { color: var(--ink); font-family: var(--font-head); }

.hero__visual { position: relative; }
.window {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transform: rotate(1.5deg);
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
}
.window__bar i {
  width: 11px; height: 11px; border-radius: 50%;
  background: #d6dae6;
}
.window__bar i:first-child { background: var(--orange-500); }
.window__bar span {
  margin-left: 12px;
  font-size: .78rem;
  color: var(--muted);
  background: #fff;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
  white-space: nowrap;
}
.chip b {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--orange-100);
  color: var(--orange-600);
}
.chip--a { left: -28px; bottom: 36px; }
.chip--b { right: -16px; top: -18px; }
.chip--b b { background: #e7ebf8; color: var(--navy-700); }

/* ---------- Seções ---------- */
.section { padding: 104px 0; }
.section--tint { background: var(--bg-tint); }
.section__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__head p:last-child { margin-bottom: 0; }

/* ---------- Comparativo ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.compare__col {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.compare__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.compare__col li { position: relative; padding-left: 34px; }
.compare__col li::before {
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .75rem; font-weight: 800;
}
.compare__col--off { background: var(--bg-tint); }
.compare__col--off h3 { color: var(--muted); }
.compare__col--off li { color: var(--muted); }
.compare__col--off li::before { content: "✕"; background: #e6e8ef; color: #8f96ad; }
.compare__col--on {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #c9d0ea;
  box-shadow: var(--shadow-lg);
}
.compare__col--on h3 { color: #fff; }
.compare__col--on li::before { content: "✓"; background: var(--orange-500); color: #fff; }

/* ---------- Cards de soluções ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card p { margin: 0; }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--orange-100);
  margin-bottom: 22px;
}
.card__icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--orange-600);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card--feature {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border-color: transparent;
  color: #c9d0ea;
  display: flex;
  flex-direction: column;
}
.card--feature h3 { color: #fff; font-size: 1.5rem; }
.card--feature p { font-size: 1.05rem; }
.card--feature .card__icon { background: rgba(247, 148, 29, .18); }
.card--feature .card__icon svg { stroke: var(--orange-500); }
.tags {
  list-style: none;
  margin: auto 0 0; padding: 28px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tags li {
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
}

/* ---------- Processo ---------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 28px 24px 4px 0;
  border-top: 2px solid var(--line);
}
.step::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 48px; height: 2px;
  background: var(--orange-500);
}
.step__n {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--navy-700);
  opacity: .14;
  margin-bottom: 14px;
}
.step p { font-size: .97rem; }

/* ---------- Projetos ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.project {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--bg-tint);
}
.project__body { padding: 20px 22px 24px; }
.project__body h3 { margin-bottom: .35em; }
.project__body p { font-size: .95rem; margin-bottom: .8em; }
.project__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin-bottom: 8px;
}
.project { grid-column: span 2; }
.project--wide { grid-column: span 3; }
.project--wide .project__tag { color: var(--orange-600); }
.project--wide h3 { font-size: 1.4rem; }

/* ---------- Clientes ---------- */
.logos {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.logos li {
  display: grid;
  place-items: center;
  padding: 20px;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.logos img {
  max-height: 56px;
  width: auto;
  filter: grayscale(1);
  opacity: .65;
  transition: filter .25s ease, opacity .25s ease;
}
.logos li:hover img { filter: none; opacity: 1; }

/* ---------- Contato ---------- */
.contact {
  position: relative;
  overflow: hidden;
  padding: 104px 0;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(247, 148, 29, .22), transparent 70%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #c9d0ea;
}
.contact h2 { color: #fff; }
.contact__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact__inner > div:first-child p { font-size: 1.1rem; max-width: 30em; }
.contact__box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.contact__list { margin: 24px 0 0; display: grid; gap: 18px; }
.contact__list div { padding-top: 18px; border-top: 1px solid var(--line); }
.contact__list dt {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__list dd {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--orange-600); }

/* ---------- Footer ---------- */
.footer { padding: 32px 0; border-top: 1px solid var(--line); background: var(--bg-tint); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer img { height: 44px; width: auto; }
.footer p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Acessibilidade ---------- */
a:focus-visible, .nav-toggle:focus-visible + .nav-toggle__btn {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 1080px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card--feature { grid-row: auto; grid-column: span 2; }
  .projects { grid-template-columns: 1fr 1fr; }
  .project, .project--wide { grid-column: auto; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 920px) {
  /* menu mobile (sem JavaScript) */
  .nav-toggle__btn {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    cursor: pointer;
    border-radius: 10px;
  }
  .nav-toggle__btn span,
  .nav-toggle__btn span::before,
  .nav-toggle__btn span::after {
    display: block;
    width: 22px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    position: relative;
    transition: transform .2s ease, background .2s ease;
  }
  .nav-toggle__btn span::before,
  .nav-toggle__btn span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__btn span::before { top: -7px; }
  .nav-toggle__btn span::after { top: 7px; }
  .nav-toggle:checked + .nav-toggle__btn span { background: transparent; }
  .nav-toggle:checked + .nav-toggle__btn span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle__btn span::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(14, 24, 56, .25);
    display: none;
  }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; }
  .nav-toggle:checked ~ .nav { display: flex; }

  .hero { padding: 56px 0 80px; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .chip--a { left: 8px; }
  .chip--b { right: 8px; }

  .compare { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .section, .contact { padding: 80px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .cards, .projects, .steps { grid-template-columns: 1fr; }
  .card--feature, .project--wide { grid-column: auto; }
  .logos { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .logos li { padding: 12px; }
  .compare__col, .card, .contact__box { padding: 26px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .chip { font-size: .8rem; padding: 10px 14px; }
  .chip--b { display: none; }
  .section__head { margin-bottom: 40px; }
  .footer__inner { justify-content: center; text-align: center; }
}
