:root {
  /* Cores Principais */
  --color-primary: #1e3a8a; /* Azul marinho/profundo */
  --color-primary-dark: #172554;
  --color-primary-light: #eff6ff;
  
  /* Cores de CTA */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #128C7E;
  --color-phone: #2563eb;
  --color-phone-hover: #1d4ed8;
  
  /* Acentos */
  --color-accent-red: #ef4444;
  --color-accent-yellow: #f59e0b;
  --color-accent-green: #10b981;
  
  /* Neutros */
  --color-text: #1f2937;
  --color-text-muted: #4b5563;
  --color-bg: #f9fafb;
  --color-card-bg: #ffffff;
  --color-border: #e5e7eb;
  
  /* Tipografia */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Espaçamento */
  --spacing-container: 1rem;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

/* Utilidades de Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-container);
}

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

/* Animações e Transições */
@keyframes softPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.header {
  background-color: var(--color-card-bg);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.logo {
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Hero */
.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-title {
  color: var(--color-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Seção de Unidades */
.units {
  padding: 1.5rem 0 3rem;
}

#units-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

/* Card da Unidade */
.unit-card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  width: 100%;
  max-width: 400px;
  border-top: 4px solid var(--color-primary);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.unit-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.unit-card.highlight {
  border-top-width: 6px;
  border-top-color: var(--color-accent-yellow);
  box-shadow: 0 0 0 2px var(--color-accent-yellow), var(--shadow-lg);
}

.unit-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.unit-title {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.unit-address {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.unit-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Botões / CTAs */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  height: 54px;
  padding: 0 0.5rem;
  border-radius: 8px;
  font-size: clamp(13px, 3.6vw, 15px);
  white-space: nowrap;
  font-weight: 600;
  text-decoration: none !important;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, transform 0.1s ease;
  animation: softPulse 3s infinite ease-in-out;
}

.btn:active {
  transform: scale(0.98) !important; /* Feedback imediato ao toque */
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
}
.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
}

.btn-phone {
  background-color: var(--color-phone);
}
.btn-phone:hover {
  background-color: var(--color-phone-hover);
}

/* Política de Privacidade */
.privacy-section {
  padding: 2rem 0;
  background-color: var(--color-card-bg);
  border-top: 1px solid var(--color-border);
}

.privacy-accordion {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.privacy-accordion summary {
  padding: 1rem;
  background-color: var(--color-bg);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none; /* Remove seta padrão em alguns browsers */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.privacy-accordion summary::-webkit-details-marker {
  display: none;
}

.privacy-accordion summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.privacy-accordion[open] summary::after {
  content: "−";
}

.privacy-accordion[open] summary {
  border-bottom: 1px solid var(--color-border);
}

.privacy-content {
  padding: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.privacy-content h3 {
  color: var(--color-text);
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
}

.privacy-content p {
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  padding: 3rem 0;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.footer-brand {
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.footer-units, .footer-legal-link {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.footer-companies {
  margin: 2rem 0;
  font-size: 0.75rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.company-info {
  flex: 1 1 250px;
  max-width: 300px;
}

.footer-agency {
  margin-top: 2rem;
  color: #9ca3af;
}

.footer-agency a {
  color: inherit;
  font-weight: 600;
}

/* Media Queries (Tablet and up) */
@media (min-width: 768px) {
  .logo {
    max-width: 220px;
  }
  
  .hero {
    padding: 3.5rem 0 2rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  #units-container {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
  }
  
  .unit-card {
    flex: 1 1 300px;
    max-width: 380px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .btn {
    animation: none !important;
  }
  
  .unit-card:hover {
    transform: none;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Novos Estilos para LPs Individuais --- */

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.875rem;
}

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

.btn-small {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  width: auto;
  animation: none; /* Sem pulsar no header */
}

.btn-link {
  display: inline-block;
  text-align: center;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

/* Hero Unit */
.hero-unit {
  padding: 4rem 0 2rem;
  background-color: var(--color-primary-light);
}

.hero-unit .highlight {
  color: #ffffff;
  background-color: var(--color-primary);
  padding: 0 0.5rem;
  border-radius: 4px;
  line-height: 1.5;
}

.hero-address {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 2rem auto;
}

.other-units-link {
  margin-top: 1rem;
}
.other-units-link a {
  font-weight: 600;
  color: var(--color-text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.other-units-link a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Faixa de Benefícios */
.benefits-band {
  background-color: var(--color-primary);
  color: white;
  padding: 1.5rem 0;
}

.benefits-flex {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.benefit-item::before {
  content: "✓";
  color: var(--color-accent-yellow);
  margin-right: 0.5rem;
  font-weight: bold;
}

/* Seções Padrões da Unidade */
.unit-section {
  padding: 4rem 0;
}

.section-title {
  color: var(--color-primary);
  margin-bottom: 2.5rem;
  font-size: 1.75rem;
}

/* Grid de Processo */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.process-step {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-top: 4px solid var(--color-primary);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  margin: 0 auto 1.5rem;
}

.process-step h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Location Card */
.location-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}

.location-card p {
  margin-bottom: 0.5rem;
}

/* Responsividade LPs Individuais */
@media (min-width: 768px) {
  .hero-actions {
    flex-direction: row;
    max-width: 600px;
  }
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .nav-links {
    justify-content: center;
    width: 100%;
  }
}

.btn-header-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
  text-decoration: none;
  border: none;
}
.btn-header-whatsapp:hover {
  opacity: 1;
}
.header-whatsapp-img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}
.btn-header-whatsapp:hover .header-whatsapp-img {
  transform: scale(1.05);
}

/* ── Delivery Badge ── */
.delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3125rem 0.75rem;
  border-radius: 100px;
  background-color: #1e3a8a;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.delivery-badge svg {
  width: 16px;
  height: 16px;
  fill: #60a5fa;
  flex-shrink: 0;
}

/* Root hero — badge centrado abaixo do subtítulo */
.hero-delivery-badge {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

/* Individual hero — badge e disclaimer agrupados acima do h1 */
.hero-delivery-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Disclaimer hero (junto ao badge) */
.delivery-disclaimer-hero {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  line-height: 1.3;
  text-align: center;
  max-width: 90%;
}

/* Disclaimer padrão (usado na root) */
.delivery-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  opacity: 0.85;
}

/* Conteúdo local na seção de localização */
.location-local-content {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  font-style: italic;
}

/* ── Horário de Atendimento ── */
.hours-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  max-width: 500px;
  margin: 0 auto;
  border-top: 4px solid var(--color-primary);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.hours-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hours-day {
  font-weight: 600;
  color: var(--color-primary-dark);
}

.hours-time {
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ── Galeria ── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-img {
    height: 300px;
  }
}
