/* ==========================================================================
   Paris Motorsport — folha de estilos principal
   Paleta: carvão / marfim / vermelho → laranja do logótipo
   ========================================================================== */

:root {
  --ink:        #0d0f13;
  --ink-2:      #14171d;
  --ink-3:      #1b1f27;
  --line:       #2a2f39;
  --line-soft:  #21252d;
  --paper:      #f5f3f0;
  --muted:      #9aa1ae;
  --muted-2:    #6d7481;

  /* Cores da marca, tiradas do logótipo (arco vermelho → laranja) */
  --red:        #e0231c;
  --red-hot:    #f5451c;
  --orange:     #f7941d;
  --orange-hot: #ffa733;
  --marca:      linear-gradient(90deg, #d01a17 0%, #e8451a 45%, #f7941d 100%);
  --gold:       #c8a655;

  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .85);
  --t: 220ms cubic-bezier(.2, .7, .3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: .01em;
  margin: 0;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 3px;
}

/* --- Blocos utilitários --------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: 1rem; }
.section--alt { background: var(--ink-2); }

.eyebrow {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 .9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--red);
  flex: none;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--muted);
  max-width: 62ch;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head > div { max-width: 60ch; }

/* Barra do arco da marca: vermelho a esbater para laranja */
.stripes {
  display: block;
  height: 4px;
  width: 84px;
  border-radius: 2px;
  background: var(--marca);
}
.stripes span { display: none; }

/* --- Botões --------------------------------------------------------------- */

.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}

.btn:hover { background: var(--red-hot); border-color: var(--red-hot); transform: translateY(-2px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--sm { padding: .25rem .3rem; font-size: .85rem; }

.arrow { transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(4px); }

/* --- Cabeçalho ------------------------------------------------------------ */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 15, 19, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--t), border-color var(--t);
}

.header.is-scrolled { background: rgba(13, 15, 19, .97); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 78px;
}

.brand img { height: 46px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
}

.nav__link {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-block: .35rem;
  position: relative;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--t);
}

.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: #fff; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Cadeado de acesso ao painel de gestão */
.cadeado {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  color: var(--muted-2);
  transition: color var(--t), background var(--t);
}
.cadeado:hover { color: var(--red); background: var(--ink-3); }

/* Seletor de idioma */
.lang { position: relative; }

.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  padding: .15rem .85rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.lang__toggle:hover { border-color: var(--muted); background: var(--ink-3); }
.lang__toggle svg { transition: transform var(--t); }
.lang.is-open .lang__toggle svg { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 180px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .35rem;
  display: none;
  z-index: 70;
}
.lang.is-open .lang__menu { display: block; }

.lang__opt {
  display: flex;
  width: 100%;
  align-items: center;
  gap: .65rem;
  padding: .55rem .7rem;
  background: none;
  border: 0;
  border-radius: 2px;
  color: var(--paper);
  font-size: .92rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--t);
}
.lang__opt:hover { background: var(--ink-3); }
.lang__opt[aria-selected='true'] { color: var(--red); font-weight: 600; }
.lang__opt b {
  font-family: var(--font-display);
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--muted-2);
  margin-left: auto;
}

/* Menu mobile */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
  margin: 4px auto;
  transition: transform var(--t), opacity var(--t);
}
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero--page { min-height: 0; }

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(224, 35, 28, .26), transparent 58%),
    radial-gradient(90% 80% at 12% 88%, rgba(247, 148, 29, .16), transparent 60%),
    linear-gradient(160deg, #191d24 0%, #0d0f13 62%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .028) 0 2px, transparent 2px 9px);
  mix-blend-mode: overlay;
}

.hero__inner {
  position: relative;
  padding-top: 10px;
  padding-bottom: 10px;
}

.hero__title { max-width: 16ch; }
.hero__title em { display: block; font-style: normal; color: var(--red); }

.hero__text {
  margin-top: 1.6rem;
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
}

.hero__cta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__stats {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  max-width: 820px;
}

.stat { background: rgba(13, 15, 19, .62); padding: 1.35rem 1.5rem; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: .45rem;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Faixa a rolar */
.ticker {
  border-block: 1px solid var(--line-soft);
  background: var(--ink-2);
  overflow: hidden;
  padding-block: .85rem;
}
.ticker__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: slide 46s linear infinite;
}
.ticker__track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* --- Cartões de viatura --------------------------------------------------- */

.grid-cars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.card:hover {
  border-color: var(--line);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink-3);
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2, .7, .3, 1);
}
.card:hover .card__media img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: .85rem;
  left: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border-radius: 2px;
  background: rgba(13, 15, 19, .85);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
  backdrop-filter: blur(6px);
}
.badge--sold      { background: rgba(60, 62, 68, .92); color: var(--muted); }
.badge--reserved  { background: rgba(200, 166, 85, .94); color: #17181c; border-color: transparent; }
.badge--available { background: rgba(224, 35, 28, .95); color: #fff; border-color: transparent; }

.card__body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .9rem;
}

.card__year {
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .22em;
  color: var(--red);
}

.card__title { font-size: 1.45rem; line-height: 1.1; }
.card__title a::after { content: ''; position: absolute; inset: 0; }

ul.card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: -.2rem 0 0;
  padding: 0;
}
.card__specs li {
  list-style: none;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: .22rem .55rem;
}

.card__foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.price--ask { font-size: 1.05rem; letter-spacing: .1em; color: var(--muted); }

.card__more {
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t);
}
.card:hover .card__more { color: var(--red); }

/* --- Filtros -------------------------------------------------------------- */

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  padding: .5rem;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 2.25rem;
}

.field { display: flex; flex-direction: column; gap: .4rem; }

.field > label {
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.field select,
.field input,
.field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  padding: .7rem .85rem;
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color var(--t);
}
.field select:hover,
.field input:hover,
.field textarea:hover { border-color: var(--muted-2); }
.field select:focus,
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--red); }
.field textarea { resize: vertical; min-height: 150px; }
.field option { background: var(--ink-2); }

.results-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: var(--muted);
}

.link-reset {
  background: none;
  border: 0;
  color: var(--red);
  cursor: pointer;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: var(--muted);
}

/* --- Página de detalhe ---------------------------------------------------- */

.crumbs {
  font-size: .85rem;
  color: var(--muted-2);
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line-soft);
}
.crumbs a:hover { color: var(--paper); }
.crumbs span { margin-inline: .5rem; }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.gallery__main {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: .6rem;
  margin-top: .6rem;
}
.thumb {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: var(--ink-2);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: border-color var(--t), opacity var(--t);
  opacity: .6;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.is-active { border-color: var(--red); opacity: 1; }

.detail__aside {
  position: sticky;
  top: 100px;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}

.detail__price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  margin-block: .6rem 1.25rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.25rem;
  font-size: .93rem;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.spec-table th {
  font-weight: 500;
  color: var(--muted-2);
  width: 46%;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.spec-table td { color: var(--paper); }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

.prose { color: var(--muted); font-size: 1.02rem; }
.prose h3 { color: var(--paper); margin-block: 2rem 1rem; }

.hist-list { margin: 0; padding: 0; list-style: none; }
.hist-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .6rem;
  color: var(--muted);
}
.hist-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--red);
  transform: rotate(45deg);
}

/* --- Colunas de conteúdo -------------------------------------------------- */

.cols-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.tile {
  background: var(--ink);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: background var(--t);
}
.section--alt .tile { background: var(--ink-2); }
.tile:hover { background: var(--ink-3); }
.tile__num {
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .2em;
  color: var(--red);
}
.tile h3 { margin-block: .8rem .7rem; }
.tile p { color: var(--muted); font-size: .97rem; }

.timeline { border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 3vw, 2.5rem); }
.timeline__item { position: relative; padding-bottom: 2.25rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(1.5rem, 3vw, 2.5rem) - 5px);
  top: .5rem;
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
}
.timeline__year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--paper);
}
.timeline p { color: var(--muted); margin-top: .3rem; }

.quote {
  border-left: 3px solid var(--red);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
}
.quote footer {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* --- Faixa CTA ------------------------------------------------------------ */

.cta-band {
  background:
    linear-gradient(115deg, rgba(224, 35, 28, .18), transparent 55%),
    var(--ink-2);
  border-block: 1px solid var(--line-soft);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

/* --- Formulário / contacto ------------------------------------------------ */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
}
.form-grid .field--wide { grid-column: 1 / -1; }

.form-note { font-size: .85rem; color: var(--muted-2); margin-top: 1rem; }

.check {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--muted);
}
.check input { width: 18px; height: 18px; accent-color: var(--red); margin-top: .15rem; flex: none; }

.info-card {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}
.info-card + .info-card { margin-top: 1.25rem; }
.info-card h3 { font-size: 1.2rem; margin-bottom: .8rem; }
.info-card p, .info-card li { color: var(--muted); font-size: .95rem; }
.info-card ul { margin: 0; padding-left: 1.1rem; }
.info-card a:hover { color: var(--red); }

.map-frame {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 42px),
    var(--ink-2);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted-2);
  font-family: var(--font-display);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .9rem;
  padding: 1rem;
}

/* --- Mapa com marcador próprio --------------------------------------------- */

.mapa {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}
.mapa iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

/* Colunas da mesma altura: o mapa acompanha a coluna dos contactos,
   em vez de deixar um vazio por baixo. */
.cols-2--igual { align-items: stretch; }
.cols-2--igual #pm-mapa { height: 100%; }
.cols-2--igual .mapa { height: 100%; display: flex; flex-direction: column; }
.cols-2--igual .mapa iframe { flex: 1; height: auto; min-height: 340px; }

/* Marcador desenhado sobre o centro do mapa. */
.mapa__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 37px;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .45));
  pointer-events: none;
}

.mapa__card {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: min(74%, 260px);
  display: grid;
  gap: .15rem;
  padding: .7rem .9rem;
  background: rgba(13, 15, 19, .93);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  font-size: .82rem;
  line-height: 1.45;
}
.mapa__card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paper);
}
.mapa__card span { color: var(--muted); }
.mapa__card a {
  margin-top: .3rem;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 520px) {
  .mapa iframe { height: 280px; }
  .mapa__card { left: 8px; top: 8px; padding: .55rem .7rem; font-size: .78rem; }
}

.form-status {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-3);
  font-size: .92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { border-color: #2f6f4a; color: #7ddca6; }

/* Formulário fechado, abre ao carregar no botão */
.form-toggle > summary {
  list-style: none;
  display: inline-flex;
  width: auto;
}
.form-toggle > summary::-webkit-details-marker { display: none; }
.form-toggle > summary::after {
  content: '+';
  margin-left: .7rem;
  font-size: 1.2em;
  line-height: 1;
}
.form-toggle[open] > summary::after { content: '–'; }
.form-toggle[open] > summary { margin-bottom: 2rem; }

/* --- Botão flutuante do WhatsApp ------------------------------------------- */

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  z-index: 90;
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* Botão do WhatsApp dentro do conteúdo (ficha da viatura, contactos) */
.btn--wa {
  --btn-bg: #25d366;
  --btn-fg: #0b1f14;
}
.btn--wa:hover { background: #1fbe5a; border-color: #1fbe5a; color: #0b1f14; }
.btn--wa svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* Linhas de contacto com ícone (morada, telefone, e-mail, horário) */
.com-icone {
  display: inline-flex;
  align-items: flex-start;
  gap: .6rem;
}
.com-icone svg {
  width: 17px;
  height: 17px;
  fill: var(--red);
  flex: none;
  margin-top: .22em;
}
.com-icone > span { display: block; }

/* Nota em letra pequena junto ao contacto, ex.: (rede móvel nacional) */
.nota {
  font-size: max(.82em, 11px);   /* nunca abaixo de 11px, mesmo no rodapé */
  color: var(--muted-2);
  white-space: nowrap;
}

/* Ligação de WhatsApp em listas de contactos */
.link-wa { display: inline-flex; align-items: center; gap: .5rem; }
.link-wa svg { width: 17px; height: 17px; fill: #25d366; flex: none; }

/* O relógio do horário é discreto, para não competir com os contactos */
#pm-horario .com-icone svg { fill: var(--muted-2); }

@media (max-width: 600px) {
  .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

@media print { .whatsapp-float { display: none !important; } }

/* --- Rodapé --------------------------------------------------------------- */

.footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
  padding-block: 3rem 1rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}

.footer h4 {
  font-size: 1rem;
  letter-spacing: .18em;
  color: var(--paper);
  margin-bottom: 1.1rem;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer a, .footer p { color: var(--muted); font-size: .73rem; }
.footer a:hover { color: var(--red); }
.footer .brand img { height: 56px; }

.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .84rem;
  color: var(--muted-2);
}

/* --- Aviso de cookies ------------------------------------------------------ */

.cookies {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 95;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .88rem;
  color: var(--muted);
  transform: translateY(140%);
  transition: transform 320ms cubic-bezier(.2, .7, .3, 1);
}
.cookies.is-in { transform: none; }
.cookies p { flex: 1 1 260px; margin: 0; }
.cookies a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.cookies__acts { display: flex; gap: .5rem; flex: none; }

/* deixa espaço ao balão do WhatsApp */
@media (min-width: 720px) { .cookies { right: 6rem; margin-inline: 0; left: auto; } }
@media (prefers-reduced-motion: reduce) { .cookies { transition: none; } }

/* --- Páginas de texto (legais e FAQ) --------------------------------------- */

.legal { max-width: 78ch; }
.legal h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-block: 2.5rem .9rem;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--muted); font-size: .98rem; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .4rem; }
.legal strong { color: var(--paper); font-weight: 600; }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.legal__meta {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-top: 1px solid var(--line-soft);
  margin-top: 3rem;
  padding-top: 1.25rem;
}

.faq { max-width: 78ch; }
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 1.1rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--paper);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--red);
  transition: transform var(--t);
}
.faq details[open] summary::after { content: '–'; }
.faq details p {
  margin: .9rem 0 0;
  color: var(--muted);
  max-width: 68ch;
}

/* --- Revelação ao scroll -------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Responsivo ----------------------------------------------------------- */

@media (max-width: 1000px) {
  .detail { grid-template-columns: 1fr; }
  .detail__aside { position: static; }
}

@media (max-width: 880px) {
  .burger { display: grid; }
  .nav {
    position: fixed;
    inset: 78px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-130%);
    transition: transform 300ms cubic-bezier(.2, .7, .3, 1);
    box-shadow: var(--shadow);
  }
  .nav-open .nav { transform: none; }
  .nav__link {
    padding-block: .95rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.2rem;
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--red); }
  .header__actions .btn { display: none; }
}

@media (max-width: 520px) {
  .hero__cta .btn { width: 100%; justify-content: center; }
  .card__foot { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* --- Impressão ------------------------------------------------------------ */

@media print {
  .header, .footer, .cta-band, .burger, .hero__cta { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .detail__aside, .info-card { border-color: #ccc; background: #fff; }
}
