@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ══════════════════════════════════════════
   CSS VARIABLES
══════════════════════════════════════════ */
:root {
  --brand: #0f4c81;
  --brand-dark: #04203a;
  --brand-light: #69a4d8;
  --brand-bg: #f2f8fd;
  --accent: #e67e22;
  --accent-dark: #ce6a12;
  --success: #10b981;
  --gray-50: #f7f7f8;
  --gray-100: #eff0f0;
  --gray-200: #dfe1e2;
  --gray-300: #c4c7ca;
  --gray-400: #9ca1a5;
  --gray-500: #798086;
  --gray-600: #61666b;
  --gray-700: #4e5256;
  --gray-800: #3a3d40;
  --gray-900: #242628;
  --nav-height: 64px;
}

/* ══════════════════════════════════════════
   RESET
══════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════════
   SHARED NAVIGATION
══════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--brand-light) 100%);
  height: var(--nav-height);
  box-shadow: 0 2px 12px rgba(10,49,88,0.25);
}

.site-nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-links a,
.nav-login {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.nav-spacer {
  flex: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-login {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-login:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.nav-cta {
  background: #fff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--brand-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile-menu {
  display: none;
  background: var(--brand-dark);
  padding: 12px 24px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}

.nav-mobile-menu a:last-child {
  border-bottom: none;
}

.nav-mobile-menu .nav-cta-mobile {
  display: block;
  margin-top: 12px;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  border-bottom: none;
}

@media (max-width: 800px) {
  .site-nav .nav-inner {
    padding: 0 20px;
  }

  .nav-links,
  .nav-spacer,
  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile-menu.open {
    display: block;
  }
}

/* ══════════════════════════════════════════
   SHARED FOOTER
══════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--gray-200);
  padding: 40px;
  text-align: center;
  background: #fff;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
}

.footer-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-700);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  color: var(--brand);
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 12px;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover {
  color: var(--gray-600);
}

.footer-copy {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════ */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════════════
   COMMON CARD STYLES
══════════════════════════════════════════ */
.card {
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px 28px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--brand-light);
  box-shadow: 0 8px 30px rgba(15,76,129,0.08);
}

.card-sm {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
  background: #fff;
  transition: box-shadow 0.2s;
}

.card-sm:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 4px 16px rgba(15,76,129,0.3);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--brand);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid var(--brand);
  transition: background 0.15s;
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary:hover {
  background: var(--brand-bg);
}

.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  font-size: 17px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-white:hover {
  background: var(--brand-bg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ══════════════════════════════════════════
   GRADIENT BAND (reusable hero/stats background)
══════════════════════════════════════════ */
.gradient-band {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--brand-light) 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.gradient-band::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

@media (max-width: 800px) {
  .content {
    padding: 0 20px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 26px;
  }
}

/* ══════════════════════════════════════════
   SKIP NAVIGATION LINK
══════════════════════════════════════════ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px 16px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ══════════════════════════════════════════
   LUCIDE ICONS
══════════════════════════════════════════ */
/* Ensure SVGs generated by lucide.createIcons() respect explicit dimensions */
[data-lucide] {
  display: block;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
