/* Shared footer: desktop columns and compact mobile accordions. */
.site-footer {
  --footer-line: rgba(255, 255, 255, .12);
  --footer-muted: #b7c7d6;
  color: #dce6ef;
  background: #04223b;
}
.site-footer :is(p, li, address) {
  text-align: start !important;
  text-justify: auto;
  font-style: normal;
}
.site-footer .footer-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}
.site-footer .footer-intro {
  border-bottom: 1px solid var(--footer-line);
  background: rgba(255, 255, 255, .025);
}
.site-footer .footer-intro-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 32px;
}
.site-footer .footer-intro-copy { max-width: 640px; }
.site-footer .footer-intro-copy h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.6; }
.site-footer .footer-intro-copy p { max-width: 590px; color: var(--footer-muted); font-size: 13px; line-height: 2; }
.site-footer .footer-cta-actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 12px; width: auto; }
.site-footer .footer-cta-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; box-shadow: none; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 40px;
  margin: 0;
  padding-block: 44px 24px;
}
.site-footer .footer-grid > * { min-width: 0; grid-column: auto; margin: 0; }
.site-footer .footer-brand-column { text-align: start; }
.site-footer .footer-brand-logo { display: inline-flex; margin: 0 0 16px; }
.site-footer .footer-brand-logo img { width: 198px; max-width: 100%; height: auto; }
.site-footer .footer-brand-description { margin: 0 0 20px; max-width: 290px; color: var(--footer-muted); font-size: 13px; line-height: 2.1; }
.site-footer .footer-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer .footer-socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #dce6ef; background: rgba(255, 255, 255, .04); }
.site-footer .footer-heading { margin: 0 0 18px; padding: 0 0 12px; font-size: 16px; font-weight: 700; line-height: 1.75; }
.site-footer .footer-heading::after { width: 24px; background: var(--accent); }
.site-footer .footer-menu-list { display: grid; gap: 0; padding: 0; }
.site-footer .footer-menu-list > li { margin: 0 !important; }
.site-footer .footer-link { display: flex; align-items: center; min-height: 38px; width: fit-content; max-width: 100%; color: #c5d3df; font-size: 13px; line-height: 1.9; transform: none; }
.site-footer .footer-contact-list { display: grid; gap: 16px; }
.site-footer .footer-contact { display: flex; align-items: flex-start; gap: 10px; color: #c5d3df; font-size: 13px; line-height: 1.9; }
.site-footer .footer-contact > :last-child { min-width: 0; }
.site-footer .footer-contact svg { width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0; color: var(--accent); }
.site-footer .footer-contact-value { display: block; width: fit-content; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.6; }
.site-footer .footer-contact-note { display: block; margin-top: 4px; color: var(--footer-muted); font-size: 11px; line-height: 1.9; }
.site-footer .footer-directions { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border: 1px solid var(--footer-line); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.site-footer .footer-directions svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.site-footer .footer-neshan-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; overflow: hidden; border-radius: 9px; background: #fff; }
.site-footer .footer-neshan-icon img { display: block; width: 28px; height: 28px; object-fit: contain; }
.site-footer .footer-directions .footer-directions-arrow { width: 16px; height: 16px; margin-inline-start: auto; }
.site-footer .footer-directions strong { display: block; color: #fff; font-size: 13px; line-height: 1.8; }
.site-footer .footer-directions .footer-contact-note { margin: 0; }
.site-footer .footer-directions-support { display: none; }
.site-footer .footer-grid > .footer-address { grid-column: 1 / -1; }
.site-footer .footer-trust-column { display: grid; gap: 10px; }
.site-footer .footer-trust-card { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 12px 16px; border: 1px solid var(--footer-line); border-radius: 14px; background: rgba(255, 255, 255, .035); }
.site-footer .footer-trust-card .footer-enamad { flex: 0 0 80px; width: 80px; height: 88px; padding: 4px; border-radius: 10px; }
.site-footer .footer-trust-copy { display: grid; gap: 6px; min-width: 0; }
.site-footer .footer-trust-copy strong { color: #fff; font-size: 14px; font-weight: 500; line-height: 1.8; }
.site-footer .footer-trust-copy > span { color: var(--footer-muted); font-size: 11px; line-height: 1.8; }
.site-footer .footer-address { align-items: center; min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--footer-line); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.site-footer .footer-address address { font-size: 12px; line-height: 2; }
.site-footer .footer-legal { display: grid; justify-items: center; gap: 8px; padding-block: 16px; border-top: 1px solid var(--footer-line); color: var(--footer-muted); font-size: 11px; line-height: 1.9; }
.site-footer .footer-legal p { width: 100%; margin: 0; text-align: center !important; }
.site-footer .footer-legal-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--footer-muted); font-size: 11px; line-height: 1.9; }
.site-footer .footer-legal-links a { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer :is(.footer-link, .footer-contact, .footer-socials a, .footer-legal-links a):hover { color: var(--accent-light); }
.site-footer :is(.footer-directions, .footer-trust-card):hover { border-color: var(--accent); }
.site-footer :is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

@media (min-width: 1024px) {
  .site-footer .footer-intro-inner { padding-block: 22px; gap: 24px; }
  .site-footer .footer-intro-copy h3 { font-size: 22px; margin-bottom: 6px; }
  .site-footer .footer-intro-copy p { font-size: 12px; line-height: 1.9; }
  .site-footer .footer-cta-actions { gap: 10px; }
  .site-footer .footer-cta-actions .btn { min-height: 44px; padding: 10px 16px; font-size: 12px; }
  /* Contact rows also define the seal's top and bottom edges, without fixed offsets. */
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.12fr) 168px;
    grid-template-rows: auto repeat(4, min-content);
    gap: 6px 22px;
    padding-block: 28px 20px;
  }
  .site-footer .footer-grid > .footer-brand-column { grid-column: 1; grid-row: 1 / 6; }
  .site-footer .footer-grid > .footer-menu-column[aria-labelledby="footer-heading-education"] { grid-column: 2; grid-row: 1 / 5; }
  .site-footer .footer-grid > .footer-menu-column[aria-labelledby="footer-heading-services"] { grid-column: 3; grid-row: 1 / 5; }
  .site-footer .footer-grid > .footer-contact-column,
  .site-footer .footer-contact-column > .footer-contact-list { display: contents; }
  .site-footer .footer-contact-column > .footer-heading { grid-column: 4; grid-row: 1; }
  .site-footer .footer-contact-list > li { grid-column: 4; min-width: 0; }
  .site-footer .footer-contact-list > li:nth-child(1) { grid-row: 2; }
  .site-footer .footer-contact-list > li:nth-child(2) { display: none; }
  .site-footer .footer-contact-list > li:nth-child(3) { grid-row: 3; }
  .site-footer .footer-contact-list > li:nth-child(4) { grid-row: 4; }
  .site-footer .footer-contact-list > li .footer-contact { min-height: 0; padding-block: 0; }
  .site-footer .footer-contact-list > li .footer-contact-note { margin-top: 2px; }
  .site-footer .footer-brand-logo { margin-bottom: 12px; }
  .site-footer .footer-brand-logo img { width: 184px; }
  .site-footer .footer-brand-description { font-size: 12px; line-height: 1.95; margin-bottom: 14px; max-width: 250px; }
  .site-footer .footer-socials { flex-wrap: nowrap; gap: 6px; }
  .site-footer .footer-socials a { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 9px; }
  .site-footer .footer-brand-column .footer-directions { width: 100%; max-width: 230px; margin-top: 12px; padding: 8px 10px; gap: 8px; }
  .site-footer .footer-brand-column .footer-directions-support { display: flex; width: 100%; max-width: 230px; margin-top: 7px; padding: 8px 10px; border: 1px solid var(--footer-line); border-radius: 12px; background: rgba(255, 255, 255, .025); }
  .site-footer .footer-contact-list .footer-support-in-list { display: none; }
  .site-footer .footer-heading { margin-bottom: 12px; padding-bottom: 10px; font-size: 15px; }
  .site-footer .footer-contact-column > .footer-heading { margin-bottom: 0; }
  .site-footer .footer-link { min-height: 33px; font-size: 12px; }
  .site-footer .footer-contact-value { font-size: 14px; }
  .site-footer .footer-contact-note { font-size: 10px; line-height: 1.8; }
  .site-footer .footer-directions strong { font-size: 11px; white-space: nowrap; }
  .site-footer .footer-directions-arrow { display: none; }
  .site-footer .footer-grid > .footer-trust-column { grid-column: 5; grid-row: 1 / 6; align-self: start; }
  .site-footer .footer-trust-card { min-height: 174px; flex-direction: column; justify-content: center; gap: 6px; padding: 8px 10px; text-align: center; }
  .site-footer .footer-trust-card .footer-enamad { flex: 0 0 96px; width: 96px; height: 104px; }
  .site-footer .footer-trust-card .footer-enamad img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .site-footer .footer-trust-copy strong { font-size: 11px; line-height: 1.8; }
  .site-footer .footer-trust-copy > span { display: none; }
  .site-footer .footer-trust-column > .footer-address { width: 100%; max-width: none; padding: 8px 10px; }
  .site-footer .footer-trust-column > .footer-address address { font-size: 10px; line-height: 1.75; }
  .site-footer .footer-trust-column > .footer-address svg { width: 15px; height: 15px; }
  .site-footer .footer-legal-links { justify-self: end; justify-content: flex-end; gap: 10px; font-size: 11px; white-space: nowrap; }
  .site-footer .footer-legal { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding-block: 10px; }
  .site-footer .footer-legal p { grid-column: 2; grid-row: 1; }
  .site-footer .footer-legal-links { grid-column: 3; grid-row: 1; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
  .site-footer .footer-link { min-height: 42px; }
  .site-footer .footer-grid > .footer-directions { align-self: center; margin: 0; }
}
@media (max-width: 1023px) {
  .site-footer .footer-intro-inner { align-items: flex-start; flex-direction: column; gap: 20px; }
}
@media (max-width: 639px) {
  .site-footer .footer-container { padding-inline: 16px; }
  .site-footer .footer-intro,
  .site-footer .footer-brand-description { display: none; }
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding-block: 16px 12px; }
  .site-footer .footer-grid > .footer-brand-column { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 14px; padding: 0 0 12px; border-bottom: 1px solid var(--footer-line); }
  .site-footer .footer-brand-logo { grid-column: 1; margin: 0; justify-self: center; }
  .site-footer .footer-brand-logo img { width: 152px; }
  /* Keep social touch targets independent of the logo and trust seal. */
  .site-footer .footer-brand-column .footer-socials { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 12px; width: 100%; margin: 0; }
  .site-footer .footer-brand-column .footer-directions { grid-column: 1 / -1; grid-row: 3; justify-self: center; width: min(100%, 300px); margin: 0; }
  .site-footer .footer-brand-column .footer-socials > a[aria-label] { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 10px; }
  .site-footer .footer-socials svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
  .site-footer .footer-menu-column { border: 0; }
  .site-footer .footer-heading { margin: 0 0 6px; padding: 0; font-size: 13px; line-height: 24px; }
  .site-footer .footer-heading::after { display: none; }
  .site-footer .footer-grid > .footer-menu-column { grid-column: 1 / -1; border-bottom: 1px solid var(--footer-line); }
  .site-footer .footer-accordion-trigger { min-height: 48px; margin: 0; padding: 10px 0; }
  .site-footer .footer-accordion-panel { visibility: hidden; }
  .site-footer .footer-accordion.is-open .footer-accordion-panel { visibility: visible; }
  .site-footer .footer-accordion-panel .footer-menu-list { padding-bottom: 8px; }
  .site-footer .footer-accordion-panel .footer-link { min-height: 32px; }
  .site-footer .footer-menu-list { padding: 0; gap: 0; }
  .site-footer .footer-link { min-height: 26px; width: 100%; font-size: 12px; line-height: 1.7; }
  .site-footer .footer-grid > .footer-contact-column { grid-column: 1 / -1; padding-top: 12px; border-top: 0; }
  .site-footer .footer-contact-column > .footer-heading { margin-bottom: 4px; }
  .site-footer .footer-contact-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .site-footer .footer-contact-list > li { min-width: 0; }
  .site-footer .footer-contact { min-height: 44px; align-items: center; gap: 8px; padding-block: 4px; font-size: 12px; }
  /* Every contact row must use the same two-column mobile layout. */
  .site-footer .footer-contact-list > li .footer-contact > span { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; }
  .site-footer .footer-contact-value { font-size: 13px; line-height: 22px; white-space: nowrap; }
  .site-footer .footer-contact-note { margin: 0; font-size: 11px; line-height: 1.8; }
  .site-footer .footer-contact svg { width: 16px; height: 16px; margin: 0; }
  .site-footer .footer-directions { margin-top: 6px; padding: 6px 10px; }
  .site-footer .footer-grid > .footer-trust-column { grid-column: 1 / -1; margin-top: 10px; }
  .site-footer .footer-trust-card { padding: 12px; }
  .site-footer .footer-trust-copy strong { font-size: 13px; }
  .site-footer .footer-address { align-items: flex-start; padding: 10px 12px; }
  .site-footer .footer-address > svg { margin-top: 3px; }
  .site-footer .footer-address address { font-size: 11px; line-height: 1.8; }
  .site-footer .footer-address .footer-contact-note { display: block; margin-top: 2px; }
  .site-footer .footer-legal { padding-block: 12px; font-size: 10px; line-height: 1.8; }
  .site-footer .footer-legal-links { display: none; }
}
@media (min-width: 640px) and (max-width: 767px) {
  .site-footer .footer-brand-column { text-align: center; }
  .site-footer .footer-socials { justify-content: center; }
  .site-footer .footer-legal-links { display: none; }
}
