/* ============================================
   HEADER / MEGA MENU / MOBILE SLIDE-OUT MENU
   ============================================ */

header#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: #f8f6f3;
  border-bottom: 1px solid transparent;
}

header#site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

#site-header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* Center logo */
#site-header .site-logo {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
#site-header .site-logo a { display: flex; align-items: center; gap: 8px; text-decoration: none; }
#site-header .site-logo .logo-img { height: 32px; width: auto; display: block; }
#site-header .site-logo .logo-text { font-family: 'Playfair Display', serif; font-size: 0.95rem; letter-spacing: 0.2em; color: #1a1a1a; text-transform: uppercase; font-weight: 500; }

/* Left / right nav links */
#site-header .nav-left, #site-header .nav-right { display: flex; align-items: center; gap: 1.5rem; z-index: 3; }
#site-header .nav-link {
  font-family: 'Inter', system-ui, sans-serif; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: #1a1a1a; text-decoration: none;
  padding: 0.5rem 0; display: flex; align-items: center; gap: 4px;
  transition: opacity 0.3s ease; background: none; border: none; cursor: pointer; position: relative;
}
#site-header .nav-link:hover { opacity: 0.6; }
#site-header .nav-link svg { transition: transform 0.3s ease; }
#site-header .nav-dropdown:hover .nav-link svg { transform: rotate(180deg); }
#site-header .nav-dropdown { position: relative; }

/* Mega menu dropdown */
#site-header .dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 0;
  background: #ffffff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  padding: 0; min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.25s ease; z-index: 1001; border-radius: 0;
}
#site-header .nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

#site-header .mega-menu { min-width: 480px; padding: 0; }
#site-header .mega-menu-inner { display: flex; gap: 0; background: #fff; }
#site-header .mega-menu-column { flex: 1; padding: 24px; background: #fff; }
#site-header .mega-menu-column h4 {
  font-family: 'Inter', system-ui, sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: #1a1a1a; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid #eee;
}
#site-header .mega-menu-column a {
  display: block; padding: 8px 0; font-family: 'Inter', system-ui, sans-serif; font-size: 0.8rem; color: #333;
  text-decoration: none; border-bottom: 1px solid #f5f5f5; transition: color 0.2s ease, padding-left 0.2s ease;
}
#site-header .mega-menu-column a:last-child { border-bottom: none; }
#site-header .mega-menu-column a:hover { color: #1a1a1a; padding-left: 4px; }

#site-header .mega-menu-image { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f8f6f3; padding: 16px; text-align: center; min-width: 180px; }
#site-header .mega-menu-image img { width: 100%; min-width: 160px; height: 160px; object-fit: cover; border-radius: 4px; margin-bottom: 10px; }
#site-header .mega-menu-image span { font-family: 'Inter', system-ui, sans-serif; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: #333; }

/* WhatsApp icon */
#site-header .whatsapp-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: #25D366; transition: transform 0.3s ease; text-decoration: none; }
#site-header .whatsapp-icon:hover { transform: scale(1.1); }

/* Mobile hamburger */
#site-header .mobile-controls { display: none; align-items: center; z-index: 3; }
#site-header .mobile-menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 36px; height: 36px; gap: 5px; background: none; border: none; cursor: pointer; padding: 0; }
#site-header .hamburger-line { display: block; width: 22px; height: 1.5px; background: #1a1a1a; transition: all 0.3s ease; transform-origin: center; }
#site-header .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
#site-header .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
#site-header .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile slide-out panel */
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1001; opacity: 0; visibility: hidden; transition: all 0.35s ease; }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu-panel { position: fixed; top: 0; left: 0; width: 100%; max-width: 400px; height: 100dvh; background: #fff; z-index: 1002; transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1); overflow-y: auto; display: flex; flex-direction: column; box-sizing: border-box; }
.mobile-menu-panel.active { transform: translateX(0); }
.mobile-menu-panel .mobile-menu-header { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eee; flex-shrink: 0; }
.mobile-menu-panel .mobile-menu-close { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: none; border: none; cursor: pointer; color: #1a1a1a; transition: transform 0.2s ease; padding: 0; }
.mobile-menu-panel .mobile-menu-close:hover { transform: rotate(90deg); }

.mobile-menu-panel .mobile-menu-nav { flex: 1; padding: 8px 0; display: flex; flex-direction: column; }
.mobile-menu-panel .mobile-menu-link { display: flex; align-items: center; padding: 16px 24px; font-family: 'Inter', system-ui, sans-serif; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #1a1a1a; text-decoration: none; border-bottom: 1px solid #f0f0f0; transition: background 0.2s ease; }
.mobile-menu-panel .mobile-menu-link:hover { background: #fafafa; }

.mobile-menu-panel .mobile-accordion { border-bottom: 1px solid #f0f0f0; }
.mobile-menu-panel .mobile-accordion-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 24px; background: none; border: none; font-family: 'Inter', system-ui, sans-serif; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #1a1a1a; cursor: pointer; text-align: left; }
.mobile-menu-panel .mobile-accordion-toggle:hover { background: #fafafa; }
.mobile-menu-panel .accordion-chevron { transition: transform 0.3s ease; }
.mobile-menu-panel .mobile-accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: #fafafa; }
.mobile-menu-panel .mobile-submenu-link { display: block; padding: 12px 24px 12px 36px; font-family: 'Inter', system-ui, sans-serif; font-size: 0.8rem; color: #333; text-decoration: none; border-bottom: 1px solid #f0f0f0; transition: color 0.2s ease, padding-left 0.2s ease; }
.mobile-menu-panel .mobile-submenu-link:last-child { border-bottom: none; }
.mobile-menu-panel .mobile-submenu-link:hover { color: #1a1a1a; padding-left: 40px; }

.mobile-menu-panel .mobile-menu-cta { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px; padding: 14px 24px; background: #25D366; color: #fff; font-family: 'Inter', system-ui, sans-serif; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; border-radius: 6px; transition: all 0.3s ease; flex-shrink: 0; }
.mobile-menu-panel .mobile-menu-cta:hover { background: #1faa52; transform: translateY(-1px); }
.mobile-menu-panel .mobile-menu-social { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 20px 24px; border-top: 1px solid #eee; flex-shrink: 0; }
.mobile-menu-panel .mobile-menu-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #333; transition: color 0.2s ease, transform 0.2s ease; }
.mobile-menu-panel .mobile-menu-social a:hover { color: #1a1a1a; transform: scale(1.1); }

/* Push page content below the fixed header */
main#primary { padding-top: 60px; }

/* Responsive */
@media (max-width: 1024px) {
  #site-header .nav-left, #site-header .nav-right { display: none; }
  #site-header .mobile-controls { display: flex; }
  #site-header .navbar { padding: 0 16px; height: 54px; }
  #site-header .site-logo { position: static; transform: none; margin: 0 auto; }
  #site-header .site-logo .logo-img { height: 28px; }
  #site-header .site-logo .logo-text { font-size: 0.85rem; }
  main#primary { padding-top: 54px; }
}

@media (max-width: 480px) {
  #site-header .navbar { padding: 0 12px; height: 50px; }
  #site-header .site-logo .logo-img { height: 24px; }
  #site-header .site-logo .logo-text { font-size: 0.75rem; letter-spacing: 0.15em; }
  .mobile-menu-panel { max-width: 100%; }
  main#primary { padding-top: 50px; }
}

@media (max-width: 1200px) and (min-width: 1025px) {
  #site-header .mega-menu { min-width: 420px; }
  #site-header .mega-menu-image { display: none; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: #f8f6f3; padding: 4rem 5% 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto 3rem; }
.footer-column .logo-main { font-family: 'Playfair Display', serif; font-size: 1.25rem; letter-spacing: 0.1em; color: #1a1a1a; text-decoration: none; }
.footer-column h3 { font-size: 1.125rem; color: #1a1a1a; margin-bottom: 1.5rem; font-family: 'Playfair Display', serif; font-weight: 400; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { font-size: 0.875rem; color: #333; text-decoration: none; }
.footer-links a:hover { color: #1a1a1a; }
.social-links { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.5rem; }
.social-links a { width: 40px; height: 40px; background: #1a1a1a; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.social-links a:hover { background: #333; transform: scale(1.05); }
.site-footer .copyright { text-align: center; font-size: 0.875rem; color: #666; padding-top: 1rem; border-top: 1px solid #e5e0d8; }

@media (max-width: 768px) {
  .footer-logo-column { display: none; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .footer-column h3 { font-size: 0.9rem; }
  .footer-links a { font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
