/* ═══════════════════════════════════════════════════
   SHARED-PT.CSS — Arka Company Portugal
   Nav, Footer e WhatsApp Widget
   ═══════════════════════════════════════════════════ */

/* overflow-x no html (não no body) — body com overflow:hidden quebra position:fixed */
html { overflow-x: hidden; }

:root {
  --navy:   #09090f;
  --dark:   #101018;
  --dark2:  #18181f;
  --dark3:  #202028;
  --border: rgba(255,255,255,0.08);
  --border2:rgba(255,255,255,0.14);
  --white:  #ffffff;
  --off-white:#f0ece4;
  --muted:  rgba(255,255,255,0.55);
  --accent: #4fb5c8;
  --accent2:#3aa0b3;
  --text:   #e4e0d8;
  --radius: 4px;
}

/* ── 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(9,9,15,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; align-items: center; }
.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: #09090f !important; padding: 10px 22px; border-radius: 4px; font-weight: 700 !important; font-size: 13px !important; transition: background 0.2s !important; }
.nav-cta:hover { background: #4fb5c8 !important; color: #09090f !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; }

/* ── DROPDOWN SECTORES ── */
.nav-dropdown-wrap { position: relative; display: flex; align-items: center; }
.nav-dropdown-btn {
  background: none; border: none; cursor: pointer;
  padding: 0; margin: 0;
  color: rgba(255,255,255,0.45); font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; display: flex; align-items: center; gap: 4px;
  transition: color 0.2s; font-family: inherit;
  line-height: inherit; vertical-align: middle;
}
.nav-dropdown-btn:hover,
.nav-dropdown-wrap.open .nav-dropdown-btn { color: #ffffff; }
.nav-chevron { transition: transform 0.25s; }
.nav-dropdown-wrap.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  background: rgba(16,16,24,0.98); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 8px 0; min-width: 220px;
  list-style: none; backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 200;
}
.nav-dropdown-wrap.open .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown li a {
  display: block; padding: 10px 20px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7);
  text-decoration: none; transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-dropdown li a:hover { color: var(--accent); background: rgba(79,181,200,0.08); }

/* ── 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: 80px; }
.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); }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: var(--dark2);
  border-top: 1px solid var(--border2);
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 20px; border-radius: 4px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
}
.cookie-accept { background: var(--accent); color: var(--navy); }
.cookie-reject { background: transparent; border: 1px solid var(--border2) !important; color: var(--muted); }
.cookie-reject:hover { color: var(--white); }

/* ── 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 #09090f; animation: wapulse 2s infinite; }
@keyframes wapulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }

/* ── GDPR BADGE ── */
.gdpr-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted); text-transform: uppercase;
}
.gdpr-badge::before {
  content: '🔒';
  font-size: 13px;
}

/* ── RESPONSIVO ── */
/* Nav compacto entre 901–1100px */
@media (max-width: 1100px) and (min-width: 901px) {
  .nav-links { gap: 14px; }
  .nav-links a, .nav-dropdown-btn { font-size: 13px; }
}

@media (max-width: 900px) {
  /* Dropdown mobile — inline, sem absolute */
  .nav-dropdown-wrap { width: 100%; }
  .nav-dropdown-btn {
    width: 100%; padding: 12px 0; font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    justify-content: space-between;
  }
  .nav-dropdown {
    position: static; transform: none !important;
    background: rgba(255,255,255,0.04); border: none; border-radius: 0;
    padding: 0; min-width: 0; box-shadow: none; backdrop-filter: none;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s;
    opacity: 1; visibility: visible;
  }
  .nav-dropdown-wrap.open .nav-dropdown {
    max-height: 300px; transform: none !important;
  }
  .nav-dropdown li a {
    padding: 10px 16px 10px 24px; font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-dropdown li:last-child a { border-bottom: none; }
}

@media (max-width: 900px) {
  nav#navbar { padding: 0 20px; }
  .nav-links {
    display: none;
    position: fixed; top: 72px; left: 0; right: 0;
    background: #09090f;
    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; }
  #cookie-banner { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
}
