/* ==========================================================================
   Marcenaria J Gonçalves — Home
   Sistema de design conforme o Manual de Construção (partes 1 a 4).
   Cor da marca extraída do vetor original: #7C4D36.
   ========================================================================== */

/* ---------- Fontes (self-hosted, 4 arquivos, subset por unicode-range) ---- */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Fallbacks com métrica casada --------------------------------
   Sem isto a troca da fonte (FOUT) reflui a primeira dobra e o CLS vai a 0,27.
   size-adjust medido no próprio navegador: Georgia é 2,5% mais estreita que
   Fraunces; Arial é 5,4% mais estreita que Inter. Com o ajuste, o texto ocupa
   a mesma largura antes e depois do swap, e a página não pula.
   ---------------------------------------------------------------------- */

@font-face {
  font-family: 'Fraunces fallback';
  src: local('Georgia'), local('Times New Roman'), local('Liberation Serif');
  size-adjust: 102.5%;
  ascent-override: 92%;
  descent-override: 23%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 105.4%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ---------- Tokens ------------------------------------------------------- */

.jg {
  --cor-fundo:       #FBF8F3;
  --cor-superficie:  #F5F3EF;
  --cor-texto:       #3D2B20;
  --cor-texto-2:     #6E5F54;
  --cor-marca:       #7C4D36;
  --cor-marca-hover: #5C3A28;
  --cor-borda:       #E3DED6;
  --cor-escuro:      #2E211A;
  --cor-ornamento:   #B58256;
  --cor-erro:        #8C3A2B;
  --cor-branco:      #FFFFFF;

  --fonte-titulo: 'Fraunces', 'Fraunces fallback', Georgia, 'Times New Roman', serif;
  --fonte-corpo:  'Inter', 'Inter fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max: 1200px;
  --raio: 6px;
  --raio-card: 10px;
  --sec: 96px;
}

/* ---------- Reset local -------------------------------------------------- */

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

.jg {
  margin: 0;
  font-family: var(--fonte-corpo);
  font-size: 17px;
  line-height: 1.7;
  color: var(--cor-texto);
  background: var(--cor-fundo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.jg img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--raio-card);
}

.jg h1, .jg h2, .jg h3 {
  font-family: var(--fonte-titulo);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 40;
  letter-spacing: -0.02em;
  color: var(--cor-texto);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

.jg h1 { font-size: 44px; font-weight: 400; line-height: 1.15; }
.jg h2 { font-size: 32px; font-weight: 400; line-height: 1.25; }
.jg h3 { font-size: 22px; font-weight: 500; line-height: 1.35; }

.jg p { max-width: 680px; margin: 0 0 1.2em; }
.jg p:last-child { margin-bottom: 0; }

.jg a { color: var(--cor-marca); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.jg a:hover { color: var(--cor-marca-hover); }

.jg :focus-visible { outline: 2px solid var(--cor-marca); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout ------------------------------------------------------- */

.jg-container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.jg-sec { padding: var(--sec) 0; }
/* O header é sticky: sem isto a âncora leva o conteúdo para debaixo dele. */
.jg [id] { scroll-margin-top: 96px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.jg-sec--filete { border-top: 1px solid var(--cor-borda); border-bottom: 1px solid var(--cor-borda); }
.jg-sec--escuro { background: var(--cor-escuro); color: var(--cor-fundo); }
.jg-sec--escuro h2, .jg-sec--escuro h3 { color: var(--cor-fundo); }
.jg-sec--superficie { background: var(--cor-superficie); }

.jg-intro { max-width: 680px; margin-bottom: 48px; }
.jg-etiqueta {
  font-size: 13px; font-weight: 500; line-height: 1.4;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--cor-texto-2);
}

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

/* position:sticky mantém o header no fluxo, então a altura já está reservada
   desde o primeiro paint — nada empurra o conteúdo ao rolar. E a altura não
   muda no scroll de propósito: encolher header custa reflow a cada rolagem. */
.jg-topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cor-borda);
}
.jg-topo__row {
  display: flex; align-items: center; gap: 28px;
  padding: 12px 20px; max-width: var(--max); margin: 0 auto;
}
.jg-logo { display: block; line-height: 0; color: var(--cor-marca); flex: 0 0 auto; }
.jg-logo svg { width: 176px; height: auto; display: block; }
.jg-topo__acoes { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; margin-left: auto; }

/* ---------- Navegação ---------------------------------------------------- */

.jg-nav__lista {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.jg-nav__item { position: relative; display: flex; align-items: center; }

.jg .jg-nav__link {
  display: block; padding: 10px 12px;
  font-size: 15px; font-weight: 400; line-height: 1.4;
  color: var(--cor-texto); text-decoration: none; white-space: nowrap;
  border-radius: var(--raio);
  transition: color .15s ease, background .15s ease;
}
.jg .jg-nav__link:hover { color: var(--cor-marca); background: var(--cor-superficie); }

.jg-nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; margin-left: -8px;
  padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--cor-texto-2); border-radius: 4px;
}
.jg-nav__toggle:hover { color: var(--cor-marca); }
.jg-chevron { width: 12px; height: 12px; transition: transform .18s ease; }
.jg-nav__toggle[aria-expanded="true"] .jg-chevron { transform: rotate(180deg); }

/* ---------- Dropdown ----------------------------------------------------- */

.jg-sub {
  position: absolute; top: 100%; left: 0; z-index: 5;
  min-width: 260px; max-width: calc(100vw - 40px); padding: 14px;
  background: var(--cor-fundo);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-card);
  box-shadow: 0 12px 32px rgba(46, 33, 26, .12);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
/* Abre por CSS puro no mouse e no teclado; o JS só cobre toque e Escape. */
.jg-nav__item--sub:hover > .jg-sub,
.jg-nav__item--sub:focus-within > .jg-sub,
.jg-nav__toggle[aria-expanded="true"] + .jg-sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.jg-sub__lista { list-style: none; margin: 0; padding: 0; }
/* max-content, não minmax(190px, 1fr): o painel é position:absolute, então tem
   largura shrink-to-fit. Com 1fr no máximo, o track não contribui com o
   max-content para essa conta — as colunas travavam em 190px e rótulos longos
   ("Área gourmet e churrasqueira") vazavam para fora da caixa. */
.jg-sub__lista--2col {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0 28px;
}
.jg .jg-sub__lista a {
  display: block; padding: 9px 10px;
  font-size: 15px; line-height: 1.4; color: var(--cor-texto);
  text-decoration: none; border-radius: var(--raio); white-space: nowrap;
}
.jg .jg-sub__lista a:hover { color: var(--cor-marca); background: var(--cor-superficie); }

.jg-nav__tel { display: none; }

/* ---------- Hambúrguer --------------------------------------------------- */

.jg-hamburguer {
  display: none;
  width: 42px; height: 42px; padding: 0;
  background: none; border: 1px solid var(--cor-borda);
  border-radius: var(--raio); cursor: pointer; color: var(--cor-texto);
}
.jg-hamburguer__barras,
.jg-hamburguer__barras::before,
.jg-hamburguer__barras::after {
  display: block; width: 18px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.jg-hamburguer__barras { position: relative; margin: 0 auto; }
.jg-hamburguer__barras::before,
.jg-hamburguer__barras::after { content: ''; position: absolute; left: 0; }
.jg-hamburguer__barras::before { top: -6px; }
.jg-hamburguer__barras::after  { top: 6px; }
.jg-hamburguer[aria-expanded="true"] .jg-hamburguer__barras { background: transparent; }
.jg-hamburguer[aria-expanded="true"] .jg-hamburguer__barras::before { transform: translateY(6px) rotate(45deg); }
.jg-hamburguer[aria-expanded="true"] .jg-hamburguer__barras::after  { transform: translateY(-6px) rotate(-45deg); }
.jg .jg-tel {
  font-size: 15px; font-weight: 500; color: var(--cor-texto);
  text-decoration: none; white-space: nowrap;
}
.jg .jg-tel:hover { color: var(--cor-marca); }

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

/* Prefixados com .jg de propósito: sem isso, `.jg a` (0,1,1) vence
   `.jg-btn` (0,1,0) e o botão herda a cor de link — marrom sobre marrom. */

.jg .jg-btn, .jg .jg-btn-2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--fonte-corpo); font-size: 15px; font-weight: 500; line-height: 1;
  border-radius: var(--raio); cursor: pointer; text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.jg .jg-btn {
  background: var(--cor-marca); color: var(--cor-fundo);
  padding: 15px 28px; border: 1px solid var(--cor-marca);
}
.jg .jg-btn:hover,
.jg .jg-btn:focus-visible { background: var(--cor-marca-hover); border-color: var(--cor-marca-hover); color: var(--cor-fundo); }
.jg .jg-btn-2 {
  background: transparent; color: var(--cor-marca);
  padding: 15px 28px; border: 1px solid var(--cor-marca);
}
.jg .jg-btn-2:hover,
.jg .jg-btn-2:focus-visible { background: var(--cor-superficie); color: var(--cor-marca-hover); }
.jg .jg-btn svg, .jg .jg-btn-2 svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- Bloco 1 · Hero ---------------------------------------------- */

.jg-hero { padding: 72px 0 var(--sec); }
.jg-hero__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.jg-hero__sub {
  font-size: 20px; line-height: 1.6; color: var(--cor-texto-2);
  max-width: 34em; margin: 0 0 32px;
}
.jg-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.jg-selos {
  font-size: 14px; line-height: 1.6; color: var(--cor-texto-2);
  margin: 0; max-width: none;
}
.jg-selos span[aria-hidden] { color: var(--cor-ornamento); margin: 0 8px; }
.jg-hero__foto { margin: 0; }
.jg-hero__foto img { width: 100%; border-radius: var(--raio-card); }
.jg-hero__foto figcaption { font-size: 14px; color: var(--cor-texto-2); margin-top: 10px; }

/* ---------- Bloco 2 · Números ------------------------------------------- */

.jg-numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.jg-numero__valor {
  font-family: var(--fonte-titulo);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 40;
  font-size: 32px; font-weight: 400; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--cor-texto); display: block;
}
.jg-numero__label { font-size: 14px; line-height: 1.5; color: var(--cor-texto-2); margin: 6px 0 0; }

/* ---------- Bloco 3 · Ambientes ----------------------------------------- */

.jg-grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.jg-card {
  background: var(--cor-superficie);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}
.jg-card:hover { border-color: var(--cor-ornamento); transform: translateY(-2px); }
.jg-card img { border-radius: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.jg-card__corpo { padding: 20px; }
.jg-card__corpo h3 { margin: 0 0 6px; }
.jg-card__corpo h3 a { color: var(--cor-texto); text-decoration: none; }
.jg-card__corpo h3 a::after { content: ''; position: absolute; inset: 0; }
.jg-card { position: relative; }
.jg-card:hover h3 a { color: var(--cor-marca); }
.jg-card__linha { font-size: 15px; line-height: 1.6; color: var(--cor-texto-2); margin: 0; }

/* ---------- Bloco 4 · Por quê (seção escura) ---------------------------- */

.jg-porque__abertura { max-width: 680px; margin-bottom: 48px; }
.jg-porque__abertura p { color: var(--cor-fundo); }
.jg-pilares { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.jg-pilar h3 { font-size: 20px; margin-bottom: 10px; }
.jg-pilar p { font-size: 16px; line-height: 1.65; color: var(--cor-fundo); opacity: .88; }
.jg-materiais {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--cor-ornamento);
}
.jg-materiais p { color: var(--cor-ornamento); max-width: 780px; }

/* ---------- Bloco 5 · Como trabalhamos ---------------------------------- */

.jg-etapas { list-style: none; margin: 0; padding: 0; counter-reset: etapa; }
.jg-etapa {
  display: grid; grid-template-columns: 64px 1fr auto;
  gap: 24px; align-items: start;
  padding: 28px 0; border-bottom: 1px solid var(--cor-borda);
}
.jg-etapa:first-child { border-top: 1px solid var(--cor-borda); }
.jg-etapa__n {
  font-family: var(--fonte-titulo);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 40;
  font-size: 32px; font-weight: 400; line-height: 1;
  color: var(--cor-ornamento);
}
.jg-etapa__txt h3 { margin: 0 0 4px; }
.jg-etapa__txt p { font-size: 16px; margin: 0; color: var(--cor-texto-2); }
.jg-etapa__prazo {
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  background: var(--cor-superficie); color: var(--cor-texto-2);
  border: 1px solid var(--cor-borda); border-radius: var(--raio);
  padding: 7px 12px; white-space: nowrap;
}
.jg-pagamento { margin-top: 32px; font-size: 16px; color: var(--cor-texto-2); }

/* ---------- Bloco 6 · Projetos ------------------------------------------ */

.jg-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.jg-filtro {
  font-family: var(--fonte-corpo); font-size: 14px; font-weight: 500;
  background: var(--cor-superficie); color: var(--cor-texto-2);
  border: 1px solid var(--cor-borda); border-radius: var(--raio);
  padding: 9px 16px; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.jg-filtro:hover { border-color: var(--cor-ornamento); }
.jg-filtro[aria-pressed="true"] {
  background: var(--cor-marca); color: var(--cor-fundo); border-color: var(--cor-marca);
}
.jg-projetos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.jg-projeto figcaption { padding: 14px 2px 0; }
.jg-projeto h3 { font-size: 20px; margin: 0 0 4px; }
.jg-projeto__meta { font-size: 14px; color: var(--cor-texto-2); margin: 0; }
.jg-projeto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.jg-cta-centro { margin-top: 48px; text-align: center; }

/* ---------- Bloco 7 · Depoimentos --------------------------------------- */

.jg-depoimentos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.jg-depoimento {
  background: var(--cor-superficie); border: 1px solid var(--cor-borda);
  border-radius: var(--raio-card); padding: 24px; margin: 0;
}
.jg-depoimento blockquote { margin: 0 0 16px; font-size: 16px; line-height: 1.65; }
.jg-depoimento blockquote p { margin: 0; }
.jg-depoimento figcaption { font-size: 14px; color: var(--cor-texto-2); }

/* ---------- Bloco 8 · Arquitetos ---------------------------------------- */

.jg-arquitetos__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.jg-lista { list-style: none; margin: 0 0 32px; padding: 0; }
.jg-lista li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  font-size: 16px; line-height: 1.6;
}
.jg-lista li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 10px; height: 1px; background: var(--cor-ornamento);
}

/* ---------- Bloco 9 · Onde atendemos ------------------------------------ */

.jg-tabela { width: 100%; border-collapse: collapse; font-size: 16px; }
.jg-tabela caption { text-align: left; font-size: 15px; color: var(--cor-texto-2); padding-bottom: 12px; }
.jg-tabela th, .jg-tabela td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--cor-borda); vertical-align: top; }
.jg-tabela thead th { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--cor-texto-2); }
.jg-tabela tbody tr:nth-child(odd) { background: var(--cor-superficie); }
.jg-tabela__regiao { font-weight: 500; white-space: nowrap; }
.jg-cidades { margin-top: 32px; }

/* ---------- Bloco 10 · FAQ ---------------------------------------------- */

.jg-faq { max-width: 820px; }
.jg-faq details {
  border-bottom: 1px solid var(--cor-borda);
  padding: 4px 0;
}
.jg-faq details:first-of-type { border-top: 1px solid var(--cor-borda); }
.jg-faq summary {
  font-family: var(--fonte-titulo);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 40;
  font-size: 22px; font-weight: 500; line-height: 1.35;
  letter-spacing: -0.02em; color: var(--cor-texto);
  padding: 20px 44px 20px 0; cursor: pointer; position: relative;
  list-style: none;
}
.jg-faq summary::-webkit-details-marker { display: none; }
.jg-faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%;
  width: 11px; height: 11px; margin-top: -8px;
  border-right: 1.5px solid var(--cor-marca);
  border-bottom: 1.5px solid var(--cor-marca);
  transform: rotate(45deg); transition: transform .2s ease;
}
.jg-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.jg-faq__resposta { padding: 0 0 22px; }
.jg-faq__resposta p { font-size: 16px; max-width: 680px; }

/* ---------- Bloco 11 · Contato ------------------------------------------ */

.jg-contato__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.jg-nap { font-size: 16px; line-height: 1.8; font-style: normal; }
.jg-nap strong { font-weight: 500; }
.jg-nap a { font-weight: 500; }
.jg-nap__bloco { margin-bottom: 22px; }
.jg-form { display: grid; gap: 16px; }
.jg-campo-wrap { display: grid; gap: 6px; }
.jg-campo-wrap label { font-size: 14px; font-weight: 500; color: var(--cor-texto); }
.jg-campo-wrap label span { color: var(--cor-texto-2); font-weight: 400; }
.jg-campo {
  width: 100%; font-family: var(--fonte-corpo); font-size: 16px; line-height: 1.5;
  padding: 12px 14px; background: var(--cor-branco); color: var(--cor-texto);
  border: 1px solid var(--cor-borda); border-radius: var(--raio);
  transition: border-color .15s ease;
}
.jg-campo:focus { border-color: var(--cor-marca); }
.jg-campo.erro { border-color: var(--cor-erro); }
.jg-msg-erro { color: var(--cor-erro); font-size: 14px; margin-top: 6px; }
textarea.jg-campo { min-height: 110px; resize: vertical; }
.jg-mapa { margin-top: 48px; }
.jg-mapa iframe { width: 100%; height: 380px; border: 0; border-radius: var(--raio-card); display: block; }

/* ---------- Bloco 12 · Rodapé ------------------------------------------- */

.jg-rodape { background: var(--cor-escuro); color: var(--cor-fundo); padding: 72px 0 32px; }
.jg-rodape a { color: var(--cor-ornamento); text-decoration: none; }
.jg-rodape a:hover { color: var(--cor-fundo); text-decoration: underline; }
.jg-rodape__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.jg-rodape__logo { color: var(--cor-fundo); display: block; margin-bottom: 24px; }
.jg-rodape__logo svg { width: 210px; height: auto; }
.jg-rodape h3 {
  font-family: var(--fonte-corpo); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--cor-ornamento); margin: 0 0 16px; letter-spacing: .08em;
}
.jg-rodape ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 2; }
.jg-rodape__nap { font-size: 15px; line-height: 1.8; font-style: normal; }
/* Sem opacity: a 14px o texto legal era o mais apagado da página e ficava
   difícil de ler. Hierarquia agora vem do tamanho, não de esmaecer a cor. */
.jg-rodape__base {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(181, 130, 86, .3);
  font-size: 14px; line-height: 1.7;
  color: var(--cor-fundo);
}
.jg-rodape__base p { max-width: none; }

/* ---------- WhatsApp flutuante ------------------------------------------ */

.jg .jg-zap {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cor-marca); color: var(--cor-fundo);
  box-shadow: 0 6px 20px rgba(46, 33, 26, .28);
  transition: background .18s ease, transform .18s ease;
}
.jg .jg-zap:hover { background: var(--cor-marca-hover); color: var(--cor-fundo); transform: translateY(-2px); }
.jg .jg-zap svg { width: 28px; height: 28px; }

/* ---------- Logo inline: recolorida por CSS, não por arquivo ------------ */

.jg-logo svg .jg-simbolo { fill: var(--cor-marca); }
.jg-logo svg .jg-texto   { fill: #26211D; }

.jg-rodape__logo svg .jg-simbolo { fill: var(--cor-ornamento); }
.jg-rodape__logo svg .jg-texto   { fill: var(--cor-fundo); }

/* ---------- Acessibilidade ---------------------------------------------- */

.jg .screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.jg .screen-reader-text:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  width: auto; height: auto; margin: 0; padding: 12px 20px;
  clip-path: none; white-space: normal;
  background: var(--cor-marca); color: var(--cor-fundo);
  border-radius: var(--raio); font-size: 15px; font-weight: 500;
}

/* ---------- Formulário: honeypot e avisos ------------------------------- */

/* Fora da tela, mas não display:none — robô ignora campo oculto por display. */
.jg-honeypot {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.jg-aviso {
  margin: 0 0 20px; padding: 14px 18px;
  border-radius: var(--raio); font-size: 16px; line-height: 1.55;
  border: 1px solid; max-width: none;
}
.jg-aviso--sucesso { background: #EDF5EC; border-color: #7FA97A; color: #2F5A2A; }
.jg-aviso--erro    { background: #FBEDEA; border-color: #C08375; color: var(--cor-erro); }

/* ---------- Marcador de pendência (some ao preencher) ------------------- */

.jg-pendente {
  display: inline-block;
  background: #FFF3CD; color: #7A5B00;
  border: 1px dashed #C9A227; border-radius: 4px;
  padding: 1px 7px; font-size: .88em; font-weight: 500;
  font-family: var(--fonte-corpo); letter-spacing: 0;
}
.jg-sec--escuro .jg-pendente { background: rgba(255,243,205,.14); color: #F0D98C; border-color: #C9A227; }

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

/* Faixa apertada: 5 itens de menu + telefone + botão não cabem lado a lado.
   O telefone sai primeiro; ele reaparece no bloco de contato e no rodapé. */
@media (max-width: 1080px) and (min-width: 861px) {
  .jg .jg-tel { display: none; }
  .jg-topo__row { gap: 16px; }
  .jg .jg-nav__link { padding: 10px 9px; font-size: 14.5px; }
  .jg-logo svg { width: 156px; }
}

@media (max-width: 1024px) {
  .jg-grade { grid-template-columns: repeat(2, 1fr); }
  .jg-pilares { grid-template-columns: repeat(2, 1fr); }
  .jg-projetos { grid-template-columns: repeat(2, 1fr); }
  .jg-depoimentos { grid-template-columns: 1fr; }
  .jg-rodape__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .jg { --sec: 64px; font-size: 16px; }
  .jg h1 { font-size: 32px; }
  .jg h2 { font-size: 26px; }
  .jg h3 { font-size: 20px; }
  .jg-hero { padding: 40px 0 var(--sec); }
  .jg-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .jg-hero__sub { font-size: 18px; }
  .jg-hero__ctas .jg-btn, .jg-hero__ctas .jg-btn-2 { flex: 1 1 100%; }
  .jg-numeros { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .jg-arquitetos__grid, .jg-contato__grid { grid-template-columns: 1fr; gap: 40px; }
  .jg-etapa { grid-template-columns: 44px 1fr; gap: 16px; }
  .jg-etapa__prazo { grid-column: 2; justify-self: start; }
  .jg-etapa__n { font-size: 26px; }
  .jg-faq summary { font-size: 19px; }
  .jg-topo__row { padding: 10px 16px; gap: 12px; }
  .jg-logo svg { width: 140px; }
  .jg-hamburguer { display: block; }

  /* O telefone sai da barra (não cabe) e reaparece dentro do menu. */
  .jg .jg-tel { display: none; }
  .jg .jg-nav__tel {
    display: block; margin-top: 20px; text-align: center;
    font-size: 17px; font-weight: 500; color: var(--cor-marca); text-decoration: none;
  }

  /* O botão de orçamento fica FORA do hambúrguer: é a conversão principal e
     esconder atrás de dois toques é o erro clássico de header de serviço local. */
  .jg .jg-topo__acoes .jg-btn--topo { padding: 11px 16px; font-size: 14px; }

  /* Painel do menu */
  .jg-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cor-fundo);
    border-bottom: 1px solid var(--cor-borda);
    box-shadow: 0 14px 30px rgba(46, 33, 26, .12);
    padding: 8px 20px 28px;
    max-height: calc(100vh - 68px); overflow-y: auto;
    display: none;
  }
  .jg-menu-aberto .jg-nav { display: block; }

  .jg-nav__lista { display: block; }
  .jg-nav__item { display: block; border-bottom: 1px solid var(--cor-borda); }
  .jg-nav__item:last-of-type { border-bottom: 0; }
  .jg .jg-nav__link { padding: 16px 4px; font-size: 17px; }
  .jg-nav__item--sub { position: relative; padding-right: 48px; }
  .jg-nav__toggle {
    position: absolute; right: 0; top: 8px;
    width: 44px; height: 44px; margin: 0;
  }

  /* Acordeão no lugar do dropdown flutuante */
  .jg-sub {
    position: static; min-width: 0; padding: 0 0 12px;
    border: 0; box-shadow: none; background: none; border-radius: 0;
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .jg-nav__item--sub:hover > .jg-sub,
  .jg-nav__item--sub:focus-within > .jg-sub { display: none; }
  .jg-nav__toggle[aria-expanded="true"] + .jg-sub { display: block; }
  .jg-sub__lista--2col { grid-template-columns: 1fr; gap: 0; }
  .jg .jg-sub__lista a { padding: 11px 4px 11px 16px; font-size: 16px; color: var(--cor-texto-2); white-space: normal; }
  .jg-rodape__grid { grid-template-columns: 1fr; gap: 32px; }
  .jg-tabela thead { display: none; }
  .jg-tabela tbody tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--cor-borda); background: none; }
  .jg-tabela td { display: block; border: 0; padding: 2px 0; }
  .jg-tabela__regiao { font-size: 17px; }
  /* O botão flutuante cobria a última linha do texto legal. */
  .jg-rodape { padding-bottom: 96px; }
}

@media (max-width: 560px) {
  .jg-grade, .jg-projetos { grid-template-columns: 1fr; }
  .jg-pilares { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .jg *, .jg *::before, .jg *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media print {
  .jg-zap, .jg-topo { display: none; }
}

/* ==========================================================================
   Páginas de serviço (ambientes) — blocos que a home não tem
   ========================================================================== */

/* Lista "o que fazemos" / "o que faz o preço variar": rótulo forte + descrição */
.jg-listadef { margin: 0; padding: 0; max-width: 820px; }
.jg-listadef__item {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  padding: 16px 0; border-bottom: 1px solid var(--cor-borda);
}
.jg-listadef__item:first-child { border-top: 1px solid var(--cor-borda); }
.jg-listadef dt { font-size: 17px; font-weight: 500; color: var(--cor-texto); }
.jg-listadef dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--cor-texto-2); }
.jg-sec--superficie .jg-listadef__item { border-color: #E0D9CE; }

/* Parágrafo de fecho, com um pouco mais de peso visual */
.jg-nota-forte {
  margin-top: 28px; max-width: 780px;
  font-size: 17px; line-height: 1.7; color: var(--cor-texto);
}
.jg-sec--superficie .jg-nota-forte { color: var(--cor-texto); }

/* Passos resumidos do "como trabalhamos" */
.jg-passos { list-style: none; margin: 0 0 24px; padding: 0; max-width: 760px; counter-reset: p; }
.jg-passos li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--cor-borda);
  font-size: 17px; line-height: 1.6;
}
.jg-passos li:first-child { border-top: 1px solid var(--cor-borda); }
.jg-passos__n {
  font-family: var(--fonte-titulo);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 40;
  font-size: 26px; font-weight: 400; line-height: 1; color: var(--cor-ornamento);
}

.jg .jg-link-forte { font-weight: 500; }

/* Ambientes relacionados, no fim do bloco 8 */
.jg-relacionados {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--cor-borda);
  font-size: 16px; color: var(--cor-texto-2); max-width: none;
}
.jg-relacionados span[aria-hidden] { color: var(--cor-ornamento); margin: 0 4px; }

/* CTA escuro da página de serviço */
.jg-sec--escuro .jg-intro p { color: var(--cor-fundo); opacity: .9; }
.jg-cta-tel { margin-top: 20px; font-size: 15px; color: var(--cor-ornamento); }
.jg-cta-tel a { color: var(--cor-fundo); font-weight: 500; }
.jg-cta-tel span[aria-hidden] { margin: 0 6px; }

/* ==========================================================================
   Página "Como trabalhamos" — as 7 etapas do processo
   ========================================================================== */

.jg-processo { list-style: none; margin: 0; padding: 0; max-width: 840px; }
.jg-processo__etapa {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px;
  padding: 32px 0; border-bottom: 1px solid var(--cor-borda);
}
.jg-processo__etapa:first-child { border-top: 1px solid var(--cor-borda); }
.jg-processo__n {
  font-family: var(--fonte-titulo);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 40;
  font-size: 44px; font-weight: 400; line-height: 1; color: var(--cor-ornamento);
}
.jg-processo__etapa h3 { margin: 0 0 8px; }
.jg-processo__etapa p { font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.jg-processo__prazo {
  display: inline-block; font-size: 14px; font-weight: 500; line-height: 1.4;
  background: var(--cor-superficie); border: 1px solid var(--cor-borda);
  border-radius: var(--raio); padding: 8px 14px; color: var(--cor-texto-2);
}
.jg-processo__prazo strong { color: var(--cor-texto); font-weight: 500; }
.jg-sec--superficie .jg-processo__prazo { background: var(--cor-fundo); }

@media (max-width: 860px) {
  .jg-processo__etapa { grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 0; }
  .jg-processo__n { font-size: 32px; }
}

/* ==========================================================================
   Página /projetos/ — galeria por ambiente + lightbox
   ========================================================================== */

.jg-secao { padding-top: 8px; margin-bottom: 56px; scroll-margin-top: 96px; }
.jg-secao__topo {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px;
}
.jg-secao__topo h2 { margin: 0; }
.jg-secao__link { font-size: 15px; font-weight: 500; white-space: nowrap; }

.jg-galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.jg-galeria__link {
  display: block; border-radius: var(--raio-card); overflow: hidden;
  background: var(--cor-superficie); cursor: zoom-in; line-height: 0;
  border: 1px solid var(--cor-borda);
  transition: border-color .18s ease, transform .18s ease;
}
.jg-galeria__link:hover { border-color: var(--cor-ornamento); transform: translateY(-2px); }
.jg-galeria__link img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; }

/* Filtro: some as seções que não batem */
.jg-secao[hidden] { display: none; }

@media (max-width: 1024px) { .jg-galeria { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .jg-galeria { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------------------------------------------------- */

.jg-lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(30, 21, 16, .92); padding: 24px;
}
.jg-lightbox.aberto { display: flex; }
.jg-lightbox img {
  max-width: min(1200px, 96vw); max-height: 90vh;
  width: auto; height: auto; border-radius: var(--raio-card);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.jg-lightbox__fechar {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: rgba(251,248,243,.12); border: 1px solid rgba(251,248,243,.3);
  border-radius: 50%; color: var(--cor-fundo); font-size: 22px; line-height: 1;
}
.jg-lightbox__fechar:hover { background: rgba(251,248,243,.22); }
.jg-lightbox__legenda {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center;
  color: var(--cor-fundo); font-size: 14px; padding: 0 24px; opacity: .85;
}
