/* ============================================================
   NAVBAR & FOOTER
   ============================================================ */

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all .3s ease;
  padding: 1.2rem 0;
}
.navbar.scrolled {
  background: rgba(15,28,18,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: .8rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #fff;
}
.navbar-logo svg,
.navbar-logo img {
  display: block;
  height: 44px;
  width: auto;
}
.footer-logo img {
  display: block;
  height: 50px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.nav-link.active { color: var(--gold-400); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.navbar-tel {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  transition: color .2s;
}
.navbar-tel:hover { color: var(--gold-400); }
.navbar-tel svg { width: 16px; height: 16px; }

/* Hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  background: none;
  border: none;
  cursor: pointer;
}
.navbar-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s ease;
}
.navbar-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
@media (max-width: 900px) {
  .navbar-nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(340px, 85vw);
    height: 100vh;
    background: var(--dark-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: .25rem;
    transition: right .35s var(--ease);
    box-shadow: -4px 0 30px rgba(0,0,0,.3);
    z-index: 999;
    overflow-y: auto;
  }
  .navbar-nav.open { right: 0; }
  .nav-link { font-size: 1.1rem; padding: .75rem 1rem; width: 100%; }
  .navbar-toggle { display: flex; z-index: 1000; }
  .navbar-tel span { display: none; }
  .mobile-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 998;
  }
  .mobile-overlay.open { display: block; }
}
@media (max-width: 480px) {
  .navbar-actions .btn { display: none; }
}

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #25D366;
  color: white;
  border-radius: 100px;
  padding: .75rem 1.25rem .75rem .75rem;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all .3s var(--ease);
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
}
.whatsapp-float svg { width: 24px; height: 24px; flex-shrink: 0; }
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: #25D366;
  z-index: -1;
  animation: pulse-ring 2s ease-out infinite;
}
@media (max-width: 480px) {
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: .75rem; border-radius: 50%; }
}

/* ── Footer ── */
.footer {
  background: var(--dark-900);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .5rem;
}
.footer-brand-text span { color: var(--gold-500); }
.footer-tagline { font-size: .875rem; line-height: 1.6; margin-bottom: 1.5rem; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  margin-bottom: .6rem;
  transition: color .2s;
}
.footer-contact-item:hover { color: var(--white); }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--gold-500); flex-shrink: 0; }

.footer-col-title {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-link {
  font-size: .875rem;
  transition: color .2s;
  padding: .1rem 0;
}
.footer-link:hover { color: var(--white); }

.footer-trust {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.footer-trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
}
.footer-trust-item svg { width: 16px; height: 16px; color: var(--green-500); flex-shrink: 0; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: .8rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal a { transition: color .2s; }
.footer-legal a:hover { color: var(--white); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Footer social links ── */
.footer-socials {
  display: flex;
  gap: .6rem;
  margin-top: 1.25rem;
}
.footer-social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  transition: background .2s, color .2s, border-color .2s;
}
.footer-social-link:hover {
  background: rgba(255,255,255,.14);
  color: var(--white);
  border-color: rgba(255,255,255,.2);
}
.footer-social-link svg { width: 16px; height: 16px; }

/* ── Cookie Banner (nav-footer scope) ──
   Full implementation lives in sections.css;
   this block handles the slide-up keyframe and
   any interaction states triggered from nav context. */
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner {
  /* Animate on first render if .visible class applied immediately */
  animation: none;
}
.cookie-banner.animate-in {
  animation: cookieSlideUp .45s cubic-bezier(.22, 1, .36, 1) both;
}

/* ── Navbar: active page underline indicator ── */
.nav-link.active {
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: .1rem;
  left: .75rem;
  right: .75rem;
  height: 2px;
  background: var(--gold-400);
  border-radius: 2px;
}

/* ── Navbar: dropdown menus ── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 220px;
  background: var(--dark-900);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
  z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-dropdown-item:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
}
.nav-dropdown-item svg {
  width: 16px; height: 16px;
  color: var(--green-500);
  flex-shrink: 0;
}

/* ── Navbar scroll-progress bar ── */
.navbar-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--green-500), var(--gold-500));
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Footer newsletter row (optional) ── */
.footer-newsletter {
  display: flex;
  gap: .5rem;
  margin-top: 1.25rem;
}
.footer-newsletter .form-input {
  flex: 1;
  padding: .55rem .85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: var(--white);
  font-size: .85rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.footer-newsletter .form-input::placeholder { color: rgba(255,255,255,.35); }
.footer-newsletter .form-input:focus {
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
}
.footer-newsletter .btn-sm {
  padding: .55rem 1rem;
  font-size: .8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Footer badge strip ── */
.footer-badges {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: .3rem .7rem;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
}
.footer-badge svg { width: 12px; height: 12px; color: var(--green-500); }
