/* =========================================================
   Xtech Segurança — Landing page
   Medidas tiradas do PSD (canvas de 1920 x 4186 px).
   --u = 1px quando a janela tem 1920px; escala proporcional abaixo disso.
   ========================================================= */

/* Fonte de títulos do PSD: "AGRESSIVE".
   Coloque o arquivo em /fonts (ex.: fonts/agressive.woff2) e descomente a linha url(). */
@font-face {
  font-family: "Agressive";
  src: local("AGRESSIVE"), local("Agressive")
       /* , url("fonts/agressive.woff2") format("woff2") */;
  font-display: swap;
}

:root {
  --u: calc(min(100vw, 1920px) / 1920);
  --blue: #013181;
  --green: #82bd6b;
  --dark: #2a2a2a;
  --dark-2: #292929;
  --light: #f7f9fb;
  --white: #f7fafc;
  --text: #2a2a2a;

  --font: "Saira", "Segoe UI", Arial, sans-serif;
  --font-display: "Agressive", "Saira", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--dark-2);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Toda a página fica numa coluna de 1920u centralizada */
.topbar__inner, .hero__stage, .solucoes, .diferenciais, .contato, .rodape {
  width: calc(1920 * var(--u));
  margin-inline: auto;
}

/* ===================== CABEÇALHO (h 102) ===================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--blue);
}
.topbar__inner {
  position: relative;
  height: calc(102 * var(--u));
  display: flex; align-items: center;
}
.logo {
  position: absolute;
  left: calc(206 * var(--u)); top: calc(27 * var(--u));
}
.logo img { width: calc(168 * var(--u)); height: auto; }
.nav {
  position: absolute;
  left: calc(604 * var(--u)); top: 0; height: 100%;
  display: flex; align-items: center;
  gap: calc(51 * var(--u));
}
.nav a {
  color: var(--white);
  font-weight: 500;
  font-size: calc(24 * var(--u));
  line-height: 1;
  transition: opacity .2s;
}
.nav a:hover { opacity: .75; }
.search {
  position: absolute;
  left: calc(1427 * var(--u)); top: calc(30 * var(--u));
  width: calc(301 * var(--u)); height: calc(50 * var(--u));
  border: calc(2 * var(--u)) solid var(--white);
  border-radius: calc(25 * var(--u));
  display: flex; align-items: center;
  padding-left: calc(13 * var(--u));
  gap: calc(8 * var(--u));
}
.search img { width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
.search input {
  flex: 1; min-width: 0; height: 100%;
  background: none; border: 0; outline: 0;
  color: var(--white); font: inherit; font-size: calc(20 * var(--u));
}
.search input::-webkit-search-cancel-button { filter: invert(1); }
.menu-toggle { display: none; }

/* ===================== HERO (h 968) ===================== */
.hero {
  background: url("assets/bg-hero.webp") center top / cover no-repeat, var(--light);
  overflow: hidden;
}
.hero__stage {
  position: relative;
  height: calc(968 * var(--u));
}
.hero__predio {
  position: absolute;
  left: calc(763 * var(--u)); top: calc(199 * var(--u));
  width: calc(1161 * var(--u)); height: auto;
}
.hero__camera {
  position: absolute;
  left: calc(1428 * var(--u)); top: calc(-141 * var(--u));
  width: calc(614 * var(--u)); height: auto;
}
.hero__content {
  position: absolute;
  left: calc(188 * var(--u)); top: calc(160 * var(--u));
  width: calc(760 * var(--u));
  z-index: 2;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: calc(40 * var(--u));
  line-height: calc(52 * var(--u));
  color: var(--white);
  max-width: calc(752 * var(--u));
}
/* Faixas azuis atrás de cada linha do título */
.hero__title span {
  background: var(--blue);
  padding: calc(3 * var(--u)) calc(12 * var(--u)) calc(5 * var(--u)) calc(11 * var(--u));
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero__text {
  margin-left: calc(11 * var(--u));
  width: calc(730 * var(--u));
  font-size: calc(29 * var(--u));
  line-height: calc(35 * var(--u));
  color: var(--text);
}
.hero__title + .hero__text { margin-top: calc(58 * var(--u)); }
.hero__text + .hero__text { margin-top: calc(35 * var(--u)); }
.btn-green {
  margin: calc(70 * var(--u)) 0 0 calc(14 * var(--u));
  width: calc(468 * var(--u)); height: calc(74 * var(--u));
  display: flex; align-items: center;
  gap: calc(8 * var(--u));
  padding-left: calc(29 * var(--u));
  background: var(--green);
  border-radius: calc(37 * var(--u));
  color: var(--white);
  font-size: calc(29 * var(--u));
  box-shadow: calc(4 * var(--u)) calc(6 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, .35);
  transition: transform .2s, filter .2s;
}
.btn-green img { width: calc(38 * var(--u)); height: calc(38 * var(--u)); }
.btn-green:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* ===================== SOLUÇÕES (h 766) ===================== */
#solucoes { background: url("assets/bg-solucoes.webp") center / cover no-repeat, linear-gradient(135deg, #013181, #000); }
.solucoes {
  position: relative;
  height: calc(766 * var(--u));
  padding-top: calc(81 * var(--u));
  text-align: center;
}
.solucoes__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: calc(50 * var(--u));
  line-height: calc(58 * var(--u));
  color: var(--white);
}
.cards {
  position: absolute;
  left: calc(143 * var(--u)); top: calc(256 * var(--u));
  display: flex;
  gap: calc(29 * var(--u));
}
.card {
  width: calc(391 * var(--u)); height: calc(264 * var(--u));
  border-radius: calc(40 * var(--u));
  background: var(--dark);
  color: var(--white);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: calc(20 * var(--u));
  padding: 0 calc(40 * var(--u));
  transition: transform .25s, background .25s;
}
.card:hover { transform: translateY(-4px); }
.card--blue { background: var(--blue); }
.card h3 {
  font-weight: 500;
  font-size: calc(27 * var(--u));
  line-height: calc(32 * var(--u));
}
.card p {
  font-size: calc(21 * var(--u));
  line-height: calc(25 * var(--u));
  max-width: calc(275 * var(--u));
}
.btn-orcamento {
  position: absolute;
  left: calc(713 * var(--u)); top: calc(588 * var(--u));
  width: calc(494 * var(--u)); height: calc(95 * var(--u));
  border: calc(4 * var(--u)) solid var(--blue);
  padding: calc(5 * var(--u)) calc(10 * var(--u));
  display: block;
  transition: filter .2s;
}
.btn-orcamento span {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: var(--blue);
  color: var(--white);
  font-weight: 500;
  font-size: calc(34 * var(--u));
}
.btn-orcamento:hover { filter: brightness(1.25); }

/* ===================== DIFERENCIAIS (h 1213) ===================== */
#diferenciais { background: var(--light); }
.diferenciais {
  position: relative;
  height: calc(1213 * var(--u));
}
.diferenciais__img {
  position: absolute; left: 0; top: 0;
  width: calc(897 * var(--u)); height: 100%;
  overflow: hidden;
}
.diferenciais__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.diferenciais__content {
  position: absolute;
  left: calc(1057 * var(--u)); top: calc(173 * var(--u));
  width: calc(650 * var(--u));
}
.diferenciais__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: calc(36 * var(--u));
  line-height: calc(45 * var(--u));
  color: #000;
  max-width: calc(600 * var(--u));
}
.diferenciais__title span { color: var(--blue); }
.timeline {
  list-style: none;
  margin: calc(158 * var(--u)) 0 0 calc(-1 * var(--u));
  padding: 0;
}
.timeline li {
  position: relative;
  padding-left: calc(93 * var(--u));
  font-size: calc(38 * var(--u));
  line-height: calc(48 * var(--u));
  color: #000;
}
.timeline li + li { margin-top: calc(47 * var(--u)); }
/* bolinha */
.timeline li::before {
  content: "";
  position: absolute; left: 0; top: calc(9 * var(--u));
  width: calc(30 * var(--u)); height: calc(30 * var(--u));
  border-radius: 50%;
  background: var(--blue);
}
/* linha que liga as bolinhas */
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(13 * var(--u)); top: calc(48 * var(--u));
  width: calc(4 * var(--u)); height: calc(94 * var(--u));
  border-radius: calc(2 * var(--u));
  background: var(--blue);
}
.tag-fale {
  position: absolute;
  left: calc(791 * var(--u)); top: calc(967 * var(--u));
  width: calc(344 * var(--u)); height: calc(80 * var(--u));
  display: flex; align-items: center; justify-content: center;
  background: var(--blue);
  color: var(--white);
  font-weight: 500;
  font-size: calc(40 * var(--u));
  z-index: 2;
  transition: filter .2s;
}
.tag-fale:hover { filter: brightness(1.25); }

/* ===================== FORMULÁRIO (h 970) ===================== */
#contato { background: linear-gradient(118deg, #000102 4%, #021a44 30%, #03245c 48%, #022f7b 72%, #013181 92%); }
.contato {
  position: relative;
  height: calc(970 * var(--u));
}
.form-box {
  position: absolute;
  left: calc(447 * var(--u)); top: calc(-53 * var(--u));
  width: calc(1028 * var(--u)); height: calc(626 * var(--u));
  padding: calc(84 * var(--u)) calc(91 * var(--u)) 0;
  background: var(--dark-2);
  border-radius: calc(40 * var(--u));
  box-shadow: calc(8 * var(--u)) calc(10 * var(--u)) calc(16 * var(--u)) rgba(0, 0, 0, .45);
  color: var(--white);
  z-index: 3;
}
.form-box h2 {
  text-align: center;
  font-weight: 500;
  font-size: calc(38 * var(--u));
  line-height: calc(48 * var(--u));
  margin-bottom: calc(22 * var(--u));
}
.field {
  display: block;
  height: calc(71 * var(--u));
  border: calc(1.5 * var(--u)) solid #77777a;
  margin-bottom: calc(17 * var(--u));
  transition: border-color .2s;
}
.field:focus-within { border-color: var(--white); }
.field input, .field select {
  width: 100%; height: 100%;
  background: none; border: 0; outline: 0;
  padding: 0 calc(23 * var(--u));
  color: var(--white);
  font: inherit;
  font-size: calc(30 * var(--u));
}
.field input::placeholder { color: var(--white); opacity: 1; }
.field--select {
  height: calc(107 * var(--u));
  position: relative;
  padding-top: calc(10 * var(--u));
}
.field__label {
  display: block;
  padding: 0 calc(23 * var(--u));
  font-size: calc(30 * var(--u));
  line-height: calc(43 * var(--u));
}
.field--select select {
  height: calc(43 * var(--u));
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  line-height: calc(43 * var(--u));
}
.field--select select option { color: #000; }
.form-error {
  margin-top: calc(-4 * var(--u));
  color: #ff8a80;
  font-size: calc(20 * var(--u));
  text-align: center;
}
.field.is-invalid { border-color: #ff8a80; }
.contato__note {
  position: absolute;
  left: 0; right: 0; top: calc(621 * var(--u));
  text-align: center;
  color: var(--white);
  font-weight: 500;
  font-size: calc(24 * var(--u));
  line-height: calc(32 * var(--u));
}
.btn-especialista {
  position: absolute;
  left: calc(668 * var(--u)); top: calc(701 * var(--u));
  width: calc(581 * var(--u)); height: calc(167 * var(--u));
  border: 0;
  border-radius: calc(22 * var(--u));
  background: var(--dark-2);
  color: var(--white);
  font-family: var(--font);
  font-weight: 500;
  font-size: calc(38 * var(--u));
  line-height: calc(47 * var(--u));
  cursor: pointer;
  box-shadow: calc(8 * var(--u)) calc(10 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, .45);
  transition: transform .2s, background .2s;
}
.btn-especialista:hover { transform: translateY(-2px); background: #333; }

/* ===================== RODAPÉ (h 167) ===================== */
.rodape {
  height: calc(167 * var(--u));
  display: flex; align-items: center; justify-content: center;
  gap: calc(96 * var(--u));
  padding-top: calc(16 * var(--u));
}
.rodape a {
  display: flex; align-items: center;
  gap: calc(10 * var(--u));
  color: var(--white);
  font-weight: 500;
  font-size: calc(28 * var(--u));
}
.rodape a:hover { opacity: .8; }
.rodape img { width: calc(32 * var(--u)); height: auto; }
.rodape a:last-child img { width: calc(35 * var(--u)); }

/* =========================================================
   TABLET / CELULAR (< 1100px): layout empilhado
   ========================================================= */
@media (max-width: 1099px) {
  :root { --u: 1px !important; }
  .topbar__inner, .hero__stage, .solucoes, .diferenciais, .contato, .rodape { width: auto; }

  /* Cabeçalho */
  .topbar__inner { height: 68px; padding: 0 16px; justify-content: space-between; }
  .logo { position: static; }
  .logo img { width: 120px; }
  .search { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px; height: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blue);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 18px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }

  /* Hero */
  .hero { background-size: cover; }
  .hero__stage { height: auto; display: flex; flex-direction: column; padding: 40px 16px 0; }
  .hero__content { position: static; width: auto; order: 1; }
  .hero__title { font-size: 28px; line-height: 38px; max-width: 560px; }
  .hero__title span { padding: 2px 8px 4px; }
  .hero__text { width: auto; max-width: 560px; margin-left: 0; font-size: 18px; line-height: 26px; }
  .hero__title + .hero__text { margin-top: 28px; }
  .hero__text + .hero__text { margin-top: 18px; }
  .btn-green {
    margin: 28px 0 0; width: 100%; max-width: 380px; height: 58px;
    font-size: 18px; padding-left: 18px; border-radius: 29px;
  }
  .btn-green img { width: 30px; height: 30px; }
  .hero__predio { position: relative; order: 2; left: auto; top: auto; width: 110%; max-width: 760px; margin: 24px -16px 0 auto; }
  .hero__camera { width: 160px; left: auto; right: -36px; top: auto; bottom: 200px; z-index: 1; }

  /* Soluções */
  .solucoes { height: auto; padding: 56px 16px; }
  .solucoes__title { font-size: 28px; line-height: 36px; }
  .cards { position: static; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }
  .card { width: calc(50% - 8px); min-width: 260px; flex: 1 1 260px; max-width: 420px; height: auto; min-height: 200px; border-radius: 28px; padding: 28px 24px; gap: 14px; }
  .card h3 { font-size: 21px; line-height: 26px; }
  .card p { font-size: 16px; line-height: 22px; }
  .btn-orcamento { position: relative; left: auto; top: auto; margin: 40px auto 0; width: 100%; max-width: 380px; height: 72px; border-width: 3px; padding: 4px 8px; }
  .btn-orcamento span { font-size: 22px; }

  /* Diferenciais */
  .diferenciais { height: auto; display: flex; flex-direction: column; }
  .diferenciais__img { position: relative; width: 100%; height: 360px; }
  .diferenciais__content { position: static; width: auto; padding: 48px 16px 40px; }
  .diferenciais__title { font-size: 26px; line-height: 34px; }
  .timeline { margin-top: 40px; }
  .timeline li { font-size: 19px; line-height: 26px; padding-left: 48px; }
  .timeline li + li { margin-top: 28px; }
  .timeline li::before { width: 20px; height: 20px; top: 3px; }
  .timeline li:not(:last-child)::after { left: 8.5px; top: 30px; width: 3px; height: calc(100% + 0px); }
  .tag-fale { position: absolute; left: 16px; top: 320px; width: 220px; height: 60px; font-size: 24px; }

  /* Formulário */
  .contato { height: auto; padding: 0 16px 56px; display: flex; flex-direction: column; align-items: center; }
  .form-box { position: relative; left: auto; top: auto; width: 100%; max-width: 620px; height: auto; margin-top: 0; padding: 36px 20px 32px; border-radius: 28px; }
  .form-box h2 { font-size: 24px; line-height: 30px; margin-bottom: 20px; }
  .field { height: 54px; margin-bottom: 12px; border-width: 1px; }
  .field input, .field select { font-size: 18px; padding: 0 14px; }
  .field--select { height: 82px; padding-top: 8px; }
  .field__label { font-size: 18px; line-height: 28px; padding: 0 14px; }
  .field--select select { height: 32px; line-height: 32px; }
  .form-error { font-size: 15px; margin-top: 4px; }
  .contato__note { position: static; margin-top: 36px; font-size: 16px; line-height: 22px; }
  .btn-especialista { position: static; margin-top: 20px; width: 100%; max-width: 380px; height: 110px; font-size: 24px; line-height: 32px; border-radius: 18px; }

  /* Rodapé */
  .rodape { height: auto; flex-direction: column; gap: 18px; padding: 36px 16px; }
  .rodape a { font-size: 18px; }
  .rodape img, .rodape a:last-child img { width: 26px; }
}
