/* ============================================
   XPACE V4 - Official Brand Colors
   Red #B80C0E + Gold #E7AE02 + Dark Green accent
   Modern OKLCH colors with hex fallbacks
   ============================================ */

/* ============================================
   Self-hosted Google Fonts (GDPR compliant)
   No external requests = No cookie banner needed
   ============================================ */

/* Bebas Neue - Display font */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/bebas-neue-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/bebas-neue-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit - Body font (variable font, weights 300-700) */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand Colors - Hex fallbacks first, OKLCH in @supports */
  --red: #B80C0E;
  --red-dim: #8a0a0b;
  --red-glow: rgba(184, 12, 14, 0.3);

  --gold: #E7AE02;
  --gold-dim: #c49502;
  --gold-glow: rgba(231, 174, 2, 0.3);

  --green: #1B5E20;
  --green-dim: #145218;

  /* Backgrounds */
  --obsidian: #0a0a0a;
  --charcoal: #141414;
  --slate: #1e1e1e;
  --stone: #2a2a2a;

  /* Text */
  --cream: #f5f5f5;
  --mist: #b0b0b0;
  --fog: #707070;

  /* Modern CSS features */
  interpolate-size: allow-keywords;

  /* Typography */
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes - Fluid */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 4rem);

  /* Spacing */
  --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  --space-2xl: clamp(3rem, 2rem + 5vw, 6rem);
  --space-3xl: clamp(4rem, 3rem + 6vw, 8rem);

  /* Layout */
  --container-max: 1100px;
  --container-padding: var(--space-md);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  /* Borders */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  min-height: calc(100% + env(safe-area-inset-top));
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--cream);
  background-color: var(--obsidian);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}

.highlight {
  background: linear-gradient(135deg, var(--red) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-xs) var(--space-md);
  padding-top: max(var(--space-xs), env(safe-area-inset-top));
  /* Hidden by default - reveals on scroll */
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  pointer-events: auto;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.logo-link:hover { opacity: 0.85; }

.header-logo {
  height: 44px;
  width: auto;
}

.site-header.scrolled {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl) var(--space-md) var(--space-xl);
  padding-top: max(var(--space-xl), calc(var(--space-xl) + env(safe-area-inset-top)));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kenburns 25s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.08) translate(-1.5%, -1%);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.6) 0%,
    rgba(10, 10, 10, 0.4) 40%,
    rgba(10, 10, 10, 0.85) 100%
  );
}

/* Fog Effect */
.hero-fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.fog-layer {
  position: absolute;
  width: 150%;
  height: 120%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.35;
  /* Fade edges to transparent */
  mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 70%);
}

.fog-1 {
  top: -10%;
  left: -25%;
  animation: fog-drift-1 25s ease-in-out infinite alternate;
}

.fog-2 {
  bottom: -10%;
  right: -25%;
  animation: fog-drift-2 30s ease-in-out infinite alternate-reverse;
}

@keyframes fog-drift-1 {
  0% {
    transform: translateX(0) scale(1);
  }
  100% {
    transform: translateX(5%) scale(1.05);
  }
}

@keyframes fog-drift-2 {
  0% {
    transform: translateX(0) scale(1);
  }
  100% {
    transform: translateX(-5%) scale(1.03);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fog-layer {
    animation: none;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 650px;
  gap: var(--space-lg);
}

.logo-container {
  filter: drop-shadow(0 0 30px var(--red-glow)) drop-shadow(0 0 60px var(--gold-glow));
}

.hero-logo {
  width: clamp(120px, 30vw, 180px);
  height: auto;
}

.hero-title {
  font-size: var(--text-3xl);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--mist);
  max-width: 45ch;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--charcoal);
  border: 1px solid var(--slate);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--mist);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* === Email Form === */
.email-form {
  width: 100%;
  max-width: 550px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.email-form input {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--cream);
  background: var(--charcoal);
  border: 1px solid var(--slate);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}

.email-form input::placeholder { color: var(--fog); }

.email-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow), 0 0 20px var(--red-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--obsidian);
  background: linear-gradient(135deg, var(--red) 0%, var(--gold) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--duration-fast), box-shadow var(--duration-base);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--red-glow);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn svg {
  transition: transform var(--duration-base);
}

.form-success, .form-error {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  text-align: center;
}

.form-success {
  background: rgba(184, 12, 14, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.form-error {
  background: rgba(220, 80, 80, 0.15);
  color: #e87070;
  border: 1px solid rgba(220, 80, 80, 0.5);
}

/* Consent Step (Two-Step Form) */
.consent-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  animation: fadeSlideIn 0.3s ease-out;
}

.consent-step[hidden] {
  display: none;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.consent-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--mist);
  cursor: pointer;
}

.consent-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.consent-checkbox span {
  line-height: 1.4;
}

.consent-checkbox a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base);
}

.consent-checkbox a:hover {
  border-bottom-color: var(--gold);
}

.btn-confirm {
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--obsidian);
  background: var(--gold);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity var(--duration-base), transform var(--duration-fast);
}

.btn-confirm:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (min-width: 500px) {
  .form-group { flex-direction: row; }
  .email-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
  }
  .email-form .btn {
    flex: 1;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    white-space: nowrap;
  }
}

/* === Scroll Indicator === */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  color: var(--fog);
  font-size: var(--text-xs);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--text-3xl);
  color: var(--cream);
}

/* Section transitions */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent 0%, var(--obsidian) 100%);
  pointer-events: none;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.section-services {
  background: var(--obsidian);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid var(--slate);
  transition: transform var(--duration-base), border-color var(--duration-base), box-shadow var(--duration-base);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 12px 40px var(--red-glow);
}

.service-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--charcoal) 100%);
}

.service-content {
  padding: var(--space-md);
}

.service-content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
  color: var(--cream);
}

.service-content p {
  font-size: var(--text-sm);
  color: var(--mist);
}

/* Ver Mais Button */
.btn-ver-mais {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  max-width: 300px;
  margin: var(--space-lg) auto 0;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--cream);
  background: linear-gradient(135deg, rgba(184, 12, 14, 0.2) 0%, transparent 100%);
  border: 2px solid var(--red);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-base), box-shadow var(--duration-base);
}

.btn-ver-mais:hover {
  background: linear-gradient(135deg, rgba(184, 12, 14, 0.3) 0%, transparent 100%);
  box-shadow: 0 0 25px rgba(184, 12, 14, 0.3);
}

.btn-ver-mais svg {
  transition: transform var(--duration-base);
}

.btn-ver-mais[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.services-more {
  margin-top: var(--space-lg);
  animation: fadeIn var(--duration-base) var(--ease-out);
}

.services-more[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   WHY XPACE SECTION
   ============================================ */

.section-why {
  background: var(--charcoal);
}

.section-why::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, var(--obsidian) 0%, transparent 100%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature {
  text-align: center;
  padding: var(--space-lg);
  background: var(--slate);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone);
  transition: transform var(--duration-base), border-color var(--duration-base), box-shadow var(--duration-base);
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 30px var(--gold-glow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-glow);
  color: var(--red);
  border-radius: var(--radius-md);
}

.feature h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

.feature p {
  font-size: var(--text-sm);
  color: var(--mist);
}

/* ============================================
   CTA SECTION
   ============================================ */

.section-cta {
  position: relative;
  background: var(--obsidian);
  overflow: hidden;
  text-align: center;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, var(--charcoal) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.section-cta .container {
  position: relative;
  z-index: 1;
}

.cta-background {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  overflow: hidden;
}

.glow {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: glow-pulse 8s ease-in-out infinite alternate;
}

.glow-red {
  background: var(--red);
  top: -20%;
  left: -20%;
  opacity: 0.25;
}

.glow-gold {
  background: var(--gold);
  bottom: -20%;
  right: -20%;
  opacity: 0.2;
  animation-delay: -4s;
}

@keyframes glow-pulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.2; }
  100% { transform: scale(1.1) translate(5%, 5%); opacity: 0.35; }
}

.cta-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-sm);
}

.cta-subtitle {
  font-size: var(--text-lg);
  color: var(--mist);
  margin-bottom: var(--space-md);
}

.cta-benefits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.cta-benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-base);
  color: var(--mist);
}

.cta-benefits li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.email-form-cta {
  max-width: 500px;
  margin-inline: auto;
}

/* ============================================
   GO TO TOP BUTTON
   ============================================ */

.go-to-top {
  position: fixed;
  bottom: max(var(--space-lg), calc(var(--space-lg) + env(safe-area-inset-bottom)));
  right: max(var(--space-lg), calc(var(--space-lg) + env(safe-area-inset-right)));
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  border: 1px solid var(--slate);
  border-radius: 50%;
  color: var(--cream);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--duration-base), visibility var(--duration-base), transform var(--duration-base), background var(--duration-fast);
  z-index: 90;
}

.go-to-top:hover { background: var(--slate); }

.go-to-top:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  padding: var(--space-2xl) 0 var(--space-xl);
  padding-bottom: max(var(--space-xl), calc(var(--space-xl) + env(safe-area-inset-bottom)));
  background: var(--obsidian);
  border-top: 1px solid var(--charcoal);
  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-md);
}

.footer-logo {
  width: 60px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer-legal {
  margin-bottom: var(--space-sm);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--duration-base), border-color var(--duration-base);
}

.footer-legal a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--fog);
}

/* ============================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================ */

@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;
  }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============================================
   SCROLL-DRIVEN ANIMATIONS
   ============================================ */

@supports (animation-timeline: view()) {
  @keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
  }

  .section-header {
    animation: fadeSlideUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }

  .service-card, .feature {
    animation: scaleIn linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }

  .cta-benefits, .email-form-cta {
    animation: fadeSlideUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

/* ============================================
   OKLCH COLORS (Modern browsers)
   ============================================ */

@supports (color: oklch(0% 0 0)) {
  :root {
    --red: oklch(0.47 0.22 27);
    --red-dim: oklch(0.38 0.18 27);
    --gold: oklch(0.78 0.17 85);
    --gold-dim: oklch(0.68 0.15 85);
    --green: oklch(0.42 0.12 145);
    --obsidian: oklch(0.12 0 0);
    --charcoal: oklch(0.17 0 0);
    --slate: oklch(0.22 0 0);
    --stone: oklch(0.27 0 0);
    --cream: oklch(0.97 0 0);
    --mist: oklch(0.75 0 0);
    --fog: oklch(0.52 0 0);
  }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
  :root {
    --obsidian: #000000;
    --charcoal: #0a0a0a;
    --slate: #1a1a1a;
    --cream: #ffffff;
    --mist: #cccccc;
    --fog: #888888;
  }

  .service-card,
  .feature,
  .btn-ver-mais,
  .email-form input {
    border-width: 2px;
  }

  .highlight {
    -webkit-text-fill-color: var(--gold);
    background: none;
  }

  .btn {
    border: 2px solid var(--gold);
  }
}

/* ============================================
   SECTION GRADIENT TRANSITIONS
   ============================================ */

.section-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--obsidian) 0%, transparent 100%);
  pointer-events: none;
}

.section-why::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent 0%, var(--charcoal) 100%);
  pointer-events: none;
}

/* ============================================
   CSS NESTING FALLBACK
   Browser support check for older browsers
   ============================================ */

@supports not (selector(&)) {
  /* Fallback styles for browsers without CSS nesting */
  .service-card:hover .service-image img {
    transform: scale(1.05);
  }

  .btn-ver-mais[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }
}
