/* ==========================================================================
   CONSTRUÇÕES DEL AUTO - Design Fiel à Referência
   Modelos: herosection.jpeg, abaixoherosection.jpeg e footer.jpeg
   ========================================================================== */

:root {
  /* Cores Base da Referência */
  --bg-dark: #111418;
  --bg-darker: #0c0e11;
  --bg-surface: #171b21;
  --bg-card: #14171d;

  /* Acentos Dourados / Champagne */
  --accent-gold: #c8a97e;
  --accent-gold-light: #dfc49e;
  --accent-gold-dim: rgba(200, 169, 126, 0.15);

  /* Tipografia */
  --text-white: #f5f6f8;
  --text-muted: #8e95a2;
  --text-dim: #5c6370;

  /* Linhas e Divisões */
  --line-subtle: rgba(255, 255, 255, 0.08);
  --line-accent: rgba(200, 169, 126, 0.3);

  /* Fontes */
  --font-serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transições */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

/* Contêiner de Layout */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4.5rem);
}

/* ==========================================================================
   HEADER SUPERIOR (Transparente sobre o Hero, fiel a inspiracao.jpeg)
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  padding: 2.2rem 0;
}

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

.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.32em;
  font-weight: 400;
  text-transform: uppercase;
  color: #ffffff;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  list-style: none;
}

.nav-link {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #b0b7c3;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 14px;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: #ffffff;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background-color: rgba(12, 14, 17, 0.98);
  backdrop-filter: blur(20px);
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-nav-drawer.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.mobile-nav-item a {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.mobile-nav-item a:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   HERO SECTION (herosection.jpeg - Fundo Escuro com Guindaste e Arranha-Céu)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: 8rem;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: brightness(0.92) contrast(1.05);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, rgba(17, 20, 24, 0.96) 0%, rgba(17, 20, 24, 0.68) 35%, rgba(17, 20, 24, 0.05) 65%, rgba(17, 20, 24, 0.2) 100%),
    linear-gradient(to top, rgba(17, 20, 24, 1) 0%, transparent 22%),
    linear-gradient(to bottom, rgba(17, 20, 24, 0.75) 0%, transparent 20%);
}

.hero-container {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-text-block {
  max-width: 650px;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.8vw, 5.2rem);
  font-weight: 300;
  line-height: 1.08;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.hero-subtext {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  color: #a1a8b5;
  line-height: 1.65;
  font-weight: 300;
  max-width: 440px;
  margin-bottom: 1.25rem;
}

.hero-divider-line {
  width: 70px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.25);
  margin-bottom: 3rem;
}

.hero-scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c2c8d2;
  transition: color 0.2s, transform 0.2s;
  cursor: pointer;
}

.hero-scroll-btn svg {
  width: 13px;
  height: 13px;
  stroke: var(--accent-gold);
  transition: transform 0.2s;
}

.hero-scroll-btn:hover {
  color: #ffffff;
}

.hero-scroll-btn:hover svg {
  transform: translateY(3px);
}

.hero-page-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  color: #8c93a0;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.hero-page-bar {
  width: 1px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.12);
  position: relative;
}

.hero-page-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25px;
  background-color: var(--accent-gold);
}

/* ==========================================================================
   BARRA DE MÉTRICAS (Régua com 4 Divisões Exatas de abaixoherosection.jpeg)
   ========================================================================== */
.metrics-section {
  position: relative;
  z-index: 10;
  background-color: var(--bg-dark);
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric-col {
  padding: 3rem 2.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  border-right: 1px solid var(--line-subtle);
}

.metric-col:last-child {
  border-right: none;
}

.metric-icon-wrap {
  flex-shrink: 0;
  color: var(--text-white);
  margin-top: 4px;
}

.metric-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.2;
  stroke: #ffffff;
}

.metric-content {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}

.metric-number-unit {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 300;
  margin-left: 0.2rem;
}

.metric-description {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   SECÇÃO SOBRE NÓS & PROJETOS (Composição de abaixoherosection.jpeg)
   ========================================================================== */
.about-section {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background-color: var(--bg-dark);
}

.about-top-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: flex-start;
  margin-bottom: 4rem;
}

/* Foto do Edifício Vertical */
.about-photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5.2;
  overflow: hidden;
  background-color: #171b21;
}

.about-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) brightness(0.95);
  transition: transform 0.8s var(--ease-out);
}

.about-photo-wrapper:hover img {
  transform: scale(1.03);
}

/* Coluna Direita: Visão + Cabeçalho de Projetos */
.about-content-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.vision-block {
  margin-bottom: 4.5rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: block;
}

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 300;
  line-height: 1.12;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
}

.about-title .highlight-gold {
  color: var(--accent-gold);
  font-style: italic;
  font-weight: 300;
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #a4abb8;
  font-weight: 300;
  margin-bottom: 2.2rem;
}

.underlined-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.35rem;
  width: fit-content;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: color 0.25s, border-color 0.25s, gap 0.25s;
}

.underlined-link svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent-gold);
  transition: transform 0.25s;
}

.underlined-link:hover {
  color: var(--accent-gold-light);
  border-bottom-color: var(--accent-gold);
  gap: 0.9rem;
}

.underlined-link:hover svg {
  transform: translateX(3px);
}

/* Cabeçalho de Projetos Integrado */
.portfolio-header-embedded {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 1rem;
}

.portfolio-title-group {
  display: flex;
  flex-direction: column;
}

.portfolio-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.slider-arrows {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.slider-arrow-btn {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
  padding: 0.25rem;
}

.slider-arrow-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.slider-arrow-btn:hover {
  color: #ffffff;
}

.slider-arrow-btn.prev:hover {
  transform: translateX(-3px);
}

.slider-arrow-btn.next:hover {
  transform: translateX(3px);
}

/* Carrossel de 3 Cards */
.cards-slider-container {
  overflow: hidden;
  position: relative;
}

.cards-track {
  display: flex;
  gap: 1.75rem;
  transition: transform 0.5s var(--ease-out);
}

.portfolio-card {
  flex: 0 0 calc((100% - (1.75rem * 2)) / 3);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background-color: transparent;
}

.portfolio-card-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  background-color: #171b21;
  margin-bottom: 1.4rem;
}

.portfolio-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.9);
  transition: transform 0.7s var(--ease-out), filter 0.5s ease;
}

.portfolio-card:hover .portfolio-card-img-wrap img {
  transform: scale(1.05);
  filter: contrast(1.15) brightness(1);
}

.portfolio-card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.portfolio-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portfolio-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  font-weight: 400;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.2s;
}

.portfolio-card:hover .portfolio-card-title {
  color: var(--accent-gold);
}

.portfolio-card-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.portfolio-card-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, color 0.2s;
  margin-top: 4px;
}

.portfolio-card-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.portfolio-card:hover .portfolio-card-arrow {
  color: #ffffff;
  transform: translateX(4px);
}

.slider-bottom-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* ==========================================================================
   SECÇÃO INFERIOR / COMPROMISSO TÉCNICO (Fiel a footer.jpeg)
   ========================================================================== */
.bottom-cta-section {
  position: relative;
  padding: clamp(5.5rem, 9vw, 9rem) 0 clamp(7rem, 10vw, 10rem) 0;
  background-color: var(--bg-dark);
  overflow: hidden;
  border-top: 1px solid var(--line-subtle);
}

/* Fundo em Malha Isométrica & Diamantes */
.cta-mesh-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
}

.cta-mesh-bg svg {
  width: 100%;
  height: 100%;
}

.bottom-cta-layout {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.bottom-cta-left {
  display: flex;
  flex-direction: column;
}

.bottom-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 300;
  line-height: 1.12;
  color: #ffffff;
  letter-spacing: -0.015em;
}

.bottom-cta-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bottom-cta-text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #9ea6b4;
  font-weight: 300;
  margin-bottom: 2.2rem;
}

/* Elipses Arquiteturais Sobrepostas no Centro Inferior (footer.jpeg) */
.wireframe-ellipses-center {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 140px;
  pointer-events: none;
  opacity: 0.6;
}

.wireframe-ellipses-center svg {
  width: 100%;
  height: 100%;
}

/* Rodapé Minimalista */
.minimal-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #0c0e11;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.minimal-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   MODAL DE CONTATO ("Falar com um Engenheiro")
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 11, 14, 0.88);
  backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background-color: #14171d;
  border: 1px solid var(--line-accent);
  width: 100%;
  max-width: 560px;
  padding: 3rem 2.5rem;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
  transform: translateY(20px);
  transition: transform 0.35s var(--ease-out);
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-subtle);
  color: #fff;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border-radius: 1px;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.modal-submit {
  background-color: var(--accent-gold);
  color: #0c0e11;
  padding: 1rem 1.8rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
}

.modal-submit:hover {
  background-color: var(--accent-gold-light);
}

/* ==========================================================================
   RESPONSIVIDADE (Tablets e Smartphones)
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

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

  .metric-col:nth-child(2) {
    border-right: none;
  }

  .metric-col:nth-child(1),
  .metric-col:nth-child(2) {
    border-bottom: 1px solid var(--line-subtle);
  }

  .about-top-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .portfolio-card {
    flex: 0 0 calc((100% - 1.75rem) / 2);
  }

  .bottom-cta-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .hero-page-indicator {
    display: none;
  }

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

  .metric-col {
    border-right: none;
    border-bottom: 1px solid var(--line-subtle);
    padding: 2.2rem 1.5rem;
  }

  .metric-col:last-child {
    border-bottom: none;
  }

  .portfolio-card {
    flex: 0 0 100%;
  }

  .portfolio-header-embedded {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .minimal-footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .modal-box {
    padding: 2.2rem 1.5rem;
  }
}
