/* ========================================
   CAUCAIA MALLS — SITE CSS
   Inspired by vilarejo.com.br (clean, elegant)
   ======================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #000000;
  --primary-light: #2d2d2d;
  --accent: #8a8a8a;
  --accent-dark: #6b6b6b;
  --bg: #ffffff;
  --bg-warm: #f5f5f5;
  --text: #2d2d2d;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 40px;
  transition: var(--transition);
  filter: brightness(0) invert(1);
}

.navbar.scrolled .nav-logo img {
  height: 32px;
  filter: brightness(0);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
}

.nav-cta::after {
  display: none !important;
}

.lang-toggle {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.navbar.scrolled .lang-toggle {
  color: var(--text);
  border-color: rgba(0,0,0,0.2);
}

.navbar.scrolled .lang-toggle:hover {
  background: rgba(0,0,0,0.05);
  border-color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--text);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #4a4a4a 100%);
  opacity: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

@keyframes heroParticleFade {
  to { opacity: 0.5; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: heroFadeIn 0.8s forwards 0.3s;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animated title letters */
.hero-title-animated {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-letter {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  animation: heroLetterUp 0.5s forwards;
  animation-delay: calc(0.03s * var(--i) + 0.5s);
}

.hero-letter.accent {
  color: var(--accent);
}

@keyframes heroLetterUp {
  to { transform: translateY(0); opacity: 1; }
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.8;
  opacity: 0;
  animation: heroFadeIn 0.8s forwards 2.2s;
}

/* Hero mini cards */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  cursor: default;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: heroCardUp 0.6s forwards;
  animation-delay: calc(2.4s + (var(--order) * 0.15s));
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card:hover {
  transform: translateY(-6px) scale(1.03);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

@keyframes heroCardUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-card-num {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 8px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card-num.slot-done {
  opacity: 1;
  transform: scale(1.15);
  text-shadow: 0 0 20px rgba(138, 138, 138, 0.4);
  animation: slotLand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slotLand {
  0% { transform: scale(1.3); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1.15); }
}

.hero-card h3 {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.hero-card p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn-animated {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s forwards 3s;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-dark);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(138, 138, 138, 0.3);
}

.btn-primary:hover::before {
  transform: scaleX(1);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* --- SECTIONS --- */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-accent {
  background: var(--bg-warm);
}

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.label-light {
  color: var(--accent);
}

.label-dark {
  color: var(--primary);
}

.section-title {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 48px;
  line-height: 1.2;
}

.section-title.light {
  color: var(--white);
}

.section-subtitle {
  color: var(--text-light);
  margin-top: -32px;
  margin-bottom: 48px;
  font-size: 0.95rem;
}

/* --- GRID LAYOUTS --- */
.section-grid {
  display: grid;
  gap: 64px;
  align-items: start;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

.section-text h2 {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--primary);
}

.section-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1rem;
}

/* --- PILARES --- */
.pilares-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pilar {
  background: var(--bg-warm);
  padding: 28px;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.pilar h4 {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pilar p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- VALORES --- */
.section-valores {
  background: var(--bg-warm);
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.valor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.valor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.valor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.valor-card:hover::before {
  transform: scaleX(1);
}

.valor-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--accent);
}

.valor-icon svg {
  width: 100%;
  height: 100%;
}

.valor-card h3 {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.valor-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .valores-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .valores-grid .valor-card:nth-child(4),
  .valores-grid .valor-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .valores-grid .valor-card:last-child {
    grid-column: 1 / -1;
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .valores-grid {
    grid-template-columns: 1fr;
  }

  .valores-grid .valor-card:last-child {
    max-width: 100%;
  }
}

/* --- ATUAÇÃO / SERVICES --- */
.section-atuacao {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}

.atuacao-arrow {
  position: absolute;
  top: -20px;
  right: 5%;
  width: 180px;
  height: 180px;
  border: 3px solid rgba(255,255,255,0.08);
  border-left: none;
  border-bottom: none;
  transform: rotate(-45deg);
  pointer-events: none;
}

.atuacao-arrow::after {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.08);
  border-left: none;
  border-bottom: none;
  transform: rotate(0deg);
}

.atuacao-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.atuacao-title h2 {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
}

.atuacao-image {
  position: relative;
  width: 340px;
  height: 180px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.atuacao-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atuacao-image-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.85rem;
  font-weight: 500;
}

.atuacao-image img + .atuacao-image-placeholder {
  display: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 36px 32px 32px;
  transition: var(--transition);
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.4s ease;
}

.service-card:hover::after {
  width: 100%;
}

.service-card:hover {
  background: rgba(255,255,255,0.04);
}

.service-num {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  line-height: 1;
}

.service-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--white);
  opacity: 0.85;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-text h3 {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 8px;
}

.service-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 1024px) {
  .atuacao-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .atuacao-image {
    width: 100%;
    max-width: 400px;
    height: 200px;
  }

  .atuacao-arrow {
    display: none;
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 28px 24px;
  }
}

/* --- PROJECTS --- */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.project:last-child {
  margin-bottom: 0;
}

.project-reverse {
  direction: rtl;
}

.project-reverse > * {
  direction: ltr;
}

.project-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.project-info h3 {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.project-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.project-architect {
  font-style: italic;
  font-size: 0.85rem !important;
  color: var(--accent-dark) !important;
}

.btn-project-site {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.btn-project-site:hover {
  border-bottom-color: var(--accent);
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.stat-value {
  display: block;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
}

.stat-operacoes-label {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px 0;
  grid-column: 1 / -1;
}

.stat-operacoes {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-operacoes span {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  background: #f0f0f0;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.project-image {
  border-radius: var(--radius);
  overflow: hidden;
}



/* --- EM DESENVOLVIMENTO STRIP --- */
.dev-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  position: relative;
}

.dev-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.25;
  animation: dev-pulse 2s ease-in-out infinite;
}

/* --- PIPELINE --- */
.section-pipeline {
  padding-top: 80px;
  padding-bottom: 80px;
}

.pipeline-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.pipeline-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.pipeline-label .label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
}

.pipeline-text h2 {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.pipeline-text p {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.pipeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
}

.pipeline-item:first-child {
  border-top: 1px solid rgba(255,255,255,0.07);
}

.pipeline-item:hover {
  padding-left: 6px;
}

.pipeline-num {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  min-width: 24px;
}

.pipeline-name {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  flex: 1;
}

.pipeline-uf {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

.pipeline-photos {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  height: 460px;
}

.pipeline-photo--tall {
  height: 100%;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.pipeline-photo--tall:hover {
  transform: scale(1.02);
}

.pipeline-photo-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pipeline-photo-col .pipeline-photo {
  flex: 1;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.pipeline-photo-col .pipeline-photo:hover {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .pipeline-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pipeline-photos {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .pipeline-photos {
    height: 240px;
  }
}

/* --- CAROUSEL --- */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--primary);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 2;
}

.carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.6);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.carousel-dot:hover {
  background: rgba(255,255,255,0.8);
}

/* --- NUMBERS --- */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.number-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.number-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.number-value {
  display: block;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.number-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* --- TEAM --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
}

.team-card h3 {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.team-card p:not(.team-role) {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.team-linkedin {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.team-linkedin:hover {
  color: var(--accent);
}

/* --- CONTATO --- */
.contato-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contato-text h2 {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
}

.contato-text p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.contato-email {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: var(--transition);
}

.contato-email:hover {
  opacity: 0.8;
}

.contato-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 8px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  padding: 10px 20px;
}

.contato-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contato-form input,
.contato-form textarea {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.contato-form input::placeholder,
.contato-form textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.contato-form input:focus,
.contato-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}

.contato-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contato-form .btn {
  align-self: flex-start;
}

/* --- FOOTER --- */
.footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.6);
  padding-top: 64px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  height: 32px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.85rem;
  max-width: 320px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.8rem;
  text-align: center;
}

/* --- ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
  .two-col,
  .project,
  .project-reverse,
  .contato-container,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .project-reverse {
    direction: ltr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--white) !important;
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-toggle.active span {
    background: var(--white) !important;
  }

  .section {
    padding: 64px 0;
  }

  .hero-content {
    padding: 100px 0 60px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .numbers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .numbers-grid {
    grid-template-columns: 1fr;
  }
}

/* --- PRIVACY MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 80vh;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
  z-index: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 40px 36px;
  overflow-y: auto;
  max-height: 80vh;
}

.modal-body h2 {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.modal-updated {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.modal-body h3 {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 24px;
  margin-bottom: 8px;
}

.modal-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: var(--primary);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-content p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  flex: 1;
}

.cookie-link {
  color: var(--accent) !important;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .modal-body {
    padding: 32px 24px;
  }
}

/* --- Form Messages --- */
.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Hero responsive cards --- */
@media (max-width: 600px) {
  .hero-cards {
    grid-template-columns: 1fr 1fr;
    max-width: 320px;
  }

  .hero-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 180px;
    margin: 0 auto;
  }
}