/* ==========================================================
   Innovantage India Pvt Ltd - main stylesheet
   ========================================================== */
:root {
  --blue-900: #071f4d;
  --blue-700: #0b3a8c;
  --blue-500: #1f6feb;
  --blue-100: #e8f0fe;
  --orange: #f58220;
  --ink: #1a2233;
  --muted: #5b6678;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --border: #e2e8f2;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(11, 58, 140, 0.10);
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-500);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--blue-900);
  margin: 0 0 .6em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

ul {
  padding-inline-start: 1.2em;
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

.section.soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head-split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
  max-width: none;
}

.section-cta-center {
  text-align: center;
  margin-top: 28px;
}

.prose-container {
  max-width: 820px;
}

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: .2s;
  font-family: inherit;
}

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

.btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: #dd6f10;
}

.btn-outline {
  border-color: var(--blue-700);
  color: var(--blue-700);
  background: transparent;
}

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

.btn-sm {
  padding: 9px 20px;
  font-size: .92rem;
}

.link-arrow {
  font-weight: 600;
}

.link-arrow::after {
  content: " →";
}

html[dir="rtl"] .link-arrow::after {
  content: " ←";
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-900);
}

.logo:hover {
  text-decoration: none;
}

/* Logo image + wordmark (INNOVANTAGE on top, INDIA below) */
.logo-img {
  height: 46px;
  width: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: .03em;
  line-height: 1.05;
  white-space: nowrap;
}

.wm-main {
  color: var(--blue-900);
}

.wm-india {
  color: var(--blue-500);
  font-size: .95rem;
  letter-spacing: .4em;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  text-decoration: none;
  color: var(--blue-500);
}

.nav a.active {
  color: var(--blue-700);
  border-bottom-color: var(--orange);
}

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

.lang-btn {
  background: var(--blue-100);
  color: var(--blue-700);
  border: 0;
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

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

.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-900);
  margin: 5px 0;
  transition: .25s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700) 60%, #1b5fd1);
  color: #fff;
  padding: 90px 0 70px;
  overflow: hidden;
}

.hero h1 {
  color: #fff;
}

.hero p {
  color: #d6e4ff;
  font-size: 1.15rem;
  max-width: 540px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}

.hero-art svg {
  width: min(100%, 340px);
  margin-inline: auto;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.page-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #fff;
  padding: 64px 0;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: .3em;
}

.page-hero p {
  color: #d6e4ff;
  max-width: 640px;
  margin: 0;
  font-size: 1.1rem;
}

/* ---------- Partner marquee ---------- */
.partners {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
  overflow: hidden;
}

.marquee {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scroll 28s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

.marquee span {
  font-weight: 800;
  font-size: 1.25rem;
  color: #8a97ad;
  white-space: nowrap;
  letter-spacing: .02em;
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

html[dir="rtl"] .marquee {
  animation-name: scroll-rtl;
}

@keyframes scroll-rtl {
  to {
    transform: translateX(50%);
  }
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: .25s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.card p {
  color: var(--muted);
}

.card .link-arrow {
  margin-top: auto;
}

.tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.tags li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: .82rem;
  color: var(--blue-700);
}

/* Featured project images */
.project-thumb {
  width: 100%;
  height: 210px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 10px;
  margin-bottom: 18px;
  display: block;
  padding: 0;
}

/* ---------- Tabs ---------- */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.tab-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: .2s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--blue-700);
  color: #fff;
  border-color: var(--blue-700);
}

.tab-panel {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.tab-panel.active {
  display: block;
  animation: fade .35s;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chips li {
  background: var(--blue-100);
  color: var(--blue-700);
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
}

/* ---------- Clients ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.client {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 14px;
  text-align: center;
  font-weight: 700;
  color: var(--blue-700);
  transition: .2s;
}

.client:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.client small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}

/* ---------- Dark band ---------- */
.band {
  background: var(--blue-900);
  color: #fff;
}

.band h2,
.band h3 {
  color: #fff;
}

.band p,
.band li {
  color: #c9d9f6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.stat {
  text-align: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  font-size: 2.3rem;
  color: var(--orange);
}

/* ---------- Detail blocks (services / solutions) ---------- */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}

.detail:last-child {
  border-bottom: 0;
}

.detail:nth-child(even) .detail-art {
  order: -1;
}

.detail-art {
  min-height: 240px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding-inline-start: 28px;
  position: relative;
  margin-bottom: 8px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--orange);
  font-weight: 800;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--orange), #ff9d4d);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.cta h2 {
  color: #fff;
}

.cta .btn {
  background: #fff;
  color: var(--blue-900);
}


/* ---------- Contact / Embedded Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
}


  .ms-form-embed {
    display: block;
    width: 100%;
    min-height: 680px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
  }


    .form-fallback {
      margin-top: 12px;
      font-size: .9rem;
      color: var(--muted);
    }


    .info-box {
      background: var(--bg-soft);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 28px;
      height: fit-content;
      align-self: start;
    }


      .info-box li {
        margin-bottom: 10px;
        list-style: none;
      }


      .info-box ul {
        padding: 0;
      }

      .map-wrap {
        margin-top: 20px;
      }

      .map-embed {
        display: block;
        width: 100%;
        height: 260px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: #e9eef7;
      }

      .map-link {
        margin: 10px 0 0;
        font-size: .88rem;
      }


      /* Blog / Insights images */
      .post-thumb {
        display: block;
        width: calc(100% + 56px) !important;
        max-width: none !important;
        height: auto;
        object-fit: unset;
        margin: -28px -28px 18px;
        border-radius: 14px 14px 10px 10px;
      }


      /* ---------- Footer ---------- */
      .site-footer {
        background: #061736;
        color: #b8c7e6;
        padding: 60px 0 0;
      }


      .footer-grid {
        display: grid;
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
        gap: 32px;
        align-items: start;
      }

      .footer-grid>div {
        min-width: 0;
      }

      .site-footer h4 {
        color: #fff;
        font-size: 1rem;
        margin: 0 0 14px;
      }

      .site-footer a {
        color: #b8c7e6;
      }

      .site-footer a:hover {
        color: #fff;
      }

      .site-footer ul {
        list-style: none;
        padding: 0;
        margin: 0;
      }

      .site-footer li {
        margin-bottom: 8px;
      }

      .site-footer .logo {
        color: #fff;
        margin-bottom: 14px;
      }

      .site-footer .wm-main {
        color: #ffffff;
      }

      .site-footer .wm-india {
        color: #5fb0ff;
        letter-spacing: .16em;
      }

      .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, .12);
        margin-top: 40px;
        padding: 20px 0;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        font-size: .9rem;
      }


      /* ---------- Back to top ---------- */
      #backToTop {
        position: fixed;
        bottom: 24px;
        inset-inline-end: 24px;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        border: 0;
        background: var(--orange);
        color: #fff;
        font-size: 1.3rem;
        cursor: pointer;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        transition: .3s;
        z-index: 90;
      }

      #backToTop.show {
        opacity: 1;
        visibility: visible;
        transform: none;
      }

      /* ---------- Scroll reveal ---------- */
      .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity .7s ease, transform .7s ease;
      }

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

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


        .marquee,
        .hero-art svg {
          animation: none;
        }
      }


      /* ---------- RTL ---------- */
      html[dir="rtl"] body {
        font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
      }


      /* ---------- Responsive ---------- */
      @media (max-width: 960px) {

        .grid-4,
        .stats {
          grid-template-columns: repeat(2, 1fr);
        }

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


        .footer-grid {
          grid-template-columns: 1fr 1fr;
        }


        .hero-grid,
        .detail,
        .contact-grid {
          grid-template-columns: 1fr;
        }


        .detail:nth-child(even) .detail-art {
          order: 0;
        }


        .hero-art {
          display: none;
        }
      }


        @media (max-width: 1100px) {
          .nav {
            gap: 14px;
          }


        .nav a {
          font-size: .88rem;
        }
      }


      @media (max-width: 860px) {
        .hamburger {
          display: block;
        }

          .nav {
            position: absolute;
            top: 72px;
            inset-inline: 0;
            background: #fff;
            flex-direction: column;
            gap: 0;
            border-bottom: 1px solid var(--border);
            max-height: 0;
            overflow: hidden;
            transition: max-height .35s ease;
          }


          .nav.open {
            max-height: 420px;
            box-shadow: var(--shadow);
          }


          .nav a {
            padding: 14px 24px;
            border-bottom: 1px solid var(--border);
            font-size: .95rem;
          }


          .nav-actions .btn {
            display: none;
          }
        }


        @media (max-width: 600px) {
          .section {
            padding: 56px 0;
          }


          .grid-2,
          .grid-3,
          .grid-4,
          .stats,
          .footer-grid {
            grid-template-columns: 1fr;
          }


        .logo-wordmark {
          font-size: 1rem;
        }


          .wm-india {
            font-size: .82rem;
          }


        .logo-img {
          height: 40px;
        }
      }


        /* Technology Partners */
        .partner-grid {
          align-items: stretch;
        }

        .partner-card {
          min-height: 190px;
          padding: 24px 18px;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          text-align: center;
          gap: 8px;
        }

        .partner-logo {
          width: 100%;
          height: 65px;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-bottom: 8px;
        }

        .partner-logo img {
          display: block;
          max-width: 175px;
          max-height: 55px;
          width: auto;
          height: auto;
          object-fit: contain;
        }

      .partner-card h3 {
        font-size: 1.1rem;
        margin: 0;
        color: var(--blue-900);
      }

        .partner-card small {
          display: block;
          color: var(--muted);
          font-size: .9rem;
          font-weight: 400;
          margin: 0;
        }

        .partner-card:hover .partner-logo img {
          transform: scale(1.04);
          transition: transform .25s ease;
        }

        @media (max-width: 600px) {
          .partner-card {
            min-height: 175px;
          }

          .partner-logo img {
            max-width: 155px;
            max-height: 50px;
          }
        }

      .partner-card .partner-logo img.ibm-logo {
        width: 180px;
        max-width: 180px;
        height: 75px;
        max-height: 75px;
        object-fit: contain;
      }