/* ==========================================================================
   BIO LINK & SITE OFICIAL — PAIM BATERAUTO
   Design System & Master Stylesheet | WCAG 2.2 AA | High-Conversion Performance
   Identidade: Carbon, Obsidian & Electric Gold
   Agência: COPY
   ========================================================================== */

/* 1. RESET & DESIGN TOKENS */
:root {
  /* Carbon & Obsidian Deep Base */
  --bg-deep: #07080a;
  --bg-base: #0b0c10;
  --surface-card: rgba(14, 16, 21, 0.88);
  --surface-card-hover: rgba(20, 23, 30, 0.94);
  --surface-elevated: #13151c;
  --surface-highlight: rgba(255, 204, 0, 0.05);

  /* Paim Electric Gold & Yellow */
  --gold-primary: #ffcc00;
  --gold-bright: #f5c20a;
  --gold-deep: #d4a000;
  --gold-glow: rgba(255, 204, 0, 0.25);
  --gold-glow-subtle: rgba(255, 204, 0, 0.12);
  --gold-border: rgba(255, 204, 0, 0.32);
  --gold-border-subtle: rgba(255, 204, 0, 0.14);

  /* Status Tokens */
  --status-open: #10b981;
  --status-open-glow: rgba(16, 185, 129, 0.35);
  --status-closed: #eab308;
  --status-closed-glow: rgba(234, 179, 8, 0.25);

  /* Neutrals */
  --white-pure: #ffffff;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --shadow-card: 0 14px 34px -8px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.1);
  --shadow-gold-button: 0 10px 28px -6px rgba(255, 204, 0, 0.38);

  /* Typography */
  --font-display: 'Outfit', 'Syne', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;

  /* Easing */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-spring);
  --transition-smooth: 0.35s var(--ease-spring);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden !important;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  background-color: var(--bg-deep);
  overflow-x: hidden !important;
  padding: 0 16px;
}

/* 2. SKIP LINK (ACESSIBILIDADE WCAG 2.2 AA) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-bright);
  color: #07080a;
  padding: 12px 24px;
  font-weight: 800;
  border-radius: 8px;
  z-index: 9999;
  text-decoration: none;
  font-size: 0.95rem;
  transition: top 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.skip-link:focus {
  top: 16px;
}

/* 3. PONTO FOCAL DE LUZ (ÚNICO E SUAVE) */
.backdrop-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb-gold-focal {
  position: absolute;
  width: 620px;
  height: 620px;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 204, 0, 0.16) 0%,
    rgba(255, 204, 0, 0.08) 32%,
    rgba(255, 204, 0, 0.02) 58%,
    transparent 72%
  );
  filter: blur(45px);
  will-change: transform;
}

.backdrop-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, transparent 40%, rgba(7, 8, 10, 0.8) 100%);
}

/* 4. CONTAINER PRINCIPAL DO LINK-IN-BIO */
.page-container {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 24px 0 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 5. STATUS BAR SUPERIOR */
.status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(14, 16, 21, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-closed);
  box-shadow: 0 0 8px var(--status-closed-glow);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.status-dot.is-open {
  background-color: var(--status-open);
  box-shadow: 0 0 10px var(--status-open-glow);
  animation: pulse-dot 2.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.status-text {
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-plantao-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-plantao-badge svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* 6. HERO SECTION */
.hero-card {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid var(--gold-border);
  border-radius: 24px;
  padding: 32px 24px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

.logo-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.logo-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1200 / 562;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.7));
}

.hero-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 204, 0, 0.08);
  border: 1px solid var(--gold-border-subtle);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white-pure);
  text-wrap: balance;
}

.hero-title .highlight {
  color: var(--gold-bright);
}

.hero-subtitle {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 460px;
}

/* 7. BOTÕES SHINY SWEEP (ALTA CONVERSÃO) */
.btn-shiny {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 16px 24px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  border: none;
  touch-action: manipulation;
}

/* Feixe diagonal suave de baixa opacidade */
.btn-shiny::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 70%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: transform 0.65s ease;
}

.btn-shiny:hover::after,
.btn-shiny:focus-visible::after,
.btn-shiny:active::after {
  transform: rotate(25deg) translate(380%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .btn-shiny::after {
    display: none;
  }
}

/* Botão Primário WhatsApp (Ouro Paim) */
.btn-primary-whatsapp {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-primary) 100%);
  color: #07080a;
  box-shadow: var(--shadow-gold-button);
}

.btn-primary-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(255, 204, 0, 0.48);
}

.btn-primary-whatsapp:active {
  transform: translateY(0);
}

.btn-primary-whatsapp svg {
  color: #07080a;
  flex-shrink: 0;
}

.btn-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: -6px;
}

/* Botão Secundário / Outline */
.btn-secondary {
  background: rgba(18, 21, 28, 0.85);
  color: var(--white-pure);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--surface-card-hover);
  border-color: var(--gold-border);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* 8. CARDS E BLOCOS TEMÁTICOS */
.content-card {
  background: var(--surface-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition-fast);
}

.content-card:hover {
  border-color: rgba(255, 204, 0, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 204, 0, 0.08);
  border: 1px solid var(--gold-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.card-header-text {
  display: flex;
  flex-direction: column;
}

.card-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white-pure);
  line-height: 1.25;
}

.card-body-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* 9. BLOCO DE ENTREGA REGIONAL */
.region-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.region-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.region-pill svg {
  color: var(--gold-bright);
  flex-shrink: 0;
}

.region-pill-wide {
  grid-column: span 2;
  background: rgba(255, 204, 0, 0.04);
  border-color: var(--gold-border-subtle);
}

/* 10. BLOCO DE PLANTÃO */
.plantao-card {
  border-left: 3px solid var(--gold-bright);
}

.plantao-notice {
  background: rgba(255, 204, 0, 0.06);
  border: 1px dashed var(--gold-border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.plantao-notice strong {
  color: var(--gold-bright);
}

/* 11. HORÁRIOS DE FUNCIONAMENTO */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.schedule-row.is-today {
  background: rgba(255, 204, 0, 0.08);
  border-color: var(--gold-border);
  font-weight: 700;
}

.schedule-day-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-today-tag {
  background: var(--gold-bright);
  color: #07080a;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.schedule-time {
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.schedule-closed {
  color: #f87171;
  font-weight: 700;
}

/* 12. LOCALIZAÇÃO E MAPA */
.address-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.address-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.address-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-small-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-small-action:hover {
  background: rgba(255, 204, 0, 0.12);
  border-color: var(--gold-border);
  color: var(--gold-bright);
}

.map-container {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #0d0f14;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.map-placeholder-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-bright);
  color: #07080a;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* 13. CANAIS SOCIAIS E BOTÕES DE REDIRECIONAMENTO */
.social-links-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.social-card-btn:hover {
  background: var(--surface-card-hover);
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.social-card-btn:active {
  transform: translateY(0);
}

.social-btn-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
}

.social-texts {
  display: flex;
  flex-direction: column;
}

.social-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--white-pure);
}

.social-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.social-chevron {
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.social-card-btn:hover .social-chevron {
  color: var(--gold-bright);
  transform: translateX(4px);
}

/* 14. FOOTER OFICIAL */
.page-footer {
  text-align: center;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-brand-line {
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-agency-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.footer-agency-link {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: opacity var(--transition-fast);
}

.footer-agency-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* 15. TOAST FEEDBACK (COPIAR ENDEREÇO) */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111319;
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s ease;
  z-index: 10000;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 16. RESPONSIVIDADE E DISPOSITIVOS ESPECÍFICOS */
@media (max-width: 480px) {
  body {
    padding: 0 12px;
  }
  
  .page-container {
    padding: 16px 0 48px;
    gap: 16px;
  }

  .hero-card {
    padding: 24px 16px 22px;
    border-radius: 20px;
  }

  .region-badges-grid {
    grid-template-columns: 1fr;
  }

  .region-pill-wide {
    grid-column: span 1;
  }

  .status-bar {
    padding: 8px 12px;
  }
}

@media (max-width: 340px) {
  .hero-title {
    font-size: 1.25rem;
  }
  
  .btn-shiny {
    font-size: 0.92rem;
    padding: 14px 16px;
  }
}
