.footer {
  --footer-gold: #dcc095;
  --footer-muted: #c9beb2;
  padding: 58px 6% 24px;
  background: #2b211f;
  color: var(--cream);
  border-top: 0;
}

.footer-intro,
.footer-divider,
.footer-grid,
.footer .footer-bottom {
  width: min(100%, 1440px);
  margin-inline: auto;
}

.footer-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-intro h2 {
  font-size: clamp(36px, 3.6vw, 54px);
  line-height: 1.16;
}

.footer-intro h2 em { color: var(--footer-gold); }

.footer-visit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 50px;
  padding: 14px 23px;
  border: 1px solid #b99b6c;
  color: var(--footer-gold);
  font-size: 14px;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}

.footer-visit-link:hover { background: var(--footer-gold); color: #2b211f; }
.footer-visit-link svg { width: 18px; height: 18px; }

.footer-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  margin-bottom: 38px;
  color: var(--footer-gold);
  font-size: 15px;
}

.footer-divider::before,
.footer-divider::after {
  content: '';
  height: 1px;
  background: #c3a57940;
}

.footer-divider::before { width: 65px; }
.footer-divider::after { flex: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px,1.35fr) minmax(150px,.8fr) minmax(170px,.85fr) minmax(220px,1fr);
  gap: clamp(36px,4.2vw,72px);
  align-items: start;
  padding-bottom: 42px;
}

.footer-grid > * { min-width: 0; }
.footer-brand { gap: 17px; width: fit-content; }
.footer-brand .brand-symbol { width: 44px; height: 44px; }
.footer-brand .brand-symbol span { color: var(--footer-gold); font-size: 29px; }
.footer-brand .brand-wordmark strong { color: var(--cream); font-size: 29px; }
.footer-brand .brand-wordmark > span { color: var(--footer-gold); font-size: 10px; }

.footer-identity > p {
  max-width: 340px;
  margin-top: 21px;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.9;
}

.footer-identity > p.footer-marathi {
  margin-top: 15px;
  font: 500 13px/1.9 'Noto Sans Devanagari', sans-serif;
  color: var(--footer-gold);
}

.footer-location-label {
  display: block;
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: .13em;
  color: var(--footer-muted);
}

.footer-grid h3 {
  margin: 2px 0 20px;
  font: 500 12px/1.5 var(--sans);
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--footer-gold);
  white-space: normal;
}

.footer-nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-nav > a {
  position: relative;
  display: inline-block;
  padding: 5px 0;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.6;
  transition: color .2s;
}

.footer-nav > a:first-of-type { padding-top: 0; }
.footer-nav > a::after { content:''; position:absolute; left:0; bottom:2px; width:0; height:1px; background:var(--footer-gold); transition:width .2s; }
.footer-nav > a:hover,.footer-nav > a:focus-visible { color: var(--footer-gold); }
.footer-nav > a:hover::after,.footer-nav > a:focus-visible::after { width:100%; }
.footer-contact address { font-style: normal; font-size: 14px; line-height: 1.9; color: var(--footer-muted); }
.footer-phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--cream); font-size: 19px; font-weight:600; letter-spacing: .02em; transition:color .2s; }
.footer-phone:hover,.footer-phone:focus-visible { color:var(--footer-gold); }
.footer-phone svg { width: 17px; height: 17px; color: var(--footer-gold); }
.footer-directions { display: block; width: fit-content; margin-top: 17px; padding-bottom: 5px; border-bottom: 1px solid #b99b6c80; font-size: 14px; color: var(--footer-gold); }
.footer-directions:hover { border-color: var(--footer-gold); }

.footer .footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  border-top: 1px solid #c3a57940;
  padding-top: 23px;
  color: var(--footer-muted);
  font-size: 12px;
  line-height: 1.7;
  padding-bottom: 20px;
}

.footer .footer-bottom .footer-signoff { margin-left: auto; font-size: 10px; letter-spacing: .14em; color:var(--footer-gold); }
.footer .footer-bottom .back-top { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: 12px; color: var(--footer-gold); text-decoration: none; }
.footer .back-top > span { display: grid; place-items: center; border: 1px solid #b99b6c60; width: 34px; height: 34px; font-size: 18px; transition: background .2s; }
.footer .back-top:hover > span { background: #c3a57920; }

@media (min-width: 1600px) {
  .footer { padding-inline: max(6%, calc((100% - 1450px) / 2)); }
}

@media (max-width: 1050px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 38px; }
  .footer-identity { grid-row: span 2; }
  .footer-contact { grid-column: 2 / -1; }
  .footer-contact address br:nth-child(2) { display: none; }
  .footer .footer-bottom .footer-signoff { display: none; }
}

@media (max-width: 1180px) and (min-width: 1051px) {
  .footer-grid { grid-template-columns: minmax(250px,1.25fr) repeat(3,minmax(140px,1fr)); gap:28px; }
}

@media (max-width: 650px) {
  .footer { padding-top: 45px; padding-bottom: 24px; }
  .footer-intro { align-items: flex-start; flex-direction: column; gap: 24px; }
  .footer-intro h2 { font-size: clamp(32px, 7.8vw, 46px); }
  .footer-visit-link { min-height: 48px; padding: 12px 20px; }
  .footer-divider { margin: 32px 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-bottom: 32px; }
  .footer-identity { grid-column: 1 / -1; grid-row: auto; }
  .footer-brand .brand-wordmark strong { font-size: 28px; }
  .footer-identity > p { margin-top: 22px; }
  .footer-identity > p.footer-marathi { margin-top: 12px; }
  .footer-location-label { margin-top: 17px; }
  .footer-grid h3 { margin-bottom: 17px; font-size: 11px; letter-spacing: .1em; }
  .footer-contact { grid-column: 1 / -1; padding-top: 25px; border-top: 1px solid #c3a57940; }
  .footer-contact address br:nth-child(2) { display: inline; }
  .footer .footer-bottom { align-items: flex-start; justify-content: space-between; gap: 18px; padding-top: 24px; }
  .footer .footer-bottom > span:first-child { max-width: 200px; }
  .footer .footer-bottom .back-top { margin-left: 0; gap: 8px; }
}

@media (max-width: 360px) {
  .footer .footer-bottom { flex-direction: column; }
  .footer .footer-bottom > span:first-child { max-width: none; }
}
