/* Borges Construtora — folha de estilos única */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --orange: #f27a22;
  --orange-deep: #9a4308;      /* laranja para texto sobre claro (AA) */
  --orange-soft: #fdeee2;
  --ink: #161514;
  --ink-2: #2a2826;
  --text: #2f2c29;
  --muted: #625d57;
  --line: #e3ddd5;
  --paper: #fbf9f6;
  --stone: #f1ece5;
  --white: #fff;

  /* papéis semânticos (redefinidos no tema escuro) */
  --heading: #161514;          /* títulos e texto forte */
  --surface-dark: #161514;     /* faixas escuras, fundo de cartões com foto */
  --on-orange: #161514;        /* texto sobre o laranja */
  --card: #fff;
  --header-bg: rgb(251 249 246 / .92);
  --meta-bg: rgb(251 249 246 / .95);
  --strong-bg: #161514;        /* chips ativos, etiquetas fortes */
  --strong-fg: #fff;
  --field-bg: #fff;
  --field-border: #cfc8bf;
  --check-border: #b5aea6;
  --err-bg: #fdecea;
  --show-moon: inline;         /* ícone do botão de tema */
  --show-sun: none;
  --logo-on-light: block;
  --logo-on-dark: none;
  --ok: #1f7a4a;
  --err: #b42318;

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

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgb(22 21 20 / .06), 0 8px 24px rgb(22 21 20 / .08);
  --header-h: 72px;

  /* escala tipográfica: 7 passos (13 · 15 · 17 · 20 · 26 · 38 · 54 em desktop) */
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.375rem, 1.15rem + .75vw, 1.625rem);
  --fs-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
  --fs-3xl: clamp(2.125rem, 1.45rem + 2.4vw, 3.375rem);

  /* ritmo vertical: só duas medidas de secção */
  --section-y: clamp(64px, 8vw, 104px);
  --section-y-sm: clamp(44px, 5vw, 64px);
  --head-gap: clamp(28px, 3.5vw, 44px);
}

/* tema escuro: escolha explícita, ou preferência do sistema quando não há escolha */
:root[data-theme="dark"] {
  color-scheme: dark;
  --orange-deep: #f5a25e;
  --orange-soft: #3a2415;
  --ink-2: #e6e0d9;
  --text: #d9d3cc;
  --muted: #a8a19a;
  --line: #34312d;
  --paper: #151413;
  --stone: #1d1b19;
  --heading: #f4efe9;
  --surface-dark: #0c0b0a;
  --card: #211f1d;
  --header-bg: rgb(21 20 19 / .9);
  --meta-bg: rgb(21 20 19 / .92);
  --strong-bg: #f4efe9;
  --strong-fg: #151413;
  --field-bg: #1a1917;
  --field-border: #4a4642;
  --check-border: #6b655f;
  --err: #ff8f85;
  --err-bg: #3b1714;
  --ok: #4cc38a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
  --show-moon: none;
  --show-sun: inline;
  --logo-on-light: none;
  --logo-on-dark: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
    --orange-deep: #f5a25e;
    --orange-soft: #3a2415;
    --ink-2: #e6e0d9;
    --text: #d9d3cc;
    --muted: #a8a19a;
    --line: #34312d;
    --paper: #151413;
    --stone: #1d1b19;
    --heading: #f4efe9;
    --surface-dark: #0c0b0a;
    --card: #211f1d;
    --header-bg: rgb(21 20 19 / .9);
    --meta-bg: rgb(21 20 19 / .92);
    --strong-bg: #f4efe9;
    --strong-fg: #151413;
    --field-bg: #1a1917;
    --field-border: #4a4642;
    --check-border: #6b655f;
    --err: #ff8f85;
    --err-bg: #3b1714;
    --ok: #4cc38a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
    --show-moon: none;
    --show-sun: inline;
    --logo-on-light: none;
    --logo-on-dark: block;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--fs-md)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--heading); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--fs-3xl); font-weight: 800; }
h2 { font-size: var(--fs-2xl); font-weight: 750; }
h3 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.005em; }
.h-sub { font-size: var(--fs-xl); }        /* subtítulo dentro de uma secção */
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--strong-bg); color: var(--strong-fg); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.eyebrow {
  font: 600 var(--fs-xs)/1.2 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-deep); margin-bottom: .9rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 38em; }
@media (max-width: 560px) { .lead { font-size: var(--fs-md); } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.15rem;
  font: 600 var(--fs-sm)/1 var(--font-body); text-decoration: none;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: var(--fs-md); }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: #ff8a33; }
.btn-outline { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn-outline:hover { background: var(--strong-bg); color: var(--strong-fg); }
.btn-ghost-light { border-color: rgb(255 255 255 / .5); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow { font-weight: 600; color: var(--heading); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; background: linear-gradient(var(--orange), var(--orange)) left calc(100% - 6px) / 100% 2px no-repeat; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgb(22 21 20 / .05); }
.site-header .wrap { max-width: 1360px; }   /* o cabeçalho pode ser mais largo do que o conteúdo */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.brand img { height: 44px; width: auto; }
.brand-name { font: 800 var(--fs-lg)/1 var(--font-display); letter-spacing: .02em; white-space: nowrap; }
.brand-name span { font-weight: 500; color: var(--muted); }
@media (max-width: 380px) {
  .site-header .brand { gap: 8px; }
  .site-header .brand img { height: 36px; }
  .site-header .brand-name { font-size: var(--fs-md); }
}
.site-header .logo-on-light { display: var(--logo-on-light); }
.site-header .logo-on-dark { display: var(--logo-on-dark); }
.brand-light { color: #fff; }
.brand-light .brand-name span { color: #b9b2aa; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav > ul a { display: block; white-space: nowrap; padding: 10px 10px; text-decoration: none; font-weight: 500; color: var(--ink-2); border-radius: var(--radius); }
.nav > ul a:hover { background: var(--stone); }
.nav > ul a[aria-current="page"] { color: var(--heading); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav-extra { display: flex; align-items: center; gap: 32px; padding-left: 28px; border-left: 1px solid var(--line); }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--heading); white-space: nowrap; }
.nav-phone svg { width: 18px; height: 18px; color: var(--orange-deep); }
.nav-toggle, .header-call { display: none; }

.nav-tools { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--heading); cursor: pointer;
}
.icon-btn:hover { background: var(--stone); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .i-moon { display: var(--show-moon); }
.theme-toggle .i-sun { display: var(--show-sun); }

.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px;
  border: 0; border-radius: 999px; background: none; color: var(--heading);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
}
.lang-btn:hover { background: var(--stone); }
.lang-btn svg { width: 18px; height: 18px; }
.lang-btn .chev { width: 12px; height: 12px; transition: transform .15s; }
.lang.is-open .lang-btn .chev { transform: rotate(180deg); }
.lang-list {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.lang.is-open .lang-list { display: block; }
.lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: 4px; text-decoration: none; color: var(--text); font-size: var(--fs-sm);
}
.lang-list a:hover { background: var(--stone); }
.lang-list a[aria-current="true"] { color: var(--heading); font-weight: 700; }
.lang-list a[aria-current="true"]::after { content: "✓"; color: var(--orange-deep); }
.lang-list abbr { text-decoration: none; font-weight: 700; color: var(--muted); min-width: 2ch; }
.header-actions { display: none; align-items: center; gap: 4px; }

@media (max-width: 1240px) {
  .header-actions { display: flex; }
  .header-call {
    display: inline-grid; place-items: center; width: 48px; height: 48px;
    color: var(--heading); border-radius: 50%;
  }
  .header-call svg { width: 22px; height: 22px; color: var(--orange-deep); }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; color: var(--heading);
  }
  .bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; } .bars::after { top: 7px; }
  [aria-expanded="true"] .bars { background: transparent; }
  [aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  [aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 20px;
    background: var(--paper); padding: 16px var(--gutter) 28px;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgb(22 21 20 / .12);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul a { padding: 14px 4px; font-size: var(--fs-lg); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); padding-left: 14px; }
  .nav-extra { flex-direction: column; align-items: stretch; gap: 12px; padding-left: 0; border-left: 0; }
  .nav-phone { justify-content: center; min-height: 48px; border: 2px solid var(--heading); border-radius: var(--radius); }
  .nav-extra .btn { min-height: 52px; }
  .nav-tools { justify-content: space-between; order: 3; padding-top: 4px; }
  .lang-btn { display: none; }
  .lang-list { display: flex; position: static; gap: 6px; padding: 0; border: 0; box-shadow: none; background: none; min-width: 0; }
  .lang-list a { justify-content: center; min-width: 52px; border: 1px solid var(--line); border-radius: 999px; }
  .lang-list a[aria-current="true"] { background: var(--strong-bg); color: var(--strong-fg); border-color: var(--strong-bg); }
  .lang-list a[aria-current="true"]::after, .lang-list .lang-name { display: none; }
  .theme-toggle { border: 1px solid var(--line); }
}
@media (min-width: 1241px) {
  .nav-extra .btn { white-space: nowrap; }
  .nav-extra { gap: 20px; padding-left: 20px; }
}
/* entre 1241 e 1499px o telefone fica só ícone, para caberem a língua e o tema */
@media (min-width: 1241px) and (max-width: 1499px) {
  .nav-phone .num { display: none; }
  .nav-phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; }
  .nav-phone:hover { background: var(--stone); }
}

/* ---------- Hero ---------- */
.hero { padding: var(--section-y-sm) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1::after { content: ""; display: block; width: 64px; height: 5px; background: var(--orange); margin-top: .5em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: var(--fs-sm); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 7px; height: 7px; background: var(--orange); transform: rotate(45deg); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 40% 50%; border-radius: var(--radius-lg); }
.hero-badge {
  position: absolute; left: -28px; bottom: 32px; max-width: 250px;
  background: var(--surface-dark); color: #fff; padding: 18px 20px; border-radius: var(--radius);
  border-left: 4px solid var(--orange); box-shadow: var(--shadow);
}
.hero-badge strong { display: block; font: 750 var(--fs-lg)/1.2 var(--font-display); margin-bottom: 4px; }
.hero-badge span { font-size: var(--fs-sm); color: #cfc8c0; line-height: 1.4; display: block; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .hero-badge { left: 12px; bottom: 12px; padding: 12px 14px; max-width: 220px; }
  .hero-badge strong { font-size: var(--fs-md); }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-badge span { display: none; }
}

/* ---------- Secções ---------- */
.section { padding: var(--section-y) 0; }
.section-tight { padding: var(--section-y-sm) 0; }
.section-stone { background: var(--stone); }
.section-dark { background: var(--surface-dark); color: #d9d3cc; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: var(--head-gap); }
.section-head > p:last-child { color: var(--muted); font-size: var(--fs-md); margin-bottom: 0; }
.section-head-light .eyebrow { color: var(--orange); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }

/* Serviços (home) */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg);
  text-decoration: none; color: #fff; background: var(--surface-dark); min-height: 240px;
}
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(22 21 20 / 0) 35%, rgb(22 21 20 / .85)); }
.service-card > div { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 20px; }
.service-card h3 { color: #fff; margin: 0; font-size: var(--fs-lg); display: flex; justify-content: space-between; gap: 8px; }
.service-card h3::after { content: "→"; color: var(--orange); transition: transform .2s; }
.service-card p { margin: .5em 0 0; color: #e3ddd6; font-size: var(--fs-sm); line-height: 1.5; max-width: 30em; }
.service-card:hover img { transform: scale(1.04); }
.service-card:hover h3::after { transform: translateX(4px); }
.service-card-lg { grid-column: span 2; min-height: 340px; }
.service-card-lg h3 { font-size: var(--fs-xl); }
@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, 1fr); } .service-card-lg { min-height: 280px; } }
@media (max-width: 560px) {
  .service-grid { gap: 12px; }
  .service-card { min-height: 150px; }
  .service-card-lg { min-height: 220px; }
  .service-card > div { padding: 14px; }
  .service-card:not(.service-card-lg) h3 { font-size: var(--fs-md); }
  .service-card:not(.service-card-lg) h3::after { display: none; }
}

/* Passos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 28px 28px 8px 0; border-top: 1px solid #3b3835; position: relative; }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 3px; background: var(--orange); }
.step-n { font: 700 var(--fs-xs)/1 var(--font-display); color: var(--orange); letter-spacing: .1em; display: block; margin-bottom: 14px; }
.steps p { color: #b9b2aa; font-size: var(--fs-sm); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: 28px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { padding-right: 0; } }

/* Fundador */
.founder { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.founder-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; background: var(--orange); }
.founder-copy > p { max-width: 36em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 32px; }
.facts div { border-left: 3px solid var(--orange); padding-left: 14px; }
.facts dt { font: 800 var(--fs-xl)/1.1 var(--font-display); color: var(--heading); }
.facts dd { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; }
  .founder-media { max-width: 420px; }
  .founder-media img { aspect-ratio: 1 / 1; }
}
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* Projetos (teaser) */
.project-teaser { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.project-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); text-decoration: none; min-height: 220px; background: var(--surface-dark); }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover img { transform: scale(1.03); }
.project-card-lg { grid-row: span 2; min-height: 460px; }
.project-meta { position: absolute; left: 12px; bottom: 12px; right: 12px; background: var(--meta-bg); border-radius: var(--radius); padding: 12px 14px; }
.project-meta h3 { margin: 6px 0 0; font-size: var(--fs-lg); }
.tag { display: inline-block; font: 700 var(--fs-xs)/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 3px; background: var(--orange-soft); color: var(--orange-deep); }
.tag-dark { background: var(--strong-bg); color: var(--strong-fg); }
@media (max-width: 760px) {
  .project-teaser { grid-template-columns: 1fr; grid-template-rows: none; }
  .project-card-lg { grid-row: auto; min-height: 300px; }
}

/* Testemunhos */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; font-size: var(--fs-md); }
.quote blockquote::before { content: "“"; display: block; font: 800 3.4rem/0.6 var(--font-display); color: var(--orange); margin-bottom: 14px; height: 24px; }
.quote figcaption strong { display: block; color: var(--heading); }
.quote figcaption span { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; max-width: 640px; } }

/* Zonas */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.areas-media img { border-radius: var(--radius-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; } }

/* Faixa CTA */
.cta-band { background: var(--surface-dark); color: #d9d3cc; padding: var(--section-y) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border: 48px solid var(--orange); opacity: .14; transform: rotate(45deg); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 34em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 480px) { .cta-actions { width: 100%; } .cta-actions .btn { flex: 1 1 100%; } }

/* ---------- Rodapé ---------- */
.site-footer { background: #0f0e0d; color: #a39c94; padding: var(--section-y-sm) 0 0; font-size: var(--fs-sm); line-height: 1.5; border-top: 1px solid #2a2826; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 300px) repeat(3, max-content);
  justify-content: space-between;   /* espaço igual entre colunas, seja qual for o conteúdo */
  gap: 40px 48px;
  padding-bottom: clamp(40px, 5vw, 56px);
}
.footer-brand .brand img { height: 44px; }
.footer-brand p { margin: 20px 0 0; max-width: 24em; }
.footer-col { padding-top: 14px; }            /* alinha o título com o logótipo */
.footer-title { color: #fff; font: 700 var(--fs-xs)/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 20px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-list li { line-height: 1.45; }
.footer-list a { color: #ece6df; text-decoration: none; }
.footer-list a:hover { color: var(--orange); text-decoration: underline; }
.footer-list small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: #948d85; }
.footer-contacts a[href^="mailto"] { overflow-wrap: anywhere; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials:not(:has(a)) { display: none; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #3b3835; border-radius: 50%; color: #ece6df; transition: border-color .15s, color .15s; }
.socials a:hover { border-color: var(--orange); color: var(--orange); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid #2a2826; padding: 22px 0 26px; font-size: var(--fs-xs); color: #948d85; }
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .footer-col { padding-top: 0; }
}
@media (max-width: 560px) {
  .footer-grid { gap: 36px 24px; }
  .footer-brand, .footer-contacts { grid-column: 1 / -1; }
  .footer-title { margin-bottom: 16px; }
  .footer-list { gap: 0; }
  .footer-list a { display: inline-block; padding-block: 11px; }   /* alvo de toque ≥ 44px */
  .footer-list li:not(:has(a)) { padding-block: 11px; }
}

/* Botão WhatsApp flutuante */
.wa-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #1fa855; color: #fff; box-shadow: 0 6px 20px rgb(0 0 0 / .25);
  transition: transform .15s, opacity .2s, visibility .2s;
}
.wa-fab.is-hidden { opacity: 0; visibility: hidden; transform: scale(.8); }
body[data-page="contactos"] .wa-fab { display: none; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; }

/* ---------- Páginas interiores ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--stone); padding: var(--section-y-sm) 0; }
.page-hero::after {                        /* losango da marca, como na faixa CTA */
  content: ""; position: absolute; right: -60px; top: 50%; width: 260px; height: 260px;
  border: 40px solid var(--orange); opacity: .12; transform: translateY(-50%) rotate(45deg);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18em; }
.page-hero .lead { margin-bottom: 0; }
@media (max-width: 760px) { .page-hero::after { width: 160px; height: 160px; border-width: 26px; right: -70px; } }

/* Navegação interna (página de serviços) */
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 76px); }
.subnav { position: sticky; top: var(--header-h); z-index: 45; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--ink-2); }
.subnav a:hover { border-color: var(--heading); }
.subnav a[aria-current="true"] { background: var(--strong-bg); border-color: var(--strong-bg); color: var(--strong-fg); }
@media (max-width: 760px) { .subnav .wrap { padding-inline: 0; } .subnav ul { padding-inline: var(--gutter); } }

/* Serviços (página) */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: var(--section-y-sm) 0; border-bottom: 1px solid var(--line); }
.svc:last-of-type { border-bottom: 0; }
.svc:nth-of-type(even) .svc-media { order: 2; }
.svc-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc h2 { font-size: var(--fs-xl); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%239a4308' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .svc:nth-of-type(even) .svc-media { order: 0; } }

.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phase { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.phase h3 { display: flex; align-items: center; gap: 10px; }
.phase h3 span { font: 700 var(--fs-xs)/1 var(--font-display); color: var(--orange-deep); background: var(--orange-soft); padding: 6px 8px; border-radius: 4px; }
@media (max-width: 860px) { .phases { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 650 var(--fs-md)/1.4 var(--font-display); color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 var(--fs-xl)/1 var(--font-body); color: var(--orange-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; color: var(--muted); max-width: 44em; }

/* Projetos (página) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { font: 500 var(--fs-sm)/1 var(--font-body); padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--strong-bg); color: var(--strong-fg); border-color: var(--strong-bg); }
.project { padding: var(--section-y-sm) 0; border-top: 1px solid var(--line); }
.project:first-child { border-top: 0; padding-top: 0; }
.project[hidden] { display: none; }
.project-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 56px); margin-bottom: 28px; }
.project-head h2 { font-size: var(--fs-xl); margin-top: 10px; }
.project-specs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--fs-sm); }
.project-specs li strong { color: var(--heading); }
.project-desc p { color: var(--text); }
.notice { font-size: var(--fs-sm); color: var(--muted); background: var(--stone); border-radius: var(--radius); padding: 10px 14px; margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; }
.gallery button { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--stone); }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery-more { display: none; }
.gallery button[data-more]::after {
  content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center;
  background: rgb(22 21 20 / .62); color: #fff; font: 700 var(--fs-lg)/1 var(--font-display);
}
.gallery button:nth-child(4):last-child { grid-column: span 2; }
@media (max-width: 860px) { .gallery button:nth-child(4):last-child { grid-column: auto; } .gallery button:first-child { grid-row: span 1; } .gallery button:last-child:nth-child(even) { grid-column: span 2; } }
@media (max-width: 860px) {
  .project-head { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}

/* Lightbox */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; background: rgb(10 10 9 / .94); color: #fff; }
.lightbox::backdrop { background: rgb(10 10 9 / .94); }
.lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 64px 16px; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { font-size: var(--fs-sm); color: #cfc8c0; padding-top: 10px; }
.lb-btn { position: absolute; background: rgb(255 255 255 / .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: var(--fs-xl); line-height: 1; display: grid; place-items: center; }
.lb-btn:hover { background: rgb(255 255 255 / .2); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox figure { padding: 64px 8px 16px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* Sobre */
.story { display: grid; grid-template-columns: 1fr minmax(260px, 400px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.story-media { position: sticky; top: calc(var(--header-h) + 24px); }
.story-media img { border-radius: var(--radius-lg); background: var(--orange); }
.story-media figcaption { font-size: var(--fs-sm); color: var(--muted); margin-top: 10px; }
.prose { max-width: 40em; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.timeline { list-style: none; margin: 24px 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; background: var(--orange); transform: rotate(45deg); }
.timeline strong { display: block; color: var(--heading); font-family: var(--font-display); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.value h3 { margin-bottom: .35em; }
.value p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-media { position: static; order: -1; display: flex; align-items: center; gap: 16px; margin: 0; }
  .story-media img { width: 104px; height: 104px; object-fit: cover; object-position: 50% 12%; flex: none; }
  .story-media figcaption { margin: 0; }
  .values { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- Contactos / formulário ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); }
.contact-aside { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item svg { flex: none; width: 22px; height: 22px; color: var(--orange-deep); margin-top: 11px; }
.contact-item a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--heading); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }
.contact-item small { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: -6px; }
.card-title { font-size: var(--fs-lg); margin-bottom: 8px; }
.quick-actions { display: none; }
@media (max-width: 900px) {
  .quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick-actions .btn { min-height: 52px; }
  .quick-actions svg { width: 20px; height: 20px; }
}

.progress { display: flex; gap: 6px; margin-bottom: 8px; }
.progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background .2s; }
.progress span.is-done { background: var(--orange); }
.step-label { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 20px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 700 var(--fs-lg)/1.25 var(--font-display); color: var(--heading); margin-bottom: 18px; padding: 0; }
.form-step[hidden] { display: none; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); font-weight: 500; background: var(--paper); transition: border-color .15s, background .15s; }
.choice span::before { content: ""; flex: none; width: 18px; height: 18px; border: 2px solid var(--check-border); border-radius: 4px; background: var(--field-bg); }
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:checked + span { border-color: var(--orange); background: var(--orange-soft); }
.choice input:checked + span::before { border-color: var(--orange); background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23161514' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.choice input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 520px) { .choices { grid-template-columns: 1fr; } }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field .label { font-weight: 600; font-size: var(--fs-sm); color: var(--heading); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--fs-md); color: var(--heading); width: 100%;
  min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--field-border); border-radius: var(--radius); background: var(--field-bg);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgb(242 122 34 / .25); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: var(--fs-xs); margin: 0; }
.field-error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); margin-bottom: 18px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--orange-deep); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.form-nav .btn-primary { margin-left: auto; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { background: var(--err-bg); color: var(--err); }
.form-success { text-align: center; padding: 24px 0; }
.form-success svg { width: 56px; height: 56px; color: var(--ok); margin: 0 auto 12px; }

/* Texto legal */
.legal { max-width: 46em; }
.legal h2 { font-size: var(--fs-xl); margin-top: 2em; }
.legal ul { padding-left: 1.2em; }

/* 404 */
.notfound { min-height: 50vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font: 800 clamp(5rem, 15vw, 9rem)/1 var(--font-display); color: var(--orange); }
