/* ==========================================================================
   HN Transportes — Folha de estilos principal
   Site estático, sem dependências externas em runtime. Mobile-first.
   ========================================================================== */

/* ---------- Fontes self-hosted (sem CDN externo) ---------- */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-600.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sora-700.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/sora-800.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --ink: #16181d;
  --ink-soft: #2b2f38;
  --bg: #ffffff;
  --surface: #f5f6f8;
  --surface-2: #eef0f3;
  --dark: #0f1116;
  --dark-2: #161922;
  --line: #e4e7eb;
  --line-dark: #2a2e39;
  --muted: #586070;
  --muted-dark: #aab2c0;
  --accent: #e6a019;
  --accent-d: #c5860c;
  --accent-text: #8a5d00; /* âmbar escuro p/ texto pequeno — passa WCAG AA (>=4.5:1 em branco) */
  --accent-soft: rgba(230, 160, 25, .14);
  --wa: #25d366;
  --wa-d: #1da851;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 20, 30, .04), 0 1px 3px rgba(16, 20, 30, .04);
  --shadow: 0 4px 14px rgba(16, 20, 30, .06);
  --shadow-lg: 0 16px 40px rgba(16, 20, 30, .10);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 14px); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
p { color: var(--ink-soft); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 5vw, 40px); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--dark); color: #fff; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section--dark .eyebrow { color: var(--accent); }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.06rem; color: var(--muted); }
.section--dark .section-head p { color: var(--muted-dark); }

/* ---------- Botões ---------- */
.btn {
  --bg-btn: var(--ink); --fg-btn: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg-btn); color: var(--fg-btn);
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  padding: 14px 24px; border: 1px solid transparent; border-radius: var(--radius-pill);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--accent { --bg-btn: var(--accent); --fg-btn: #1a1304; }
.btn--wa { --bg-btn: var(--wa); --fg-btn: #06381b; }
.btn--wa:hover { background: var(--wa-d); }
.btn--ghost { --bg-btn: transparent; --fg-btn: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--light { --bg-btn: #fff; --fg-btn: var(--ink); }
.btn--outline-light { --bg-btn: transparent; --fg-btn: #fff; border-color: rgba(255,255,255,.34); }
.btn--outline-light:hover { background: #fff; color: var(--ink); }
.btn--lg { padding: 16px 30px; font-size: 1.04rem; }
.btn--block { width: 100%; }

.linkarrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.linkarrow svg { width: 17px; transition: transform .2s var(--ease); }
.linkarrow:hover svg { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s, background .25s;
}
.header.is-stuck { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 18px; transition: min-height .3s var(--ease); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 50px; width: auto; transition: height .3s var(--ease); }
.header.is-stuck .brand img { height: 40px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt strong { font-family: var(--font-display); font-weight: 800; font-size: 1.04rem; letter-spacing: -.01em; }
.brand__txt span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

/* Logótipo maior no topo da página; encolhe ao descer (apenas onde a navbar é horizontal) */
@media (min-width: 921px) {
  .header__inner { min-height: 90px; }
  .header.is-stuck .header__inner { min-height: var(--header-h); }
  .brand img { height: 58px; }
  .header.is-stuck .brand img { height: 44px; }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-weight: 600; font-size: .96rem; color: var(--ink-soft); padding: 9px 14px; border-radius: 8px; position: relative; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--accent); border-radius: 2px; }
.header__actions { display: flex; align-items: center; gap: 10px; }

/* Seletor de idioma */
.langswitch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px; background: #fff; }
.langswitch button { font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .03em; color: var(--muted); background: none; border: 0; padding: 6px 9px; border-radius: var(--radius-pill); line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
.langswitch button:hover { color: var(--ink); }
.langswitch button.is-active { background: var(--accent); color: #1a1304; }
/* Seletor dentro do menu — escondido por defeito; aparece só no menu mobile */
.langswitch--menu { display: none; }
/* Evita o "flash" de texto noutro idioma enquanto o i18n não aplica (só p/ ES/EN) */
html.i18n-pending body { visibility: hidden; }

.navtoggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; align-items: center; justify-content: center; }
.navtoggle span, .navtoggle span::before, .navtoggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.navtoggle span { position: relative; }
.navtoggle span::before { position: absolute; top: -7px; }
.navtoggle span::after { position: absolute; top: 7px; }
body.nav-open .navtoggle span { background: transparent; }
body.nav-open .navtoggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .navtoggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (editorial split) ---------- */
.hero { position: relative; padding: clamp(44px, 6vw, 84px) 0 clamp(52px, 7vw, 88px); background: linear-gradient(180deg, #fff, var(--surface)); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 5.5vw, 84px); align-items: center; }

/* Coluna editorial com guia âmbar */
.hero__content { position: relative; padding-left: 28px; }
.hero__content::before { content: ""; position: absolute; left: 0; top: 6px; width: 3px; height: 64px; background: var(--accent); border-radius: 2px; transform-origin: top; }
.hero h1 { margin-top: 0; max-width: 18ch; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--accent-d); }
.hero__lead { margin-top: 18px; font-size: 1.14rem; color: var(--muted); max-width: 30em; }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn--accent:hover { box-shadow: 0 10px 24px rgba(230, 160, 25, .28); }

/* WhatsApp como afordância terciária (texto, nunca botão verde) */
.hero__wa { margin-top: 16px; font-size: .92rem; color: var(--muted); }
.hero__wa a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.hero__wa a svg { width: 16px; height: 16px; color: var(--wa-d); }
.hero__wa a:hover { color: var(--accent-text); border-color: var(--accent); }

/* Media: retrato 4/5 com moldura âmbar e placa de contacto escura */
.hero__media { position: relative; }
.hero__frame { position: relative; isolation: isolate; }
.hero__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.hero__frame::before { content: ""; position: absolute; top: -14px; right: -14px; width: 62%; height: 58%; border: 3px solid var(--accent); border-radius: var(--radius-lg); z-index: 0; pointer-events: none; }
.hero__panel { position: absolute; left: -28px; bottom: 30px; z-index: 2; background: var(--dark); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 20px; max-width: 266px; }
.hero__panel-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero__panel-eyebrow svg { width: 14px; height: 14px; }
.hero__panel-tel { display: block; margin-top: 7px; font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; color: #fff; }
.hero__panel-tel:hover { color: var(--accent); }
.hero__panel small { display: block; margin-top: 2px; font-size: .72rem; color: var(--muted-dark); }

/* ---------- Serviços ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7dbe1; }
.card__ico { width: 54px; height: 54px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.card__ico svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.about__text { align-self: start; }
.about__text h2 { margin-top: 18px; }
.about__text > p { margin-top: 18px; color: var(--ink-soft); line-height: 1.65; max-width: 38em; }
.about__media { position: relative; align-self: start; margin-top: clamp(24px, 3.5vw, 52px); }
.about__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 1/1; object-fit: cover; }
.about__years { position: absolute; right: -14px; top: -14px; background: var(--accent); color: #1a1304; border-radius: var(--radius); padding: 14px 18px; text-align: center; box-shadow: var(--shadow); }
.about__years b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1; }
.about__years span { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.featurelist { margin-top: 30px; display: grid; gap: 18px; }
.featurelist li { display: flex; gap: 14px; }
.featurelist .ck { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-d); display: grid; place-items: center; }
.featurelist .ck svg { width: 16px; height: 16px; }
.featurelist h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.featurelist p { font-size: .94rem; color: var(--muted); margin-top: 2px; }

/* ---------- Frota / Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; grid-auto-flow: dense; }
.gallery button { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,17,22,.55)); opacity: 0; transition: opacity .3s; }
.gallery figcaption, .gallery .cap { position: absolute; left: 14px; bottom: 12px; color: #fff; font-weight: 600; font-size: .9rem; opacity: 0; transform: translateY(6px); transition: .3s var(--ease); z-index: 2; }
.gallery button:hover img { transform: scale(1.06); }
.gallery button:hover::after, .gallery button:focus-visible::after { opacity: 1; }
.gallery button:hover .cap, .gallery button:focus-visible .cap { opacity: 1; transform: none; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,11,15,.92); display: none; align-items: center; justify-content: center; padding: 4vmin; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__btn { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: background .15s; }
.lightbox__btn:hover { background: rgba(255,255,255,.22); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Cobertura ---------- */
.cover { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.cover__map { background: var(--dark); border-radius: var(--radius-lg); padding: 34px; color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cover__map svg { width: 100%; height: auto; }
.cover__chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 15px; font-weight: 600; font-size: .92rem; }
.chip svg { width: 16px; color: var(--accent-d); }

/* ---------- CTA band ---------- */
.ctaband { background: linear-gradient(120% 120% at 80% 0%, #1d212b, var(--dark)); color: #fff; border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.ctaband::before { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.ctaband__txt { position: relative; max-width: 36em; }
.ctaband h2 { color: #fff; }
.ctaband p { color: var(--muted-dark); margin-top: 10px; }
.ctaband__actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }

/* ---------- Contactos (mapa quadrado + cards) ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); align-items: start; max-width: 920px; margin-inline: auto; }

/* Mapa quadrado à esquerda */
.contact__map { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / 1; background: var(--dark); }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; animation: mapIn .25s var(--ease); }
@keyframes mapIn { from { opacity: 0; } to { opacity: 1; } }

/* Placeholder pré-consentimento: painel escuro tipo "blueprint" */
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: clamp(18px, 3vw, 26px); text-align: left; background: radial-gradient(120% 120% at 50% 0%, var(--dark-2), var(--dark)); color: #fff; overflow: hidden; }
.map-placeholder__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.map-placeholder__pin { position: absolute; top: 38%; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgba(230,160,25,.22); animation: pinPulse 2s ease-in-out infinite; }
@keyframes pinPulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(230,160,25,.22); } 50% { box-shadow: 0 0 0 11px rgba(230,160,25,.06); } }
.map-placeholder__body { position: relative; }
.map-placeholder strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.map-placeholder small { display: block; color: var(--muted-dark); max-width: 34ch; line-height: 1.5; margin: 6px 0 12px; }
.map-placeholder .btn { margin: 0; }
.map-placeholder__hint { display: block; margin-top: 10px; font-size: .8rem; color: var(--muted-dark); }
.map-placeholder__hint a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* Cards à direita — ocupam o mesmo quadrado do mapa, em alturas iguais */
.contact__cards { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 18px); aspect-ratio: 1 / 1; }
.ccard { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; gap: clamp(16px, 1.8vw, 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(14px, 1.8vw, 20px) clamp(22px, 2.6vw, 30px); box-shadow: var(--shadow-sm); font-style: normal; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d7dbe1; }
.ccard__ico { flex: none; width: 50px; height: 50px; border-radius: 13px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); display: grid; place-items: center; }
.ccard__ico svg { width: 23px; height: 23px; }
.ccard__body { display: flex; flex-direction: column; min-width: 0; }
.ccard__kick { font-family: var(--font-display); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ccard__val { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.06rem, 1.5vw, 1.28rem); color: var(--ink); margin-top: 5px; word-break: break-word; }
a.ccard__val { transition: color .18s var(--ease); }
a.ccard__val:hover { color: var(--accent-text); }
.ccard__val--addr { font-size: 1rem; line-height: 1.45; }
.ccard__sub { font-size: .85rem; color: var(--muted); margin-top: 5px; }
/* "Como chegar" flutua no canto superior direito, para o card da morada ficar do mesmo tamanho dos outros */
.ccard--morada .ccard__kick { padding-right: 92px; }
.ccard__dir { position: absolute; top: clamp(14px, 1.8vw, 18px); right: clamp(16px, 2vw, 22px); display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff; font-family: var(--font-display); font-weight: 700; font-size: .8rem; color: var(--ink-soft); transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease); }
.ccard__dir svg { width: 15px; height: 15px; }
.ccard__dir:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }

.cookiebar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 130; max-width: 880px; margin-inline: auto; background: var(--dark); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; }
.cookiebar__txt { font-size: .92rem; color: var(--muted-dark); margin: 0; max-width: 56ch; }
.cookiebar__txt a { color: #fff; text-decoration: underline; }
.cookiebar__actions { display: flex; gap: 10px; flex: none; }
.cookiebar .btn { padding: 11px 20px; }
.cookie-settings { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; font-size: .85rem; }
.cookie-settings:hover { color: #fff; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--muted-dark); padding-top: clamp(48px, 6vw, 72px); font-size: .94rem; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.7fr 1fr; gap: 36px 48px; padding-bottom: 36px; border-bottom: 1px solid var(--line-dark); }
.footer__brand img { height: 54px; width: auto; }
.footer__brand p { color: var(--muted-dark); margin-top: 16px; max-width: 30em; }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.footer__social a:hover { background: #fff; border-color: #fff; }
.footer__social svg { width: 18px; height: 18px; color: var(--muted-dark); }
.footer__social a:hover svg { color: var(--dark); }
.footer h4 { color: #fff; font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col li { display: flex; align-items: center; gap: 9px; }
.footer__col li svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.footer__col .callnote { display: block; font-size: .78rem; color: #8b95a5; font-weight: 500; margin-top: 2px; }

.footer__bottom { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 24px 0 36px; }
.footer__links { display: flex; gap: 6px 16px; flex-wrap: wrap; justify-content: center; align-items: center; }
.footer__links > *:not(:last-child)::after { content: "|"; margin-left: 16px; color: rgba(255, 255, 255, .22); }
.footer__bottom a, .footer__bottom .cookie-settings { font-size: .85rem; }
.footer__rule { width: 100%; height: 1px; border: 0; background: var(--line-dark); margin: 0; }
.footer__bottom .copy { font-size: .82rem; color: var(--muted-dark); }

/* ---------- Floating actions ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fab a, .fab button { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); border: 0; transition: transform .2s var(--ease); }
.fab a:hover, .fab button:hover { transform: scale(1.06); }
.fab__wa { background: var(--wa); color: #fff; }
.fab__wa svg { width: 30px; height: 30px; }
.totop { background: #fff; color: var(--ink); border: 1px solid var(--line); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.totop.show { opacity: 1; pointer-events: auto; transform: none; }
.totop svg { width: 22px; }

/* ---------- Reveal anim ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Legal / prose pages ---------- */
.page-hero { background: var(--dark); color: #fff; padding: clamp(44px, 7vw, 78px) 0 clamp(36px, 5vw, 52px); }
.page-hero .crumbs { font-size: .85rem; color: var(--muted-dark); margin-bottom: 14px; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--muted-dark); margin-top: 12px; max-width: 50em; }
.prose { max-width: 800px; margin-inline: auto; padding: clamp(40px,6vw,72px) 0; }
.prose h2 { font-size: 1.5rem; margin: 38px 0 12px; }
.prose h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { color: var(--muted); font-size: .9rem; }
.prose .legal-note { color: var(--muted); font-size: .85rem; border-left: 3px solid var(--accent); padding-left: 12px; margin: 6px 0 20px; }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 20px; margin: 18px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); font-family: var(--font-display); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0; z-index: 999; }
.skip:focus { left: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .nav, .header__actions .btn { display: none; }
  .header__actions .langswitch { display: none; }
  .navtoggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: #fff; flex-direction: column;
    align-items: stretch; gap: 4px; padding: 18px clamp(18px,5vw,40px); display: flex;
    transform: translateX(100%); transition: transform .32s var(--ease); z-index: 99; overflow-y: auto;
  }
  body.nav-open .nav { transform: none; }
  .nav a { font-size: 1.15rem; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.is-active::after { display: none; }
  .nav .langswitch--menu { display: inline-flex; align-self: flex-start; margin-top: 18px; }
  .nav .nav__cta { margin-top: 16px; display: flex; gap: 10px; flex-direction: column; }
  .nav .nav__cta .btn { display: inline-flex; width: 100%; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { padding-left: 0; }
  .hero__content::before { display: none; }
  .hero__media { order: -1; max-width: 460px; margin-inline: auto; }
  .hero__frame img { aspect-ratio: 16/11; }
  .hero__frame::before { top: -10px; right: -10px; width: 50%; height: 46%; }
  .hero__panel { position: static; left: auto; bottom: auto; max-width: none; margin-top: 16px; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; margin-top: 0; }
  .cover, .contact { grid-template-columns: 1fr; }
  .contact__cards { aspect-ratio: auto; }
  .ccard { flex: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  :root { --header-h: 64px; }
  .topbar { display: none; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery .wide { grid-column: span 2; }
  .ctaband { flex-direction: column; align-items: flex-start; }
  .footer__top { grid-template-columns: 1fr; }
  .hero--editorial .hero__cta { flex-direction: column; }
  /* "Como chegar" passa a botão só com o ícone de navegação */
  .ccard__dir { gap: 0; padding: 9px; }
  .ccard__dir-txt { display: none; }
  .ccard--morada .ccard__kick { padding-right: 46px; }
}
@media (max-width: 400px) {
  .brand__txt { display: none; }
  .channel { padding: 13px 14px; }
  .channel__ico { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
