:root {
  --ivory: #F7F3EB;
  --coffee: #30251F;
  --sand: #E6D9C8;
  --bronze: #916A43;
  --bronze-dark: #6B4C2D; /* bronze escurecido para texto pequeno sobre marfim (contraste AA) */
  --muted: #46392F;
  --line: rgba(48, 37, 31, .18);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--coffee);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); }
h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
h3 { font-size: clamp(1.6rem, 1.3rem + .8vw, 2rem); }
h1 em, h2 em { font-style: italic; font-weight: 400; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--coffee); color: var(--ivory); padding: 10px 16px; }
.skip:focus { top: 12px; }

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

.kicker {
  font: 600 .75rem/1.2 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze-dark);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .75rem;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--bronze); }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.55; }

/* ---------- Links e botões ---------- */
.link {
  color: inherit; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
  padding-bottom: 2px;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.link--arrow { font-weight: 500; background-size: 100% 1px; background-image: linear-gradient(var(--bronze), var(--bronze)); }
.link--arrow::after { content: " →"; display: inline-block; transition: transform .3s var(--ease); }
.link--arrow:hover::after { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font: 500 1rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; text-align: center;
  border: 1px solid var(--coffee); border-radius: 999px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--solid { background: var(--coffee); color: var(--ivory); }
.btn--solid:hover { background: var(--bronze-dark); border-color: var(--bronze-dark); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9rem; }
.btn--light { background: var(--ivory); color: var(--coffee); border-color: var(--ivory); }
.btn--light:hover { background: var(--sand); border-color: var(--sand); }
.contact .btn:focus-visible { outline-color: var(--sand); }

/* ---------- Cabeçalho ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
}
/* fundo translúcido num pseudo-elemento: backdrop-filter no próprio header prenderia o menu fixo dentro dele */
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(247, 243, 235, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.sig { display: inline-flex; flex-direction: column; text-decoration: none; color: inherit; line-height: 1; margin: 0; }
.sig__name { font: 500 1.75rem/1 var(--serif); letter-spacing: .01em; }
.sig__line { font: 500 .62rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-dark); margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--bronze); }
.nav { display: flex; align-items: center; gap: 32px; font-size: .95rem; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 4px 0 12px;
    background: none; border: 0; color: inherit; font: 500 .95rem var(--sans); cursor: pointer;
  }
  .menu-btn__bars, .menu-btn__bars::before { display: block; width: 22px; height: 1px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
  .menu-btn__bars::before { content: ""; position: absolute; top: 7px; }
  .menu-btn__bars { transform: translateY(-4px); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars { transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(-7px) rotate(-90deg); }
  .menu-btn { order: 2; }

  .nav {
    position: fixed; inset: 76px 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gutter) 40px;
    background: var(--ivory);
    overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .nav .link { font: 500 2.1rem/1 var(--serif); padding: 20px 0; border-bottom: 1px solid var(--line); background: none; }
  .nav .btn { margin-top: 32px; min-height: 52px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Abertura ---------- */
.hero { padding: clamp(32px, 4vw, 56px) 0 clamp(64px, 8vw, 120px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero__photo { grid-column: 2; }
.link--quiet { font-size: .95rem; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; background-size: 100% 1px; background-position: 0 calc(100% - 10px); background-image: linear-gradient(var(--line), var(--line)); }
.link--quiet:hover { color: var(--coffee); background-image: linear-gradient(var(--bronze), var(--bronze)); }
.hero h1 { margin-bottom: 1.75rem; }
.hero .lead { max-width: 34ch; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin: 2rem 0 2.5rem; }
.actions .link--arrow { min-height: 44px; display: inline-flex; align-items: center; background-position: 0 calc(100% - 10px); }

.hero__photo { position: relative; }
.hero__photo::after { /* moldura fina deslocada: detalhe em bronze */
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--bronze); z-index: -1;
}
.hero__photo img { width: 100%; max-height: calc(100svh - 150px); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }

@media (prefers-reduced-motion: no-preference) {
  .hero__photo img { animation: reveal .7s var(--ease) .1s both; }
  .hero__photo::after { animation: fade .6s ease .6s both; }
}
@keyframes reveal {
  from { clip-path: inset(100% 0 0 0); transform: scale(1.04); }
  to   { clip-path: inset(0 0 0 0);   transform: scale(1); }
}
@keyframes fade { from { opacity: 0; } }

@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero__grid { grid-template-columns: 1fr; row-gap: 0; }
  .hero__photo { grid-column: 1; }
  .hero__photo { margin-right: 18px; }
  .hero__photo img { aspect-ratio: 780 / 700; max-height: none; object-position: 50% 30%; }
  .hero .actions { margin-bottom: 36px; }
}

/* ---------- Sobre ---------- */
.about { padding: clamp(72px, 10vw, 144px) 0; background: var(--sand); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 112px); align-items: start; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.about__text { padding-top: clamp(0px, 4vw, 48px); max-width: 600px; }
.about h2 { margin-bottom: 2rem; }
.quote { margin: 2.25rem 0; padding: 0 0 0 1.5rem; border-left: 1px solid var(--bronze); }
.quote p { font: italic 400 clamp(1.4rem, 1.2rem + .7vw, 1.85rem)/1.3 var(--serif); margin: 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.tags li { font-size: .82rem; padding: 7px 14px; border: 1px solid rgba(48, 37, 31, .3); border-radius: 999px; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__text { order: -1; }
  .about__photo img { aspect-ratio: 1 / 1; object-position: 50% 20%; }
}

/* ---------- Assessoria ---------- */
.steps { padding: clamp(72px, 10vw, 144px) 0; }
.steps__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 112px); align-items: start; }
.steps__media { position: sticky; top: 104px; }
.steps__photo { overflow: hidden; }
.steps__photo figcaption { position: relative; background: var(--ivory); padding-top: 10px; font-size: .8rem; color: var(--muted); }
.steps__photo img { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100vh - 140px); object-fit: cover; object-position: 50% 60%; }
.steps h2 { margin-bottom: 1.5rem; }
.steps .lead { color: var(--muted); max-width: 40ch; }
.step-list { list-style: none; margin: 3rem 0; padding: 0; border-top: 1px solid var(--line); }
.step-list li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step-list li > *:not(.step-list__n) { grid-column: 2; }
.step-list__n { grid-row: 1 / span 3; font: 500 .85rem/2.4 var(--sans); color: var(--bronze-dark); letter-spacing: .08em; }
.step-list h3 { margin-bottom: .35rem; }
.step-list li p { margin: 0 0 .6rem; color: var(--muted); }
.step-list .step-list__d { margin: 0; color: var(--coffee); font-size: .95rem; padding-left: 14px; border-left: 1px solid var(--bronze); }
.step-list__d strong { font-weight: 600; }

/* bancada: começa próxima dos potes e abre até o conjunto, uma vez, ao chegar na seção.
   Só arma o zoom quando o JS está ativo; sem JS ou com movimento reduzido a foto fica inteira. */
@media (prefers-reduced-motion: no-preference) {
  .js .open-up { transform: scale(1.28); transform-origin: 45% 58%; transition: transform 2.2s cubic-bezier(.2, .7, .2, 1); }
  .js .open-up.is-open { transform: scale(1); }
}

@media (max-width: 860px) {
  .steps__grid { grid-template-columns: 1fr; }
  .steps__media { position: static; order: 2; }
  .steps__text { display: contents; }
  .steps__text > .kicker, .steps__text > h2, .steps__text > .lead { order: 1; }
  .steps__text > .step-list { order: 3; margin: 1rem 0 2rem; }
  .steps__text > .btn { order: 4; }
  .steps__text > .kicker { margin-bottom: -12px; }
  .steps__text > h2 { margin-bottom: -12px; }
  .steps__photo img { aspect-ratio: auto; max-height: none; } /* celular: foto inteira, sem recorte */
  .step-list li { grid-template-columns: 40px 1fr; }
}

/* ---------- Perguntas ---------- */
.faq { padding: clamp(72px, 10vw, 144px) 0; background: var(--sand); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 112px); align-items: start; }
.faq__head h2 { margin-bottom: 1.25rem; }
.faq__head p:not(.kicker) { color: var(--muted); max-width: 36ch; }
.faq__head .link--arrow { min-height: 44px; display: inline-flex; align-items: center; background-position: 0 calc(100% - 10px); }
.qa { padding: 32px 0; border-top: 1px solid rgba(48, 37, 31, .25); }
.qa:last-child { border-bottom: 1px solid rgba(48, 37, 31, .25); }
.qa h3 { margin-bottom: .6rem; }
.qa .qa__tag { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: .6rem; }
.qa p { margin: 0; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* ---------- De perto ---------- */
.close { padding: clamp(72px, 10vw, 144px) 0; border-top: 1px solid var(--line); }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px 64px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.head-row .link--arrow { min-height: 44px; display: inline-flex; align-items: center; background-position: 0 calc(100% - 10px); }
.head-row p { max-width: 44ch; color: var(--muted); margin: 0; }
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(12px, 1.6vw, 24px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "a a b c";
}
.g--a { grid-area: a; } .g--b { grid-area: b; } .g--c { grid-area: c; }
.g-item { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--sand); cursor: zoom-in; overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform .6s var(--ease); }
.g--a .g-item img { aspect-ratio: 4 / 5; }
.g--b .g-item img, .g--c .g-item img { aspect-ratio: auto; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .g-item:hover img { transform: scale(1.03); }
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c"; }
  .g--b .g-item img, .g--c .g-item img { aspect-ratio: 3 / 4; }
  .g--a .g-item img { aspect-ratio: 4 / 5; }
}

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 94vh; color: var(--ivory); overflow: visible; }
.lightbox::backdrop { background: rgba(28, 21, 17, .9); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; }
.lightbox figcaption { font-size: .92rem; margin-top: 14px; max-width: 60ch; text-align: center; }
.lightbox__bar { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.lb-btn { min-width: 48px; min-height: 48px; padding: 0 18px; border: 1px solid rgba(247, 243, 235, .45); border-radius: 999px; background: none; color: var(--ivory); font: 500 1rem var(--sans); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.lb-btn:hover { background: var(--ivory); color: var(--coffee); }
.lb-btn:focus-visible { outline-color: var(--sand); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: fade .3s ease; }
}

/* ---------- Conteúdos ---------- */
.posts { padding: clamp(72px, 10vw, 144px) 0; background: var(--sand); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.post:nth-child(2) { margin-top: clamp(0px, 5vw, 72px); }
.post__img { display: block; overflow: hidden; margin-bottom: 20px; }
.post__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .post:hover .post__img img { transform: scale(1.03); }
}
.post__tag { font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: .75rem; }
.post h3 { margin-bottom: .75rem; }
.post h3 .link { background-position: 0 92%; }
.post p { color: var(--muted); font-size: .98rem; }
.post .post__note { font-size: .82rem; border-top: 1px solid rgba(48, 37, 31, .25); padding-top: .75rem; }
@media (max-width: 860px) {
  .post-grid { grid-template-columns: 1fr; gap: 56px; }
  .post:nth-child(2) { margin-top: 0; }
}

/* ---------- Contato ---------- */
.contact { background: var(--coffee); color: var(--ivory); padding: clamp(96px, 14vw, 200px) 0; text-align: center; }
.contact__in { display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: 16ch; line-height: 1.12; font-size: clamp(2.2rem, 1.2rem + 4vw, 5rem); }
.contact h2::after { content: ""; display: block; width: 48px; height: 1px; background: var(--bronze); margin: 2rem auto; }
.contact p { font-size: 1.15rem; color: rgba(247, 243, 235, .85); margin-bottom: 2.5rem; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
.contact .contact__note { font-size: .85rem; color: rgba(247, 243, 235, .78); margin: 1.5rem 0 0; max-width: 52ch; }
.contact .contact__privacy { margin: .5rem 0 0; font-size: .9rem; }
.contact__privacy .link { color: var(--ivory); background-size: 100% 1px; min-height: 44px; display: inline-flex; align-items: center; background-position: 0 calc(100% - 10px); }
.btn--outline { background: transparent; color: var(--ivory); border-color: rgba(247, 243, 235, .55); }
.btn--outline:hover { background: rgba(247, 243, 235, .1); border-color: var(--ivory); }

/* ---------- Página de privacidade ---------- */
.legal { padding: clamp(48px, 8vw, 112px) 0; }
.legal__in { max-width: calc(72ch + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); margin-bottom: .75rem; }
.legal__date { font-size: .9rem; color: var(--muted); margin-bottom: 2rem; }
.legal h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal li { margin-bottom: .35rem; }
.legal .link { background-size: 100% 1px; }
.facts-list { margin: 1.25rem 0 1.5rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts-list div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts-list dt { font-weight: 600; font-size: .9rem; }
.facts-list dd { margin: 0; }
@media (max-width: 560px) { .facts-list div { grid-template-columns: 1fr; gap: 2px; } }
.link--back { min-height: 44px; display: inline-flex; align-items: center; font-size: .95rem; background-size: 100% 1px; background-position: 0 calc(100% - 10px); }

/* ---------- Rodapé ---------- */
.foot { background: var(--coffee); color: rgba(247, 243, 235, .82); border-top: 1px solid rgba(247, 243, 235, .14); padding: 40px 0; font-size: .9rem; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.foot p { margin: 0; }
.foot .sig { color: var(--ivory); }
.foot .sig__line { color: #C9A57E; border-color: var(--bronze); }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.foot__credit { flex-basis: 100%; align-self: stretch; font-size: .8rem; color: rgba(247, 243, 235, .78); padding-top: 16px; border-top: 1px solid rgba(247, 243, 235, .14); }
.foot__credit .link { min-height: 0; display: inline; background-size: 100% 1px; }
.foot .link { color: var(--ivory); min-height: 44px; display: inline-flex; align-items: center; background-position: 0 calc(100% - 10px); }

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .sig__line { letter-spacing: .12em; font-size: .58rem; }
  .btn { padding: 0 20px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn, .steps .btn, .contact .btn { width: 100%; }
  .contact__actions { width: 100%; flex-direction: column; }
  .actions .link { align-self: flex-start; }
  .contact { text-align: left; }
  .contact__in { align-items: flex-start; }
  .contact h2::after { margin-left: 0; }
  .foot__in { flex-direction: column; align-items: flex-start; }
}

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