/* ==========================================================================
   TCC - Navbar y Footer Components
   ========================================================================== */

/* Navbar Floating Pill */
.navbar-container {
  width: 100%;
  display: flex;
  justify-content: center;
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 16px;
}

.navbar {
  width: 100%;
  max-width: 1180px;
  height: 74px;
  background: var(--primary-red);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 10px 30px rgba(215, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar:hover {
  box-shadow: 0 12px 36px rgba(215, 0, 0, 0.5), 0 6px 14px rgba(0, 0, 0, 0.25);
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo a {
  display: flex;
  align-items: center;
}

.navbar .logo img {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  transition: transform var(--transition-fast);
}

.navbar .logo img:hover {
  transform: scale(1.04);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* Interactive Search Bar */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 0;
  height: 42px;
  border: none;
  outline: none;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s, padding 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-input.active {
  width: 240px;
  padding: 0 18px;
  opacity: 1;
  pointer-events: auto;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Menu Dropdown Modal / Popup */
.menu-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  background: #ffffff;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 1001;
  animation: fadeInDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
}

.menu-dropdown.active {
  display: flex;
}

.menu-dropdown a, .menu-dropdown button {
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: #ffffff;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
  border-bottom: 1px solid #f1f5f9;
}

.menu-dropdown a:last-child, .menu-dropdown button:last-child {
  border-bottom: none;
}

.menu-dropdown a:hover, .menu-dropdown button:hover {
  background: #f8fafc;
  color: var(--primary-red);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
footer {
  width: 100%;
  background: var(--bg-footer);
  position: relative;
  z-index: 2;
  margin-top: auto;
  border-top: 3px solid var(--accent-gold);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  text-align: center;
  color: var(--text-white);
}

.footer-logo {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
}

.footer-logo img {
  width: 520px;
  max-width: 90%;
  height: auto;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-icon-svg {
  width: 30px;
  height: 30px;
  color: #eab308;
  margin-bottom: 10px;
}

.footer-address {
  font-size: 16px;
  line-height: 1.5;
  color: #f1f5f9;
  font-weight: 400;
}

.footer-phone {
  font-size: 17px;
  color: #f1f5f9;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}

.footer-super {
  margin: 28px 0;
  display: flex;
  justify-content: center;
}

.footer-super img {
  width: 220px;
  max-width: 80%;
  height: auto;
  opacity: 0.95;
  transition: opacity var(--transition-fast);
}

.footer-super img:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 13px;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.copyright {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 400;
}

/* Responsive Styles for Navbar & Footer */
@media (max-width: 768px) {
  .navbar-container {
    top: 14px;
    padding: 0 12px;
  }

  .navbar {
    height: 62px;
    padding: 0 18px;
  }

  .navbar .logo img {
    height: 38px;
  }

  .search-input.active {
    width: 170px;
    font-size: 13px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .icon-btn svg {
    width: 19px;
    height: 19px;
  }

  .footer-content {
    padding: 36px 16px 32px;
  }

  .footer-logo img {
    width: 320px;
  }

  .footer-address {
    font-size: 14px;
  }

  .footer-phone {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .footer-super img {
    width: 170px;
  }

  .footer-links {
    gap: 12px;
  }

  .footer-links a {
    font-size: 12px;
  }

  .copyright {
    font-size: 12px;
  }
}
