/* ============================================================
   DavosAsia Capital — Shared Stylesheet
   Design: Enterprise / Trust & Authority
   Colors: Dark Navy + Blue-Cyan Gradient (matches logo)
   Fonts: Lexend (headings) + Source Sans 3 (body)
   ============================================================ */

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

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

:root {
  /* Brand palette – extracted from logo */
  --navy-950: #050c18;
  --navy-900: #080f1f;
  --navy-800: #0d1630;
  --navy-700: #132040;
  --navy-600: #1a2d58;
  --blue-600: #1248cc;
  --blue-500: #1a56db;
  --blue-400: #3b82f6;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;

  /* Semantic */
  --primary:        #1a56db;
  --primary-dark:   #1248cc;
  --accent-cyan:    #06b6d4;
  --bg-light:       #f8fafc;
  --bg-section:     #f1f5f9;
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --border:         #e2e8f0;
  --white:          #ffffff;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #1a56db 0%, #06b6d4 100%);
  --grad-dark:  linear-gradient(135deg, #050c18 0%, #0d1630 60%, #132040 100%);
  --grad-hero:  linear-gradient(135deg, #050c18 0%, #0a1628 50%, #0d2044 100%);

  /* Typography */
  --font-heading: 'Lexend', system-ui, sans-serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  /* Spacing */
  --section-py: 96px;
  --container:  1280px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.20);
  --shadow-brand: 0 8px 32px rgba(26,86,219,.30);

  /* Transitions */
  --transition: 200ms ease;
  --transition-slow: 350ms ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Utility ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(26,86,219,.40);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,.25);
  color: var(--white);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.12);
}

.btn-outline-dark {
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  background: var(--white);
}
.btn-outline-dark:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26,86,219,.04);
}

.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ── Navigation ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5,12,24,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition-slow), box-shadow var(--transition-slow);
}
.navbar.scrolled {
  background: rgba(5,12,24,.97);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { margin-left: 8px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(5,12,24,.97);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 16px 24px 24px;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--transition);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--white); }
.nav-mobile .btn { margin-top: 12px; width: 100%; justify-content: center; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--navy-950);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,.35);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  border-color: rgba(26,86,219,.25);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(26,86,219,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { color: var(--primary); }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  width: 60px; height: 3px;
  background: var(--grad-brand);
  border-radius: 3px;
  margin: 20px 0;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,86,219,.3); }
  50%       { box-shadow: 0 0 0 12px rgba(26,86,219,.0); }
}

.animate-up {
  opacity: 0;
  animation: fadeInUp .6s ease forwards;
}
.animate-up.delay-1 { animation-delay: .1s; }
.animate-up.delay-2 { animation-delay: .2s; }
.animate-up.delay-3 { animation-delay: .3s; }
.animate-up.delay-4 { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── Responsive Helpers ──────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
