/* =========================================================
   ARQUBIQ — footer.css

   The landing footer, made portable so subpages render the
   identical component instead of a lookalike. This file is the
   single source for the footer — style.css keeps only landing
   specific overrides. Self-contained: tokens and grid fall back
   to their own values because subpages do not load style.css.
   ========================================================= */

.footer {
  --f-green: #04322C;
  --f-red: #CE3927;
  --f-yellow: #F2D13D;
  --f-off-white: #F6F6F6;
  --f-grey-light: #9CA3AF;
  --f-display: "Montserrat", system-ui, sans-serif;
  --f-cols: 12;
  --f-margin: 5.5vw;
  --f-gutter: clamp(16px, 1.6vw, 28px);
  --f-max: 1600px;
  --f-fast: 250ms;
  --f-ease: cubic-bezier(.165, .84, .44, 1);

  background: var(--f-green);
  color: var(--f-off-white);
  padding-block: clamp(40px, 5vw, 72px) 18px;
  border-block-start: 1px solid rgba(246, 246, 246, .18);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}
html[dir="rtl"] .footer { --f-display: "Alexandria", system-ui, sans-serif; font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif; }

.footer .grid {
  display: grid;
  /* The footer owns its column count at its own breakpoints, so the spans
     below always match the track count on both hosts. */
  --cols: 12;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter, var(--f-gutter));
  row-gap: clamp(26px, 3vw, 44px);
  align-items: start;
  width: min(100%, var(--grid-max, var(--f-max)));
  margin-inline: auto;
  padding-inline: var(--margin, var(--f-margin));
}
.footer a { color: inherit; text-decoration: none; }
.footer h2 { font-size: inherit; }

.footer__brand { grid-column: 1 / span 3; }
.footer__logo-link { display: block; }
.footer__logo {
  display: block;
  width: clamp(44px, 4vw, 58px);
  aspect-ratio: 20.56 / 13.22;
  background: currentColor;
  -webkit-mask: url("../assets/icons/favicon.svg") center / contain no-repeat;
  mask: url("../assets/icons/favicon.svg") center / contain no-repeat;
  color: var(--f-red);
}
.footer__tag { margin-block-start: 10px; font-family: var(--f-display); font-weight: 600; letter-spacing: .04em; font-size: .9rem; }
html[dir="rtl"] .footer__tag { font-weight: 400; letter-spacing: 0; }
.footer__about { max-width: 34ch; margin-block-start: 14px; color: var(--f-grey-light); font-size: 15px; line-height: 1.45; }

.footer__nav h2, .footer__contact h2 { margin: 0 0 13px; color: var(--f-yellow); font: 600 13px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
html[dir="rtl"] :is(.footer__nav h2, .footer__contact h2) { letter-spacing: 0; text-transform: none; }
.footer__nav--services { grid-column: 4 / span 3; }
.footer__nav--services ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.footer__nav--resources { grid-column: 7 / span 2; }
.footer__nav ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer__nav a { display: inline-block; position: relative; font-size: .84rem; letter-spacing: .06em; }
.footer__nav a::after {
  content: "";
  position: absolute;
  inset-block-end: -2px;
  inset-inline: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--f-fast) var(--f-ease);
}
html[dir="rtl"] .footer__nav a::after { transform-origin: right center; }
.footer__nav a:hover::after { transform: scaleX(1); }
.footer__nav a, .footer__contact > a, .footer__meta a { transition: color var(--f-fast) var(--f-ease); }
.footer__nav a:hover, .footer__contact > a:hover, .footer__meta a:hover { color: var(--f-red); }

.footer__contact { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: 14px; line-height: 1.35; }
.footer__contact address { max-width: 44ch; margin-block: 3px; font-style: normal; color: var(--f-grey-light); line-height: 1.4; }
.footer__contact address a { color: inherit; }
.footer__contact a { text-underline-offset: 4px; }

.footer__socials { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 8px; }
.footer__social { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 0; border: 0; background: transparent; }
.footer__social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.footer__social svg .is-fill { fill: currentColor; stroke: none; }
.footer__social--whatsapp { color: var(--f-yellow); }
.footer__social--whatsapp svg path { fill: currentColor; stroke: none; }
.footer__social:hover { color: var(--f-yellow); }

.footer__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 10px;
  padding-block-start: 14px;
  border-block-start: 1px solid rgba(246, 246, 246, .22);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--f-grey-light);
}
html[dir="rtl"] .footer__meta { letter-spacing: 0; text-transform: none; }
.footer__meta > p { margin: 0; white-space: nowrap; }
.footer__legal-links { display: flex; gap: 8px; flex-wrap: nowrap; }
.footer__legal-links button { padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; text-transform: inherit; letter-spacing: inherit; }
.footer__meta a, .footer__credit a { text-decoration: underline; text-underline-offset: 4px; }
.footer__credit { color: var(--f-yellow); }
.footer :focus-visible { outline: 3px solid var(--f-yellow); outline-offset: 3px; }

@media (max-width: 1100px) {
  .footer__meta { flex-wrap: wrap; }
  .footer__meta > p { white-space: normal; }
}
@media (max-width: 1024px) {
  .footer .grid { --cols: 8; }
  .footer__brand { grid-column: 1 / span 8; }
  .footer__nav--services { grid-column: 1 / span 4; }
  .footer__nav--services ul { grid-template-columns: 1fr; }
  .footer__nav--resources { grid-column: 5 / span 4; }
  .footer__contact { grid-column: 1 / span 8; }
}
@media (max-width: 720px) {
  .footer { padding-block: 44px max(24px, env(safe-area-inset-bottom)); }
  .footer .grid { --cols: 4; --f-margin: 7vw; row-gap: 30px; }
  .footer__logo { width: 52px; }
  .footer__brand, .footer__contact { grid-column: 1 / -1; }
  .footer__nav--services { grid-column: 1 / span 2; }
  .footer__nav--resources { grid-column: 3 / span 2; }
  .footer__socials { gap: 10px; }
  .footer__social { width: 44px; height: 44px; min-height: 44px; justify-content: center; padding: 0; position: relative; }
  .footer__social span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .footer__social svg { width: 23px; height: 23px; }
  .footer__meta { flex-direction: column; gap: 12px; }
}
