/* ═══════════════════════════════════════════════════
   SHARED.CSS — Arka Company
   Nav, Footer e WhatsApp Widget
   Usado por todas as páginas do site
   ═══════════════════════════════════════════════════ */

/* ── VARIÁVEIS ── */
:root {
  --navy:   #0a0a0a;
  --dark:   #111111;
  --dark2:  #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --white:  #ffffff;
  --muted:  rgba(255,255,255,0.45);
  --accent: #5bbfb5;
  --text:   #e8e4dc;
}

/* ── NAV ── */
nav#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
nav#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 54px; width: auto; display: block; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; transition: color 0.2s; }
.nav-links a:hover { color: #ffffff; }
.nav-cta { background: #ffffff !important; color: #0a0a0a !important; padding: 10px 22px; border-radius: 4px; font-weight: 700 !important; font-size: 13px !important; transition: background 0.2s !important; }
.nav-cta:hover { background: #5bbfb5 !important; color: #0a0a0a !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #ffffff; border-radius: 2px; transition: all 0.3s; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 60px 32px 40px;
}
.footer-inner { max-width: 1440px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 320px; margin-top: 16px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--text); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-menu { text-align: left; }
.footer-menu-grid { display: flex !important; flex-direction: row !important; gap: 32px; justify-content: flex-start; }
.footer-menu-grid ul { list-style: none; display: flex !important; flex-direction: column !important; gap: 10px; min-width: 100px; }
.footer-contact { text-align: left; display: flex; flex-direction: column; align-items: flex-start; justify-self: center; }
.footer-contact ul { list-style: none; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: border-color 0.2s, color 0.2s;
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ── WHATSAPP WIDGET ── */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-bubble { background: #fff; color: #111; font-size: 13px; font-weight: 600; line-height: 1.4; padding: 10px 16px; border-radius: 12px 12px 0 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.25); max-width: 220px; opacity: 0; transform: translateY(8px) scale(0.95); transition: opacity 0.3s, transform 0.3s; pointer-events: none; cursor: pointer; }
.wa-bubble.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.wa-btn { width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.45); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; position: relative; }
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.6); }
.wa-dot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; background: #ff4444; border-radius: 50%; border: 2px solid #0a0a0a; animation: wapulse 2s infinite; }
@keyframes wapulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }

/* ── RESPONSIVO ── */
@media (max-width: 900px) {
  nav#navbar { padding: 0 20px; }
  .nav-links {
    display: none;
    position: fixed; top: 72px; left: 0; right: 0;
    background: #0a0a0a;
    flex-direction: column;
    padding: 20px 20px 28px;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links li:last-child a { border-bottom: none; }
  .hamburger { display: flex; }

  footer { padding: 40px 20px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; text-align: center; margin-bottom: 24px; }
  .footer-brand { text-align: center; }
  .footer-brand .nav-logo { justify-content: center; }
  .footer-brand p { margin: 10px auto 0; max-width: 100%; }
  .footer-col { text-align: center; }
  .footer-col h4 { margin-bottom: 12px; }
  .footer-menu { text-align: center; }
  .footer-menu-grid { justify-content: center; }
  .footer-menu-grid ul { align-items: center; }
  .footer-contact { text-align: center; align-items: center; justify-self: center; }
  .footer-contact ul { align-items: center; }
  .footer-contact ul a { word-break: break-all; overflow-wrap: break-word; }
  .footer-col ul { align-items: center; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; padding-top: 16px; }

  .wa-float { bottom: 16px; right: 16px; }
}
