/* ============================================
   SGOLD — Navbar & Footer Components
   ============================================ */

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-logo-text .brand {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
}

.navbar-logo-text .sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Nav Links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-nav a {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 5px;
  transition: var(--transition);
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 2px;
}

.navbar-nav a:hover {
  color: var(--red);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
  transform: scaleX(1);
}

.navbar-nav a.active {
  color: var(--red);
}

/* Navbar CTA */
.navbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 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 Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  padding: 32px 24px;
  gap: 4px;
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: block;
  transition: var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--red);
  padding-left: 8px;
}

.mobile-menu .mobile-cta {
  margin-top: 24px;
}

.mobile-menu .mobile-cta a {
  border-bottom: none;
  padding: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark-2);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Footer Column 1 — Brand */
.footer-brand .logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand .brand-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

/* Footer Column 2 & 3 — Links / Contact */
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '›';
  color: var(--red);
  font-size: 1.1rem;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

.footer-contact-item .icon {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.footer-contact-item a:hover {
  color: var(--red-light);
}

/* Footer Bottom Bar */
.footer-bottom {
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-inner a {
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-bottom-inner a:hover {
  color: var(--red-light);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  position: relative;
}

.whatsapp-float a:hover {
  background: #1ebe5d;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.whatsapp-float .tooltip {
  position: absolute;
  right: 70px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: var(--transition);
}

.whatsapp-float .tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--dark);
}

.whatsapp-float a:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Pulse animation on WhatsApp btn */
.whatsapp-float a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  animation: whatsappPulse 2.5s ease-out infinite;
  z-index: -1;
}

@keyframes whatsappPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================
   PRODUCT CARD (shared across pages)
   ============================================ */
.product-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--red-light);
}

.product-card-image {
  background: #f8f8f8;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  overflow: hidden;
}

.product-card-image img {
  max-height: 160px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(192, 32, 26, 0.08);
  border: 1px solid rgba(192, 32, 26, 0.15);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.product-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.product-card-body p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.product-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.product-card-specs .spec-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: #f0f0f0;
  border-radius: 4px;
  padding: 3px 9px;
}

.product-card-link {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  text-decoration: none;
  margin-top: auto;
}

.product-card-link:hover {
  gap: 10px;
  color: var(--red-dark);
}

/* ============================================
   RESPONSIVE — Navbar & Footer
   ============================================ */
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-cta .btn { display: none; }
  .hamburger { display: flex; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float a {
    width: 52px;
    height: 52px;
  }
}
