/* ===== Tokens (Identidade Visual da Sul Brasil) ===== */
:root {
  /* Azul Escuro/Elétrico da fachada e logo */
  --c-navy-900: #0a1f44;
  --c-navy-800: #123063;
  --c-navy-700: #1b448a;
  --c-navy-600: #2256ad; 
  --c-navy-500: #2968d1;
  
  /* Tons neutros para fundo de seções e textos secundários */
  --c-steel-100: #eff3f8; 
  --c-steel-200: #e6ebf1;
  --c-steel-300: #cdd6e2;
  --c-steel-400: #9aa8bd;
  --c-steel-500: #6b7a90;
  --c-steel-600: #4a586c;
  
  /* Cores de destaque da Logo e Letreiro */
  --c-amber: #ffcc00; /* Amarelo da Logo Sul Brasil */
  --c-amber-dark: #dca300;
  --c-red: #d32f2f; /* Vermelho do texto PIEZAS ELÉCTRICAS AUTOMOTIVAS */
  
  /* Cores padrão do sistema */
  --c-orange: #ff7a18;
  --c-green: #25d366; /* Verde Padrão do WhatsApp */
  --c-green-dark: #1ebe5a;
  --c-white: #ffffff;
  
  /* Sombras e Bordas */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(10, 31, 68, 0.08);
  --shadow: 0 10px 30px rgba(10, 31, 68, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 31, 68, 0.18);
  
  /* Medidas Base */
  --container: 1140px;
  --header-h: 72px;
  
  /* Tipografia */
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: "Montserrat", "Inter", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Classes Utilitárias ===== */
.text-red {
  color: var(--c-red) !important;
}

/* ===== Reset ===== */
*::before,
*::after,
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-navy-800);
  background: var(--c-steel-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Layout Base ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 84px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-amber-dark);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.14);
  margin-bottom: 16px;
}

.tag-light {
  color: var(--c-amber);
  background: rgba(255, 204, 0, 0.18);
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--c-navy-900);
  letter-spacing: -0.02em;
}

.section-title.light {
  color: var(--c-white);
}

.section-desc {
  margin-top: 14px;
  color: var(--c-steel-600);
  font-size: 1.05rem;
}

.section-desc.light {
  color: var(--c-steel-300);
}

/* ===== LOGO IMAGE ===== */
.logo-img {
  max-height: 55px; 
  width: auto;
  border-radius: 4px;
  transition: max-height 0.3s var(--ease);
}
.site-header.scrolled .logo-img {
  max-height: 45px; 
}
.footer-brand .logo-img {
  max-height: 70px;
}
.grayscale {
  /* No rodapé, aplicamos um brilho leve para a logo não sumir no fundo escuro */
  filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}

/* ===== Botões Padrões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}

.btn i { font-size: 1.15em; }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-whatsapp {
  background: var(--c-green);
  color: var(--c-white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.32);
}

.btn-whatsapp:hover {
  background: var(--c-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--c-white);
  transform: translateY(-2px);
}

/* ===== HEADER (Com Fundo de Raios) ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  
  /* Inserindo a imagem dos raios capturada */
  background-image: url('./Captura de tela 2026-07-28 112419.png');
  background-size: cover;
  background-position: center;
  
  /* Máscara azul-marinho semi-transparente para dar leitura ao menu (A mágica do Inset Shadow) */
  box-shadow: inset 0 0 0 2000px rgba(10, 31, 68, 0.80);
  
  border-bottom: 2px solid rgba(255, 204, 0, 0.15); /* Linha amarela na base do header */
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.scrolled {
  /* Ao rolar a página, o header fica mais escuro e a sombra mais forte */
  box-shadow: inset 0 0 0 2000px rgba(10, 31, 68, 0.95), 0 6px 24px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 204, 0, 0.4);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--c-white);
}

.nav-desktop {
  display: none;
  gap: 28px;
}

.nav-link {
  color: var(--c-steel-200);
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--c-amber);
  transition: width 0.25s var(--ease);
}

.nav-link:hover { color: var(--c-white); }
.nav-link:hover::after { width: 100%; }
.header-cta { display: none; }

/* Menu Mobile e Hamburguer */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  margin: 0 auto;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--c-navy-900);
  padding: 16px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.32s var(--ease), opacity 0.32s var(--ease), padding 0.32s var(--ease);
}

.mobile-nav.open {
  max-height: 400px;
  opacity: 1;
  pointer-events: auto;
}

.mobile-link {
  color: var(--c-steel-200);
  font-weight: 500;
  padding: 12px 8px;
  border-radius: 8px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-white);
}

/* ===== WHATSAPP HOVER DROPDOWN ===== */
.wa-dropdown {
  position: relative;
  display: inline-block;
}

.wa-dropdown-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 50%;
  background-color: var(--c-white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  z-index: 105;
  transition: all 0.3s var(--ease);
  border: 1px solid var(--c-steel-200);
  text-align: left;
}

.wa-dropdown-content.down { top: 115%; transform: translateX(-50%) translateY(-15px); }
.wa-dropdown-content.up { bottom: 115%; transform: translateX(-50%) translateY(15px); }

.wa-dropdown:hover .wa-dropdown-content.down { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
.wa-dropdown:hover .wa-dropdown-content.up { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }

.wa-dropdown-title {
  display: block;
  padding: 8px 16px 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--c-steel-500);
  font-weight: 700;
  border-bottom: 1px solid var(--c-steel-200);
  margin-bottom: 4px;
  font-family: var(--font-head);
}

.mobile-only {
  color: var(--c-steel-400);
  border-color: rgba(255,255,255,0.1);
  margin-top: 10px;
}

.wa-dropdown-content a {
  color: var(--c-navy-800);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.wa-dropdown-content a i { color: var(--c-green); font-size: 1.2rem; }
.wa-dropdown-content a:hover { background-color: var(--c-steel-100); color: var(--c-green-dark); }

/* Float Botão (Canto da tela) */
.floating-wa-dropdown {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
}
.whatsapp-float {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--c-green);
  color: var(--c-white);
  font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  animation: float-in 0.5s var(--ease) both;
}
.whatsapp-float:hover { background: var(--c-green-dark); transform: scale(1.08) rotate(6deg); }

.floating-wa-dropdown .float-content {
  bottom: 75px;
  left: auto;
  right: 0;
  transform: translateY(15px);
}
.floating-wa-dropdown:hover .float-content {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

@keyframes float-in {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.mb-2 { margin-bottom: 8px; }

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: linear-gradient(160deg, var(--c-navy-900) 0%, var(--c-navy-800) 45%, var(--c-navy-700) 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 204, 0, 0.12), transparent 45%), radial-gradient(circle at 15% 85%, rgba(41, 104, 209, 0.5), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px 120px;
  max-width: 860px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--c-steel-200);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 24px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--c-white);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--c-steel-300);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 22px;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 70px; fill: var(--c-steel-100); }
.hide-mobile { display: none; }

/* ===== DIFERENCIAIS ===== */
.diferenciais { background: var(--c-steel-100); }
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.card-diff {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-steel-200);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.card-diff::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-amber), var(--c-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.card-diff:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--c-steel-300); }
.card-diff:hover::before { transform: scaleX(1); }

.card-diff.featured { border-color: rgba(255, 204, 0, 0.4); box-shadow: var(--shadow); }
.card-diff.featured::before { transform: scaleX(1); }

.card-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--c-navy-700), var(--c-navy-500));
  color: var(--c-amber);
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(10, 31, 68, 0.25);
}

.card-diff h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; color: var(--c-navy-900); margin-bottom: 10px; }
.card-diff p { color: var(--c-steel-600); font-size: 0.98rem; }

/* ===== CONTATO ===== */
.contato {
  background: linear-gradient(160deg, var(--c-navy-800), var(--c-navy-900));
  position: relative;
  overflow: hidden;
}

.contato::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.08), transparent 60%);
  pointer-events: none;
}

.contato-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.contato-info .section-tag { margin-bottom: 14px; }
.contato-info .section-title { text-align: left; margin-bottom: 32px; }

.contato-list { list-style: none; display: flex; flex-direction: column; gap: 22px; margin-bottom: 32px; }
.contato-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: var(--c-amber); font-size: 1.1rem; border: 1px solid rgba(255, 255, 255, 0.1); }
.contato-list strong { display: block; color: var(--c-white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.contato-list span, .contato-list a { color: var(--c-steel-300); font-size: 0.98rem; line-height: 1.5; }
.contato-list a:hover { color: var(--c-amber); }

.map-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.12); height: 380px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.2) contrast(1.05); }

/* ===== FOOTER (Com Fundo de Raios) ===== */
.site-footer {
  /* Inserindo a imagem dos raios capturada */
  background-image: url('./Captura de tela 2026-07-28 112419.png');
  background-size: cover;
  background-position: bottom;
  
  /* Máscara azul-marinho semi-transparente para o rodapé */
  box-shadow: inset 0 0 0 2000px rgba(10, 31, 68, 0.85);
  
  padding: 32px 0;
  border-top: 2px solid rgba(255, 204, 0, 0.4);
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-white); }
.footer-copy { color: var(--c-steel-400); font-size: 0.88rem; font-weight: 500; }

/* ===== Efeitos e Responsivo ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (min-width: 640px) { .hero-actions .btn { flex: 1 1 auto; max-width: 320px; } }
@media (min-width: 768px) {
  .section { padding: 100px 0; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .contato-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .map-frame { height: 460px; }
  .hide-mobile { display: inline; }
}
@media (min-width: 920px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-block; } /* Mudado para inline-block por causa do hover dropdown */
  .menu-toggle { display: none; }
  .mobile-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}