/* ==========================================================================
   Dzire Infotech
   Palette sampled from the logo: ink #242627, blue #1D7ACF
   ========================================================================== */

:root {
  --ink:        #242627;
  --ink-soft:   #4a4f52;
  --muted:      #6b7075;
  --line:       #e5e7ea;
  --line-soft:  #f0f1f3;
  --bg:         #ffffff;
  --bg-alt:     #f7f8f9;
  --blue:       #1d7acf;
  --blue-dark:  #1765ac;
  --blue-wash:  #eef5fc;

  --wrap: 1140px;
  --gut: 24px;
  --header-h: 86px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* -------------------------------------------------------------- layout -- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--alt { background: var(--bg-alt); }
.section--line { border-top: 1px solid var(--line); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}
.skip:focus { left: 12px; top: 12px; color: #fff; }

/* --------------------------------------------------------- section head -- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--blue);
}

.s-head { max-width: 100%; margin-bottom: clamp(40px, 5vw, 60px); }
.s-head h2 { font-size: clamp(28px, 3.7vw, 40px); }
.s-head p {
  margin-top: 16px;
  font-size: clamp(16.5px, 1.6vw, 18.5px);
  color: var(--muted);
}

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 15.5px;
  font-weight: 550;
  font-family: inherit;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn svg { width: 17px; height: 17px; }

/* -------------------------------------------------------------- header -- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 14px rgba(36, 38, 39, 0.045);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
}

.brand { display: block; flex-shrink: 0; }
.brand img { width: 212px; height: auto; }

.nav { display: flex; align-items: center; gap: 30px; }

.nav a:not(.btn) {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: 4px;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: var(--ink); }

.header .btn { padding: 10px 20px; font-size: 14.5px; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-right: -9px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  padding-block: clamp(76px, 11vw, 132px) clamp(64px, 8vw, 100px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 420px at 82% -8%, rgba(29,122,207,.075), transparent 70%),
    linear-gradient(180deg, #fbfcfd 0%, #fff 62%);
  z-index: -1;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 6px 14px 6px 10px;
  background: var(--blue-wash);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue-dark);
}
.hero__tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(38px, 6.2vw, 68px);
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.hero h1 em { font-style: normal; color: var(--blue); }

.hero__sub {
  max-width: 54ch;
  margin-top: 26px;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

/* --------------------------------------------------------------- stats -- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(60px, 8vw, 92px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stat { padding: 30px 32px; background: #fff; }
.stat dt {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.stat dd {
  margin: 11px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* ------------------------------------------------------------ services -- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
}
.card:hover {
  border-color: #d3d7dc;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -12px rgba(36, 38, 39, 0.13);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  background: var(--blue-wash);
  border-radius: var(--r-sm);
  color: var(--blue);
}
.card__icon svg { width: 21px; height: 21px; }

.card h3 { margin-bottom: 11px; font-size: 18.5px; }
.card p { font-size: 15.5px; color: var(--muted); }

/* ---------------------------------------------------------------- work -- */

.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* an odd number of projects: the last one spans rather than sitting alone */
.work .proj:last-child:nth-child(odd) { grid-column: 1 / -1; }

.proj {
  display: flex;
  flex-direction: column;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.proj:hover {
  border-color: #d3d7dc;
  box-shadow: 0 10px 30px -12px rgba(36, 38, 39, 0.13);
}

/* Project type badge.
   One style for every type, in the brand blue. The label already carries the
   meaning, so colour-coding the categories would be decoration, not
   information — and blue keeps it distinct from the grey stack tags below.
   The tag--* classes are kept as markup hooks in case the grid ever gains
   filtering; they are deliberately not styled differently today. */
.tag {
  align-self: flex-start;          /* .proj is a flex column; don't stretch */
  margin-bottom: 17px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-wash);
  color: var(--blue-dark);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.proj__meta {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.proj h3 { margin-bottom: 13px; font-size: 21px; }
.proj p { font-size: 15.5px; color: var(--muted); }

.proj__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;   /* keeps stack rows aligned across cards of unequal text */
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.proj__stack span {
  padding: 4px 10px;
  background: var(--bg-alt);
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.note {
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--muted);
}

/* --------------------------------------------------------------- about -- */

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px 30px;
}
.about__col { padding-top: 26px; border-top: 2px solid var(--blue); }
.about__col h3 { margin-bottom: 11px; font-size: 17.5px; }
.about__col p { font-size: 15.5px; color: var(--muted); }

/* -------------------------------------------------------------- process -- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 34px 30px;
}
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.step--on { border-top-color: var(--blue); }
.step__n {
  display: block;
  margin-bottom: 13px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
}
.step h3 { margin-bottom: 10px; font-size: 17.5px; }
.step p { font-size: 15px; color: var(--muted); }

/* ----------------------------------------------------------------- tech -- */

.tech { display: grid; gap: 34px; }
.tech__row {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 26px;
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.tech__row:last-child { padding-bottom: 0; border-bottom: 0; }
.tech__row h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 5px;
}
.tech__tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tech__tags span {
  padding: 8px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.tech__tags span:hover { border-color: var(--blue); color: var(--blue); }

/* --------------------------------------------------------- testimonials -- */

.carousel { position: relative; }

/* horizontal track — scroll-snap gives native swipe on touch for free */
.quotes {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quotes::-webkit-scrollbar { display: none; }
.quote:focus-visible { outline-offset: -2px; }

.quote {
  flex: 0 0 calc((100% - 44px) / 3);   /* 3 up, minus two 22px gaps */
  scroll-snap-align: start;
  margin: 0;                           /* <figure> defaults to 1em 40px */
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.quote svg { width: 24px; height: 24px; margin-bottom: 18px; color: #c8d8e9; }
.quote blockquote {
  flex: 1;                              /* equal heights across the track */
  margin: 0;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-soft);
}
.quote figcaption {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.quote figcaption span {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  color: var(--muted);
}

/* controls */

.carousel__ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
}

.carousel__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease),
              background .18s var(--ease);
}
.carousel__btn svg { width: 17px; height: 17px; }
.carousel__btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.carousel__btn:disabled { opacity: .35; cursor: default; }

.carousel__dots { display: flex; align-items: center; gap: 8px; }

/* stand-in for the dots when there are too many pages to show as dots */
.carousel__count {
  min-width: 62px;
  font-family: var(--mono);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: center;
}

.carousel__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  background: #ccd1d6;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s var(--ease), width .2s var(--ease);
}
.carousel__dots button[aria-selected="true"] {
  width: 22px;
  border-radius: 4px;
  background: var(--blue);
}

/* independently-verified review metrics, sat under the testimonials */
.verified {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 44px;
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.verified__m strong {
  display: block;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.verified__m span {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--muted);
}
.verified__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 550;
}
.verified__link svg { width: 15px; height: 15px; }

/* -------------------------------------------------------------- contact -- */

.contact { text-align: center; }

.s-head--center {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
}
.s-head--center .eyebrow { justify-content: center; }

.mail-cta { margin-bottom: clamp(48px, 6vw, 70px); }

.mail-cta .mail {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--blue);
  font-size: clamp(21px, 3.1vw, 33px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  transition: color .18s var(--ease);
}
.mail-cta .mail:hover { color: var(--blue); }
.mail-cta .btn { margin-top: 32px; }

.cards3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  text-align: left;
}
.ccard {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.ccard svg { width: 19px; height: 19px; margin-bottom: 17px; color: var(--blue); }
.ccard h3 {
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ccard p { font-size: 16.5px; color: var(--ink); }
.ccard a { color: var(--ink); }
.ccard a:hover { color: var(--blue); }

/* --------------------------------------------------------------- footer -- */

.footer {
  padding-block: 46px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14.5px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__brand {
  display: inline-flex;          /* white chip keeps the logo in its real colours */
  padding: 11px 15px;
  background: #fff;
  border-radius: var(--r-sm);
}
.footer__brand img { width: 184px; height: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a { color: rgba(255, 255, 255, 0.6); }
.footer a:hover { color: #fff; }
.footer__legal { width: 100%; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }

/* ------------------------------------------------------------- reveal -- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:active { transform: none; }
}

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 980px) {
  .quote { flex-basis: calc((100% - 22px) / 2); }
  .tech__row { grid-template-columns: 1fr; gap: 14px; }
  .tech__row h3 { padding-top: 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 78px; }
  .brand img { width: 196px; }

  .burger { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px -22px rgba(36,38,39,.3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; width: 100%; }

  .verified { gap: 22px 30px; }
  .work { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .quote { flex-basis: 100%; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__cta .btn { width: 100%; }
  .card, .proj, .quote, .ccard { padding: 26px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
