/* Reset & base ------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.5;
}

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

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  cursor: pointer;
}

:root {
  --navy: #172547;
  --blue: #2f6fb0;
  --cyan: #4fb2e3;
  --green: #6fa61c;
  --lime: #a8d94a;

  --white: #ffffff;
  --slate-50: #f8fafc;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Header --------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
  background: var(--white);
  padding: 0.75rem 1.5rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgb(23 37 71 / 0.1);
}

.header__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

.header__name span {
  color: var(--green);
}

.header__nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
}

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

.header__nav a.is-active {
  color: var(--blue);
  font-weight: 700;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  padding: 0;
}

.header__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.header__toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767.98px) {
  .header__actions .btn--navy {
    display: none;
  }

  .header__nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 1.5rem 1rem;
  }

  .header__nav.is-open a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--slate-200);
  }

  .header__nav.is-open a:last-child {
    border-bottom: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--green {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

/* Long-text CTA (the "Se preferir, nos chame no Whatsapp" buttons): the base
   .btn keeps its stadium shape + nowrap for short labels, but that overflows
   past the pill on longer copy, so let this variant wrap onto two lines. */
.btn--cta {
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  border-radius: 1.25rem;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgb(255 255 255 / 0.6);
}

.btn--outline:hover {
  background: rgb(255 255 255 / 0.1);
  opacity: 1;
}

.btn--outline-green {
  background: var(--white);
  color: var(--green);
  border: 1px solid var(--green);
}

.btn--outline-green:hover {
  color: var(--blue);
  border-color: var(--blue);
  opacity: 1;
}

/* Layout helpers --------------------------------------------------------- */

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 800;
}

.section-title--navy {
  color: var(--navy);
}
.section-title--blue {
  color: var(--blue);
}
.section-title--green {
  color: var(--green);
}
.section-title--center {
  text-align: center;
}

.bg-slate {
  background: var(--slate-50);
}

.bg-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--cyan) 100%);
}

/* Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 7rem;
  background: linear-gradient(180deg, #1f6fb6 0%, #4fa6e8 42%, #bedbf5 72%, #ffffff 100%);
}

.hero__bubble {
  position: absolute;
  pointer-events: none;
  animation: hero-bubble-float 6s ease-in-out infinite;
}

.hero__bubble--1 {
  animation-delay: 0s;
}
.hero__bubble--2 {
  animation-delay: 1.1s;
}
.hero__bubble--3 {
  animation-delay: 2.2s;
}
.hero__bubble--4 {
  animation-delay: 0.6s;
}
.hero__bubble--5 {
  animation-delay: 1.7s;
}

@keyframes hero-bubble-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bubble {
    animation: none;
  }
}

.hero__inner {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.hero__title {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  margin: 0;
  text-shadow:
    0 0 28px rgba(255, 255, 255, 0.5),
    0 0 60px rgba(255, 255, 255, 0.25),
    0 2px 10px rgba(10, 30, 60, 0.25);
}

.hero__tagline {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
}

.hero__tagline span {
  color: var(--lime);
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero__badge {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15rem;
  height: 15rem;
}

.hero__badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(8, 25, 55, 0.28));
}

/* Diferenciais --------------------------------------------------------- */

.diferenciais {
  display: grid;
  gap: 2.5rem;
  margin-top: 0;
}

.diferenciais__content {
  display: grid;
  gap: 1rem;
}

.diferenciais__list {
  display: grid;
  gap: 1rem;
}

.diferenciais__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--slate-200);
  background: var(--white);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.4s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.diferenciais__item.is-visible {
  opacity: 1;
  transform: scale(1);
}

.diferenciais__item:nth-child(1) {
  transition-delay: 0ms;
}
.diferenciais__item:nth-child(2) {
  transition-delay: 80ms;
}
.diferenciais__item:nth-child(3) {
  transition-delay: 160ms;
}
.diferenciais__item:nth-child(4) {
  transition-delay: 240ms;
}
.diferenciais__item:nth-child(5) {
  transition-delay: 320ms;
}
.diferenciais__item:nth-child(6) {
  transition-delay: 400ms;
}

@media (prefers-reduced-motion: reduce) {
  .diferenciais__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.diferenciais__check {
  margin-top: 0.125rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: rgb(111 166 28 / 0.1);
  color: var(--green);
}

.diferenciais__check .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.diferenciais__art {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18rem;
  height: 18rem;
  border-radius: 9999px;
  background: linear-gradient(
    135deg,
    rgb(47 111 176 / 0.1) 0%,
    rgb(111 166 28 / 0.1) 100%
  );
  overflow: hidden;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.5s ease,
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.diferenciais__art.is-visible {
  opacity: 1;
  transform: scale(1);
}

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

@media (prefers-reduced-motion: reduce) {
  .diferenciais__art {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Quem somos ----------------------------------------------------------- */

.quem-somos {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.quem-somos__photo {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.quem-somos__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.quem-somos__text p {
  margin-top: 1rem;
  color: var(--navy);
}

.quem-somos__text ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  color: var(--navy);
}

.quem-somos__text strong {
  font-weight: 600;
}

/* Servicos --------------------------------------------------------------- */

.servicos__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.servicos__line {
  flex: 1;
  height: 1px;
  background: var(--slate-300);
}

.servicos__carousel {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.servicos__track {
  position: relative;
  flex: 1;
  min-height: 26rem;
}

.servicos__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(260px, 78vw);
  cursor: pointer;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
}

.servicos__slide[data-active='true'] {
  cursor: default;
}

.servicos__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  z-index: 20;
}

.servicos__arrow:hover {
  background: var(--slate-50);
}

.servicos__dots {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.servicos__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: var(--slate-300);
  border: none;
  padding: 0;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.servicos__dot.is-active {
  background: var(--blue);
  transform: scale(1.3);
}

@media (prefers-reduced-motion: reduce) {
  .servicos__slide {
    transition: none;
  }
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--slate-200);
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card__icon {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: rgb(47 111 176 / 0.1);
  color: var(--blue);
}

.card__icon .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.card h3 {
  font-weight: 700;
  color: var(--slate-800);
}

.card p {
  margin-top: 0.5rem;
  flex: 1;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.card .btn {
  margin-top: 1rem;
  align-self: flex-start;
  font-size: 0.875rem;
}

/* Como funciona ---------------------------------------------------------- */

.como-funciona__grid {
  display: grid;
  gap: 2rem;
  max-width: 60rem;
  margin: 2.5rem auto 0;
}

.como-funciona__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.como-funciona__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.como-funciona__icon .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.como-funciona__number {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.como-funciona__step h3 {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.como-funciona__step p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

/* Contato ---------------------------------------------------------------- */

.contato__intro {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  color: var(--blue);
}

.contato__intro p {
  margin-top: 0.5rem;
}

.contato__content {
  margin: 2.5rem auto 0;
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
}

.contato__badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10rem;
  height: 10rem;
  border-radius: 9999px;
  background: var(--white);
  padding: 0.375rem;
  box-shadow: var(--shadow-xl);
}

.contato__badge img {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  object-fit: cover;
}

.contato__card {
  width: 100%;
  max-width: 46rem;
  border: 1px solid var(--slate-200);
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.contato__grid {
  display: grid;
  /* Mobile-first: one column so phone/Instagram/Facebook/e-mail/hours
     always get the card's full width and never fight each other for
     room. Two columns only kick in once there's enough width for the
     longest line (the e-mail) to sit comfortably in half the card. */
  grid-template-columns: 1fr;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--navy);
}

.contato__grid > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Grid/flex items default to min-width: auto, which keeps them from
     shrinking below their content's intrinsic width -- for the e-mail
     that's the whole unbroken string, and it was bleeding past the card
     edge. overflow-wrap: anywhere (unlike break-word) also counts
     towards that intrinsic sizing, so this actually lets the row shrink
     and wrap instead of overflowing. */
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contato__grid .icon {
  color: var(--green);
}

.contato__grid a.contato__link {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.15s ease;
}

.contato__grid a.contato__link:hover,
.contato__grid a.contato__link:focus-visible {
  color: var(--green);
  text-decoration: underline;
}

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

.contato__card .btn {
  margin-top: 1.5rem;
  width: 100%;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Footer ------------------------------------------------------------------ */

.footer {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem;
  color: var(--white);
}

.footer__grid {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: start;
}

.footer__badge {
  margin: 0 auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7rem;
  height: 7rem;
  border-radius: 9999px;
  background: var(--white);
  padding: 0.25rem;
  box-shadow: var(--shadow-lg);
}

.footer__badge img {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  object-fit: cover;
}

.footer h3 {
  font-weight: 700;
}

.footer__about p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.9);
}

.footer__cnpj {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.7);
}

.footer__contacts {
  font-size: 0.875rem;
}

.footer__contacts ul {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.5rem;
  color: rgb(255 255 255 / 0.9);
}

.footer__contacts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__contacts a.footer__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__contacts a.footer__link:hover,
.footer__contacts a.footer__link:focus-visible {
  color: var(--lime);
  text-decoration: underline;
}

.footer__contacts .btn {
  margin-top: 1rem;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
}

.footer__bottom {
  position: relative;
  max-width: 72rem;
  margin: 2rem auto 0;
  border-top: 1px solid rgb(255 255 255 / 0.2);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.6);
}

/* Responsive --------------------------------------------------------------- */

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }

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

  .como-funciona__grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 768px) {
  .header {
    padding: 0.75rem 3rem;
  }

  .header__nav {
    display: flex;
  }

  .header__toggle {
    display: none;
  }

  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .section-title--left {
    text-align: left;
  }

  .hero {
    padding: 6rem 3rem 9rem;
  }

  .hero__badge {
    width: 20rem;
    height: 20rem;
  }

  .hero__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .hero__title {
    font-size: 3.75rem;
  }

  .hero__tagline {
    font-size: 1.5rem;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .diferenciais {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .diferenciais__art {
    width: 20rem;
    height: 20rem;
  }

  .quem-somos {
    grid-template-columns: 1fr 1fr;
  }

  .quem-somos__photo {
    max-width: 34rem;
  }

  .footer {
    padding: 3rem;
  }

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

@media (min-width: 1024px) {
  /* The badge sits stacked above the card up to this point: the card's
     own max-width already grew (24rem -> 38rem) so every contact line
     fits on one row, and placing badge + card side by side any earlier
     than this would make that wider card overflow the section on
     tablet-width screens. */
  .contato__content {
    flex-direction: row;
    justify-content: center;
  }
}
