/* ═══ Abheri Fintech — Shared Styles ═══ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400&family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #FAF9F7;
  --cream: #F5F3EF;
  --warm: #EDE9E3;
  --white: #FFFFFF;
  --black: #111110;
  --charcoal: #2E2E2C;
  --body: #444444;
  --gray: #8A8A86;
  --light: #C8C6C0;
  --rule: #DDD9D2;
  --ox: #1E3A5F;
  --ox-light: #EFF3F8;
  --blue: #3B6ECC;
  --green: #1A7A56;
  --green-bg: #ECFDF5;
  --amber: #B8860B;
  --amber-bg: #FFFBEB;
  --red: #C0392B;
  --red-bg: #FEF2F2;
  --max-w: 1200px;
  --side: max(24px, calc((100vw - var(--max-w)) / 2));
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══ NAV ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 var(--side);
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 15px;
  letter-spacing: -0.02em; color: var(--black); text-decoration: none;
}
.nav-logo svg { width: 24px; height: 22px; }
.nav-logo img { flex-shrink: 0; }
.nav-logo span { color: var(--gray); font-weight: 400; font-size: 12px; margin-left: 2px; letter-spacing: 0.08em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--gray);
  text-decoration: none; transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--black); }
.nav-cta {
  padding: 10px 22px; background: var(--black); color: var(--white);
  border: none; border-radius: 8px; font-family: 'Sora', sans-serif;
  font-size: 12px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: var(--ox); }
.nav-cta-outline {
  padding: 9px 18px; background: transparent; color: var(--ox);
  border: 1.5px solid var(--ox); border-radius: 8px;
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.nav-cta-outline:hover { background: var(--ox); color: var(--white); }

/* ═══ SECTIONS ═══ */
.section { padding: 0 var(--side); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.sec-pad { padding-top: 96px; padding-bottom: 96px; }
.sec-pad-sm { padding-top: 64px; padding-bottom: 64px; }
.bg-warm { background: var(--bg); }
.bg-cream { background: var(--cream); }
.bg-ox { background: var(--ox); }
.bg-ox-light { background: var(--ox-light); }
.border-t { border-top: 2px solid var(--black); }
.border-b { border-bottom: 2px solid var(--black); }
.rule-t { border-top: 1px solid var(--rule); }
.rule-b { border-bottom: 1px solid var(--rule); }

/* ═══ TYPE ═══ */
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--ox); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: pulse 2.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.tag .line { width: 20px; height: 2px; background: var(--ox); }

.h-hero {
  font-family: 'Sora', sans-serif;
  font-size: clamp(36px, 5vw, 56px); font-weight: 800;
  letter-spacing: -0.05em; line-height: 1.0;
  color: var(--black); margin-bottom: 20px;
}
.h-hero .accent { color: var(--ox); }

.h-section {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 800;
  letter-spacing: -0.045em; line-height: 1.05;
  color: var(--black); margin-bottom: 16px;
}
.h-section .lo { color: var(--light); }

.h-card {
  font-family: 'Sora', sans-serif;
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--black); margin-bottom: 8px;
}

.body-text { font-size: 16px; color: var(--body); line-height: 1.8; max-width: 560px; }
.body-sm { font-size: 14px; color: var(--body); line-height: 1.75; }
.mono { font-family: 'JetBrains Mono', monospace; }
.code-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 500; color: var(--ox);
  background: var(--ox-light); padding: 3px 10px;
  border-radius: 4px; display: inline-block;
}

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 28px; background: var(--black); color: var(--white);
  border: none; border-radius: 8px; font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all 0.2s;
}
.btn-primary:hover { background: var(--ox); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 28px; background: transparent; color: var(--black);
  border: 2px solid var(--black); border-radius: 8px;
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--cream); }

.btn-ghost { font-size: 14px; font-weight: 600; color: var(--ox); text-decoration: none; transition: opacity 0.2s; }
.btn-ghost:hover { opacity: 0.7; }

.btn-white {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 28px; background: var(--white); color: var(--ox);
  border: none; border-radius: 8px; font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all 0.2s;
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

.btn-outline-white {
  display: inline-flex; padding: 14px 28px;
  background: transparent; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
  font-size: 14px; font-weight: 500; text-decoration: none; transition: all 0.2s;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

/* ═══ PAGE HEADER (inner pages) ═══ */
.page-header {
  padding: 140px var(--side) 64px;
  background: var(--cream);
  border-bottom: 2px solid var(--black);
}
.page-header-inner { max-width: var(--max-w); margin: 0 auto; }
.page-header .tag { margin-bottom: 16px; }
.page-header .h-hero { margin-bottom: 16px; }
.page-header .body-text { max-width: 600px; }

/* ═══ CONTENT BLOCKS (inner pages) ═══ */
.content-section { padding: 64px var(--side); }
.content-inner { max-width: var(--max-w); margin: 0 auto; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.content-narrow { max-width: 720px; margin: 0 auto; }

.detail-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 12px; padding: 36px 32px; transition: all 0.2s;
}
.detail-card:hover { border-color: var(--ox); box-shadow: 0 4px 24px rgba(0,0,0,0.04); }

.detail-icon { margin-bottom: 20px; }
.detail-icon svg {
  width: 36px; height: 36px; stroke: var(--ox);
  fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}

.detail-list { list-style: none; padding: 0; }
.detail-list li {
  padding: 16px 0; border-bottom: 1px solid var(--rule);
  font-size: 15px; color: var(--body); line-height: 1.7;
  display: flex; gap: 12px; align-items: flex-start;
}
.detail-list li:last-child { border-bottom: none; }
.detail-list .num {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  font-weight: 600; color: var(--ox); min-width: 24px; padding-top: 3px;
}

/* ═══ FORM (contact page) ═══ */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--ox); margin-bottom: 8px; text-transform: uppercase;
}
.form-input, .form-textarea {
  width: 100%; padding: 14px 16px; background: var(--white);
  border: 1px solid var(--rule); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  color: var(--black); transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--ox); }
.form-textarea { min-height: 120px; resize: vertical; }

/* ═══ QUOTE ═══ */
.quote-block {
  border-left: 3px solid var(--ox); padding: 28px 32px;
  background: var(--white); border-radius: 0 10px 10px 0; margin-bottom: 48px;
}
.quote-text { font-size: 18px; font-weight: 500; line-height: 1.65; color: var(--charcoal); font-style: italic; }
.quote-cite {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  font-weight: 600; color: var(--ox); margin-top: 14px;
}

/* ═══ SERVICES GRID ═══ */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 12px; padding: 36px 32px; transition: all 0.2s;
}
.service-card:hover { border-color: var(--ox); box-shadow: 0 4px 24px rgba(0,0,0,0.04); }
.service-icon { margin-bottom: 20px; }
.service-icon svg {
  width: 36px; height: 36px; stroke: var(--ox);
  fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}
.service-desc { font-size: 14px; color: var(--body); line-height: 1.75; margin-bottom: 20px; }

/* ═══ TEAM ═══ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 12px; overflow: hidden; transition: all 0.2s;
}
.team-card:hover { border-color: var(--ox); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.team-photo { height: 220px; background: var(--cream); display: flex; align-items: center; justify-content: center; }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--ox);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 800; color: var(--white);
}
.team-info { padding: 24px; }
.team-name { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.team-role {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  font-weight: 500; color: var(--ox); margin-bottom: 10px;
}
.team-bio { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ═══ CTA SECTION ═══ */
.cta-section { padding: 80px var(--side); }
.cta-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.cta-headline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 800;
  letter-spacing: -0.04em; color: var(--white); margin-bottom: 14px;
}
.cta-desc { font-size: 15px; color: rgba(255,255,255,0.55); max-width: 440px; margin: 0 auto 32px; line-height: 1.75; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-email { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 20px; }
.cta-email a { color: rgba(255,255,255,0.55); text-decoration: none; }
.cta-email a:hover { color: #fff; }

/* ═══ FOOTER ═══ */
.footer { padding: 0 var(--side); background: var(--bg); }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 40px 0 32px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13px;
  color: var(--black); margin-bottom: 8px;
}
.footer-logo svg { width: 18px; height: 20px; }
.footer-copy { font-size: 12px; color: var(--gray); }
.footer-right { display: flex; gap: 48px; }
.footer-col-title {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  font-weight: 500; letter-spacing: 0.1em; color: var(--ox);
  margin-bottom: 12px; text-transform: uppercase;
}
.footer-link {
  display: block; font-size: 13px; color: var(--gray);
  text-decoration: none; margin-bottom: 8px; transition: color 0.2s;
}
.footer-link:hover { color: var(--black); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto; padding: 20px 0;
  border-top: 1px solid var(--rule); text-align: center;
}
.footer-tagline {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--light); letter-spacing: 0.1em;
}

/* ═══ PATTERN BACKGROUNDS ═══ */
.has-pattern { position: relative; overflow: hidden; }
.bg-pattern { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bg-pattern canvas { width: 100%; height: 100%; }
.has-pattern > .section-inner { position: relative; z-index: 1; }

/* ═══ ANIMATIONS ═══ */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .nav-inner { gap: 16px; }
  .nav-logo { font-size: 13px; flex-shrink: 1; min-width: 0; }
  .nav-links { gap: 8px; flex-shrink: 0; }
  .nav-link { display: none; }
  .nav-cta-outline { padding: 8px 12px; font-size: 11px; }
  .nav-cta { padding: 8px 14px; font-size: 11px; }
}
@media (max-width: 480px) {
  .nav-cta-outline { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-right { gap: 32px; }
}
