:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #546179;
  --line: #e8eef6;
  --blue: #1fa4ff;
  --red: #ff2a3d;
  --grad: linear-gradient(100deg, var(--red), var(--blue));
  --card: #ffffff;
  --shadow: 0 14px 36px rgba(2, 6, 23, 0.08);
  --radius: 18px;

  /* Footer palette (mantido, porém o footer usará preto) */
  --footer-bg: #273469;
  --footer-bg-soft: #2f3b77;
  --footer-bar: #1b244a;
  --footer-text: #e8eef6;
  --footer-muted: #c9d2e6;
  --footer-accent: #f59e0b;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ====== HEADER / NAV (preto com texto branco, altura mais baixa) ====== */
.header{
  position: sticky;
  top: 0;
  z-index: 30;
  background: #000000;
  backdrop-filter: none;
  border-bottom: 1px solid #111111;
}

.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;          /* antes 12px */
  min-height: 72px;        /* barra mais compacta */
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 900;
  line-height: 1;
}

.brand img{
  width: 96px;             /* antes 120px */
  height: 96px;
  object-fit: contain;
  display: block;
  transform: translateY(-2px);
  margin-top: -6px;        /* parte da logo “sai” da barra, mantendo destaque */
  margin-bottom: -6px;
}

.brand span{
  line-height: 1;
  color: #ffffff;
}

.nav__checkbox{ display: none; }

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav__toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;             /* antes 48px */
  height: 44px;            /* antes 48px */
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 12px;
  background: #000000;
  box-shadow: none;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
  z-index: 35;
  margin-left: 60px;
}

.nav__toggle:hover{
  background: #0a0a0a;
  box-shadow: none;
}

.hamb,
.hamb:before,
.hamb:after{
  display: block;
  width: 22px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, background .2s ease;
  content: "";
}

.hamb{ position: relative; }
.hamb:before{ position: absolute; top: -7px; left: 0; }
.hamb:after{  position: absolute; top: 7px;  left: 0; }

.nav__checkbox:checked + .nav__toggle .hamb{ background: transparent; }
.nav__checkbox:checked + .nav__toggle .hamb:before{ top: 0; transform: rotate(45deg); }
.nav__checkbox:checked + .nav__toggle .hamb:after{  top: 0; transform: rotate(-45deg); }

.nav__list{
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav__list a{
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: .95rem;
  padding: 6px 0;          /* antes 8px */
  opacity: .9;
}

.nav__list a:hover{ opacity: 1; }

.nav__list a.btn--wa{
  color: #ffffff;
  padding: 10px 18px;
  line-height: 1;
}

.nav__list a.btn--wa i{ color: #ffffff; }

/* ====== HEADER: RESPONSIVO ====== */
@media (max-width: 980px){
  .nav__toggle{ display: inline-flex; }

  .nav__list{
    position: absolute;
    right: 16px;
    top: 68px;                   /* ajustado pela barra mais baixa (antes 76px) */
    background: #000000;
    border: 1px solid #111111;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    display: none;
    flex-direction: column;
    min-width: 220px;
  }

  .nav__checkbox:checked ~ .nav .nav__list{ display: flex; }
  .nav__list .btn--sm{ width: 100%; justify-content: center; }
}


/* ====== BOTÕES ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad);
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(31, 164, 255, 0.25);
  transform: translateY(0);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.btn--outline {
  background: #ffffff;
  color: var(--text);
  border: 2px solid var(--line);
}

.btn--sm {
  padding: 8px 14px;
}

.btn--xl {
  padding: 16px 22px;
  font-size: 1.05rem;
}

.btn--wa {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.28);
}

.btn--wa i {
  color: #ffffff;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__slides {
  position: relative;
  height: 72vh;
  min-height: 560px;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background: var(--bg) center / cover no-repeat;
  background-image: var(--img);
  opacity: 0;
  animation: heroFade 18s infinite;
}

.hero__slide:nth-child(1) {
  animation-delay: 0s;
}

.hero__slide:nth-child(2) {
  animation-delay: 6s;
}

.hero__slide:nth-child(3) {
  animation-delay: 12s;
}

@keyframes heroFade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  32% { opacity: 1; }
  36% { opacity: 0; }
  100% { opacity: 0; }
}

.hero__content {
  position: relative;
  margin-top: -140px;
  margin-bottom: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero__content h1 {
  font-size: clamp(1.9rem, 2.4vw + 1rem, 3.1rem);
  line-height: 1.2;
  margin: 0 0 8px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__content p {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 16px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ====== SEÇÕES E GRID ====== */
.section {
  padding: 80px 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(31, 164, 255, 0.06), rgba(255, 42, 61, 0.06));
}

.section__title {
  font-size: 2rem;
  margin: 0 0 14px;
}

.section__lead {
  color: var(--muted);
  margin: 0 0 8px;
}

.center {
  text-align: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ====== PILLS ====== */
.pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin: 14px 0 18px;
  list-style: none;
}

.pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
}

.pills i {
  color: var(--blue);
}

/* ====== CARDS ====== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.1);
}

.card i {
  font-size: 28px;
  color: var(--blue);
  margin-bottom: 10px;
}

.card h3 {
  margin: 0 0 8px;
}

/* ====== SEÇÃO SERVIÇOS BACKDROP ====== */
#servicos {
  position: relative;
  background-image: url('img/fundo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

#servicos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(144, 168, 248, 0.62), rgba(117, 125, 233, 0.62));
  backdrop-filter: saturate(1.05) blur(1px);
  z-index: 0;
}

#servicos .container {
  position: relative;
  z-index: 1;
}

#servicos .cards {
  margin-top: 20px;
  margin-bottom: 28px;
}

#servicos .center {
  margin-top: 12px;
}

#servicos .section__lead {
  color: #000000;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  font-weight: bold;
  font-size: 1.1rem;
}

/* ====== GALERIA ====== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.tile {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.tile:hover img {
  transform: scale(1.04);
}

.tile figcaption {
  padding: 12px 14px;
  font-weight: 800;
}

/* ====== CTA ====== */
.cta {
  background: linear-gradient(180deg, #ffffff, rgba(31, 164, 255, 0.06));
}

.section.cta .grid-2 {
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
}

.section.cta .section__title {
  margin-bottom: 10px;
}

.section.cta p {
  margin: 0 0 12px;
}

.section.cta .map-wrap {
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section.cta .map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.section.cta .btn {
  margin-top: 18px;
}

.section.cta .media {
  align-self: stretch;
  display: grid;
}

.section.cta .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ====== BOTÃO WHATS FLOTANTE ====== */
.whats {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #ffffff;
  font-size: 26px;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  z-index: 60;
  animation: wa-bounce 2.4s ease-in-out infinite;
}

.whats i {
  color: #ffffff;
}

.whats::before,
.whats::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  pointer-events: none;
  z-index: -1;
}

.whats::before {
  animation: wa-pulse 2.4s ease-out infinite;
}

.whats::after {
  background: rgba(37, 211, 102, 0.22);
  animation: wa-pulse 2.4s ease-out infinite;
  animation-delay: 1.2s;
}

@keyframes wa-bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes wa-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.45; }
  70% { opacity: 0.08; }
  100% { transform: translate(-50%, -50%) scale(2.15); opacity: 0; }
}

/* ====== RESPONSIVO ====== */
@media (max-width: 980px) {
  .hero__content {
    margin-top: -270px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__list {
    position: absolute;
    right: 16px;
    top: 76px;
    background: #000000;
    border: 1px solid #111111;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: none;
    flex-direction: column;
    min-width: 220px;
  }

  .nav__checkbox:checked ~ .nav .nav__list {
    display: flex;
  }

  .nav__list .btn--sm {
    width: 100%;
    justify-content: center;
  }

  .brand img {
    width: 64px;
    height: 64px;
    transform: translateY(-1px);
  }

  .section.cta .media {
    order: 2;
    height: 260px;
  }

  .section.cta .map-wrap iframe {
    height: 260px;
  }
}

@media (max-width: 720px) {
  .section.cta .grid-2 {
    grid-template-columns: 1fr;
  }

  .section.cta .grid-2 > div:first-child {
    display: contents;
  }

  .section.cta .section__title { order: 0; }

  .section.cta .media {
    order: 1;
    height: 220px;
    margin-top: 8px;
  }

  .section.cta .media img { height: 220px; }

  .section.cta p { order: 2; }
  .section.cta .map-wrap { order: 3; }
  .section.cta .btn { order: 4; }

  .cards {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: 56px;
    height: 56px;
    transform: translateY(-1px);
  }

  .section.cta .map-wrap iframe {
    height: 240px;
  }
}

/* ====== FOOTER (preto + altura reduzida) ====== */
.footer {
  margin-top: 40px;
  color: var(--footer-text);
  background: #000000;
}

.footer__top {
  padding: 28px 0 18px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 24px;
}

.footer__brandbox {
  display: grid;
  gap: 14px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--footer-text);
}

.footer__brand img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 14px;
  border: none;
}

.footer__brand span {
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 1.1rem;
}

.footer__about {
  margin: 0;
  color: var(--footer-muted);
  max-width: 54ch;
  line-height: 1.7;
}

.footer__col {
  display: grid;
  gap: 10px;
}

.footer__title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.footer__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer__menu a {
  display: block;
  color: var(--footer-text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.footer__menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--footer-muted);
}

.footer__list i {
  margin-top: 3px;
  color: #ffffff;
  opacity: 0.9;
}

.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.footer__phone i {
  font-size: 18px;
}

.footer__phone:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.footer__finance {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.footer__badge {
  display: inline-block;
  align-self: start;
  background: rgba(245, 158, 11, 0.15);
  color: var(--footer-accent);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.88rem;
}

.footer__financePhone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.footer__financePhone:hover {
  background: rgba(255, 255, 255, 0.1);
}

.footer__financePhone i {
  font-size: 16px;
}

.footer__bar {
  background: #000000;
  color: var(--footer-muted);
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__barInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__barInner--solo {
  justify-content: center;
}

/* responsivo do footer */
@media (max-width: 980px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__barInner {
    flex-direction: column;
  }
}

/* anchor offset da área financeira */
#financeiro {
  scroll-margin-top: 90px;
}

/* botão grande do WhatsApp na CTA em telas pequenas ocupa 100% */
@media (max-width: 720px) {
  .section.cta .btn--xl.btn--wa {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* ====== CRÉDITO DO DESENVOLVEDOR (compacto) ====== */
.site-footer {
  background: var(--footer-bar);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0 16px;
}

.developer-credit {
  text-align: center;
  opacity: 0.75;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--footer-text);
  padding: 8px 0;
}

.developer-credit a {
  color: purple;
  text-decoration: none;
  font-weight: 800;
}

.developer-credit a:hover {
  text-decoration: underline;
  opacity: 1;
}
