/* ==========================================================================
   DF RETÍFICA DE MOTORES - STYLES V4.0 (CORES DA MARCA NO WHATS & PARCEIROS SP)
   ========================================================================== */

/* Scroll Margin para âncoras não ficarem cobertas pelo header sticky */
section[id] {
  scroll-margin-top: 90px;
}

/* 1. Header & Logo Oficial hd_post_103.jpg */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 11, 18, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--color-primary);
  padding: 0.85rem 0;
  box-shadow: 0 4px 25px rgba(0,0,0,0.6);
}

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

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 2.5rem;
}

.brand-logo-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-yellow-glow);
  object-fit: cover;
  background: #FFD700;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
}

.brand-logo-text .title {
  font-family: var(--ff-heading);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: 1px;
}

.brand-logo-text .subtitle {
  font-family: var(--ff-subheading);
  font-size: 0.68rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
}

.site-header nav {
  margin: 0 1.5rem;
}

/* Links de Navegação */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
}

.nav-link {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: #E2E8F0;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s ease;
  position: relative;
  padding: 0.3rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Top Bar SP */
.top-bar-sp {
  background: #04060B;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  padding: 0.65rem 0;
  font-size: 0.85rem;
  font-family: var(--ff-subheading);
}

.top-bar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-info-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #E2E8F0;
}

/* Hero Section */
.hero-v2 {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background: radial-gradient(circle at 75% 25%, rgba(0, 71, 171, 0.35) 0%, transparent 65%),
              radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.18) 0%, transparent 55%),
              var(--color-bg-dark);
}

.hero-v2-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 215, 0, 0.12);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: var(--shadow-yellow-glow);
}

.hero-title {
  font-size: 3.25rem;
  margin: 1.25rem 0 1.5rem;
  letter-spacing: 0.5px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-card-img {
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-yellow-glow);
  overflow: hidden;
  position: relative;
  background: #000;
}

.hero-card-img img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

/* Seção História & Tradição em SP */
.history-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-surface) 100%);
  position: relative;
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.history-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Seção Parceiros SP (NOVA) */
.partners-section {
  padding: 5rem 0;
  background: #04070D;
  border-top: 1px solid var(--color-border-brand);
  border-bottom: 1px solid var(--color-border-brand);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.partner-card {
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border-brand);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.35s ease;
}

.partner-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-yellow-glow);
}

/* Destaques & Posts em Grid */
.feed-grid-section {
  padding: 6rem 0;
  background: var(--color-bg-surface);
}

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

.feed-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-brand);
  background: #000;
  cursor: pointer;
  transition: all 0.35s ease;
}

.feed-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.feed-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-yellow-glow);
}

.feed-card:hover img {
  transform: scale(1.06);
}

.feed-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 11, 18, 0.95) 100%);
  padding: 1.25rem 1rem 0.85rem;
  font-family: var(--ff-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

/* Contact SP & Flutuante WhatsApp Oficial com Cores da Marca (#FFD700 & #0047AB) */
.contact-sp-card {
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-yellow-glow);
}

.contact-item-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Flutuante WhatsApp Estilizado nas Cores da Marca (Amarelo & Azul Royal) */
.whatsapp-float-brand {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 66px;
  height: 66px;
  background: var(--grad-brand-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #05080E;
  border: 2.5px solid var(--color-secondary);
  box-shadow: var(--shadow-yellow-glow), 0 8px 30px rgba(0, 71, 171, 0.5);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float-brand:hover {
  transform: scale(1.14) rotate(6deg);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.7), var(--shadow-blue-glow);
  background: linear-gradient(135deg, #FFE033 0%, #FF9900 100%);
}

@media (max-width: 992px) {
  .hero-v2-grid, .history-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* ==========================================================================
   INTERATIVIDADE & NAVEGAÇÃO MOBILE (MENU DRAWER & ESTRUTURA RESPONSIVA)
   ========================================================================== */

/* Botão Hambúrguer Mobile */
.mobile-toggle {
  display: none;
  background: var(--color-bg-surface);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-yellow-glow);
  transition: all 0.3s ease;
}

.mobile-toggle:hover {
  background: var(--color-primary);
  color: #05080E;
}

/* Overlay do Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 11, 0.75);
  backdrop-filter: blur(8px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer Menu Lateral Glassmorphism */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: rgba(7, 11, 18, 0.98);
  backdrop-filter: blur(25px);
  border-left: 2px solid var(--color-primary);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  box-shadow: -10px 0 40px rgba(0,0,0,0.8), var(--shadow-yellow-glow);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border-brand);
}

.drawer-close-btn {
  background: rgba(255, 215, 0, 0.15);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.drawer-close-btn:hover {
  background: var(--color-primary);
  color: #000;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.drawer-link {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-left: 3px solid transparent;
  transition: all 0.25s ease;
}

.drawer-link:hover {
  background: rgba(255, 215, 0, 0.1);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

.drawer-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-brand);
}

/* Grids Responsivas */
.grid-responsive-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,215,0,0.2);
}

.services-tabs-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Ajustes de Navegação para Telas Menores (<= 1024px) */
@media (max-width: 1024px) {
  .site-header nav {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
  }
  .desktop-cta-btn {
    display: none !important;
  }
}

/* Ajustes Específicos para Mobile (< 768px) */
@media (max-width: 768px) {
  .top-bar-sp {
    padding: 0.4rem 0;
    font-size: 0.78rem;
  }

  .top-bar-address {
    display: none !important;
  }

  .top-bar-wrapper {
    justify-content: space-between;
  }

  .brand-logo-img {
    width: 44px;
    height: 44px;
  }

  .brand-logo-text .title {
    font-size: 1rem;
  }

  .brand-logo-text .subtitle {
    font-size: 0.58rem;
  }

  .hero-v2 {
    padding: 3rem 0 2.5rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.25;
    margin: 0.85rem 0 1.15rem;
  }

  .hero-desc {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
  }

  .hero-badges-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .grid-responsive-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-tabs-container {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
  }

  .services-tabs-container .tab-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    font-size: 0.82rem;
    padding: 0.7rem 1.25rem;
  }

  .history-section, .feed-grid-section, #servicos, #simulador, #depoimentos, #localizacao {
    padding: 3rem 0;
  }

  h2 {
    font-size: 1.85rem !important;
  }

  .whatsapp-float-brand {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 56px;
    height: 56px;
  }

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

