/* =========================================
   NISHAD SANKALP CAMPAIGN - MODERN FOOTER
   ========================================= */

:root {
  --footer-bg:rgba(252, 241, 229, 0.97);
  --footer-border: #ead8c5;
  --footer-red: #d72a2a;
  --footer-dark-red: #8c1a1a;
  --footer-text: #4a3636;
  --footer-muted: #786257;
}

/* Base Footer Shell */
.site-footer {
  width: 100%;
  margin-top: 0;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  color: var(--footer-text);
  position: relative;
  overflow: hidden;
}

/* Subtle Crimson Top Accent Line */
.site-footer::before {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--footer-red),
    var(--footer-dark-red),
    var(--footer-red),
    transparent
  );
}

/* =========================================
   FOOTER MAIN CONTAINER (3-COLUMN DESKTOP)
   ========================================= */
.footer-main {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

/* =========================================
   COLUMN 1: BRAND
   ========================================= */
.footer-brand {
  max-width: 380px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--footer-dark-red);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.footer-logo-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #ecdcd5;
  box-shadow: 0 4px 12px rgba(66, 37, 27, 0.08);
  overflow: hidden;
  padding: 3px;
}

.footer-logo-mark img,
.footer-logo-mark .footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-brand p {
  margin: 16px 0 0;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* =========================================
   COLUMN HEADINGS
   ========================================= */
.footer-links h3,
.footer-contact h3 {
  position: relative;
  margin: 2px 0 16px;
  color: var(--footer-dark-red);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: "";
  display: block;
  width: 28px;
  height: 2.5px;
  margin-top: 6px;
  border-radius: 10px;
  background: var(--footer-red);
}

/* =========================================
   COLUMN 2: QUICK LINKS (3 LEFT & 3 RIGHT)
   ========================================= */
.footer-links {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  column-gap: 24px;
  row-gap: 0;
  width: 100%;
}

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

.footer-links-col a,
.footer-links a,
.footer-contact a,
.footer-contact span {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--footer-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links-col a:hover,
.footer-links a:hover,
.footer-contact a:hover {
  color: var(--footer-red);
  transform: translateX(3px);
}

/* =========================================
   COLUMN 3: CONTACT
   ========================================= */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-contact a,
.footer-contact span {
  font-size: 13.5px;
}

/* =========================================
   FOOTER BOTTOM STRIP
   ========================================= */
.footer-bottom {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid var(--footer-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--footer-muted);
  font-size: 12.5px;
  font-weight: 500;
}

.footer-bottom span:first-child {
  color: var(--footer-text);
  font-weight: 600;
}

.footer-bottom a,
.footer-dev-link {
  color: var(--footer-dark-red, #8c1a1a);
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.footer-bottom a:hover,
.footer-dev-link:hover {
  color: var(--primary-red, #dc2626);
  text-decoration: none !important;
  opacity: 0.9;
}

/* =========================================
   RESPONSIVE: TABLET (max-width: 860px)
   ========================================= */
@media (max-width: 860px) {
  .site-footer {
    margin-top: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .footer-main {
    width: min(100%, calc(100% - 32px));
    padding: 30px 0 20px;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
    text-align: left;
  }

  .footer-logo {
    font-size: 1.1rem;
  }

  .footer-brand p {
    max-width: 520px;
    margin-top: 10px;
    font-size: 13.5px;
  }

  .footer-bottom {
    width: min(100%, calc(100% - 32px));
    padding: 14px 0;
    font-size: 12px;
  }
}

/* =========================================
   RESPONSIVE: MOBILE (max-width: 560px)
   ========================================= */
@media (max-width: 560px) {
  .site-footer {
    margin-top: 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0 16px;
  }

  .footer-links-grid {
    max-width: 260px;
    column-gap: 20px;
  }

  .footer-links-col a,
  .footer-contact a,
  .footer-contact span {
    font-size: 13px;
    margin-bottom: 9px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    font-size: 11.5px;
    padding: 12px 0 16px;
  }
}
