/* Site da Amarê Arquitetura e Interiores
   Para trocar as letras, mude só --titulo e --texto (e o link das fontes em site-fonte/modelo.html). */
:root {
  --verde: #1C392A; --areia: #AFA792; --salvia-texto: #4A5C51;
  --linho: #F5F1E8; --linho-2: #ECE6D9; --grafite: #23271F; --linha: #DDD6C6;
  --titulo: 'Century Gothic', CenturyGothic, 'Questrial', sans-serif; --texto: 'Century Gothic', CenturyGothic, 'Questrial', sans-serif; --peso-titulo: 400;
  --lado: clamp(22px, 6vw, 96px);
  --respiro: clamp(80px, 12vw, 176px);
  /* contornos orgânicos, desenhados com cantos desiguais */
  --folha: 46% 54% 38% 62% / 42% 40% 60% 58%;
  --pedra: 54% 46% 58% 42% / 52% 44% 56% 48%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--linho); color: var(--grafite); font: 400 16px/1.75 var(--texto); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--titulo); font-weight: var(--peso-titulo); line-height: 1.12; color: var(--verde); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; max-width: 58ch; }
figure { margin: 0; }
figcaption { font-size: .92rem; color: var(--salvia-texto); margin-top: 18px; }
.pular { position: absolute; left: -999px; top: 0; background: var(--verde); color: var(--linho); padding: 10px 16px; z-index: 20; }
.pular:focus { left: 0; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 10; background: var(--linho); padding: 0 var(--lado); display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.topo .logo img { width: 104px; }
.topo .logo .sobre-foto { display: none; }
.menu { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 38px); font-size: .92rem; }
.menu a { text-decoration: none; padding: 8px 0; color: var(--salvia-texto); }
.menu a:hover, .menu a[aria-current] { color: var(--verde); text-decoration: underline; }
.abrir { display: none; font: inherit; background: none; border: 0; color: var(--verde); padding: 10px 0; cursor: pointer; }
.menu .botao { background: none; border: 0; padding: 8px 0; color: var(--verde); font-weight: 500; }

.botao { display: inline-block; background: var(--verde); color: var(--linho); text-decoration: none; padding: 15px 32px; border-radius: 99px; transition: opacity .2s; }
.botao:hover { opacity: .86; }

/* Inicio: a imagem ocupa a tela, com a base em curva */
.inicio .topo { margin-bottom: -84px; transition: background .3s; }
.inicio .topo:not(.solido):not(.com-menu) { background: none; }
.inicio .topo:not(.solido):not(.com-menu) .logo img { display: none; }
.inicio .topo:not(.solido):not(.com-menu) .logo .sobre-foto { display: block; filter: brightness(0) invert(1); }
.inicio .topo:not(.solido):not(.com-menu) :is(.menu a, .abrir) { color: #fff; }
.palco { background: var(--grafite); }
.cena { position: sticky; top: 0; height: 100svh; min-height: 480px; overflow: hidden; isolation: isolate; }
/* cada projeto sobe sobre o anterior com a borda em curva, que se abre ao chegar */
.cena + .cena { border-radius: 50% 50% 0 0 / clamp(36px, 7vw, 110px) clamp(36px, 7vw, 110px) 0 0; }
.cena > img { width: 100%; height: 100%; object-fit: cover; }
.cena::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgb(20 26 20 / .58), transparent 22%, transparent 50%, rgb(20 26 20 / .72)); }
.legenda { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(44px, 9vh, 88px); padding: 0 var(--lado); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 40px; color: #fff; }
.legenda :is(h1, h2) { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3.6rem); letter-spacing: -.02em; max-width: 17ch; }
.legenda a { color: #fff; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cena + .cena { animation: abrir linear both; animation-timeline: view(); animation-range: entry 55% entry 100%; }
    @keyframes abrir { to { border-radius: 0; } }
  }
}
.frase { padding: var(--respiro) var(--lado); display: grid; place-items: center; text-align: center; }
.frase p { font: var(--peso-titulo) clamp(1.35rem, 2.5vw, 2.1rem)/1.45 var(--titulo); color: var(--verde); max-width: 26ch; margin: 0; text-wrap: balance; }

/* Páginas internas */
.cabeca { padding: clamp(40px, 6vw, 96px) var(--lado) clamp(16px, 2vw, 32px); }
.migalha { font-size: .95rem; color: var(--salvia-texto); margin: 0 0 2.4rem; }
.cabeca h1 { max-width: 16ch; margin-bottom: 1.4rem; }
.cabeca p:last-child { margin-bottom: 0; font-size: 1.15rem; }

.secao { padding: calc(var(--respiro) / 2) var(--lado); }
main > .secao:last-child { padding-bottom: var(--respiro); }
.secao > h2 { max-width: 18ch; margin-bottom: 2.6rem; }
.duas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 8vw, 136px); align-items: start; }
.duas.centro { align-items: center; }
.duas h2 { margin-bottom: 1.5rem; }
.retrato { width: 100%; max-width: 520px; aspect-ratio: 5 / 6; object-fit: cover; object-position: center 40%; border-radius: var(--folha); margin-inline: auto; }
.organica { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--pedra); }

/* Serviços */
.servicos a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 72px); align-items: baseline; padding: 22px 0; text-decoration: none; }
.servicos h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.servicos a:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.servicos p { margin: 0; color: var(--salvia-texto); }
.servicos span { display: none; }

.etapas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(36px, 4vw, 64px) clamp(24px, 3.4vw, 56px); counter-reset: e; }
.etapas li { counter-increment: e; }
.etapas li::before { content: counter(e); display: grid; place-items: center; width: 62px; height: 58px; background: var(--linho-2); color: var(--verde); border-radius: var(--folha); font: var(--peso-titulo) 1.2rem/1 var(--titulo); margin-bottom: 20px; }
.etapas li:nth-child(even)::before { border-radius: var(--pedra); }
.etapas h3 { margin-bottom: .5rem; }
.etapas p { margin: 0; color: var(--salvia-texto); }

.jornada { list-style: none; margin: 0; padding: 0; counter-reset: e; }
.jornada li { counter-increment: e; }
.jornada > li { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 8vw, 136px); padding-bottom: clamp(64px, 8vw, 120px); }
.jornada > li:last-child { padding-bottom: 0; }
.jornada .lista li { counter-increment: none; padding-block: 7px; }
.jornada .lista li::before { top: .95em; }
.jornada > li > div:first-child::before { content: counter(e); display: grid; place-items: center; width: 62px; height: 58px; background: var(--linho-2); color: var(--verde); border-radius: var(--folha); font: var(--peso-titulo) 1.2rem/1 var(--titulo); margin-bottom: 22px; }
.jornada > li:nth-child(even) > div:first-child::before { border-radius: var(--pedra); }
.jornada h2 { margin-bottom: 1rem; }
.jornada p { margin: 0; color: var(--salvia-texto); }
.jornada h3 { margin: 18px 0 .6rem; font-size: 1rem; }
.oferta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 8vw, 136px); align-items: center; }
.oferta + .oferta { margin-top: clamp(72px, 9vw, 136px); }
.oferta img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 0 clamp(60px, 11vw, 170px) 0 0; }
.oferta:nth-child(even) img { order: 1; border-radius: clamp(60px, 11vw, 170px) 0 0 0; }
.oferta h2 { margin-bottom: 1.2rem; }
h2 small { display: block; font-size: 1rem; letter-spacing: 0; margin-top: 1rem; }

.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 2.6rem 0 0; }
.numeros dt { font: var(--peso-titulo) 1.8rem/1 var(--titulo); color: var(--verde); font-variant-numeric: lining-nums; }
.numeros dd { margin: 8px 0 0; font-size: 1rem; line-height: 1.35; color: var(--salvia-texto); }

.lista { list-style: none; padding: 0; margin: 0; }
.lista li { padding: 11px 0 11px 32px; position: relative; }
.lista li::before { content: ''; position: absolute; left: 0; top: 1.15em; width: 12px; height: 11px; background: var(--areia); border-radius: var(--folha); }

/* Projetos */
.galeria { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: end; }
.galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px 140px 28px 28px; }
.galeria figure:nth-child(even) img { aspect-ratio: 1; border-radius: 140px 28px 28px 28px; }
.galeria h3 { margin: 20px 0 2px; }
.galeria p { margin: 0; color: var(--salvia-texto); }
.projeto { scroll-margin-top: 110px; }
.projeto + .projeto { margin-top: var(--respiro); }
.projeto .texto { margin-bottom: 2.4rem; }
.projeto .texto p { margin: 1rem 0 0; color: var(--salvia-texto); }
.mosaico { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); }
.mosaico img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.mosaico .larga { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.mosaico img:first-child { border-radius: 0 clamp(60px, 13vw, 200px) 0 0; }
.projeto:nth-child(even) .mosaico img:first-child { border-radius: clamp(60px, 13vw, 200px) 0 0 0; }

details { border-bottom: 1px solid var(--linha); }
details:last-of-type { border-bottom: 0; }
summary { cursor: pointer; padding: 20px 40px 20px 0; font: var(--peso-titulo) 1.08rem/1.4 var(--titulo); color: var(--verde); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 15px; font: 400 1.6rem var(--texto); }
details[open] summary::after { content: '\2212'; }
details p { padding-bottom: 10px; color: var(--salvia-texto); }

.contatos { margin: 0; }
.contatos dt { color: var(--salvia-texto); font-size: 1rem; }
.contatos dd { margin: 2px 0 28px; font-size: 1.2rem; overflow-wrap: anywhere; }

/* Fechamento: um só fundo verde, com a borda de cima em curva */
.chamada { background: var(--verde); color: var(--linho); padding: clamp(96px, 13vw, 190px) var(--lado) clamp(56px, 6vw, 88px); border-radius: 50% 50% 0 0 / clamp(40px, 8vw, 130px) clamp(40px, 8vw, 130px) 0 0; display: grid; justify-items: center; text-align: center; }
.chamada h2 { color: var(--linho); max-width: 18ch; margin-bottom: 1.2rem; }
.chamada p { margin-bottom: 2.2rem; max-width: 46ch; }
.chamada .botao { background: var(--linho); color: var(--verde); }
.rodape { background: var(--verde); margin-top: -1px; position: relative; color: #E2DCCD; padding: 48px var(--lado) 40px; font-size: 1rem; }
.rodape .colunas { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.rodape img { width: 104px; margin-bottom: 18px; }
.rodape ul { list-style: none; margin: 0; padding: 0; }
.rodape li { margin-bottom: 8px; }
.rodape a { text-decoration: none; overflow-wrap: anywhere; }
.rodape a:hover { text-decoration: underline; }
.rodape address { font-style: normal; }
.rodape .fim { margin: 48px 0 0; font-size: .92rem; color: #C9C2B1; max-width: none; }

@media (max-width: 900px) {
  body { font-size: 16px; }
  .topo { min-height: 72px; }
  .abrir { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--linho); flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px var(--lado) 32px; font-size: 1.25rem; border-radius: 0 0 36px 36px; }
  .menu.aberto { display: flex; }
  .duas { grid-template-columns: 1fr; }
  .inicio .topo { margin-bottom: -72px; }
  .jornada li, .oferta, .oferta:nth-child(even) { grid-template-columns: 1fr; }
  .oferta:nth-child(even) img { order: 0; }
  .servicos a { grid-template-columns: 1fr; gap: 6px; }
  .rodape .colunas { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .galeria, .mosaico { grid-template-columns: 1fr; }
  .mosaico .larga { aspect-ratio: 4 / 3; }
  .galeria img { border-radius: 20px 90px 20px 20px; }
  .galeria figure:nth-child(even) img { aspect-ratio: 4 / 3; border-radius: 90px 20px 20px 20px; }
  .numeros { gap: 14px; }
  .numeros dt { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
