/* 
 * ALF Auto Center - Premium Institutional Theme
 * Typography: Inter (body), Barlow Condensed (headings)
 * Style: Editorial, Photography-driven, Minimalist, Premium
 */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
  /* Brand Colors */
  --color-primary: #0A9ED6;
  --color-dark-blue: #0C2340;
  
  /* Backgrounds */
  --color-bg-light: #FFFFFF;
  --color-bg-alt: #F5F5F5;
  --color-bg-dark-1: #111111;
  --color-bg-dark-2: #1A1A1A;
  
  /* Typography Colors */
  --color-text-dark: #111111;
  --color-text-body: #444444;
  --color-text-muted: #666666;
  --color-text-light: #CCCCCC;
  --color-text-white: #FFFFFF;
  
  /* Borders & Lines */
  --color-border-light: #E0E0E0;
  --color-border-dark: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  
  /* Spacing */
  --section-padding: clamp(60px, 10vw, 120px);
  --container-width: 1200px;
  --container-padding: clamp(20px, 4vw, 40px);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* Header height */
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-body);
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: 0.04em;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  letter-spacing: 0.04em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background-color: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.btn-primary:hover {
  background-color: #0880AD;
}

.btn-outline {
  border: 1px solid var(--color-text-white);
  color: var(--color-text-white);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--color-text-white);
  color: var(--color-text-dark);
}

.btn-outline-dark {
  border: 1px solid var(--color-text-dark);
  color: var(--color-text-dark);
  background-color: transparent;
}

.btn-outline-dark:hover {
  background-color: var(--color-text-dark);
  color: var(--color-text-white);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  transition: background-color var(--transition-normal), height var(--transition-normal);
  display: flex;
  align-items: center;
  background-color: transparent;
}

.site-header.scrolled {
  height: 80px;
  background-color: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-dark);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 64px;
  width: auto;
  display: block;
  transition: height var(--transition-normal), opacity var(--transition-normal);
}

.logo .logo-default {
  display: none;
}

.logo .logo-transparent {
  display: block;
}

.site-header.scrolled .logo img {
  height: 64px;
}

.site-header.scrolled .logo .logo-default {
  display: block;
}

.site-header.scrolled .logo .logo-transparent {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--color-primary);
}

.header-cta {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition-normal);
}

.header-cta:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  z-index: 1001;
  background: transparent;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-white);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg-dark-1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

body.menu-open .mobile-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .mobile-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .mobile-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav-links a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 10vh;
  background-color: var(--color-bg-dark-1);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0.3) 0%, rgba(17, 17, 17, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
}

.hero-label {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--color-text-white);
  margin-bottom: 1.5rem;
}

.hero p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-tags {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.hero-tags span:not(:last-child)::after {
  content: '\2022';
  margin-left: 1rem;
  color: var(--color-primary);
}

/* Hero fade-in animation */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: heroFadeIn 0.8s ease forwards;
  opacity: 0;
}

.hero-content > :nth-child(1) { animation-delay: 0.1s; }
.hero-content > :nth-child(2) { animation-delay: 0.2s; }
.hero-content > :nth-child(3) { animation-delay: 0.35s; }
.hero-content > :nth-child(4) { animation-delay: 0.5s; }
.hero-content > :nth-child(5) { animation-delay: 0.65s; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about {
  background-color: var(--color-bg-light);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

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

.about-content .btn {
  margin-top: 0.5rem;
}

.about-image {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition-normal);
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/5;
  transition: transform var(--transition-slow);
}

.about-image:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

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

/* ==========================================================================
   SERVICES (Interactive Dual Column + 3D Car HUD Stage)
   ========================================================================== */
.services {
  background-color: var(--color-bg-dark-1);
  color: var(--color-text-white);
  position: relative;
}

.services .container {
  max-width: 1400px;
}

.services .section-label {
  color: var(--color-text-light);
}

.services h2 {
  color: var(--color-text-white);
  margin-bottom: 2.5rem;
}

.services-interactive-wrapper {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  width: 100%;
}

.service-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
  transition: all var(--transition-normal);
  position: relative;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.service-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: var(--color-primary);
  opacity: 0;
  border-radius: 3px 0 0 3px;
  transition: opacity var(--transition-normal);
}

.service-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(10, 158, 214, 0.35);
  transform: translateY(-2px);
}

.service-row:hover::before,
.service-row.active::before {
  opacity: 1;
}

.service-row.active {
  background-color: rgba(10, 158, 214, 0.09);
  border-color: rgba(10, 158, 214, 0.5);
  box-shadow: 0 4px 20px rgba(10, 158, 214, 0.15);
  transform: translateY(-2px);
}

.service-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-primary);
  opacity: 0.6;
  line-height: 1;
  margin-top: 2px;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.service-row.active .service-number {
  opacity: 1;
  color: var(--color-primary);
  -webkit-text-stroke: 0px;
  transform: scale(1.08);
}

.service-info {
  padding-right: 18px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-white);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  line-height: 1.25;
  transition: color var(--transition-normal);
}

.service-row.active .service-title {
  color: var(--color-primary);
}

.service-desc {
  color: #999999;
  font-size: 0.82rem;
  line-height: 1.4;
  transition: color var(--transition-normal);
}

.service-row.active .service-desc {
  color: #DDDDDD;
}

.service-arrow {
  position: absolute;
  top: 14px;
  right: 12px;
  color: #555555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal), color var(--transition-normal);
}

.service-row:hover .service-arrow,
.service-row.active .service-arrow {
  color: var(--color-primary);
  transform: translateX(3px);
}

/* ==========================================================================
   X-RAY CAR STAGE (Carro Transparente Estático com Iluminação por Peça)
   ========================================================================== */
.xray-stage {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.xray-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
}

/* Imagem Base: Toda a carroceria e mecânica com transparência sutil */
.xray-base-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.22;
  filter: brightness(0.7) contrast(0.9);
  transition: opacity 0.4s ease;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Camadas de Destaque / Iluminação Padronizada da Peça */
.xray-part {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  will-change: opacity, filter;
  -webkit-mask-image: radial-gradient(circle 125px at var(--spot-x, 50%) var(--spot-y, 50%), rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(circle 125px at var(--spot-x, 50%) var(--spot-y, 50%), rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

.xray-part img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 1. Câmbio Automático */
.part-cambio {
  --spot-x: 44%;
  --spot-y: 54%;
}
.xray-wrapper[data-active="cambio"] .part-cambio,
.part-cambio.active {
  opacity: 1;
  filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 22px rgba(245, 158, 11, 0.9));
}

/* 2. Ar-Condicionado */
.part-arcondicionado {
  --spot-x: 16%;
  --spot-y: 56%;
}
.xray-wrapper[data-active="arcondicionado"] .part-arcondicionado,
.part-arcondicionado.active {
  opacity: 1;
  filter: brightness(1.25) contrast(1.15) drop-shadow(0 0 20px rgba(0, 210, 255, 0.85));
}

/* 3. Freios */
.part-freios {
  --spot-x: 55%;
  --spot-y: 66%;
}
.xray-wrapper[data-active="freios"] .part-freios,
.part-freios.active {
  opacity: 1;
  filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 22px rgba(255, 30, 30, 0.9));
}

/* 4. Suspensão */
.part-suspensao {
  --spot-x: 66%;
  --spot-y: 46%;
}
.xray-wrapper[data-active="suspensao"] .part-suspensao,
.part-suspensao.active {
  opacity: 1;
  filter: brightness(1.25) contrast(1.15) drop-shadow(0 0 20px rgba(0, 230, 118, 0.85));
}

/* 5. Motor */
.part-motor {
  --spot-x: 30%;
  --spot-y: 45%;
}
.xray-wrapper[data-active="motor"] .part-motor,
.part-motor.active {
  opacity: 1;
  filter: brightness(1.3) contrast(1.15) drop-shadow(0 0 20px rgba(255, 102, 0, 0.85));
}

/* 6. Sistema Elétrico */
.part-eletrico {
  --spot-x: 24%;
  --spot-y: 38%;
}
.xray-wrapper[data-active="eletrico"] .part-eletrico,
.part-eletrico.active {
  opacity: 1;
  filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 22px rgba(250, 204, 21, 0.9));
}

/* 7. Injeção Eletrônica */
.part-injecao {
  --spot-x: 37%;
  --spot-y: 38%;
}
.xray-wrapper[data-active="injecao"] .part-injecao,
.part-injecao.active {
  opacity: 1;
  filter: brightness(1.3) contrast(1.15) drop-shadow(0 0 20px rgba(168, 85, 247, 0.9));
}

/* 8. Direção / Alinhamento e Balanceamento */
.part-direcao {
  --spot-x: 52%;
  --spot-y: 68%;
}
.xray-wrapper[data-active="direcao"] .part-direcao,
.part-direcao.active {
  opacity: 1;
  filter: brightness(1.25) contrast(1.15) drop-shadow(0 0 20px rgba(10, 158, 214, 0.85));
}

/* Hotspots — Apenas UM exibido por vez */
.car-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.car-spot.active {
  opacity: 1;
  visibility: visible;
  z-index: 30;
}

.spot-dot {
  width: 14px;
  height: 14px;
  background-color: var(--color-primary);
  border-radius: 50%;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 0 12px var(--color-primary), 0 0 24px rgba(10, 158, 214, 0.8);
  position: relative;
  z-index: 2;
}

.spot-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  animation: spotPulseAnim 2s infinite ease-out;
  opacity: 0.8;
}

@keyframes spotPulseAnim {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

/* Card Informativo Flutuante do Hotspot */
.spot-card {
  position: absolute;
  width: 220px;
  background: rgba(12, 35, 64, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 3px solid var(--color-primary);
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.spot-card-bottom {
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
}

.spot-card-top {
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
}

.spot-card-left {
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
}

.spot-card-right {
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
}

.spot-tag {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  margin-bottom: 2px;
}

.spot-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-text-white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.spot-desc {
  font-size: 0.78rem;
  color: #CCCCCC;
  line-height: 1.35;
  margin: 0;
}

/* ==========================================================================
   HIGHLIGHT / PARALLAX
   ========================================================================== */
.highlight {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.highlight-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.highlight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.highlight-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.highlight h2 {
  color: var(--color-text-white);
  margin-bottom: 1.5rem;
}

.highlight p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery {
  background-color: var(--color-bg-light);
}

.gallery > .container > p {
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Masonry style variations */
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item:nth-child(5) { grid-row: span 2; }

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

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color var(--transition-normal);
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover::after {
  background-color: rgba(0, 0, 0, 0.2);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  color: var(--color-text-white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-caption::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-cta {
  margin-top: 3.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
}

.gallery-instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.gallery-instagram-btn svg {
  transition: transform var(--transition-normal);
}

.gallery-instagram-btn:hover svg {
  transform: scale(1.15);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: var(--color-text-white);
  font-size: 2.5rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 16px;
    right: 16px;
    position: fixed;
  }
}

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why-choose {
  background-color: var(--color-bg-alt);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.why-item {
  position: relative;
  padding-right: 2rem;
}

.why-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 0;
  height: 80%;
  width: 1px;
  background-color: var(--color-border-light);
}

.why-icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.why-item h3 {
  color: var(--color-text-dark);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   LOCATION
   ========================================================================== */
.location {
  background-color: var(--color-bg-light);
}

.location-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.location-info h2 {
  color: var(--color-text-dark);
  margin-bottom: 2rem;
}

.info-list {
  margin-bottom: 2.5rem;
}

.info-item {
  margin-bottom: 1.5rem;
}

.info-item strong {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--color-text-dark);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.info-item p {
  color: var(--color-text-body);
}

.info-item a {
  color: var(--color-primary);
}

.info-item a:hover {
  text-decoration: underline;
}

.location-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background-color: var(--color-bg-alt); /* Placeholder before iframe loads */
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* ==========================================================================
   CONTACT FORM SECTION
   ========================================================================== */
.contact-section {
  background-color: var(--color-bg-dark-1);
  border-top: 1px solid var(--color-border-dark);
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header .section-label {
  justify-content: center;
}

.contact-header .section-label::before {
  display: none;
}

.contact-header h2 {
  color: var(--color-text-white);
  margin-bottom: 1rem;
}

.contact-header p {
  color: var(--color-text-light);
  font-size: 1rem;
}

.contact-form {
  background-color: var(--color-bg-dark-2);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--color-border-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-white);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: #111111;
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  outline: none;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230A9ED6' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background-color: var(--color-bg-dark-2);
  color: var(--color-text-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(10, 158, 214, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #666666;
}

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

.form-actions .btn {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

.form-status {
  font-size: 0.95rem;
  text-align: center;
  padding: 14px;
  display: none;
}

.form-status.success {
  display: block;
  background-color: rgba(37, 211, 102, 0.15);
  border: 1px solid #25D366;
  color: #25D366;
}

.form-status.error {
  display: block;
  background-color: rgba(235, 87, 87, 0.15);
  border: 1px solid #EB5757;
  color: #EB5757;
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.cta-final {
  background-color: var(--color-bg-dark-2);
  text-align: center;
  padding: 120px 0;
}

.cta-final h2 {
  color: var(--color-text-white);
  margin-bottom: 1rem;
}

.cta-final p {
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final .btn-primary {
  background-color: var(--color-text-white);
  color: var(--color-text-dark);
}

.cta-final .btn-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-bg-dark-1);
  color: var(--color-text-light);
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-logo img {
  height: 56px;
  width: auto;
}

.footer-about {
  font-size: 0.9rem;
  color: #888;
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text-white);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #888;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #888;
}

.developed-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #888;
  font-size: 0.85rem;
}

.univax-link {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.univax-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.univax-logo {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
  background-color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   WHATSAPP FLOAT
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: transform var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  color: #FFFFFF;
  fill: #FFFFFF;
}

/* ==========================================================================
   SCROLL ANIMATIONS (.reveal)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

/* Laptops & Small Desktops (1025px - 1200px) */
@media (max-width: 1200px) and (min-width: 1025px) {
  .nav-links {
    gap: 1.25rem;
  }
  .nav-links a {
    font-size: 1.05rem;
  }
  .main-nav {
    gap: 1.25rem;
  }
  .header-cta {
    padding: 8px 16px;
    font-size: 0.95rem;
  }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .main-nav {
    display: none; /* Hide main nav, show hamburger */
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-content {
    order: 2;
  }
  
  .about-image {
    order: 1;
    max-width: 550px;
    margin: 0 auto;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
  }
  
  /* Reset masonry for tablet */
  .gallery-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .gallery-item:first-child {
    grid-column: span 2;
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 3rem;
  }
  
  .why-item:nth-child(2)::after {
    display: none;
  }
  
  .location-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-interactive-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .xray-stage {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    order: 1;
  }

  .services-list {
    order: 2;
    gap: 0.75rem;
  }

  .spot-card {
    width: 200px;
    padding: 8px 10px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .site-header {
    height: 72px;
  }

  .site-header.scrolled {
    height: 64px;
  }

  .logo img {
    height: 48px;
  }

  .site-header.scrolled .logo img {
    height: 40px;
  }

  .hero {
    min-height: 100svh;
    padding-bottom: 50px;
  }

  .hero-content {
    text-align: left;
  }
  
  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }
  
  .hero-buttons {
    flex-direction: column;
    margin-bottom: 2.5rem;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  .hero-tags {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .hero-tags span:not(:last-child)::after {
    margin-left: 0.5rem;
  }
  
  .services-list {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .service-row {
    grid-template-columns: 34px 1fr;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
  }
  
  .service-number {
    font-size: 1.4rem;
  }

  .service-title {
    font-size: 1.05rem;
  }

  .xray-stage {
    max-width: 100%;
  }

  .spot-card {
    display: block;
    width: 190px;
    padding: 8px 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  }

  .spot-card-bottom {
    top: 18px;
  }

  .spot-card-top {
    bottom: 18px;
  }

  .spot-card-right {
    left: 16px;
  }

  .spot-card-left {
    right: 16px;
  }

  .spot-tag {
    font-size: 0.65rem;
  }

  .spot-title {
    font-size: 0.85rem;
  }

  .spot-desc {
    font-size: 0.72rem;
    line-height: 1.3;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
    gap: 12px;
  }

  .gallery-item:first-child {
    grid-column: span 1;
  }

  .gallery-caption {
    opacity: 1;
    transform: translateY(0);
    padding: 16px 14px;
    font-size: 1.05rem;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .why-item {
    padding-right: 0;
    text-align: center;
  }
  
  .why-item::after {
    display: none;
  }
  
  .why-icon {
    margin: 0 auto 1rem auto;
  }

  .location-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
  }
  
  .hero-bg,
  .highlight-bg {
    background-attachment: scroll;
  }
  
  .cta-final {
    padding: 70px 0;
  }
  
  .highlight {
    min-height: 40vh;
    padding: 60px 0;
  }
  
  .location-map {
    min-height: 280px;
  }
  
  .location-map iframe {
    min-height: 280px;
  }

  .contact-form {
    padding: 24px 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Previne auto-zoom indesejado no iOS Safari */
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
    --section-padding: 50px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .service-row {
    grid-template-columns: 30px 1fr;
    gap: 0.6rem;
    padding: 0.9rem 0.85rem;
  }

  .service-number {
    font-size: 1.3rem;
  }

  .service-title {
    font-size: 1rem;
  }

  .service-desc {
    font-size: 0.8rem;
  }

  .spot-card {
    width: 165px;
    padding: 6px 8px;
  }

  .spot-title {
    font-size: 0.78rem;
  }

  .spot-desc {
    font-size: 0.68rem;
  }

  .hud-corner {
    display: none;
  }

  .hud-status-bar {
    display: none;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
}
