/* ==========================================================
   Nalapad Group – Site footer
   Loaded on every page, after base.css.
   The inner wrappers use .container from base.css.
   ========================================================== */

.site-footer {
  --footer-soft: rgba(255, 255, 255, .82);   /* secondary text */
  --footer-line: rgba(255, 255, 255, .22);   /* dividers */

  position: relative;
  overflow: hidden;
  color: var(--color-white);
  /* Diagonal blend of the brand blue, with a soft glow in the top-right */
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(80, 160, 230, .35), rgba(80, 160, 230, 0) 60%),
    linear-gradient(115deg, var(--color-primary-deep) 0%, var(--color-primary) 45%, var(--color-primary-light) 100%);
}

.site-footer :focus-visible { outline-color: var(--color-white); }

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 64px;
  padding-top: 88px;
}

/* ---------------- Left column: logo, address, contact ---------------- */
.site-footer__logo {
  display: inline-block;
  padding: 14px 18px;
  background: var(--color-white);   /* white plate keeps the blue logo readable */
  border-radius: 10px;
  margin-bottom: 40px;
  transition: transform .3s;
}
.site-footer__logo:hover { transform: translateY(-2px); }
.site-footer__logo img { height: 76px; width: auto; }

.site-footer__address {
  font-style: normal;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.site-footer__directions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 600;
}
.site-footer__directions svg { transition: transform .25s; }
.site-footer__directions:hover svg { transform: translateX(5px); }

.site-footer__rule {
  border: 0;
  border-top: 1px solid var(--footer-line);
  max-width: 440px;
  margin: 36px 0 32px;
}

.site-footer__contact { margin: 0; display: grid; gap: 8px; font-size: 16px; }
.site-footer__contact div { display: flex; gap: 10px; }
.site-footer__contact dt { color: var(--footer-soft); min-width: 52px; }
.site-footer__contact dd { margin: 0; }

/* Underline-on-hover links (contact details, legal links) */
.site-footer__contact a:hover,
.site-footer__legal a:hover { color: var(--color-white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Link columns ---------------- */
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 136px;            /* lines the headings up with the address */
}
.site-footer__heading {
  margin: 0 0 28px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.site-footer__col a {
  position: relative;
  font-size: 17px;
  color: var(--footer-soft);
  transition: color .2s;
}
/* Underline that grows on hover */
.site-footer__col a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-footer__col a:hover { color: var(--color-white); }
.site-footer__col a:hover::after { transform: scaleX(1); }

/* ---------------- Social + legal row ---------------- */
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding-block: 72px 48px;
}
.site-footer__social,
.site-footer__legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.site-footer__social { gap: 16px; }
.site-footer__social a {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  transition: background-color .25s, color .25s, border-color .25s;
}
.site-footer__social a:hover { background: var(--color-white); color: var(--color-primary); border-color: var(--color-white); }

.site-footer__legal { gap: 12px 40px; }
.site-footer__legal a { font-size: 16px; color: var(--footer-soft); }

/* ---------------- Copyright bar ---------------- */
.site-footer__copy {
  background: rgba(5, 20, 45, .35);
  border-top: 1px solid var(--footer-line);
}
.site-footer__copy-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 20px;
  font-size: 14px;
  color: var(--footer-soft);
}
.site-footer__copy p { margin: 0; }

/* ---------------- Tablet ---------------- */
@media (max-width: 1024px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; }
  .site-footer__cols { padding-top: 0; }
}

/* ---------------- Phone ---------------- */
@media (max-width: 640px) {
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .site-footer__col:first-child { grid-column: 1 / -1; }
  .site-footer__address { font-size: 16px; }
  .site-footer__col a { font-size: 15px; }
  .site-footer__social a { width: 44px; height: 44px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; padding-top: 48px; }
  .site-footer__copy-inner { flex-direction: column; }
}

/* ---------------- Right-to-left ---------------- */
[dir="rtl"] .site-footer__col a::after { transform-origin: right; }
[dir="rtl"] .site-footer__directions svg { transform: scaleX(-1); }
[dir="rtl"] .site-footer__directions:hover svg { transform: scaleX(-1) translateX(5px); }
