/* ============================================
   Jemmoney Inc. — Global Stylesheet
   ============================================ */

/* --- Custom Properties --- */
:root {
  --navy:       #0f172a;
  --slate-900:  #0f172a;
  --slate-800:  #1e293b;
  --slate-700:  #334155;
  --slate-600:  #475569;
  --slate-500:  #64748b;
  --slate-400:  #94a3b8;
  --slate-300:  #cbd5e1;
  --slate-200:  #e2e8f0;
  --slate-100:  #f1f5f9;
  --slate-50:   #f8fafc;
  --white:      #ffffff;
  --accent:     #2563eb;
  --accent-hover:#1d4ed8;
  --accent-light:#dbeafe;
  --accent-50:  #eff6ff;
  --green:      #059669;
  --green-light:#d1fae5;
  --radius:     8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --shadow-sm:  0 1px 2px rgba(15,23,42,.05);
  --shadow:     0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:  0 4px 6px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg:  0 10px 15px rgba(15,23,42,.06), 0 4px 6px rgba(15,23,42,.03);
  --max-w:      1200px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1.125rem; }

p + p { margin-top: 1em; }

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

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--slate-50);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header p {
  margin-top: 16px;
  color: var(--slate-500);
  font-size: 1.125rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo span {
  color: var(--slate-400);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--slate-600);
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--white);
    padding: 32px 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--slate-200);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--slate-100);
  }

  .nav-links a::after { display: none; }
}

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p {
  font-size: 1.1875rem;
  color: var(--slate-500);
  max-width: 540px;
  margin-bottom: 36px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--slate-300);
}

.btn--outline:hover {
  border-color: var(--accent);
  background: var(--accent-50);
  color: var(--accent-hover);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Trust Bar --- */
.trust-bar {
  padding: 48px 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  background: var(--slate-50);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-item {
  text-align: center;
}

.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.trust-icon svg {
  width: 24px;
  height: 24px;
}

.trust-item h4 {
  margin-bottom: 4px;
  font-size: 0.9375rem;
}

.trust-item p {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--slate-500);
  font-size: 0.9375rem;
}

/* --- Steps / How it Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  counter-increment: step;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--slate-500);
  font-size: 0.9375rem;
}

.step + .step::before {
  content: '';
  position: absolute;
  top: 24px;
  left: -32px;
  width: 32px;
  height: 2px;
  background: var(--slate-200);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .step + .step::before { display: none; }
}

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* --- CTA Section --- */
.cta-section {
  padding: 80px 0;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--slate-400);
  font-size: 1.125rem;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* --- Services page --- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.service-block + .service-block {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid var(--slate-200);
}

.service-info h2 {
  margin-bottom: 16px;
}

.service-info > p {
  color: var(--slate-500);
  font-size: 1.0625rem;
  margin-bottom: 32px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-top: 2px;
}

.feature-check svg {
  width: 14px;
  height: 14px;
}

.feature-list li div h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.feature-list li div p {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.service-visual {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.service-visual-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-light);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
}

.service-visual-icon svg {
  width: 36px;
  height: 36px;
}

.service-visual h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.service-visual p {
  color: var(--slate-500);
  text-align: center;
  max-width: 280px;
}

@media (max-width: 768px) {
  .service-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- About page --- */
.about-hero {
  padding: 80px 0 60px;
}

.about-hero h1 {
  margin-bottom: 20px;
}

.about-hero p {
  font-size: 1.125rem;
  color: var(--slate-500);
  max-width: 640px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.about-block h3 {
  margin-bottom: 12px;
}

.about-block p {
  color: var(--slate-500);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.disclaimer-box {
  background: var(--accent-50);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-top: 40px;
}

.disclaimer-box p {
  color: var(--slate-700);
  font-size: 0.9375rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 32px 24px;
}

.value-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 20px;
}

.value-icon svg {
  width: 28px;
  height: 28px;
}

.value-card h3 {
  margin-bottom: 8px;
}

.value-card p {
  color: var(--slate-500);
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Contact page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--slate-500);
  margin-bottom: 36px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail h4 {
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.contact-detail p {
  color: var(--slate-500);
  font-size: 0.875rem;
}

/* --- Forms --- */
.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--slate-700);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc2626;
}

.form-error {
  font-size: 0.8125rem;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--green);
  font-weight: 500;
  display: none;
}

.form-success.visible {
  display: block;
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-content h1 {
  margin-bottom: 8px;
}

.legal-content .last-updated {
  color: var(--slate-500);
  font-size: 0.875rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.375rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--slate-600);
}

.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--slate-600);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: var(--slate-400);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li + li {
  margin-top: 10px;
}

.footer-col a {
  color: var(--slate-400);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-disclaimer {
  padding: 20px 0;
  font-size: 0.75rem;
  color: var(--slate-500);
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--slate-500);
  font-size: 0.8125rem;
}

.footer-legal a:hover {
  color: var(--slate-300);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--slate-200);
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.0625rem;
  color: var(--slate-500);
  max-width: 540px;
}

/* --- Utility --- */
.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-center { text-align: center; }

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
  .cta-section { padding: 56px 0; }
}
