:root {
  --blue: #0b4f9f;
  --blue-700: #073a77;
  --saffron: #f47b20;
  --saffron-100: #fff1e7;
  --green: #25d366;
  --ink: #182231;
  --muted: #607085;
  --line: #dfe7f1;
  --surface: #ffffff;
  --soft: #f6f9fd;
  --shadow: 0 18px 45px rgba(20, 52, 92, 0.13);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

img,
svg {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(20px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 231, 241, 0.85);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(20, 52, 92, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-weight: 800;
  color: var(--blue-700);
}

.brand-logo {
  width: clamp(168px, 18vw, 245px);
  height: 52px;
  object-fit: contain;
  object-position: left center;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  font-size: 14px;
  font-weight: 700;
  color: #2d3a4b;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 0;
  height: 2px;
  background: var(--saffron);
  transition: width 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  width: 100%;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-email {
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.header-call svg,
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 67px);
  overflow: hidden;
  background: #eef6ff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 34%, rgba(255, 255, 255, 0.34) 62%, rgba(255, 255, 255, 0.04) 100%),
    url("assets/bharat-digital-hero.jpg") center right / cover no-repeat;
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 67px);
  padding: 72px 0 90px;
}

.hero-content {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--saffron);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 720px;
  color: #102033;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-subtext {
  max-width: 600px;
  margin: 24px 0 0;
  color: #405169;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--saffron);
  box-shadow: 0 12px 28px rgba(244, 123, 32, 0.26);
}

.btn-secondary {
  color: var(--blue-700);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(20, 52, 92, 0.1);
}

.btn-whatsapp {
  color: #fff;
  background: var(--green);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-metrics span {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(223, 231, 241, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  box-shadow: 0 12px 30px rgba(20, 52, 92, 0.08);
}

.hero-metrics strong {
  display: block;
  color: var(--blue-700);
  line-height: 1.1;
}

.trust-strip {
  background: var(--blue-700);
  color: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.trust-grid span {
  padding: 20px;
  text-align: center;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
}

.section {
  padding: 92px 0;
}

.section-blue {
  background: linear-gradient(135deg, #073a77 0%, #0b4f9f 58%, #126ccf 100%);
  color: #fff;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.about-copy p,
.contact-copy p {
  color: var(--muted);
}

.section-blue .about-copy p,
.section-blue .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.service-card,
.portfolio-card,
.review-card,
.process-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 52, 92, 0.07);
}

.service-card {
  min-height: 246px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 123, 32, 0.45);
}

.service-card svg {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  padding: 9px;
  border-radius: 8px;
  color: var(--blue);
  background: #eaf3ff;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.process-step h3,
.portfolio-card h3,
.review-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

.service-card p,
.process-step p,
.portfolio-card p,
.review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-copy p {
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: #fff;
  border-bottom: 2px solid var(--saffron);
  font-weight: 800;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stats-panel div {
  min-height: 148px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.stats-panel strong {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.stats-panel span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}

.why-list {
  display: grid;
  gap: 14px;
}

.why-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.why-item span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.why-item p {
  margin: 0;
  color: #39485c;
  font-weight: 700;
}

.process-section,
.faq-section {
  background: var(--soft);
}

.process-grid,
.portfolio-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.process-step {
  position: relative;
  min-height: 214px;
  padding: 28px;
}

.process-step span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--saffron);
  font-weight: 900;
}

.portfolio-card {
  min-height: 210px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(11, 79, 159, 0.06), rgba(244, 123, 32, 0.08)),
    #fff;
}

.portfolio-card span {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--blue-700);
  background: #eaf3ff;
  font-size: 13px;
  font-weight: 900;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.review-card {
  min-height: 260px;
  padding: 28px;
}

.stars {
  margin-bottom: 16px;
  color: var(--saffron);
  letter-spacing: 0;
}

.review-card h3 {
  margin-top: 20px;
}

.review-card span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(11, 79, 159, 0.08), rgba(244, 123, 32, 0.09)),
    #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.contact-details {
  margin-top: 28px;
  padding-top: 8px;
}

.contact-details a {
  color: var(--blue);
  font-weight: 900;
}

.enquiry-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.enquiry-form label {
  display: grid;
  gap: 8px;
  color: #28384d;
  font-weight: 800;
}

.enquiry-form .full {
  grid-column: 1 / -1;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #ccd7e4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.enquiry-form textarea {
  resize: vertical;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 79, 159, 0.12);
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  color: #d8e7f6;
  background: #0a1f36;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 1.2fr;
  gap: 34px;
  padding: 58px 0;
}

.footer-brand {
  display: inline-flex;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 17px;
}

.site-footer p {
  color: #b8c9dc;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #d8e7f6;
}

.footer-bottom {
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: #b8c9dc;
  font-size: 14px;
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.32);
}

.floating-whatsapp svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
    grid-column: 3;
  }

  .header-actions {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand-logo {
    width: 188px;
    height: 46px;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 47%, rgba(255, 255, 255, 0.62) 100%),
      url("assets/bharat-digital-hero.jpg") center / cover no-repeat;
  }

  .hero-grid {
    min-height: 680px;
    padding: 70px 0 58px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .trust-grid,
  .about-grid,
  .why-grid,
  .faq-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    gap: 0;
  }

  .services-grid,
  .process-grid,
  .portfolio-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 68px 0;
  }

  .section-heading,
  .section-heading.left {
    margin-bottom: 34px;
    text-align: left;
  }

  .enquiry-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 10px;
  }

  .brand-logo {
    width: 168px;
    height: 42px;
  }

  .hero-grid {
    min-height: 650px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .hero-metrics,
  .stats-panel,
  .services-grid,
  .process-grid,
  .portfolio-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    display: grid;
  }

  .trust-grid span {
    padding: 14px;
  }

  .service-card,
  .review-card,
  .process-step,
  .portfolio-card {
    min-height: auto;
  }

  .why-item {
    grid-template-columns: 44px 1fr;
    align-items: start;
  }

  .why-item span {
    width: 42px;
    height: 42px;
  }

  .floating-whatsapp {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
