/* =========================================================================
   MySaaSLux — Site Chrome (Nav + Footer + Buttons + Reveals)
   Single source of truth for the shared header/footer across the whole site.
   Loaded BEFORE each page's own <style> so page-level rules can still win
   when a page intentionally overrides (e.g. the home keeps position:fixed).
   Colours are literal so this file never depends on a page's :root.
   ========================================================================= */

:root { --nav-h: 52px; }

/* ---- SKIP LINK ---- */
.skip-link { position: absolute; top: -100px; left: 16px; background: #111111; color: #ffffff; padding: 8px 16px; z-index: 9999; border-radius: 0 0 8px 8px; font-size: 0.85rem; text-decoration: none; }
.skip-link:focus { top: 52px; }

/* ---- BUTTONS (shared) ---- */
.btn { display: inline-flex; align-items: center; gap: 6px; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.9rem; padding: 11px 22px; border-radius: 8px; border: none; cursor: pointer; text-decoration: none; transition: background 0.15s, transform 0.15s, color 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: #111111; color: #ffffff; }
.btn-dark:hover { background: #2a2a2a; }
.btn-lime { background: #AEF639; color: #111111; font-weight: 700; }
.btn-lime:hover { background: #8DC92D; }
.btn-ghost { background: transparent; color: #111111; border: 1.5px solid rgba(0,0,0,0.18); }
.btn-ghost:hover { border-color: #111111; background: rgba(0,0,0,0.04); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { font-size: 0.8rem; padding: 7px 15px; }

/* ---- NAVBAR ----
   Default is sticky (interior pages that had no fixed bar previously).
   Pages that self-manage their top spacing (home, tools) keep their own
   position:fixed rule via their inline <style>, which loads after this file. */
.navbar { position: sticky; top: 0; left: 0; right: 0; height: var(--nav-h); background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.07); z-index: 1000; }
.navbar.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; }
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; flex-shrink: 0; }
.nav-logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.nav-logo-name { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1rem; color: #111111; letter-spacing: -0.01em; }
.nav-logo-dot { color: #AEF639; }
.nav-links { display: flex; align-items: center; list-style: none; gap: 0; margin: 0; padding: 0; margin-right: 16px; }
.nav-links li { list-style: none; }
.nav-links a { font-family: 'DM Sans', sans-serif; font-size: 0.84rem; font-weight: 500; color: #111111; opacity: 0.72; text-decoration: none; padding: 6px 11px; border-radius: 6px; white-space: nowrap; transition: opacity 0.15s, background 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; background: rgba(0,0,0,0.05); }
.nav-lang { display: flex; align-items: center; gap: 1px; margin-right: 14px; }
.nav-lang a, .nav-lang span.active { background: none; border: none; cursor: pointer; font-size: 0.73rem; font-weight: 600; color: #6b6a67; padding: 3px 6px; border-radius: 4px; font-family: 'DM Sans', sans-serif; text-decoration: none; transition: color 0.15s, background 0.15s; }
.nav-lang a:hover { color: #111111; background: rgba(0,0,0,0.06); }
.nav-lang span.active { color: #111111; background: rgba(0,0,0,0.06); }
.nav-lang .sep { color: #ebebea; font-size: 0.8rem; padding: 0 1px; }
/* Nav CTA — force consistent look even when a page defines its own .btn */
.navbar .nav-cta { display: inline-flex; align-items: center; width: auto; background: #111111; color: #ffffff; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.8rem; line-height: 1.2; padding: 7px 15px; border-radius: 8px; border: none; white-space: nowrap; }
.navbar .nav-cta:hover { background: #2a2a2a; transform: translateY(-1px); }

/* ---- HAMBURGER + MOBILE MENU ---- */
.nav-hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: #111111; transition: 0.2s; border-radius: 1px; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
@media (max-width: 700px) {
  .navbar .nav-links { display: none; }
  .navbar .nav-cta { display: none; }
  .navbar .nav-lang { margin-right: 8px; }
  .navbar .nav-hamburger { display: flex; }
  .navbar .nav-links.open { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #ffffff; padding: 16px 24px; flex-direction: column; align-items: flex-start; border-bottom: 1px solid #ebebea; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .navbar .nav-links.open a { padding: 10px 0; font-size: 0.95rem; opacity: 0.9; }
}

/* ---- FOOTER ---- */
.footer { background: #111111; padding: 48px 24px 32px; }
.footer-inner { max-width: 960px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 36px; flex-wrap: wrap; }
.footer-brand-svg { margin-bottom: 8px; display: block; }
.footer-brand-name { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1rem; color: #ffffff; }
.footer-brand-dot { color: #AEF639; }
.footer-tagline { font-size: 0.76rem; color: rgba(255,255,255,0.3); margin-top: 6px; line-height: 1.6; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-family: 'DM Sans', sans-serif; font-size: 0.78rem; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.15s; }
.footer-nav a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 22px; }
.footer-legal { font-size: 0.71rem; color: rgba(255,255,255,0.22); line-height: 1.7; }
.footer-legal-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.footer-legal-row a { color: rgba(255,255,255,0.3); text-decoration: none; font-size: 0.71rem; transition: color 0.15s; }
.footer-legal-row a:hover { color: rgba(255,255,255,0.65); }

/* ---- MICRO-REVEALS (fail-open: content visible by default) ---- */
.reveal-init { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal-init.reveal-in { opacity: 1; transform: none; }
.reveal-init[data-reveal-delay="1"] { transition-delay: .08s; }
.reveal-init[data-reveal-delay="2"] { transition-delay: .16s; }
.reveal-init[data-reveal-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal-init { opacity: 1 !important; transform: none !important; transition: none; } }
