/* ==========================================================================
   SMESS — Shared Public Marketing Chrome (header + footer)
   Single source of truth for the navbar and footer across ALL public pages:
   index.php, faq.php, contact.php, legal.php, template_request.php.
   Self-contained: uses literal colors so it renders identically regardless of
   each page's own :root palette. Do NOT redefine .navbar/.footer in pages.
   ========================================================================== */

/* NAVBAR */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 40px;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 211, 102, 0.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.navbar-brand .logo-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.navbar-brand span { font-size: 1.4em; font-weight: 800; color: #ffffff; letter-spacing: -0.5px; }
.navbar-links { display: flex; gap: 32px; align-items: center; }
.navbar-links a {
    color: #9ca3af; text-decoration: none;
    font-size: 0.9em; font-weight: 500; transition: color 0.2s;
}
.navbar-links a:hover { color: #25D366; }
.btn-nav {
    padding: 10px 24px; background: #25D366;
    color: #030712 !important;
    border-radius: 8px; font-weight: 700; font-size: 0.9em; transition: all 0.3s;
    text-decoration: none;
}
.btn-nav:hover {
    background: #34eb7a; transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}
.btn-nav-ghost {
    padding: 10px 20px; background: transparent;
    color: #e5e7eb !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px; font-weight: 600; font-size: 0.9em; transition: all 0.25s;
    text-decoration: none;
}
.btn-nav-ghost:hover {
    border-color: #25D366; color: #25D366 !important;
    background: rgba(37, 211, 102, 0.06);
}
.currency-toggle { display: flex; align-items: center; gap: 3px; background: rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 3px; margin-left: 8px; }
.curr-btn { background: none; border: none; color: rgba(255, 255, 255, 0.55); font-size: 0.78em; font-weight: 700; padding: 5px 11px; border-radius: 16px; cursor: pointer; transition: all 0.2s; letter-spacing: 0.3px; }
.curr-btn.active { background: #25D366; color: #030712; }
.curr-btn:hover:not(.active) { color: #ffffff; background: rgba(255, 255, 255, 0.12); }

/* HAMBURGER / MOBILE NAV */
.nav-hamburger {
    display: none; flex-direction: column; justify-content: center;
    align-items: center; gap: 5px;
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-hamburger span {
    display: block; width: 20px; height: 2px;
    background: #e5e7eb; border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
    position: fixed; top: 60px; left: 0; right: 0; z-index: 99;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 211, 102, 0.15);
    padding: 16px 20px 24px;
    display: flex; flex-direction: column; gap: 4px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0.25s;
    pointer-events: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.mobile-nav.open {
    transform: translateY(0); opacity: 1; visibility: visible;
    pointer-events: auto;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0s;
}
.mobile-nav-link {
    color: #d1d5db; text-decoration: none;
    font-size: 1em; font-weight: 500;
    padding: 14px 12px; border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-nav-link:hover { color: #25D366; background: rgba(37, 211, 102, 0.06); }
.mobile-nav-cta {
    margin-top: 8px; background: #25D366; color: #030712 !important;
    text-align: center; font-weight: 700; border-radius: 10px;
    border-bottom: none; padding: 14px;
}
.mobile-nav-cta:hover { background: #34eb7a !important; }
.mobile-curr-toggle { margin-top: 12px; justify-content: center; }
.mobile-nav-overlay {
    position: fixed; inset: 0; z-index: 98;
    background: rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.mobile-nav-overlay.open {
    opacity: 1; visibility: visible;
    transition: opacity 0.25s ease, visibility 0s linear 0s;
}

/* FOOTER */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 56px 20px 32px; background: #030712;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.site-footer .footer-inner { max-width: 1200px; margin: 0 auto; }
.site-footer .footer-top {
    display: grid; grid-template-columns: 1.4fr 3fr; gap: 48px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer .footer-about { max-width: 320px; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.site-footer .footer-brand .logo-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.site-footer .footer-brand span { font-weight: 700; color: #d1d5db; font-size: 1.15em; }
.site-footer .footer-tagline { color: #6b7280; font-size: 0.88em; line-height: 1.6; }
.site-footer .footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.site-footer .footer-col { display: flex; flex-direction: column; gap: 12px; }
.site-footer .footer-col h4 {
    color: #d1d5db; font-size: 0.78em; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px;
}
.site-footer .footer-col a { color: #6b7280; text-decoration: none; font-size: 0.88em; transition: color 0.2s; }
.site-footer .footer-col a:hover { color: #25D366; }
.site-footer .footer-bottom { padding-top: 24px; text-align: center; }
.site-footer .footer-copy { color: #374151; font-size: 0.8em; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .navbar { padding: 14px 24px; }
    .navbar-links { gap: 20px; }
}
@media (max-width: 768px) {
    .navbar { padding: 10px 16px; }
    .navbar-links { display: none; }
    .nav-hamburger { display: flex; }
    .site-footer { padding: 40px 16px 28px; }
    .site-footer .footer-top { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .site-footer .footer-about { max-width: none; }
    .site-footer .footer-brand { justify-content: center; }
    .site-footer .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: left; }
}
