/* ==========================================================================
    0. GLOBAL SETTINGS & RESET
    ========================================================================== */

/* Universal box-sizing and reset for consistency */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base HTML settings for smooth scrolling and fluid typography */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 18px;
}

/* ==========================================================================
    1. ROOT VARIABLES (CSS CUSTOM PROPERTIES)
    ========================================================================== */

:root {
  /* Main Color Scheme (Esquema de Cores Principal) */
  --bg-dark: #0f1014;
  --bg-light: #1f1f23;
  --cor-primaria: #0f0f11;
  --cor-secundaria: #E1B073;
  --accent: #E1B073;
  --accent-light: #F5C58C;
  --text-light: #f5f5f7;
  --text-dark: #2c1e0a;
  --cor-fundo-elemento: rgba(255, 255, 255, 0.05);
  --cor-texto: #f5f5f7;
  --border-color: rgba(255, 255, 255, 0.1);

  /* Gradients (Gradientes) */
  --gradient: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  --gradient-overlay: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.75) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(15, 16, 20, 0.65) 0%, rgba(15, 16, 20, 0.2) 60%);
  --gradient-text: linear-gradient(90deg, var(--text-light) 0%, #d1d1d3 100%);

  /* Shadows and Glows (Sombras e Brilhos) */
  --shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 4px 15px rgba(225, 176, 115, 0.35);
  --text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  --glow-shadow: 0 0 10px rgba(225, 176, 115, 0.5), 0 0 20px rgba(225, 176, 115, 0.3);
  --inner-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.15);
  --border-glow: 0 0 15px rgba(225, 176, 115, 0.5);

  /* Borders and Radii (Bordas e Raios) */
  --radius: 1rem;
  --radius-small: 0.90rem;
  --radius-full: 999px;
  --border: 1px solid var(--border-color);
  border-bottom: lch(lightness chroma hue);

  /* Typography (Tipografia) */
  --font-primary: 'Delius', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;

  /* Transitions and Animations (Transições e Animações) */
  --transition-fast: 0.2s ease-in-out;
  --transition: 0.35s cubic-bezier(.4, .2, .2, 1);
  --transition-slow: 0.6s ease;
  --transition-elastic: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  vector-effect: blur(3rem);
  cursor: unset;

  /* Layout */
  --max-width: 1000000000000px;
}

/* ==========================================================================
    2. BODY STYLES AND BASE LAYOUT (ESTILOS DO CORPO E LAYOUT BASE)
    ========================================================================== */
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  background-image: var(--gradient);
  color: var(--text-light);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
  text-shadow: var(--text-shadow);
  transition: ease-in-out 0.5s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Changed from center to allow natural flow */
  align-items: center;
  min-height: 100vh;
  animation: slideDownFade 0.9s cubic-bezier(.22, .61, .36, 1) both;
  will-change: transform, opacity;
  overflow-x: hidden;
  width: 100%;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Background pseudo-element for the aurora effect */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(circle at center, rgba(225, 176, 115, 0.1), transparent 50%);
  animation: aurora-effect 20s linear infinite;
  z-index: -1;
  will-change: transform;
}

/* Spotlight effect that follows the mouse */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.04) 0%, transparent 20%);
  z-index: -1;
  transition: background 0.1s linear;
}

/* Main container for content, centered with a specific width */
.container {
  width: 60.9%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
  animation: slideDownFade 0.9s cubic-bezier(.22, .61, .36, 1) both;
  transition: transform var(--transition), opacity var(--transition);
  will-change: transform, opacity;
}

/* ==========================================================================
    3. KEYFRAME ANIMATIONS (ANIMAÇÕES)
    ========================================================================== */

/* Animation for a gentle fade-in from the top with a subtle bounce */
@keyframes slideDownFade {
  0% { transform: translateY(-50px); opacity: 0; }
  60% { transform: translateY(10px); opacity: 0.8; }
  80% { transform: translateY(-5px); }
  100% { transform: translateY(0); opacity: 1; }
}

/* Animation for sliding in from the top */
@keyframes slideTopFade {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Continuous rotation animation for background effects */
@keyframes aurora-effect {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Animation for fading in from the bottom */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shine sweep animation for a glowing effect */
@keyframes shine-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ==========================================================================
   4. 'NOSSO PROCESSO' SECTION (SEÇÃO NOSSO PROCESSO)
   ========================================================================== */

#etapas {
  background: var(--bg-dark); /* Solid clean background */
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Animated background waves pseudo-element - DISABLED */
#etapas::before {
  display: none;
}

/* Floating particle effect pseudo-element - DISABLED */
#etapas::after {
  display: none;
}

/* Keyframe for the background pulse effect */
@keyframes backgroundPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Keyframe for the floating particles effect */
@keyframes particlesFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
  }
}

/* Main container with a z-index to stay above the background effects */
#etapas > * {
  position: relative;
  z-index: 2;
}

/* Title with a premium gradient and glow effect */
#etapas h2 {
  background: linear-gradient(135deg,
      #E1B073 0%,
      #F5C58C 25%,
      #E1B073 50%,
      #F5C58C 75%,
      #E1B073 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: titleGlow 4s infinite ease-in-out;
  filter: drop-shadow(0 0 30px rgba(225, 176, 115, 0.5));
  line-height: 1.1;
  position: relative;
}

/* Pseudo-element for the title's glow effect */
#etapas h2::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg,
      rgba(225, 176, 115, 0.8),
      rgba(245, 197, 140, 0.6));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(2px);
  z-index: -1;
}

/* Keyframe for the title's pulsating glow animation */
@keyframes titleGlow {
  0%, 100% {
    filter: drop-shadow(0 0 30px rgba(225, 176, 115, 0.5));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 50px rgba(225, 176, 115, 0.8));
    transform: scale(1.02);
  }
}

/* 2x2 Grid with 3D perspective for the steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5rem 6rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* Clean Minimalist cards for each step */
.step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
  overflow: hidden;
  /* Removed heavy glassmorphism and shadows */
}

/* Aurora boreal effect pseudo-element on the cards - DISABLED */
.step::before {
  display: none;
}

/* Animated border pseudo-element for the cards - DISABLED */
.step::after {
  display: none;
}

/* Hover effects for the step cards - Simplified */
.step:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.step:hover::before {
  display: none;
}

.step:hover::after {
  display: none;
}

/* Holographic icon effect - Simplified */
.step .icon {
  color: var(--accent);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
  transition: all 0.3s ease;
}

.step:hover .icon {
  transform: scale(1.1);
  color: var(--accent-light);
}

/* Premium typography for step titles - Simplified */
.step h3 {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.step:hover h3 {
  color: #fff;
}

/* Elegant description for step cards - Simplified */
.step p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.step:hover p {
  opacity: 1;
}

/* Neon arrow effects for the grid layout */
.steps-grid .step:nth-child(1)::after {
  content: "→";
  background: linear-gradient(135deg, #E1B073, #F5C58C);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3.5rem;
  font-weight: 300;
  position: absolute;
  top: 50%;
  right: -3rem;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  animation: setaPulseNeon 3s infinite ease-in-out;
  filter: drop-shadow(0 0 20px rgba(225, 176, 115, 0.8));
  text-shadow:
    0 0 10px rgba(225, 176, 115, 1),
    0 0 20px rgba(225, 176, 115, 0.8),
    0 0 30px rgba(225, 176, 115, 0.6);
}

.steps-grid .step:nth-child(2)::after {
  content: "↓";
  background: linear-gradient(135deg, #E1B073, #F5C58C);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3.5rem;
  font-weight: 300;
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  animation: setaPulseVerticalNeon 3s infinite ease-in-out;
  filter: drop-shadow(0 0 20px rgba(225, 176, 115, 0.8));
  text-shadow:
    0 0 10px rgba(225, 176, 115, 1),
    0 0 20px rgba(225, 176, 115, 0.8),
    0 0 30px rgba(225, 176, 115, 0.6);
}

.steps-grid .step:nth-child(4)::after {
  content: "←";
  background: linear-gradient(135deg, #E1B073, #F5C58C);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3.5rem;
  font-weight: 300;
  position: absolute;
  top: 50%;
  left: -3rem;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  animation: setaPulseReverseNeon 3s infinite ease-in-out;
  filter: drop-shadow(0 0 20px rgba(225, 176, 115, 0.8));
  text-shadow:
    0 0 10px rgba(225, 176, 115, 1),
    0 0 20px rgba(225, 176, 115, 0.8),
    0 0 30px rgba(225, 176, 115, 0.6);
}

/* Keyframes for the horizontal neon arrow pulse animation */
@keyframes setaPulseNeon {
  0%, 100% {
    transform: translateY(-50%) translateX(0) scale(1);
    opacity: 0.8;
    filter: drop-shadow(0 0 20px rgba(225, 176, 115, 0.8));
  }
  50% {
    transform: translateY(-50%) translateX(10px) scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 0 30px rgba(225, 176, 115, 1));
  }
}

/* Keyframes for the vertical neon arrow pulse animation */
@keyframes setaPulseVerticalNeon {
  0%, 100% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 0.8;
    filter: drop-shadow(0 0 20px rgba(225, 176, 115, 0.8));
  }
  50% {
    transform: translateX(-50%) translateY(10px) scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 0 30px rgba(225, 176, 115, 1));
  }
}

/* Keyframes for the reverse horizontal neon arrow pulse animation */
@keyframes setaPulseReverseNeon {
  0%, 100% {
    transform: translateY(-50%) translateX(0) scale(1);
    opacity: 0.8;
    filter: drop-shadow(0 0 20px rgba(225, 176, 115, 0.8));
  }
  50% {
    transform: translateY(-50%) translateX(-10px) scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 0 30px rgba(225, 176, 115, 1));
  }
}

/* Premium numbering with a gradient background */
.step {
  counter-increment: step-counter;
}

.steps-grid {
  counter-reset: step-counter;
}

.step .step-number {
  content: counter(step-counter);
  position: absolute;
  top: -20px;
  right: -20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #E1B073, #F5C58C, #E1B073);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-dark);
  box-shadow:
    0 6px 20px rgba(225, 176, 115, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 5;
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: numberPulse 2s infinite ease-in-out;
}

/* Keyframe for the number pulse animation */
@keyframes numberPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Connecting line between the cards */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 25%;
  right: 25%;
  height: 2px;
  background: linear-gradient(90deg,
      transparent,
      rgba(225, 176, 115, 0.3),
      rgba(225, 176, 115, 0.6),
      rgba(225, 176, 115, 0.3),
      transparent);
  z-index: 1;
  animation: lineGlow 3s infinite ease-in-out;
}

/* Keyframe for the line glow animation */
@keyframes lineGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

/* Mobile Responsiveness for the 'steps' section */
@media (max-width: 768px) {
  #etapas {
    padding: 8rem 1.5rem;
    min-height: auto;
  }

  #etapas h2 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    margin-bottom: 4rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 4rem;
    max-width: 450px;
  }

  .step {
    padding: 3.5rem 2rem 3rem;
  }

  /* Remove directional arrows on mobile */
  .steps-grid .step:nth-child(1)::after,
  .steps-grid .step:nth-child(2)::after,
  .steps-grid .step:nth-child(4)::after {
    display: none;
  }

  .steps-grid::before {
    display: none;
  }

  /* Add vertical arrows for mobile layout */
  .steps-grid .step:not(:last-child)::before {
    content: "↓";
    background: linear-gradient(135deg, #E1B073, #F5C58C);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    animation: setaPulseVerticalNeon 3s infinite ease-in-out;
    filter: drop-shadow(0 0 20px rgba(225, 176, 115, 0.8));
  }
}

/* Advanced micro-interactions for a better UX */
.step:active {
  transform: translateY(-15px) scale(0.98) rotateX(5deg);
}

/* Focus states for accessibility */
.step:focus-visible {
  outline: 3px solid #E1B073;
  outline-offset: 6px;
  box-shadow:
    0 0 0 6px rgba(225, 176, 115, 0.3),
    0 30px 60px rgba(225, 176, 115, 0.4);
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
    5. HEADER (CABEÇALHO)
    ========================================================================== */

/* Variáveis CSS */
:root {
  --text-light: #f0f0f0;
  --accent-light: #e1b073;
  --transition: 0.3s ease-in-out;
  --transition-slow: 0.6s ease-in-out;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --gradient-accent: linear-gradient(to right, #e1b073, #ffcc80);
}

/* Estilos do Cabeçalho e Container */
.site-header {
  background-color: transparent;
  backdrop-filter: blur(0px);
  color: var(--text-light);
  padding: 1.5rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
}

.site-header.scrolled {
  background-color: rgba(15, 16, 20, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 120rem;
  margin: 0 auto;
}

/* Estilos da Logo com a imagem e o texto */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-light);
  font-size: 1.25rem;
  font-weight: 600;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.02);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

.logo:hover img {
  box-shadow: 0 0 15px rgba(225, 176, 115, 0.5);
}

.logo-text {
  font-family: 'Delius', cursive;
  font-size: 1.5rem;
}

/* Estilos do Menu de Navegação - VERSÃO DESKTOP (PADRÃO) */
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.5rem;
  position: static;
  transform: translateX(0);
}

.nav-list a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition);
  outline: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--accent-light);
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-accent);
  transition: all var(--transition-slow);
  transform: translateX(-50%);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 100%;
}

/* Estilos do Hambúrguer - PADRÃO (ESCONDIDO) */
.hamburger {
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 1002;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease;
}

.hamburger:hover span {
  background-color: var(--accent-light);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Responsividade do Header --- */
@media (max-width: 1000px) {
  .site-header .container {
    padding: 0 1rem;
  }
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    max-width: 300px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background-color: rgba(15, 16, 20, 0.95);
    backdrop-filter: blur(15px);
    transition: right var(--transition);
    z-index: 1001;
  }
  .nav-list.active {
    right: 0;
    display: flex;
  }
  .nav-list a {
    font-size: 1.2rem;
  }
  .nav-list a::after {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
@media (max-width: 600px) {
  .site-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ==========================================================================
    6. TYPOGRAPHY (TIPOGRAFIA)
    ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 1.00rem;
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.9;
  color: var(--text-light);
  text-wrap: balance;
  letter-spacing: 4px;
  text-align: center;
  justify-content: center;
}


h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
p {
  margin-top: 0;
  margin-bottom: 1rem;
  /* Centraliza o parágrafo horizontalmente */
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-primary);
  /* Define uma largura máxima para a legibilidade */
  max-width: 65ch;
  color: rgba(245, 245, 247, 0.85);
  /* Centraliza o texto dentro do parágrafo */
  text-align: center;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  color: var(--text-light);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}



a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast), filter var(--transition-fast);
}

a:hover, a:focus-visible {
  text-decoration: underline;
  filter: brightness(1.2);
}

/* ==========================================================================
    7. BUTTONS (BOTÕES)
    ========================================================================== */

.btn-primary,
.btn-secondary,
.btn-overlay {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-image: var(--gradient-accent);
  background-color: var(--accent);
  color: var(--text-dark);
  box-shadow: var(--shadow-accent);
  animation: pulse 2.5s infinite;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-25deg) translateX(-250%);
  transition: none;
}
.btn-primary:hover::before {
  transform: skewX(-25deg) translateX(250%);
  transition: transform 0.8s ease-in-out;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-4px) scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 10px 35px rgba(225, 176, 115, 0.6);
  outline: none;
}

.btn-primary:active {
  transform: translateY(0) scale(1);
  filter: brightness(0.9);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--accent);
  color: var(--text-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
  outline: none;
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-overlay {
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-overlay:hover,
.btn-overlay:focus-visible {
  filter: brightness(1.15);
  transform: scale(1.05);
  outline: none;
}

/* ==========================================================================
    8. HERO SECTION (SEÇÃO HERO)
    ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  margin-top: 5rem;
}

.hero-wrapper {
  position: relative;
  width: 100%;
  max-width: 120rem;
  padding: 2px;

  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition-slow);
}
.hero-wrapper:hover {
  box-shadow: var(--shadow), 0 0 35px rgba(225, 176, 115, 0.3);
}

.hero-wrapper img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  object-fit: cover;
  filter: brightness(0.75);
  transition: filter var(--transition), transform var(--transition-slow);
}

.hero-wrapper::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.hero-wrapper:hover img {
  transform: scale(1.05);
  filter: brightness(0.65);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 4rem;
  gap: 1rem;
  color: var(--text-light);
  max-width: 60%;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  z-index: 1;
  text-align: left;
}

.hero-text > * {
  text-align: left;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(.22, .61, .36, 1) forwards;
}

.hero-text h1 {
  animation-delay: 0.3s;
}
.hero-text p {
  animation-delay: 0.5s;
}
.hero-text .btn-primary {
  animation-delay: 0.7s;
}

/* ==========================================================================
    9. ABOUT SECTION (SEÇÃO SOBRE)
    ========================================================================== */

.section-about {
  padding: 5rem 0;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: transform var(--transition-elastic), box-shadow var(--transition);
  position: relative;
  z-index: 2;
}

.about-image:hover img {
  transform: scale(1.03) rotate(-2deg);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  z-index: 1;
  transition: transform var(--transition-elastic);
}
.about-image:hover::after {
  transform: translate(15px, 15px) rotate(2deg);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.about-text > * {
  text-align: left;
}

/* ==========================================================================
    10. PROJECTS SECTION (SEÇÃO PROJETOS)
    ========================================================================== */

.section-projects {
  background: transparent;
  padding: 8rem 2rem;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-projects::before,
.section-projects::after {
  display: none;
}

.section-projects > * {
  position: relative;
  z-index: 2;
}

.section-projects h2 {
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.section-projects h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #E1B073, #F59E0B);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(225, 176, 115, 0.5);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.project-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.5),
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform-style: preserve-3d;
}

.project-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
  filter: brightness(0.8) saturate(0.9);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.9) 100%);
  pointer-events: none;
  transition: all 0.4s ease;
}

.project-card .overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 2rem 1.5rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  pointer-events: none;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
  text-align: left;
  transform: translateY(10%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card .overlay-text > * {
  text-align: left;
}

.project-card .overlay-text h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
}

.project-card .overlay-text p {
  margin: 0;
  font-size: 1rem;
  opacity: 0;
  transition: all 0.4s ease;
  color: #ffffff;
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.project-card .overlay-text .btn-overlay {
  pointer-events: auto;
  margin-top: 1.5rem;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
  background: linear-gradient(135deg, #E1B073, #F59E0B);
  color: #0f0a08;
  padding: 0.8rem 1.5rem;
  border-radius: 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(225, 176, 115, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-card .overlay-text .btn-overlay:hover {
  background: linear-gradient(135deg, #F59E0B, #FCD34D);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 176, 115, 0.6);
}

/* Minimalist Hover effects for the project cards */
.project-card:hover,
.project-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(225, 176, 115, 0.5);
  background: rgba(0, 0, 0, 0.8);
  /* Minimalist: Removed heavy box-shadow and inset shadow */
}

.project-card:hover img {
  filter: brightness(1);
  transform: scale(1.02);
}

.project-card:hover .overlay {
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.8) 100%);
}

.project-card:hover .overlay-text {
  transform: translateY(0);
}

.project-card:hover .overlay-text p {
  opacity: 0.9;
}

.project-card:hover .overlay-text .btn-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Minimalist numbering on project cards */
.project-card {
  counter-increment: project-counter;
}

.projects-grid {
  counter-reset: project-counter;
}

.project-card::after {
  content: counter(project-counter, decimal-leading-zero);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 5;
  transition: all 0.3s ease;
  font-family: var(--font-secondary);
  /* Minimalist: Removed background, border, shadow, backdrop-filter */
}

.project-card:hover::after {
  color: var(--text-light);
  transform: scale(1.1);
  /* Minimalist: Removed heavy gradients and shadows */
}

/* Responsiveness for the project grid */
@media (max-width: 768px) {
  .section-projects {
    padding: 6rem 1.5rem;
  }

  .section-projects h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 3rem;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .project-card {
    border-radius: 1rem;
  }

  .project-card .overlay-text {
    padding: 1.5rem 1rem;
  }

  .project-card .overlay-text h3 {
    font-size: 1.1rem;
  }

  .project-card .overlay-text p {
    font-size: 0.85rem;
  }

  .project-card .overlay-text .btn-overlay {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    gap: 1rem;
    padding: 0 0.5rem;
    grid-template-columns: 1fr;
  }

  .project-card .overlay-text {
    padding: 1rem 0.8rem;
  }

  .project-card .overlay-text h3 {
    font-size: 1rem;
  }

  .project-card .overlay-text p {
    font-size: 0.8rem;
  }
}

/* Micro-interactions for better user feedback */
.project-card:active {
  transform: translateY(-5px) scale(0.98);
}

/* Focus states for accessibility */
.project-card:focus-visible {
  outline: 2px solid #E1B073;
  outline-offset: 4px;
  box-shadow:
    0 0 0 4px rgba(225, 176, 115, 0.3),
    0 25px 50px rgba(0, 0, 0, 0.6);
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .project-card:hover {
    transform: translateY(-5px);
  }
}


/* ==========================================================================
    11. QUOTE SECTION (FORM) (SEÇÃO ORÇAMENTO)
    ========================================================================== */

/* ============ SECTION QUOTE ============ */
:root {
  /* Cores e estilos base */
  --cor-fundo-site: #0f101480;
  --cor-fundo-elemento: #1a1a1a;
  --border-color: #333;
  --radius: 12px;
  --radius-small: 8px;
  --text-light: #f5f5f7;
  --text-label: rgba(245, 245, 247, 0.7);
  --accent: #e1b073;
  --font-primary: 'Delius', sans-serif;
  --transition-fast: 0.2s ease-in-out;
}

/* Base styles for better typography on all devices */
body {
  font-size: 16px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilização da seção principal */
.section-quote {
  /* Define o fundo como preto, cobrindo toda a largura da tela */
  background: var(--cor-fundo-site, #000);
  /* Adiciona um padding generoso para criar um espaço confortável e imponente */
  padding: 10rem 0;
  /* Minimalist: Removed inset shadow */
}

/* Estilização do contêiner interno */
.split-container {
  /* Usa Flexbox para um alinhamento flexível e centralizado */
  display: flex;
  /* Permite que os itens quebrem a linha em telas menores */
  flex-wrap: wrap;
  /* Garante que o contêiner ocupe todo o espaço disponível verticalmente */
  align-items: center;
  /* Centraliza os itens horizontalmente */
  justify-content: center;
  /* Cria um espaçamento entre os itens */
  gap: 4rem;
  /* Define a largura máxima para o conteúdo não se esticar demais */
  max-width: 1400px;
  /* Centraliza o contêiner na página */
  margin: 0 auto;
  /* Adiciona um padding interno para evitar que o conteúdo cole nas bordas da tela */
  padding: 0 4rem;
}

/* Estilização do texto à esquerda */
.split-container .text-content {
  /* Define a largura do contêiner de texto */
  flex-basis: 50%;
  /* Alinha o texto para a esquerda */
  text-align: left;
}

.split-container h2 {
  /* Estilo para o título */
  font-size: 3.5rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

.split-container p {
  /* Estilo para a descrição */
  font-size: 1.2rem;
  color: #ccc;
  max-width: 500px;
}

/* Estilização do formulário à direita */
.split-container .form-container {
  /* Define a largura do contêiner do formulário */
  flex-basis: 40%;
  /* Garante que o formulário não seja menor que 350px de largura */
  min-width: 350px;
  /* Adiciona padding interno para o formulário */
  padding: 2.5rem;
  /* Define o fundo como um preto mais claro, para contraste */
  background-color: rgba(255, 255, 255, 0.03);
  /* Adiciona borda arredondada */
  border-radius: 12px;
  /* Minimalist: Removed heavy shadow and simplified border */
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Adiciona um efeito de transição suave */
  transition: all 0.3s ease;
}

.split-container .form-container:hover {
  /* Efeito de destaque quando o mouse passa por cima */
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.split-container .form-container h3 {
  /* Estilo para o título do formulário */
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Estilização dos campos do formulário */
.split-container .form-container .form-group {
  margin-bottom: 1.5rem;
}

.split-container .form-container .form-control {
  width: 100%;
  padding: 1rem;
  background-color: rgba(50, 50, 50, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.split-container .form-container .form-control:focus {
  border-color: #f7a61d;
}

/* Estilização do botão */
.split-container .form-container .btn-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--cor-destaque, #f7a61d);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.split-container .form-container .btn-submit:hover {
  background-color: #e5940c;
  transform: translateY(-2px);
}

/* Media Queries para telas menores */
@media (max-width: 992px) {
  .split-container {
    flex-direction: column;
    text-align: center;
  }

  .split-container .text-content,
  .split-container .form-container {
    flex-basis: 100%;
  }

  .split-container .text-content {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .section-quote {
    padding: 6rem 0;
  }

  .split-container h2 {
    font-size: 2.5rem;
  }
}

.quote-text-left {
  flex: 1 1 400px;
  text-align: left;
  padding-right: 2rem;
}

.quote-text-left h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--text-light);
}

.quote-text-left p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.5;
  color: var(--text-label);
  max-width: 500px;
}

.quote-form {
  flex: 1 1 400px;
  padding: 2.5rem 2rem;
  background: var(--cor-fundo-elemento);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  max-width: 500px;
}

.quote-form h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: var(--text-light);
  text-align: left;
}

.quote-form-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  position: relative;
  margin-bottom: 1rem;
}

/* Floating labels para melhor UX */
.quote-form label {
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-label);
  transition: all var(--transition-fast);
  pointer-events: none;
  background: transparent;
  padding: 0 5px;
}

.quote-form input:focus + label,
.quote-form input:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--cor-fundo-elemento);
}

.quote-form input {
  padding: 1.2rem;
  border-radius: var(--radius-small);
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  font-family: var(--font-primary);
  font-size: 1rem;
  outline: none;
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.quote-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 176, 115, 0.3);
}

.quote-form .btn-primary {
  display: block;
  background: linear-gradient(135deg, #e1b073 0%, #f7d2a5 100%);
  color: #1a1a1a;
  border: none;
  border-radius: var(--radius-small);
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.quote-form .btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.quote-form .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============ MEDIA QUERIES (responsividade) ============ */
@media (max-width: 992px) {
  .split-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .quote-text-left {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  .quote-text-left h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .section-quote {
    padding: 3rem 0;
  }
  .quote-form {
    padding: 2rem 1.5rem;
  }
  .quote-form h2 {
    font-size: 1.5rem;
  }
  .quote-form input {
    padding: 1rem;
  }
  .quote-form .btn-primary {
    padding: 0.8rem;
  }
}

/* ==========================================================================
    12. FOOTER (RODAPÉ)
    ========================================================================== */

.section-contact {
  padding: 4rem 0;
  text-align: center;
}

.site-footer {
  width: 100%;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
  background: rgba(15, 16, 20, 0.5);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-light);
}
.logo img {
  transition: transform var(--transition-elastic);
}
.logo span {
  font-weight: 600;
  font-size: 1.1rem;
  font-family: var(--font-primary);
}
.logo:hover img {
  transform: rotate(-15deg) scale(1.1);
}

.footer-logo img {
  display: block;
  opacity: 0.8;
  transition: opacity var(--transition-fast), transform var(--transition);
}
.footer-logo:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
  text-align: center;
  transition: opacity var(--transition-fast);
}
.site-footer p:hover {
  opacity: 1;
}

/* ==========================================================================
    13. UTILITY CLASSES & ACCESSIBILITY (CLASSES UTILITÁRIAS E ACESSIBILIDADE)
    ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-center {
  text-align: center;
}
.text-center > * {
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Custom scrollbar styling for a unique visual experience */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 10px;
  border: 3px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-light);
}

/* ==========================================================================
    14. MEDIA QUERIES (RESPONSIVIDADE)
    ========================================================================== */

@media (max-width: 1000px) {
  .hero-text {
    max-width: 80%;
    padding: 2rem;
    align-items: center;
    text-align: center;
  }
  .hero-text > * {
    text-align: center;
  }
  .split {
    flex-direction: column;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.75rem;
  }

  .container {
    width: 95%;
  }

  .hero-text {
    max-width: 100%;
    padding: 1.5rem;
  }

  .grid-two {
    gap: 2rem;
  }

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
}
/* ==========================================================================
    15. FORM RESPONSE MODAL (MODAL DE RESPOSTA DO FORMULÁRIO)
    ========================================================================== */

/* Full-screen overlay for the form response modal */
#response {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

/* Visibility state for the response modal */
#response.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Content container for the response modal */
.response-content {
  background: var(--bg-light);
  padding: 2rem 3rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-elastic), opacity var(--transition-fast);
  opacity: 0;
}

/* Animation for the modal content when it becomes visible */
#response.visible .response-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.response-content p {
  margin-bottom: 1.5rem;
}

/* Utility class for a fade-in animation */
.animate {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.5s;
}

/* ==========================================================================
    16. NEW SECTION: KEY FEATURES (NOVA SEÇÃO: PRINCIPAIS RECURSOS)
    ========================================================================== */

.section-features {
  padding: 8rem 2rem;
  background: transparent;
  text-align: center;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
  margin-top: 4rem;
}

.feature-card {
  background: var(--cor-fundo-elemento);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(225, 176, 115, 0.1) 60%, transparent 80%);
  transform: rotate(45deg) scale(2);
  transition: transform 0.6s ease;
  opacity: 0;
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(225, 176, 115, 0.3);
}

.feature-card:hover::before {
  transform: rotate(45deg) scale(1.5);
  opacity: 1;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(225, 176, 115, 0.5));
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: rotateY(15deg) scale(1.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  transition: color 0.4s ease;
}

.feature-card:hover h3 {
  color: var(--accent-light);
}

.feature-card p {
  color: rgba(245, 245, 247, 0.8);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1rem;
}

/* Mobile responsive for features section */
@media (max-width: 768px) {
  .section-features {
    padding: 6rem 1rem;
  }
  .features-grid {
    gap: 2.5rem;
  }
}

/* ==========================================================================
    17. NEW SECTION: TESTIMONIALS (NOVA SEÇÃO: DEPOIMENTOS)
    ========================================================================== */

.section-testimonials {
  padding: 8rem 2rem;
  background: var(--bg-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonials-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  min-width: 85%;
  scroll-snap-align: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  /* Minimalist: Removed heavy shadow */
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-family: var(--font-primary);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  margin-bottom: 1rem;
  /* Minimalist: Removed heavy shadow */
}

.testimonial-author h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-light);
}

.testimonial-author p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .testimonial-card {
    min-width: 45%;
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    min-width: 30%;
  }
}

/* ==========================================================================
    18. NEW UTILITY CLASSES AND ACCESSIBILITY ENHANCEMENTS
    ========================================================================== */

/* A helper class to hide content visually but keep it accessible for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* A class to define a fluid gap, useful for layouts */
.gap-fluid {
  gap: clamp(1rem, 5vw, 3rem);
}

/* A class for full-width elements inside containers */
.full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Animation for the fadeInUp effect */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
    19. MOBILE POLISH & RESPONSIVENESS IMPROVEMENTS (MELHORIAS FINAIS)
    ========================================================================== */

/* Ajustes Globais para Mobile */
@media (max-width: 768px) {
  :root {
    --radius: 0.75rem; /* Bordas um pouco menos arredondadas em mobile para ganhar espaço */
  }

  /* Ajuste de Espaçamentos Gerais */
  .section-about,
  .section-projects,
  .section-quote,
  .section-contact,
  #etapas {
    padding: 4rem 1.5rem !important; /* Força padding menor em mobile */
  }

  /* Container mais largo em mobile */
  .container {
    width: 90% !important;
    max-width: 100%;
    padding: 0;
  }

  /* Hero Section Mobile */
  .hero {
    min-height: 100vh; /* Ocupa toda a tela */
    margin-top: 0; /* Remove margem superior se houver */
    padding: 0;
    align-items: center;
  }

  .hero-wrapper {
    border-radius: 0; /* Remove bordas arredondadas no hero mobile para imersão */
    height: 100vh;
    box-shadow: none;
  }

  .hero-wrapper img {
    height: 100%;
    object-position: center;
  }

  .hero-text {
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
    text-align: center;
    bottom: 10%; /* Posiciona texto mais abaixo */
    justify-content: flex-end;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%); /* Gradiente para leitura */
    height: 100%;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Botões Mobile - Touch Friendly */
  .btn-primary, .btn-secondary {
    padding: 1rem 2rem; /* Área de toque maior */
    width: 100%; /* Botões full width em mobile */
    display: block;
    margin-bottom: 1rem;
  }

  /* Menu Mobile Refinado */
  .nav-list {
    width: 100%; /* Menu ocupa largura total */
    max-width: 100%;
    background-color: rgba(15, 16, 20, 0.98); /* Fundo mais sólido */
    padding-top: 5rem; /* Espaço para o header */
  }
  
  .nav-list a {
    font-size: 1.5rem; /* Links maiores */
    padding: 1rem;
    display: block;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  /* Hambúrguer mais visível */
  .hamburger {
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
  }

  /* Seção Sobre */
  .grid-two {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-image {
    order: -1; /* Imagem primeiro */
    margin-bottom: 1rem;
  }

  /* Projetos */
  .projects-grid {
    grid-template-columns: 1fr; /* Uma coluna */
    gap: 2rem;
  }

  .project-card {
    margin-bottom: 1rem;
  }
  
  /* Orçamento / Formulário */
  .split-container {
    padding: 0 1rem;
  }
  
  .quote-form {
    padding: 2rem 1rem;
    width: 100%;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-logo {
    margin-bottom: 1rem;
  }
}

/* Ajustes para telas muito pequenas (iPhone SE, etc) */
@media (max-width: 380px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .btn-primary { font-size: 0.9rem; }
}

/* ==========================================================================
    20. FINAL SAFETY NET (REDE DE SEGURANÇA FINAL)
    ========================================================================== */

/* Garante que NENHUMA imagem ou mídia ultrapasse a largura da tela */
img, video, iframe, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* Previne vazamento de texto horizontal */
p, h1, h2, h3, h4, h5, h6, span, a, li, label {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Garante que o corpo não tenha scroll horizontal indesejado */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Ajuste fino para inputs em mobile para evitar zoom automático no iOS */
@media (max-width: 768px) {
  input, textarea, select {
    font-size: 16px !important; /* Tamanho mínimo para evitar zoom no iOS */
  }
}

/* ==========================================================================
    21. DEEP MOBILE POLISH (CORREÇÕES PROFUNDAS PARA MOBILE)
    ========================================================================== */

@media (max-width: 768px) {
  /* --- CORREÇÃO DE PROJETOS (Hover não funciona bem em touch) --- */
  .project-card .overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 100%);
    opacity: 1; /* Sempre visível */
  }

  .project-card .overlay-text {
    transform: translateY(0); /* Texto sempre na posição final */
  }

  .project-card .overlay-text p {
    opacity: 1; /* Descrição sempre visível */
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limita a 3 linhas para não ocupar muito espaço */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .project-card .overlay-text .btn-overlay {
    opacity: 1; /* Botão sempre visível */
    transform: translateY(0);
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    width: auto; /* Não ocupa largura total */
  }
  
  /* Remove efeitos de hover que podem "bugar" ou travar no mobile */
  .project-card:hover {
    transform: none; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }
  .project-card:hover img {
    transform: none;
  }

  /* --- CORREÇÃO DA SEÇÃO DE ETAPAS (STEPS) --- */
  .steps-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    padding: 0;
  }

  .step {
    width: 100%;
    margin: 0;
    transform: none !important; /* Remove transforms que podem causar overflow */
  }

  /* Remove setas e linhas decorativas que causam scroll horizontal */
  .steps-grid::before,
  .steps-grid::after,
  .step::before,
  .step::after,
  .steps-grid .step:nth-child(2)::after,
  .steps-grid .step:nth-child(4)::after {
    display: none !important;
    content: none !important;
  }

  /* --- CORREÇÃO GERAL DE ESPAÇAMENTOS --- */
  section {
    padding: 3rem 1rem !important;
    overflow: hidden; /* Garante que nada vaze das seções */
  }

  h1 {
    font-size: 2rem !important; /* Tamanho seguro */
  }
  
  h2 {
    font-size: 1.8rem !important;
  }

  /* --- PERFORMANCE OPTIMIZATION (MOBILE) --- */
  
  /* Remove text shadows to reduce painting cost */
  * {
    text-shadow: none !important; 
  }

  /* Disable heavy background animations */
  body::before, 
  body::after, 
  #etapas::before {
    animation: none !important;
    display: none !important;
  }

  /* Disable glassmorphism (backdrop-filter) - biggest performance killer */
  .project-card, 
  .step, 
  .header-container,
  .response-content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(15, 16, 20, 0.98) !important; /* Opaque fallback */
  }

  /* Simplify shadows */
  .project-card, .step {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
  }
}
