/* ==========================================================================
   Footer V2 — Global site footer
   Scoped entirely under .footer-v2 — do not use outside this block
   Phase 18.0 — Premium visual refinement
   ========================================================================== */

.footer-v2 {
  --footer-bg: #F8F8F6;
  --footer-divider: rgba(23, 75, 113, 0.08);
  --footer-heading: var(--secondary, #174B71);
  --footer-link: #393C41;
  --footer-link-hover: var(--secondary, #174B71);
  --footer-muted: #6C7183;
  --footer-border-soft: #E7EAF0;
  --footer-strip-sep: rgba(23, 75, 113, 0.14);

  background: var(--footer-bg);
  border-top: 1px solid var(--footer-divider);
  padding: 36px 64px 24px;
}

.footer-v2__container {
  max-width: 1380px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Product strip
   -------------------------------------------------------------------------- */

.footer-v2__strip {
  text-align: center;
  margin-bottom: 42px;
}

.footer-v2__strip-heading {
  margin: 0 0 24px;
  font-size: var(--text-overline);
  font-weight: 600;
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-overline-wide);
  text-transform: uppercase;
  color: var(--footer-muted);
}

.footer-v2__strip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-body-m);
  line-height: var(--lh-body-tight);
  color: var(--footer-link);
}

.footer-v2__strip-list a:is(:link, :visited) {
  display: inline-block;
  color: var(--link-content-color, var(--footer-heading));
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-v2__strip-list a:hover {
  color: var(--link-content-hover, #123A58);
}

.footer-v2__strip-list a:focus-visible {
  outline: 2px solid var(--footer-heading);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-v2__strip-sep {
  display: inline-block;
  color: var(--footer-strip-sep);
  font-size: var(--text-overline);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Main grid — 3 columns
   -------------------------------------------------------------------------- */

.footer-v2__main {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   Brand column
   -------------------------------------------------------------------------- */

.footer-v2__brand {
  min-width: 0;
}

.footer-v2__brand-content {
  max-width: 335px;
  margin-inline: auto;
}

.footer-v2__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
  line-height: 0;
}

.footer-v2__logo img {
  display: block;
  width: 215px;
  height: auto;
}

.footer-v2__logo:focus-visible {
  outline: 2px solid var(--footer-heading);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer-v2__intro {
  margin: 0 0 52px;
  font-size: var(--text-body-l);
  font-weight: var(--text-body-weight);
  line-height: var(--lh-body-tight);
  color: var(--footer-muted);
  text-align: left;
}

/* --------------------------------------------------------------------------
   Social icons — premium circular buttons
   -------------------------------------------------------------------------- */

.footer-v2__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-v2__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--footer-border-soft);
  border-radius: 999px;
  background: var(--white, #fff);
  color: var(--footer-link);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-v2__social a:hover {
  background: var(--footer-heading);
  border-color: var(--footer-heading);
  color: var(--white, #fff);
}

.footer-v2__social a:focus-visible {
  outline: 2px solid var(--footer-heading);
  outline-offset: 3px;
}

.footer-v2__social svg {
  display: block;
  width: 18px;
  height: 18px;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Navigation columns (also used by Products column)
   -------------------------------------------------------------------------- */

.footer-v2__nav {
  min-width: 0;
}

.footer-v2__nav-title {
  margin: 0 0 var(--stack-title-body);
  padding: 0;
  font-size: var(--text-title-l);
  font-weight: 600;
  line-height: var(--lh-caption);
  letter-spacing: 0;
  text-transform: none;
  color: var(--footer-heading);
}

.footer-v2__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-v2__nav-list a {
  position: relative;
  display: inline-block;
  font-size: var(--text-body-l);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-v2__nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.footer-v2__nav-list a:hover {
  color: var(--footer-link-hover);
}

.footer-v2__nav-list a:hover::after {
  transform: scaleX(1);
}

.footer-v2__nav-list a:focus-visible {
  outline: 2px solid var(--footer-heading);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Bottom bar
   -------------------------------------------------------------------------- */

.footer-v2__bottom {
  margin-top: 32px;
}

.footer-v2__divider {
  margin: 0 0 var(--space-5, 24px);
  border: 0;
  border-top: 1px solid var(--footer-divider);
}

.footer-v2__meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 20px 24px;
}

.footer-v2__copyright {
  justify-self: start;
}

.footer-v2__tagline {
  justify-self: center;
  text-align: center;
}

.footer-v2__meta-right {
  justify-self: end;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 8px;
  white-space: nowrap;
  min-width: 0;
}

.footer-v2__copyright,
.footer-v2__origin {
  margin: 0;
  font-size: var(--text-body-m);
  font-weight: 500;
  line-height: var(--lh-button);
  color: var(--footer-muted);
  white-space: nowrap;
}

.footer-v2__tagline {
  margin: 0;
  font-size: var(--text-body-m);
  font-weight: 600;
  line-height: var(--lh-button);
  color: var(--footer-heading);
  white-space: nowrap;
}

.footer-v2__legal {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-v2__legal a:is(:link, :visited) {
  font-size: var(--text-body-m);
  font-weight: 500;
  line-height: var(--lh-button);
  color: var(--link-content-color, var(--footer-muted));
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer-v2__legal a:hover {
  color: var(--link-content-hover, var(--footer-link-hover));
}

.footer-v2__legal a:focus-visible {
  outline: 2px solid var(--footer-heading);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-v2__legal-sep {
  display: inline-block;
  color: var(--footer-strip-sep);
  font-size: var(--text-overline);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Bottom bar — the right-hand legal group ("Made in India • Privacy Policy
   • Terms & Conditions • Sitemap") needs ~420px to render as one line at
   15px/500. Below ~1400px an equal 1fr third no longer has that much room,
   so it wraps to a second line here rather than overlapping the centered
   tagline or shrinking the equal-thirds grid. The three-column grid row
   itself is never stacked at this range — only this one cell wraps.
   -------------------------------------------------------------------------- */

@media (max-width: 1399px) {
  .footer-v2__meta-right,
  .footer-v2__legal {
    flex-wrap: wrap;
    white-space: normal;
  }

  .footer-v2__copyright,
  .footer-v2__tagline,
  .footer-v2__origin,
  .footer-v2__legal a {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   Tablet — max 1199px
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
  .footer-v2 {
    padding: 34px 48px 22px;
  }

  .footer-v2__container {
    max-width: 1320px;
  }

  .footer-v2__main {
    gap: 44px;
  }
}

/* --------------------------------------------------------------------------
   Tablet — max 991px
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .footer-v2 {
    padding: 32px 32px 20px;
  }

  .footer-v2__main {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }

  .footer-v2__brand {
    grid-column: 1 / -1;
  }

  .footer-v2__brand-content {
    max-width: 32rem;
  }

  .footer-v2__strip {
    margin-bottom: 28px;
  }

  .footer-v2__strip-list {
    gap: 10px 16px;
  }
}

/* --------------------------------------------------------------------------
   Mobile — max 767px
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .footer-v2 {
    padding: 28px 18px 18px;
  }

  .footer-v2__strip {
    margin-bottom: 24px;
  }

  .footer-v2__strip-list {
    gap: 8px 14px;
    font-size: var(--text-body-s);
  }

  .footer-v2__main {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-v2__brand-content {
    max-width: 19rem;
  }

  .footer-v2__social {
    justify-content: center;
  }

  .footer-v2__nav-title {
    margin-bottom: 12px;
  }

  .footer-v2__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer-v2__meta-right {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .footer-v2__nav-list a,
  .footer-v2__nav-list a::after,
  .footer-v2__legal a,
  .footer-v2__strip-list a,
  .footer-v2__social a {
    transition: none;
  }

  .footer-v2__nav-list a:hover::after {
    transform: none;
  }
}
