/* =========================================================
   Núcleo das Reformas - Landing Page
   Paleta: azul principal, azul escuro, branco, cinza claro, verde WhatsApp
   ========================================================= */

/* ---------- Variáveis de tema ---------- */
:root {
  --blue: #1666d4;
  /* azul principal */
  --blue-dark: #0a2540;
  /* azul escuro (títulos) */
  --blue-light: #e8f1fd;
  /* azul claro (destaques suaves) */
  --white: #ffffff;
  --gray-bg: #f4f6fa;
  /* cinza claro (fundo de seções) */
  --gray-border: #e2e8f0;
  --text: #1f2a37;
  /* texto principal */
  --text-muted: #5c6b7a;
  /* texto secundário */
  --whatsapp: #25d366;
  --whatsapp-dark: #1db954;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, .06);
  --shadow-md: 0 12px 30px rgba(10, 37, 64, .10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, .16);
  --header-h: 76px;

  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

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

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--blue-dark);
  line-height: 1.15;
  font-weight: 800;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 820px;
}

.section {
  padding: 88px 0;
}

.section--muted {
  background: var(--gray-bg);
}

.section__head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin-bottom: 14px;
}

.section__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}

.btn--sm {
  padding: 10px 18px;
  font-size: .9rem;
}

.btn--lg {
  padding: 18px 34px;
  font-size: 1.15rem;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(22, 102, 212, .28);
}

.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(10, 37, 64, .28);
}

.btn--ghost {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--gray-border);
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, .45);
}

/* ---------- Header / Navbar ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}

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

.header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 46px;
  width: auto;
  transition: filter .3s ease;
}

/* Header transparente no topo -> logo branca */
.header:not(.is-scrolled) .brand-logo {
  filter: brightness(0) invert(1);
}

.header:not(.is-scrolled) .nav__link {
  color: rgba(255, 255, 255, .9);
}

.header:not(.is-scrolled) .nav-toggle span {
  background: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  color: var(--blue-dark);
  position: relative;
  transition: color .2s ease;
}

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

.nav__link:hover {
  color: var(--blue);
}

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

.header:not(.is-scrolled) .nav__link:hover {
  color: var(--white);
}

.header:not(.is-scrolled) .nav__link::after {
  background: var(--white);
}

.nav__cta {
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--blue-dark);
  border-radius: 3px;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 90px;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(22, 102, 212, .18), transparent 60%),
    linear-gradient(160deg, var(--blue-dark) 0%, #123a66 55%, #16569e 100%);
  color: var(--white);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  margin-bottom: 22px;
}

.hero__title {
  color: var(--white);
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .85);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 38px;
}

.hero__actions .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
}

.hero__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--white);
  color: var(--white);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  color: rgba(255, 255, 255, .92);
}

.hero__trust svg {
  color: #7fb2ff;
  flex: none;
}

.hero__media {
  position: relative;
}

.hero__media img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .15);
}

/* ---------- Cards de serviços ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 102, 212, .3);
}

.card__media {
  position: relative;
  aspect-ratio: 10 / 16;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.card:hover .card__media img {
  transform: scale(1.06);
}

.card__icon {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card__desc {
  color: var(--text-muted);
  font-size: .96rem;
  margin-bottom: 18px;
  flex: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue);
  font-size: .95rem;
  align-self: flex-start;
}

.card__link svg {
  transition: transform .25s ease;
}

.card__link:hover svg {
  transform: translateX(4px);
}

/* ---------- Galeria / Portfólio ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 37, 64, .35), transparent 55%);
  opacity: 0;
  transition: opacity .35s ease;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

.portfolio__cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Diferenciais ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
  transition: transform .3s ease, box-shadow .3s ease;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue);
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-muted);
  font-size: .94rem;
}

/* ---------- Timeline / Como trabalhamos ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}

.timeline__item {
  position: relative;
  padding-top: 8px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 56px;
  right: -14px;
  height: 2px;
  background: linear-gradient(to right, var(--blue), rgba(22, 102, 212, .2));
}

.timeline__item:last-child::before {
  display: none;
}

.timeline__num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(22, 102, 212, .3);
  position: relative;
  z-index: 1;
}

.timeline__item h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.timeline__item p {
  color: var(--text-muted);
  font-size: .95rem;
}

/* ---------- Depoimentos ---------- */
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial__stars {
  display: flex;
  gap: 4px;
  color: #f5b301;
}

.testimonial__text {
  color: var(--text);
  font-size: 1.02rem;
  font-style: italic;
  flex: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-dark);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
}

.testimonial__name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue-dark);
}

.testimonial__role {
  font-size: .86rem;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion__item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.accordion__item.is-open {
  box-shadow: var(--shadow-sm);
  border-color: rgba(22, 102, 212, .35);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--blue-dark);
  text-align: left;
}

.accordion__icon {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--blue);
  transition: transform .3s ease;
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.accordion__panel p {
  padding: 0 22px 22px;
  color: var(--text-muted);
}

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  padding: 96px 0;
  background: url("images/cta-bg.png") center/cover no-repeat fixed;
  color: var(--white);
  text-align: center;
}

.cta-final__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 37, 64, .92), rgba(18, 58, 102, .88));
}

.cta-final__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.cta-final h2 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 18px;
}

.cta-final p {
  color: rgba(255, 255, 255, .88);
  font-size: 1.15rem;
  margin-bottom: 34px;
}

/* ---------- Rodapé ---------- */
.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, .8);
  padding-top: 64px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__logo {
  display: inline-flex;
}

.brand-logo--footer {
  height: 54px;
  filter: brightness(0) invert(1);
}

.footer__desc {
  margin: 18px 0 12px;
  max-width: 340px;
  font-size: .96rem;
}

.footer__cities {
  font-weight: 600;
  color: rgba(255, 255, 255, .95);
}

.footer h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav a {
  color: rgba(255, 255, 255, .78);
  transition: color .2s ease, padding-left .2s ease;
  width: fit-content;
}

.footer__nav a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .82);
  transition: color .2s ease;
}

.footer__contact-item:hover {
  color: var(--white);
}

.footer__contact-item svg {
  color: #7fb2ff;
  flex: none;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0;
}

.footer__bottom p {
  font-size: .88rem;
  color: rgba(255, 255, 255, .6);
  text-align: center;
}

/* ---------- Botões flutuantes ---------- */
.float-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(37, 211, 102, .5);
  z-index: 900;
  animation: pulse 2.4s infinite;
  transition: transform .25s ease;
}

.float-whatsapp:hover {
  transform: scale(1.08);
}

@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);
  }
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-dark);
  color: var(--white);
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue);
}

/* ---------- Animações de scroll (reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .float-whatsapp {
    animation: none;
  }

  * {
    transition: none !important;
  }
}

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

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline__item::before {
    display: none;
  }

  .testimonial-cards {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__media {
    order: -1;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  /* Menu mobile */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    padding: 12px 24px 28px;
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform .35s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav__link {
    color: var(--blue-dark) !important;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-border);
  }

  .nav__link::after {
    display: none;
  }

  .header:not(.is-scrolled) .nav__link {
    color: var(--blue-dark);
  }

  .nav__cta {
    margin-top: 16px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .gallery__item--tall {
    grid-row: span 1;
  }

  .cta-final {
    background-attachment: scroll;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 18px;
  }

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

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

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

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

  .hero__actions .btn {
    width: 100%;
  }

  .float-whatsapp {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
  }

  .back-to-top {
    right: 18px;
    bottom: 80px;
  }
}