/* ═══════════════════════════════════════════════════════════════
   shared.css — Unified nav, buttons, mobile nav, footer
   Source of truth for all pages. Do NOT duplicate these styles
   in individual page <style> blocks.
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
  --forest: #0C3B2E;
  --forest-deep: #061F18;
  --emerald: #059669;
  --emerald-light: #10B981;
  --white: #FFFFFF;
  --soft-bg: #F7F8F6;
  --dark-text: #0F2114;
  --medium-gray: #6B7280;
  --border-gray: #E5E7EB;
}

/* ─── RESET ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gray);
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.nav-logo img { height: 36px; position: relative; z-index: 1; }

.nav-logo::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 60%,
    transparent 80%
  );
  z-index: 2;
  animation: logoShimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes logoShimmer {
  0%, 100% { left: -100%; }
  40%, 60% { left: 150%; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-text);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--forest); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ─── BUTTONS ─── */
.btn-ghost {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--forest);
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s;
  text-decoration: none;
}

.btn-ghost:hover { color: var(--emerald); }

.btn-primary {
  background: var(--forest);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(12, 59, 46, 0);
}

.btn-primary:hover {
  background: var(--forest-deep);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(12, 59, 46, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(12, 59, 46, 0);
}

.btn-secondary:hover {
  background: var(--soft-bg);
  border-color: var(--emerald);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12, 59, 46, 0.1);
}

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark-text);
  transition: all 0.3s ease;
  position: relative;
}

.hamburger span::before,
.hamburger span::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--dark-text);
  transition: all 0.3s ease;
  left: 0;
}

.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }

.hamburger.active span { background: transparent; }
.hamburger.active span::before { top: 0; transform: rotate(45deg); }
.hamburger.active span::after { top: 0; transform: rotate(-45deg); }

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gray);
  padding: 16px 24px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-text);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
  min-height: 44px;
  line-height: 20px;
}

.mobile-nav a:hover { background: var(--soft-bg); }

.mobile-nav .mobile-nav-login {
  color: var(--forest);
  font-weight: 600;
  text-align: center;
  border: 2px solid var(--forest);
  border-radius: 8px;
  margin-top: 8px;
  padding: 14px 16px;
}

.mobile-nav .mobile-nav-cta {
  background: var(--forest);
  color: var(--white);
  text-align: center;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 8px;
  padding: 14px 16px;
}

/* ─── FOOTER ─── */
footer {
  background: var(--forest);
  color: var(--white);
  padding: 60px 48px 32px;
}

.footer-content {
  max-width: 1120px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-section h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-section a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-section a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ─── RESPONSIVE: NAV + FOOTER ─── */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  nav { padding: 0 24px; height: 72px; }
  .hamburger { display: flex; }
  .nav-links { display: none !important; }
  .nav-right { display: none; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-section a { font-size: 14px; }
}

@media (max-width: 480px) {
  nav { padding: 0 16px; height: 60px; }
  .nav-logo img { height: 30px; width: auto; }
  .mobile-nav { top: 60px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-section h4 { font-size: 12px; margin-bottom: 12px; }
  .footer-section a { font-size: 13px; margin-bottom: 8px; }
  .footer-bottom { font-size: 11px; padding-top: 16px; }
}

@media (max-width: 375px) {
  nav { padding: 0 16px; }
  .footer-section h4 { font-size: 11px; }
}
