/* ============================================================
   NAVBAR.CSS — Cal-Valley Forklift
   Navbar sticky, logo, toggle idioma, menú móvil, footer
   ============================================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Logo ───────────────────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo svg { width: 42px; height: 42px; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-tagline {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--yellow);
  text-transform: uppercase;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Nav Links (desktop) ────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--yellow);
  background: rgba(245,158,11,0.1);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}

/* ── Nav Right Side ─────────────────────────────────────── */
.nav-right { display: flex; align-items: center; gap: 1rem; }

/* ── Language Toggle ────────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.2rem 0.4rem;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  transition: all var(--transition);
}
.lang-btn.active { color: var(--navy); background: var(--yellow); }
.lang-btn:not(.active):hover { color: var(--white); }

/* ── Phone (desktop) ────────────────────────────────────── */
.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-display);
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone svg { color: var(--yellow); }
.nav-phone:hover { color: var(--yellow); }

/* ── Hamburger ──────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ────────────────────────────────────────── */
.mobile-menu {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-nav-links { list-style: none; margin-bottom: 1rem; }
.mobile-nav-links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-nav-links a {
  display: block;
  padding: 0.85rem 0;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.95rem;
  transition: color var(--transition);
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active { color: var(--yellow); }
.mobile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
}
.mobile-phone {
  color: var(--yellow);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

/* ── Navbar spacer ──────────────────────────────────────── */
.navbar-spacer { height: 70px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 400px) { .nav-logo-name { font-size: 0.85rem; } }

/* ====================================================
   FOOTER
   ==================================================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.footer-since {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--yellow); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}
.nav-logo img {
  margin-top: 80px;S
}
.footer-contact-item svg { color: var(--yellow); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
.footer-contact-item a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--yellow); }
.footer-bottom {
  text-align: center;
  padding: 1.25rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: var(--yellow); }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
