/* =========================================================
   MS CARPINTARIA — footer B (contact cards), shared by /, /privacy, /404.
   Footer B lives only here, on the site; every page of the BuildOps app has a
   compact footer of its own (app/static/footer_compact.css). Colours and
   contrasts: BuildOps docs/BRAND.md.
     eyebrow  gold-for-text #8e6e32 on --bg      4.51
     title    ink #2c3e50                         10.43
     where    grey text #6b6b6b                   5.06
     cards    square corners; paper, border #e3ded4 (decoration); label + sub grey text 5.33,
              number ink 10.98, icons gold-for-text 4.74
     WhatsApp ink #2c3e50, white text 10.98, gold icon #c5a059 4.47 (icon, >= 3);
              hover #34495e: white 9.29, icon 3.78
     focus    ink outline outside the card on --bg 10.43 (gold would be 2.33)
     links    ink 10.43, hover gold-for-text 4.51; no underline anywhere in the footer
   ========================================================= */
.ft {
  --ft-ink: var(--ink, #2c3e50);
  --ft-gold: var(--gold, #c5a059);
  --ft-gold-text: var(--gold-text, #8e6e32);
  --ft-grey: #6b6b6b;
  --ft-paper: #ffffff;
  --ft-border: #e3ded4;
  --ft-rule: var(--rule, #ececec);
  padding: clamp(48px, 8vw, 80px) 0 40px 0;
  border-top: 1px solid var(--ft-rule);
}
.ft__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 32px; margin: 0 0 28px 0;
}
.ft__eyebrow {
  margin: 0 0 10px 0; font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ft-gold-text);
}
.ft__title {
  margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 300; letter-spacing: -0.015em;
  line-height: 1.2; color: var(--ft-ink); text-wrap: balance;
}
.ft__where {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: 14px; color: var(--ft-grey); letter-spacing: 0.02em;
}
.ft__where svg { width: 16px; height: 16px; flex: 0 0 auto; }

.ft__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ft-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  min-height: 44px; padding: 24px 24px 22px 24px; border-radius: 0;
  background: var(--ft-paper); border: 1px solid var(--ft-border); color: var(--ft-ink);
  transition: border-color 120ms ease, background-color 120ms ease;
}
.ft-card__icon { width: 24px; height: 24px; margin: 0 0 8px 0; color: var(--ft-gold-text); }
.ft-card__icon svg { display: block; width: 100%; height: 100%; }
.ft-card__label {
  margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ft-grey);
}
/* the number / address: no underline at rest or on hover, anywhere in the footer */
.ft-card__main, .ft-card__num {
  font-size: 18px; font-weight: 500; letter-spacing: 0.01em; line-height: 1.35;
  color: inherit; text-decoration: none; overflow-wrap: anywhere;
}
/* WhatsApp and Email: the whole card is the link (the link's box covers the card) */
.ft-card__main::after { content: ""; position: absolute; inset: 0; }
.ft-card__main:focus-visible { outline: none; }
.ft-card__main:focus-visible::after { outline: 2px solid var(--ft-ink); outline-offset: 3px; }
/* Phone: two separate links, the number and "English: ..." — no link inside a link */
.ft-card__num { align-self: flex-start; display: inline-block; padding: 2px 0; }
.ft-card__alt {
  align-self: flex-start; display: inline-block; min-height: 24px; padding: 3px 0;
  font-size: 13px; line-height: 1.5; color: var(--ft-ink); text-decoration: none;
}
/* every other footer link: an ink outline (the pages' global gold one is 2.33 on --bg) */
.ft a:not(.ft-card__main):focus-visible { outline: 2px solid var(--ft-ink); outline-offset: 3px; }
.ft-card__sub { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ft-grey); }
/* hover: the card's border turns ink (WhatsApp: its background #34495e), the arrow moves 3 px */
.ft-card:hover { border-color: var(--ft-ink); }
.ft-arrow { display: inline-block; transition: transform 120ms ease; }
.ft-card:hover .ft-arrow, .ft-card:focus-within .ft-arrow,
.ft__links a:hover .ft-arrow, .ft__links a:focus-visible .ft-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .ft-card, .ft-arrow { transition: none; } }

.ft-card--wa { background: var(--ft-ink); border-color: var(--ft-ink); color: #ffffff; }
.ft-card--wa .ft-card__icon { color: var(--ft-gold); }
.ft-card--wa .ft-card__label, .ft-card--wa .ft-card__sub { color: #ffffff; }
.ft-card--wa:hover { background: #34495e; border-color: #34495e; }

.ft__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin: 36px 0 0 0; padding: 22px 0 0 0; border-top: 1px solid var(--ft-rule);
}
.ft__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ft-ink); text-decoration: none; }
.ft__brand img { width: 30px; height: 30px; display: block; }
.ft__brand span { font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.ft__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.ft__links a {
  display: inline-block; padding: 12px 0; font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ft-ink); text-decoration: none;
}
.ft__links a:hover, .ft__links a:focus-visible { color: var(--ft-gold-text); }

/* the legal line (owner 13.11.2026): "© <year> <brand> é uma marca de PROGRESS CASTLE, LDA ·
   NIPC 519393856" (EN "is a brand of"), small,
   grey text 5.06 on --bg; room after it for the "Livro de Reclamações" link once confirmed */
.ft__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin: 14px 0 0 0; }
.ft__legal-text { margin: 0; font-size: 11.5px; line-height: 1.6; letter-spacing: 0.02em; color: var(--ft-grey); }

/* phone: one card under the other, WhatsApp first, each a big button */
@media (max-width: 760px) {
  .ft__head { align-items: flex-start; flex-direction: column; }
  .ft__cards { grid-template-columns: 1fr; gap: 12px; }
  .ft-card { display: grid; grid-template-columns: 24px 1fr; column-gap: 16px; row-gap: 4px;
             align-content: center; padding: 16px 20px; }
  .ft-card__icon { grid-row: 1 / span 3; margin: 2px 0 0 0; }
  .ft-card--wa { order: -1; }
  .ft__bottom { flex-direction: column; align-items: flex-start; }
}
