:root {
  color-scheme: light;
  --sand: #f3eadb;
  --paper: #fcf8f0;
  --ink: #2b2119;
  --muted: #665445;
  --line: #d8c8b2;
  --wood: #37271e;
  --cream: #fff4df;
  --gold: #a66c30;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); letter-spacing: -.06em; }
h3 { font-size: clamp(1.5rem, 2.35vw, 2.15rem); letter-spacing: -.035em; }
:focus-visible { outline: 3px solid #ae773f; outline-offset: 5px; }

.site-container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 40px);
}
.site-container > * { min-width: 0; }

.skip-link { position: absolute; z-index: 5; top: 10px; left: 10px; padding: .5rem 1rem; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  color: var(--cream);
}
.header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 91px;
}
.wordmark { display: inline-grid; width: fit-content; text-decoration: none; line-height: 1; }
.wordmark span { font: 1.7rem/1 var(--serif); letter-spacing: -.045em; }
.wordmark small { margin-top: .48rem; font-size: .68rem; font-weight: 650; letter-spacing: .16em; }
.header-nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.5rem); }
.header-nav a, .footer-row nav a { text-decoration: none; font-size: .9rem; font-weight: 650; }
.header-nav a:hover, .footer-row nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero {
  position: relative;
  isolation: isolate;
  background: #392a21;
  color: var(--cream);
}
.hero-media, .hero-media img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: center 48%; }
.hero::after {
  z-index: -1;
  content: '';
  background: linear-gradient(180deg, #21170de8, transparent 24%, transparent 78%, #21170db3),
              linear-gradient(90deg, #21170df2 0%, #21170dc7 22%, #21170d66 51%, transparent 78%);
}
.hero-inner {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  min-height: min(760px, 94svh);
  padding-block: 107px 29px;
}
.hero-copy { width: min(100%, 660px); padding-block: clamp(3rem, 10vh, 6rem); }
.hero h1 { font-size: clamp(4rem, 8.9vw, 8.35rem); letter-spacing: -.08em; text-wrap: initial; }
.hero h1 em { color: #f4d5a4; font-weight: 400; }
.hero-copy p { max-width: 30ch; margin-top: 1.35rem; color: #fff4df; font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
.button-light { background: var(--cream); color: var(--ink); }
.button-light:hover { background: #f4d5a4; }
.button-ghost { border-color: #fff4df9e; color: inherit; }
.button-ghost:hover { background: #fff4df20; }
.button-dark { background: var(--wood); color: var(--cream); }
.button-dark:hover { background: #543b2d; }
.hero-caption { justify-self: end; font-size: .84rem; font-weight: 550; }

.section { padding-block: clamp(3.25rem, 5.65vw, 5.75rem); }
.collection { background: var(--sand); }
.collection-title { margin-bottom: clamp(1.5rem, 3.35vw, 2.75rem); }
.pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 2rem); }
.piece { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.piece img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; }
.piece-info { display: flex; flex-direction: column; align-items: start; gap: .8rem; padding-block: 1.15rem; border-bottom: 1px solid var(--line); }
.piece-info p { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-underline-offset: 5px; }
.text-link:hover { color: #83501e; }
.piece-info .text-link { margin-top: auto; }
.carousel-controls:not([hidden]) { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; margin-top: .65rem; }
.carousel-controls button {
  min-height: 44px;
  padding: .4rem .85rem;
  border: 1px solid #9f8a71;
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font: 650 .9rem/1.3 var(--sans);
  cursor: pointer;
}
.carousel-controls button:not([aria-disabled="true"]):hover { background: var(--ink); color: var(--cream); }
.carousel-controls button[aria-disabled="true"] { opacity: .52; cursor: default; }
.carousel-position { margin-inline-end: auto; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
[data-carousel-track] { position: relative; }
[data-carousel]:has(.carousel-controls:not([hidden])) [data-carousel-track] { scrollbar-width: none; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.75rem, 7vw, 7rem); }
.delivered-project { background: var(--paper); }
.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 5.5rem);
}
.project-copy h2 { max-width: 13ch; }
.project-copy p { max-width: 37ch; margin-block: 1rem; color: var(--muted); }
.project-photo { max-width: 440px; justify-self: end; border-radius: 5px; }
.workshop { background: var(--wood); color: var(--cream); }
.workshop-copy { grid-area: 1 / 2; }
.workshop-photo { grid-area: 1 / 1; }
.workshop-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.workshop-copy p { max-width: 41ch; margin-top: 1.1rem; color: #f0dfca; }

.reviews { background: var(--paper); }
.reviews-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: center; gap: clamp(1rem, 5vw, 4rem); }
.reviews .rating { margin-top: 1.1rem; }
.reviews .text-link { margin-top: .55rem; }
.review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: .7rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  border-radius: 6px;
  scrollbar-width: thin;
}
.review-track:focus-visible { outline-offset: 3px; }
.rating { display: flex; align-items: center; gap: .7rem; }
.rating div { display: grid; font-size: .87rem; color: var(--muted); line-height: 1.4; }
.rating strong { font: clamp(2.4rem, 5vw, 3.65rem)/1 var(--serif); letter-spacing: -.07em; }
.stars { color: #83501e; letter-spacing: .15em; }

.order { background: var(--paper); }
.order-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem clamp(1rem, 4vw, 3rem);
  padding: 0;
  margin: clamp(1.2rem, 4vw, 2.6rem) 0 clamp(1.2rem, 4vw, 2.4rem);
  list-style: none;
}
.order-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.step-number {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #83501e;
  font-size: .82rem;
  font-weight: 700;
}
.order-steps h3 { padding-top: .2rem; text-wrap: initial; }
.order-steps p { margin-top: .4rem; max-width: 31ch; color: var(--muted); }

.visit { background: var(--sand); }
.visit-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.25rem, 5vw, 4.5rem); }
.visit-info address { margin-block: .95rem 1.2rem; font-style: normal; }
.visit-info .button { margin-top: 1.2rem; }
.hours { max-width: 28rem; }
.hours h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.hours dl { margin: .45rem 0 0; }
.hours dl div { display: flex; gap: .7rem; justify-content: space-between; border-bottom: 1px solid var(--line); padding-block: .5rem; }
.hours dl div:last-child { border: 0; }
.hours dd { text-align: right; margin: 0; font-weight: 650; }

.faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; cursor: pointer; font-weight: 650; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
  content: '';
  flex: 0 0 .9rem;
  height: .9rem;
  color: #83501e;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
              linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}
.questions details[open] summary::after { transform: rotate(45deg); }
.questions p { margin-bottom: 1rem; color: var(--muted); }
.questions p a { text-underline-offset: 3px; }

.final-cta { color: var(--cream); background: var(--wood); padding-block: clamp(2.4rem, 5vw, 4rem); }
.final-layout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.45rem 2rem; }
.site-footer { background: #241b16; color: var(--cream); padding-block: 1.8rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.3rem; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }

@media (max-width: 820px) {
  .header-row { grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; min-height: 74px; }
  .header-nav { display: none; }
}
@media (max-width: 700px) {
  h2 { font-size: clamp(2.08rem, 7.3vw, 3.2rem); }
  .hero::after {
    background: linear-gradient(180deg, #21170dbb, transparent 19%, transparent 56%, #21170da8 74%, #21170df5 100%);
  }
  .hero-media img { object-position: 42% center; }
  .hero-inner {
    grid-template-rows: 1fr;
    align-items: end;
    min-height: 100svh;
    padding-block: calc(var(--header-height) + 1rem) max(1.65rem, env(safe-area-inset-bottom));
  }
  .hero-copy { padding-block: 0; }
  .hero h1 { font-size: clamp(2.15rem, 10vw, 3.75rem); letter-spacing: -.065em; }
  .hero-copy p { max-width: 34ch; margin-top: .55rem; font-size: 1rem; line-height: 1.45; }
  .hero .actions {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: .625rem;
    margin-top: .9rem;
  }
  .hero-caption { display: none; }
  .section { padding-block: clamp(2.25rem, 7vw, 3.2rem); }
  .hero .button { padding-inline: .5rem; font-size: clamp(.875rem, 3.75vw, .94rem); }
  .collection-title { margin-bottom: .85rem; }
  .pieces {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(82%, 370px);
    gap: .85rem;
    margin-inline: -.5rem;
    padding: .5rem .55rem .65rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: .55rem;
    scrollbar-width: thin;
  }
  .piece { scroll-snap-align: start; }
  .piece-info { gap: .4rem; padding-block: .75rem .3rem; }
  .piece-info h3 { font-size: clamp(1.25rem, 4.2vw, 1.7rem); text-wrap: initial; }
  .piece-info p { font-size: .9rem; line-height: 1.38; }
  .piece-info .text-link { font-size: .88rem; }
  .split, .project-layout, .reviews-layout, .order-steps, .visit-layout { grid-template-columns: minmax(0, 1fr); }
  .project-photo { justify-self: start; }
  .split { gap: 1rem; }
  .workshop-copy, .workshop-photo { grid-area: auto; }
  .workshop-copy p { margin-top: .8rem; }
  .order-steps { gap: .65rem; }
  .order-steps li { padding-top: .7rem; }
  .order-steps h3 { font-size: 1.38rem; }
  .order-steps p { margin-top: .2rem; max-width: none; }
  .final-cta { padding-block: clamp(1.45rem, 6vw, 2.4rem); }
  .final-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(43%, clamp(7.5rem, 36vw, 10.25rem));
    gap: clamp(.65rem, 3vw, 1.25rem);
  }
  .final-layout h2 {
    font-size: clamp(1.4rem, 6.5vw, 2.65rem);
    line-height: 1.1;
    letter-spacing: -.045em;
    text-wrap: balance;
  }
  .final-layout .button {
    min-height: 48px;
    padding: .55rem .45rem;
    font-size: clamp(.82rem, 3.4vw, .94rem);
    text-wrap: balance;
  }
}
@media (max-width: 700px) and (max-aspect-ratio: 3 / 4) {
  .hero-media { overflow: hidden; }
  .hero-media::before {
    position: absolute;
    inset: -16px;
    background:
      linear-gradient(transparent 30%, #2b2119 92%),
      url('assets/mesao-varanda-mobile.webp') center / cover;
    filter: blur(16px);
    content: '';
  }
  .hero-media img {
    height: auto;
    mask-image: linear-gradient(#000 89%, transparent);
  }
  .hero-inner { padding-bottom: max(1.65rem, 7svh, env(safe-area-inset-bottom)); }
  .hero::after {
    background: linear-gradient(180deg, #21170dbb, transparent 17% 56%, #21170d28 74%, #21170da0);
  }
}
@media (max-width: 500px) {
  .footer-row nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}


/* Navegação, galeria e transições */
:root { --header-height: 91px; }
main, section[id] { scroll-margin-top: calc(var(--header-height) + 1rem); }
.hero[id] { scroll-margin-top: 0; }
body:has(.gallery[open]) { overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  margin-bottom: calc(-1 * var(--header-height));
  background: linear-gradient(180deg, #21170da0, transparent);
}
.site-header.is-scrolled, .site-header:has(.mobile-menu[open]) {
  background: #2b2119;
  box-shadow: 0 1px #e4cfac36;
}
.header-row { min-height: var(--header-height); }
.header-nav a { position: relative; padding-block: .65rem; }
.header-nav a[aria-current]::after {
  position: absolute;
  inset: auto .1rem .23rem;
  height: 2px;
  border-radius: 3px;
  background: #f4d5a4;
  content: '';
}
.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding-inline: .6rem;
  border-radius: 5px;
  list-style: none;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 650;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] summary { background: #fff4df20; }
.mobile-menu nav {
  position: absolute;
  z-index: 1;
  top: calc(100% + .35rem);
  right: 0;
  width: max-content;
  padding: .4rem;
  border: 1px solid #fff4df50;
  border-radius: 5px;
  background: #2b2119;
  box-shadow: 0 10px 25px #21170d5c;
}
.mobile-menu nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .85rem;
  border-radius: 3px;
  font-weight: 650;
  text-decoration: none;
}
.mobile-menu nav a[aria-current], .mobile-menu nav a:hover { background: #fff4df24; }

.piece-media {
  display: block;
  position: relative;
  align-self: start;
  border-radius: 5px;
  overflow: hidden;
  isolation: isolate;
}
.piece-media img { transition: transform 220ms ease-out; }
.gallery-hint {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  padding: .42rem .62rem;
  border: 1px solid #fff4df9e;
  border-radius: 4px;
  background: #2b2119;
  color: var(--cream);
  font-size: .85rem;
  font-weight: 700;
}
@media (hover: hover) {
  .piece-media:hover img { transform: scale(1.035); }
}
.piece-media:focus-visible img { transform: scale(1.035); }

.gallery {
  width: min(calc(100% - 1.5rem), 64rem);
  max-height: calc(100dvh - 1.5rem);
  padding: .85rem;
  border: 1px solid #fff4df83;
  border-radius: 8px;
  background: var(--wood);
  color: var(--cream);
}
.gallery::backdrop { background: #21170de6; }
.gallery-head, .gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.gallery-head { margin-bottom: .6rem; }
.gallery-controls { margin-top: .6rem; }
.gallery-head h3 { font-size: clamp(1.2rem, 4vw, 2rem); }
.gallery-button {
  min-height: 44px;
  padding: .35rem .65rem;
  border: 1px solid #fff4df94;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: 650 .9rem/1.25 var(--sans);
  cursor: pointer;
}
.gallery-button:hover { background: #fff4df24; }
.gallery-count { font-size: .85rem; text-align: center; }
.gallery-stage { height: min(63dvh, 600px); border-radius: 4px; background: #241b16; }
.gallery-stage img { width: 100%; height: 100%; object-fit: contain; }

.workshop-video {
  position: relative;
  display: block;
  border-radius: 5px;
  overflow: hidden;
}
.video-label {
  position: absolute;
  bottom: .8rem;
  left: .8rem;
  right: .8rem;
  width: fit-content;
  padding: .6rem .85rem;
  border: 1px solid #fff4df9e;
  border-radius: 5px;
  background: #2b2119;
  color: var(--cream);
  font-weight: 700;
  line-height: 1.3;
}
.workshop-video:hover .video-label { background: #533b2e; }
.review-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.2rem);
  min-height: clamp(10.5rem, 18vw, 15rem);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sand);
  scroll-snap-align: start;
  overflow-wrap: break-word;
}
.review-quote blockquote { margin: 0; font: clamp(1.45rem, 3vw, 2.45rem)/1.17 var(--serif); letter-spacing: -.025em; }
.review-quote figcaption { margin-top: .8rem; color: var(--muted); font-size: .93rem; font-weight: 650; }

.location-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
}
@media (max-width: 700px) {
  .location-map { height: clamp(235px, 63vw, 350px); min-height: 0; }
}

.questions summary { padding-inline: .65rem; }
.questions details[open] summary { background: var(--sand); }
.questions details p { padding: .8rem .65rem 0; }
.final-cta .button { transition: background-color 180ms ease, transform 180ms ease; }
.final-cta .button:is(:hover, :focus-visible) { transform: translateY(-2px); }

@media (max-width: 820px) {
  :root { --header-height: 74px; }
  .mobile-menu { display: block; }
}
@media (max-width: 700px) {
  :root { --header-height: 62px; }
  .header-row .wordmark span { font-size: 1.4rem; }
  .header-row .wordmark small { margin-top: .35rem; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes enter { from { opacity: .66; transform: translateY(10px); } }
  .hero-copy { animation: enter 460ms ease-out both; }
  .gallery[open], .questions details[open] p, .site-footer.is-visible .footer-row {
    animation: enter 220ms ease-out both;
  }
  .site-header { transition: background-color 180ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  .piece-media img, .final-cta .button { transition: none; }
  .piece-media:is(:hover, :focus-visible) img, .final-cta .button:is(:hover, :focus-visible) { transform: none; }
}

