/* ============================================================
   SHREE JEE INFOTECH — COMPONENT STYLES
   All values reference tokens.css. No raw hex here.
   ============================================================ */

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--steel);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--azure-text); text-decoration: none; }
a:hover { color: var(--navy-700); }
ul { list-style: none; padding: 0; }

h1, h2 { font-family: var(--font-display); color: var(--navy); font-weight: bold; }
h3, h4 { font-family: var(--font-body); color: var(--steel); font-weight: bold; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }

/* ---------- ACCESSIBILITY ---------- */
:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 2px;
  border-radius: 3px;
}
.skip-link {
  position: absolute; left: 8px; top: -48px;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-sm);
  z-index: 200; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 8px; color: var(--white); }
.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;
}

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-3); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--sp-12); position: relative; }
.section--white { background: var(--white); }
.section--cloud { background: var(--cloud); }
.section--ink { background: var(--ink); color: var(--mist); }
.section--ink h2 { color: var(--white); }
.section--ink h3 { color: var(--white); }

.section__head { max-width: 720px; margin-bottom: var(--sp-6); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__intro { margin-top: var(--sp-2); color: var(--slate); }
.section--ink .section__intro { color: var(--mist); }

/* ---------- EYEBROW ---------- */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--azure-text);
  margin-bottom: var(--sp-2);
}
.eyebrow--node::before {
  content: ""; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--azure-text); margin-right: 8px; vertical-align: middle;
}
/* On dark grounds, lift eyebrow to Sky for AA (azure on ink is < 4.5:1) */
.hero .eyebrow, .page-hero .eyebrow, .section--ink .eyebrow { color: var(--sky); }
.hero .eyebrow--node::before, .page-hero .eyebrow--node::before,
.section--ink .eyebrow--node::before { background: var(--sky); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.9rem 1.6rem; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--azure-text); color: var(--white); border-color: var(--azure-text); }
.btn--primary:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.btn--on-light.btn--primary { background: var(--navy); border-color: var(--navy); }
.btn--on-light.btn--primary:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn--secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.btn--on-light.btn--secondary { color: var(--navy); border-color: var(--navy); }
.btn--on-light.btn--secondary:hover { background: var(--navy-06); color: var(--navy); }
.btn--tertiary {
  background: none; border: none; padding: 0.4rem 0; color: var(--azure-text);
  text-transform: none; letter-spacing: 0; border-radius: 3px;
}
.btn--tertiary:hover { color: var(--navy-700); gap: 12px; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: padding var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header__inner { display: flex; align-items: center; gap: var(--sp-3); padding-block: var(--sp-2); }
.header.is-scrolled { box-shadow: var(--shadow-card); }
.header.is-scrolled .header__inner { padding-block: 0.6rem; }
.header__logo { display: flex; align-items: center; flex-shrink: 0; }
.header__logo img { height: 40px; width: auto; transition: height var(--dur) var(--ease); }
.header.is-scrolled .header__logo img { height: 34px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--sp-1); }
.nav__link {
  display: inline-block; padding: 0.55rem 0.85rem; border-radius: var(--radius-sm);
  color: var(--steel); font-weight: bold; font-size: 0.9375rem;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--navy); background: var(--navy-06); }
.nav__link[aria-current="page"] { color: var(--azure-text); }
.header__cta { margin-left: var(--sp-2); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white);
  align-items: center; justify-content: center; cursor: pointer; color: var(--navy);
}

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__inner { padding-block: clamp(2rem, 1.2rem + 3vw, 4rem); max-width: 860px; }
.hero__logo { height: 34px; width: auto; margin-bottom: var(--sp-4); }
.hero h1 { color: var(--white); margin-block: var(--sp-2) var(--sp-3); }
.hero h1 .hl { color: var(--azure); }
.hero__sub { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--mist); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
.hero__trust { margin-top: var(--sp-8); }
.hero__trust-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--mist); margin-bottom: var(--sp-2); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); }
.trust-row__item {
  font-family: var(--font-display); font-weight: bold; font-size: 1.05rem;
  color: var(--mist); opacity: 0.85; letter-spacing: 0.02em;
}

/* ---------- STAT BAND ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.stat { text-align: left; }
.stat__num {
  font-family: var(--font-display); font-weight: bold;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); line-height: 1; color: var(--navy);
}
.stat__num--accent { color: var(--orange); }
.stat__label { margin-top: var(--sp-1); color: var(--slate); font-size: 0.95rem; }
.stat__rule { width: 36px; height: 3px; background: var(--azure); border-radius: 2px; margin-top: var(--sp-2); }

/* ---------- CARD GRID / PRODUCT CARDS ---------- */
.grid { display: grid; gap: var(--sp-3); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-4); box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--mist); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--azure-08); color: var(--azure);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-3);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.4rem; color: var(--navy); }
.card p { color: var(--slate); font-size: 0.975rem; margin-bottom: var(--sp-2); }
.card__link { font-weight: bold; }

/* ---------- PILLARS (connected nodes, on ink) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); position: relative; }
.pillar {
  background: var(--ink-tint); border: 1px solid rgba(140,190,233,0.16);
  border-radius: var(--radius); padding: var(--sp-4); position: relative;
}
.pillar__node {
  width: 14px; height: 14px; border-radius: 50%; background: var(--azure);
  box-shadow: 0 0 0 5px rgba(4,127,251,0.18); margin-bottom: var(--sp-3);
}
.pillar h3 { color: var(--white); margin-bottom: 0.4rem; }
.pillar p { color: var(--mist); font-size: 0.95rem; }
.pillars__line { position: absolute; top: calc(var(--sp-4) + 7px); left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140,190,233,0.4), transparent); z-index: 0; }

/* ---------- HOW IT WORKS (steps joined by node-line) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); position: relative; }
.step { position: relative; padding-top: var(--sp-3); }
.step__dot {
  width: 18px; height: 18px; border-radius: 50%; background: var(--white);
  border: 3px solid var(--azure); position: relative; z-index: 1; margin-bottom: var(--sp-3);
}
.step__connector { position: absolute; top: calc(var(--sp-3) + 9px); left: 9px; right: -50%; height: 2px;
  background: var(--line); z-index: 0; }
.step:last-child .step__connector { display: none; }
.step__num { font-size: 0.8rem; font-weight: bold; color: var(--azure); letter-spacing: 0.08em; }
.step h3 { color: var(--navy); margin-block: 0.3rem 0.4rem; }
.step p { color: var(--slate); font-size: 0.95rem; }

/* ---------- PARTNERS WALL ---------- */
.partner-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.partner {
  flex: 0 1 200px; min-width: 160px;
  box-sizing: border-box; padding: 14px 18px;
  display: flex; align-items: center; justify-content: center; min-height: 88px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: bold; font-size: 1.1rem; color: var(--steel);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.partner:hover { border-color: var(--azure); color: var(--navy); transform: translateY(-2px); }
.partner--ph { color: var(--slate); font-style: italic; font-family: var(--font-body); font-weight: normal; }
/* Logo images: never stretch — preserve original aspect ratio, fit inside the tile */
.partner img { max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.partner__name { display: none; }                 /* hidden while the logo image is present */
.partner__name:only-child { display: block; }      /* img removed on error → show the name */
.authorised {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--azure-08); color: var(--navy); border-radius: var(--radius-pill);
  padding: 0.5rem 1rem; font-weight: bold; font-size: 0.875rem;
}
.authorised__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }

/* ---------- TESTIMONIALS (on ink) ---------- */
.quote {
  background: var(--ink-tint); border: 1px solid rgba(140,190,233,0.16);
  border-radius: var(--radius); padding: var(--sp-4);
}
.quote__mark { font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--azure); }
.quote p { color: var(--white); font-size: 1.0625rem; margin-block: var(--sp-2); }
.quote__by { color: var(--mist); font-size: 0.9rem; }
.quote__by strong { color: var(--sky); }

/* ---------- CTA BAND ---------- */
.cta-band { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: clamp(2rem, 1.4rem + 3vw, 4rem); position: relative; overflow: hidden; isolation: isolate; }
.cta-band__field { position: absolute; inset: 0; z-index: -1; }
.cta-band h2 { color: var(--white); max-width: 18ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); }
.cta-band__phone { color: var(--white); font-family: var(--font-display); font-weight: bold; font-size: 1.25rem; }
.cta-band__phone span { display: block; font-family: var(--font-body); font-weight: normal; font-size: 0.8rem; color: var(--mist-2); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: var(--mist); position: relative; overflow: hidden; isolation: isolate; }
.footer__field { position: absolute; inset: 0; z-index: -1; opacity: 0.5; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-5); padding-block: var(--sp-10) var(--sp-6); }
.footer__brand img { height: 38px; margin-bottom: var(--sp-3); }
.footer__brand p { color: var(--mist); font-size: 0.95rem; max-width: 34ch; }
.footer__col h4 { color: var(--white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--sp-2); }
.footer__col a, .footer__col p { display: block; color: var(--mist); font-size: 0.95rem; margin-bottom: 0.6rem; }
.footer__col a:hover { color: var(--white); }
.footer__social { display: flex; gap: var(--sp-1); margin-top: var(--sp-2); }
.footer__social a {
  width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid rgba(140,190,233,0.22);
  display: flex; align-items: center; justify-content: center; color: var(--mist);
}
.footer__social a:hover { color: var(--white); border-color: var(--azure); }
.footer__bottom { border-top: 1px solid rgba(140,190,233,0.16); padding-block: var(--sp-3); display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: space-between; }
.footer__bottom p { font-size: 0.85rem; color: var(--mist); }

/* ---------- FORMS ---------- */
.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-weight: bold; font-size: 0.9rem; color: var(--steel); margin-bottom: 0.4rem; }
.field .req { color: var(--danger-text); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--steel);
  padding: 0.8rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px var(--azure-12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field__error { display: block; color: var(--danger-text); font-size: 0.85rem; margin-top: 0.35rem; min-height: 1em; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--coral); }
.form-success {
  background: var(--azure-08); border: 1px solid var(--azure); border-radius: var(--radius);
  padding: var(--sp-4); text-align: center;
}
.form-success h3 { color: var(--navy); margin-bottom: var(--sp-1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-3); }
.form-alert {
  background: var(--color-danger, #FDECEE); border: 1px solid var(--coral);
  color: var(--danger-text); border-radius: var(--radius-sm);
  padding: 0.75rem 1rem; font-size: 0.9rem; margin-bottom: var(--sp-2);
}
.form-alert a { color: var(--danger-text); text-decoration: underline; }
.map-embed { margin-top: var(--sp-2); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.map-embed iframe { display: block; width: 100%; filter: saturate(0.9); }

/* ---------- CONTACT LAYOUT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--sp-6); align-items: start; }
.info-block { margin-bottom: var(--sp-4); }
.info-block h4 { color: var(--azure); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.info-block p { color: var(--steel); }

/* ---------- PAGE HEADER (inner routes) ---------- */
.page-hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.page-hero__field { position: absolute; inset: 0; z-index: -1; }
.page-hero__inner { padding-block: clamp(3.5rem, 2.6rem + 5vw, 6rem); }
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--mist); max-width: 60ch; margin-top: var(--sp-2); }
.breadcrumb { font-size: 0.85rem; color: var(--mist); margin-bottom: var(--sp-2); }
.breadcrumb a { color: var(--sky); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; background: var(--ink); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.notfound__field { position: absolute; inset: 0; z-index: -1; }
.notfound img { height: 72px; margin: 0 auto var(--sp-4); }
.notfound h1 { color: var(--white); }
.notfound p { color: var(--mist); margin-block: var(--sp-2) var(--sp-4); }

/* ---------- DECORATIVE FULL-BLEED FIELD DIVIDER ---------- */
.field-wrap { position: relative; }
.field-bg { position: absolute; inset: 0; z-index: 0; }
.field-wrap > .container { position: relative; z-index: 1; }

/* ---------- FLOATING WHATSAPP BUTTON ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(11,18,32,0.28);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wa-float:hover { transform: translateY(-2px) scale(1.05); color: #fff; box-shadow: 0 10px 26px rgba(11,18,32,0.34); }
.wa-float:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 560px) { .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; } }

/* ---------- SCROLL REVEAL ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pillars, .steps { grid-template-columns: repeat(2, 1fr); }
  .pillars__line { display: none; }
  .step__connector { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
}
@media (max-width: 820px) {
  .nav {
    position: fixed; top: 0; left: 0; z-index: 90;
    width: 100vw; height: 100vh; height: 100dvh; background: var(--ink);
    display: flex; align-items: center; justify-content: center;
    transform: translateX(100%); transition: transform var(--dur-slow) var(--ease);
    margin: 0;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: center; gap: var(--sp-3); }
  .nav__link { color: var(--white); font-size: 1.5rem; font-family: var(--font-display); }
  .nav__link:hover { background: transparent; color: var(--azure); }
  .header__cta { display: none; }
  .nav-toggle { display: flex; position: relative; z-index: 95; }
  .header:has(.nav.is-open) { background: transparent; border-color: transparent; }
  .header:has(.nav.is-open) .nav-toggle { color: var(--white); border-color: rgba(255,255,255,0.4); background: transparent; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
  .contact-grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: var(--sp-8); }
  .cta-band__actions { gap: var(--sp-2) var(--sp-3); }
}
@media (max-width: 560px) {
  .grid--5, .grid--4, .grid--3, .grid--2, .pillars, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .header__logo img { height: 32px; }
  .header.is-scrolled .header__logo img { height: 30px; }
  .section__head { margin-bottom: var(--sp-4); }
  .cta-band__actions { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .cta-band .btn { width: 100%; justify-content: center; }
}
@media (max-width: 400px) {
  .container { padding-inline: var(--sp-2); }
  .section { padding-block: var(--sp-6); }
  .hero h1 { font-size: 2.25rem; }
  .header__logo img { height: 30px; }
  .footer__social a { width: 36px; height: 36px; }
}
