/* IC Imobiconta — demonstração de conceito (Tino)
   Fontes auto-alojadas (SIL OFL): Fraunces, Atkinson Hyperlegible Next, Geist Mono.
   Sem pedidos a terceiros. Sem atributos style no HTML (compatível com a CSP do _headers). */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("fonts/atkinson-next-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("fonts/atkinson-next-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --petrol-950: #061619;
  --petrol-900: #0B2328;
  --petrol-850: #0E2A30;
  --petrol-700: #173F49;
  --petrol-600: #1F5260;
  --petrol-500: #2F6B79;
  --ivory: #F4EFE4;
  --ivory-2: #EAE3D4;
  --paper: #FBF8F2;
  --grey-700: #5F584E;
  --grey-on-dark: #B9B2A5;
  --sage: #9DB39A;
  --sage-deep: #5E7A5C;
  --hatch: repeating-linear-gradient(135deg, rgb(94 122 92 / .34) 0 1px, transparent 1px 7px);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Atkinson Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 1024px) { :root { --header-h: 76px; } }

.theme-dark {
  --bg: var(--petrol-900);
  --fg: var(--ivory);
  --muted: var(--grey-on-dark);
  --line: rgb(244 239 228 / .14);
  --line-strong: rgb(244 239 228 / .32);
  --focus: var(--sage);
  background: var(--bg);
  color: var(--fg);
}
.theme-light, .theme-paper {
  --bg: var(--ivory);
  --fg: var(--petrol-900);
  --muted: var(--grey-700);
  --line: #D6CCB9;
  --line-strong: #A99D87;
  --focus: var(--petrol-600);
  background: var(--bg);
  color: var(--fg);
}
.theme-paper { --bg: var(--ivory-2); --line: #CFC4AF; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  background: var(--petrol-900);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + .2vw, 1.15625rem);
  line-height: 1.6;
  color: var(--petrol-900);
  background: var(--ivory);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--sage); color: var(--petrol-900); }

:focus-visible { outline: 2px solid var(--focus, var(--petrol-600)); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.i { width: 1.125em; height: 1.125em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero-grid, .areas-grid, .office-grid, .contact-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 12px 18px; background: var(--ivory); color: var(--petrol-900);
  font-weight: 600; text-decoration: none; border-radius: 3px;
  transform: translateY(-160%); transition: transform .2s var(--ease);
  --focus: var(--sage);
}
.skip:focus { transform: none; }

/* ---------- Tipografia ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.5rem, 1.55rem + 3.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.022em;
}
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.25rem + .9vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: -.012em;
}
.lead {
  margin-top: 24px;
  max-width: 30em;
  font-size: clamp(1.125rem, 1.03rem + .35vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
}
.label, .eyebrow, .runhead, .ficha-title, .hours-sub, .hours thead th, .fact dt, .nav-hours {
  font-family: var(--mono);
  font-size: .71875rem;
  font-weight: 450;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.label { margin-bottom: 10px; color: var(--muted); }
.note { margin-top: 8px; font-size: .875rem; line-height: 1.5; color: var(--muted); }

/* ---------- Botões e ligações ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  min-height: var(--h); padding: 0 22px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: .005em;
  text-decoration: none; text-align: center;
  border: 1px solid transparent; border-radius: 3px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn-lg { --h: 56px; padding: 0 26px; font-size: 1.03125rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ivory); color: var(--petrol-900); }
.btn-primary:hover { background: #fff; box-shadow: inset 0 -2px 0 var(--sage); }
.btn-dark { background: var(--petrol-900); color: var(--ivory); --focus: var(--petrol-600); }
.btn-dark:hover { background: var(--petrol-700); box-shadow: inset 0 -2px 0 var(--sage); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--fg); background: rgb(244 239 228 / .06); }
.theme-light .btn-ghost:hover { background: rgb(11 35 40 / .04); }
.btn:hover .i:first-child { transform: rotate(-8deg); }
.btn:hover .i-after { transform: translateY(2px); }
.btn[target="_blank"]:hover .i-after { transform: translate(2px, -2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 600; color: var(--fg);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color .2s;
}
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- Assinatura tipográfica ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: inherit; }
.brand-mark {
  --cut: var(--petrol-900);
  position: relative; display: inline-grid; place-items: center;
  width: 36px; height: 36px; flex: none;
  border: 1px solid currentColor;
  font-family: var(--serif); font-weight: 560; font-size: 15px; letter-spacing: .05em; line-height: 1;
  padding-left: .05em;
}
.brand-mark::after {
  content: ""; position: absolute; top: -1px; right: -1px; width: 10px; height: 10px;
  background: linear-gradient(225deg, var(--cut) 0 50%, var(--sage) 50% 100%);
}
.brand-name { font-family: var(--serif); font-weight: 420; font-size: 1.375rem; letter-spacing: -.012em; line-height: 1; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  color: var(--ivory);
  background: var(--petrol-900);
  border-bottom: 1px solid rgb(244 239 228 / .1);
  --fg: var(--ivory); --line-strong: rgb(244 239 228 / .32); --focus: var(--sage);
}
.header-in { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.site-header .brand { margin-right: auto; }
.nav-list { list-style: none; padding: 0; }
.nav-list a { text-decoration: none; }
.nav-extra { display: none; }
.header-call { display: none; --h: 44px; padding: 0 18px; font-size: .9375rem; background: var(--ivory); color: var(--petrol-900); }
.header-call:hover { background: #fff; box-shadow: inset 0 -2px 0 var(--sage); }
@media (min-width: 640px) { .header-call { display: inline-flex; } }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; min-width: 44px; padding: 0 12px 0 14px;
  background: transparent; border: 1px solid rgb(244 239 228 / .3); border-radius: 3px;
  font-weight: 600; font-size: .9375rem; cursor: pointer;
}
.menu-toggle[hidden] { display: none; }
.menu-toggle:hover { border-color: var(--ivory); }
.burger { position: relative; width: 18px; height: 12px; }
.burger i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger i:first-child { top: 2px; }
.burger i:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .burger i:first-child { top: 5.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger i:last-child { top: 5.25px; transform: rotate(-45deg); }

/* Navegação em ecrãs largos */
@media (min-width: 1024px) {
  .header-in { gap: 28px; }
  .menu-toggle { display: none !important; }
  .nav-list { display: flex; gap: 2px; }
  .nav-list a {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    font-size: .96875rem; color: rgb(244 239 228 / .78); transition: color .2s;
  }
  .nav-list a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px;
    background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
  }
  .nav-list a:hover, .nav-list a.is-current { color: var(--ivory); }
  .nav-list a:hover::after, .nav-list a.is-current::after { transform: scaleX(1); }
}

/* Navegação em ecrãs estreitos */
@media (max-width: 1023.98px) {
  /* Sem JavaScript: a navegação fica visível numa linha. */
  html:not(.js) .header-in { flex-wrap: wrap; padding-bottom: 6px; }
  html:not(.js) .nav { order: 5; width: 100%; }
  html:not(.js) .nav-list { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  html:not(.js) .nav-list a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgb(244 239 228 / .35); }

  /* Com JavaScript: painel aberto pelo botão Menu. */
  .js .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain;
    padding: 8px var(--gutter) 28px;
    background: var(--petrol-900);
    border-bottom: 1px solid rgb(244 239 228 / .12);
    box-shadow: 0 30px 50px -20px rgb(2 12 14 / .6);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .22s ease, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .nav-list a {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 68px; padding: 4px 2px;
    font-family: var(--serif); font-size: 1.875rem; font-weight: 340; letter-spacing: -.012em;
    border-bottom: 1px solid rgb(244 239 228 / .12);
  }
  .js .nav-list a::after {
    content: ""; width: 9px; height: 9px; margin-right: 6px;
    border-top: 1.5px solid var(--sage); border-right: 1.5px solid var(--sage);
    transform: rotate(45deg);
  }
  .js .nav-extra { display: block; margin-top: 28px; }
  .nav-hours { margin-top: 18px; color: var(--grey-on-dark); line-height: 1.9; }
  .nav-hours span { display: block; color: var(--ivory); }
  .nav-hours span + span { color: var(--grey-on-dark); }
}
.menu-backdrop {
  position: fixed; inset: 0; z-index: 45;
  background: rgb(4 16 19 / .55);
}
.menu-backdrop[hidden] { display: none; }

/* ---------- Abertura ---------- */
.hero { position: relative; overflow: clip; padding-top: clamp(44px, 7vw, 96px); }
.hero::before {
  /* margem dupla, como numa folha de registo */
  content: ""; position: absolute; top: 0; bottom: 0; width: 4px;
  left: max(10px, calc((100% - var(--wrap)) / 2 - 36px));
  border-left: 1px solid rgb(157 179 154 / .28); border-right: 1px solid rgb(157 179 154 / .14);
  pointer-events: none;
}
@media (max-width: 1279.98px) { .hero::before { display: none; } }
.hero-grid { display: grid; gap: clamp(48px, 8vw, 64px); }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 40px; }
}
.eyebrow { display: flex; align-items: flex-start; gap: 14px; line-height: 1.7; margin-bottom: clamp(24px, 3vw, 36px); color: var(--grey-on-dark); }
.eyebrow-mark { position: relative; width: 32px; height: 1px; margin-top: .85em; background: var(--sage); flex: none; }
.eyebrow-mark::after { content: ""; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; background: var(--sage); }
.hero-title {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(3rem, .6rem + 9.6vw, 5.75rem);
  line-height: .98;
  letter-spacing: -.028em;
  text-wrap: initial;
}
.hero-title .ln { display: block; }
@media (min-width: 960px) { .hero-title { font-size: clamp(5rem, 1rem + 6.4vw, 7rem); } }
.hero-title em { font-style: italic; font-weight: 300; letter-spacing: -.024em; }
.hero-title .dot { color: var(--sage); }
.hero-lead { margin-top: clamp(24px, 3vw, 34px); max-width: 31em; font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); line-height: 1.5; color: rgb(244 239 228 / .84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(30px, 4vw, 44px); }
@media (max-width: 519.98px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

.hero-art { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
@media (min-width: 960px) { .hero-art { justify-self: end; margin-inline: 0; margin-right: -12px; } }
@media (max-width: 959.98px) { .hero-art { max-width: 500px; } }
@media (min-width: 640px) and (max-width: 959.98px) { .hero-art { margin-right: -8px; } }
.art { width: 100%; height: auto; overflow: visible; }
.a-letterhead { font-family: var(--serif); font-size: 19px; font-weight: 560; letter-spacing: .04em; }

.hero-facts { display: grid; margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.fact { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; padding-bottom: 28px; }
.fact dt { color: var(--sage); }
.fact dd { font-size: 1rem; line-height: 1.5; color: var(--ivory); }
.fact dd a { text-decoration: underline; text-decoration-color: rgb(244 239 228 / .35); text-underline-offset: 5px; }
.fact dd a:hover { text-decoration-color: currentColor; }
.fact-link { display: inline-block; margin-left: 6px; color: var(--grey-on-dark); }
@media (min-width: 760px) {
  .hero-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.25fr); }
  .fact { padding: 24px 28px 34px; border-bottom: 0; border-left: 1px solid var(--line); }
  .fact:first-child { border-left: 0; padding-left: 0; }
  .fact:last-child { padding-bottom: 34px; }
}

/* ---------- Secções ---------- */
.section { position: relative; padding-block: clamp(80px, 10vw, 144px); }
.runhead { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(44px, 6vw, 88px); color: var(--muted); }
.runhead-n { color: var(--fg); }
.runhead-rule { flex: 1; height: 1px; background: var(--line); min-width: 24px; }
@media (max-width: 599.98px) { .runhead-brand { display: none; } }

/* ---------- Áreas de apoio ---------- */
.areas { --bg: #EFE9DC; }
.areas-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) {
  .areas-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; align-items: start; }
  .areas-head { position: sticky; top: calc(var(--header-h) + 48px); }
}
.areas-head .link-arrow { margin-top: 28px; }

.dividers { list-style: none; padding: 0; }
.divider { position: relative; padding-top: 40px; }
.divider + .divider { margin-top: 10px; }
.d1 { --div-bg: #FCFAF6; }
.d2 { --div-bg: #F8F4EC; }
.d3 { --div-bg: #F3EEE3; }
.divider-tab {
  position: absolute; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  width: 33.334%; height: 41px; padding: 0 18px;
  background: var(--div-bg);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0;
}
.tab-n { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; color: var(--petrol-900); }
.divider-tab::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.d1 .divider-tab { left: 0; }
.d2 .divider-tab { left: 33.333%; }
.d3 .divider-tab { left: 66.666%; }
.divider-body {
  position: relative;
  display: grid; gap: 22px;
  padding: clamp(26px, 3.6vw, 44px);
  background: var(--div-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 18px 36px -30px rgb(11 35 40 / .35);
}
.d1 .divider-body { border-top-left-radius: 0; }
.d3 .divider-body { border-top-right-radius: 0; }
.divider-icon { width: 52px; height: 52px; fill: none; stroke: var(--petrol-900); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.g-accent { stroke: var(--sage-deep); }
.g-accent-fill { fill: var(--sage); stroke: none; }
.g-dot { fill: var(--petrol-900); stroke: none; }
.divider-text p { margin-top: 12px; max-width: 34em; color: var(--muted); }
@media (min-width: 640px) {
  .divider-body { grid-template-columns: 64px minmax(0, 1fr); gap: 32px; align-items: start; }
  .divider-icon { width: 60px; height: 60px; margin-top: 2px; }
}
@media (max-width: 639.98px) {
  .divider-tab { width: 50%; }
  .d2 .divider-tab { left: 25%; }
  .d3 .divider-tab { left: 50%; }
}

/* ---------- O escritório ---------- */
.office { --bg: var(--petrol-850); overflow: clip; }
.office-amp {
  position: absolute; right: -2vw; top: 50%; transform: translateY(-46%);
  font-family: var(--serif); font-style: italic; font-weight: 260;
  font-size: clamp(26rem, 62vw, 58rem); line-height: .8;
  color: #13363E;
  pointer-events: none; user-select: none;
}
@media (max-width: 1023.98px) { .office-amp { top: auto; bottom: -8vw; right: -14vw; transform: none; font-size: clamp(22rem, 95vw, 40rem); } }
.office .wrap { position: relative; }
.office-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) { .office-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; } }
.office-statement {
  margin-top: clamp(28px, 3.4vw, 40px);
  font-family: var(--serif); font-weight: 320;
  font-size: clamp(1.625rem, 1.15rem + 1.7vw, 2.5rem);
  line-height: 1.3; letter-spacing: -.012em;
  color: var(--ivory);
}
.office-next { margin-top: 28px; max-width: 32em; color: var(--muted); }
.office .link-arrow { margin-top: 18px; }

.ficha {
  position: relative;
  padding: 48px clamp(22px, 3vw, 36px) 20px;
  background: var(--ivory); color: var(--petrol-900);
  border-radius: 4px;
  box-shadow: 0 40px 70px -40px rgb(0 0 0 / .65);
  --focus: var(--petrol-600); --muted: var(--grey-700);
}
.ficha-holes { position: absolute; top: 16px; left: clamp(22px, 3vw, 36px); display: flex; gap: 10px; }
.ficha-holes i { width: 11px; height: 11px; border-radius: 50%; background: var(--petrol-850); box-shadow: inset 0 1px 2px rgb(0 0 0 / .45); }
.ficha::after {
  content: ""; position: absolute; top: 0; right: 0; width: 26px; height: 26px;
  background: linear-gradient(225deg, var(--petrol-850) 0 50%, #D9CFBC 50% 100%);
  border-bottom-left-radius: 2px;
}
.ficha-title { padding-bottom: 14px; border-bottom: 1.5px solid var(--petrol-900); color: var(--petrol-900); }
.ficha-list > div { display: grid; gap: 4px; padding: 15px 0 16px; border-bottom: 1px solid #D6CCB9; }
.ficha-list > div:last-child { border-bottom: 0; }
.ficha-list dt { font-family: var(--mono); font-size: .6875rem; letter-spacing: .13em; text-transform: uppercase; color: var(--grey-700); }
.ficha-list dd { font-family: var(--serif); font-weight: 400; font-size: 1.125rem; line-height: 1.35; letter-spacing: -.005em; }
@media (min-width: 480px) {
  .ficha-list > div { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; align-items: baseline; }
  .ficha-list dt { line-height: 1.5; }
}

/* ---------- Comece por uma conversa ---------- */
.steps-head { display: grid; gap: 0; }
.steps-list { position: relative; list-style: none; padding: 0; margin-top: clamp(52px, 7vw, 96px); display: grid; }
.steps-list::before { content: ""; position: absolute; background: var(--line-strong); left: 6px; top: 14px; bottom: 40px; width: 1px; }
.step { position: relative; padding: 0 0 44px 44px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--petrol-900);
}
.step:first-child::before { background: var(--sage); border-color: var(--sage-deep); }
.step-n {
  display: block; margin-bottom: 14px;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(3.5rem, 2.4rem + 3.6vw, 6.5rem); line-height: .9; letter-spacing: -.03em;
  color: var(--petrol-900);
}
.step .h3 { max-width: 13em; }
.step p { margin-top: 12px; max-width: 24em; color: var(--muted); }
.step a { color: var(--fg); text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
@media (min-width: 900px) {
  .steps-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .steps-list::before { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 1px; }
  .step { padding: 52px 0 0; }
  .step::before { top: 0; }
}
.steps-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  margin-top: clamp(56px, 7vw, 96px); padding-top: 32px; border-top: 1px solid var(--line);
}
.steps-cta-note { font-family: var(--mono); font-size: .8125rem; letter-spacing: .03em; color: var(--muted); }
.steps-cta-note .sep { margin: 0 6px; }
@media (max-width: 519.98px) {
  .steps-cta .btn { width: 100%; }
  .steps-cta-note .sep { display: none; }
  .steps-cta-note span:last-child { display: block; }
}

/* ---------- Contactos e horário ---------- */
.contact { --bg: var(--petrol-900); }
.contact-grid { display: grid; gap: 64px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; } }
.contact-block { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-block .label { color: var(--sage); }
.phone-big {
  display: inline-block;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 1.9rem + 3.6vw, 4.875rem); line-height: 1; letter-spacing: -.025em;
  text-decoration: none; color: var(--ivory);
  background-image: linear-gradient(var(--sage), var(--sage));
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 6px; transition: background-size .45s var(--ease);
}
.phone-big:hover { background-size: 100% 1px; }
.phone-big .cc { display: block; margin-bottom: 8px; font-size: .36em; letter-spacing: .02em; color: var(--grey-on-dark); }
.contact-phone .note { margin-top: 10px; }
.contact-phone .btn { margin-top: 26px; }
.contact-address address { font-size: 1.1875rem; line-height: 1.55; }
.contact-address .btn { margin-top: 22px; }
@media (max-width: 519.98px) { .contact-block .btn { width: 100%; } }

.hours-sheet {
  position: relative;
  padding: clamp(30px, 4vw, 48px) clamp(16px, 3.4vw, 48px) clamp(26px, 3vw, 36px) clamp(40px, 6vw, 84px);
  background: var(--ivory); color: var(--petrol-900);
  border-radius: 4px;
  box-shadow: 0 50px 90px -50px rgb(0 0 0 / .75);
  --fg: var(--petrol-900); --muted: var(--grey-700); --line: #D6CCB9; --line-strong: #A99D87; --focus: var(--petrol-600);
}
.hours-sheet::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: clamp(28px, 4.4vw, 62px); width: 1px; background: #8EA88B;
}
.sheet-holes { position: absolute; top: 0; bottom: 0; left: clamp(9px, 1.6vw, 22px); display: flex; flex-direction: column; justify-content: space-evenly; }
.sheet-holes i { width: clamp(10px, 1.2vw, 13px); aspect-ratio: 1; border-radius: 50%; background: var(--petrol-900); box-shadow: inset 0 1px 2px rgb(0 0 0 / .5); }
.hours-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1.5px solid var(--petrol-900); }
.hours-title { font-family: var(--serif); font-weight: 380; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.875rem); line-height: 1; letter-spacing: -.02em; }
.hours-sub { color: var(--muted); text-align: right; }

.hours { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.hours col.c-am, .hours col.c-pm { width: 30%; }
.hours col.c-break { width: 48px; }
.hours th, .hours td { padding: 15px 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--line); }
.hours thead th { padding: 18px 0 10px; font-weight: 450; color: var(--muted); }
.hours thead th.th-break { text-align: center; padding-inline: 2px; }
.hours thead th.th-pm { padding-left: 16px; }
.hours tbody th { padding-right: 12px; font-weight: 400; font-size: 1.0625rem; white-space: nowrap; }
.hours td.am, .hours td.pm { font-family: var(--mono); font-size: .9375rem; letter-spacing: .01em; white-space: nowrap; }
.hours td.am { padding-right: 16px; }
.hours td.pm { padding-left: 16px; }
.hours td.am::after, .hours td.pm::after { content: ""; display: block; height: 3px; margin-top: 9px; border-radius: 2px; background: var(--petrol-600); }
.hours td.am::after { margin-left: 12.5%; } /* 09:00–12:30 numa escala de 08:30 a 12:30 */
.hours td.pm-short::after {               /* 14:00–17:00 numa escala de 14:00 a 18:00 */
  background:
    linear-gradient(90deg, var(--petrol-600) 0 75%, transparent 75%),
    repeating-linear-gradient(90deg, rgb(31 82 96 / .45) 0 3px, transparent 3px 7px) 75% 0 / 25% 100% no-repeat;
}
.hours td.break {
  padding: 0; text-align: center; vertical-align: middle;
  background: var(--hatch), #EEEADD;
  border-left: 1px solid rgb(94 122 92 / .35); border-right: 1px solid rgb(94 122 92 / .35);
  border-bottom-color: rgb(94 122 92 / .35);
}
.break-in {
  display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg);
  padding: 12px 5px; background: var(--ivory);
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: var(--petrol-900);
}
.break-l { color: var(--grey-700); margin-left: 4px; }
.is-fri th::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 9px; border-radius: 50%; background: var(--sage-deep); vertical-align: middle; transform: translateY(-1px); }
.is-closed th { color: var(--muted); }
.is-closed td { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.is-closed td::after { content: ""; display: block; height: 1px; margin-top: 10px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 2px, transparent 2px 6px); }
.hours tbody tr:last-child > * { border-bottom: 0; }
.hours-notes { list-style: none; padding: 18px 0 0; margin-top: 4px; border-top: 1.5px solid var(--petrol-900); display: grid; gap: 8px; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.hours-notes li { display: flex; gap: 12px; align-items: baseline; }
.key { flex: none; }
.key-break { width: 16px; height: 11px; background: var(--hatch), #EEEADD; border: 1px solid rgb(94 122 92 / .5); transform: translateY(1px); }
.key-fri { width: 7px; height: 7px; margin-inline: 4px 5px; border-radius: 50%; background: var(--sage-deep); transform: translateY(-1px); }
.day-s { display: none; text-decoration: none; }

@media (max-width: 479.98px) {
  .day-l { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .day-s { display: inline; }
  .hours tbody th { font-size: 1rem; padding-right: 8px; }
  .hours td.am, .hours td.pm { font-size: .8125rem; letter-spacing: 0; }
  .hours td.am { padding-right: 8px; }
  .hours td.pm, .hours thead th.th-pm { padding-left: 8px; }
  .is-fri th::after { width: 6px; height: 6px; margin-left: 5px; }
  .hours col.c-break { width: 30px; }
  .th-break-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hours-sheet { padding-left: 36px; padding-right: 14px; }
  .hours-sheet::before { left: 27px; }
  .sheet-holes { left: 8px; }
  .break-in { padding: 10px 3px; font-size: .625rem; }
  .hours-head { flex-wrap: wrap; }
  .hours-sub { text-align: left; }
}

@media (max-width: 359.98px) {
  .hours-sheet { padding-left: 30px; padding-right: 10px; }
  .hours-sheet::before { left: 22px; }
  .sheet-holes { left: 6px; }
  .sheet-holes i { width: 9px; }
  .hours td.am, .hours td.pm { font-size: .71875rem; }
  .hours td.am { padding-right: 6px; }
  .hours td.pm, .hours thead th.th-pm { padding-left: 6px; }
  .hours col.c-break { width: 26px; }
  .break-in { padding: 8px 2px; font-size: .5625rem; }
}

/* ---------- Rodapé ---------- */
.site-footer { padding: clamp(64px, 8vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr .9fr; gap: 48px; } }
.brand-static { min-height: 0; }
.site-footer .brand-mark { --cut: var(--ivory-2); }
.footer-tag { margin-top: 18px; max-width: 22em; color: var(--muted); }
.site-footer address { line-height: 1.6; }
@media (min-width: 1024px) { .site-footer address, .footer-nav a { font-size: 1rem; } }
.footer-phone { font-family: var(--serif); font-size: 1.375rem; letter-spacing: -.01em; text-decoration: none; }
.footer-phone:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.footer-nav ul { list-style: none; padding: 0; display: grid; }
.footer-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-nav .i { width: 15px; height: 15px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .875rem; color: var(--muted);
}
.demo-note a { color: var(--fg); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* ---------- Botão flutuante ---------- */
.call-fab {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--petrol-900); color: var(--ivory);
  box-shadow: 0 0 0 1px rgb(244 239 228 / .2), 0 14px 30px -10px rgb(4 18 21 / .6);
  --focus: var(--sage);
  transition: opacity .25s ease, transform .3s var(--ease), visibility 0s linear .3s, background-color .2s;
}
.call-fab::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid rgb(157 179 154 / .45); pointer-events: none; }
.call-fab .i { width: 22px; height: 22px; stroke-width: 1.7; }
@media (max-width: 639.98px) { .call-fab { width: 52px; height: 52px; right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); } .call-fab .i { width: 20px; height: 20px; } }
.call-fab:hover { background: var(--petrol-700); }
.js .call-fab { display: flex; }
.call-fab.is-hidden, .menu-open .call-fab { opacity: 0; transform: translateY(14px) scale(.94); visibility: hidden; }
.call-fab:not(.is-hidden) { transition-delay: 0s; }
@media (min-width: 1400px) { .call-fab { right: calc((100% - var(--wrap)) / 2 - 92px); bottom: 32px; } }

/* ---------- Movimento (só com preferência por animações) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-pending { opacity: 0; transform: translateY(22px); }
  .js .dividers [data-reveal]:nth-child(2) { transition-delay: .08s; }
  .js .dividers [data-reveal]:nth-child(3) { transition-delay: .16s; }
  .js .steps-list [data-reveal]:nth-child(2) { transition-delay: .1s; }
  .js .steps-list [data-reveal]:nth-child(3) { transition-delay: .2s; }

  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }

  .art .a-grid { animation: fade 1.4s ease both; }
  .art .a-ruler { animation: fade 1s ease .9s both; }
  .art .a-back, .art .a-front { transform-box: fill-box; animation: lift 1s var(--ease) both; }
  .art .a-back { animation-delay: .05s; }
  .art .a-front { animation-delay: .2s; }
  .art .a-s3, .art .a-s2, .art .a-s1 { transform-box: fill-box; transform-origin: 50% 100%; animation: settle 1.25s var(--ease) both; }
  .art .a-s3 { --x: -30px; --y: 40px; --r: -8deg; animation-delay: .3s; }
  .art .a-s2 { --x: -14px; --y: 30px; --r: -4deg; animation-delay: .42s; }
  .art .a-s1 { --x: 12px; --y: 24px; --r: 3deg; animation-delay: .54s; }
  .art .a-draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s var(--ease) forwards; }
  .art .a-margin { --len: 400; animation-delay: 1.2s; }
  .art .a-clip { --len: 240; animation-delay: 1.7s; }
  .art .a-rules path, .art .a-ink path { transform-box: fill-box; transform-origin: 0 50%; animation: line .8s var(--ease) both; }
  .art .a-rules path:nth-child(1) { animation-delay: 1.00s; } .art .a-rules path:nth-child(2) { animation-delay: 1.04s; }
  .art .a-rules path:nth-child(3) { animation-delay: 1.08s; } .art .a-rules path:nth-child(4) { animation-delay: 1.12s; }
  .art .a-rules path:nth-child(5) { animation-delay: 1.16s; } .art .a-rules path:nth-child(6) { animation-delay: 1.20s; }
  .art .a-rules path:nth-child(7) { animation-delay: 1.24s; } .art .a-rules path:nth-child(8) { animation-delay: 1.28s; }
  .art .a-rules path:nth-child(9) { animation-delay: 1.32s; } .art .a-rules path:nth-child(10) { animation-delay: 1.36s; }
  .art .a-ink path:nth-child(1) { animation-delay: 1.45s; } .art .a-ink path:nth-child(2) { animation-delay: 1.55s; }
  .art .a-ink path:nth-child(3) { animation-delay: 1.65s; } .art .a-ink path:nth-child(4) { animation-delay: 1.75s; }
  .art .a-ink path:nth-child(5) { animation-delay: 1.85s; }
  .art .a-ticks path { animation: fade .5s ease both; }
  .art .a-ticks path:nth-child(1) { animation-delay: 1.9s; } .art .a-ticks path:nth-child(2) { animation-delay: 2.05s; }
  .art .a-ticks path:nth-child(3) { animation-delay: 2.2s; }

  @keyframes fade { from { opacity: 0; } }
  @keyframes lift { from { transform: translateY(28px); } }
  @keyframes settle { from { transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes line { from { transform: scaleX(0); } }
}

@media print {
  .site-header, .call-fab, .menu-backdrop, .hero-art { display: none !important; }
  .theme-dark { background: #fff; color: #000; --fg: #000; --muted: #333; }
}
