/* Footer (site/local/footer.html, put in by server.js compactFooter): the links over the owner's photo
   of Har Ki Pauri in Haridwar (footer-ghat-*.webp, toned a little to the site's green and gold), then
   the copyright bar under a gold line. */
.gt-foot { position: relative; isolation: isolate; overflow: hidden; background: #062E30; color: #C9DCDA;
  font-size: 14px; line-height: 1.6; border-top: 3px solid var(--gt-gold); }
.gt-foot a { color: #E3EFEE; text-decoration: none; transition: color .2s; }
.gt-foot a:hover { color: var(--gt-gold-light); }
.gt-foot a:focus-visible { outline: 2px solid var(--gt-gold-light); outline-offset: 2px; border-radius: 2px; }
.gt-foot ul { list-style: none; margin: 0; padding: 0; }
.gt-foot svg { width: 18px; height: 18px; flex: none; fill: none !important; stroke: var(--gt-gold-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* The scene (the owner's Haridwar photo) is the footer's background: full width at its own proportions,
   standing on the copyright bar, its sky running up behind the links. A deep-green veil keeps the
   links readable and thins out towards the foot, where the scene shows in full; --scene is the room
   left for it below the links. Below 990px it is a band between the links and the bar instead, so a
   tall footer doesn't blow the picture up. */
.gt-foot { --scene: clamp(200px, 21vw, 360px); --bar: 56px; }
.gt-foot__art { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none; }
.gt-foot__art img { display: block; width: 100%; height: auto; }
.gt-foot__art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, #062E30, rgba(6, 46, 48, .8) calc(100% - var(--scene) - var(--bar) - 50px),
    rgba(6, 46, 48, .18) calc(100% - var(--scene) * .5 - var(--bar)), rgba(6, 46, 48, 0) calc(100% - var(--bar))); }
.gt-foot__main { text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.gt-foot .gt-foot__main { padding-bottom: var(--scene); }
@media (max-width: 989px) {
  .gt-foot { --scene: 230px; }
  .gt-foot .gt-foot__main { padding-bottom: 0; }
  .gt-foot__art { position: relative; z-index: 0; height: var(--scene); margin-top: 6px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60px); mask-image: linear-gradient(to bottom, transparent, #000 60px); }
  .gt-foot__art img { height: 100%; object-fit: cover; object-position: 50% 100%; }
  .gt-foot__art::after { background: none; }
}

.gt-foot__main { max-width: 1440px; margin: 0 auto; padding: 40px 32px 0; display: grid;
  grid-template-columns: minmax(250px, 1.45fr) repeat(6, minmax(0, 1fr)); gap: 28px 26px; }
.gt-foot__brand { display: flex; flex-direction: column; align-items: flex-start; }
.gt-foot__logo img { display: block; width: 150px; height: auto; margin-bottom: 12px; }
.gt-foot__brand p { margin: 0 0 10px; max-width: 340px; color: #C9DCDA; }
.gt-foot__addr { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.gt-foot__addr svg { margin-top: 2px; }
.gt-foot__social { display: flex; gap: 10px; margin-top: 14px; order: 1; } /* below the address and numbers */
.gt-foot__social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(212,166,74,.45);
  transition: background .2s, border-color .2s; }
.gt-foot__social a:hover { background: var(--gt-gold); border-color: var(--gt-gold); }
.gt-foot__social a:hover svg { stroke: #062E30; }

.gt-foot h2 { margin: 2px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 400; line-height: 1.25;
  letter-spacing: 0; text-transform: none; color: var(--gt-gold-light); }
.gt-foot ul + h2 { margin-top: 18px; }
.gt-foot__col { font-size: 13.5px; }
.gt-foot__col li + li { margin-top: 5px; }

/* full width; its content lines up with the links (1440px wide, 32px in) */
.gt-foot__bar { display: flex; align-items: center; justify-content: space-between;
  gap: 10px 20px; flex-wrap: wrap; padding: 12px max(32px, calc((100% - 1440px) / 2 + 32px)); font-size: 13px;
  padding-right: max(210px, calc((100% - 1440px) / 2 + 32px)); /* clear of the WhatsApp button */
  position: relative; background: rgba(3, 27, 29, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--gt-gold); box-shadow: 0 -1px 14px rgba(231, 183, 95, .35); }
.gt-foot__bar p { margin: 0; color: #C9DCDA; }
.gt-foot__bar span { margin: 0 4px; color: rgba(212,166,74,.8); }
.gt-foot__bar a { color: #E3EFEE; }
.gt-foot__pay { display: flex; gap: 6px; flex-wrap: wrap; }
.gt-foot__pay li { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); font-size: 12px; color: #DCEBEA; }

/* laptops and tablets: the brand above the links, in two columns (logo, text and social links;
   then the address and numbers) */
@media (max-width: 1199px) {
  .gt-foot__main { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 22px; padding: 34px 24px 0; }
  .gt-foot__brand { grid-column: 1 / -1; display: block; columns: 2; column-gap: 40px; }
  .gt-foot__social { margin: 4px 0 0; }
  .gt-foot__social + .gt-foot__addr { break-before: column; }
  .gt-foot__addr { break-inside: avoid; }
}
/* tablets: three columns of links */
@media (max-width: 989px) {
  .gt-foot__main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* phones: the brand centred, two columns of links */
@media (max-width: 749px) {
  .gt-foot__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; padding: 28px 18px 0; }
  .gt-foot { --scene: 190px; }
  .gt-foot__brand { display: flex; columns: auto; align-items: center; text-align: center; }
  .gt-foot__social { margin-top: 14px; }
  .gt-foot__logo img { margin: 0 auto 10px; width: 130px; }
  .gt-foot__brand p { margin-left: auto; margin-right: auto; font-size: 13px; }
  .gt-foot__addr { justify-content: center; text-align: left; }
  .gt-foot__social { justify-content: center; }
  .gt-foot h2 { font-size: 16px; margin-bottom: 8px; }
  .gt-foot__col { font-size: 13px; }
  .gt-foot__col li + li { margin-top: 4px; }
  .gt-foot__bar { justify-content: center; text-align: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
}
