/*
  Sri Subrahmanya Matha footer
  Add this in the <head> of each page:
  <link rel="stylesheet" href="footer.css">
*/

.matha-footer {
  --footer-blue: #123d55;
  --footer-blue-deep: #0d3044;
  --footer-gold: #dfc078;
  --footer-ivory: #f5efdf;
  --footer-muted: #d8d0bf;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--footer-ivory);
  background: linear-gradient(135deg, var(--footer-blue), var(--footer-blue-deep));
  font-family: "Open Sans", Arial, sans-serif;
}

.matha-footer,
.matha-footer * {
  box-sizing: border-box;
}

.matha-footer__mandala {
  position: absolute;
  z-index: -1;
  width: min(660px, 90vw);
  aspect-ratio: 1;
  right: -180px;
  top: 5px;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("images/mandala-watermark.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: grayscale(1) brightness(0) invert(1);
}

.matha-footer__inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 25px 0 20px;
}

.matha-footer__intro {
  max-width: 650px;
  margin: 0 auto 42px;
  text-align: center;
  margin-bottom: 20px;
}

.matha-footer__eyebrow {
  margin: 0 0 12px;
  color: var(--footer-gold);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.7;
}

.matha-footer__name {
  margin: 0;
  color: var(--footer-gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  line-height: 1.12;
}

.matha-footer__ornament {
  display: block;
  width: 54px;
  height: 2px;
  margin: 9px auto;
  background: var(--footer-gold);
}

.matha-footer__description {
  max-width: 570px;
  margin: 0 auto;
  color: var(--footer-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.matha-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(223, 192, 120, 0.38);
}

.matha-footer__column h3 {
  margin: 0 0 19px;
  color: var(--footer-gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.matha-footer__column p,
.matha-footer__column address {
  font-size: 15px;
  line-height: 1.8;
  font-style: normal;
}

.matha-footer__contact-list {
  margin: 0;
  color: var(--footer-muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.55;
}

.matha-footer__detail-label,
.matha-footer__contact-label {
  display: block;
  margin-bottom: 4px;
  color: var(--footer-ivory);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.matha-footer__link {
  display: inline-block;
  margin-top: 15px;
  color: var(--footer-gold);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
}

.matha-footer__link:hover,
.matha-footer__column a:hover {
  color: #fff1c8;
  text-decoration: underline;
}

.matha-footer__contact-list {
  padding: 0;
  list-style: none;
}

.matha-footer__contact-list li + li {
  margin-top: 7px;
}

.matha-footer__contact-list a {
  color: var(--footer-muted);
  overflow-wrap: anywhere;
  text-decoration: none;
}

.matha-footer__trust p {
  max-width: 300px;
}

.matha-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 28px;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 12px 0;
  border-top: 1px solid rgba(223, 192, 120, 0.25);
  color: #c9c2b3;
  font-size: 0.68rem;
  line-height: 1.7;
}

.matha-footer__bottom p {
  margin: 0;
  text-align: center;
}

.matha-footer__bottom-note {
  color: var(--footer-gold);
  text-align: center;
} 
  .matha-footer__bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 5px;
  width: 100%;
  }

.matha-footer__bottom p {
  text-align: center;
}

/* Align trust content with its heading */
.matha-footer__trust {
  text-align: center;
}

.matha-footer__trust h3 {
  margin-left: 0;
  padding-left: 0;
}

.matha-footer__trust p {
  margin-left: 0;
  padding-left: 0;
  max-width: 100%;
  text-align: center;
}

.matha-footer {
  background-image:
    linear-gradient(rgba(18, 61, 85, 0.96),
                    rgba(13, 48, 68, 0.96)),
    url("lotus-div.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


@media (max-width: 760px) {
  .matha-footer__inner {
    width: min(100% - 36px, 560px);
    padding: 25px 0 20px;
  }

  .matha-footer__intro {
    margin-bottom: 24px;
  }

  .matha-footer__columns {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 28px;
  }

  .matha-footer__column h3 {
    margin-bottom: 10px;
  }

  .matha-footer__bottom {
    width: calc(100% - 36px);
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
	text-align: center;
  }

  .matha-footer__bottom-note {
    text-align: left;
  }

  .matha-footer__mandala {
    width: 430px;
    right: -210px;
    top: 120px;
  }
}
