@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700;800&family=Source+Serif+4:wght@600;700;800&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --emerald: #1e4893;
  --emerald-dark: #163a74;
  --emerald-light: #e8edf6;
  --charcoal: #1c1c1c;
  --slate: #3d3d3d;
  --muted: #6b6b6b;
  --light: #fafafa;
  --white: #ffffff;
  --divider: #e5e5e5;
  --serif: Arial, Helvetica, sans-serif;
  --sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ─── HEADER ─── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav a:hover { color: var(--charcoal); background: var(--light); }
.nav a.active { color: var(--emerald); font-weight: 600; }
.nav-contact {
  margin-left: 8px;
  background: var(--emerald) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 6px;
}
.nav-contact:hover { background: var(--emerald-dark) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--charcoal); }

/* ─── HERO (index) ─── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  color: var(--charcoal);
  margin-bottom: 24px;
  text-transform: capitalize;
}
.hero-text h1 span { color: var(--emerald); }
.hero-text p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--charcoal); border: 2px solid var(--divider); }
.btn-outline:hover { border-color: var(--charcoal); }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat-box {
  background: var(--light);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}
.stat-box:first-child { border-left: 4px solid var(--emerald); }
.stat-box:nth-child(2) { border-left: 4px solid #e67e22; }
.stat-box:nth-child(3) { border-left: 4px solid #3498db; }
.stat-box:nth-child(4) { border-left: 4px solid #9b59b6; }
.stat-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* ─── DIVIDER BAR ─── */
.trust-bar {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 20px 32px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.trust-bar strong { color: #fff; }

/* ─── SOLUTIONS (index) ─── */
.solutions {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px;
}
.solutions-header {
  text-align: center;
  margin-bottom: 64px;
}
.tag {
  display: inline-block;
  background: var(--emerald-light);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.solutions-header h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: capitalize;
}
.solutions-header p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto; }

.sol-list { display: flex; flex-direction: column; gap: 0; }
.sol-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--divider);
  transition: background 0.2s;
}
.sol-item:first-child { border-top: 1px solid var(--divider); }
.sol-item:hover { background: var(--light); margin: 0 -20px; padding-left: 20px; padding-right: 20px; border-radius: 12px; }
.sol-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 800;
  color: var(--divider);
  line-height: 1;
  text-align: center;
}
.sol-item:hover .sol-num { color: var(--emerald); }
.sol-body h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.sol-body p { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 600px; }
.sol-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--emerald);
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 20px;
  border: 2px solid var(--emerald);
  border-radius: 8px;
  transition: all 0.2s;
}
.sol-link:hover { background: var(--emerald); color: #fff; }

/* ─── EXPLORE (index) ─── */
.explore {
  background: var(--light);
  padding: 80px 32px;
}
.explore-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.explore-inner h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: capitalize;
}
.explore-inner > p { color: var(--muted); font-size: 17px; margin-bottom: 40px; }
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.explore-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: 10px;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}
.explore-grid a::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  flex-shrink: 0;
}
.explore-grid a:hover {
  border-color: var(--emerald);
  box-shadow: 0 4px 16px rgba(30,72,147,0.1);
  transform: translateY(-2px);
}

/* ─── PAGE HERO BANNER (sub-pages) ─── */
.page-hero {
  background: radial-gradient(ellipse at 20% 50%, rgba(30,72,147,0.06) 0%, transparent 70%),
              radial-gradient(ellipse at 80% 50%, rgba(30,72,147,0.04) 0%, transparent 70%),
              var(--white);
  padding: 80px 32px 64px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--divider);
}
.page-hero::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 20px;
  text-transform: capitalize;
  letter-spacing: -0.8px;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

/* ─── ARTICLE / PAGE CONTENT ─── */
.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 32px 72px;
}
.page-content h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
  text-transform: capitalize;
}
.page-content h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.page-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 32px;
  margin-bottom: 10px;
  text-transform: capitalize;
}
.page-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--slate);
  margin-top: 24px;
  margin-bottom: 8px;
  text-transform: capitalize;
}
.page-content p {
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 16px;
}
.page-content ul, .page-content ol {
  margin: 16px 0 24px;
  padding-left: 28px;
}
.page-content li {
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 10px;
}
.page-content a {
  color: var(--emerald);
  text-decoration: none;
  font-weight: 500;
}
.page-content a:hover { text-decoration: underline; }
.page-content blockquote {
  border-left: 4px solid var(--emerald);
  padding: 20px 28px;
  margin: 24px 0;
  background: var(--light);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--slate);
}
.page-content blockquote p { margin-bottom: 8px; }
.page-content blockquote p:last-child { margin-bottom: 0; }
.page-content dl { margin: 16px 0; }
.page-content dt { font-weight: 700; color: var(--charcoal); margin-top: 16px; }
.page-content dd { color: var(--slate); margin-left: 20px; margin-top: 4px; }
.page-content code {
  background: var(--emerald-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--emerald-dark);
}

.red-text { color: #c0392b; font-weight: 600; }
.highlight-red { color: #c0392b; font-weight: 600; }

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--emerald);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none !important;
  transition: all 0.2s;
  margin: 8px 0;
}
.cta-button:hover { background: var(--emerald-dark); transform: translateY(-1px); }

/* ─── FOOTER ─── */
.footer {
  background: var(--charcoal);
  color: #ffffff;
  padding: 32px;
  text-align: center;
  font-size: 14px;
}
.footer a { color: var(--emerald); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 64px 24px 56px; gap: 48px; }
  .hero-stats { max-width: 100%; }
  .sol-item { grid-template-columns: 50px 1fr; gap: 20px; }
  .sol-link { display: none; }
}
@media (max-width: 680px) {
  .header-inner { padding: 0 20px; height: 60px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--divider);
    flex-direction: column;
    padding: 12px 20px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; width: 100%; }
  .nav-contact { margin-left: 0; text-align: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .solutions, .explore { padding: 56px 20px; }
  .sol-item { grid-template-columns: 1fr; gap: 8px; }
  .sol-num { text-align: left; font-size: 32px; }
  .page-hero { padding: 40px 20px 36px; margin: 0 auto; }
  .page-content { padding: 40px 20px 56px; }
}

/* ─── CONTACT MODAL ─── */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal-content {
  position: relative;
  background-color: #fff;
  margin: 8vh auto;
  padding: 40px 36px 36px;
  border: none;
  width: 90%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  font-family: var(--sans);
}
.modal-content h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 6px;
  padding: 0;
  background: none;
}
.modal-content h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--emerald);
  border-radius: 2px;
  margin-top: 12px;
  margin-bottom: 24px;
}
.close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border: 1px solid var(--divider);
  border-radius: 50%;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
  float: none;
}
.close:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: #fff;
}
#contactForm { padding: 0; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 14px;
  color: var(--charcoal);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--divider);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--charcoal);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(30,72,147,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}
.form-group textarea { height: 120px; resize: vertical; }
.form-buttons {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.form-buttons button {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--sans);
  transition: all 0.2s;
}
.form-buttons button[type="submit"] {
  background-color: var(--emerald);
  color: #fff;
}
.form-buttons button[type="submit"]:hover {
  background-color: var(--emerald-dark);
}
.form-buttons button.cancel {
  background-color: var(--light);
  color: var(--slate);
  border: 1.5px solid var(--divider);
  flex: 0 0 auto;
}
.form-buttons button.cancel:hover {
  background-color: var(--divider);
  color: var(--charcoal);
}

/* Notification modal */
.notification-modal .modal-content {
  max-width: 400px;
  margin: 20% auto;
  text-align: center;
  padding: 0;
}
.notification-content { position: relative; }
#notificationMessage { margin: 0; font-size: 16px; line-height: 1.5; }
.notification-success,
.success {
  color: #155724;
  background-color: #d4edda;
  border: 3px solid #c3e6cb;
  padding: 15px;
  border-radius: 6px;
}
.notification-error,
.error {
  color: #721c24;
  background-color: #f8d7da;
  border: 3px solid #f5c6cb;
  padding: 15px;
  border-radius: 6px;
}

@media (max-width: 680px) {
  .modal-content { width: 95%; margin: 10% auto; }
  #contactForm { padding: 20px; }
}
