/* ==========================================================
   Darbar Digital — design system
   Palette and layout follow the reference site: clean white
   canvas, royal indigo primary, violet secondary, coral underline
   accents and soft lavender tiles.
   ========================================================== */

:root {
  --brand: #2e1bd1;        /* primary indigo (buttons, logo) */
  --brand-deep: #1d0fa0;
  --violet: #6b2fb3;       /* active nav, headings accent */
  --coral: #f2706a;        /* hand-drawn underline accent */
  --ink: #16152e;
  --muted: #5e5c75;
  --line: #e4e6f5;
  --tint: #f4f5ff;         /* lavender tile background */
  --tint-2: #eef0ff;
  --white: #ffffff;
  --success: #12a37b;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 18px 50px -22px rgba(46, 27, 209, 0.25);
  --container: min(1200px, calc(100% - 32px));
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: var(--container); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(22, 21, 46, .25); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name {
  font-weight: 800; font-size: 1.32rem; color: var(--brand); letter-spacing: -.01em;
}
.brand-name span { color: var(--violet); }
.brand-name small { display: block; font-size: .58rem; font-weight: 700; letter-spacing: .28em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 1.05rem; font-weight: 500; color: var(--ink); padding: 8px 2px;
  position: relative; transition: color .2s;
}
.nav-links a:hover { color: var(--violet); }
.nav-links a[aria-current="page"] { color: var(--violet); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  border-radius: 3px; background: var(--violet);
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer; place-items: center;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 12px 26px -12px rgba(46, 27, 209, .7); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-outline { background: var(--white); color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--tint); }
.btn-sm { padding: 12px 22px; font-size: .95rem; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.link-cta {
  display: inline-flex; align-items: center; gap: 8px; color: var(--brand);
  font-weight: 700; font-size: .98rem;
}
.link-cta:hover { color: var(--violet); }

/* ---------- headings with coral underline ---------- */
.title {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 800; line-height: 1.15;
  color: var(--ink); letter-spacing: -.02em;
}
.title .accent { color: var(--brand); position: relative; display: inline-block; }
.title .accent::after {
  content: ""; position: absolute; left: 4%; right: 2%; bottom: -.14em; height: 10px;
  background: no-repeat center / 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M2 8 Q60 1 110 6 T198 5' fill='none' stroke='%23f2706a' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.subtitle { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin-top: 16px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { text-align: center; margin: 0 auto 56px; max-width: 760px; }
.section-head .subtitle { margin-inline: auto; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 90px) 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
}
.hero h1 .brand-word { color: var(--brand); }
.hero h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; margin-top: 6px; color: var(--ink); }
.hero h2 .accent { color: var(--brand); position: relative; display: inline-block; }
.hero h2 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: 9px;
  background: no-repeat center / 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M2 8 Q60 1 110 6 T198 5' fill='none' stroke='%23f2706a' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.hero .subtitle { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; color: var(--ink); font-weight: 600; font-size: .95rem;
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { color: var(--brand); flex: none; }

.hero-visual { position: relative; min-height: 520px; }
.hero-blob {
  position: absolute; inset: 6% 0 0 6%; border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%;
  background: linear-gradient(160deg, #e9e6ff, #f6eaff 60%, #fff);
}
.phone {
  position: absolute; left: 50%; top: 4%; transform: translateX(-50%);
  width: 260px; height: 500px; border-radius: 40px; background: #1b1a3a;
  padding: 14px; box-shadow: 0 40px 70px -30px rgba(46, 27, 209, .5);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 28px; background: linear-gradient(180deg, #f5f4ff, #fff);
  padding: 22px 18px; display: flex; flex-direction: column; gap: 14px;
}
.phone-screen .pill { font-size: .72rem; font-weight: 700; color: var(--brand); letter-spacing: .08em; text-transform: uppercase; }
.phone-card {
  background: var(--brand); color: #fff; border-radius: 18px; padding: 18px;
}
.phone-card small { opacity: .8; font-size: .75rem; }
.phone-card strong { display: block; font-size: 1.6rem; margin-top: 4px; }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.phone-grid i {
  aspect-ratio: 1; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; font-style: normal; font-size: 1.2rem;
}
.float-chip {
  position: absolute; background: var(--white); border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .92rem;
  animation: bob 6s ease-in-out infinite;
}
.float-chip .ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
}
.chip-a { top: 10%; left: -2%; }
.chip-a .ico { background: #fff4e6; color: var(--coral); }
.chip-b { bottom: 14%; right: -2%; animation-delay: -3s; }
.chip-b .ico { background: #e7f8f3; color: var(--success); }
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.stat-band {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 14px;
  background: var(--tint); border-radius: 999px; padding: 10px 22px 10px 10px; font-weight: 700;
}
.stat-band .avatars { display: flex; }
.stat-band .avatars i {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px;
}
.stat-band .avatars i:first-child { margin-left: 0; }

/* ---------- service cards (2-col, image-like tile + copy) ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.svc-card {
  display: grid; grid-template-columns: 220px 1fr; align-items: stretch;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d7dbff; }
.svc-art {
  background: radial-gradient(circle at 50% 40%, #ece8ff, var(--tint) 70%);
  display: grid; place-items: center; padding: 26px; color: var(--brand);
}
.svc-art svg { width: 120px; height: 120px; }
.svc-body { padding: 30px 30px 28px; display: flex; flex-direction: column; }
.svc-body h3 { font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.svc-body h3 .accent { color: var(--brand); position: relative; display: inline-block; }
.svc-body h3 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: 7px;
  background: no-repeat center / 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M2 8 Q60 1 110 6 T198 5' fill='none' stroke='%23f2706a' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.svc-body p { color: var(--muted); margin: 12px 0 auto; padding-bottom: 20px; }
.svc-body .btn { align-self: flex-start; }

/* ---------- payment solution tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 20px; text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7dbff; }
.tile .ico {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 20px;
  display: grid; place-items: center; background: var(--tint);
}
.tile h4 { font-size: 1.08rem; font-weight: 800; }
.tile p { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- services page: group blocks ---------- */
.group { margin-bottom: 72px; }
.group:last-child { margin-bottom: 0; }
.group-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; }
.group-head h2 .accent { color: var(--brand); }
.group-head p { color: var(--muted); margin-top: 6px; }
.group-head { margin-bottom: 30px; }

/* ---------- certification strip ---------- */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 46px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; font-weight: 700; font-size: .92rem;
}
.badge svg { color: var(--brand); }

/* ---------- mission / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.mission-card {
  background: linear-gradient(150deg, var(--brand), var(--violet)); color: #fff;
  border-radius: 28px; padding: clamp(32px, 4vw, 52px); box-shadow: 0 30px 60px -28px rgba(46, 27, 209, .6);
}
.mission-card h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; }
.mission-card p { opacity: .92; margin-bottom: 14px; }
.mission-card .pill {
  display: inline-flex; margin-top: 10px; background: rgba(255,255,255,.14); padding: 10px 18px;
  border-radius: 999px; font-weight: 700; font-size: .92rem;
}
.prose p { color: var(--muted); margin-bottom: 18px; font-size: 1.04rem; }
.prose p strong { color: var(--ink); }

/* ---------- value cards (about) ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { background: var(--tint); border-radius: var(--radius-lg); padding: 30px 26px; }
.value .ico {
  width: 54px; height: 54px; border-radius: 16px; background: var(--white); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 20px; box-shadow: 0 8px 20px -12px rgba(46, 27, 209, .4);
}
.value h4 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: .95rem; }

.timeline { list-style: none; display: grid; gap: 18px; }
.timeline li {
  display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--white);
}
.timeline time { font-weight: 800; color: var(--violet); }
.timeline h4 { font-size: 1.1rem; font-weight: 800; }
.timeline p { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 24px; text-align: center; }
.page-hero .subtitle { margin-inline: auto; }
.page-hero .title { max-width: 18ch; margin-inline: auto; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--brand); font-weight: 600; }

/* ---------- cta band ---------- */
.cta-band {
  background: var(--tint); border-radius: 32px; padding: clamp(40px, 6vw, 70px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band .title { max-width: 20ch; margin: 0 auto; }
.cta-band .subtitle { margin: 16px auto 30px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.info-list { display: grid; gap: 18px; }
.info-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--radius);
  background: var(--tint);
}
.info-item .ico {
  width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: var(--white); color: var(--brand);
}
.info-item b { display: block; font-weight: 800; margin-bottom: 2px; }
.info-item span { color: var(--muted); font-size: .98rem; }
.info-item a:hover { color: var(--brand); }

form.form {
  background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: clamp(26px, 4vw, 44px);
  box-shadow: 0 20px 50px -30px rgba(46, 27, 209, .3);
}
.form h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .92rem; font-weight: 700; color: var(--ink); }
.field input, .field textarea, .field select {
  background: var(--white); border: 1.5px solid var(--line); color: var(--ink);
  padding: 14px 16px; border-radius: 12px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(46, 27, 209, .12);
}
.field .error { color: #d6336c; font-size: .82rem; min-height: 1em; }
.form-status { margin-top: 14px; font-size: .95rem; min-height: 1.4em; font-weight: 600; }
.form-status.ok { color: var(--success); }
.form-status.bad { color: #d6336c; }
form.form .btn { width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: #f4f5fb; border-top: 1px solid var(--line); padding: 72px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr 1.4fr; gap: 36px; }
.footer-grid h5 { font-size: 1.05rem; font-weight: 800; margin-bottom: 18px; color: var(--ink); }
.footer-grid ul { list-style: none; display: grid; gap: 12px; }
.footer-grid li, .footer-grid a { color: var(--ink); font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: text-decoration-color .2s, color .2s; }
.footer-grid a:hover { color: var(--brand); text-decoration-color: currentColor; }
.footer-grid .plain li, .footer-grid .plain a { text-decoration: none; }
.footer-about p { color: var(--muted); margin-top: 14px; font-size: .95rem; max-width: 34ch; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: .95rem; }
.contact-line svg { color: var(--brand); flex: none; margin-top: 3px; }
.legal-bar {
  margin-top: 54px; padding: 22px 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  color: var(--muted); font-size: .9rem;
}
.entity-strip { background: #1e1b4b; color: #d9d7f2; padding: 26px 0; font-size: .85rem; }
.entity-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.6fr; gap: 24px; }
.entity-grid small { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #9d99d4; font-weight: 700; margin-bottom: 4px; }
.entity-grid strong { color: #fff; font-weight: 700; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .entity-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 26px; }
}

@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 480px; max-width: 520px; margin: 0 auto; width: 100%; }
  .svc-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-grid; }
  .nav-links {
    position: absolute; top: 84px; left: 0; right: 0; background: var(--white);
    flex-direction: column; gap: 0; padding: 10px 16px 18px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(22, 21, 46, .35); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 4px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-right .btn { display: none; }
  .nav-right .btn.mobile-show { display: none; }
}

@media (max-width: 700px) {
  .svc-card { grid-template-columns: 1fr; }
  .svc-art { padding: 18px; }
  .svc-art svg { width: 84px; height: 84px; }
  .field-row, .values { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .tile { padding: 24px 12px; }
  .footer-grid, .entity-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .hero-cta .btn { width: 100%; }
  .float-chip { font-size: .78rem; padding: 10px 12px; }
  .chip-a { left: 0; } .chip-b { right: 0; }
  .phone { width: 220px; height: 430px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
