@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

* {
    padding: 0;
    margin: 0;
}

button {
  border: none;
  outline: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
}

body {
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  background-color: #EBEBEB;
}

.header {
    width: 100%;
    height: 104px;
    background-color: #124A61;
}

.header__nav {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}

.header__inner {
  max-width: 1239px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, menu right */
  width: 100%;
  padding: 0 20px;
}

.header__list {
  display: flex;
  list-style: none;
  flex-direction: row;
  align-items: center;
  gap: 36px;
  font-size: 20px;
}

.header__link,
.header__link:visited,
.header__link:hover,
.header__link:active {
  text-decoration: none;
  color: inherit;
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #FCC019;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.header__link:hover::after {
  transform: scaleX(1);
}

.header__link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #FCC019;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.header__link:hover::after {
  transform: scaleX(1);
}

.header__link {
  position: relative;
  display: inline-block;
}

.header__link--logo img {
  max-height: 68px;
}

.header__logo-link {
  display: inline-block;
  background: #124A61; /* match header background to hide edge artifacts */
  padding: 6px 8px; /* small safe gutter around the image */
}

.header__logo-link img { height: 54px; display:block; background: transparent }

.header__link--logo:hover {
  border-bottom: none;
}

.main {
  width: 100%;
}

.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.hero__slide {
  position: absolute;
  inset: 0;

  opacity: 0;
  transition: opacity 1.2s ease-in-out;

  z-index: 0;
}

.hero__slide.active {
  opacity: 1;
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  transition: transform 5s ease;
}

.hero__slide.active img {
  transform: scale(1);
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 60vh;
  }
}

.hero__title {
  max-width: 712px; /* match Figma width, but remain responsive */
  width: 100%;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 45px;
  font-style: normal;
  line-height: normal;
  margin: 0;
  text-align: left;
  white-space: normal;
  word-wrap: break-word;
}

.hero__button {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__button {
  max-width: 400px;
  gap: 19px;
  flex-shrink: 0;
}

.hero__orcamento, .hero__portifolio {
  border-radius: 90px;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  line-height: 140%;
}

.hero__orcamento {
  display: flex;
  width: 100%;
  max-width: 452px;
  height: 70px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 90px;
  background: #124A61;
  box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.10);
}

.hero__portifolio {
  display: flex;
  width: 100%;
  max-width: 337px;
  height: 44px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  border-bottom: 2px solid #FFF;
  background-color: transparent;
}

.hero__paragraph {
  font-family: 'Montserrat', sans-serif;
  max-width: 500px;
  text-align: left;
  font-weight: 400;
  font-size: 20px;
}

.sobre-nos {
  padding: 80px 20px;
  background-color:#EBEBEB;
}

.sobre-nos__container {
  max-width: 1239px;
  margin: 0 auto;
}

.sobre-nos__header {
  text-align: left;
  margin-bottom: 24px;
}

.sobre-nos__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 25px;
  line-height: 1.21;
  text-transform: uppercase;
  color: #434343;
}

.sobre-nos__intro {
  max-width: 794px;
}

.sobre-nos__cards-row {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.sobre-nos__cards-row .card {
  flex: 1;
}

.sobre-nos__map-stats {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-top: 32px;
}

.sobre-nos__map {
  flex: 1 1 auto;
}

.sobre-nos__stats {
  width: 338px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.sobre-nos__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 45px;
  line-height: 1.3;
  text-transform: uppercase;
  color: #124A61;
  margin-bottom: 12px;
}

.sobre-nos__paragraph {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.4;
  color: #434343;
  margin-bottom: 24px;
}

.sobre-nos__cards {
  display: flex;
  gap: 20px;
}

.card {
  background: #E8E8E8;
  border: 1px solid #124A61;
  border-radius: 20px;
  padding: 30px 20px;
  flex: 1;
}

.card__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1.3;
  text-transform: uppercase;
  color: #124A61;
  margin-bottom: 12px;
}

.card__text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.4;
  color: #434343;
}

.sobre-nos__map-image {
  width: 613.68px;
  max-width: 100%;
  height: auto;
  display: block;
}

.sobre-nos__stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  width: 338px;
}

.sobre-nos__stat {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  text-align: center;
}

.sobre-nos__stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 1;
  color: #124A61;
  white-space: nowrap;
  margin: 0;
}

.sobre-nos__stat-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  color: #434343;
  margin: 0;
  white-space: nowrap; /* keep label on a single line */
  display: block;
}

.partners__heading {
  padding-left: 16px;
}

/* keep stacked layout on small screens */
@media (max-width: 600px) {
  .sobre-nos__stat { flex-direction: column; align-items: center; }
  .sobre-nos__stat-number { font-size: 48px; }
  .sobre-nos__stat-label { font-size: 18px; white-space: normal; }
}

.divisor {
  border-top: 5px #FCC019 solid;
  width: 100%;
}

.info-box-wrap {
  display: flex;
  justify-content: center;
  margin-top: -65px;
  pointer-events: auto;

  position: relative;
  z-index: 20;
}

.info-box {
  display: flex;
  gap: 32px;
  background: #FFFFFF;
  padding: 18px 28px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 972px;
}

.info-box__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 120px;
  max-width: 220px;
}

.info-box__icon {
  width: 62px;
  height: 62px;
}

.info-box__title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #124A61;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.info-box__text {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #434343;
  font-size: 13px;
  line-height: 1.2;
}

@media (max-width: 992px) {
  .info-box {
    gap: 12px;
    padding: 12px 16px;
    width: 94%;
  }

  .info-box__item {
    min-width: 80px;
  }

  .info-box__icon {
    width: 48px;
    height: 48px;
  }
}

/* Tweak for intermediate widths where desktop fixed sizes can overflow */
@media (max-width: 1173px) and (min-width: 993px) {
  .header__inner { padding: 0 16px; }
  .partners__heading { font-size: 36px; margin-bottom: 40px; }
  .info-box { width: 94%; }
}

/* Prevent layout breaking around ~870px by stacking map and stats earlier */
@media (max-width: 880px) {
  .sobre-nos__map-stats { flex-direction: column; gap: 20px; }
  .sobre-nos__map { width: 100%; }
  .sobre-nos__stats { width: 100%; align-items: flex-start; }
  .sobre-nos__stat { text-align: left; }
}

/* Portfolio / Carousel styles */
.portfolio {
  padding: 40px 20px 80px;
  background-color: transparent;
}

.portfolio__container {
  max-width: 1239px;
  margin: 0 auto;
}

.portfolio__header {
  max-width: 1239px;
  margin: 0 auto 20px;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portfolio__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 40;
}

.portfolio__btn[data-key="pt"]:not(.portfolio__btn--selected) {
  background: #EBEBEB;
  color: #124A61; /* dark brand color to keep text readable */
  box-shadow: none;
  border: 1px solid rgba(18,74,97,0.12);
}
.portfolio__btn[data-key="pt"]:not(.portfolio__btn--selected):hover { transform: none; }

/* Make BR unselected match page background instead of plain white */
.portfolio__btn[data-key="br"]:not(.portfolio__btn--selected) {
  background: #EBEBEB; /* page background */
  color: #124A61;
  box-shadow: none;
  border: 1px solid rgba(18,74,97,0.12);
}
.portfolio__btn[data-key="br"]:not(.portfolio__btn--selected):hover { transform: none; }
.portfolio__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #124A61;
  border: 1px solid rgba(18,74,97,0.12);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  cursor: pointer;
  gap: 8px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.portfolio__btn:hover { transform: translateY(-2px); }
.portfolio__btn__img { display:block; width: auto; height: 28px; }

.portfolio__btn--selected {
  background: #124A61;
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9999;
    padding: 20px;
}

.image-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.image-modal__img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    object-fit: contain;
}

.image-modal__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    color: white;
    font-size: 48px;
    cursor: pointer;
    line-height: 1;
}

.carousel__slide img {
    cursor: pointer;
}

/* Make header behave on narrow screens */
@media (max-width: 768px) {
  /* keep title and actions on the same row in mobile */
  .portfolio__header { flex-direction: row; align-items: center; gap: 12px; }
  .portfolio__btn__img { height: 26px; }

  /* actions container: transparent background so it sits next to the title */
  .portfolio__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    width: auto;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    justify-content: flex-start;
  }

  /* base styles for buttons (mobile) */
  .portfolio__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    border-radius: 6px;
    font-size: 7px;
    line-height: 1;
    padding: 15px;
    height: auto;
    box-sizing: border-box;
  }

  /* country-only button (not selected) */
  .portfolio__btn--country:not(.portfolio__btn--selected) {
    width: 64px;
    height: auto;
    padding: 8px;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
  }

  /* selected button style */
  .portfolio__btn--selected {
    display: flex;
    width: 112px;
    height: auto;
    padding: 8px;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    background: #124A61;
    color: #ffffff;
    border: none;
  }

  .portfolio__flag { width: 20px; height: auto; display:inline-block }
  /* hide map on mobile to save space */
  .sobre-nos__map { display: none; }
  .sobre-nos__map-image { display: none; }
}

/* Expand mobile footer column layout up to 768px so it's fully centered in tablets/phones */
@media (max-width: 768px) {
  .site-footer {
    padding: 24px 12px 18px;
    margin-top: 40px;
  }

  .site-footer__container {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
    align-items: center;
    text-align: center;
    max-width: 100%;
    padding: 0;
  }
  .site-footer__col { width: 100%; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center }
  .site-footer__menu { display: block }
  .site-footer__social { order: 2; display: none }
  .site-footer__social--inline { order: 2; display:flex; justify-content:center }
  .footer__social-icons { display:flex; gap:12px; justify-content:center }
  .footer__social-icons img { width:28px; height:28px }

  .site-footer__contatos { order: 3 }
  .footer__contacts { display:flex; flex-direction:column; gap:8px; align-items:center; padding:0; margin:0 }
  .footer__contacts li { font-size:13px; color: #FFFFFF; justify-content:center }

  .site-footer__contatos h4 {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 140%;
    margin: 8px 0 12px 0;
  }

  .site-footer__bottom { margin-top: 10px }
  .site-footer__bottom-inner--center { gap:6px }
  .site-footer__bottom-inner--center p { font-size:12px; color: rgba(255,255,255,0.65); margin:0 }
  .footer__reload { width:18px; height:18px }

  .site-footer__sep { display: block }
}

/* Mobile servicos: make gallery full-bleed and allow centered slide + peek of next */
@media (max-width: 768px) {
  .servicos__gallery--mobile {
    display: block;
    /* align to the normal content flow (left) so the main slide sits at the left edge */
    width: 100%;
    /* nudge slightly left so the slide sits closer to the page edge */
    margin-left: -20px;
    position: static;
    box-sizing: border-box;
    padding: 0 0 0 0; /* keep left alignment with page content */
    overflow: visible;
  }

  .servicos__gallery--mobile .servicos__gallery-track {
    display: flex;
    gap: 12px;
    align-items: center;
    /* keep transforms/overflow behaving for both Swiper and legacy JS */
    padding-left: 0;
    padding-right: 0;
  }

  .servicos__gallery--mobile .servicos__slide {
    flex: 0 0 auto;
    width: auto; /* let Swiper calculate slide width when using fractional slidesPerView */
    max-width: 420px;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    /* uniform responsive height so all slides match the first */
    height: clamp(220px, 36vh, 320px);
  }

  .servicos__gallery--mobile .servicos__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Partners marquee */
.partners {
  background: transparent;
  padding: 18px 0 66px; /* ensure 66px gap from logos to .divisor */
}

.partners__container {
  max-width: 1239px;
  margin: 0 auto;
  overflow: visible;
}

.partners__heading {
  color: var(--AZUL-ESCURO-PRINCIPAL, #124A61);
  font-family: 'Montserrat', sans-serif;
  font-size: 45px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  margin: 0 0 76px 0;
}

.partners__marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  box-sizing: border-box;
}

.partners__track {
  display: flex;
  gap: 48px;
  align-items: center;
  /* slow continuous scroll - slightly faster */
  animation: partners-marquee 30s linear infinite;
}

.partners__item img {
  display: block;
  height: 48px;
  width: auto;
  opacity: 0.95;
}

.partners__marquee:hover .partners__track {
  animation-play-state: paused;
}

@keyframes partners-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 992px) {
  .partners__item img { height: 36px }
  .partners__track { gap: 24px; animation-duration: 10s }
}

/* CTA section styles (from Figma node 108:897) */
.cta {
  background: #EBEBEB;
  padding: 60px 20px;
}

.cta__container {
  max-width: 1239px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr; /* equal 50/50 columns */
  gap: 40px;
  align-items: start;
}

.cta__kicker {
  color: #0F0F0F;
  font-family: 'Montserrat', sans-serif;
  font-size: 23px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  width: max-content;
  margin: 0 0 90px;
}

.cta__title {
  font-family: 'Montserrat', sans-serif;
  color: var(--AZUL-ESCURO-PRINCIPAL, #124A61);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 18px 0;
}

.cta__lead {
  color: #434343;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin: 0 0 46px 0; /* 46px between lead and the benefits list */
  list-style: none;
  padding: 0;
  display: block;
}

.cta__benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 26px; /* 26px between each benefit item */
}

.cta__benefits li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cta__heading {
  max-width: 560px;
  margin: 0 0 18px 0; /* align wrapper to left side of column */
  text-align: left;
}

.cta__check { width: 28px; height: 28px; flex: 0 0 28px }
.cta__benefits strong { display:block; color:#0F0F0F; font-family:'Montserrat', sans-serif; font-weight:700 }
.cta__benefits span { color:#0F0F0F; font-family: 'Montserrat', sans-serif; font-size:14px }

.cta__form {
  background: transparent; /* sits over body background */
  border-radius: 20px;
  border: 1px solid var(--PRETO, #434343);
  box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.30);
  width: 100%;
  max-width: 756px;
  height: auto; /* let form size to its content to avoid extra white space */
  padding: 32px;
  box-sizing: border-box;
  overflow: auto;
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  -ms-overflow-style: none; /* hide scrollbar in IE/Edge */
  scrollbar-width: none; /* hide scrollbar in Firefox */
}

/* Hide webkit scrollbar for all viewports (Chrome, Safari, Opera) */
.cta__form::-webkit-scrollbar { display: none; }

@media (max-width: 992px) {
  .cta__form {
    max-height: 90vh;
  }
}

/* Footer styles (replicates Figma footer) */
.site-footer {
  margin-top: 193px; /* distance from CTA on desktop */
  background: #434343;
  color: #ffffff;
  padding: 48px 20px 24px;
}

.site-footer__container {
  max-width: 1239px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 220px 300px 220px;
  gap: 32px;
  align-items: start;
}

.site-footer__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  height:150px ;
}

.footer__logo {
  height: 80px;
  display: block;
  margin: 0 auto;
  padding: 20px;
  border-radius: 20px;
}

.site-footer__col h4 { color: #ffffff; font-family: 'Montserrat', sans-serif; font-size: 16px; margin: 0 0 12px 0 }
.site-footer__menu ul { list-style: none; padding: 0; margin: 0 }
.site-footer__menu li { margin-bottom: 10px }
.site-footer__menu a { color: rgba(255,255,255,0.85); text-decoration: none; font-family: 'Montserrat', sans-serif }

.footer__contacts { list-style: none; padding: 0; margin: 0; color: rgba(255,255,255,0.85); font-family: 'Montserrat', sans-serif }
.footer__contacts li { display: flex; gap: 12px; align-items: center; margin-bottom: 10px }
.footer__icon { width: 18px; height: 18px }

.footer__social-icons { display:flex; gap:12px; align-items:center }
.footer__social-icons img { width: 30px; height: 30px }

/* Separator used in footer mobile layout */
.site-footer__sep {
  display: none;
  border: none;
  height: 1px;
  background: rgba(255,255,255,1);
  width: 100%;
  margin: 16px 0;
  opacity: 0.12; /* subtle */
}

.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 28px; padding-top: 18px }
.site-footer__bottom-inner { max-width: 1239px; margin: 0 auto; display:flex; align-items:center; justify-content:space-between; color: rgba(255,255,255,0.65); font-family: 'Montserrat', sans-serif; font-size: 13px }
.footer__reload { width: 22px; height: 22px }

/* Centered bottom variant: paragraph above logo */
.site-footer__bottom-inner--center {
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

@media (max-width: 992px) {
  .site-footer__container { grid-template-columns: 1fr; gap: 18px }
  .site-footer { margin-top: 60px }
  .site-footer__bottom-inner { flex-direction: column; gap: 12px; text-align:center }
}

.cta__form-title { margin:0 0 6px 0; color:#124A61; font-weight:700; font-family: 'Montserrat', sans-serif; }
.cta__form-lead { margin:0 0 16px 0; color:#0F0F0F; font-size:14px }
.cta__label {
  display: block;
  margin: 22px 0; /* 22px above and below each label */
  color: #124A61;
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
}
.cta__input {
  width:100%;
  height:44px;
  padding:8px 12px;
  border:1px solid #E0E0E0;
  border-radius:6px;
  box-sizing:border-box;
  background: transparent; /* inputs/select transparent */
  color: #434343;
}

/* validation styles */
.input-invalid { border-color: #d9534f !important; box-shadow: 0 0 0 3px rgba(217,83,79,0.06); }
.field-error { color: #d9534f; font-size: 13px; margin-top: 6px; }

/* keep button appearance separate */
.cta__btn { /* already defined below, keep styles */ }
.cta__row { display:flex; gap:12px }
.cta__col { flex:1 }
.cta__btn { margin-top:16px; width:100%; background:#124A61; color:#fff; border:none; padding:12px 16px; border-radius:6px; font-weight:700; cursor:pointer }

@media (max-width: 992px) {
  .cta__container { grid-template-columns: 1fr; }
  .cta__title { font-size: 28px }
  .cta__container { gap: 20px }
}

.carousel {
  max-width: 1239px;
  margin: 24px auto 0;
  position: relative;
  width: 100%;
}

.carousel__stage {
  overflow: hidden;
  border-radius: 16px;
}

.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.22,.9,.2,1);
  will-change: transform;
}

.carousel__slide {
  min-width: 100%;
  position: relative;
}

.carousel__slide img {
  display: block;
  width: 100%;
  height: 613px;
  object-fit: cover;
}

.carousel__caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: transparent;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none;
  padding: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  width: 50px;
  height: 100px;
}

.carousel__nav img { width: 50px; height: 100px; display:block }
.carousel__nav--left img,
.carousel__nav--right img {
  transform: none;
  -webkit-transform: none;
}

.carousel__nav--left { left: 18px }
.carousel__nav--right { right: 18px }

.carousel__indicators {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 8px;
}

.carousel__indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.carousel__indicator.is-active { background: #FFF }

.servicos {
  padding: 60px 20px 100px;
  background: transparent;
  background-color:#EBEBEB;
}

.servicos__container {
  max-width: 1239px;
  margin: 0 auto;
}

.servicos__kicker {
  font-family: 'Montserrat', sans-serif;
  color: #0F0F0F;
  font-size: 25px;
  margin-bottom: 12px;
}

.servicos__title {
  font-family: 'Montserrat', sans-serif;
  color: #124A61;
  font-size: 45px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 794px;
}

.servicos__lead {
  max-width: 794px;
  color: #434343;
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  margin-bottom: 36px;
}

.servicos__content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.servicos__gallery {
  display: flex;
  gap: 18px;
  align-items: stretch;
  flex: 1 1 auto;
  height: 596px;
}

/* Mobile-specific gallery is hidden by default (will be shown on <=768px) */
.servicos__gallery--mobile { display: none; }

.servicos__gallery--desktop .servicos__thumb {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  display: block;
  height: 100%;
  /* smooth size/transform changes to avoid abrupt jumps on desktop gallery only */
  transition: width 320ms cubic-bezier(.22,.9,.2,1),
              transform 320ms cubic-bezier(.22,.9,.2,1),
              box-shadow 240ms ease,
              opacity 200ms ease;
  will-change: width, transform;
}

.servicos__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.servicos__thumb--narrow {
  width: 121px;
}

.servicos__thumb--large {
  width: 448px;
}

.servicos__aside {
  width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-radius: 10px;
  border-bottom: 2px solid #124A61;
}

.servicos__aside-title {
  color: #124A61;
  font-family: 'Montserrat', sans-serif;
  font-size: 35px;
  font-weight: 800;
  margin-bottom: 12px;
  /* subtle transition when text or style changes */
  transition: opacity 220ms ease, transform 220ms ease, color 220ms ease;
}

.servicos__aside-text {
  color: #434343;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 18px;
  transition: opacity 220ms ease, transform 220ms ease;
}

@media (max-width: 992px) {
  .servicos__content {
    flex-direction: column;
    align-items: center;
  }

  .servicos__aside {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .servicos__aside-divider {
    margin: 0 auto;
  }

  .servicos__thumb--narrow {
    width: 121px;
  }

  .servicos__thumb--large {
    width: 448px;
  }
}

/* Lightweight fix for intermediate widths: avoid horizontal overflow without changing design */
@media (min-width: 769px) and (max-width: 900px) {
  .servicos__gallery { overflow: hidden; max-width: 100%; }
  .servicos__gallery-track { gap: 12px; }
  .servicos__content { gap: 20px; }
}

@media (min-width: 993px) and (max-width: 1200px) {
  /* when layout narrows but still uses two-column, slightly reduce aside
     and thumbnail widths to avoid creating horizontal whitespace */
  .servicos__aside { width: 320px; }
  .servicos__thumb--narrow { width: 110px; }
  .servicos__thumb--large { width: 400px; }
  .servicos__content { gap: 24px; }
  /* ensure gallery won't push the page width beyond container */
  .servicos__gallery { overflow: hidden; }
}

@media (max-width: 992px) {
  .sobre-nos__inner {
    flex-direction: column;
    align-items: center;
  }

  .sobre-nos__left {
    width: 100%;
  }

  .sobre-nos__cards {
    flex-direction: column;
  }

  .sobre-nos__cards-row {
    flex-direction: column;
  }

  .sobre-nos__map-stats {
    flex-direction: column;
    align-items: center;
  }

  .sobre-nos__map-image {
    max-width: 480px;
  }

  .sobre-nos__stats {
    width: 100%;
    gap: 24px;
    align-items: center;
  }

  .sobre-nos__stat {
    width: auto;
  }
}

@media (max-width: 768px) {
  .hidden-mobile {
    display: none;
  }

  .header__link--logo img {
    height: 54px;
  }

  /* footer logo smaller on mobile */
  /* (removed explicit height to preserve original max-height behavior) */

  .header__inner {
    justify-content: center;
  }

  .header__logo-link {
    margin: 0 auto;
  }

  .header__logo-link img {
    height: 40px;
  }

  .info-box {
    background: #F5F5F5;
    padding: 8px 10px;
    gap: 8px;
    max-width: 320px;
    width: auto;
    box-shadow: 0 3px 2px rgba(0,0,0,0.10);
    border-radius: 5px;
    justify-content: center;
  }

  .info-box__item {
    min-width: 64px;
    max-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 6px 4px;
  }

  .info-box__icon {
    width: 16px;
    height: 16px;
  }

  .info-box__title {
    font-size: 11px;
    font-weight: 600;
    color: #124A61;
    margin: 0;
    line-height: 1.1;
  }

  .info-box__text {
    font-size: 7px;
    color: #434343;
    margin: 0;
    line-height: 1.1;
  }

  .card__title { font-size: 15px; }
  .card__text { font-size: 10px; }

  /* Serviços - mobile (Figma node 272:46) */
  .servicos {
    padding: 24px 16px 40px;
    background-color: #EBEBEB;
  }

  .servicos__container {
    /* allow mobile slides (340px) to fit — use full available width */
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .servicos__kicker { font-size: 10px; }
  /* Hide overflowing parts of adjacent slides */
  .carousel__stage {
    overflow: hidden;
    position: relative;
  }

  /* normalize track gap so transforms match visual layout */
  .carousel__track {
    gap: 0;
  }

  /* ensure images fit their slide and don't overflow */
  .carousel__slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .servicos__title { font-size: 15px; font-weight: 700; }
  .servicos__lead { font-size: 9px; line-height: 1.4; }

  .servicos__content { display: flex; flex-direction: column; gap: 16px; align-items: center; }

  /* Desktop gallery hidden on mobile; mobile slider shown */
  .servicos__gallery { display: none; }
  .servicos__gallery--mobile {
    display: block;
    gap: 12px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .servicos__thumb { height: 100%; border-radius: 16px; overflow: hidden; }
  .servicos__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .servicos__thumb--narrow { width: 84px; }
  .servicos__thumb--large { width: 220px; }

  /* Mobile slider exact sizing and track (mobile element selectors) */
  /* make mobile gallery span 85vw to avoid cropping slides while leaving edge space */
  .servicos__gallery--mobile {
    width: 85vw;
    max-width: 85vw;
    /* center 85vw container horizontally */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 12px;
    /* prevent page horizontal scroll when user drags slider */
    overflow: hidden;
  }
  .servicos__gallery-track { display: flex; gap: 12px; align-items: center; transition: transform 300ms cubic-bezier(.22,.9,.2,1); will-change: transform; }
  .servicos__gallery-track { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
  /* Mobile slide exact sizing requested */
  /* make slide width responsive: cap at 340px but shrink on very narrow viewports
     subtract gallery horizontal padding (12px each side) to avoid overflow */
  .servicos__slide {
    flex: 0 0 auto;
    width: min(340px, calc(85vw - 24px));
    height: 331px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  }
  .servicos__slide img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; }

  .servicos__aside { width: 100%; align-items: flex-start; text-align: left; padding: 12px 0; border-radius: 10px; border-bottom: none; }
  /* match .servicos__title and .servicos__lead on mobile */
  .servicos__aside-title {
    font-family: 'Montserrat', sans-serif;
    color: #124A61;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 8px 0;
    text-transform: uppercase;
  }

  /* Mobile portfolio slider styles (Figma mobile card layout) */
  .carousel { margin: 16px auto; }
  /* reduce horizontal padding on portfolio section in mobile (20px -> 10px) */
  .portfolio { padding: 40px 10px 10px; }
  /* keep visible rounded container and clip children */
  .carousel__stage { border-radius: 16px; overflow: hidden; }
  .carousel__track { gap: 12px; }
  /* keep a small inset so first slide's left corner isn't clipped during transforms */
  .carousel__track { padding-left: 6px; box-sizing: border-box; }

  /* make carousel slides compact on mobile matching Figma card dimensions */
  /* keep a 6px horizontal gutter so slides don't touch screen edges */
  .carousel__stage { padding: 0 6px; box-sizing: border-box; }

  .carousel__track {
    display: flex;
    gap: 16px; /* increased gap so slides aren't glued */
    justify-content: flex-start; /* align to left so JS transform math matches layout */
    padding-left: 6px; /* keep 6px gutter inside stage */
    box-sizing: border-box;
    transition: transform 0.5s cubic-bezier(.22,.9,.2,1);
    will-change: transform;
    scroll-snap-type: x mandatory; /* snap to a single slide during touch scroll */
  }

  .carousel__slide {
    min-width: 0; /* allow custom width */
    flex: 0 0 auto;
    /* match .servicos__slide sizing on mobile for consistent card dimensions */
    width: min(340px, calc(85vw - 24px));
    height: 331px; /* same as .servicos__slide */
    border-radius: 10px;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    margin: 0; /* gaps managed by track gap */
    position: relative;
    scroll-snap-align: center; /* ensure slide centers when snapping */
  }

  .carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
  }

  /* subtle dark gradient overlay to improve caption legibility (Figma inset shadow) */
  .carousel__slide::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
  }

  .carousel__caption {
    left: 12px;
    bottom: 12px;
    font-size: 14px;
    padding: 8px 10px;
    background: transparent;
    color: #FFFFFF;
    font-weight: 700;
    text-transform: none;
  }

  /* small horizontal padding to match Figma spacing (6px each side) */
  .carousel__stage { padding: 0 6px; box-sizing: border-box; border-radius: 16px; overflow: hidden; }

  /* hide arrows on mobile per design */
  .carousel__nav { display: none; }

  /* hide indicators on mobile (no dots required) */
  .carousel__indicators { display: none !important; }
  .carousel__indicator { width: 8px; height: 8px; }

  .servicos__aside-text {
    font-family: 'Montserrat', sans-serif;
    color: #434343;
    font-size: 9px;
    line-height: 1.4;
    margin: 0;
  }

  /* CTA form - mobile adjustments to match Figma mobile layout */
  .cta__form {
    background: transparent; /* use page background instead of white */
    border-radius: 20px; /* match desktop radius */
    padding: 32px; /* match desktop spacing */
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.30); /* desktop shadow */
    border: 1px solid var(--PRETO, #434343); /* desktop border color */
    width: min(100%, 360px);
    box-sizing: border-box;
    margin: 0 auto 18px; /* center card with bottom spacing */
  }

  .cta__form-title {
    margin: 0 0 6px 0;
    color: var(--AZUL-ESCURO-PRINCIPAL, #124A61);
    font-size: 18px;
    font-weight: 700;
    text-transform: none;
  }

  .cta__form-lead { font-size: 13px; color: #0F0F0F; margin-bottom: 10px }

  .cta__label { font-size: 13px; color: #124A61; margin: 12px 0 6px 0 }

  .cta__input {
    height: 48px;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 5px;
    border: 0.5px solid var(--PRETO, #434343);
    background: transparent;
    box-sizing: border-box;
  }

  .cta__row { display: flex; gap: 12px }
  .cta__col { flex: 1 }

  .cta__btn {
    margin-top: 14px;
    width: 100%;
    background: var(--AZUL-ESCURO-PRINCIPAL, #124A61);
    color: #fff;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 800;
    border-radius: 8px;
    border: none;
    cursor: pointer;
  }

  /* Ensure all page titles use 15px on mobile */
  h1, h2, h3, h4, h5, h6,
  .servicos__title,
  .sobre-nos__subtitle,
  .sobre-nos__title,
  .card__title,
  .partners__heading,
  .cta__title,
  .servicos__aside-title {
    font-size: 15px !important;
    line-height: 1.2;
  }

  /* Specific partners heading styling on mobile (left aligned with gutter) */
  .partners__heading {
    color: var(--AZUL-ESCURO-PRINCIPAL, #124A61);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px !important;
    font-style: normal;
    font-weight: 700;
    line-height: normal !important;
    text-transform: uppercase;
    width: 294px;
    margin: 0 0 16px 16px;
    text-align: left;
    display: block;
  }
}

@media (max-width: 768px) {
  .partners__item img { height: 22px; }
  /* reduce partners section bottom padding on mobile from 66px to 20px */
  .partners { padding: 18px 0 30px; }
}

@media (max-width: 768px) {
  .sobre-nos {
    padding: 24px 16px;
    background-color: #EBEBEB;
  }

  .sobre-nos__container {
    max-width: 293px;
    margin: 0 auto;
    padding: 0;
  }

  .sobre-nos__header { text-align: left; margin-bottom: 12px; }

  .sobre-nos__title {
    font-size: 10px;
    font-weight: 300;
    text-transform: uppercase;
    color: #434343;
  }

  .sobre-nos__subtitle {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #124A61;
    margin-bottom: 8px;
    line-height: 1.22;
  }

  .sobre-nos__paragraph {
    font-size: 9px;
    font-weight: 600;
    color: #434343;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .sobre-nos__cards-row { flex-direction: column; gap: 32px; }
  .card { padding: 16px; border-radius: 20px; }

  .sobre-nos__map-stats { display: flex; flex-direction: column; gap: 12px; align-items: center; }
  .sobre-nos__map-image { width: 114px; max-width: 100%; height: auto; display: block; margin: 0 auto; }

  .sobre-nos__stats { width: 100%; display: flex; flex-direction: column; gap: 8px; align-items: center; }
  .sobre-nos__stat { padding: 6px 12px; max-width: 280px; text-align: center; }
  .sobre-nos__stat-number { font-size: 30px; }
  .sobre-nos__stat-label { font-size: 15px; white-space: normal; }
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: block;
  z-index: 9999;
  text-decoration: none;
}
.whatsapp-float img { display:block; width:64px; height:auto }

@media (max-width: 480px) {
  .whatsapp-float { right: 14px; bottom: 14px }
  .whatsapp-float img { width:52px }
}

@media (max-width: 900px) {
  .header { height: 84px; }
  .header__inner { padding: 0 12px; }
  .header__list { gap: 18px; font-size: 16px; }

  .hero { height: 60vh; background-position: center top; }

  .info-box-wrap { margin-top: -28px; }
  .info-box { width: 96%; padding: 12px 18px; gap: 16px; }

  .sobre-nos__map-stats { gap: 32px; }
  .sobre-nos__subtitle { font-size: 36px; }
  .sobre-nos__stat-number { font-size: 48px; }

  .partners__heading { font-size: 28px; margin-bottom: 36px; }
  .partners__track { gap: 18px; }

  .carousel__slide img { height: 360px; }
  .carousel__nav { width: 40px; height: 80px }

  .cta__container { grid-template-columns: 1fr; padding: 20px 12px }
  .cta__title { font-size: 26px }

  .site-footer { padding: 32px 12px 20px }

  .card__title { font-size: 40px }
  .servicos__title { font-size: 32px }
}

/* Footer — mobile layout to match Figma mobile frame
   Stacked, centered content with compact spacing and centered social icons */
@media (max-width: 480px) {

  .hero {
    background: url(./assets/hero.png) no-repeat center center;
    background-size: cover;
  }

  .site-footer {
    padding: 24px 12px 18px;
    margin-top: 40px;
  }

  .site-footer__container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
    max-width: 100%;
    padding: 0;
  }

  .site-footer__col { width: 100%; display:flex; justify-content:center }

  .site-footer__brand { order: 1; }
  .site-footer__brand .footer__logo { max-height: 40px; margin-bottom: 8px }

  /* hide menu on mobile and re-order blocks to match Figma: brand -> social -> separator -> contatos */
  .site-footer__menu { display: none }

  .site-footer__social { order: 2 }
  .site-footer__social--inline { order: 2; display:flex; justify-content:center }
  .footer__social-icons { display:flex; gap:12px; justify-content:center }
  .footer__social-icons img { width:28px; height:28px }

  .site-footer__contatos { order: 3 }
  .footer__contacts { display:flex; flex-direction:column; gap:8px; align-items:center; padding:0; margin:0 }
  .footer__contacts li { font-size:13px; color: #FFFFFF }

  /* Contacts heading style per your spec */
  .site-footer__contatos h4 {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 140%;
    margin: 8px 0 12px 0;
  }

  .site-footer__bottom { margin-top: 10px }
  .site-footer__bottom-inner--center { gap:6px }
  .site-footer__bottom-inner--center p { font-size:12px; color: rgba(255,255,255,0.65); margin:0 }
  .footer__reload { width:18px; height:18px }
}

/* separator used inside footer on mobile */
.site-footer__sep {
  border: 0;
  height: 1px;
  background: #FFFFFF;
  width: 100%;
  margin: 14px 0;
  opacity: 0.12; /* subtle */
}

/* Prevent iOS from styling phone numbers as links */
footer .footer__contacts li {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -webkit-text-size-adjust: none;
  color: inherit; /* Ensure it uses the intended text color */
  text-decoration: none; /* Remove underline if applied */
}

/* Estilo para links no rodapé */
.site-footer a {
  text-decoration: none;
  color: inherit;
}

.site-footer a:hover {
  text-decoration: underline;
}
