/* ================================================
   WELMAH — Global Styles (Light Theme)
   Palette: Soft White #F7F9FC, Deep Blue #1D5FA8,
   Warm Amber #E8920A, Slate #334155, Light Grey #E2E8F0
   ================================================ */

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

:root {
  --bg:        #F7F9FC;
  --bg-alt:    #EEF2F7;
  --bg-card:   #FFFFFF;
  --navy:      #16263F;
  --navy-mid:  #1F3A5C;
  --teal:      #1D5FA8;
  --teal-light:#2F8FE0;
  --teal-pale: #E5F0FB;
  --amber:     #133A66;
  --amber-pale:#E2EBF5;
  --text:      #1E293B;
  --text-sub:  #475569;
  --grey:      #94A3B8;
  --border:    #CBD5E1;
  --border-soft:#E2E8F0;
  --card-bg:   #FFFFFF;
  --shadow:    0 2px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --font-display: 'Inter', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --transition:   0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius:    12px;
  --radius-lg: 20px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--teal); color: #fff; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--teal-light); border-radius: 3px; }

/* ── Utility ── */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 90px 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 18px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 560px;
  line-height: 1.8;
}
.accent       { color: var(--teal); }
.accent-amber { color: var(--amber); }

/* ── Grid background (subtle) ── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,95,168,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,95,168,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── Glow Orbs ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}
.orb-teal  { background: radial-gradient(circle, rgba(47,143,224,0.18) 0%, transparent 70%); }
.orb-amber { background: radial-gradient(circle, rgba(232,146,10,0.12) 0%, transparent 70%); }
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-24px) scale(1.04); }
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(247,249,252,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

/* Logo image */
.logo-img { height: 40px; width: auto; display: block; }
.logo { text-decoration: none; }

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  border-radius: 1px;
  transition: width 0.25s;
}
.nav-links a:hover        { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}
.nav-cta:hover { background: var(--amber) !important; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(29,95,168,0.25) !important; }
.nav-cta::after { display: none !important; }

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

.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: rgba(247,249,252,0.98);
  backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); text-decoration: none; transition: color 0.2s; }
.mobile-nav a:hover { color: var(--teal); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 30px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--amber); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,95,168,0.25); }
.btn-ghost { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-ghost:hover { background: var(--teal-pale); transform: translateY(-2px); }
/* Buttons for use on dark/teal backgrounds (e.g. CTA strips) */
.btn-white { background: #fff; color: var(--teal); }
.btn-white:hover { background: var(--amber-pale); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn svg { width: 17px; height: 17px; }

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--teal-light); }

/* ── Animate on scroll ── */
.fade-up { opacity: 0; transform: translateY(36px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 0.8s ease; }
.fade-in.visible { opacity: 1; }
.stagger { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ── Stats ── */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
}
.stat-label { font-size: 0.82rem; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }

/* ── Chips ── */
.chip { display: inline-block; padding: 4px 13px; border-radius: 100px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.chip-teal  { background: var(--teal-pale);  color: var(--teal);  border: 1px solid rgba(29,95,168,0.2); }
.chip-amber { background: var(--amber-pale); color: var(--amber); border: 1px solid rgba(232,146,10,0.2); }

/* ── Divider ── */
.divider { width: 48px; height: 3px; background: var(--teal); border-radius: 2px; margin: 18px 0; }

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: #CBD5E1;
  padding: 70px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 56px; }
.footer-brand p { color: #94A3B8; font-size: 0.88rem; line-height: 1.8; margin-top: 14px; max-width: 280px; }
.footer-logo { height: 38px; width: auto; filter: brightness(0) invert(1) opacity(0.9); }
.footer-col h4 { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: #94A3B8; text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { color: #64748B; font-size: 0.82rem; }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #94A3B8;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.85rem;
}
.social-links a:hover { border-color: var(--teal-light); color: var(--teal-light); background: rgba(47,143,224,0.1); }

/* ── Page transition ── */
.page-transition {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 200;
  animation: pageReveal 0.55s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes pageReveal {
  from { transform: scaleY(1); transform-origin: bottom; }
  to   { transform: scaleY(0); transform-origin: top; }
}

/* ── Cursor ── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%; pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
}
.cursor-dot  { width: 6px; height: 6px; background: var(--teal); transition: width 0.2s, height 0.2s; }
.cursor-ring { width: 30px; height: 30px; border: 1.5px solid rgba(29,95,168,0.4); transition: width 0.3s, height 0.3s; }

@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
  .section { padding: 65px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
