/* ==========================================
   MIA ENGENHARIA - ULTRA PREMIUM STYLESHEET
   Construção Ultra Premium • High-End Engineering • Boutique Experience
   Precisão. Silêncio. Perfeição.
   ========================================== */

/* === VARIÁVEIS ULTRA PREMIUM === */
:root {
  /* Cores Ultra Premium */
  --deep-black: #000000;
  --premium-gold: #C8A24F;
  --pure-white: #FFFFFF;
  --shadow-gold: rgba(200, 162, 79, 0.2);
  --shadow-black: rgba(0, 0, 0, 0.8);
  
  /* Tipografia Premium */
  --font-display: 'Cormorant Garamond', 'Didot', 'Playfair Display', serif;
  --font-body: 'Inter', 'Helvetica Neue', -apple-system, sans-serif;
  
  /* Transições Cinematográficas */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s ease-out;
  
  /* Sombras Premium */
  --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-gold-glow: 0 0 30px var(--shadow-gold);
}

/* === RESET TOTAL === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--pure-white);
  background-color: var(--deep-black);
  line-height: 1.7;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* === TIPOGRAFIA ULTRA PREMIUM === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--pure-white);
  font-weight: 300;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 1px;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 2px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 1.5px;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
}

/* === FRASE IDENTIDADE === */
.identity-phrase {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--premium-gold);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin: 4rem 0;
  opacity: 0.9;
}

/* === HEADER ULTRA PREMIUM === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 162, 79, 0.1);
  transition: var(--transition-fast);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  transition: var(--transition-fast);
  filter: brightness(1.1);
}

.logo img:hover {
  transform: scale(1.05);
  filter: brightness(1.3);
}

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

.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pure-white);
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover {
  color: var(--premium-gold);
  border-bottom-color: var(--premium-gold);
}

/* === BOTÕES ULTRA PREMIUM === */
.btn {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  border-radius: 0;
}

.btn-primary {
  background-color: var(--premium-gold);
  color: var(--deep-black);
  border: 2px solid var(--premium-gold);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--premium-gold);
  box-shadow: var(--shadow-gold-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--pure-white);
  border: 2px solid var(--pure-white);
}

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

.btn-ghost {
  background-color: transparent;
  color: var(--premium-gold);
  border: 2px solid var(--premium-gold);
}

.btn-ghost:hover {
  background-color: var(--premium-gold);
  color: var(--deep-black);
  box-shadow: var(--shadow-gold-glow);
}

/* === HERO ULTRA PREMIUM === */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--deep-black);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1200px;
  padding: 0 2rem;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--premium-gold);
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === SEÇÕES ULTRA PREMIUM === */
section {
  padding: 8rem 3rem;
  position: relative;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 5rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--premium-gold);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.8);
}

/* === GRID ULTRA PREMIUM === */
.grid {
  display: grid;
  gap: 3rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* === CARDS PREMIUM === */
.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(200, 162, 79, 0.15);
  padding: 3rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 162, 79, 0.05), transparent);
  transition: var(--transition-smooth);
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  border-color: var(--premium-gold);
  box-shadow: var(--shadow-gold-glow);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--premium-gold);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--pure-white);
}

.card-description {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
}

/* === PORTFÓLIO CINEMATOGRÁFICO === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  background: var(--deep-black);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  filter: brightness(0.8);
}

.portfolio-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.6);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-category {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--premium-gold);
  margin-bottom: 0.5rem;
}

.portfolio-title {
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.portfolio-details {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.portfolio-detail span {
  display: block;
  color: var(--pure-white);
  margin-top: 0.25rem;
}

/* === PROCESSO 7 PASSOS === */
.process-steps {
  max-width: 1000px;
  margin: 4rem auto 0;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(200, 162, 79, 0.1);
}

.process-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.process-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--premium-gold);
  line-height: 1;
  opacity: 0.5;
}

.process-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--pure-white);
}

.process-content p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

/* === DIFERENCIAIS BLACK + GOLD === */
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  margin-top: 4rem;
}

.diferencial-item {
  padding: 4rem 3rem;
  background: var(--deep-black);
  border: 1px solid rgba(200, 162, 79, 0.2);
  transition: var(--transition-smooth);
  text-align: center;
}

.diferencial-item:hover {
  background: rgba(200, 162, 79, 0.05);
  border-color: var(--premium-gold);
}

.diferencial-icon {
  font-size: 3rem;
  color: var(--premium-gold);
  margin-bottom: 2rem;
}

.diferencial-title {
  font-size: 1.375rem;
  margin-bottom: 1.5rem;
  color: var(--pure-white);
}

.diferencial-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

/* === FOOTER ULTRA PREMIUM === */
footer {
  background: var(--deep-black);
  border-top: 1px solid rgba(200, 162, 79, 0.15);
  padding: 4rem 3rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--premium-gold);
  margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  line-height: 2;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(200, 162, 79, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* === ANIMAÇÕES CINEMATOGRÁFICAS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 1s ease-out forwards;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition-smooth);
}

/* === RESPONSIVIDADE PREMIUM === */
@media (max-width: 1200px) {
  .nav-container {
    padding: 1.5rem 2rem;
  }
  
  section {
    padding: 6rem 2rem;
  }
}

@media (max-width: 968px) {
  .nav-menu {
    display: none;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .process-step {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .process-number {
    font-size: 3rem;
  }
  
  section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }
  
  .logo img {
    height: 40px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .card {
    padding: 1.5rem !important;
  }
  
  .card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .card-title {
    font-size: 1.125rem !important;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }
  
  .card-description {
    font-size: 0.875rem !important;
    line-height: 1.6;
  }
  
  .diferencial-item {
    padding: 3rem 2rem;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .grid {
    gap: 1.5rem;
  }
  
  /* Portfolio mobile fixes */
  .portfolio-overlay {
    padding: 1.5rem !important;
  }
  
  .portfolio-title {
    font-size: 1.25rem !important;
  }
  
  .portfolio-details {
    flex-direction: column;
    gap: 0.75rem !important;
  }
  
  .portfolio-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .portfolio-detail small {
    font-size: 0.75rem;
  }
  
  .portfolio-detail span {
    font-size: 0.875rem;
  }
  
  /* PreConstruction specific cards */
  .card[style*="grid-column"] {
    grid-column: span 1 !important;
  }
  
  section {
    padding: 3rem 1rem !important;
  }
  
  .section-container {
    padding: 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.125rem;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-subtitle,
  .hero-description {
    font-size: 0.875rem !important;
  }
  
  .card {
    padding: 1.25rem !important;
  }
  
  .card-icon {
    font-size: 1.75rem;
  }
  
  .card-title {
    font-size: 1rem !important;
  }
  
  .card-description {
    font-size: 0.8125rem !important;
  }
  
  .btn {
    font-size: 0.875rem !important;
    padding: 1rem 2rem !important;
  }
  
  .portfolio-overlay {
    padding: 1.25rem !important;
  }
  
  .portfolio-title {
    font-size: 1.125rem !important;
  }
  
  .portfolio-category {
    font-size: 0.75rem;
  }
  
  .portfolio-details {
    font-size: 0.75rem;
  }
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pure-white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  transition: var(--transition-fast);
}

.mobile-menu-toggle:hover {
  color: var(--premium-gold);
}

@media (max-width: 968px) {
  .mobile-menu-toggle {
    display: block !important;
    position: relative;
    z-index: 1002;
  }
  
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 280px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-left: 1px solid var(--premium-gold) !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 6rem 2rem 2rem !important;
    gap: 0 !important;
    margin: 0 !important;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5) !important;
    z-index: 1001 !important;
    overflow-y: auto !important;
    display: flex !important;
  }
  
  .nav-menu.active {
    right: 0 !important;
  }
  
  .nav-menu li {
    width: 100% !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  
  .nav-menu a {
    display: block !important;
    width: 100% !important;
    padding: 1.25rem 0 !important;
    font-size: 1rem !important;
    color: var(--pure-white) !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(200, 162, 79, 0.2) !important;
    transition: all 0.3s ease !important;
  }
  
  .nav-menu a:hover {
    color: var(--premium-gold) !important;
    border-bottom-color: var(--premium-gold) !important;
    padding-left: 0.5rem !important;
    background: rgba(200, 162, 79, 0.05) !important;
  }
  
  .nav-menu .btn {
    width: 100% !important;
    text-align: center !important;
    margin-top: 1rem !important;
    padding: 1rem 2rem !important;
    display: block !important;
  }
  
  /* Overlay escuro quando menu aberto */
  .mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    z-index: 1000 !important;
    pointer-events: none !important;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* === WHATSAPP FIXO === */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-fast);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  font-size: 2rem;
  color: var(--pure-white);
}
