/* =============================================================================
   CSL Layout Styles - Extracted from BaseLayout.astro <style is:global>
   Nav + Footer + Dropdown + Mobile responsive
   ============================================================================= */

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.85rem 2rem; display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,252,245,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,226,213,0.5);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.04); }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--text); }
.nav-logo-text span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { color: var(--text-soft); text-decoration: none; font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { background: var(--gold) !important; color: var(--white) !important; padding: 0.5rem 1.15rem; border-radius: 8px; font-weight: 700 !important; transition: background 0.2s !important; }
.nav-cta:hover { background: #C4920F !important; }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; min-width: 44px; min-height: 44px; }

/* NAV DROPDOWN */
.nav-dropdown { position: relative; }
.nav-dropdown > span { color: var(--text-soft); font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: color 0.2s; }
.nav-dropdown > span:hover { color: var(--gold); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(4px);
  list-style: none; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08); padding: 0.5rem 0; min-width: 200px;
  opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s;
}
.nav-dropdown:hover > .nav-dropdown-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu li { padding: 0; }
.nav-dropdown-menu a { display: block; padding: 0.5rem 1rem; font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; color: var(--text-mid); text-decoration: none; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--gold-pale); color: var(--gold); }

/* FOOTER */
.footer { background: var(--teal-footer); padding: 2rem; }
.footer-inner { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--text); }
.footer-powered { font-size: 0.7rem; color: var(--text-mid); margin-top: 0.15rem; }
.footer-powered a { color: var(--text); font-weight: 600; text-decoration: none; }
.footer-powered a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { color: var(--text-mid); text-decoration: none; font-family: var(--font-display); font-size: 0.76rem; font-weight: 600; transition: color 0.2s; padding: 0.5rem 0; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.66rem; color: var(--text-soft); }

/* MOBILE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,252,245,0.98); padding: 1.25rem 2rem; border-bottom: 1px solid var(--border-light); max-height: 70vh; overflow-y: auto; }
  .nav-links.open a { padding: 0.5rem 0; min-height: 44px; display: flex; align-items: center; }
  .nav-links.open .nav-dropdown-menu { position: static; opacity: 1; pointer-events: auto; transform: none; box-shadow: none; border: none; background: transparent; padding: 0.25rem 0 0 1rem; min-width: auto; }
  .nav-links.open .nav-dropdown > span { color: var(--text-soft); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 0.75rem 1rem; }
  .footer-links a { padding: 0.6rem 0.25rem; min-height: 44px; display: flex; align-items: center; font-size: 0.82rem; }
}
