.header-padding {
  padding: 1.8rem 2rem;
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: var(--background-color);
  width: 100%;
  box-sizing: border-box;
  display: block;
  max-height: 90px;
  height: 90px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.center-all {
  height: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
}

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

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  gap: 4px;
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--active-color);
  outline-offset: 2px;
  border-radius: 4px;
}

.hamburger-line {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-primary);
  border-radius: 1px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.nav-item {
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: "Poppins", sans-serif;
}

.nav-item.active {
  text-decoration: underline;
  color: var(--active-color);
  font-weight: bold;
}

.hero-image {
  height: 84px;
}

@media screen and (max-width: 767px) {
  .hero-image {
    height: 64px;
  }
}

@media screen and (max-width: 479px) {
  .hero-image {
    height: 54px;
  }
}

.hero-description {
  color: var(--active-color);
  letter-spacing: 2px;
  font-size: 20px;
  margin-bottom: 0;
  font-weight: 500;
  line-height: 120%;
  font-family: Helvetica nue, Arial, sans-serif;
}

@media screen and (max-width: 767px) {
  .hero-description {
    font-size: 16px;
    letter-spacing: 1px;
  }
}

@media screen and (max-width: 479px) {
  .hero-description {
    font-size: 14px;
  }
}

.lines-container {
  height: calc(40vh - 90px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 25px;
}

/* Mobile: adjust lines-container height based on header height */
@media screen and (max-width: 991px) {
  .lines-container {
    height: calc(40vh - 78px);
  }
}

.vertical-ines-container {
  display: flex;
  align-items: stretch;
  gap: 25px;
}

.vertical-line {
  height: 100%;
  width: 33px;
  background-color: var(--text-primary);
}

.line {
  width: 100%;
  height: 33px;
}

.line:nth-child(1) {
  background-color: var(--primary-color);
}
.line:nth-child(2) {
  background-color: var(--secondary-color);
}
.line:nth-child(3) {
  background-color: var(--active-color);
}
.line:nth-child(4) {
  background-color: var(--alert-color);
}

.dropdown-container {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background-color: transparent;
  border: solid 1px var(--text-primary);
}

/* Language dropdown (CSS-only, works without JavaScript) */
.language-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid var(--text-primary);
  background-color: transparent;
  cursor: pointer;
  line-height: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.language-button:focus-visible {
  outline: 2px solid var(--active-color);
  outline-offset: 2px;
}

.language-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.language-arrow {
  display: none;
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 140px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  display: none;
  z-index: 110;
}

.language-option {
  display: block;
  padding: 6px 14px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.language-option:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.language-option:focus-visible {
  outline: 2px solid var(--active-color);
  outline-offset: -2px;
  background-color: rgba(0, 0, 0, 0.05);
}

/* Open state: toggle via checkbox (works on touch) */
/* Also open on hover/focus for pointer devices */
.language-dropdown.open .language-menu {
  display: block;
}

/* Default selected flag – Brazil */
.language-button.language-flag-br {
  background-image: url("../images/Flag_of_Brazil.svg");
}

/* Small screens: allow menu to be full-width below button if space is tight */
@media screen and (max-width: 479px) {
  .language-menu {
    left: 0;
    right: auto;
    min-width: 120px;
  }

  .nav-container .language-menu {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin-top: 8px;
    box-shadow: none;
    background-color: transparent;
    padding: 0;
  }
}

/* Responsive Header - Mobile Menu */
@media screen and (max-width: 991px) {
  .header-padding {
    padding: 1.2rem 1.5rem;
    height: 70px;
    max-height: 70px;
    padding-bottom: 3rem !important;
  }

  .header-container {
    flex-wrap: nowrap;
  }

  .header-logo {
    flex-shrink: 0;
  }

  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .mobile-menu-overlay {
    display: block;
  }

  .nav-container {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    width: 100%;
  }

  .nav-container[aria-expanded="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-item {
    font-size: 18px;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(60, 88, 97, 0.1);
    display: block;
  }

  .nav-item:last-of-type {
    border-bottom: none;
  }

  .language-dropdown {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(60, 88, 97, 0.1);
  }

  .language-button {
    width: 32px;
    height: 32px;
  }

  .falecnsc_btn {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    margin-top: 8px;
    font-size: 16px;
    border-width: 2px;
    display: block;
  }
}

/* Tablet adjustments */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .nav-container {
    padding: 2rem 3rem;
  }
}

/* Small mobile devices */
@media screen and (max-width: 479px) {
  .header-padding {
    padding: 1rem 1rem;
    height: 60px;
    max-height: 60px;
    padding-bottom: 3rem !important;
  }

  .mobile-menu-overlay {
    top: 68px;
  }

  .nav-container {
    top: 68px;
    padding: 1.5rem 1rem;
    gap: 20px;
    max-height: calc(100vh - 68px);
  }

  .nav-item {
    font-size: 16px;
    padding: 10px 0;
  }

  .falecnsc_btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

.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;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--active-color);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  z-index: 1000;
  font-weight: 500;
  border-radius: 0 0 4px 0;
  font-size: 16px;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid white;
  outline-offset: 2px;
}

.p-hero {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 1.5em;
  line-height: 120%;
  letter-spacing: -1px;
}

.banners {
  display: flex;
}

/* Ensure all banner blocks keep the same width, regardless of content */
.banners .w-layout-cell {
  flex: 1 1 0%;
}

/* Banner collapse (Bootstrap-like behaviour) */
.banner-toggle {
  cursor: pointer;
  margin: 0;
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.banner-toggle span {
  display: block;
}

.banner-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.banner-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
  padding: 0 24px;
}

.banner-body > p {
  color: white;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

.banner-collapse.is-open .banner-body {
  max-height: 260px; /* enough for the lorem ipsum content */
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 1.5rem;
}

.bg-white {
  background-color: white;
}

.landing-padding {
  padding: 3.9rem 6rem;
}

/* Responsive padding for secao-bege hero section */
.secao-bege .center-all {
  padding: 0 6rem;
}

@media screen and (max-width: 991px) {
  .secao-bege .center-all {
    padding: 0 2rem;
  }
}

/* Keep banners responsive on smaller screens */
@media screen and (max-width: 767px) {
  .banners {
    flex-direction: column;
  }

  .banner-body {
    padding-inline: 1.5rem;
  }

  .cards-images-container {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 3.9rem 1rem;
  }

  .landing-padding {
    padding: 3.9rem 1rem;
  }

  .secao-bege .center-all {
    padding: 0 1rem;
  }

  .container2 {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }

  .hero-split {
    max-width: 100%;
    width: 100%;
  }

  .hero-image-responsive {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 530 / 520;
  }
}

.cards-images-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 3.9rem 6rem;
}

/* Responsive: One card per row on mobile */
@media screen and (max-width: 991px) {
  .cards-images-container {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 3.9rem 1rem;
  }

  .cards {
    min-height: 500px;
    padding: 0 0 1rem 0;
  }

  .card_paragraph {
    margin-bottom: 1rem !important;
    margin-top: auto;
    max-width: calc(100% - 24px);
  }
}

.banner-background {
  background-color: var(--background-color);
  padding: 2.625rem 5rem;
}

/* Responsive styles for banner-background and contact section */
@media screen and (max-width: 991px) {
  .banner-background {
    padding: 3.9rem 2rem;
  }

  .heading-2 {
    max-width: 100%;
    font-size: 24px;
    line-height: 32px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
  }

  .contact-section {
    padding: 3.9rem 2rem !important;
  }

  .heading-6 {
    font-size: 36px;
    line-height: 44px;
  }
}

@media screen and (max-width: 767px) {
  .banner-background {
    padding: 3.9rem 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .banner-background .heading-2 {
    font-size: 16px;
    line-height: 24px;
    margin: 0;
    padding: 0;
    text-indent: 0 !important;
    text-align: center !important;
    max-width: 100%;
    width: 100%;
    letter-spacing: 0;
    clear: none;
  }

  .contact-section {
    padding: 3.9rem 1rem !important;
  }

  .heading-6 {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 1.5rem;
  }

  .heading-7 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 0.75rem;
  }

  .paragraph-8 {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 2rem;
  }

  .div-block-18 {
    gap: 2rem;
  }

  .div-block-19 {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .div-block-2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .botao-2 {
    width: 100%;
    justify-content: center;
  }

  .div-block-2 img {
    max-width: 120px;
    height: auto;
    justify-self: flex-start;
  }
}

/* Service Cards */
.service-cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid var(--active-color);
  border-radius: 8px;
  padding: 32px 20px;
  overflow: hidden;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  margin: 0;
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.service-card-header:focus-visible {
  outline: 2px solid var(--active-color);
  outline-offset: 2px;
  border-radius: 4px;
}

.service-card-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.service-card-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1.25em;
  line-height: 1.5;
  color: var(--text-primary);
}

.service-card-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
  margin-top: 0;
  padding-top: 0;
}

.service-card-text {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.service-card-collapse.is-open .service-card-body {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 16px;
  padding-top: 0;
}

/* Responsive: Stack cards on smaller screens */
@media screen and (max-width: 991px) {
  .service-cards-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Contempla cards grid */
.contempla-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media screen and (max-width: 991px) {
  .contempla-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media screen and (max-width: 600px) {
  .contempla-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.height-without-header {
  height: calc(100vh - 90px);
}

/* Contact Page - Fale Conosco - No scroll layout */
body.no-scroll-page {
  height: 100vh;
  overflow: hidden;
}

body.no-scroll-page main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

body.no-scroll-page .section-15 {
  z-index: 1;
}

.contact-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 400px;
}

.contact-form .form {
  padding: 0;
}

.section-14.landing-padding {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(100vh - 90px - 80px);
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.vertical-lines-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-end;
  gap: 16px;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.vertical-lines-container .vertical-line {
  width: 33px;
  height: 100%;
  background-color: var(--primary-color);
}

@media screen and (max-width: 991px) {
  .section-14.landing-padding {
    height: calc(100vh - 70px - 70px);
    padding: 2rem;
  }

  .contact-container {
    flex: 1;
  }
}

@media screen and (max-width: 767px) {
  .section-14.landing-padding {
    height: calc(100vh - 60px - 60px);
    padding: 1.5rem;
  }
}

@media screen and (max-width: 479px) {
  .section-14.landing-padding {
    height: calc(100vh - 56px - 56px);
    padding: 1rem;
  }
}
