/* ═══════════════════════════════════════════════════════════════
   CCruz — Serviços de Engenharia
   Tokens do Figma (frame 3179:722) · Esposende, Portugal
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink:    #1c1c1c;
  --paper:  #ffffff;
  --sand:   #deddcb;
  --mist:   #f6f6f6;
  --olive:  #575548;
  --cream:  #ecebe3;

  --line:       1px solid var(--ink);
  --line-soft:  1px solid rgba(28, 28, 28, 0.16);
  --line-cream: 1px solid rgba(236, 235, 227, 0.26);

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* margens laterais fluidas (88 / 1920 = 4.58vw) */
  --gutter:      clamp(20px, 4.58vw, 88px);
  --gutter-wide: clamp(16px, 3.03vw, 58px);

  --hdr-h: clamp(60px, 6.05vw, 116px);
  --pad-y: clamp(34px, 4vw, 76px);

  /* escala tipográfica */
  --t-micro: clamp(10px, 0.68vw, 13px);
  --t-small: clamp(12px, 0.83vw, 15px);
  --t-body:  clamp(15px, 1.04vw, 19px);
  --t-lead:  clamp(19px, 1.72vw, 33px);
  --t-h3:    clamp(21px, 1.77vw, 34px);
  --t-h2:    clamp(34px, 4.6vw, 88px);
  --t-h1:    clamp(44px, 6.4vw, 124px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  font-synthesis-weight: none;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100; white-space: nowrap;
  background: var(--ink); color: var(--paper); padding: 12px 20px;
}
.skip:focus { left: 0; }

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

/* utilitários tipográficos ---------------------------------------- */

.mono {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}

.lead { font-size: var(--t-lead); line-height: 1.2; letter-spacing: -0.015em; text-wrap: pretty; }
.body { font-size: var(--t-body); line-height: 1.5; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }

/* ═══════════════════════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════════════════════ */

.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid;
  grid-template-columns: var(--hdr-h) minmax(0, 1fr) clamp(140px, 21.25vw, 408px);
  height: var(--hdr-h);
  background: var(--paper);
  border-bottom: var(--line);
}

.hdr__mark,
.hdr__meta { border-right: var(--line); display: flex; align-items: center; }
.hdr__tag  { display: flex; align-items: center; }

.hdr__mark { justify-content: center; }
.hdr__mark img { width: 52%; height: auto; display: block; }

.hdr__meta { justify-content: space-between; gap: 14px; padding-left: clamp(12px, 2vw, 28px); }

.hdr__clock { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.08em; text-transform: uppercase; }

.hdr__nav { display: flex; gap: clamp(14px, 1.8vw, 34px); margin-left: auto; padding-right: clamp(12px, 2vw, 28px); }
.hdr__nav a {
  font-size: var(--t-small); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; position: relative; padding-bottom: 3px;
}
.hdr__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.hdr__nav a:hover::after,
.hdr__nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.hdr__cta {
  display: inline-flex; align-items: center; height: 100%;
  padding: 0 clamp(14px, 1.5vw, 28px);
  border-left: var(--line);
  font-size: var(--t-small); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; background: var(--ink); color: var(--paper);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.hdr__cta:hover { background: var(--sand); color: var(--ink); }

.hdr__tag {
  justify-content: center; text-align: center; padding: 0 10px;
  font-size: clamp(10px, 1.05vw, 20px); line-height: 1.08;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
}

@media (max-width: 1080px) { .hdr__cta { display: none; } }

/* menu hambúrguer (≤ 760px) */
.hdr__burger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 7px;
  margin-left: auto; width: var(--hdr-h); height: 100%; padding: 0;
  border: 0; border-left: var(--line); background: none; color: inherit; cursor: pointer;
}
.hdr__burger span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease); }
.hdr__burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:last-child  { transform: translateY(-4.25px) rotate(-45deg); }
.hdr__burger:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }

.mnav {
  position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 45;
  display: flex; flex-direction: column;
  padding: 24px var(--gutter) 28px; background: var(--paper); overflow-y: auto;
  animation: mnav-in 0.35s var(--ease);
}
.mnav[hidden] { display: none; }
@keyframes mnav-in { from { opacity: 0; transform: translateY(-8px); } }
.mnav__links { display: flex; flex-direction: column; border-top: var(--line); }
.mnav__links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: var(--line); text-decoration: none;
  font-size: clamp(30px, 9vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1;
}
.mnav__links a::after { content: "→"; font-weight: 400; font-size: 0.6em; }
.mnav__links a[aria-current="page"]::after { content: "●"; font-size: 0.32em; }
.mnav__ctas { display: grid; gap: 10px; margin-top: 28px; }
.mnav__ctas .btn { width: 100%; }
.mnav__meta {
  margin-top: auto; padding-top: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6;
}
body.menu-open { overflow: hidden; }
@media (min-width: 761px) { .mnav { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mnav { animation: none; } .hdr__burger span { transition: none; } }
@media (max-width: 760px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: flex; }
  .hdr__clock { display: none; }
}
@media (max-width: 440px) {
  .hdr { grid-template-columns: var(--hdr-h) minmax(0, 1fr); }
  .hdr__tag { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════════ */

.hero { padding: calc(var(--hdr-h) + clamp(40px, 4.04vw, 78px)) var(--gutter-wide) 0; }
.hero__mark { margin: 0; opacity: 0; transform: translateY(22px); animation: rise 1.1s var(--ease) 0.12s forwards; }
.hero__mark img { display: block; width: 100%; height: auto; }

@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__mark { opacity: 1; transform: none; animation: none; } }

/* ═══════════════════════════════════════════════════════════════
   Intro (texto + painel axonométrico)
   ═══════════════════════════════════════════════════════════════ */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1008fr) minmax(0, 706fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(48px, 8vw, 150px) var(--gutter) clamp(56px, 5.5vw, 106px);
}
.intro__lead {
  font-size: clamp(24px, 2.6vw, 50px); line-height: 1.06;
  font-weight: 400; letter-spacing: -0.02em; max-width: 20em;
}
.intro__lead strong { font-weight: 800; }

@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }

.panel {
  aspect-ratio: 533 / 320;
  background: var(--mist);
  border: var(--line);
  display: flex; flex-direction: column;
  padding: clamp(10px, 1.2vw, 22px);
  gap: clamp(6px, 0.8vw, 14px);
  overflow: hidden;
  cursor: crosshair;
}
.panel img.cover { width: 100%; height: 100%; object-fit: cover; }
.panel figcaption {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: 0.16em; text-transform: uppercase; text-align: center;
}

/* ── Símbolo desenhado (animação do painel) ───────────────────── */

.axo { flex: 1; width: 100%; min-height: 0; color: var(--ink); fill: none; stroke: currentColor; stroke-linejoin: round; stroke-linecap: round; }
.axo * { vector-effect: non-scaling-stroke; }

/* símbolo extrudido em axonometria: frente, arestas de profundidade, contorno de trás, linhas ocultas */
.axo .m-line { stroke-width: 2; }
.axo .m-edge { stroke-width: 1.6; }
.axo .m-back { stroke-width: 1.6; }
.axo .m-hid  { stroke-width: 1; stroke-dasharray: 4 5; opacity: 0; }
.axo .m-tick { stroke-width: 1; opacity: 0; }

/* 3× o comprimento: com non-scaling-stroke o Chrome mede o tracejado em píxeis de ecrã */
.axo .m-draw { stroke-dasharray: 3; stroke-dashoffset: 3; }

@keyframes mk-draw { to { stroke-dashoffset: 0; } }
@keyframes mk-hid  { to { opacity: 0.4; } }
@keyframes mk-tick { to { opacity: 0.5; } }

.axo .m-line { --d: 1.3s; --e: cubic-bezier(0.45, 0, 0.2, 1); }
.axo .m-edge { --d: 0.45s; }
.axo .m-back { --d: 0.7s; }
.axo .g-hidden path { --t: 4.20s; }

.axo.is-drawing .m-draw { animation: mk-draw var(--d, 0.8s) var(--e, cubic-bezier(0.4, 0, 0.2, 1)) var(--t, 0s) forwards; }
.axo.is-drawing .m-hid  { animation: mk-hid 0.8s ease var(--t, 0s) forwards; }
.axo.is-drawing .m-tick { animation: mk-tick 0.5s ease var(--t, 0s) forwards; }

.axo.is-done .m-draw, .axo.no-motion .m-draw { stroke-dasharray: none; stroke-dashoffset: 0; }
.axo.is-done .m-hid,  .axo.no-motion .m-hid  { opacity: 0.4; }
.axo.is-done .m-tick, .axo.no-motion .m-tick { opacity: 0.5; }

@media (prefers-reduced-motion: reduce) { .axo.is-drawing * { animation: none !important; } }

/* ═══════════════════════════════════════════════════════════════
   Bandas (sistema de linhas)
   ═══════════════════════════════════════════════════════════════ */

.band { border-top: var(--line); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
.band__k {
  padding: var(--pad-y) clamp(16px, 2vw, 34px) var(--pad-y) var(--gutter);
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: 0.14em; text-transform: uppercase;
  border-right: var(--line);
}
.band__v { padding: var(--pad-y) var(--gutter) var(--pad-y) clamp(20px, 2.6vw, 50px); min-width: 0; }
.band--sand { background: var(--sand); }
.band--last { border-bottom: var(--line); }

@media (max-width: 860px) {
  .band { grid-template-columns: 1fr; }
  .band__k { border-right: 0; padding: clamp(22px, 4vw, 32px) var(--gutter) 0; }
  .band__v { padding: clamp(12px, 2.5vw, 20px) var(--gutter) clamp(32px, 6vw, 46px); }
}

.sec { padding: clamp(52px, 6.4vw, 120px) var(--gutter); }
.sec--sand { background: var(--sand); border-top: var(--line); border-bottom: var(--line); }
.sec--mist { background: var(--mist); border-top: var(--line); border-bottom: var(--line); }
.sec--tight { padding-top: clamp(34px, 4vw, 74px); }

.sec__head {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(18px, 2.6vw, 50px);
  align-items: baseline;
  margin-bottom: clamp(26px, 3.2vw, 60px);
}
.sec__title { font-size: var(--t-h2); }
.sec__note  { font-size: var(--t-body); line-height: 1.45; max-width: 34em; }
.sec__note a { border-bottom: 1px solid; text-decoration: none; }

@media (max-width: 860px) { .sec__head { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   Cabeçalho de página interior
   ═══════════════════════════════════════════════════════════════ */

.phead { padding: calc(var(--hdr-h) + clamp(26px, 3vw, 56px)) var(--gutter) clamp(28px, 3.2vw, 62px); }
.phead__title { font-size: var(--t-h1); line-height: 0.92; margin-top: clamp(12px, 1.6vw, 28px); }
.phead__sub   { font-size: var(--t-lead); margin-top: clamp(14px, 1.8vw, 32px); max-width: 22em; line-height: 1.18; }

.crumbs { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.12em; text-transform: uppercase; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs li { display: flex; gap: 8px; align-items: center; }
.crumbs li + li::before { content: "/"; opacity: 0.4; }
.crumbs a { text-decoration: none; opacity: 0.6; }
.crumbs a:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   Botões
   ═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: clamp(11px, 0.9vw, 17px) clamp(18px, 1.5vw, 30px);
  font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: var(--line); background: var(--ink); color: var(--paper);
  cursor: pointer; white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* link dentro de texto: um só traço, sem partir a meio */
.link { text-decoration: none; border-bottom: 1px solid currentColor; white-space: nowrap; }

.btn-row { display: flex; flex-wrap: wrap; gap: clamp(10px, 1vw, 16px); align-items: center; }

.promise {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; border: var(--line);
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.promise::before { content: ""; width: 7px; height: 7px; background: var(--ink); border-radius: 50%; }

/* Todos os CTA com a mesma altura do selo "Resposta em 24 horas úteis":
   linha do texto micro (1.4) + 9px de padding em cima e em baixo + 1px de borda. */
.btn, .promise {
  height: calc(var(--t-micro) * 1.4 + 20px);
  padding-top: 0; padding-bottom: 0;
}
.prose .btn { height: auto; }   /* botão dentro de texto corrido (privacidade) */

/* ═══════════════════════════════════════════════════════════════
   Números
   ═══════════════════════════════════════════════════════════════ */

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
.metric {
  display: flex; flex-direction: column; gap: clamp(6px, 0.7vw, 12px);
  padding: clamp(24px, 3vw, 56px) clamp(16px, 2vw, 40px);
  border-top: var(--line); border-left: var(--line);
}
.metric:nth-child(3n+1) { border-left: 0; }
.metric__value {
  font-size: clamp(50px, 6.2vw, 118px); line-height: 0.85; font-weight: 700;
  letter-spacing: -0.05em; font-variant-numeric: tabular-nums;
}
.metric__label { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.1em; text-transform: uppercase; }

@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3n+1) { border-left: var(--line); }
  .metric:nth-child(2n+1) { border-left: 0; }
}
@media (max-width: 560px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { border-left: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════════
   Listas de serviços / processo
   ═══════════════════════════════════════════════════════════════ */

.list { border-top: var(--line); }
.row {
  display: grid;
  grid-template-columns: clamp(44px, 4.6vw, 90px) minmax(0, 4fr) minmax(0, 5fr);
  gap: clamp(12px, 2vw, 40px);
  align-items: baseline;
  padding: clamp(20px, 2.3vw, 44px) 0;
  border-bottom: var(--line);
}
.row__no   { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.1em; opacity: 0.55; }
.row__name { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.row__desc { font-size: var(--t-body); line-height: 1.45; max-width: 34em; }
.row__desc ul { display: grid; gap: 5px; margin-top: 1em; }
.row__desc li { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }

@media (max-width: 820px) {
  .row { grid-template-columns: clamp(38px, 11vw, 66px) minmax(0, 1fr); }
  .row__desc { grid-column: 2; }
}

/* ═══════════════════════════════════════════════════════════════
   Cartões de casos
   ═══════════════════════════════════════════════════════════════ */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.2vw, 44px); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; gap: clamp(9px, 0.9vw, 16px); }
.card__media {
  aspect-ratio: 4 / 3; background: var(--mist); border: var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card__media img.cover { width: 100%; height: 100%; object-fit: cover; }
.card__media .ph { width: 20%; height: auto; opacity: 0.16; }
.sec--sand .card__media { background: rgba(255, 255, 255, 0.35); }
.card__title { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.card__meta {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.62;
}

.chip {
  display: inline-block; padding: 3px 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px dashed currentColor; opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   Avaliações
   ═══════════════════════════════════════════════════════════════ */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 44px); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

.quote {
  display: flex; flex-direction: column; gap: clamp(12px, 1.2vw, 22px);
  padding: clamp(20px, 2vw, 38px); border: var(--line); background: var(--paper);
}
.quote blockquote { font-size: var(--t-body); line-height: 1.4; }
.quote footer {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.62; margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════ */

.faq { border-top: var(--line); }
.faq details { border-bottom: var(--line); }
.faq summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: clamp(16px, 1.8vw, 34px) 0;
  font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.02em;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.1em; line-height: 1; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 clamp(16px, 1.8vw, 32px); max-width: 46em; font-size: var(--t-body); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   Formulário
   ═══════════════════════════════════════════════════════════════ */

.form { display: grid; gap: clamp(14px, 1.4vw, 26px); max-width: 720px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.4vw, 26px); }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--t-body); color: var(--ink); background: var(--paper);
  border: var(--line); padding: clamp(10px, 0.85vw, 15px) clamp(11px, 0.9vw, 16px);
  border-radius: 0; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.field--check { flex-direction: row; gap: 11px; align-items: flex-start; }
.field--check input { width: auto; margin-top: 3px; }
.field--check label { font-family: inherit; font-size: var(--t-small); letter-spacing: 0; text-transform: none; line-height: 1.45; }
.field--check a { border-bottom: 1px solid; text-decoration: none; }
.field--hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.form__note { font-size: var(--t-small); line-height: 1.45; opacity: 0.7; max-width: 44em; }

/* ═══════════════════════════════════════════════════════════════
   Contactos, mapa, retrato, texto corrido
   ═══════════════════════════════════════════════════════════════ */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 4vw, 76px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.dl { display: grid; gap: clamp(12px, 1.3vw, 22px); }
.dl > div { display: flex; flex-direction: column; gap: 5px; border-top: var(--line); padding-top: clamp(8px, 0.8vw, 14px); }
.dl dt { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.dl dd { font-size: var(--t-body); line-height: 1.35; }
.dl a { text-decoration: none; border-bottom: 1px solid currentColor; }

.map { border: var(--line); background: var(--mist); }
.map iframe { display: block; width: 100%; height: clamp(240px, 24vw, 420px); border: 0; filter: grayscale(1) contrast(1.05); }
.map__routes { display: flex; flex-wrap: wrap; border-top: var(--line); }
.map__routes a {
  flex: 1; min-width: 96px; text-align: center; padding: clamp(10px, 0.9vw, 15px) 8px;
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.map__routes a + a { border-left: var(--line); }
.map__routes a:hover { background: var(--ink); color: var(--paper); }

.portrait {
  aspect-ratio: 4 / 5; background: var(--mist); border: var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  overflow: hidden;
}
.portrait img.cover { width: 100%; height: 100%; object-fit: cover; }
.portrait .ph { width: 16%; height: auto; opacity: 0.18; }

.prose { max-width: 44em; display: grid; gap: clamp(14px, 1.3vw, 24px); }
.prose h2 { font-size: var(--t-h3); margin-top: clamp(12px, 1.3vw, 24px); }
.prose p, .prose li { font-size: var(--t-body); line-height: 1.55; }
.prose ul { display: grid; gap: 7px; padding-left: 1.1em; list-style: disc; }
.prose a { border-bottom: 1px solid currentColor; text-decoration: none; }

/* listas de credenciais (ficha técnica) */
.spec { display: grid; gap: 0; }
.spec li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
  padding: clamp(9px, 0.85vw, 15px) 0; border-bottom: var(--line-soft);
  font-size: var(--t-body); line-height: 1.3;
}
.spec li:first-child { border-top: var(--line-soft); }
.spec span { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.08em; opacity: 0.55; white-space: nowrap; }

.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 60px); }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.cols h3 { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; opacity: 0.6; margin-bottom: clamp(8px, 1vw, 16px); }

/* ═══════════════════════════════════════════════════════════════
   Rodapé
   ═══════════════════════════════════════════════════════════════ */

.ftr {
  background: var(--olive); color: var(--cream);
  border-top: var(--line);
  padding: 0 var(--gutter-wide);
  display: flex; flex-direction: column;
  min-height: clamp(400px, 33vw, 640px);
}
.ftr a { text-decoration: none; }

.ftr__top {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-bottom: var(--line-cream);
  padding: clamp(20px, 2vw, 34px) 0;
}
.ftr__clocks { display: flex; gap: clamp(16px, 2.4vw, 44px); border-right: var(--line-cream); padding-right: clamp(16px, 2vw, 34px); }
.ftr__clock {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5;
  display: flex; gap: 9px; align-items: flex-start;
}
.ftr__clock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cream); margin-top: 4px; flex: none; }

.ftr__nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 1.8vw, 34px); justify-content: flex-end; align-items: flex-start; padding-left: clamp(16px, 2vw, 34px); }
.ftr__nav a { font-size: var(--t-small); font-weight: 500; border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
.ftr__nav a:hover { border-bottom-color: currentColor; }

.ftr__main { flex: 1; display: grid; grid-template-columns: minmax(0, 63fr) minmax(0, 37fr); }
.ftr__lock {
  display: flex; align-items: flex-end; gap: clamp(10px, 1.3vw, 26px);
  padding: clamp(36px, 5vw, 90px) clamp(16px, 2vw, 34px) clamp(24px, 2.4vw, 44px) 0;
}
.ftr__wordmark { width: clamp(118px, 13.6vw, 262px); height: auto; display: block; }
.ftr__mark { width: clamp(28px, 4.2vw, 80px); height: auto; display: block; }
.ftr__tagline { font-size: clamp(13px, 1.5vw, 29px); line-height: 1.06; letter-spacing: 0.02em; text-transform: uppercase; font-weight: 600; }

.ftr__side {
  border-left: var(--line-cream);
  padding: clamp(20px, 2vw, 34px) 0 clamp(24px, 2.4vw, 44px) clamp(16px, 2vw, 34px);
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.ftr__axo { width: clamp(80px, 9vw, 168px); height: auto; color: var(--cream); fill: none; stroke: currentColor; stroke-width: 1.4; }
.ftr__axo * { vector-effect: non-scaling-stroke; }
.ftr__legal { font-size: var(--t-small); text-align: right; opacity: 0.85; }

@media (max-width: 860px) {
  .ftr__top { grid-template-columns: 1fr; gap: 18px; }
  .ftr__clocks { border-right: 0; padding-right: 0; flex-direction: column; gap: 10px; }
  .ftr__nav { justify-content: flex-start; padding-left: 0; }
  .ftr__main { grid-template-columns: 1fr; }
  .ftr__lock { padding: clamp(30px, 8vw, 60px) 0 24px; flex-wrap: wrap; }
  /* fundo: espaço para a barra do iPhone (safe area) e o desenho ao lado do texto legal */
  .ftr__side {
    border-left: 0; border-top: var(--line-cream);
    padding: 26px 0 calc(48px + env(safe-area-inset-bottom, 0px));
    flex-direction: row-reverse; justify-content: space-between; align-items: flex-end; gap: 20px;
  }
  .ftr__legal { text-align: left; flex: 1; font-size: 13px; line-height: 1.5; }
  .ftr__axo { width: 76px; flex: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Banner de cookies
   ═══════════════════════════════════════════════════════════════ */


.cookies {
  position: fixed; z-index: 70;
  left: clamp(12px, 2vw, 26px); bottom: clamp(12px, 2vw, 26px);
  width: min(400px, calc(100vw - 24px));
  background: var(--paper); border: var(--line);
  padding: clamp(16px, 1.4vw, 24px);
  display: none; gap: clamp(12px, 1.1vw, 18px); flex-direction: column;
  box-shadow: 6px 6px 0 rgba(28, 28, 28, 0.13);
}
.cookies.is-open { display: flex; }
.cookies p { font-size: var(--t-small); line-height: 1.45; }
.cookies a { text-decoration: underline; }
.cookies .btn { padding: 0 16px; font-size: 11px; }

@media (max-width: 860px) { .cookies { bottom: 62px; } }

/* ═══════════════════════════════════════════════════════════════
   Reveal
   ═══════════════════════════════════════════════════════════════ */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

[hidden] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   Parceiros
   ═══════════════════════════════════════════════════════════════ */

.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(16px, 2vw, 34px); }

.partner {
  border: var(--line);
  padding: clamp(20px, 2vw, 38px);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(16px, 1.8vw, 30px);
  min-height: clamp(170px, 16vw, 250px);
  text-decoration: none;
  transition: background 0.3s var(--ease);
}
a.partner:hover { background: var(--mist); }
.sec--sand a.partner:hover, .band--sand a.partner:hover { background: rgba(255, 255, 255, 0.4); }

.partner__logo { display: flex; align-items: center; min-height: clamp(40px, 4vw, 72px); }
.partner__logo img { max-height: clamp(40px, 4vw, 72px); width: auto; }
.partner__logo span { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }

.partner__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.62;
}
.partner__meta em { font-style: normal; white-space: nowrap; }

/* ═══ Tipos de obra (home): cartões com desenho isométrico em linhas ═══ */
.tipos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 28px); }
.tipo { border: var(--line); display: flex; flex-direction: column; min-width: 0; }
.tipo__fig { background: var(--mist); border-bottom: var(--line); }
.tipo__svg { display: block; width: 100%; height: auto; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.tipo__svg * { vector-effect: non-scaling-stroke; }
.tipo__svg .f { fill: var(--mist); }
.tipo__svg .g { stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.45; }
.tipo__svg .h { stroke-width: 1.1; stroke-dasharray: 4 4; opacity: 0.7; }
.tipo__t { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; padding: clamp(16px, 1.4vw, 24px) clamp(16px, 1.4vw, 24px) 0; }
.tipo__d { flex: 1; font-size: var(--t-body); line-height: 1.45; padding: 0.6em clamp(16px, 1.4vw, 24px) 1em; }
.tipo__m { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.62; padding: 0 clamp(16px, 1.4vw, 24px) clamp(16px, 1.4vw, 24px); }

/* desenho a aparecer quando o cartão entra no ecrã (tracejado 3×: ver .axo) */
.tipo__svg .d { stroke-dasharray: 3; stroke-dashoffset: 3; fill-opacity: 0; }
.tipo__svg .g, .tipo__svg .h { opacity: 0; transition: opacity 0.8s ease 0.3s; }
.tipo.is-in .tipo__svg .d {
  animation-name: tp-draw, tp-fill;
  animation-duration: 0.8s, 0.4s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1), ease;
  animation-delay: calc(var(--i, 0) * 30ms + 0.25s), calc(var(--i, 0) * 30ms + 0.75s);
  animation-fill-mode: forwards;
}
.tipo.is-in .tipo__svg .g { opacity: 0.45; }
.tipo.is-in .tipo__svg .h { opacity: 0.7; }
@keyframes tp-draw { to { stroke-dashoffset: 0; } }
@keyframes tp-fill { to { fill-opacity: 1; } }

@media (max-width: 1100px) { .tipos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .tipos { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .tipo__svg .d { animation: none !important; stroke-dasharray: none; stroke-dashoffset: 0; fill-opacity: 1; }
}
