/* ===================================================
   Alassatech Landing Page — Shared Nav & Footer Styles
   Version: 2.0
   =================================================== */

/* ─── Nested Dropdown (Verticals) ──────────────── */
.nav-has-nested { position: relative; }

/* Invisible bridge: keeps hover active while cursor moves from trigger to submenu */
.nav-has-nested::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  bottom: 0;
  width: 8px;
}

.nav-dropdown-nested-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0.6rem 0.875rem;
  font-size: 0.8625rem; font-weight: 500;
  color: var(--slate-700, #334155);
  border-radius: var(--r, 10px);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap; cursor: default; list-style: none;
}
.nav-has-nested:hover .nav-dropdown-nested-trigger {
  background: var(--blue-50, #eff6ff);
  color: var(--blue-600, #2563eb);
}
.nav-nested-chevron {
  width: 12px; height: 12px; flex-shrink: 0;
  color: var(--slate-400, #94a3b8);
  margin-left: 0.375rem; transition: color 0.15s;
}
.nav-has-nested:hover .nav-nested-chevron { color: var(--blue-600, #2563eb); }

.nav-dropdown-nested {
  position: absolute; left: calc(100% + 4px); top: -4px;
  background: var(--white, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--r-lg, 16px);
  box-shadow: var(--shadow-lg, 0 10px 32px rgba(0,0,0,0.1));
  padding: 0.375rem; min-width: 240px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 400; list-style: none;
}
.nav-has-nested:hover .nav-dropdown-nested { opacity: 1; pointer-events: auto; }
.nav-dropdown-nested li { list-style: none; }
.nav-dropdown-nested a {
  display: block; padding: 0.6rem 0.875rem;
  font-size: 0.8625rem; font-weight: 500;
  color: var(--slate-700, #334155);
  border-radius: var(--r, 10px);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap; text-decoration: none;
}
.nav-dropdown-nested a:hover {
  background: var(--blue-50, #eff6ff);
  color: var(--blue-600, #2563eb);
}

/* ─── 4-Column Footer ──────────────────────────── */
.footer-4col { background: var(--navy, #0f172a); padding: 4rem 0 0; }
.footer-4col-inner { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.footer-4col-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.f4-logo-wrap { margin-bottom: 1.125rem; }
.f4-logo-wrap img { height: 38px; width: auto; object-fit: contain; display: block; }
.f4-brand-desc {
  font-size: 0.875rem; color: rgba(255,255,255,0.45);
  line-height: 1.75; max-width: 280px; margin-bottom: 1.25rem;
}
.f4-address {
  display: flex; align-items: flex-start; gap: 0.5rem; font-style: normal;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
  line-height: 1.65; margin-bottom: 1.375rem;
}
.f4-address svg { width: 12px; height: 12px; flex-shrink: 0; margin-top: 2px; }
.f4-social { display: flex; gap: 0.5rem; }
.f4-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r, 10px);
  border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.45);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  text-decoration: none;
}
.f4-social a:hover {
  border-color: var(--blue-500, #3b82f6);
  color: var(--blue-500, #3b82f6);
  background: rgba(37,99,235,0.15);
}
.f4-social svg { width: 15px; height: 15px; }
.f4-col-title {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 1.25rem;
}
.f4-vertical-label {
  font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.32);
  margin-bottom: 0.75rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07); letter-spacing: 0.05em;
}
.f4-nav-list { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.f4-nav-list a {
  font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.5);
  transition: color 0.15s; text-decoration: none;
}
.f4-nav-list a:hover { color: #fff; }
.f4-wa-btn {
  display: flex; align-items: center; gap: 0.625rem;
  background: rgba(37,211,102,0.12); border: 1px solid rgba(37,211,102,0.22);
  border-radius: var(--r, 10px); padding: 0.8rem 1.125rem; margin-bottom: 0.875rem;
  font-size: 0.9375rem; font-weight: 600; color: #4ade80;
  transition: background 0.2s, border-color 0.2s; text-decoration: none;
}
.f4-wa-btn:hover { background: rgba(37,211,102,0.2); border-color: rgba(37,211,102,0.45); }
.f4-wa-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.f4-contact-tel, .f4-contact-email {
  font-size: 0.8125rem; color: rgba(255,255,255,0.35);
  margin-bottom: 0.625rem; letter-spacing: 0.01em;
}
.f4-demo-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 0.7rem 1.375rem; margin-top: 1rem;
  background: var(--blue-600, #2563eb); color: #fff;
  font-size: 0.875rem; font-weight: 600; border-radius: var(--r, 10px);
  box-shadow: 0 4px 18px rgba(37,99,235,0.3);
  transition: background 0.2s, transform 0.15s; text-decoration: none;
  border: none; cursor: pointer; font-family: inherit;
}
.f4-demo-btn:hover { background: var(--blue-700, #1d4ed8); transform: translateY(-2px); }
.footer-4col-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.5rem; gap: 1rem; flex-wrap: wrap;
  max-width: 1160px; margin: 0 auto;
}
.footer-4col-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.2); }
.footer-4col-bottom-links { display: flex; gap: 1.5rem; }
.footer-4col-bottom-links a {
  font-size: 0.8rem; color: rgba(255,255,255,0.3);
  transition: color 0.15s; text-decoration: none;
}
.footer-4col-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 1023px) {
  .footer-4col-grid { grid-template-columns: 1fr 1fr; }
  .footer-4col-grid > *:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .footer-4col-grid { grid-template-columns: 1fr; gap: 2rem; }
}
