/* Digiprimus — paleta do logo: navy #0E2A52, azul #2D58A8, laranja #F14D2E */
:root {
  color-scheme: only light;
  --navy: #0e2a52;
  --ink: #122033;
  --primary: #2d58a8;
  --primary-deep: #1e3f7a;
  --blue: #2d58a8;
  --sky: #8fb4e8;
  --accent: #f14d2e;
  --accent-deep: #c43616;
  --bg: #f4f6f9;
  --bg-2: #e8eef5;
  --surface: #ffffff;
  --muted: #4a5b6c;
  --line: #d5dee8;
  --footer: #0b1c33;
  --shadow: 0 18px 40px -24px rgba(14, 42, 82, 0.35);
  --radius: 12px;
  --max: 1120px;
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.0625rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-deep); }
a:hover { color: var(--primary); }
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.brand-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color-scheme: only light;
}
.brand-wordmark {
  width: auto;
  height: 26px;
  flex-shrink: 0;
  color-scheme: only light;
}
.site-footer .brand-icon {
  width: 32px;
  height: 32px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.28);
  border-radius: 7px;
}
.site-footer .brand-wordmark { height: 22px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.lang-switch a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.25rem 0.2rem;
}
.lang-switch a:hover { color: var(--primary); }
.lang-switch a[aria-current="page"] {
  color: var(--navy);
}
.lang-switch .sep {
  color: var(--line);
  font-weight: 600;
  user-select: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--primary); }
.nav .btn { margin-left: 0.25rem; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 1px;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-deep); color: #fff; }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--primary-deep);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: color-mix(in srgb, #fff 45%, transparent);
}
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-light {
  background: #fff;
  color: var(--primary-deep);
}
.btn-light:hover { color: var(--primary); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(1000px 480px at 92% -8%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 60%),
    radial-gradient(700px 360px at 0% 110%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, #0b1c33 100%);
  color: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sky);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  color: #fff;
}
.lead {
  font-size: 1.15rem;
  color: color-mix(in srgb, #fff 78%, var(--sky));
  max-width: 38rem;
  margin: 0 0 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-art {
  display: grid;
  place-items: center;
}
.hero-badge {
  width: min(100%, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-badge > * {
  grid-area: 1 / 1;
}
.hero-badge .ring {
  box-sizing: border-box;
  width: var(--ring-size);
  height: var(--ring-size);
  border-radius: 50%;
  pointer-events: none;
}
.hero-badge .ring-outer {
  --ring-size: 96%;
  border: 12px solid color-mix(in srgb, var(--primary) 45%, transparent);
}
.hero-badge .ring-inner {
  --ring-size: 84%;
  border: 8px solid color-mix(in srgb, var(--sky) 42%, transparent);
}
.hero-badge .mark {
  width: 52%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 20%;
  color-scheme: only light;
  box-shadow:
    0 0 0 2px color-mix(in srgb, #fff 22%, transparent),
    0 18px 36px rgba(0, 0, 0, 0.28);
}

/* Sections */
section { padding: 4.5rem 0; }
.section-kicker {
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: var(--navy);
  line-height: 1.2;
}
.section-intro {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2.4rem;
}

#servicos { background: var(--surface); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
}
.card svg {
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
}
.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, var(--navy) 0%, #0b1c33 100%);
  color: #fff;
  border: 1px solid color-mix(in srgb, #fff 10%, transparent);
  border-top: 3px solid var(--accent);
  padding: 1.7rem 1.7rem 1.8rem;
  box-shadow: 0 22px 44px -20px rgba(14, 42, 82, 0.45);
}
.card.featured .card-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.2rem;
  align-items: start;
}
.card.featured h3 { color: #fff; font-size: 1.35rem; }
.card.featured p { color: color-mix(in srgb, #fff 82%, var(--sky)); }
.card.featured svg { margin-bottom: 0; width: 52px; height: 52px; }
.offer-list {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.5rem;
}
.offer-list li {
  position: relative;
  padding-left: 1.15rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
}
.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: 1px;
}
.card.emphasis {
  border-top-color: var(--accent);
  background: var(--surface);
  box-shadow: var(--shadow);
}


#como { background: var(--bg); }
.reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}
.step-num {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  font-size: 0.9rem;
}
.steps h3 { margin: 0 0 0.2rem; font-size: 1.05rem; color: var(--navy); }
.steps p { margin: 0; color: var(--muted); }

.pillars { display: grid; gap: 1rem; }
.pillar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  border-left: 4px solid var(--primary);
}
.pillar.accent { border-left-color: var(--accent); }
.pillar h3 { margin: 0 0 0.3rem; font-size: 1.05rem; color: var(--navy); }
.pillar p { margin: 0; color: var(--muted); }

#sobre { background: var(--surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}
.about-grid p { color: var(--muted); margin: 0 0 1rem; }
.fact {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
}
.fact dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--primary-deep);
  margin: 0 0 0.2rem;
}
.fact dd { margin: 0 0 0.9rem; color: var(--ink); }
.fact dd:last-child { margin-bottom: 0; }

#cloud74 { background: var(--bg-2); }
.cloud74-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  color: inherit;
}
.cloud74-card:hover { border-color: var(--primary); color: inherit; }
.cloud74-name {
  margin: 0 0 0.25rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.cloud74-card p { margin: 0; color: var(--muted); }
.cloud74-go {
  font-weight: 700;
  color: var(--primary-deep);
  white-space: nowrap;
}

#contato {
  background: linear-gradient(180deg, var(--navy) 0%, var(--footer) 100%);
  color: #fff;
}
#contato h2 { color: #fff; }
#contato .section-kicker { color: #fcbe8a; }
#contato .section-intro { color: color-mix(in srgb, #fff 78%, var(--sky)); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.2rem;
}
.contact-card {
  background: color-mix(in srgb, #fff 8%, transparent);
  border: 1px solid color-mix(in srgb, #fff 16%, transparent);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.contact-card h3 { margin: 0 0 0.35rem; font-size: 1rem; color: #fff; }
.contact-card p, .contact-card a { color: color-mix(in srgb, #fff 86%, #cfe8f8); }
.contact-card a { font-weight: 700; text-decoration: none; }
.contact-card a:hover { color: #fff; }
.hint {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fcbe8a;
  text-transform: none;
}
.contact-cta { margin: 1.8rem 0 0; }

/* Footer */
.site-footer {
  background: var(--footer);
  color: color-mix(in srgb, #fff 72%, #8aa);
  padding: 2rem 0 1.6rem;
  font-size: 0.9rem;
  border-top: 1px solid color-mix(in srgb, #fff 10%, transparent);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.legal { margin: 0.55rem 0 0; max-width: 36rem; line-height: 1.5; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer nav a { color: #d7e6f4; text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: #fff; }

/* 404 */
.page-404 {
  min-height: calc(100vh - var(--header-h) - 8rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}
.page-404 h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.6rem; }
.page-404 .lead { color: var(--muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .hero-grid, .cards, .reasons, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .card.featured { grid-column: 1; }
  .offer-list { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 3.5rem; }
  .hero-art { order: -1; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 761px) {
  .nav { order: 2; margin-left: auto; }
  .lang-switch { order: 3; }
  .menu-toggle { order: 4; }
}
@media (max-width: 760px) {
  .lang-switch { order: 2; margin-left: auto; }
  .menu-toggle { display: block; order: 3; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.2rem;
    gap: 0.9rem;
  }
  .nav.open { display: flex; }
  .nav .btn { margin-left: 0; }
  .brand-wordmark { height: 22px; }
}
