/* ==========================================================================
   1. GLOBAIS & UTILITÁRIOS
   ========================================================================== */

/* --- Variáveis Globais (:root) --- */
:root {
  --color-yellow: #ffb700;
  --color-grey-light: #bcbcbc;
  --color-grey-dark: #626262;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-bg-dark: #1a1a1a;
  --color-bg-light: #fefefc;
  --color-text-dark: #282828;
  --color-text-grey: #989898;
  --color-title-dark: #141414;
  --font-title: "Space Grotesk", sans-serif;
  --font-text: "Inter", sans-serif;

  /* Tamanhos de Fonte Base (Fluid Typography) 
     Calculado para escalar suavemente. 
     Breakpoint máx aprox: 1250px (pedido pelo user)
     H1: 3.5rem (56px) / 1250px ~= 4.5vw
     H2: 3rem (48px) / 1250px ~= 3.84vw (usei 3.85vw)
  */
  --font-size-h1: clamp(2rem, 4.5vw, 3.5rem);
  --font-size-h2: clamp(1.75rem, 3.85vw, 3rem);
  --font-size-h3-card: clamp(1.1rem, 1.5vw, 1.25rem);
  --font-size-h3-slide: 1rem;
  --font-size-h3-service: 0.85rem;
  --font-size-p-main: clamp(1rem, 1.1vw, 1.125rem);
  --font-size-p-card: 0.85rem;
}

/* --- Reset & Body --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-text);
  min-height: 100vh;
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  line-height: 1.6;
}

/* --- Classes de Título (Utils) --- */
.title-base {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--font-size-h2);
  line-height: 100%;
  font-feature-settings:
    "liga" off,
    "clig" off;
  font-style: normal;
  margin-bottom: 24px;
}

.title-light {
  color: var(--color-bg-light);
}
.title-dark {
  color: var(--color-text-dark);
}
.title-yellow {
  color: var(--color-yellow);
}

.title-centered {
  text-align: center;
  margin-bottom: 50px;
}

.section-title-dark {
  margin-bottom: 24px;
}

.section-title {
  margin-bottom: 50px;
}

.section-subtitle,
.section-subtitle-2 {
  max-width: 610px;
  font-family: var(--font-text);
  font-size: var(--font-size-p-main);
  line-height: 125%;
  color: var(--color-text-dark);
  text-align: center;
  letter-spacing: 0.00313rem;
  font-style: normal;
  font-weight: 400;
  margin: auto;
  margin-bottom: 50px;
}

/* --- Classes de Botões (Utils) --- */
.btn {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-style: normal;
  line-height: normal;
}

.btn-primary {
  background-color: var(--color-yellow);
  color: var(--color-bg-light);
}

.btn-primary:hover {
  background-color: #ffc933;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-grey-dark);
  color: var(--color-bg-light);
}

.btn-secondary:hover {
  background-color: #7a7a7a;
  transform: translateY(-2px);
}

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

.btn-dark:hover {
  background-color: #333;
  transform: translateY(-2px);
}

/* --- Layout (Container) --- */
.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

/* --- Animações (Utils) --- */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-fade-in {
  animation: heroFadeIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
  animation-delay: var(--delay, 0ms);
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-200 {
  transition-delay: 200ms;
}
.delay-400 {
  transition-delay: 400ms;
}
.delay-500 {
  transition-delay: 500ms;
}
.delay-600 {
  transition-delay: 600ms;
}
.delay-700 {
  transition-delay: 700ms;
}
.delay-800 {
  transition-delay: 800ms;
}
.delay-900 {
  transition-delay: 900ms;
}
.delay-1000 {
  transition-delay: 1000ms;
}

/* ==========================================================================
   2. SECÇÕES DA PÁGINA (Componentes)
   ========================================================================== */

/* --- 2.1 Hero Section --- */
.hero-section {
  height: 600px; /* Fixed height as requested */
  min-height: 600px;
  max-height: 600px;
  margin-bottom: 0;
  background-color: var(--color-bg-dark);
  /* Mobile default: texture only, or smaller silhouette if needed. 
     But based on desktop-first approach in this file, we keep desktop styles here 
     and overrides in media queries. 
     Actually, this block is for desktop/general. */
  /* Background image replaced by video element */
  background-size: auto;
  display: flex;
  position: relative; /* Context for absolute positioning of image */
  flex-direction: column;
  overflow: hidden;
  align-items: center; /* Ensures children (header, content) are centered horizontally */
  justify-content: center; /* Center children vertically */
  z-index: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Dark overlay (0.3 opacity) */
  z-index: -1;
  pointer-events: none;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-fit: cover;
  z-index: -2; /* Ensure video is behind overlay (-1) */
  pointer-events: none;
}

/* Removed invalid video::after */



.hero-header {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  margin-top: 30px; /* Added margin to unstuck from top */
  width: 100%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.logo {
  height: 90px;
  width: auto;
}

.hero-content-container {
  flex-grow: 1;
  display: flex;
  position: relative; /* Context for absolute image */
  align-items: center;
  justify-content: center; /* Center children horizontally */
  width: 100%;
  padding-left: 5%;
  padding-right: 5%;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-text {
  width: clamp(
    50%,
    65vw,
    90%
  ); /* Dynamic width: allows taking more space on smaller screens up to 90% or 65vw */
  max-width: 750px;
  position: relative;
  padding-left: 0; /* Remove padding for bar */
  text-align: center; /* Center text */
  margin: 0 auto;
}

.hero-text::before {
  display: none; /* Hide yellow bar */
}

.hero-text h1 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--font-size-h1);
  color: var(--color-yellow);
  line-height: 100%;
  margin-bottom: clamp(16px, 2.5vw, 24px); /* Dynamic margin */
  font-feature-settings:
    "liga" off,
    "clig" off;
  font-style: normal;
  /* white-space: nowrap; - Removed to allow wrapping if needed when centered */
}

.hero-text p {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--font-size-p-main);
  color: #ffffff; /* Use white as requested */
  margin-bottom: clamp(14px, 2vw, 20px); /* Dynamic margin */
  max-width: 540px;
  line-height: 125%;
  font-style: normal;
  letter-spacing: 0.00313rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

/* --- 2.2 About Us Section --- */
.about-us-section {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  padding: 100px 0 60px 0;
}

.about-us-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.about-us-image,
.about-us-text {
  flex: 1;
  max-width: 530px;
}

.about-us-image img {
  width: 100%;
  height: 490px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-us-text p {
  font-family: var(--font-text);
  font-size: var(--font-size-p-main);
  line-height: 125%;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  letter-spacing: 0.00313rem;
  font-style: normal;
  font-weight: 400;
}

.about-us-text p:last-child {
  margin-bottom: 0;
}

.about-us-text p strong {
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 125%;
  font-size: var(--font-size-p-main);
  font-style: normal;
  letter-spacing: 0.00313rem;
}

/* --- 2.3 Services Section --- */
.services-section {
  background-color: var(--color-title-dark);
  padding: 80px 0;
  border-top: 4px solid var(--color-yellow);
}

.services-grid {
  display: flex;
  width: 97%;
  max-width: 1300px;
  height: 650px;
  margin: 0 auto;
  gap: 15px;
}

.service-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transition-property: flex, filter;
  transition-duration: 0.4s;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-delay: 0.15s;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
}

.service-card:hover {
  flex: 2;
  filter: grayscale(0%);
  transition-delay: 0s;
}

.service-card:hover::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.service-content {
  position: absolute;
  bottom: 50px;
  left: 50px;
  right: 30px;
  max-width: 420px;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s 0.1s ease-out;
}

.service-content h3 {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--font-size-h3-service);
  color: var(--color-yellow);
  text-transform: uppercase;
  letter-spacing: 0.39rem;
  margin-bottom: 8px;
  line-height: normal;
  font-style: normal;
}

.service-content p {
  font-family: var(--font-text);
  font-size: var(--font-size-p-card);
  line-height: 125%;
  color: var(--color-grey-light);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.00288rem;
}

.service-card:hover .service-content {
  opacity: 1;
  transform: translateY(0);
}

/* --- 2.4 Specialties Section (Slider) --- */
/* --- 2.4 Specialties Section (Slider) --- */
.specialties-section {
  background-color: var(--color-title-dark);
  height: auto;
  min-height: 450px;
  padding: 100px 0;
  position: relative;
}

.slider-container {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.specialties-slider {
  max-width: 950px;
  margin: 0 auto;
  overflow: visible;
  position: relative;
}

.swiper-slide {
  text-align: center;
  color: var(--color-grey-light);
}

.specialty-icon {
  height: 50px;
  width: 50px;
  margin-bottom: 24px;
}

.swiper-slide h3 {
  font-family: var(--font-text);
  font-size: var(--font-size-h3-slide);
  color: var(--color-bg-light);
  margin-bottom: 12px;
  text-align: center;
  font-style: normal;
  font-weight: 600;
  line-height: 125%;
  letter-spacing: 0.00313rem;
}

.swiper-slide p {
  font-family: var(--font-text);
  font-size: var(--font-size-p-card);
  line-height: 125%;
  max-width: 280px;
  margin: 0 auto;
  color: var(--color-grey-light);
  text-align: center;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.0025rem;
}

.specialties-slider .swiper-pagination {
  position: relative !important;
  left: 0;
  right: 0;
  width: 100%;
  top: auto !important;
  bottom: auto !important;
  margin-top: 60px !important;
  height: 4px;
  background-color: var(--color-grey-dark);
  z-index: 10;
}

.specialties-slider .swiper-pagination-progressbar-fill {
  background-color: var(--color-yellow) !important;
  height: 4px;
  border-radius: 2px;
}

.slider-container .swiper-button-prev,
.slider-container .swiper-button-next {
  color: var(--color-white);
  position: absolute;
  top: 25%;
  transform: translateY(-50%);
  z-index: 10;
}

.slider-container .swiper-button-prev {
  left: 0px;
}
.slider-container .swiper-button-next {
  right: 0px;
}

.slider-container .swiper-button-prev::after,
.slider-container .swiper-button-next::after {
  font-size: 30px;
  font-weight: 900;
}

/* --- 2.5 BIM Section --- */
.bim-section {
  background-color: var(--color-text-dark);
  color: var(--color-grey-light);
  border-bottom: 20px solid var(--color-yellow);
  border-top: 4px solid var(--color-white);
  padding: 100px 0;
}

.bim-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.bim-text {
  flex: 0 1 45%;
  max-width: 430px;
}

.bim-text p {
  font-family: var(--font-text);
  font-size: var(--font-size-p-main);
  line-height: 125%;
  color: var(--color-grey-light);
  margin-bottom: 20px;
  letter-spacing: 0.00313rem;
  font-style: normal;
  font-weight: 400;
}

.bim-text p:last-child {
  margin-bottom: 0;
}

.bim-image {
  flex: 0 1 55%;
}

.bim-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.bim-image .caption {
  font-family: var(--font-text);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-yellow);
  margin-top: 16px;
  font-style: normal;
  line-height: 125%;
  letter-spacing: 0.00219rem;
}

.bim-image .caption a {
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-grey-light);
  margin-top: 6px;
  font-style: italic;
  font-weight: 300;
  line-height: 125%;
  letter-spacing: 0.00188rem;
  text-decoration: none;
  display: block;
  word-break: break-all;
}

/* --- 2.6 Projects Section --- */
.projects-section {
  background-color: var(--color-bg-light);
  padding: 100px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  display: block;
  position: relative;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.94) 11.18%,
    rgba(0, 0, 0, 0) 111.61%,
    transparent 60%
  );
}

.project-card:hover .project-card-bg {
  transform: scale(1.05);
}

.card-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
}

.card-content h3 {
  font-family: var(--font-text);
  font-size: var(--font-size-h3-card);
  font-weight: 600;
  color: var(--color-bg-light);
  margin-bottom: 8px;
  font-style: normal;
  line-height: 125%;
  letter-spacing: 0.00313rem;
}

.card-content p {
  font-family: var(--font-text);
  font-size: var(--font-size-p-card);
  color: var(--color-grey-light);
  font-style: normal;
  font-weight: 500;
  line-height: 125%;
  letter-spacing: 0.0025rem;
}

.projects-cta {
  text-align: center;
  max-width: 800px;
  margin: 80px auto 0 auto;
}

.projects-cta p {
  font-family: var(--font-text);
  font-size: 20px;
  line-height: 1.7;
  color: var(--color-text-grey);
}

.projects-cta p strong {
  font-weight: 600;
  color: var(--color-title-dark);
}

.projects-cta img {
  height: 0.82rem;
}

/* --- 2.7 Mission/Value Section --- */
.mission-value-section {
  background-color: var(--color-title-dark);
  padding: 100px 0;
  padding-bottom: 200px;
  position: relative;
  z-index: 1;
}

.mission-value-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.mission-text p,
.value-text p {
  font-family: var(--font-text);
  font-size: var(--font-size-p-main);
  line-height: 125%;
  color: var(--color-grey-light);
  margin: 16px auto 50px auto !important;
  text-align: center;
  letter-spacing: 0.00313rem;
  font-style: normal;
  font-weight: 400;
}

.mission-text,
.value-text {
  max-width: 370px;
  margin: 0 auto;
}

.mission-images-container {
  margin-top: -150px;
  position: relative;
  z-index: 3;
}

.images-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* --- 2.8 Process Section --- */
.process-section {
  background-color: var(--color-bg-light);
  margin-top: -100px;
  padding-top: 180px;
  padding-bottom: 40px;
  position: relative;
  z-index: 2;
}

.process-diagram {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1300px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
}

.process-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  object-fit: contain;
}

.process-step p {
  font-family: var(--font-text);
  font-size: var(--font-size-p-main);
  line-height: 125%;
  color: var(--color-title-dark);
  margin: 16px auto 50px auto !important;
  text-align: center;
  letter-spacing: 0.00313rem;
  font-style: normal;
  font-weight: 400;
}

.process-arrow {
  flex-grow: 1;
  height: 2px;
  background-color: var(--color-text-dark);
  position: relative;
  margin-top: 19px;
}

.process-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--color-text-dark);
}

/* ==========================================================================
   3. FOOTER (Rodapé)
   ========================================================================== */
.main-footer {
  background-color: var(--color-title-dark);
  background-size: repeat;
  color: var(--color-grey-light);
  padding-top: 70px;
  padding-bottom: 40px;
  position: relative;
  z-index: 5;
  border-bottom: 10px solid var(--color-yellow);
}

.main-footer .container {
  max-width: 1300px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.footer-links-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 850px;
  width: 100%;
  justify-content: space-between;
}

.footer-column h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-bg-light);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  font-style: normal;
  line-height: 121%;
}

#footer-contact-col {
  max-width: 160px;
}

.footer-column a,
.footer-column p {
  display: block;
  color: var(--color-grey-light);
  font-family: var(--font-text);
  font-size: 0.87756rem;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s ease;
  font-style: normal;
  font-weight: 400;
  line-height: 121%;
  letter-spacing: 0.00219rem;
}

.footer-column a:hover {
  color: var(--color-yellow);
}

.footer-logo-main {
  height: 50px;
  width: auto;
}

.social-icon {
  height: 24px;
  width: 24px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.social-icon:hover {
  opacity: 1;
}

#footer-logo-col {
  padding-right: 30px;
}

.footer-legal-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* --- Footer: Dropdown de Idioma --- */
.lang-dropdown {
  position: relative;
  margin-bottom: 24px;
}

.lang-dropdown-button {
  background: transparent;
  border: 1px solid var(--color-grey-dark);
  color: var(--color-white);
  font-family: var(--font-text);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.lang-dropdown-button:hover {
  background-color: var(--color-yellow);
}

.lang-icon,
.lang-chevron {
  height: 16px;
  width: 16px;
  opacity: 0.7;
}

.lang-chevron {
  transition: transform 0.3s ease;
}
.lang-dropdown.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
  position: absolute;
  top: 110%;
  right: 0;
  background-color: var(--color-title-dark);
  border: 1px solid var(--color-grey-dark);
  border-radius: 8px;
  padding: 8px;
  list-style: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
  width: 100%;
}

.lang-dropdown.is-open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-menu li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--color-bg-light);
  border-radius: 4px;
  font-size: 0.9rem;
}

.lang-dropdown-menu li a:hover {
  color: var(--color-yellow);
}
.lang-dropdown-menu li a.is-active {
  color: var(--color-yellow);
  font-weight: 700;
  cursor: default;
}

/* --- Footer: Links Legais --- */
.footer-legal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-legal-links a {
  color: var(--color-grey-light);
  text-decoration: none;
  margin-bottom: 10px;
}

.footer-legal-links a:hover {
  color: var(--color-white);
}

.footer-copyright p {
  margin: 0;
  color: var(--color-grey-dark);
  font-size: 0.8rem;
}

/* ==========================================================================
   4. PÁGINAS LEGAIS (Termos, Privacidade, etc.)
   ========================================================================== */
body.legal-page-body {
  background-color: #141414;
}

.text-page-header {
  background-color: #141414;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-grey-dark);
}

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

.text-page-header .logo {
  height: 40px;
}

.text-page-header .btn-back {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-white);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  border: 2px solid var(--color-white);
  transition: all 0.3s ease;
}

.text-page-header .btn-back:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

.text-page-container {
  padding: 80px 0;
  line-height: 1.7;
}

.text-page-container h1 {
  font-family: var(--font-title);
  font-size: 48px;
  color: var(--color-white);
  margin-bottom: 40px;
}

.text-page-container h3 {
  font-family: var(--font-title);
  font-size: 24px;
  color: var(--color-white);
  margin-top: 40px;
  margin-bottom: 16px;
}

.text-page-container p {
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--color-grey-light);
  margin-bottom: 20px;
}

.text-page-container ul {
  list-style-type: disc;
  padding-left: 40px;
  margin-bottom: 20px;
}

.text-page-container li {
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--color-grey-light);
  margin-bottom: 10px;
}

/* ==========================================================================
   5. MEDIA QUERIES (Centralizados)
   ========================================================================== */

/* --- Tablet / Desktop Pequeno (max-width: 992px) --- */
@media (max-width: 992px) {
  /* GLOBAIS - Ajustado para usar clamp no root, mas mantemos overrides específicos se necessário
     Como já usamos clamp, não precisamos de redefinir font-sizes fixos aqui na maioria dos casos! */

  .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Padding unificado para secções (Fluid) */
  .about-us-section,
  .services-section,
  .bim-section,
  .projects-section,
  .mission-value-section {
    padding: clamp(60px, 8vw, 80px) 0;
  }

  /* HERO - Ajustes específicos mobile/tablet se o clamp global não for suficiente */
  .hero-section {
    height: auto;
    min-height: 500px; /* Ensure sufficient height on mobile for video */
    /* Remove legacy background overrides */
    padding-bottom: 40px;
  }

  /* Force video to strictly fill height on mobile and zoom more to hide bars */
  /* Force video to strictly fill height on mobile */
  .hero-bg-video {
    height: 100vh; /* Keep height enforcement */
    min-height: 100vh;
    /* transform: scale(1.3); - Removed zoom */
  }
  


  .hero-content-container {
    padding: 40px 20px;
    align-items: flex-start;
  }

  .hero-text {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* ABOUT US */
  .about-us-content {
    flex-direction: column;
    gap: 40px;
  }
  .about-us-text {
    text-align: center;
  }

  /* SERVICES */
  .services-grid {
    flex-direction: column;
    height: auto;
    width: 90%;
  }
  .service-card {
    flex: auto;
    height: 250px;
    filter: none;
    /* Use luminosity blend mode for B&W effect */
    background-color: #000;
    background-blend-mode: luminosity;
    transition-delay: 0s;
  }

  /* Disable hover effects on mobile/tablet */
  .services-grid:hover .service-card,
  .service-card:hover {
    flex: auto;
    filter: none;
    transition-delay: 0s;
  }

  .service-card::before {
    /* Remove solid color here, rely on gradient only for overlay */
    background-color: transparent;
    /* Dark gradient at bottom for text readability */
    background-image: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.95),
      rgba(0, 0, 0, 0.2)
    );
  }

  .service-content {
    opacity: 1;
    transform: translateY(0);
    text-align: center;
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    max-width: none;
  }
  .service-content p {
    font-size: 16px;
  }

  /* SLIDER / SPECIALTIES */
  .specialties-section {
    height: auto;
    min-height: 400px;
    padding: 80px 0;
  }

  .slider-container .swiper-button-prev {
    left: 15px;
    top: 40%;
  }
  .slider-container .swiper-button-next {
    right: 15px;
    top: 40%;
  }

  .specialties-slider {
    padding: 0 20px;
    max-width: none;
  }

  /* Override desktop pagination for mobile/tablet */
  .specialties-slider .swiper-pagination {
    position: relative !important;
    margin-top: 40px !important;
    max-width: 80%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--color-grey-dark) !important;
  }

  /* BIM */
  .bim-section {
    padding: 60px 0;
  }
  .bim-content {
    flex-direction: column;
    gap: 40px;
  }
  .bim-text {
    flex-basis: 100%;
    text-align: center;
  }
  .bim-image {
    flex-basis: 100%;
  }
  .bim-image .caption {
    font-size: 12px;
    text-align: center;
  }

  /* PROJECTS - NOVO GRID INTERMÉDIO (2 Colunas) */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 Colunas entre 576px e 992px */
  }
  .section-subtitle-2 {
    font-size: 16px;
    margin-bottom: 40px;
    margin-top: 40px;
  }
  .projects-cta {
    margin-top: 60px;
    font-size: 18px;
  }

  /* MISSION / VALUE */
  .mission-value-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mission-value-section {
    padding-bottom: 100px;
  }
  .mission-value-section p {
    margin-bottom: 10px !important;
  }
  .value-text h2,
  .mission-text h2 {
    margin-bottom: 0;
  }

  .images-row {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
  }
  .mission-images-container {
    margin-top: -50px;
  }

  /* PROCESS */
  .process-section {
    padding-top: 50px;
  }
  .process-icon {
    margin-bottom: 0;
  }
  .process-step p {
    margin: 16px 0 0 0 !important;
  }
  .process-diagram {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .process-arrow {
    width: 2px;
    height: 50px;
    margin-top: 0;
    margin-bottom: 10px;
    flex-grow: 0;
  }
  .process-arrow::after {
    top: auto;
    bottom: -2px;
    left: -4px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--color-text-dark);
    border-bottom: 0;
  }

  /* FOOTER */
  .main-footer {
    padding-top: 160px;
  }
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }
  .footer-links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
  }
  .footer-links-container .footer-column:nth-child(2),
  .footer-links-container .footer-column:nth-child(3) {
    display: none;
  }
  #footer-logo-col,
  #footer-contact-col,
  #footer-social-col {
    text-align: center;
    width: 100%;
  }
  #footer-logo-col {
    padding-right: 0;
  }

  .footer-legal-container {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .footer-legal-links {
    align-items: center;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }
  .footer-legal-links a {
    margin: 0;
    color: var(--color-grey-dark);
    font-size: 0.8rem;
  }
}

/* --- Mobile (max-width: 576px) --- */
@media (max-width: 576px) {
  /* Não precisamos redefinir :root font-sizes pois o clamp() trata disso nativamente! */

  /* Tweak de Padding Global Mobile */
  .about-us-section,
  .services-section,
  .bim-section,
  .projects-section,
  .mission-value-section {
    padding: 40px 0;
  }
  .mission-value-section {
    padding-bottom: 250px; /* Espaço extra para imagens */
  }

  /* PROJECTS - GRID MOBILE (1 Coluna) */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* HERO Tweaks Mobile */
  /* Removemos overrides redundantes de tamanho de fonte */

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 14px 28px; /* Touch target */
  }

  /* Mission Images */
  .mission-images-container {
    margin-top: -200px;
  }
  .images-row {
    gap: 15px;
  }
}
/* --- Back to Top Button --- */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-yellow);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

#back-to-top:hover {
  background-color: var(--color-white);
  transform: translateY(-5px);
}

#back-to-top img {
  width: 24px;
  height: 24px;
  filter: brightness(
    0
  ); /* Make icon black for contrast if needed, or keep as is */
}
/* --- 2.9 Lightbox Modal --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.is-visible {
  opacity: 1;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
}

.lightbox-close {
  color: var(--color-white);
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 35px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
  padding: 0;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--color-yellow);
  text-decoration: none;
  cursor: pointer;
}

.lightbox-slider {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 8px;
}

.lightbox-slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

.lightbox-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-slider .swiper-button-prev,
.lightbox-slider .swiper-button-next {
  color: var(--color-yellow);
}

.lightbox-slider .swiper-pagination-bullet {
  background: var(--color-white);
  opacity: 0.5;
}

.lightbox-slider .swiper-pagination-bullet-active {
  background: var(--color-yellow);
  opacity: 1;
}

@media (max-width: 768px) {
  .lightbox-content {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
    z-index: 1001;
  }

  .lightbox-slider {
    width: 100%;
    aspect-ratio: auto;
    height: 100%;
  }
}
