/* ══════════════════════════════
   COMMON — Reset, Tokens, Nav, Footer
   All pages share this file.
══════════════════════════════ */

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

/* ── Design Tokens ── */
:root {
  --blue-950: #0A0F3D;
  --blue-900: #0D1A5C;
  --blue-800: #1E2B8C;
  --blue-700: #2B3AC7;
  --blue-600: #3D4EE8;
  --blue-500: #5B6CF9;
  --blue-400: #7B8BFF;
  --gold:        #E8B659;
  --gold-bright: #F4CB7A;
  --paper:  #F6F7FF;
  --text:   #0A0F3D;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gradient-hero: radial-gradient(ellipse 90% 70% at 60% 50%, #2B3AC7 0%, #1E2B8C 45%, #0D1A5C 80%, #0A0F3D 100%);
  --gradient-card: linear-gradient(135deg, #3D4EE8 0%, #2B3AC7 50%, #1E2B8C 100%);
  --gradient-gold: linear-gradient(135deg, #F4CB7A 0%, #E8B659 100%);
}

/* ── Base ── */
html, body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════
   TOP BAR — Navigation
══════════════════════════════ */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
  color: #fff;
}
.top-bar.scrolled {
  background: rgba(246,247,255,.9);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(10,15,61,.06);
  color: var(--text);
}
.top-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.top-bar .logo { text-decoration: none; display: flex; align-items: center; }
.top-bar .logo img { height: 28px; width: auto; }

/* Main nav */
.main-nav { display: flex; gap: 96px; margin-left: 24px; }
.nav-item { position: relative; }
.nav-item > a {
  font-size: 14px; font-weight: 500; opacity: 1;
  padding: 6px 10px; border-bottom: 2px solid transparent;
  transition: opacity .15s, border-color .15s;
  text-decoration: none; display: flex; align-items: center; gap: 4px;
  cursor: pointer; color: inherit;
}
.nav-item > a:hover { opacity: 1; }
.nav-item > a.active { opacity: 1; border-bottom-color: currentColor; }
.nav-caret { font-size: 9px; opacity: .5; margin-top: 1px; }
.nav-sub-caret { font-size: 9px; opacity: .4; float: right; margin-left: 12px; }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0;
  padding-top: 10px; z-index: 200; display: none; min-width: 200px;
}
.has-dropdown:hover > .dropdown { display: block; }
.dropdown > a,
.dropdown > .dropdown-parent > span,
.dropdown > .dropdown-parent > a {
  display: block; width: 100%; padding: 12px 20px;
  font-size: 13px; font-weight: 500; text-align: left;
  color: rgba(255,255,255,.7); cursor: pointer; transition: color .15s;
  text-decoration: none; white-space: nowrap;
  position: relative; z-index: 1;
}
.dropdown > a:hover,
.dropdown > .dropdown-parent > span:hover,
.dropdown > .dropdown-parent > a:hover { color: #F4CB7A; }
.top-bar.scrolled .dropdown > a,
.top-bar.scrolled .dropdown > .dropdown-parent > span,
.top-bar.scrolled .dropdown > .dropdown-parent > a { color: rgba(10,15,61,.6); }
.top-bar.scrolled .dropdown > a:hover,
.top-bar.scrolled .dropdown > .dropdown-parent > span:hover,
.top-bar.scrolled .dropdown > .dropdown-parent > a:hover { color: #3D4EE8; }
.dropdown::before {
  content: ''; display: block; position: absolute;
  top: 10px; left: 0; right: 0; bottom: 0;
  background: rgba(10,15,61,.85); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  min-width: 200px; box-shadow: 0 16px 48px -12px rgba(10,15,61,.25); z-index: -1;
}
.top-bar.scrolled .dropdown::before {
  background: rgba(255,255,255,.97); border-color: rgba(10,15,61,.08);
}

/* Sub-dropdown */
.dropdown-parent { position: relative; }
.sub-dropdown {
  position: absolute; left: 100%; top: -8px;
  padding-left: 4px; display: none; z-index: 210; min-width: 220px;
}
.dropdown-parent:hover > .sub-dropdown { display: block; }
.sub-dropdown::before {
  content: ''; display: block; position: absolute;
  top: 8px; left: 4px; right: 0; bottom: 8px;
  background: rgba(10,15,61,.85); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  min-width: 220px; box-shadow: 0 12px 36px -8px rgba(10,15,61,.2); z-index: -1;
}
.top-bar.scrolled .sub-dropdown::before {
  background: rgba(255,255,255,.97); border-color: rgba(10,15,61,.08);
}
.sub-dropdown a {
  display: block; padding: 10px 18px; font-size: 12px; font-weight: 500;
  text-align: left; color: rgba(255,255,255,.7); cursor: pointer; transition: color .15s;
  text-decoration: none; position: relative; z-index: 1; white-space: nowrap;
}
.sub-dropdown a:first-child { margin-top: 8px; }
.sub-dropdown a:last-child { margin-bottom: 8px; }
.sub-dropdown a:hover { color: #F4CB7A; }
.top-bar.scrolled .sub-dropdown a { color: rgba(10,15,61,.6); }
.top-bar.scrolled .sub-dropdown a:hover { color: #3D4EE8; }

/* Right actions */
.top-bar .right-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-bar .lang-toggle,
.top-bar .lang-btn {
  font-size: 13px; font-weight: 500; color: inherit;
  opacity: .7; cursor: pointer; padding: 4px 8px;
  border: none; background: none;
}
.top-bar .btn-signin,
.top-bar .signin-btn {
  font-size: 13px; font-weight: 600; color: #0A0F3D;
  padding: 10px 16px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, #F4CB7A, #E8B659);
  cursor: pointer; transition: opacity .2s; text-decoration: none;
}
.top-bar .btn-signin:hover,
.top-bar .signin-btn:hover { opacity: .9; }

/* Sign-in dropdown */
.signin-wrapper {
  position: relative;
}
.signin-caret {
  font-size: 10px;
  margin-left: 4px;
  display: inline-block;
  transition: transform .2s;
}
.signin-wrapper:hover .signin-caret {
  transform: rotate(180deg);
}
.signin-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 10px;
  z-index: 200;
  display: none;
  min-width: 180px;
}
.signin-wrapper:hover .signin-dropdown {
  display: block;
}
.signin-dropdown::before {
  content: '';
  display: block;
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 61, .92);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px -12px rgba(10, 15, 61, .25);
  z-index: -1;
}
.top-bar.scrolled .signin-dropdown::before {
  background: rgba(255, 255, 255, .97);
  border-color: rgba(10, 15, 61, .08);
}
.signin-dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
  position: relative;
  z-index: 1;
}
.signin-dropdown a:hover {
  color: #F4CB7A;
}
.top-bar.scrolled .signin-dropdown a {
  color: rgba(10, 15, 61, .6);
}
.top-bar.scrolled .signin-dropdown a:hover {
  color: #3D4EE8;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer,
footer.site-footer {
  background: var(--blue-950);
  color: #fff;
  padding: 80px 40px 40px;
  position: relative;
  z-index: 10;
}
.site-footer .footer-inner,
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer .footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  max-width: 280px;
  line-height: 1.6;
  margin-top: 20px;
}
.site-footer .footer-brand img { height: 32px; }
.site-footer .social-links {
  margin-top: 28px;
  display: flex;
  gap: 10px;
}
.site-footer .social-links button {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,0.75); cursor: pointer;
}
.site-footer .footer-col-title {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  font-weight: 600;
}
.site-footer .footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer .footer-col li {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.site-footer .footer-col a {
  color: inherit;
  text-decoration: none;
}
.site-footer .footer-col a:hover { color: #fff; }
.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: 16px;
}

/* ══════════════════════════════
   MOBILE MENU
══════════════════════════════ */

/* Hamburger button — hidden on desktop */
.mobile-menu-btn {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  padding: 0; margin-left: auto;
  position: relative; z-index: 10000;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .25s, opacity .25s;
  position: absolute;
}
.mobile-menu-btn span:nth-child(1) { transform: translateY(-6px); }
.mobile-menu-btn span:nth-child(2) { transform: translateY(0); }
.mobile-menu-btn span:nth-child(3) { transform: translateY(6px); }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg); }

/* Mobile overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,15,61,.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity .25s;
}
.mobile-nav-overlay.open { opacity: 1; }

/* Mobile drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px; max-width: 85vw;
  background: var(--blue-950);
  color: #fff;
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  padding: 80px 24px 40px;
}
.mobile-nav-drawer.open { transform: translateX(0); }

/* Mobile nav items */
.mobile-nav-drawer .mobile-nav-item {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav-drawer .mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  font-size: 15px; font-weight: 600;
  color: rgba(255,255,255,.9);
  text-decoration: none; cursor: pointer;
  background: none; border: none; width: 100%;
  text-align: left;
}
.mobile-nav-drawer .mobile-nav-link:hover { color: #F4CB7A; }
.mobile-nav-drawer .mobile-nav-caret {
  font-size: 12px; opacity: .5;
  transition: transform .2s;
}
.mobile-nav-drawer .mobile-nav-caret.expanded { transform: rotate(180deg); }

/* Mobile sub-menu */
.mobile-nav-drawer .mobile-sub-menu {
  display: none;
  padding-left: 16px;
  padding-bottom: 8px;
}
.mobile-nav-drawer .mobile-sub-menu.open { display: block; }
.mobile-nav-drawer .mobile-sub-menu a {
  display: block;
  padding: 10px 0;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.6);
  text-decoration: none;
}
.mobile-nav-drawer .mobile-sub-menu a:hover { color: #F4CB7A; }

/* Mobile sub-sub-menu */
.mobile-nav-drawer .mobile-sub-sub-menu {
  display: none;
  padding-left: 16px;
  padding-bottom: 4px;
}
.mobile-nav-drawer .mobile-sub-sub-menu.open { display: block; }
.mobile-nav-drawer .mobile-sub-sub-menu a {
  display: block;
  padding: 8px 0;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.45);
  text-decoration: none;
}
.mobile-nav-drawer .mobile-sub-sub-menu a:hover { color: #F4CB7A; }

/* Mobile drawer actions */
.mobile-nav-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 12px;
}
.mobile-nav-actions .mobile-lang-btn {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.7);
  background: none; border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 12px 16px;
  cursor: pointer; text-align: center;
}
.mobile-nav-actions .mobile-signin-btn {
  font-size: 14px; font-weight: 600;
  color: #0A0F3D;
  background: linear-gradient(135deg, #F4CB7A, #E8B659);
  border: none; border-radius: 10px;
  padding: 12px 16px; cursor: pointer; text-align: center;
  text-decoration: none;
}
.mobile-signin-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.mobile-signin-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
  .main-nav { gap: 24px; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .main-nav { display: none; }
  .top-bar .right-actions { display: none; }
  .top-bar-inner { gap: 16px; padding: 14px 20px; }
  .mobile-menu-btn { display: flex; }
  .mobile-nav-overlay { display: block; pointer-events: none; }
  .mobile-nav-overlay.open { pointer-events: auto; }
  .mobile-nav-drawer { display: block; }
  .site-footer .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .site-footer .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .site-footer .footer-brand p { text-align: center; }
  .site-footer .social-links { justify-content: center; }
  .site-footer .footer-col ul { align-items: center; }
  .site-footer .footer-bottom { justify-content: center; }
  .site-footer { padding: 48px 20px 32px; }
}
