/* Andertec Tecnologia — estilos | tema claro com a paleta do logotipo */
:root {
  /* Cores do logotipo */
  --navy: #003399;
  --navy-900: #001a52;
  --blue: #0088c1;
  --sky: #50b0d0;
  --yellow: #f9ad09;
  --orange: #f98903;
  --orange-600: #e67300;

  /* Neutros */
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --surface: #ffffff;
  --line: #dde5f2;
  --text: #33415c;
  --muted: #5d6b85;
  --heading: #0b1f4d;

  --grad: linear-gradient(135deg, var(--navy) 0%, #0059ad 55%, var(--blue) 100%);
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 51, 153, .06);
  --shadow: 0 18px 40px -18px rgba(0, 51, 153, .28);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --header-h: 76px;
  --section: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--heading); letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; font-weight: 600; }
.skip:focus { top: 12px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-family: var(--font-head); font-size: 1rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--navy-900); box-shadow: 0 10px 24px -10px rgba(249, 137, 3, .75); }
.btn-primary:hover { background: var(--yellow); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 10px 22px; font-size: .94rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.header.scrolled { box-shadow: 0 6px 24px -12px rgba(0, 51, 153, .25); border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .96rem; position: relative; padding: 6px 0; transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--orange); transition: width .25s; }
.nav a:not(.btn):hover, .nav a.active { color: var(--navy); }
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; width: 46px; height: 46px; cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px auto; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: calc(var(--header-h) + 64px) 0 0; background: var(--grad); color: #fff; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -160px; top: -140px; background: radial-gradient(circle, rgba(80, 176, 208, .45), transparent 65%); }
.hero::after { width: 420px; height: 420px; left: -180px; bottom: 40px; background: radial-gradient(circle, rgba(249, 173, 9, .22), transparent 65%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); color: #fff; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { font-size: 1.15rem; color: #dbe6f7; max-width: 52ch; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Diferenciais (faixa que "encaixa" entre o hero e a seção seguinte) */
.highlights {
  position: relative; z-index: 2; list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -10px 30px -18px rgba(0, 26, 82, .5);
}
.highlights li { display: flex; gap: 16px; align-items: center; padding: 28px 30px; }
.highlights li + li { border-left: 1px solid var(--line); }
.highlights b { display: block; font-family: var(--font-head); color: var(--heading); font-size: 1.05rem; }
.highlights div span { color: var(--muted); font-size: .92rem; }
.hl-ic { flex: none; width: 48px; height: 48px; border-radius: 12px; background: #e6f3fa; display: grid; place-items: center; }
.hl-ic svg { width: 24px; height: 24px; stroke: var(--navy); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Seções */
section { padding: var(--section) 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; color: var(--orange-600); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin-bottom: 12px; }
.section-head h2, .about-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Serviços */
.services { background: var(--bg); padding-top: calc(var(--section) - 16px); }
.grid-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--orange), var(--yellow)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c7d5ec; }
.card:hover::before { transform: scaleX(1); }
.card .icon { width: 60px; height: 60px; border-radius: 50%; background: #e6f3fa; display: grid; place-items: center; margin-bottom: 20px; }
.card .icon img { width: 32px; height: 32px; }
.card h3 { font-size: 1.22rem; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 18px; }
.card ul { list-style: none; padding: 18px 0 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; border-top: 1px solid var(--line); }
.card li { padding-left: 24px; position: relative; }
.card li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 5px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }

/* Sobre */
.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual {
  position: relative; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; margin-inline: auto;
  border-radius: 28px; background: radial-gradient(circle at 30% 25%, #ffffff, #e3eef9 70%); border: 1px solid var(--line);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.about-visual img { width: 62%; height: auto; }
.badge {
  position: absolute; background: #fff; border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px;
  font-size: .9rem; color: var(--heading); font-weight: 600; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow);
}
.badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.badge.b1 { top: 8%; left: -4%; }
.badge.b2 { bottom: 10%; right: -4%; }
.badge.b2 i { background: var(--blue); }
.about-text p { color: var(--muted); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks b { display: block; color: var(--heading); font-family: var(--font-head); }
.checks div span { color: var(--muted); }
.checks .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; margin-top: 2px; }
.checks .dot::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }

/* Como trabalhamos */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 26px; left: 12.5%; right: 12.5%; height: 2px; background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 14px); }
.timeline li { position: relative; text-align: center; padding: 0 8px; }
.timeline .num {
  position: relative; z-index: 1; width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  box-shadow: 0 0 0 6px #fff, var(--shadow);
}
.timeline li:last-child .num { background: linear-gradient(135deg, var(--yellow), var(--orange)); color: var(--navy-900); }
.timeline h3 { font-size: 1.15rem; }
.timeline p { color: var(--muted); font-size: .95rem; margin: 0; }
.tech { margin-top: 72px; padding: 36px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); text-align: center; }
.tech h3 { font-size: 1.1rem; margin-bottom: 20px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tech-tags span { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 500; font-size: .92rem; transition: border-color .2s, transform .2s; }
.tech-tags span:hover { border-color: var(--orange); transform: translateY(-2px); }

/* Contato */
.contact { padding-top: 0; }
.contact-box {
  position: relative; overflow: hidden; border-radius: 28px; background: var(--grad); color: #fff;
  padding: 64px 56px; text-align: center; box-shadow: var(--shadow);
}
.contact-box::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(249, 173, 9, .3), transparent 65%); }
.contact-head { position: relative; max-width: 620px; margin: 0 auto 40px; }
.contact-head .kicker { color: var(--yellow); }
.contact-head h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.contact-head p { color: #dbe6f7; font-size: 1.1rem; margin: 0; }
.contact-cards { position: relative; list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-cards a, .contact-cards div {
  display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; padding: 28px 20px;
  border-radius: var(--radius); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); transition: background .2s, transform .2s;
}
.contact-cards a:hover { background: rgba(255, 255, 255, .18); transform: translateY(-4px); }
.contact-cards .ic { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin-bottom: 10px; }
.contact-cards svg { width: 24px; height: 24px; stroke: var(--navy); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-cards small { color: #c9d8f0; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-cards strong { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }

/* Rodapé */
.footer { padding: 56px 0 28px; background: var(--navy-900); color: #b8c6e0; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; }
.footer-logo img { width: 52px; height: 52px; }
.footer-logo span { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; line-height: 1; }
.footer-logo small { display: block; font-size: .95rem; font-weight: 500; color: var(--orange); margin-top: 4px; }
.footer p { max-width: 38ch; font-size: .92rem; margin: 16px 0 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer nav a { font-size: .95rem; }
.footer nav a:hover { color: var(--yellow); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

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

/* Revelar ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsivo */
@media (max-width: 1000px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .timeline::before { display: none; }
  .about-grid { gap: 48px; }
  .badge.b1 { left: 2%; } .badge.b2 { right: 2%; }
}
@media (max-width: 860px) {
  :root { --section: 72px; --header-h: 68px; }
  .brand img { height: 44px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0, 51, 153, .3);
    transform: translateY(-120%); transition: transform .35s ease; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 18px; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin-inline: auto; }
  .highlights { grid-template-columns: 1fr; margin-top: 40px; }
  .highlights li { padding: 20px 24px; }
  .highlights li + li { border-left: 0; border-top: 1px solid var(--line); }
  .contact-box { padding: 48px 24px; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-services, .timeline { grid-template-columns: 1fr; }
  .hero-cta .btn, .contact-box .btn { width: 100%; }
  .tech { padding: 28px 18px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
