/*
 * Approved compact temple footer — Staging implementation R1.
 * Every rule is contained by #aj-temple-footer-r1 so the page above the
 * replaced footer cannot inherit this component's visual system.
 */

@font-face {
  font-family: "AJTF Libre Caslon Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/wp-content/themes/abha-jindal-migration/site/assets/aj-temple-footer-r1/libre-caslon-text-400.woff2") format("woff2");
}

@font-face {
  font-family: "AJTF Libre Caslon Text";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/wp-content/themes/abha-jindal-migration/site/assets/aj-temple-footer-r1/libre-caslon-text-700.woff2") format("woff2");
}

#aj-temple-footer-r1 {
  --ajtf-wine: #701b30;
  --ajtf-wine-dark: #501125;
  --ajtf-ivory: #faf7f0;
  --ajtf-line: #dfc4aa;
  --ajtf-policy-line: #c99c76;
  --ajtf-ink: #422a29;
  --ajtf-muted: #87624b;
  box-sizing: border-box;
  container-name: ajtf;
  container-type: inline-size;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 1.15vw;
  overflow: hidden;
  background: #641629;
  color: var(--ajtf-ink);
  font-family: "AJTF Libre Caslon Text", Georgia, serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}

#aj-temple-footer-r1,
#aj-temple-footer-r1 *,
#aj-temple-footer-r1 *::before,
#aj-temple-footer-r1 *::after {
  box-sizing: border-box;
}

#aj-temple-footer-r1 .ajtf-footer {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--ajtf-ivory);
  color: var(--ajtf-ink);
}

#aj-temple-footer-r1 a,
#aj-temple-footer-r1 button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

#aj-temple-footer-r1 a {
  text-decoration: none;
}

#aj-temple-footer-r1 button {
  cursor: pointer;
}

#aj-temple-footer-r1 a:focus-visible,
#aj-temple-footer-r1 button:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--ajtf-wine);
  outline-offset: 5px;
}

#aj-temple-footer-r1 .ajtf-content {
  padding-inline: 3.2cqw;
}

#aj-temple-footer-r1 .ajtf-brand-row {
  display: flex;
  height: 9.5cqw;
  min-height: 122px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--ajtf-line);
}

#aj-temple-footer-r1 .ajtf-brand-link {
  display: block;
  width: 31.5cqw;
  margin-left: -0.8cqw;
  flex-shrink: 0;
}

#aj-temple-footer-r1 .ajtf-brand-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

#aj-temple-footer-r1 .ajtf-enquiry {
  margin-top: 0.55cqw;
}

#aj-temple-footer-r1 .ajtf-enquiry-button {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 23px;
  border: 1px solid var(--ajtf-wine);
  border-radius: 5px;
  background: var(--ajtf-wine);
  color: var(--ajtf-ivory);
  font-size: clamp(17px, 1.25cqw, 21px);
  line-height: 1.25;
  transition: background-color 200ms ease, transform 200ms ease;
}

#aj-temple-footer-r1 .ajtf-enquiry-button:hover {
  background: #551225;
  color: var(--ajtf-ivory);
  transform: translateY(-2px);
}

#aj-temple-footer-r1 .ajtf-enquiry-button svg,
#aj-temple-footer-r1 .ajtf-appointment-link svg {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}

#aj-temple-footer-r1 .ajtf-enquiry p {
  margin: 8px 0 0;
  color: var(--ajtf-muted);
  font-size: clamp(12px, 0.95cqw, 16px);
  line-height: 1.5;
}

#aj-temple-footer-r1 .ajtf-navigation-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.91fr 1.14fr 1fr;
  gap: 1.5cqw;
  padding: 0.85cqw 1cqw 0;
  pointer-events: none;
}

#aj-temple-footer-r1 .ajtf-navigation-row > * {
  min-width: 0;
  pointer-events: auto;
}

#aj-temple-footer-r1 .ajtf-heading {
  margin: 0 0 0.55cqw;
  color: var(--ajtf-wine);
  font-family: inherit;
  font-size: clamp(21px, 1.65cqw, 28px);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.18;
  text-transform: none;
}

#aj-temple-footer-r1 .ajtf-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#aj-temple-footer-r1 .ajtf-link-list li,
#aj-temple-footer-r1 .ajtf-visit-group p,
#aj-temple-footer-r1 .ajtf-appointment-link {
  margin: 0;
  font-size: clamp(16px, 1.24cqw, 21px);
  line-height: 1.45;
}

#aj-temple-footer-r1 .ajtf-link-group a,
#aj-temple-footer-r1 .ajtf-appointment-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color 180ms ease;
}

#aj-temple-footer-r1 .ajtf-link-group a:hover,
#aj-temple-footer-r1 .ajtf-appointment-link:hover,
#aj-temple-footer-r1 .ajtf-policy-links a:hover,
#aj-temple-footer-r1 .ajtf-policy-links button:hover {
  color: var(--ajtf-wine);
  text-decoration: underline;
}

#aj-temple-footer-r1 .ajtf-appointment-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

#aj-temple-footer-r1 .ajtf-social-links {
  display: flex;
  align-items: center;
  gap: 0.58cqw;
  margin-top: 0.75cqw;
}

#aj-temple-footer-r1 .ajtf-social-link {
  display: flex;
  width: 2.5cqw;
  min-width: 36px;
  height: 2.5cqw;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ajtf-wine);
  color: var(--ajtf-ivory);
  transition: background-color 200ms ease, transform 200ms ease;
}

#aj-temple-footer-r1 .ajtf-social-link svg {
  display: block;
  width: 1.3cqw;
  min-width: 19px;
  height: 1.3cqw;
  min-height: 19px;
  fill: currentColor;
}

#aj-temple-footer-r1 .ajtf-social-link:hover {
  background: var(--ajtf-wine-dark);
  color: var(--ajtf-ivory);
  transform: translateY(-3px);
}

#aj-temple-footer-r1 .ajtf-temple-window {
  position: relative;
  height: 18cqw;
  margin-top: -1.75cqw;
  overflow: hidden;
  isolation: isolate;
}

#aj-temple-footer-r1 .ajtf-temple-art {
  position: relative;
  margin-top: -18.3cqw;
  margin-bottom: 0;
  line-height: 0;
}

#aj-temple-footer-r1 .ajtf-temple-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  mix-blend-mode: multiply;
  user-select: none;
  -webkit-user-drag: none;
}

#aj-temple-footer-r1 .ajtf-flag-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: multiply;
}

#aj-temple-footer-r1 .ajtf-policy-row {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 3.05cqw;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0.55cqw 3.2cqw;
  border-top: 1px solid var(--ajtf-policy-line);
  background: var(--ajtf-ivory);
  font-size: clamp(12px, 0.9cqw, 15px);
}

#aj-temple-footer-r1 .ajtf-policy-row p {
  margin: 0;
  white-space: nowrap;
}

#aj-temple-footer-r1 .ajtf-policy-links {
  display: flex;
  align-items: center;
  gap: 0;
}

#aj-temple-footer-r1 .ajtf-policy-links button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

#aj-temple-footer-r1 .ajtf-policy-links > * + * {
  margin-left: 1.25cqw;
  padding-left: 1.25cqw;
  border-left: 1px solid var(--ajtf-policy-line);
}

#aj-temple-footer-r1 .ajtf-back-top {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

#aj-temple-footer-r1 .ajtf-back-top svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

#aj-temple-footer-r1 .ajtf-policy-links .ajtf-motion-toggle {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-left: 14px;
  padding: 0;
  border-left: 0;
}

#aj-temple-footer-r1 .ajtf-motion-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

#aj-temple-footer-r1 .ajtf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@container ajtf (max-width: 1100px) {
  #aj-temple-footer-r1 {
    padding: 1.4vw;
  }

  #aj-temple-footer-r1 .ajtf-content {
    padding-inline: 3.8cqw;
  }

  #aj-temple-footer-r1 .ajtf-brand-row {
    height: 15cqw;
    min-height: 124px;
    gap: 24px;
  }

  #aj-temple-footer-r1 .ajtf-brand-link {
    width: 48cqw;
    margin-left: -1cqw;
  }

  #aj-temple-footer-r1 .ajtf-enquiry {
    margin-top: 0.5cqw;
  }

  #aj-temple-footer-r1 .ajtf-enquiry-button {
    padding: 13px 17px;
    font-size: 17px;
  }

  #aj-temple-footer-r1 .ajtf-enquiry p {
    margin-top: 7px;
    font-size: 12px;
  }

  #aj-temple-footer-r1 .ajtf-navigation-row {
    grid-template-columns: 1fr 1fr;
    gap: 18px 40px;
    padding: 20px 1.5cqw;
  }

  #aj-temple-footer-r1 .ajtf-heading {
    margin-bottom: 8px;
    font-size: 23px;
    line-height: 1.2;
  }

  #aj-temple-footer-r1 .ajtf-link-list li,
  #aj-temple-footer-r1 .ajtf-visit-group p,
  #aj-temple-footer-r1 .ajtf-appointment-link {
    font-size: 15.5px;
    line-height: 1.55;
  }

  #aj-temple-footer-r1 .ajtf-social-links {
    gap: 9px;
    margin-top: 12px;
  }

  #aj-temple-footer-r1 .ajtf-social-link {
    width: 38px;
    height: 38px;
  }

  #aj-temple-footer-r1 .ajtf-social-link svg {
    width: 20px;
    height: 20px;
  }

  #aj-temple-footer-r1 .ajtf-temple-window {
    height: 20.5cqw;
    margin-top: -1cqw;
  }

  #aj-temple-footer-r1 .ajtf-temple-art {
    margin-top: -18.3cqw;
  }

  #aj-temple-footer-r1 .ajtf-policy-row {
    min-height: 0;
    padding: 13px 3.8cqw;
    gap: 20px;
    font-size: 11.5px;
  }

  #aj-temple-footer-r1 .ajtf-policy-links > * + * {
    margin-left: 12px;
    padding-left: 12px;
  }
}

@container ajtf (max-width: 650px) {
  #aj-temple-footer-r1 {
    padding: 1.7vw;
  }

  #aj-temple-footer-r1 .ajtf-footer {
    border-radius: 6px;
  }

  #aj-temple-footer-r1 .ajtf-content {
    padding-inline: 6cqw;
  }

  #aj-temple-footer-r1 .ajtf-brand-row {
    height: auto;
    min-height: 0;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0 20px;
  }

  #aj-temple-footer-r1 .ajtf-brand-link {
    width: 85%;
    margin: 0 auto;
  }

  #aj-temple-footer-r1 .ajtf-enquiry {
    width: 100%;
    margin-top: 0;
  }

  #aj-temple-footer-r1 .ajtf-enquiry-button {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
  }

  #aj-temple-footer-r1 .ajtf-enquiry p {
    margin-top: 7px;
    font-size: 10.5px;
    text-align: center;
  }

  #aj-temple-footer-r1 .ajtf-navigation-row {
    grid-template-columns: 1fr 1fr;
    gap: 21px 14px;
    padding: 22px 0;
  }

  #aj-temple-footer-r1 .ajtf-heading {
    margin-bottom: 9px;
    font-size: 20px;
    line-height: 1.2;
  }

  #aj-temple-footer-r1 .ajtf-link-list li,
  #aj-temple-footer-r1 .ajtf-visit-group p,
  #aj-temple-footer-r1 .ajtf-appointment-link {
    font-size: 13.5px;
    line-height: 1.72;
  }

  #aj-temple-footer-r1 .ajtf-visit-group,
  #aj-temple-footer-r1 .ajtf-social-group {
    grid-column: 1 / -1;
  }

  #aj-temple-footer-r1 .ajtf-visit-group p {
    display: inline;
    margin-right: 11px;
  }

  #aj-temple-footer-r1 .ajtf-appointment-link {
    white-space: normal;
  }

  #aj-temple-footer-r1 .ajtf-social-links {
    gap: 6px;
    margin-top: 11px;
  }

  #aj-temple-footer-r1 .ajtf-social-link {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  #aj-temple-footer-r1 .ajtf-social-link svg {
    width: 20px;
    height: 20px;
  }

  #aj-temple-footer-r1 .ajtf-temple-window {
    height: 20.5cqw;
    margin-top: -0.5cqw;
  }

  #aj-temple-footer-r1 .ajtf-temple-art {
    width: 100%;
    margin-top: -18.2cqw;
    margin-left: 0;
  }

  #aj-temple-footer-r1 .ajtf-policy-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 6cqw 17px;
    font-size: 11px;
  }

  #aj-temple-footer-r1 .ajtf-policy-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 0;
  }

  #aj-temple-footer-r1 .ajtf-policy-links > * + * {
    margin-left: 10px;
    padding-left: 10px;
  }

  #aj-temple-footer-r1 .ajtf-policy-links .ajtf-motion-toggle {
    position: absolute;
    top: 8px;
    right: 6cqw;
    margin: 0;
    padding: 0;
    border-left: 0;
  }

  #aj-temple-footer-r1 .ajtf-back-top {
    gap: 5px;
  }

  #aj-temple-footer-r1 .ajtf-back-top svg {
    width: 15px;
    height: 15px;
  }
}

@container ajtf (max-width: 360px) {
  #aj-temple-footer-r1 .ajtf-brand-link {
    width: 84%;
  }

  #aj-temple-footer-r1 .ajtf-navigation-row {
    gap: 18px 12px;
    padding: 20px 0;
  }

  #aj-temple-footer-r1 .ajtf-heading {
    font-size: 19px;
  }

  #aj-temple-footer-r1 .ajtf-link-list li,
  #aj-temple-footer-r1 .ajtf-visit-group p,
  #aj-temple-footer-r1 .ajtf-appointment-link {
    font-size: 13px;
  }

  #aj-temple-footer-r1 .ajtf-social-links {
    gap: clamp(5px, 1.8cqw, 6px);
  }

  #aj-temple-footer-r1 .ajtf-social-link {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  #aj-temple-footer-r1 .ajtf-social-link svg {
    width: 18px;
    height: 18px;
  }

  #aj-temple-footer-r1 .ajtf-policy-row {
    font-size: 10.5px;
  }

  #aj-temple-footer-r1 .ajtf-back-top {
    flex-basis: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #aj-temple-footer-r1 *,
  #aj-temple-footer-r1 *::before,
  #aj-temple-footer-r1 *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
