/* ============================================
   CARVALHO & ALVES CONSTRUÇÕES
   Futuristic Construction Website
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --green-dark: #1a5c3a;
  --green-mid: #237a4b;
  --green-light: #2d9a5e;
  --green-glow: #3dff8a;
  --copper: #c57a2b;
  --copper-light: #e0943d;
  --copper-glow: #ffb347;
  --cream: #f5ede0;
  --dark-bg: #0a0f0d;
  --dark-card: #111a15;
  --dark-card-hover: #162019;
  --dark-surface: #0e1412;
  --text-primary: #e8f0ec;
  --text-secondary: #9ab3a5;
  --text-muted: #5e7a6c;
  --border-subtle: rgba(45, 154, 94, 0.15);
  --border-glow: rgba(61, 255, 138, 0.3);
  --gradient-hero: linear-gradient(135deg, #0a0f0d 0%, #0e1912 40%, #111a15 100%);
  --gradient-green: linear-gradient(135deg, var(--green-dark), var(--green-light));
  --gradient-copper: linear-gradient(135deg, var(--copper), var(--copper-light));
  --shadow-glow: 0 0 30px rgba(61, 255, 138, 0.1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font-main);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Light Theme ---------- */
[data-theme="light"] {
  --dark-bg: #ffffff;
  --dark-card: #ffffff;
  --dark-card-hover: #fafcfb;
  --dark-surface: #fafcfb;
  --text-primary: #1a2e23;
  --text-secondary: #4a6355;
  --text-muted: #7a9489;
  --border-subtle: rgba(45, 154, 94, 0.12);
  --border-glow: rgba(45, 154, 94, 0.25);
  --gradient-hero: linear-gradient(135deg, #ffffff 0%, #fdfefe 40%, #fafcfb 100%);
  --shadow-glow: 0 0 30px rgba(45, 154, 94, 0.04);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .bg-grid {
  opacity: 0.05;
}

[data-theme="light"] .particle {
  background: var(--green-dark);
}

[data-theme="light"] .map-container iframe {
  filter: none;
}

[data-theme="light"] .nav-logo img {
  filter: none;
}

[data-theme="light"] .footer-brand img {
  filter: none;
}

/* Light Theme — explicit overrides for Android compatibility */
[data-theme="light"] body {
  background: #ffffff !important;
  color: #1a2e23;
}

[data-theme="light"] .hero,
[data-theme="light"] .about-hero {
  background: linear-gradient(135deg, #ffffff 0%, #fdfefe 40%, #fafcfb 100%) !important;
}

[data-theme="light"] .vision-section,
[data-theme="light"] .diff-section,
[data-theme="light"] .objectives-section,
[data-theme="light"] .cta-section {
  background: #fafcfb !important;
}

[data-theme="light"] .uc-section,
[data-theme="light"] .projects-section,
[data-theme="light"] .story-section,
[data-theme="light"] .values-section,
[data-theme="light"] .contact-section,
[data-theme="light"] .footer {
  background: #ffffff !important;
}

[data-theme="light"] .uc-card,
[data-theme="light"] .project-card,
[data-theme="light"] .diff-card,
[data-theme="light"] .value-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .objective-item,
[data-theme="light"] .contact-info-card,
[data-theme="light"] .contact-form-wrapper,
[data-theme="light"] .progress-wrapper,
[data-theme="light"] .story-image-placeholder,
[data-theme="light"] .lang-dropdown {
  background: #ffffff !important;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: #fafcfb !important;
  color: #1a2e23;
}

[data-theme="light"] .hero-glow {
  opacity: 0.04;
}

[data-theme="light"] .loader {
  background: #ffffff !important;
}

[data-theme="light"] .cta-section .cta-glow {
  opacity: 0.02;
}

/* Light Theme — Nav active/hover uses strong logo green */
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: var(--green-dark);
}

[data-theme="light"] .nav-links a::after {
  background: var(--green-dark);
}

[data-theme="light"] .section-badge {
  color: var(--green-dark);
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  padding: 0;
  line-height: 1;
  font-family: var(--font-main);
  color: var(--text-primary);
  filter: grayscale(1) sepia(1) hue-rotate(90deg) saturate(3) brightness(0.6);
}

[data-theme="light"] .theme-toggle {
  filter: grayscale(1) sepia(1) hue-rotate(90deg) saturate(3) brightness(0.4);
}

.theme-toggle:hover {
  background: transparent;
  border-color: var(--green-light);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--green-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--green-glow);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(45, 154, 94, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--green-light);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.8;
}

/* ---------- Icons (Dark Mode — desaturated, muted to blend with dark theme) ---------- */
.uc-card-icon,
.diff-card-icon,
.value-icon,
.construction-animation .crane-icon {
  filter: grayscale(0.55) brightness(0.85) saturate(0.5) contrast(0.9);
  opacity: 0.8;
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.uc-card:hover .uc-card-icon,
.diff-card:hover .diff-card-icon,
.value-card:hover .value-icon {
  filter: grayscale(0.3) brightness(0.95) saturate(0.7) contrast(0.95);
  opacity: 1;
}

/* ---------- Icons (Light Mode — muted, low-saturation to blend with light theme) ---------- */
[data-theme="light"] .uc-card-icon,
[data-theme="light"] .diff-card-icon,
[data-theme="light"] .value-icon,
[data-theme="light"] .construction-animation .crane-icon {
  filter: grayscale(0.6) brightness(0.65) saturate(0.4) contrast(1.1);
  opacity: 0.75;
}

[data-theme="light"] .uc-card:hover .uc-card-icon,
[data-theme="light"] .diff-card:hover .diff-card-icon,
[data-theme="light"] .value-card:hover .value-icon {
  filter: grayscale(0.35) brightness(0.55) saturate(0.6) contrast(1.1);
  opacity: 0.9;
}

/* ---------- Animated Background Grid ---------- */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(var(--green-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--green-light) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---------- Floating Particles ---------- */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--green-glow);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 15, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 64px;
  width: auto;
  filter: brightness(1.3);
  transition: all var(--transition-fast);
}

.nav-logo img:hover {
  filter: brightness(1.5);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-green);
  transition: width var(--transition-smooth);
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-mid);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-main);
}

.lang-btn .globe-icon {
  filter: grayscale(1) sepia(1) hue-rotate(90deg) saturate(3) brightness(0.6);
}

[data-theme="light"] .lang-btn .globe-icon {
  filter: grayscale(1) sepia(1) hue-rotate(90deg) saturate(3) brightness(0.4);
}

.lang-btn:hover {
  background: transparent;
  border: none;
  color: var(--text-primary);
  opacity: 0.7;
}

.lang-btn .globe-icon {
  font-size: 1rem;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 160px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: 1001;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.lang-option:hover {
  background: rgba(45, 154, 94, 0.1);
  color: var(--green-mid);
}

.lang-option.active {
  background: rgba(45, 154, 94, 0.15);
  color: var(--green-mid);
}

[data-theme="light"] .lang-option:hover {
  color: var(--green-dark);
}

[data-theme="light"] .lang-option.active {
  color: var(--green-dark);
}

.lang-option .flag {
  font-size: 1.2rem;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-glow-1 {
  top: -200px;
  right: -100px;
  background: var(--green-light);
}

.hero-glow-2 {
  bottom: -200px;
  left: -100px;
  background: var(--copper);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(197, 122, 43, 0.1);
  border: 1px solid rgba(197, 122, 43, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--copper-light);
  margin-bottom: 40px;
  animation: badgePulse 3s infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197, 122, 43, 0.2); }
  50% { box-shadow: 0 0 20px 5px rgba(197, 122, 43, 0.1); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.hero-title .highlight {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-green);
  border-radius: 3px;
  animation: underlineGrow 2s ease-out 0.5s both;
}

@keyframes underlineGrow {
  from { width: 0; }
  to { width: 100%; }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-green);
  color: #fff;
  box-shadow: 0 4px 20px rgba(45, 154, 94, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 154, 94, 0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--green-light);
  color: var(--green-glow);
  background: rgba(45, 154, 94, 0.05);
  transform: translateY(-2px);
}

.btn-copper {
  background: var(--gradient-copper);
  color: #fff;
  box-shadow: 0 4px 20px rgba(197, 122, 43, 0.3);
}

.btn-copper:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197, 122, 43, 0.4);
  color: #fff;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
  z-index: 2;
}

.scroll-indicator .arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--green-light);
  border-bottom: 2px solid var(--green-light);
  transform: rotate(45deg);
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Under Construction Section ---------- */
.uc-section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.uc-section .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.uc-section .section-subtitle {
  margin: 0 auto;
}

.uc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.uc-card {
  position: relative;
  padding: 36px 28px;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.uc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-green);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.uc-card:hover {
  border-color: var(--green-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.uc-card:hover::before {
  opacity: 1;
}

.uc-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 154, 94, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.uc-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.uc-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Progress Bar ---------- */
.progress-wrapper {
  text-align: center;
  margin-top: 64px;
  padding: 40px;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.progress-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(45, 154, 94, 0.1);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  width: 35%;
  background: var(--gradient-green);
  border-radius: 100px;
  animation: progressPulse 3s ease-in-out infinite;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, var(--green-glow));
  opacity: 0.5;
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes progressShine {
  0% { opacity: 0; }
  50% { opacity: 0.8; }
  100% { opacity: 0; }
}

.progress-percent {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-light);
}

/* ---------- Vision Section ---------- */
.vision-section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
  background: var(--dark-surface);
}

.vision-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.vision-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.vision-text p strong {
  color: var(--text-primary);
}

.vision-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  padding: 32px 24px;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- Projects Section ---------- */
.projects-section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.projects-section .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.projects-section .section-subtitle {
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  padding: 32px 28px;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 154, 94, 0.03), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(45, 154, 94, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.project-card:hover::after {
  opacity: 1;
}

.project-tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.project-tag.active {
  background: rgba(45, 154, 94, 0.15);
  color: var(--green-light);
  border: 1px solid rgba(45, 154, 94, 0.3);
}

.project-tag.upcoming {
  background: rgba(197, 122, 43, 0.15);
  color: var(--copper-light);
  border: 1px solid rgba(197, 122, 43, 0.3);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
  background: var(--dark-surface);
  text-align: center;
}

.cta-section .cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--green-dark);
  filter: blur(150px);
  opacity: 0.08;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-section .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.cta-section .section-subtitle {
  margin: 0 auto 40px;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  background: var(--dark-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.75;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 360px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--green-glow);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-contact-item .icon {
  margin-top: 2px;
  color: var(--green-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-tagline {
  color: var(--text-muted);
}

.footer-alvara {
  color: var(--copper-light);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

/* ---------- About Page Styles ---------- */
.about-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 140px 24px 80px;
  text-align: center;
}

.about-hero .hero-glow {
  width: 500px;
  height: 500px;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.about-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.about-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* Story Section */
.story-section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.story-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.story-text p strong {
  color: var(--text-primary);
}

.story-image-placeholder {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.construction-animation {
  text-align: center;
  color: var(--text-muted);
}

.construction-animation .crane-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: craneSwing 4s ease-in-out infinite;
}

@keyframes craneSwing {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* Differentials Section */
.diff-section {
  padding: 120px 0;
  background: var(--dark-surface);
  position: relative;
  z-index: 1;
}

.diff-section .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.diff-section .section-subtitle {
  margin: 0 auto;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.diff-card {
  position: relative;
  padding: 36px 28px;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
}

.diff-card:hover {
  border-color: var(--green-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.diff-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 154, 94, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.diff-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.diff-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Values Section */
.values-section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.values-section .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.value-card {
  display: flex;
  gap: 20px;
  padding: 28px 24px;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
}

.value-card:hover {
  border-color: rgba(197, 122, 43, 0.3);
  transform: translateY(-2px);
}

.value-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 122, 43, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--copper-light);
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Objectives Section */
.objectives-section {
  padding: 120px 0;
  background: var(--dark-surface);
  position: relative;
  z-index: 1;
}

.objectives-section .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.objectives-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.objective-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.objective-item:hover {
  border-color: var(--green-light);
  transform: translateX(4px);
}

.objective-number {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-green);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.objective-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: 6px;
}

/* Contact Section */
.contact-section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.contact-section .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.contact-section .section-subtitle {
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-card {
  padding: 28px 24px;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
}

.contact-info-card:hover {
  border-color: var(--green-light);
}

.contact-info-card .icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 154, 94, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.contact-info-card h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-info-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-info-card a {
  color: var(--green-light);
}

.contact-form-wrapper {
  padding: 36px;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--dark-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(45, 154, 94, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Map placeholder */
.map-container {
  margin-top: 64px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(0.92) contrast(0.8);
}

/* ---------- Animations on Scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .vision-content,
  .story-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html {
    overflow-x: hidden;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 140px;
    height: 100vh;
    background: var(--dark-card);
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    gap: 20px;
    transition: right 0.2s ease-out;
    border-left: 1px solid var(--border-subtle);
    z-index: 999;
  }

  [data-theme="light"] .nav-links {
    background: #ffffff !important;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .nav-links.open {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-logo img {
    height: 40px;
  }

  .nav-logo-text {
    font-size: 0.95rem;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    padding: 0;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 8px 16px;
    letter-spacing: 1.5px;
  }

  .about-hero {
    padding: 110px 20px 60px;
  }

  .about-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
    word-break: break-word;
  }

  .about-hero-subtitle {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .diff-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .vision-stats {
    grid-template-columns: 1fr 1fr;
  }

  .cta-section .section-subtitle {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 90px 16px 50px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.4rem, 6.5vw, 2rem);
  }

  .hero-badge {
    font-size: 0.6rem;
    padding: 6px 12px;
    letter-spacing: 1px;
  }

  .about-hero {
    padding: 90px 16px 50px;
  }

  .about-hero-title {
    font-size: clamp(1.4rem, 6.5vw, 2rem);
  }

  .uc-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .progress-wrapper {
    padding: 24px 16px;
  }

  .stat-card {
    padding: 20px 16px;
  }

  .contact-form-wrapper {
    padding: 24px 16px;
  }

  .nav-logo img {
    height: 36px;
  }

  .nav-logo-text {
    font-size: 0.85rem;
  }

  .nav-logo-text span {
    font-size: 0.55rem;
  }
}

/* ---------- Maquete Showcase ---------- */
.maquete-showcase {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.maquete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.maquete-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
  aspect-ratio: 16/10;
}

.maquete-card:hover {
  border-color: var(--green-light);
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.maquete-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Loading Screen ---------- */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Safari: fully remove loader from layout after fade-out */
.loader.removed {
  display: none !important;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  height: 60px;
  margin-bottom: 24px;
  opacity: 0.85;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(45, 154, 94, 0.1);
  border-radius: 100px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar-fill {
  height: 100%;
  width: 40%;
  background: var(--gradient-green);
  border-radius: 100px;
  animation: loaderProgress 1.2s ease-in-out infinite;
}

@keyframes loaderProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ==============================================
   MOBILE PERFORMANCE — Safari iOS fix
   Kill all expensive compositor effects on mobile
   ============================================== */
@media (max-width: 768px) {
  /* Remove background grid overlay */
  .bg-grid {
    display: none !important;
  }

  /* Remove all floating particles */
  .particles-container,
  .particle {
    display: none !important;
  }

  /* Remove large blur glows (120-150px blur = GPU killer) */
  .hero-glow,
  .hero-glow-1,
  .hero-glow-2,
  .cta-glow,
  .cta-section .cta-glow {
    display: none !important;
  }

  /* Navbar: solid background instead of backdrop-filter blur */
  .navbar.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--dark-bg) !important;
  }

  [data-theme="light"] .navbar.scrolled {
    background: #ffffff !important;
  }

  /* Kill all infinite animations */
  .progress-fill,
  .progress-fill::after,
  .hero-badge,
  .construction-animation .crane-icon,
  .scroll-indicator,
  .loader-logo {
    animation: none !important;
  }

  /* Stop badge pulsing box-shadow */
  .hero-badge {
    box-shadow: none !important;
  }

  /* Simplify card hover effects */
  .project-card:hover,
  .diff-card:hover,
  .value-card:hover,
  .maquete-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  /* Remove glow box-shadows everywhere */
  .btn-primary:hover,
  .btn-secondary:hover,
  .project-card:hover,
  .diff-card:hover {
    box-shadow: none !important;
  }

  /* GPU layer for mobile menu slide (the one interaction we need smooth) */
  .nav-links {
    will-change: transform;
    transform: translateX(0);
    -webkit-transform: translateX(0);
  }

  /* Ensure hamburger is on its own layer */
  .mobile-toggle {
    will-change: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    position: relative;
    z-index: 1001;
  }

  /* Reduce transition complexity */
  * {
    transition-duration: 0.15s !important;
  }

  /* Remove complex filter chains on icons */
  .icon-wrapper .section-icon,
  .diff-icon,
  .value-icon {
    filter: none !important;
  }

  /* ---- Center all text content on mobile ---- */
  .hero-content,
  .about-hero-content,
  .uc-card,
  .project-card,
  .diff-card,
  .value-card,
  .stat-card,
  .vision-text,
  .story-text,
  .objectives-text,
  .cta-content,
  .progress-wrapper,
  .contact-form-wrapper,
  .footer-col,
  .footer-bottom,
  .section-header,
  .construction-animation {
    text-align: center !important;
  }

  .hero-buttons,
  .cta-buttons {
    justify-content: center !important;
  }

  .uc-card h3,
  .project-card h3,
  .diff-card h3,
  .value-card h3,
  .stat-card h4 {
    text-align: center !important;
  }
}
