/* ===== Mediriz Static Site Styles ===== */

:root {
  --primary: #2a3586;
  --primary-light: #434ea8;
  --primary-dark: #1d255f;
  --accent: #0ea5e9;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #0f172a;
  background: #ffffff;
  line-height: 1.55;
  font-size: 17px;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

p, ul, ol { margin: 0; }

a { text-decoration: none; color: inherit; }

img { display: block; max-width: 100%; height: auto; }

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

/* Primary button */
.btn-primary {
  background-color: var(--primary);
  color: #fff;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(42,53,134,.5);
}

.btn-outline {
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  transition: all .2s ease;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  transition: background .2s ease;
}
.btn-white:hover { background: #f1f5f9; }

.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  transition: background .2s ease;
}
.btn-ghost-white:hover { background: rgba(255,255,255,.1); }

/* Dotted bg */
.bg-dots {
  background-image: radial-gradient(circle, rgba(42,53,134,.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bg-dots-white {
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Fade in up */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp .7s ease-out forwards; }
.delay-100 { animation-delay: .1s; opacity: 0; }
.delay-200 { animation-delay: .2s; opacity: 0; }
.delay-300 { animation-delay: .3s; opacity: 0; }

/* Header glass */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.85);
  border-bottom-color: rgba(226,232,240,.6);
}

.nav-link {
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  transition: all .2s ease;
}
.nav-link:hover { background: #f1f5f9; color: var(--primary); }
.nav-link.active { color: var(--primary); background: rgba(42,53,134,.08); }
.nav-demo-link {
  margin-left: 5px;
  color: #fff;
  background: var(--primary);
}
.nav-demo-link:hover { color: #fff; background: var(--primary-dark); }

/* Feature card hover */
.feature-card {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15,23,42,.15);
  border-color: rgba(42,53,134,.2);
}
.feature-card:hover .feature-icon {
  background: var(--primary) !important;
  color: #fff !important;
}

.feature-icon {
  transition: background .3s ease, color .3s ease;
}

/* Tabs */
.tab-btn {
  padding: 11px 22px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
  background: var(--primary);
  color: #fff;
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp .4s ease-out forwards; }

/* Accordion */
.faq-item {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 0 24px;
  transition: box-shadow .2s ease;
}
.faq-item.open { box-shadow: 0 4px 12px rgba(15,23,42,.06); }
.faq-btn {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  font-weight: 600;
  color: #0f172a;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  font-size: 17px;
}
.faq-btn svg { transition: transform .25s ease; flex-shrink: 0; }
.faq-item.open .faq-btn svg { transform: rotate(180deg); }
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  color: #475569;
  line-height: 1.7;
}
.faq-item.open .faq-content {
  max-height: 300px;
  padding-bottom: 20px;
}

/* Form inputs */
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  color: #0f172a;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42,53,134,.15);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* Enquiry forms */
.enquiry-card {
  padding: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 55px -35px rgba(15,23,42,.3);
}
.enquiry-card-heading span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.enquiry-card-heading h2 { margin-top: 8px; font-size: 30px; color: #0f172a; }
.enquiry-card-heading p { margin-top: 8px; color: #64748b; font-size: 14px; }
.enquiry-form { position: relative; display: grid; gap: 20px; margin-top: 28px; }
.form-label { display: block; margin-bottom: 8px; color: #334155; font-size: 14px; font-weight: 700; }
.form-label > span { color: #dc2626; }
.form-label small { margin-left: 5px; color: #94a3b8; font-size: 11px; font-weight: 500; }
.enquiry-submit {
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.enquiry-submit svg { width: 18px; height: 18px; }
.enquiry-privacy { display: flex; justify-content: center; align-items: center; gap: 7px; color: #64748b; font-size: 11px; text-align: center; }
.enquiry-privacy svg { width: 15px; height: 15px; color: #16805d; flex-shrink: 0; }
.form-honeypot { position: absolute!important; left: -10000px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }
.form-notice { display: none; padding: 13px 16px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.form-notice.show { display: block; }
.form-notice.success { color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; }
.form-notice.error { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }

@media (max-width: 640px) {
  .enquiry-card { padding: 24px 20px; }
  .enquiry-card-heading h2 { font-size: 26px; }
}

/* Toast */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: 12px;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  z-index: 100;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  max-width: 360px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }

/* Mobile nav */
.mobile-nav { display: none; }
.mobile-nav.open { display: block; }

.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  color: #334155;
  font-weight: 600;
  font-size: 17px;
  transition: background .2s ease;
}
.mobile-nav-link:hover { background: #f1f5f9; }
.mobile-nav-link.active {
  background: rgba(42,53,134,.08);
  color: var(--primary);
}

/* Text selection helper */
.text-primary { color: var(--primary); }
.bg-primary { background-color: var(--primary); }
.border-primary { border-color: var(--primary); }

/* Float card on hero */
.float-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(15,23,42,.15);
  border: 1px solid #f1f5f9;
  padding: 20px;
  width: 260px;
}
@media (max-width: 640px) { .float-card { display: none; } }
@media (min-width: 640px) { .float-card { left: 32px; } }

/* Smooth social icons */
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #1e293b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.social-icon:hover { background: var(--primary); }

/* Logo card on clients page */
.logo-card {
  height: 80px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  transition: all .2s ease;
}
.logo-card:hover {
  border-color: rgba(42,53,134,.3);
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.logo-card p {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #64748b;
  font-size: 15px;
  line-height: 1.2;
  transition: color .2s ease;
}
.logo-card:hover p { color: var(--primary); }
.d-none{ display: none; }
.footer-abdm-badge {
  display: block;
  width: 240px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f7f7f7;
  transition: box-shadow .2s ease;
}
.footer-abdm-badge img { width: 100%; height: auto; }
.footer-abdm-badge:hover { box-shadow: 0 0 0 3px rgba(139,150,216,.35); }
.footer-abdm-badge:focus-visible { outline: 3px solid #a7f3d0; outline-offset: 4px; }
/* Shared certification announcement, above the main navigation. */
.abdm-announcement {
  background: linear-gradient(110deg, #fff4bd, #ffe28a 55%, #fff0b3);
  color: #1d255f;
  border-bottom: 2px solid #e6bb45;
  box-shadow: 0 3px 14px rgba(117,85,0,.12);
}
.abdm-announcement-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  font-size: 16px;
  line-height: 1.5;
}
.abdm-certified, .abdm-integration {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.abdm-certified { font-weight: 600; }
.abdm-certified::before {
  content: "NEW";
  padding: 4px 9px;
  border-radius: 5px;
  background: #1d255f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
}
.abdm-certified svg {
  width: 27px;
  height: 27px;
  color: #157044;
  flex-shrink: 0;
}
.abdm-certified strong { font-size: 19px; font-weight: 800; }
.abdm-integration {
  border-left: 1px solid #bca24e;
  padding-left: 24px;
  color: #34395b;
  font-size: 13px;
  font-weight: 600;
}
.abdm-milestone {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #167047;
  border-radius: 6px;
  background: #167047;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 2px 3px rgba(22,112,71,.12);
}
@media (max-width: 640px) {
  .abdm-announcement-inner { flex-direction: column; gap: 7px; padding: 10px 12px; }
  .abdm-certified { gap: 8px; font-size: 14px; }
  .abdm-certified strong { font-size: 17px; }
  .abdm-certified svg { width: 23px; height: 23px; }
  .abdm-integration { border-left: 0; padding-left: 0; font-size: 12px; }
  .abdm-milestone { padding: 2px 9px; }
}
@media (min-width: 640px) { .logo-card p { font-size: 17px; } }
