/* ===================================================================
   ATLAS GEOTECNOLOGIA — Folha de estilo principal
   Paleta: azul escuro (navy), azul petróleo, verde-água (teal)
   =================================================================== */

:root {
  /* Cores */
  --navy-900: #06131f;
  --navy-800: #0a1d2e;
  --navy-700: #0f2940;
  --petrol:   #14546b;
  --petrol-2: #1d7a98;
  --teal:     #19c3a3;
  --green:    #34d399;
  --text:     #e6eef5;
  --muted:    #9fb3c8;
  --line:     rgba(159, 179, 200, 0.16);
  --card:     rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);

  /* Tipografia e espaçamento */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 16px;
  --maxw: 1180px;
  --grad: linear-gradient(120deg, var(--teal), var(--petrol-2));
}

/* ===== RESET BÁSICO ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .25s ease;
  white-space: nowrap;
}
.btn--accent { background: var(--grad); color: var(--navy-900); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(25,195,163,.3); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}

/* ===================================================================
   CABEÇALHO
   =================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(6, 19, 31, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { width: 34px; height: 34px; }
.logo__text { font-size: 1.15rem; font-weight: 400; color: var(--text); letter-spacing: .3px; }
.logo__text strong { font-weight: 800; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { font-size: .95rem; color: var(--muted); transition: color .2s; position: relative; }
.nav__link:hover { color: var(--text); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad); transition: width .25s;
}
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: 6px; }

/* Botão de menu (hambúrguer) para celular */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(29,122,152,.25), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(25,195,163,.12), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__topo { width: 100%; height: 100%; }
.topo-lines path { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-40px); } }

.hero__drone {
  position: absolute; top: 22%; right: 8%; width: 120px; opacity: .9;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

.hero__content { position: relative; z-index: 2; max-width: 760px; }
.hero__badge {
  display: inline-block; padding: 7px 16px; border: 1px solid var(--line);
  border-radius: 999px; font-size: .82rem; color: var(--muted); margin-bottom: 24px;
  background: rgba(255,255,255,.03);
}
.hero__badge::first-letter { color: var(--teal); }
.hero__title { font-size: clamp(2.1rem, 5.5vw, 3.7rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.hero__subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); margin: 22px 0 34px; max-width: 600px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-size: 1.9rem; font-weight: 800; color: var(--text); }
.stat__label { font-size: .85rem; color: var(--muted); }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--teal); border-radius: 2px;
  animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 50% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* ===================================================================
   SEÇÕES GERAIS
   =================================================================== */
.section { padding: 100px 0; position: relative; }
.section--alt { background: var(--navy-800); }
.section__head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section__title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.5px; }
.section__desc { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.section__more { text-align: center; margin-top: 44px; color: var(--muted); }
.section__more a { color: var(--teal); font-weight: 600; }

/* Grids */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--diff { grid-template-columns: repeat(5, 1fr); }

/* ===== CARDS DE SERVIÇO ===== */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .3s ease, border-color .3s ease, background .3s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(25,195,163,.4); background: var(--card-hover); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(25,195,163,.1); color: var(--teal); margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }
.card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: .96rem; }

/* ===== DIFERENCIAIS ===== */
.diff { text-align: center; padding: 24px 14px; }
.diff__icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; color: var(--teal);
  background: rgba(25,195,163,.08); border: 1px solid rgba(25,195,163,.25);
  transition: transform .3s ease;
}
.diff:hover .diff__icon { transform: scale(1.08); }
.diff__icon svg { width: 28px; height: 28px; }
.diff h3 { font-size: 1.05rem; margin-bottom: 8px; }
.diff p { color: var(--muted); font-size: .9rem; }

/* ===== APLICAÇÕES ===== */
.grid--apps .app {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: all .3s ease;
}
.app:hover { transform: translateY(-4px); border-color: rgba(29,122,152,.5); background: var(--card-hover); }
.app svg { width: 40px; height: 40px; color: var(--petrol-2); margin-bottom: 16px; }
.app h3 { font-size: 1.2rem; margin-bottom: 8px; }
.app p { color: var(--muted); font-size: .94rem; }

/* ===== SOBRE ===== */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.about__svg { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.about__content p { color: var(--muted); margin-bottom: 16px; }
.about__content p strong { color: var(--text); }
.about__list { margin-top: 24px; display: grid; gap: 12px; }
.about__list li { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 500; }
.about__list svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; }

/* ===== CONTATO ===== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact__info p { color: var(--muted); margin-bottom: 28px; }
.contact__list { display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__ic {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--teal);
  background: rgba(25,195,163,.1); border: 1px solid rgba(25,195,163,.2);
}
.contact__ic svg { width: 22px; height: 22px; }
.contact__list span strong { color: var(--text); }
.contact__list li > span:last-child { color: var(--muted); line-height: 1.5; }

.contact__form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px;
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px;
  background: rgba(6,19,31,.6); border: 1px solid var(--line); color: var(--text);
  font-family: inherit; font-size: .96rem; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(159,179,200,.5); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(25,195,163,.15);
}
.field textarea { resize: vertical; }
.form__note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ===================================================================
   RODAPÉ
   =================================================================== */
.footer { background: var(--navy-800); border-top: 1px solid var(--line); padding-top: 60px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer__brand p { color: var(--muted); margin-top: 16px; font-size: .92rem; max-width: 320px; }
.footer__col h4 { font-size: .95rem; margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: var(--teal); }
.footer__bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer__bottom p { color: var(--muted); font-size: .85rem; text-align: center; }

/* ===================================================================
   BOTÃO FLUTUANTE DO WHATSAPP
   =================================================================== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  animation: pulse 2.5s infinite; transition: transform .25s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===================================================================
   ANIMAÇÃO DE ENTRADA (reveal ao rolar)
   =================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================================================================
   RESPONSIVO (celular e tablet)
   =================================================================== */
@media (max-width: 980px) {
  .grid--diff { grid-template-columns: repeat(3, 1fr); }
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .about__media { order: 2; max-width: 460px; margin: 0 auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(6,19,31,.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line); padding: 16px 24px 24px;
    transform: translateY(-130%); transition: transform .35s ease; z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 14px; text-align: center; }
  .nav-toggle { display: flex; }

  .grid--3 { grid-template-columns: 1fr; }
  .grid--diff { grid-template-columns: 1fr 1fr; }
  .hero__drone { width: 84px; top: 14%; opacity: .6; }
  .hero__stats { gap: 28px; }
  .section { padding: 72px 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .contact__form { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .grid--diff { grid-template-columns: 1fr; }
  .hero__stats { gap: 20px; }
  .stat__num { font-size: 1.5rem; }
}

/* Respeita usuários que preferem menos animação */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
