/* ============================================
   TATA-FINAL.CSS
   Navy + green theme, light footer aur naye components.
   Sabse LAST load hoti hai (tata-pages.css ke baad).
   ============================================ */

:root {
  --color-primary: #0A3A7D;
  --color-secondary: #4FC03B;
  --navy: #0A3A7D;
  --navy-dark: #062B4F;
  --green: #4FC03B;
  --green-dark: #2F8A21;
  --soft: #F5F8FC;
}

/* ---------- Navbar ---------- */
.navbar-logo img { height: 60px; }
.navbar.scrolled .navbar-logo img { height: 48px; }
.navbar-links a::after { background: var(--green); }
.navbar-btn { box-shadow: 0 4px 14px rgba(10, 58, 125, 0.25); }
.navbar-btn:hover { box-shadow: 0 4px 14px rgba(10, 58, 125, 0.15); }

/* ---------- Light footer ---------- */
.site-footer {
  background: var(--soft);
  color: #555;
  border-top: 4px solid var(--green);
  padding-top: 70px;
}

@media (min-width: 901px) {
  .footer-container { grid-template-columns: 1.5fr 1fr 1.3fr; }
}

.footer-logo { height: 92px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: #667085; max-width: 380px; }
.footer-col h4 { color: var(--navy); }
.footer-col a { color: #667085; }
.footer-col a:hover { color: var(--navy); }
.footer-col p { color: #667085; }
.footer-bottom { border-top: 1px solid #e2e8f0; }
.footer-bottom p { color: #8a94a6; }

/* ---------- Common ---------- */
.t-eyebrow::before { background: var(--green); }
.t-heading h2::after { background: var(--green); }

.t-facts,
.tp-items,
.tp-others,
.tp-info { background: var(--soft); }

.t-facts { border-color: #e8edf4; }

.tp-banner { border-bottom: 1px solid #eef1f5; }

.tp-banner-center h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--green);
  margin: 18px auto 0;
}

.tp-banner-center h1 {
  font-size: 46px;
  margin-bottom: 18px;
}

.n-sec {
  background: #fff;
  padding: 100px 0;
}

.n-sec.soft { background: var(--soft); }

.n-center {
  text-align: center;
  margin-top: 44px;
}

.n-note {
  text-align: center;
  margin-top: 34px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #667085;
}

.n-fineprint {
  text-align: center;
  margin-top: 36px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  color: #98a2b3;
}

/* ---------- Logo slots ---------- */
.logo-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  overflow: hidden;
}

.logo-slot img {
  display: none;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-slot.loaded img { display: block; }

.logo-slot .logo-note {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--navy);
  opacity: 0.65;
}

.logo-slot.loaded .logo-note { display: none; }

/* ---------- Home hero ---------- */
.n-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
  padding: 150px 0 90px;
}

.n-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 58, 125, 0.06), rgba(79, 192, 59, 0.09));
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.n-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.n-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.18;
  color: #12233f;
  margin-bottom: 22px;
}

.n-hero .t-lead {
  margin-bottom: 34px;
  max-width: 560px;
}

/* ---------- Credentials card ---------- */
.n-cred {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 24px 60px rgba(10, 58, 125, 0.1);
}

.n-cred-label {
  margin-bottom: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #8a94a6;
}

.n-cred-vendor {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 26px;
  margin-bottom: 24px;
  border-bottom: 1px solid #eef1f5;
}

.n-cred-vendor .logo-slot {
  flex: 0 0 130px;
  height: 80px;
}

.n-cred-vendor p {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.6;
  color: #333;
}

.n-cred-vendor strong { color: var(--navy); }

.n-logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.n-logo-item {
  margin: 0;
  text-align: center;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.n-logo-item .logo-slot {
  height: 74px;
  margin-bottom: 8px;
}

.n-logo-item figcaption {
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--green-dark);
}

/* ---------- Vendor band ---------- */
.n-band-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: center;
}

.n-band-grid .logo-slot {
  height: 150px;
  border-radius: 18px;
}

.n-band-grid h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  color: #12233f;
  margin-bottom: 16px;
}

/* ---------- Partner cards ---------- */
.n-partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.n-partner-grid.two {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.n-partner {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 18px;
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s ease,
              opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.n-partner:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 38px rgba(10, 58, 125, 0.1);
  border-color: transparent;
}

.n-partner .logo-slot {
  height: 100px;
  margin-bottom: 22px;
}

.n-partner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 700;
  color: #12233f;
  margin-bottom: 12px;
}

.n-status {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(79, 192, 59, 0.14);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--green-dark);
}

.n-partner p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #667085;
}

.n-partner-grid.two .n-partner {
  padding: 40px 36px;
  text-align: left;
}

.n-partner-grid.two .logo-slot { height: 110px; }

/* ---------- About page blocks ---------- */
.n-prose {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.n-prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  color: #12233f;
  margin-bottom: 22px;
}

.n-prose .t-lead { margin-bottom: 18px; }
.n-prose .t-btn { margin-top: 14px; }

.n-vm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.n-vm-card {
  background: var(--soft);
  border-radius: 20px;
  padding: 44px 40px;
}

.n-vm-card.navy {
  background: var(--navy);
  color: #fff;
}

.n-vm-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #12233f;
  margin-bottom: 18px;
}

.n-vm-card.navy h3 { color: #fff; }

.n-vm-card p {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
}

.n-vm-card .t-list {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.n-sec .t-fact {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 16px;
  padding: 26px 24px;
}

.n-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.n-info-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(10, 58, 125, 0.05);
}

.n-info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #12233f;
  margin-bottom: 10px;
}

.n-info-card p {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  line-height: 1.8;
  color: #667085;
}

/* ---------- Products page ---------- */
.n-chips {
  justify-content: center;
  margin-top: 22px;
}

.n-subhead {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 64px 0 28px;
}

.n-subhead h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #12233f;
  white-space: nowrap;
}

.n-subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe6ef;
}

.n-served {
  text-align: center;
  margin: -6px 0 34px;
}

.n-served .t-brand-chips { justify-content: center; }

.tp-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.tp-grid.cols-4 .tp-card-body { padding: 20px 20px 22px; }
.tp-grid.cols-4 .tp-card-body h3 { font-size: 17px; }
.tp-grid.cols-4 .tp-card-body p { font-size: 13.5px; }

.n-sec .tp-card-body p { margin-bottom: 14px; }

.n-from {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--green-dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .n-hero { padding: 130px 0 70px; }
  .n-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .n-hero::before { width: 60%; }
  .n-band-grid { grid-template-columns: 1fr; gap: 30px; }
  .n-band-grid .logo-slot { max-width: 260px; }
  .n-partner-grid { grid-template-columns: repeat(2, 1fr); }
  .n-vm,
  .n-two { grid-template-columns: 1fr; }
  .tp-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar-logo img { height: 46px; }
  .navbar.scrolled .navbar-logo img { height: 40px; }
  .navbar-links { top: 76px; }
}

@media (max-width: 600px) {
  .n-hero { padding: 110px 0 55px; }
  .n-hero h1 { font-size: 32px; }
  .n-cred { padding: 24px 20px; }
  .n-cred-vendor { flex-direction: column; align-items: flex-start; }
  .n-cred-vendor .logo-slot { flex: none; width: 100%; }
  .n-sec { padding: 60px 0; }
  .n-partner-grid,
  .n-partner-grid.two { grid-template-columns: 1fr; }
  .n-partner-grid.two .n-partner { padding: 30px 24px; }
  .n-prose h2,
  .n-band-grid h2 { font-size: 27px; }
  .n-info-card { flex-direction: column; padding: 30px 24px; }
  .n-vm-card { padding: 32px 26px; }
  .n-subhead h3 { font-size: 21px; white-space: normal; }
  .tp-grid.cols-4 { grid-template-columns: 1fr; }
  .tp-banner-center h1 { font-size: 32px; }
}


/* ============================================
   HERO CARD - OUR CLIENTS
   ============================================ */

.n-clients .n-cred-label {
  margin-bottom: 8px;
}

.n-clients-title {
  font-family: 'Playfair Display', serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
  color: #12233f;
  margin-bottom: 10px;
}

.n-clients-text {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #667085;
  margin-bottom: 22px;
}

.n-logo-grid.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.n-logo-grid.clients .n-logo-item {
  width: calc(50% - 7px);
}

.n-logo-grid.clients .n-logo-item.wide {
  width: 100%;
}

.n-logo-grid.clients .logo-slot {
  height: 70px;
  margin-bottom: 8px;
}

.n-logo-grid.clients .n-logo-item.wide .logo-slot {
  height: 84px;
}

.n-logo-grid.clients figcaption {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2px;
  color: #12233f;
}

@media (max-width: 600px) {
  .n-clients-title {
    font-size: 22px;
  }

  .n-logo-grid.clients {
    gap: 10px;
  }

  .n-logo-grid.clients .n-logo-item {
    width: calc(50% - 5px);
  }

  .n-logo-grid.clients .n-logo-item.wide {
    width: 100%;
  }

  .n-logo-grid.clients figcaption {
    font-size: 11.5px;
  }
}


/* ============================================
   HOME HERO - TEXT POSITION + OPENING ANIMATION
   ============================================ */

/* Desktop: text card ke top se shuru ho, beech mein nahi */
@media (min-width: 993px) {
  .n-hero {
    padding-top: 130px;
  }

  .n-hero-grid {
    align-items: start;
  }

  .n-hero-grid > .reveal:first-child {
    padding-top: 6px;
  }
}

/* Hero ke liye scroll-reveal band, yahan page khulte hi khud animate hota hai */
.n-hero-grid > .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroCard {
  from {
    opacity: 0;
    transform: translateY(44px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Left text: ek ke baad ek upar aata hai */
.n-hero-grid > .reveal:first-child > * {
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.n-hero-grid > .reveal:first-child > :nth-child(1) { animation-delay: 0.10s; }
.n-hero-grid > .reveal:first-child > :nth-child(2) { animation-delay: 0.25s; }
.n-hero-grid > .reveal:first-child > :nth-child(3) { animation-delay: 0.40s; }
.n-hero-grid > .reveal:first-child > :nth-child(4) { animation-delay: 0.55s; }

/* Right card: thoda baad mein, halka zoom ke saath */
.n-hero-grid > .n-cred {
  animation: heroCard 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.30s backwards;
}

/* Card ke andar ke logos: ek-ek karke */
.n-logo-grid.clients .n-logo-item {
  animation: heroRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.n-logo-grid.clients .n-logo-item:nth-child(1) { animation-delay: 0.70s; }
.n-logo-grid.clients .n-logo-item:nth-child(2) { animation-delay: 0.80s; }
.n-logo-grid.clients .n-logo-item:nth-child(3) { animation-delay: 0.89s; }
.n-logo-grid.clients .n-logo-item:nth-child(4) { animation-delay: 0.98s; }
.n-logo-grid.clients .n-logo-item:nth-child(5) { animation-delay: 1.07s; }
.n-logo-grid.clients .n-logo-item:nth-child(6) { animation-delay: 1.16s; }
.n-logo-grid.clients .n-logo-item:nth-child(7) { animation-delay: 1.25s; }

/* Jinke device mein animation band rakhi hai unke liye */
@media (prefers-reduced-motion: reduce) {
  .n-hero-grid > .reveal:first-child > *,
  .n-hero-grid > .n-cred,
  .n-logo-grid.clients .n-logo-item {
    animation: none;
  }
}