/* ============================================
   FOOTER.CSS — Divine Astro Footer
   Clean responsive: 4col → 2col → 1col
   ============================================ */
.footer {
  background: linear-gradient(90deg, #eef8f3 0%, #d9f1e7 52%, #eef8f3 100%);
  color: #1b4434;
  padding: 56px 0 20px;
  border-top: 1px solid rgba(27, 68, 52, 0.12);
  font-size: 1rem;
}

.footer__grid {
  display: grid;
  width: min(100% - 32px, 1480px);
  margin: 0 auto;
  grid-template-columns: minmax(260px, 1.35fr) minmax(170px, .9fr) minmax(170px, .9fr) minmax(230px, 1.15fr);
  gap: 40px;
  align-items: start;
}

.footer .brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
}
.footer .brand img {
  width: clamp(180px, 18vw, 260px);
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.footer-about-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48ch;
  margin: 8px 0 0;
  color: rgba(27, 68, 52, 0.82);
  font-size: 0.94rem;
  line-height: 1.65;
}

.footer h4 {
  color: #173c2d;
  font-family: "Cinzel", "Poppins", serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.footer h4::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 7px;
  background: #3c7861;
  border-radius: 999px;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__links li { margin: 8px 0; }
.footer__links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  color: #356f5a;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color .2s, transform .2s;
}
.footer__links a:hover {
  color: #0f9f70;
  transform: translateX(2px);
}

.footer .social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer .social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(27, 68, 52, 0.14);
  color: #1b4434;
  font-size: 1rem;
  text-decoration: none;
  transition: .2s;
}
.footer .social a:hover {
  color: #0f9f70;
  background: #fff;
  border-color: rgba(15, 159, 112, 0.35);
  box-shadow: 0 8px 20px rgba(15, 159, 112, 0.16);
  transform: translateY(-2px);
}

.footer__bar {
  width: min(100% - 32px, 1480px);
  margin: 40px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(60, 120, 97, 0.28);
  color: rgba(27, 68, 52, 0.75);
  text-align: center;
  font-size: 0.9rem;
}

/* Tablet <= 1180px */
@media (max-width: 1180px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100% - 28px, 1480px);
    gap: 32px;
  }
  .footer__col--brand { grid-column: 1 / -1; }
  .footer-about-preview { max-width: 72ch; -webkit-line-clamp: 5; }
}

/* Mobile <= 768px */
@media (max-width: 768px) {
  .footer { padding: 40px 0 18px; }
  .footer__grid {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 1480px);
    gap: 28px;
    text-align: center;
  }
  .footer__col--brand { grid-column: auto; }
  .footer .brand { justify-content: center; }
  .footer .brand img { width: min(64vw, 220px); max-height: 60px; }
  .footer h4::after { margin-left: auto; margin-right: auto; }
  .footer__links a { justify-content: center; }
  .footer .social { justify-content: center; }
  .footer-about-preview {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    -webkit-line-clamp: 6;
    font-size: 0.9rem;
  }
  .footer__bar { font-size: 0.85rem; }
}

/* ========================= 09. Footer + social + footer mobile rules ========================= */
.footer {
  background: linear-gradient(to right, #e6f4ee, #d2f0e3, #e6f4ee);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #1b4434;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.footer-about-preview {
  display: -webkit-box;
  -webkit-line-clamp: 9;
  /* 5 lines only */ -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  line-height: 1.7;
  max-height: 16em;
  /* safety for 5 lines */
}
@media (max-width: 768px) {
  .section--accent h2, .section--accent h3 {
    font-size: 1.3rem;
  }
.section--accent p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* ========================= FOOTER GRID (ALIGNED PERFECT) ========================= */
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  align-items: start;
  width: min(100% - 32px, 1480px);
  margin: 0 auto;
  padding: 0;
}
.footer .brand img {
  width: 285px;
  height: 72px;
  object-fit: contain;
}
@media (max-width: 1180px) {
  .footer__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 26px;
  }
}
/* ========================= TEXT ALIGN FIX ========================= */
.footer .brand__txt, .footer h4, .footer__links, .social {
  text-align: left;
}
/* ========================= HEADING STYLE (SAME ALL) ========================= */
.footer h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1b4434;
  margin-bottom: 12px;
}
/* optional underline */
.footer h4::after {
  content: "";
  display: block;
  width: 35px;
  height: 2px;
  background: #3c7861;
  margin-top: 6px;
}
/* ========================= LINKS STYLE ========================= */
.footer__links {
  list-style: none;
  padding: 0;
}
.footer__links li {
  margin: 8px 0;
}
.footer__links a {
  color: #3c7861;
  text-decoration: none;
  transition: 0.3s;
}
.footer__links a:hover {
  color: #00c6ff;
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}
/* ========================= SOCIAL ICONS ========================= */
.social {
  display: flex;
  gap: 12px;
}
.social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1b4434;
  transition: 0.3s ease;
}
.social a:hover {
  background: rgba(0, 200, 255, 0.15);
  border-color: rgba(0, 200, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
  transform: translateY(-3px);
}
/* ========================= FOOTER BOTTOM BAR ========================= */
.footer__bar {
  margin-top: 40px;
  padding-top: 15px;
  border-top: 2px solid rgba(60, 120, 97, 0.3);
  text-align: center;
  color: rgba(27, 68, 52, 0.7);
}
/* =========================
   📱 MOBILE RESPONSIVE
========================= */ @media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
    width: min(100% - 28px, 1480px);
    padding: 0;
    gap: 30px;
  }
.footer .brand {
    justify-content: center;
  }
.footer .brand img {
    width: min(48vw, 205px);
    height: 56px;
  }
.footer .brand__txt, .footer h4, .footer__links {
    text-align: center;
  }
.footer {
    background: #e6f4ee;
    font-size: 0.85rem;
  }
.social {
    justify-content: center;
  }
.footer__links li {
    justify-content: center;
  }
}

/* Full-bleed footer: body has a site gutter, so pull footer back to viewport edges. */
.footer {
  width: calc(100% + (2 * var(--page-gutter, 0px))) !important;
  margin-left: calc(-1 * var(--page-gutter, 0px)) !important;
  margin-right: calc(-1 * var(--page-gutter, 0px)) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.footer__grid,
.footer__bar {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.footer__bar .container {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* At 768px and above, keep footer in tablet/desktop layout, not phone stacked mode. */
@media (min-width: 768px) {
  .footer {
    text-align: left !important;
    font-size: 0.95rem !important;
  }

  .footer__grid {
    display: grid !important;
    grid-template-columns: minmax(230px, 1.2fr) minmax(160px, .9fr) minmax(150px, .8fr) minmax(210px, 1fr) !important;
    gap: clamp(18px, 2.4vw, 36px) !important;
    align-items: start !important;
    text-align: left !important;
  }

  .footer__col--brand {
    grid-column: auto !important;
  }

  .footer .brand,
  .footer .brand--light {
    justify-content: flex-start !important;
  }

  .footer .brand img,
  .footer .brand--light img {
    width: clamp(170px, 18vw, 240px) !important;
    height: auto !important;
    max-height: 64px !important;
  }

  .footer .brand__txt,
  .footer h4,
  .footer__links,
  .footer .social {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .footer h4::after {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .footer__links a,
  .footer__link {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}
