/* Shared site footer (includes/footer.php). Every rule is scoped under .ftr. Palette: royal blue + gold + cream.
   Loaded from footer.php, so all pages get it. The old .footer / .site-footer rules in style.css and home.css are no longer used. */
.ftr {
  --f-main: #4b171b; --f-dark: #351014; --f-head: #e5b64f; --f-gold: #d6a33d; --f-text: #fff8ed; --f-link: #f5e8d5; --f-hover: #f2c45c;
  position: relative; color: var(--f-text); font-family: "Noto Sans Devanagari", Arial, sans-serif; line-height: 1.75;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 4 52 28 28 52 4 28z' fill='none' stroke='%23D6A33D' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E") var(--f-main);
  border-top: 3px solid var(--f-gold);
}
.ftr *, .ftr *::before, .ftr *::after { box-sizing: border-box; }
.ftr p, .ftr ul, .ftr h4 { margin: 0; }
.ftr ul { padding: 0; list-style: none; }
.ftr a { color: inherit; text-decoration: none; }
.ftr-wrap { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }

/* temple-arch frieze along the top edge */
.ftr-frieze { height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='22' viewBox='0 0 32 22'%3E%3Cpath d='M3 22V13a13 13 0 0 1 26 0v9' fill='none' stroke='%23D6A33D' stroke-opacity='.6' stroke-width='1.2'/%3E%3Ccircle cx='16' cy='4' r='1.5' fill='%23E5B64F' fill-opacity='.75'/%3E%3C/svg%3E") repeat-x center bottom / 32px 22px; border-bottom: 1px solid rgba(214,163,61,.35); }

/* devotional highlight */
.ftr-devotion { padding: clamp(34px, 5vw, 56px) 0 clamp(26px, 4vw, 40px); text-align: center; border-bottom: 1px solid rgba(214,163,61,.22); }
.ftr-orn { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 360px; margin: 0 auto 16px; }
.ftr-orn::before, .ftr-orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--f-gold)); }
.ftr-orn::after { transform: scaleX(-1); }
.ftr-orn i { width: 10px; height: 10px; background: var(--f-gold); transform: rotate(45deg); box-shadow: 0 0 0 4px rgba(214,163,61,.18); }
.ftr-verse { font: 700 clamp(1.45rem, 3.2vw, 2.3rem)/1.4 "Tiro Devanagari Sanskrit", serif; color: var(--f-text); letter-spacing: .01em; }
.ftr-jai { margin-top: 8px !important; font: 700 clamp(1.15rem, 2.2vw, 1.55rem)/1.5 "Tiro Devanagari Sanskrit", serif; color: var(--f-head); letter-spacing: .08em; }

/* main grid */
.ftr-main { padding: clamp(36px, 5vw, 60px) 0 clamp(28px, 4vw, 44px); }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.ftr-logo { display: flex; align-items: center; gap: 14px; }
.ftr-logo img { width: 76px; height: 76px; flex: none; object-fit: cover; border-radius: 18px; border: 2px solid var(--f-gold); background: var(--f-text); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ftr-logo strong { display: block; font: 700 1.35rem/1.35 "Tiro Devanagari Sanskrit", serif; color: var(--f-head); }
.ftr-logo em { display: block; margin-top: 2px; font-style: normal; font-size: .9rem; color: var(--f-text); opacity: .85; }
.ftr-brand p { margin-top: 18px !important; max-width: 440px; font-size: .98rem; color: var(--f-text); }
.ftr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
.ftr-chips li { padding: 3px 13px; border: 1px solid rgba(214,163,61,.4); border-radius: 99px; background: rgba(214,163,61,.07); color: var(--f-head); font-size: .84rem; font-weight: 700; line-height: 1.7; }

.ftr-col h4, .ftr-contact h4 { display: flex; align-items: center; gap: 9px; margin-bottom: 18px !important; padding-bottom: 12px; border-bottom: 1px solid rgba(214,163,61,.3); font: 700 1.2rem/1.4 "Tiro Devanagari Sanskrit", serif; color: var(--f-head); position: relative; }
.ftr-col h4 svg, .ftr-contact h4 svg { flex: none; color: var(--f-gold); }
.ftr-col h4::after, .ftr-contact h4::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 46px; height: 2px; background: var(--f-gold); }
.ftr-col li + li { margin-top: 2px; }
.ftr-col li a { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 4px 0; color: var(--f-link); font-size: .98rem; transition: color .25s ease, transform .25s ease; }
.ftr-col li a::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--f-gold); transform: rotate(45deg) scale(.8); opacity: .8; transition: transform .25s ease, opacity .25s ease; }
.ftr-col li a:hover { color: var(--f-hover); transform: translateX(5px); }
.ftr-col li a:hover::before { transform: rotate(45deg) scale(1.15); opacity: 1; }
.ftr a:focus-visible { outline: 2px solid var(--f-hover); outline-offset: 3px; border-radius: 4px; }
.ftr-note { margin-top: 16px !important; padding: 12px 14px; border-left: 3px solid var(--f-gold); border-radius: 0 10px 10px 0; background: rgba(255,248,237,.06); color: var(--f-link); font-size: .86rem; line-height: 1.7; }

/* contact block (inside the brand column) */
.ftr-contact { margin-top: 30px; max-width: 440px; }
.ftr-contact li + li { margin-top: 6px; }
.ftr-crow { display: flex; align-items: center; gap: 13px; min-height: 44px; color: var(--f-link); font-size: .98rem; transition: color .25s ease; }
.ftr-ci { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(214,163,61,.55); border-radius: 50%; color: var(--f-gold); transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.ftr-ci svg { display: block; }
.ftr-ct { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.ftr-ct em { font-style: normal; color: var(--f-head); font-size: .84rem; }
a.ftr-crow:hover { color: var(--f-hover); }
a.ftr-crow:hover .ftr-ci { background: rgba(214,163,61,.16); border-color: var(--f-hover); color: var(--f-hover); }

/* bottom bar */
.ftr-bottom { border-top: 1px solid rgba(214,163,61,.3); background: var(--f-dark); }
.ftr-bottom-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 24px; padding: 16px 0; font-size: .88rem; }
.ftr-copy { color: var(--f-link); }
.ftr-om { color: var(--f-head); font: 700 1.02rem/1.5 "Tiro Devanagari Sanskrit", serif; text-align: center; white-space: nowrap; }
.ftr-credit { text-align: right; color: var(--f-link); font-size: .82rem; }
.ftr-credit a { color: var(--f-head); font-weight: 700; transition: color .2s ease; }
.ftr-credit a:hover { color: var(--f-hover); text-decoration: underline; }

/* back-to-top: same button/handler as before (#backTop, main.js), restyled */
.back-top { color: var(--f-head); background: var(--f-main); border: 1px solid var(--f-gold); box-shadow: 0 6px 16px rgba(53,16,20,.35); font-size: 1.15rem; }
.back-top:hover { color: var(--f-dark); background: var(--f-hover); }

/* tablet */
@media (max-width: 1024px) {
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-brand, .ftr-info { grid-column: 1 / -1; }
  .ftr-brand p { max-width: 640px; }
  .ftr-info ul { display: flex; flex-wrap: wrap; gap: 0 32px; }
  .ftr-info li + li { margin-top: 0; }
  .ftr-note { max-width: 640px; }
  .ftr-bottom-row { grid-template-columns: 1fr; text-align: center; }
  .ftr-credit { text-align: center; }
}
/* mobile */
@media (max-width: 640px) {
  .ftr-wrap { width: calc(100% - 32px); }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .ftr-info { grid-column: 1 / -1; }
  .ftr-logo { align-items: flex-start; }
  .ftr-logo img { width: 64px; height: 64px; border-radius: 14px; }
  .ftr-logo strong { font-size: 1.2rem; }
  .ftr-col h4 { font-size: 1.1rem; }
  .ftr-col li a { min-height: 44px; font-size: .95rem; align-items: flex-start; padding: 8px 0; gap: 8px; }
  .ftr-col li a::before { margin-top: .65em; }
  .ftr-col li a:hover { transform: none; }
  .ftr-bottom-row { padding: 18px 0 86px; }
}
@media (prefers-reduced-motion: reduce) {
  .ftr *, .ftr *::before, .ftr *::after { transition: none !important; }
  .ftr-col li a:hover { transform: none; }
}
