@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&display=swap');

:root {
  --gold: #D4AF49;
  --gold-dark: #B8962E;
  --gold-light: #E8C96A;
  --black: #000000;
  --off-white: #F8F6F1;
  --white: #FFFFFF;
  --gray-text: #4A4A4A;
  --gray-mid: #8A8A8A;
  --gray-light: #E8E6E1;
  --gray-border: #D8D6D1;

  --font-main: 'Niveau Grotesk', 'Montserrat', sans-serif;

  --header-h: 80px;
  --max-w: 1280px;
  --section-pad: 100px 0;
  --section-pad-sm: 60px 0;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration: 300ms;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--off-white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-main); border: none; background: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 20px;
}

.section-lead {
  font-size: 17px;
  color: var(--gray-text);
  line-height: 1.75;
  max-width: 540px;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 60px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--black);
  color: var(--white);
}
.btn-secondary:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration) var(--ease-out);
}
.btn:hover svg { transform: translateX(4px); }

/* ─── HEADER ─────────────────────────────────────────────── */

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

#header.transparent {
  background: transparent;
}

#header.solid {
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-border), 0 4px 24px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
  transition: opacity var(--duration) var(--ease-out);
}

/* Alternância de logos */
.logo-dark  { display: none; }
.logo-light { display: block; }

#header.solid .logo-light { display: none; }
#header.solid .logo-dark  { display: block; }

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  transition: color var(--duration);
}

#header.solid .logo-text {
  color: var(--black);
}

.logo-text span {
  color: var(--gold);
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 8px;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
}

#header.solid .nav-link {
  color: var(--gray-text);
}

.nav-link:hover,
#header.solid .nav-link:hover {
  color: var(--black);
  background: var(--gray-light);
}

.nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--duration);
}

.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--duration) var(--ease-out);
  pointer-events: none;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--gray-text);
  border-radius: 8px;
  transition: all var(--duration) var(--ease-out);
}

.dropdown-link:hover {
  background: var(--off-white);
  color: var(--black);
}

.dropdown-link .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.nav-cta {
  margin-left: 16px;
  padding: 10px 24px;
  font-size: 13.5px;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration) var(--ease-out);
}

#header.solid .mobile-toggle span { background: var(--black); }

/* ─── HERO ────────────────────────────────────────────────── */

#hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 100px;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/hero-obra.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1.5px;
  background: var(--gold);
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-title em {
  font-style: normal;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.2s forwards;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ─── INDICATORS ─────────────────────────────────────────── */

#indicators {
  background: var(--black);
  padding: 70px 0;
  position: relative;
}

#indicators::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

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

.indicator-item {
  padding: 20px 40px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.indicator-item:last-child { border-right: none; }

.indicator-number {
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.indicator-number span { color: var(--gold); }

.indicator-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── SECTION: EMPRESAS ──────────────────────────────────── */

#empresas {
  padding: var(--section-pad);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

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

.empresa-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s var(--ease-out);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.empresa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.1);
  border-color: var(--gold);
}

.empresa-card-img {
  height: 220px;
  background: var(--gray-light);
  overflow: hidden;
  position: relative;
}

.empresa-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.empresa-card:hover .empresa-card-img img {
  transform: scale(1.04);
}

.empresa-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
}

.empresa-card-body {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.empresa-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212,175,73,0.1);
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 14px;
}

.empresa-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.empresa-card-desc {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.empresa-card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  transition: gap var(--duration) var(--ease-out);
}

.empresa-card:hover .empresa-card-link { gap: 12px; }

/* ─── SECTION: ÁREAS ─────────────────────────────────────── */

#areas {
  background: var(--black);
  padding: var(--section-pad);
}

#areas .section-title { color: var(--white); }
#areas .section-lead { color: rgba(255,255,255,0.55); }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
  border-radius: 16px;
  overflow: hidden;
}

.area-block {
  position: relative;
  height: 420px;
  overflow: hidden;
  cursor: pointer;
}

.area-block-bg {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  transition: transform 0.5s var(--ease-out);
}

.area-block-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}

.area-block:hover .area-block-bg img {
  opacity: 0.65;
  transform: scale(1.05);
}

.area-block-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
}

.area-block-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  transform: translateY(8px);
  transition: transform 0.35s var(--ease-out);
}

.area-block:hover .area-block-content { transform: translateY(0); }

.area-number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 10px;
}

.area-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.area-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s var(--ease-out) 0.05s;
}

.area-block:hover .area-desc {
  opacity: 1;
  transform: translateY(0);
}

.area-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.35s var(--ease-out) 0.1s;
}

.area-block:hover .area-link {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SECTION: CLIENTES ──────────────────────────────────── */

#clientes {
  padding: var(--section-pad-sm);
  overflow: hidden;
}

.clientes-header {
  text-align: center;
  margin-bottom: 48px;
}

.clientes-track-wrap {
  position: relative;
  overflow: hidden;
}

.clientes-track-wrap::before,
.clientes-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.clientes-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--off-white), transparent);
}

.clientes-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--off-white), transparent);
}

.clientes-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scroll 28s linear infinite;
}

.clientes-track:hover { animation-play-state: paused; }

.cliente-logo {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  opacity: 0.6;
  transition: opacity var(--duration);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-text);
  letter-spacing: 0.04em;
}

.cliente-logo:hover { opacity: 1; }

/* ─── FOOTER ─────────────────────────────────────────────── */

#footer {
  background: var(--black);
  color: rgba(255,255,255,0.65);
  padding: 70px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand .logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.45);
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--duration);
}

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

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

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ─── MODAL ──────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease-out);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--white);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  overflow: hidden;
  transform: translateY(16px);
  transition: transform var(--duration) var(--ease-out);
}

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

.modal-header {
  padding: 28px 32px;
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration);
  flex-shrink: 0;
}

.modal-close:hover { background: var(--gray-border); }

.modal-body { padding: 28px 32px 32px; }

/* ─── SCROLL ANIMATIONS ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── GOLD LINE DIVIDER ──────────────────────────────────── */

.gold-divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 32px;
}

/* ─── KEYFRAMES ──────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes scrollLine {
  0%   { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(0.3); transform-origin: bottom; }
  100% { transform: scaleY(1); transform-origin: top; }
}

/* ─── MOBILE MENU ────────────────────────────────────────── */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 90vw);
  background: var(--white);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
  padding: 80px 32px 40px;
  box-shadow: -20px 0 60px rgba(0,0,0,0.15);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration);
}

.mobile-menu-overlay.open { opacity: 1; visibility: visible; }

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
}

.mobile-nav-links a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  border-bottom: 1px solid var(--gray-border);
  transition: color var(--duration);
}

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

/* ─── INNER PAGE HERO ────────────────────────────────────── */

.page-hero {
  background: var(--black);
  padding: calc(var(--header-h) + 80px) 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.page-hero-eyebrow { color: var(--gold); }
.page-hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  max-width: 700px;
  margin-bottom: 20px;
}

.page-hero-lead {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  line-height: 1.7;
}

/* ─── UTILITIES ──────────────────────────────────────────── */

.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .indicators-grid { grid-template-columns: repeat(2, 1fr); }
  .indicator-item:nth-child(2) { border-right: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px 0; }
  .container { padding: 0 20px; }
  nav.main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .empresas-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .area-block { height: 300px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-scroll { display: none; }
  .area-desc, .area-link { opacity: 1; transform: none; }
}
