/* =========================================================
   AJV Sistemas — variáveis e reset
   ========================================================= */
:root {
  --navy-900: #061422;
  --navy-800: #0b1d33;
  --navy-700: #13293f;
  --blue: #1f6690;
  --blue-light: #3f9fd1;
  --teal: #2a9a95;
  --gold: #b9852f;
  --light: #f4f7fa;
  --white: #ffffff;
  --text: #1c2733;
  --muted: #64748b;
  --border: #e3e8ef;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --container: 1160px;
  --radius: 14px;
  --shadow: 0 12px 30px -12px rgba(6, 20, 34, 0.18);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0;
  color: var(--navy-900);
}

p { margin: 0; }

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

ul, ol { list-style: none; margin: 0; padding: 0; }

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

/* =========================================================
   Botões
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--blue-light);
  color: var(--navy-900);
  box-shadow: 0 10px 24px -8px rgba(63, 159, 209, 0.55);
}
.btn--primary:hover { background: #59b0e0; }

.btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); }

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

.btn--block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: transparent;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.header.is-scrolled {
  background: rgba(6, 20, 34, 0.92);
  backdrop-filter: blur(6px);
  padding: 10px 0;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 34px; width: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--blue-light);
  transition: width var(--transition);
}
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

.nav__link--cta {
  background: var(--blue-light);
  color: var(--navy-900);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: #59b0e0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../img/hero-bg.jpg') center center / cover no-repeat, var(--navy-900);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(6,20,34,0.92) 10%, rgba(11,29,51,0.85) 55%, rgba(31,102,144,0.75) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 90px;
  max-width: 760px;
}
.hero__eyebrow {
  color: var(--blue-light);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
  display: inline-block;
}
.hero__title {
  color: var(--white);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero__subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  z-index: 1;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 4px;
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* =========================================================
   Seções genéricas
   ========================================================= */
.section {
  padding: 110px 0;
}
.section--alt { background: var(--light); }
.section--dark {
  background: var(--navy-900);
  color: rgba(255,255,255,0.85);
}
.section--dark .section__title { color: var(--white); }
.section--dark .section__desc { color: rgba(255,255,255,0.7); }

.section__head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__tag {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section--dark .section__tag { color: var(--blue-light); }
.section__title {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: 16px;
}
.section__desc {
  color: var(--muted);
  font-size: 1.05rem;
}

/* =========================================================
   Cards (Sobre)
   ========================================================= */
.cards { display: grid; gap: 30px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.card__icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }
.card__icon--teal { background: rgba(42, 154, 149, 0.12); color: var(--teal); }
.card__icon--blue { background: rgba(31, 102, 144, 0.12); color: var(--blue); }
.card__icon--gold { background: rgba(185, 133, 47, 0.14); color: var(--gold); }

.card__title { font-size: 1.2rem; margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: 0.98rem; }

/* =========================================================
   Serviços
   ========================================================= */
.service {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.service__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service:hover .service__img img { transform: scale(1.06); }

.service__body { padding: 22px 22px 26px; }
.service__title { font-size: 1.08rem; margin-bottom: 10px; }
.service__text { color: var(--muted); font-size: 0.92rem; }

/* =========================================================
   Metodologia (timeline)
   ========================================================= */
.timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
  counter-reset: step;
}
.timeline--6 { grid-template-columns: repeat(6, 1fr); }
.timeline__step {
  position: relative;
  text-align: center;
  padding-top: 10px;
}
.timeline__step::before {
  content: "";
  position: absolute;
  top: 28px; left: -50%;
  width: 100%; height: 2px;
  background: var(--border);
  z-index: 0;
}
.timeline__step:first-child::before { display: none; }

.timeline__number {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--border);
}
.timeline__title {
  font-size: 0.98rem;
  margin-bottom: 8px;
  min-height: 44px;
}
.timeline__text {
  color: var(--muted);
  font-size: 0.86rem;
}

/* =========================================================
   Logo grid (Tecnologias / Clientes)
   ========================================================= */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.logo-grid--clients { grid-template-columns: repeat(4, 1fr); }

.logo-grid__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.logo-grid__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.logo-grid__item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.65);
  transition: filter var(--transition);
}
.logo-grid__item:hover img { filter: grayscale(0) opacity(1); }

/* =========================================================
   Para profissionais
   ========================================================= */
.professionals {
  background: linear-gradient(120deg, var(--blue) 0%, var(--navy-800) 100%);
  padding: 80px 0;
}
.professionals__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.professionals__text { max-width: 640px; }
.professionals__text .section__tag { color: rgba(255,255,255,0.85); }
.professionals__text .section__title { color: var(--white); margin-bottom: 14px; }
.professionals__text .section__desc { color: rgba(255,255,255,0.85); margin-bottom: 26px; }
.professionals__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.professionals .btn--outline-dark {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.professionals .btn--outline-dark:hover { background: rgba(255,255,255,0.14); color: var(--white); }

.professionals__hint {
  margin-top: 18px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}
.professionals__hint a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   Desenvolvimento de sistemas (complementar)
   ========================================================= */
.dev {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.dev__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.dev__img img { width: 100%; height: 100%; object-fit: cover; }
.dev__text .section__head { text-align: left; margin: 0 0 20px; max-width: none; }
.dev__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dev__list li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: 0.96rem;
}
.dev__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
}

/* =========================================================
   Contato
   ========================================================= */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.contact__item:hover { background: rgba(255,255,255,0.1); transform: translateX(4px); }
.contact__item strong {
  display: block;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.contact__item span span { color: rgba(255,255,255,0.7); font-size: 0.92rem; }

.contact__icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(63, 159, 209, 0.16);
  color: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
}
.contact__icon svg { width: 20px; height: 20px; }

.contact__form {
  background: var(--white);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form__row { margin-bottom: 18px; }
.form__row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.form__row input,
.form__row textarea,
.form__row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  resize: vertical;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__row input:focus,
.form__row textarea:focus,
.form__row select:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(63, 159, 209, 0.18);
}
.form__row.has-error input,
.form__row.has-error textarea { border-color: #d64545; }

.form__hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.65);
  padding-top: 60px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand img { height: 30px; margin-bottom: 14px; }
.footer__brand p { max-width: 280px; font-size: 0.92rem; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-start;
}
.footer__nav a:hover { color: var(--white); }

.footer__social { display: flex; gap: 12px; align-items: flex-start; }
.footer__social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.footer__social a:hover { background: var(--blue-light); color: var(--navy-900); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }

.footer__bottom {
  text-align: center;
  font-size: 0.82rem;
  padding: 20px 0;
}

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* =========================================================
   Reveal animation
   ========================================================= */
.card--reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.card--reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1024px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-grid--clients { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 40px; }
  .timeline--6 { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .dev { grid-template-columns: 1fr; }
  .dev__img { order: -1; }
}

@media (max-width: 780px) {
  .nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--navy-900);
    padding: 100px 30px 40px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 99;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 22px; }
  .nav__toggle { display: flex; }
  .nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cards--3 { grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline--6 { grid-template-columns: repeat(2, 1fr); }
  .timeline__step::before { display: none; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid--clients { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
  .professionals__inner { flex-direction: column; text-align: center; align-items: center; }
  .professionals__actions { justify-content: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
}
