/* Shared footer layout for every site page. */
.footer.footer-unified {
  --footer-ink: var(--ink, #111214);
  --footer-muted: var(--muted, #687080);
  --footer-accent: var(--accent, #d8440b);
  --footer-line: var(--line, #e5e3df);
  box-sizing: border-box;
  width: var(--page, calc(100% - 48px));
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(58px, 7vw, 96px) 0 38px;
  border-top: 4px solid var(--footer-ink);
  color: var(--footer-ink);
}
.footer.footer-unified *,
.footer.footer-unified *::before,
.footer.footer-unified *::after { box-sizing: border-box; }
.footer.footer-unified .footer-main {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(18px, 2.5vw, 38px);
  padding-bottom: clamp(42px, 5vw, 68px);
}
.footer.footer-unified .footer-brand { min-width: 0; }
.footer.footer-unified .footer-brand .brand { max-width: 100%; }
.footer.footer-unified .footer-brand p {
  max-width: 34ch;
  margin: 22px 0 0;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.75;
}
.footer.footer-unified .footer-column { min-width: 0; }
.footer.footer-unified .footer-column h3 {
  margin: 0 0 21px;
  color: var(--footer-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.4;
}
.footer.footer-unified .footer-column > a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  color: var(--footer-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}
.footer.footer-unified .footer-column > a:hover { color: var(--footer-accent); }
.footer.footer-unified .footer-column > .footer-contact-link {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}
.footer.footer-unified .footer-contact-link > svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  fill: none;
  stroke: var(--footer-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer.footer-unified .footer-contact-link > span:not(.footer-social-icon) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.footer.footer-unified .footer-social-icon {
  display: inline-grid;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  place-items: center;
  color: var(--footer-accent);
}
.footer.footer-unified .footer-social-icon-facebook {
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}
.footer.footer-unified .footer-social-icon-whatsapp svg {
  display: block;
  width: 15px;
  height: 15px;
}
.footer.footer-unified .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--footer-line);
  color: #9299a6;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}
.footer.footer-unified .footer-bottom > span { min-width: 0; }
.footer.footer-unified .footer-bottom > a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.footer.footer-unified .footer-bottom > a:hover { color: var(--footer-accent); }
@media (max-width: 1120px) {
  .footer.footer-unified .footer-main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px clamp(16px, 2.4vw, 28px);
  }
  .footer.footer-unified .footer-brand {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr);
    align-items: center;
    gap: 24px;
  }
  .footer.footer-unified .footer-brand p { margin: 0; }
}
@media (max-width: 640px) {
  .footer.footer-unified {
    width: var(--page, calc(100% - 36px));
    padding: 48px 0 25px;
    border-top-width: 3px;
  }
  .footer.footer-unified .footer-main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 10px;
    padding-bottom: 34px;
  }
  .footer.footer-unified .footer-brand {
    display: block;
    grid-column: 1 / -1;
  }
  .footer.footer-unified .footer-brand p {
    max-width: 38ch;
    margin-top: 16px;
    font-size: 12px;
  }
  .footer.footer-unified .footer-column h3 {
    margin-bottom: 12px;
    font-size: 9px;
    letter-spacing: .06em;
  }
  .footer.footer-unified .footer-column > a {
    margin-bottom: 9px;
    font-size: 10px;
    line-height: 1.5;
  }
  .footer.footer-unified .footer-column > .footer-contact-link {
    gap: 5px;
    margin-bottom: 9px;
  }
  .footer.footer-unified .footer-contact-link > svg,
  .footer.footer-unified .footer-social-icon {
    flex-basis: 12px;
    width: 12px;
    height: 12px;
  }
  .footer.footer-unified .footer-social-icon-facebook { font-size: 13px; }
  .footer.footer-unified .footer-social-icon-whatsapp svg { width: 12px; height: 12px; }
  .footer.footer-unified .footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 12px;
    padding-top: 14px;
    font-size: 8px;
  }
  .footer.footer-unified .footer-note { display: none; }
}
@media (max-width: 390px) {
  .footer.footer-unified .footer-main { gap: 22px 7px; }
  .footer.footer-unified .footer-column h3 { font-size: 8px; }
  .footer.footer-unified .footer-column > a { font-size: 9px; }
  .footer.footer-unified .footer-column > .footer-contact-link { gap: 3px; }
  .footer.footer-unified .footer-contact-link > svg,
  .footer.footer-unified .footer-social-icon { flex-basis: 10px; width: 10px; height: 10px; }
  .footer.footer-unified .footer-social-icon-facebook { font-size: 11px; }
  .footer.footer-unified .footer-social-icon-whatsapp svg { width: 10px; height: 10px; }
}/* Keep contact labels and values together without orphaned separators. */
.footer.footer-unified .footer-contact-copy {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
}
.footer.footer-unified .footer-contact-copy > .footer-contact-label,
.footer.footer-unified .footer-contact-copy > .footer-contact-value {
  display: block !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  line-height: 1.4;
}
.footer.footer-unified .footer-contact-label { color: var(--footer-muted); font-size: 11px; }
.footer.footer-unified .footer-contact-value { color: var(--footer-ink); font-size: 13px; }
@media (min-width: 1121px) {
  .footer.footer-unified .footer-contact-link[href^="mailto:"] .footer-contact-value {
    font-size: 12px;
    letter-spacing: -.015em;
    white-space: nowrap;
  }
}
@media (max-width: 640px) {
  .footer.footer-unified .footer-contact-copy { gap: 2px; }
  .footer.footer-unified .footer-contact-label { font-size: 8px; }
  .footer.footer-unified .footer-contact-value { font-size: 9px; }
}
@media (max-width: 390px) {
  .footer.footer-unified .footer-contact-label { font-size: 7px; }
  .footer.footer-unified .footer-contact-value { font-size: 8px; }
}

/* The production-process page has a dark storytelling canvas; give its shared
   footer the same light, readable surface used by the rest of the site. */
body.process-body .footer.footer-unified {
  --footer-ink: #171717;
  --footer-muted: #687080;
  --footer-accent: #d8440b;
  --footer-line: #e5e3df;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(58px, 7vw, 96px) max(24px, calc((100% - 1440px) / 2)) 38px;
  background: #f8f8f5;
}

/* Earlier narrow-screen overrides fixed the camera to one viewport even though
   its steps are stacked vertically. Let the story's content set the page height
   so the footer follows it in normal document flow and remains reachable. */
@media (max-width: 991px) {
  body.process-body { height: auto !important; min-height: 100vh; }
  body.process-body .process-track {
    height: auto !important;
    min-height: 0;
    overflow: visible;
  }
  body.process-body .process-camera {
    width: 100%;
    height: auto !important;
    min-height: 0;
    position: static;
    overflow: visible;
  }
  body.process-body .process-frame.process {
    height: auto !important;
    min-height: 0;
    flex-flow: column;
    transform: none !important;
  }
  body.process-body .footer.footer-unified {
    display: block !important;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1;
  }
}

@media (max-width: 640px) {
  body.process-body .footer.footer-unified {
    padding: 48px 18px 25px;
    border-top-width: 3px;
  }
}
