/* page.css — shared nav + footer styles for Wendy sub-pages */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --indigo: #4F46E5;
  --indigo-deep: #3730A3;
  --indigo-mid: #4338CA;
  --indigo-light: #EEF2FF;
  --indigo-pale: #F5F3FF;
  --purple: #7C3AED;
  --lavender: #C4B5FD;
  --amber: #EF9F27;
  --ink: #0F0E1A;
  --ink-mid: #3a3b4e;
  --ink-light: #7a7b8e;
  --white: #ffffff;
  --franklin: 'Rubik', system-ui, sans-serif;
  --serif: 'Rubik', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--franklin);
  background: #FAFAFA;
  color: var(--ink);
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

/* NAV */
nav#wendy-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(79,70,229,0.1);
  transition: box-shadow 0.3s, border-color 0.3s;
}
nav#wendy-nav.scrolled {
  box-shadow: 0 2px 24px rgba(79,70,229,0.10);
  border-bottom-color: rgba(79,70,229,0.15);
}
.nav-logo { text-decoration: none; display: flex; align-items: center; line-height: 1; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.875rem; font-weight: 400; color: var(--ink-mid); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--indigo); }
.nav-links a.nav-links-a { color: #4F46E5; }
.nav-links a.nav-links-a:hover { color: var(--indigo-deep); }
.nav-item { position: relative; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 100px;
  font-family: var(--franklin); font-size: 0.875rem; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none; transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, #5c54ef 0%, #4338CA 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(79,70,229,0.22);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,70,229,0.38);
}

/* Nav trigger + dropdown */
.nav-trigger {
  display: flex; align-items: center; gap: 5px;
  cursor: pointer; font-size: 0.9375rem; font-weight: 500;
  color: #4F46E5; background: none; border: none;
  font-family: var(--franklin); transition: color 0.2s, background 0.2s;
  padding: 6px 10px; border-radius: 8px;
}
.nav-trigger:hover { color: var(--indigo); background: var(--indigo-light); }
.nav-trigger svg { transition: transform 0.2s; flex-shrink: 0; }
.nav-item.open .nav-trigger svg { transform: rotate(180deg); }
.nav-item.open .nav-trigger { color: var(--indigo); background: var(--indigo-light); }
.nav-dd-panel {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: white; border-radius: 16px;
  box-shadow: 0 8px 40px rgba(79,70,229,0.14), 0 0 0 1px rgba(79,70,229,0.08);
  padding: 10px; min-width: 260px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}
.nav-item.open .nav-dd-panel { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dd-item { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; transition: background 0.15s; cursor: pointer; }
.nav-dd-item:hover { background: var(--indigo-light); }
.nav-dd-item:hover .nav-dd-title { color: var(--indigo); }
.nav-dd-title { font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.nav-dd-desc { font-size: 0.78rem; color: var(--ink-light); line-height: 1.4; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none; z-index: 101;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #4F46E5; border-radius: 2px; transition: all 0.25s; }
.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 nav overlay */
.mobile-nav {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: white; z-index: 9000;
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; cursor: pointer;
  padding: 8px; display: flex; align-items: center; justify-content: center;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  font-family: var(--franklin); font-size: 1.25rem; font-weight: 500;
  color: var(--ink); text-decoration: none; padding: 8px 0; display: block;
}
.mobile-nav-link:hover { color: var(--indigo); }

/* Wendy brand name inline */
.wendy-inline { display: inline; color: #7C3AED; font-weight: 700; font-style: italic; }
.wendy-inline.indigo { color: #4F46E5; }
.wendy-inline.invert { color: #ffffff; }

/* Page body padding for fixed nav */
.page-main { padding-top: 80px; min-height: calc(100vh - 220px); }

/* FOOTER */
footer {
  background: #0F0E1A;
  padding: 32px 60px 24px;
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 1;
}
.footer-inner { max-width: none; margin: 0; }
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 24px; gap: 40px; flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; }
.footer-logo img { height: 44px; width: auto; display: block; }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.4); margin-top: 12px; font-weight: 300; }
.footer-links-group h4 {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.footer-links-group a {
  display: block; font-size: 0.875rem; color: rgba(255,255,255,0.6);
  text-decoration: none; margin-bottom: 10px; transition: color 0.2s; font-weight: 300;
}
.footer-links-group a:hover { color: var(--lavender); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8125rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  nav#wendy-nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  nav#wendy-nav > .btn { display: none; }
  .page-main { padding-top: 68px; }
}
@media (max-width: 680px) {
  footer { padding: 40px 20px 24px; }
  .footer-logo img { height: 36px; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
