/* Homepage — testimonial, news ticker, premium marketplace footer */

/* --- Testimonial (above footer) --- */
body.tev-home-page .tev-home-testimonial {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid #e2e8f0;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
}

body.tev-home-page .tev-home-testimonial__inner {
  max-width: 720px;
  margin: 0 auto;
}

body.tev-home-page .tev-home-testimonial__eyebrow {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

body.tev-home-page .tev-home-testimonial__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: clamp(1.1rem, 2.5vw, 1.35rem) clamp(1.15rem, 3vw, 1.5rem);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

body.tev-home-page .tev-home-testimonial__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

body.tev-home-page .tev-home-testimonial__quote {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #64748b;
}

body.tev-home-page .tev-home-testimonial__quote cite {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

/* --- News ticker --- */
body.tev-home-page .news-ticker-section {
  margin-top: 0;
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Premium marketplace footer --- */
body.tev-home-page .footer.tev-home-footer {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  backdrop-filter: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

body.tev-home-page .tev-home-footer__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 60px clamp(12px, 1.5vw, 24px) 25px;
  box-sizing: border-box;
}

body.tev-home-page .tev-home-footer__grid {
  display: grid;
  grid-template-columns:
    minmax(190px, 0.78fr)
    minmax(260px, 1.35fr)
    max-content
    minmax(300px, 1.65fr);
  gap: 28px clamp(20px, 2.5vw, 36px);
  margin: 0;
  align-items: start;
  overflow: visible;
  justify-content: space-between;
  width: 100%;
}

body.tev-home-page .tev-home-footer__grid > div {
  min-width: 0;
  flex: unset;
  max-width: none;
}

/* Brand column — compact, flush left */
body.tev-home-page .tev-home-footer__brand {
  max-width: 230px;
  padding-right: 0;
  justify-self: start;
}

body.tev-home-page .tev-home-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
  max-width: 100%;
}

body.tev-home-page .tev-home-footer__logo .logo-icon {
  flex-shrink: 0;
  line-height: 0;
}

body.tev-home-page .tev-home-footer__logo-text {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.12rem;
  line-height: 1.2;
  white-space: nowrap;
}

body.tev-home-page .tev-home-footer__logo .brand-thunder {
  font-size: 0.9rem;
}

body.tev-home-page .tev-home-footer__logo .brand-ev {
  font-size: 0.9rem;
}

body.tev-home-page .tev-home-footer__logo .brand-charging {
  display: inline;
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  margin: 0 0 0 0.15rem;
  align-self: baseline;
}

body.tev-home-page .tev-home-footer .footer-text {
  margin: 0 0 0.85rem;
  font-size: 13px;
  line-height: 1.65;
  color: #64748b;
  max-width: 220px;
}

body.tev-home-page .tev-home-footer__social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

body.tev-home-page .tev-home-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body.tev-home-page .tev-home-footer__social a:hover {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #eff6ff;
}

/* Headings */
body.tev-home-page .tev-home-footer .footer-heading {
  margin: 0 0 1rem;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #0f172a;
  white-space: nowrap;
}

/* Quick Links — dual column */
body.tev-home-page .tev-home-footer__links-col {
  padding: 0;
  min-width: 0;
}

body.tev-home-page .tev-home-footer__links-grid {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 8px clamp(18px, 2vw, 32px);
  width: max-content;
  max-width: 100%;
}

body.tev-home-page .tev-home-footer .footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.tev-home-page .tev-home-footer .footer-links a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

body.tev-home-page .tev-home-footer .footer-links a:hover {
  color: #2563eb;
}

body.tev-home-page .tev-home-footer .footer-links li {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  white-space: nowrap;
}

/* Legal — two columns, width from longest label (no wrap) */
body.tev-home-page .tev-home-footer__legal-col {
  width: max-content;
  max-width: none;
  justify-self: start;
}

body.tev-home-page .tev-home-footer__legal-grid {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 8px clamp(18px, 2vw, 32px);
  width: max-content;
}

body.tev-home-page .tev-home-footer__legal-col .footer-links {
  gap: 8px;
  width: max-content;
}

/* Contact — two columns (address | details), extra width from tighter brand */
body.tev-home-page .tev-home-footer__contact-col {
  min-width: 0;
  justify-self: stretch;
}

body.tev-home-page .tev-home-footer__contact-grid {
  display: grid;
  grid-template-columns: minmax(168px, 1fr) minmax(260px, 1.35fr);
  gap: 8px clamp(20px, 2.5vw, 32px);
  align-items: start;
}

body.tev-home-page .tev-home-footer__contact-body p {
  margin: 0 0 0.65rem;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

body.tev-home-page .tev-home-footer__contact-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  min-width: 0;
}

body.tev-home-page .tev-home-footer__contact-icon {
  flex: 0 0 auto;
  width: 1.15em;
  text-align: center;
  line-height: 1;
}

body.tev-home-page .tev-home-footer__contact-line a,
body.tev-home-page .tev-home-footer__contact-line > span:last-child {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

body.tev-home-page .tev-home-footer__contact-line--hours > span:last-child {
  white-space: normal;
}

body.tev-home-page .tev-home-footer__contact-body p:last-child {
  margin-bottom: 0;
}

body.tev-home-page .tev-home-footer__address {
  margin-bottom: 0.85rem !important;
}

body.tev-home-page .tev-home-footer__contact-body a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}

body.tev-home-page .tev-home-footer__contact-body a:hover {
  color: #2563eb;
}

body.tev-home-page .tev-home-footer__gstin span {
  font-weight: 600;
  color: #334155;
}

body.tev-home-page .tev-home-footer__gstin {
  white-space: nowrap;
}

body.tev-home-page .tev-home-footer__hours {
  color: #64748b;
}

/* Copyright bar */
body.tev-home-page .tev-home-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

body.tev-home-page .tev-home-footer .footer-bottom {
  padding-top: 20px;
  text-align: left;
}

body.tev-home-page .tev-home-footer__bottom p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

body.tev-home-page .tev-home-footer__install {
  display: none;
  padding: 0.45rem 0.95rem;
  font-size: 0.75rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 99px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

body.tev-home-page .tev-home-footer__accent {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #ff6600 0%, #f97316 45%, #fb923c 100%);
}

/* Tablet — 2 columns */
@media (max-width: 1024px) {
  body.tev-home-page .tev-home-footer__inner {
    padding: 48px clamp(12px, 2vw, 20px) 22px;
  }

  body.tev-home-page .tev-home-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
  }

  body.tev-home-page .tev-home-footer__brand,
  body.tev-home-page .tev-home-footer__links-col {
    grid-column: 1 / -1;
  }

  body.tev-home-page .tev-home-footer__brand {
    max-width: none;
  }

  body.tev-home-page .tev-home-footer .footer-text {
    max-width: none;
  }
}

/* Mobile — single column */
@media (max-width: 640px) {
  body.tev-home-page .tev-home-footer__inner {
    padding: 40px 20px 20px;
  }

  body.tev-home-page .tev-home-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.tev-home-page .tev-home-footer__brand,
  body.tev-home-page .tev-home-footer__links-col {
    grid-column: auto;
  }

  body.tev-home-page .tev-home-footer__links-grid {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
  }

  body.tev-home-page .tev-home-footer__legal-col {
    width: 100%;
  }

  body.tev-home-page .tev-home-footer__legal-grid,
  body.tev-home-page .tev-home-footer__contact-grid {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
  }

  body.tev-home-page .tev-home-footer .footer-links a,
  body.tev-home-page .tev-home-footer .footer-links li {
    white-space: normal;
  }

  body.tev-home-page .tev-home-footer__contact-line a,
  body.tev-home-page .tev-home-footer__contact-line > span:last-child {
    white-space: normal;
  }

  body.tev-home-page .tev-home-footer__gstin {
    white-space: normal;
  }

  body.tev-home-page .tev-home-footer__links-grid .footer-links + .footer-links {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  body.tev-home-page .tev-home-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Override global footer mobile horizontal scroll */
@media (max-width: 900px) {
  body.tev-home-page .footer-grid.tev-home-footer__grid {
    display: grid;
    flex-wrap: unset;
    overflow: visible;
    padding-bottom: 0;
  }
}

/* Floating buttons — lift near footer */
body.tev-home-page.tev-near-footer .floating-whatsapp {
  bottom: 5.75rem !important;
  transform: scale(0.92);
  opacity: 0.92;
}

body.tev-home-page.tev-near-footer .tev-ev-assistant {
  bottom: 9.85rem !important;
  transform: scale(0.92);
  opacity: 0.92;
}

body.tev-home-page.tev-near-footer .floating-ai-search-dock {
  bottom: 13rem !important;
}

body.tev-home-page.tev-near-footer .tev-floating-stack {
  bottom: 16.75rem !important;
}

body.tev-home-page.tev-near-footer .floating-whatsapp,
body.tev-home-page.tev-near-footer .tev-ev-assistant,
body.tev-home-page.tev-near-footer .floating-ai-search-dock,
body.tev-home-page.tev-near-footer .tev-floating-stack {
  transition: bottom 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 480px) {
  body.tev-home-page.tev-near-footer .floating-whatsapp {
    bottom: 5.25rem !important;
  }

  body.tev-home-page.tev-near-footer .tev-ev-assistant {
    bottom: 9.35rem !important;
  }

  body.tev-home-page.tev-near-footer .floating-ai-search-dock {
    bottom: 12.5rem !important;
  }

  body.tev-home-page.tev-near-footer .tev-floating-stack {
    bottom: 16rem !important;
  }
}
