/* =============================================================
   TARA INDIA — footer.css
   ============================================================= */


/* ── 1. FORM INPUTS (newsletter) ────────────────────────────────
   ---------------------------------------------------------------- */
input[type="text"],
input[type="email"],
textarea {
  border: 1px solid var(--neutral-light);
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}


/* ── 2. NEWSLETTER INFO BUTTON ──────────────────────────────────
   The 'i' button that opens the privacy popup.
   ---------------------------------------------------------------- */
.info-container {
  position: relative;
  display: inline-block;
}

.info-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid var(--neutral-white);
  background-color: var(--primary-color);
  color: var(--neutral-white);
  font-size: 16px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
}
.info-button:hover {
  transform: scale(1.1);
}

/* Hover tooltip */
.hover-tooltip {
  position: absolute;
  z-index: 10;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background-color: var(--neutral-dark);
  color: var(--neutral-white);
  border-radius: 4px;
  font-size: 0.8em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.info-container:hover .hover-tooltip {
  opacity: 1;
  visibility: visible;
}
.hover-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--neutral-dark) transparent transparent transparent;
}


/* ── 3. PRIVACY POPUP ───────────────────────────────────────────
   ---------------------------------------------------------------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}
.popup-overlay.is-visible {
  visibility: visible;
  opacity: 1;
}

.popup-content {
  background: var(--neutral-white);
  padding: 25px;
  border-radius: 8px;
  position: relative;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
.footer-wrap .col .popup-content p       { color: var(--text-color-dark); }
.footer-wrap .col .popup-content p a     { color: var(--primary-color); text-decoration: underline; }

.popup-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: 300;
  color: var(--neutral-dark);
  background: none;
  border: none;
  cursor: pointer;
}


/* ── 4. FOOTER LAYOUT ───────────────────────────────────────────
   Mobile-first single column, switches to 2-column at 1100px.
   Footer background uses --primary-color (TARA blue #1B6FBF).
   ---------------------------------------------------------------- */
.footer-wrap {
  background-color: var(--primary-color);
  padding: 1.5rem;
  font-size: 14px;
  line-height: 1.6;
}
@media (min-width: 1100px) {
  .footer-wrap { padding: 0 50px; }
}

.responsive-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
  .responsive-footer-grid {
    grid-template-columns: 1fr 2fr;
    gap: 20px;
  }
}

/* Footer text & links */
.footer-wrap h2     { color: var(--text-color-light); font-weight: 600; font-size: 14pt; }
.footer-wrap a      { display: inline-block; color: var(--neutral-light); font-size: 10pt; transition: transform 0.2s ease, text-decoration 0.2s ease; }
.footer-wrap a:hover,
.footer-wrap a:focus { text-decoration: underline; transform: scale(1.05); }
.footer-wrap .col p  { color: var(--text-color-light); }
.footer-wrap .col a  { color: var(--text-color-light); }

.menu-footer-container ul { padding-inline-start: 0; }


/* ── 5. NEWSLETTER COLUMN ───────────────────────────────────────
   ---------------------------------------------------------------- */
.footer-wrap .newsletter {
  margin: 20px 0;
  padding: 1rem;
  border-radius: 10px;
  border: none;
  background: #E3F0FB;  /* blue-50 — same as Our Impact section */
  color: #0D3D7A;
}
.footer-wrap .newsletter h2,
.footer-wrap .newsletter p,
.footer-wrap .newsletter label {
  color: #0D3D7A !important;
}
.footer-wrap .newsletter .newsletter-trust { color: #145899; opacity: 1; }
@media (min-width: 1100px) {
  .footer-wrap .newsletter { padding: 20px; }
}

.footer-wrap .subscribe-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.footer-wrap .subscribe-row input[type="email"] {
  border: 1px solid var(--footer-text);
  border-radius: 4px;
  font-size: 14px;
}

.newsletter-trust {
  font-size: 12px;
  opacity: .75;
}


/* ── 6. LINKS GRID ──────────────────────────────────────────────
   ---------------------------------------------------------------- */
.footer-wrap .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
}
.footer-wrap .grid .col   { margin: 20px 0 0; }
@media (min-width: 1100px) {
  .footer-wrap .grid .col { margin: 2rem; padding: 1rem 0; display: flex; justify-content: center; }
}

.footer-wrap .links,
.footer-wrap .menu li { list-style: none; padding: 0; margin: 0; }
.footer-wrap .links li,
.footer-wrap .menu li  { margin-bottom: 15px; }
.menu ul               { padding-inline-start: 20px; }


/* ── 7. COLUMN HEADINGS ─────────────────────────────────────────
   ---------------------------------------------------------------- */
.footer-col-heading {
  font-size: 1rem;
  letter-spacing: 3px;
  color: var(--text-color-light);
  margin-bottom: 10px;
  position: relative;
}
.footer-col-heading::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  background-color: var(--neutral-light);
  height: 2px;
  width: 40px;
}

.column-01 { border-right: 1px dashed var(--neutral-light); }
@media (min-width: 480px) {
  .column-01,
  .column-02 { border-right: 1px dashed var(--neutral-light); }
}

.footer-col-inner {
  display: flex;
  flex-direction: column;
}


/* ── 9. FOOTER FONTS ────────────────────────────────────────────
   No font-family overrides here. All .semingrah elements use
   Semringah via the class defined in style.css.
   ---------------------------------------------------------------- */
   ---------------------------------------------------------------- */
.footer-wrap .social-grid {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.social-icons {
  max-width: 125px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-wrap .icon-box {
  width: 32px;
  height: 32px;
  margin: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--footer-text);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.footer-wrap .icon-box:hover {
  transform: scale(1.15);
  opacity: .85;
}