/* =========================================================
   PRAGLIMP — variáveis e reset
========================================================= */
:root {
  --navy: #1B1F3B;
  --green: #049839;
  --green-dark: #037a2e;
  --blue: #19408a;
  --white: #ffffff;
  --off-white: #f5f6fa;
  --text: #2b2e42;
  --text-light: #6b6f8a;

  --font: 'Poppins', 'Segoe UI', Arial, sans-serif;

  --header-h: 84px;
  --container-w: 1200px;

  --shadow-card: 0 12px 30px rgba(27, 31, 59, 0.12);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

h1, h2, h3 { font-weight: 700; line-height: 1.2; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.eyebrow--center { display: block; text-align: center; }

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--navy);
  margin-bottom: 40px;
}

.eyebrow--center + .section-title { text-align: center; }

/* placeholder de imagem (substituir pelas fotos reais) */
.placeholder-img {
  position: relative;
  background: repeating-linear-gradient(
    135deg,
    #e7e9f2,
    #e7e9f2 14px,
    #dde0ec 14px,
    #dde0ec 28px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.placeholder-img::after {
  content: attr(data-placeholder);
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  max-width: 80%;
}

/* =========================================================
   BOTÕES
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--whatsapp {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(4, 152, 57, 0.35);
}

.btn--whatsapp svg { width: 20px; height: 20px; fill: var(--white); }

.btn--whatsapp:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(4, 152, 57, 0.4);
}

/* =========================================================
   HEADER (fixo, transparente -> sólido ao rolar)
========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.header.scrolled {
  background: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.logo__img {
  height: 40px;
  width: auto;
  display: block;
}

.nav__list {
  display: flex;
  gap: 34px;
}

.nav__link {
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.25s ease;
}

.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.header__socials {
  display: flex;
  gap: 14px;
}

.header__socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.header__socials svg { width: 16px; height: 16px; fill: var(--white); }

.header__socials a:hover {
  background: var(--green);
  border-color: var(--green);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* =========================================================
   HERO (seção 2 + 3)
========================================================= */
.hero {
  position: relative;
}

.hero__banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 760;
  /* nunca mais baixo que a altura real do banner: garante que a imagem
     nunca seja cortada na vertical e que sobre espaço abaixo do header
     para o formulário, em qualquer largura de tela */
  min-height: 760px;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(27, 31, 59, 0.72) 0%,
    rgba(27, 31, 59, 0.66) 28%,
    rgba(27, 31, 59, 0.32) 55%,
    rgba(27, 31, 59, 0.08) 80%
  );
  z-index: 1;
}

.hero__banner-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
}

.hero__headline {
  color: var(--white);
  max-width: 560px;
}

.hero__headline h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero__headline p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Desktop: formulário sobreposto ao banner, alinhado à direita */
.hero__form-wrap {
  position: absolute;
  top: calc(45% + (var(--header-h) / 2));
  right: max(24px, calc((100vw - var(--container-w)) / 2 + 24px));
  transform: translateY(-50%);
  width: 400px;
  z-index: 3;
}

.hero__form {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.hero__form h2 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 16px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8dae6;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
}

.hero__form input[type="submit"] {
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero__form input[type="submit"]:hover { background: var(--green-dark); }
.hero__form input[type="submit"]:disabled { cursor: not-allowed; }

.form__feedback {
  margin-top: 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.loaderForm {
  width: 14px;
  height: 14px;
  border: 2px solid #d8dae6;
  border-top-color: var(--blue);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   QUEM SOMOS (seção 4)
========================================================= */
.about { padding: 64px 0; background: var(--white); }

.about__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about__text { flex: 1 1 420px; }

.about__text h2 {
  font-size: clamp(26px, 3vw, 36px);
  color: var(--navy);
  margin-bottom: 20px;
}

.about__text p {
  color: var(--text-light);
  font-size: 16px;
}

.about__image {
  flex: 1 1 420px;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 280px;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   SERVIÇOS (seção 5)
========================================================= */
.services { padding: 64px 0; background: var(--off-white); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(27, 31, 59, 0.16);
}

.service-card__image {
  aspect-ratio: 1 / 1;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card h3 {
  font-size: 18px;
  color: var(--navy);
  margin: 20px 24px 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0 24px 24px;
}

/* =========================================================
   CTA WHATSAPP (seção 6)
========================================================= */
.cta {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  padding: 56px 0;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  text-align: center;
}

.cta__inner p {
  color: var(--white);
  font-size: 22px;
  font-weight: 600;
}

/* =========================================================
   LOCALIZAÇÃO (seção 7)
========================================================= */
.location { padding: 64px 0 0; background: var(--white); text-align: center; }

.location__address {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 40px;
}

.location__map {
  width: 100%;
  height: 420px;
}

/* =========================================================
   CONTATO
========================================================= */
.contact {
  padding: 80px 0;
  background: var(--off-white);
  text-align: center;
}

.contact__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact p { color: var(--text-light); }

/* =========================================================
   RODAPÉ (seção 8)
========================================================= */
.footer { background: var(--navy); padding: 40px 0; }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.logo__mark--footer {
  height: 40px;
  width: auto;
  display: block;
}

.footer__credit {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer__credit strong { color: var(--white); }

.footer__socials { display: flex; gap: 14px; }

.footer__socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__socials svg { width: 16px; height: 16px; fill: var(--white); }

.footer__socials a:hover { background: var(--green); border-color: var(--green); }

/* =========================================================
   RESPONSIVO
========================================================= */
@media (max-width: 992px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .hero__form-wrap { width: 340px; }

  .about__image { width: 90%; }
}

@media (max-width: 768px) {
  .nav { position: fixed; top: var(--header-h); left: 0; width: 100%; height: 0; overflow: hidden; background: var(--navy); transition: height 0.3s ease; }
  .nav.open { height: calc(100vh - var(--header-h)); }
  .nav__list { flex-direction: column; gap: 0; padding: 20px 24px; }
  .nav__link { display: block; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .header__socials { display: none; }
  .menu-toggle { display: flex; }

  /* Formulário volta ao fluxo normal, abaixo do banner (não sobreposto) */
  .hero__banner { aspect-ratio: unset; min-height: 420px; }
  .hero__headline { max-width: none; text-align: center; margin: 0 auto; }

  .hero__form-wrap {
    position: static;
    transform: none;
    width: auto;
    padding: 40px 24px;
    background: var(--off-white);
  }

  .hero__form { max-width: 400px; margin: 0 auto; }

  .about__inner { flex-direction: column; }

  .services__grid { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; text-align: center; }
}
