/* ============================================================
   SHARED LAYOUT: NAV + FOOTER
   Single source of truth for header and footer styles across
   all pages (index, for-founders, for-brands, the-story).
   Edit here only — never override per-page.
   Last-wins cascade: load this AFTER per-page <style> blocks.
   ============================================================ */

/* === NAV === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)), opacity 0.5s;
}
nav.visible { transform: translateY(0); opacity: 1; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 0 var(--gutter, 32px);
}
.nav-logo {
  font-family: var(--ff-h, 'Bricolage Grotesque', system-ui, sans-serif);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  z-index: 101;
  color: var(--text, #111);
}
.nav-logo .dot { color: var(--accent, #5A5CF9); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text, #111);
  transition: color 0.3s;
  position: relative;
  text-decoration: none;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent, #5A5CF9);
  transition: width 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.nav-links a:hover { color: var(--accent, #5A5CF9); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a.active { color: var(--accent, #5A5CF9); }
.nav-links a.active:not(.nav-cta)::after { width: 100%; }

/* Nav CTA (viewfinder button) */
.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--text, #111) !important;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 13px;
  font-family: var(--ff-b, 'Poppins', system-ui, sans-serif);
  transition: background 0.4s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
              color 0.4s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.nav-cta .arm { position: absolute; background: var(--accent, #5A5CF9); transition: all 0.4s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)); }
.nav-cta .arm-tr-h { top: 0; right: 0; height: 2px; width: 35%; }
.nav-cta .arm-tr-v { top: 0; right: 0; width: 2px; height: 35%; }
.nav-cta .arm-bl-h { bottom: 0; left: 0; height: 2px; width: 35%; }
.nav-cta .arm-bl-v { bottom: 0; left: 0; width: 2px; height: 35%; }
.nav-cta:hover { background: rgba(255, 255, 255, 0.95); color: var(--accent, #5A5CF9) !important; }
.nav-cta:hover .arm-tr-h, .nav-cta:hover .arm-bl-h { width: 100%; }
.nav-cta:hover .arm-tr-v, .nav-cta:hover .arm-bl-v { height: 100%; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 101;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text, #111);
  transition: transform 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)), opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-family: var(--ff-h, 'Bricolage Grotesque', system-ui, sans-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text, #111);
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--accent, #5A5CF9); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark, #0A0A0A);
  color: var(--white, #fff);
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent, #5A5CF9);
}
footer .container {
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 0 var(--gutter, 32px);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 0;
  border-bottom: none;
}
.footer-stats {
  display: flex;
  gap: clamp(32px, 4vw, 64px);
  margin-top: 32px;
}
.footer-stat { text-align: left; }
.footer-stat-num {
  font-family: var(--ff-h, 'Bricolage Grotesque', system-ui, sans-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--accent, #5A5CF9);
  line-height: 1;
}
.footer-stat-label {
  font-size: 12px;
  color: var(--muted, rgba(255,255,255,0.4));
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.footer-brand .nav-logo {
  color: var(--white, #fff);
  font-size: 32px;
  display: inline-block;
  margin-bottom: 0;
}
.footer-brand p {
  color: var(--muted, rgba(255,255,255,0.6));
  font-size: 14px;
  margin-top: 12px;
  max-width: 280px;
  font-weight: 400;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, rgba(255,255,255,0.4));
  margin-bottom: 16px;
  font-family: var(--ff-b, 'Poppins', system-ui, sans-serif);
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: color 0.3s;
  text-decoration: none;
}
.footer-col a:hover { color: var(--accent, #5A5CF9); }
.social-icons {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  align-items: center;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: transform 0.4s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.social-icons a:hover { transform: translateY(-2px); }
.social-icons svg {
  width: 20px;
  height: 20px;
  fill: rgba(255,255,255,0.5);
  transition: fill 0.3s;
}
.social-icons a:hover svg { fill: var(--accent, #5A5CF9); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted, rgba(255,255,255,0.4));
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-stats { flex-wrap: wrap; }
}
