:root {
  --green: #1f513d;
  --green-deep: #153a2c;
  --green-soft: #c6ddcf;
  --ink: #202521;
  --muted: #667069;
  --line: #d8dcd7;
  --paper: #f2f1ed;
  --canvas: #fbfaf7;
  --white: #fff;
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --body: Aptos, "Segoe UI Variable", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --page-gutter: clamp(1.25rem, 4vw, 4rem);
  --content-width: 84rem;
  --section-space: clamp(3.5rem, 7vw, 6rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.55; }
body:has(dialog[open]) { overflow: hidden; }
::selection { background: var(--green); color: var(--white); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #81998b; border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--green); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #5c8d70; outline-offset: 4px; }
svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.skip { position: fixed; z-index: 20; top: .75rem; left: .75rem; padding: .75rem 1rem; background: var(--white); color: var(--green-deep); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header { width: min(100%, var(--content-width)); min-height: 6.5rem; margin: auto; padding: 1.25rem var(--page-gutter); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { width: fit-content; font-family: var(--display); font-size: 2.25rem; font-weight: 700; letter-spacing: -.035em; line-height: .8; }
.brand span { display: block; margin-top: .9rem; font-family: var(--body); font-size: .7rem; font-weight: 500; letter-spacing: .22em; line-height: 1; }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); font-size: .875rem; }
.menu-toggle { display: none; }
.language-switch { display: flex; flex-shrink: 0; gap: .25rem; font-size: .8rem; }
.language-switch a { min-width: 2.5rem; min-height: 2.75rem; display: grid; place-items: center; border-radius: .25rem; }
.language-switch a:hover { background: var(--paper); }
.language-switch a[aria-current="true"] { color: var(--green-deep); font-weight: 700; text-decoration: underline; text-underline-offset: .35em; }
.site-header nav a, .catalog-link, .back-to-top { position: relative; padding-block: .45rem; }
.site-header nav a::after, .catalog-link::after, .back-to-top::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after, .catalog-link:hover::after, .catalog-link:focus-visible::after, .back-to-top:hover::after, .back-to-top:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.catalog-link { justify-self: end; display: inline-flex; align-items: center; gap: 1.25rem; font-size: .875rem; }

.hero { width: min(100%, var(--content-width)); min-height: 34rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%); grid-template-rows: 1fr auto; background: var(--green); color: var(--white); overflow: hidden; }
.hero-copy { min-width: 0; align-self: center; padding: clamp(3rem, 5vw, 5rem) var(--page-gutter); }
h1, h2, h3, .product-info strong, .photo-caption strong { font-family: var(--display); font-weight: 400; }
h1 { max-width: none; margin: 0; font-size: clamp(3.25rem, 5.3vw, 5.5rem); letter-spacing: -.035em; line-height: 1; }
h1 span, h1 em { display: block; }
h1 em { color: var(--green-soft); font-weight: 400; }
.hero-copy p { max-width: 30rem; margin: 2rem 0 0; color: #f0f7f2; font-size: .95rem; line-height: 1.75; }
.primary-action { width: fit-content; min-height: 3.5rem; margin-top: 2.25rem; padding: 0 1.25rem; display: inline-flex; align-items: center; gap: 2rem; background: var(--white); color: var(--green-deep); font-size: .875rem; transition: background-color .25s ease, color .25s ease, gap .35s var(--ease); }
.primary-action:hover { gap: 2.5rem; background: var(--green-soft); }
.hero-photo { position: relative; min-width: 0; display: flex; align-items: center; background: var(--paper); overflow: hidden; }
.hero-photo > img { width: 100%; height: 100%; min-height: 0; padding: 1.5rem 1.5rem 6rem; object-fit: contain; mix-blend-mode: multiply; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.hero:hover .hero-photo > img { transform: scale(1); }
.photo-caption { position: absolute; right: 2rem; bottom: 1.75rem; left: 2rem; display: flex; align-items: end; justify-content: space-between; color: var(--ink); }
.photo-caption > span { color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.photo-caption strong { display: block; margin-top: .3rem; color: var(--ink); font-size: 2rem; letter-spacing: -.02em; text-transform: none; }
.photo-caption a, .product-arrow { width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid #aeb5af; border-radius: 50%; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .35s var(--ease); }
.photo-caption a:hover, .photo-caption a:focus-visible { border-color: var(--green); background: var(--green); color: var(--white); transform: rotate(45deg); }
.hero-foot { grid-column: 1 / -1; min-height: 3rem; padding: .75rem var(--page-gutter); display: flex; align-items: center; border-top: 1px solid #ffffff2b; background: var(--green-deep); color: #f0f7f2; font-size: .8rem; letter-spacing: .02em; }

.collection { width: min(100%, var(--content-width)); margin: auto; padding: var(--section-space) var(--page-gutter) 0; }
.section-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: clamp(2rem, 5vw, 5rem); }
.section-intro h2 { max-width: 15ch; margin: 0; font-size: clamp(2.8rem, 5vw, 4.8rem); letter-spacing: -.035em; line-height: 1; }
.section-intro p { max-width: 31rem; margin: 0 0 .4rem; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.category-index { margin: 2.5rem 0 var(--section-space); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-index a { min-width: 0; min-height: 5.5rem; padding: 1rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .25rem; border-right: 1px solid var(--line); transition: background-color .25s ease, color .25s ease; }
.category-index a:last-child { border-right: 0; }
.category-index a:hover { background: var(--green); color: var(--white); }
.category-index span { font-family: var(--display); font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.2; }
.category-index small { color: var(--muted); font-size: .75rem; }
.category-index a:hover small { color: var(--white); }

.group { margin-bottom: var(--section-space); scroll-margin-top: 2rem; }
.group-heading { margin-bottom: 2rem; padding-top: 1.35rem; display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--ink); }
.group-heading h3 { margin: 0; font-size: clamp(1.85rem, 3vw, 2.6rem); letter-spacing: -.025em; line-height: 1.1; }
.group-heading span { color: var(--muted); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2.5vw, 2rem); }
.group:is(#sofas, #puffs-cadeiras) .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product { min-width: 0; }
.product button { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.product-image { position: relative; aspect-ratio: 4 / 3; display: block; background: var(--paper); overflow: hidden; transition: background-color .3s ease; }
.product-image::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s ease; }
.product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .65s var(--ease); }
.product[data-category="sofas"] .product-image { padding: clamp(.75rem, 2vw, 1.5rem); }
.product[data-category="sofas"] .product-image img { width: 100%; height: 100%; object-fit: contain; }
.product button:hover .product-image::after, .product button:focus-visible .product-image::after { box-shadow: inset 0 0 0 1px var(--green); }
.product button:hover img, .product button:focus-visible img { transform: scale(1.045); }
.product-info { padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.product-info > span:first-child { min-width: 0; }
.product-info strong { display: block; font-size: 1.55rem; letter-spacing: -.025em; line-height: 1.1; }
.product-info small { display: block; margin-top: .35rem; color: var(--muted); font-size: .75rem; }
.product-arrow { width: 2.75rem; height: 2.75rem; flex: 0 0 auto; border-color: var(--line); color: var(--green); }
.product button:hover .product-arrow, .product button:focus-visible .product-arrow { border-color: var(--green); background: var(--green); color: var(--white); transform: rotate(45deg); }

footer { min-height: 11rem; padding: 2.5rem max(2rem, calc((100% - 82.5rem) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; background: var(--green-deep); color: var(--white); }
footer p { margin: 0; color: #d7e5dc; font-size: .8rem; }
.back-to-top { justify-self: end; display: inline-flex; align-items: center; gap: .75rem; font-size: .8rem; }
.contact { width: min(100%, var(--content-width)); margin: 0 auto; padding: var(--section-space) var(--page-gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); background: var(--green); color: var(--white); }
.contact-copy h2 { max-width: 10ch; margin: 0; font-size: clamp(3rem, 5vw, 4.8rem); letter-spacing: -.035em; line-height: 1; }
.contact-copy p { max-width: 28rem; margin: 1.75rem 0 0; color: #f0f7f2; line-height: 1.75; }
#contact-form { align-self: end; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
#contact-form label { display: grid; gap: .6rem; }
#contact-form label > span { color: #dceae1; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
#contact-form input, #contact-form textarea { width: 100%; min-height: 3rem; padding: .7rem 0; border: 0; border-bottom: 1px solid #ffffff70; border-radius: 0; outline: 0; background: transparent; color: var(--white); font: inherit; resize: vertical; transition: border-color .25s ease, background-color .25s ease; }
#contact-form textarea { min-height: 7rem; }
#contact-form input:focus, #contact-form textarea:focus { border-color: var(--white); background: #ffffff0a; }
.message-field { grid-column: 1 / -1; }
.contact-submit { grid-column: 1 / -1; width: fit-content; min-height: 3.5rem; padding: 0 1.25rem; display: inline-flex; align-items: center; gap: 2rem; border: 0; background: var(--white); color: var(--green-deep); cursor: pointer; transition: background-color .25s ease, gap .35s var(--ease); }
.contact-submit:hover { gap: 2.5rem; background: var(--green-soft); }
.form-status { grid-column: 1 / -1; min-height: 1.5rem; margin: -.75rem 0 0; color: #f0f7f2; font-size: .85rem; }

dialog { width: min(70rem, calc(100vw - 3rem)); max-height: calc(100vh - 3rem); padding: 0; border: 0; background: var(--canvas); color: var(--ink); box-shadow: 0 1.5rem 5rem #0b211799; overflow: auto; }
dialog::backdrop { background: #10281ee0; backdrop-filter: blur(4px); }
.close { position: sticky; z-index: 2; top: 1rem; float: right; width: 3rem; height: 3rem; margin: 1rem 1rem -4rem 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; transition: background-color .25s ease, color .25s ease, transform .3s var(--ease); }
.close:hover { background: var(--green); color: var(--white); transform: rotate(90deg); }
.detail-head { padding: 3.5rem 6rem 2rem; border-bottom: 1px solid var(--line); }
.detail-head h2 { margin: 0; font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -.035em; line-height: 1; }
.detail-head p { margin: .65rem 0 0; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.detail-gallery { display: grid; grid-template-columns: 1fr; }
.detail-gallery.has-detail { grid-template-columns: 1fr 1fr; }
.detail-gallery figure { min-width: 0; margin: 0; padding: 2rem; background: var(--paper); }
.detail-gallery figure + figure { border-left: 1px solid var(--line); }
.detail-gallery img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: contain; mix-blend-mode: multiply; }
.detail-gallery:not(.has-detail) img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 19rem); margin-inline: auto; aspect-ratio: auto; }
.detail-gallery figcaption { margin-top: 1rem; color: var(--muted); font-size: .75rem; }

@media (max-width: 70rem) {
  .site-header { min-height: auto; padding: 1.25rem var(--page-gutter); display: grid; grid-template-columns: 1fr auto; gap: 1rem; }
  .menu-toggle { min-height: 2.75rem; padding: 0; display: inline-flex; align-items: center; gap: .65rem; border: 0; background: transparent; font-size: .8rem; cursor: pointer; }
  .menu-icon { width: 1.35rem; display: grid; gap: .35rem; }
  .menu-icon i { width: 100%; height: 1px; display: block; background: currentColor; transition: transform .3s var(--ease); }
  .menu-open .menu-icon i:first-child { transform: translateY(.2rem) rotate(45deg); }
  .menu-open .menu-icon i:last-child { transform: translateY(-.2rem) rotate(-45deg); }
  .site-header nav { grid-column: 1 / -1; width: 100%; max-height: 0; display: grid; gap: 0; overflow: hidden; opacity: 0; visibility: hidden; font-size: 1rem; transition: opacity .25s ease, visibility .25s ease; }
  .site-header.menu-open nav { max-height: 20rem; padding-top: .6rem; border-top: 1px solid var(--line); opacity: 1; visibility: visible; }
  .site-header nav a { min-height: 2.9rem; display: flex; align-items: center; }
  .catalog-link { display: none; }
  h1 { font-size: clamp(3rem, 5.8vw, 4.25rem); }
  .section-intro { gap: 2rem; }
  .category-index a { padding-inline: .75rem; }
}

@media (max-width: 48rem) {
  .hero { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .hero-copy { padding-block: 3rem; }
  h1 { font-size: clamp(3.25rem, 9vw, 4.5rem); }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-photo > img { position: absolute; inset: 0; }
  .section-intro { grid-template-columns: 1fr; gap: 1.25rem; }
  .section-intro h2 { max-width: 19ch; font-size: clamp(2.5rem, 7vw, 3.5rem); }
  .section-intro p { margin: 0; }
  .category-index { display: flex; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .category-index a { flex: 0 0 auto; min-width: 8.5rem; padding: 1rem; scroll-snap-align: start; }
  .category-index span { font-size: 1.3rem; white-space: nowrap; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer { grid-template-columns: 1fr auto; }
  footer p { display: none; }
  .contact { grid-template-columns: 1fr; }
  .contact-copy h2 { max-width: 14ch; }
}

@media (max-width: 37rem) {
  html { scroll-padding-top: 1rem; }
  .site-header { min-height: auto; padding: 1.4rem 1.25rem 1.1rem; display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; }
  .brand { font-size: 2rem; }
  .menu-toggle { min-height: 2.75rem; padding: 0; display: inline-flex; align-items: center; gap: .65rem; border: 0; background: transparent; font-size: .8rem; cursor: pointer; }
  .menu-icon { width: 1.35rem; display: grid; gap: .35rem; }
  .menu-icon i { width: 100%; height: 1px; display: block; background: currentColor; transition: transform .3s var(--ease); }
  .menu-open .menu-icon i:first-child { transform: translateY(.2rem) rotate(45deg); }
  .menu-open .menu-icon i:last-child { transform: translateY(-.2rem) rotate(-45deg); }
  .site-header nav { grid-column: 1 / -1; width: 100%; max-height: 0; display: grid; gap: 0; overflow: hidden; opacity: 0; visibility: hidden; font-size: 1rem; transition: opacity .25s ease, visibility .25s ease; }
  .site-header.menu-open nav { max-height: 20rem; padding-top: .6rem; border-top: 1px solid var(--line); opacity: 1; visibility: visible; }
  .site-header nav a { min-height: 2.9rem; display: flex; align-items: center; }
  .hero { width: 100%; min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .hero-copy { padding: 3.5rem 1.5rem 3.25rem; }
  h1 { max-width: none; font-size: clamp(3.25rem, 15vw, 4.15rem); }
  .hero-copy p { max-width: 23rem; margin-top: 1.75rem; }
  .primary-action { margin-top: 2rem; }
  .hero-photo { aspect-ratio: 1 / 1; }
  .photo-caption { right: 1.25rem; bottom: 1.25rem; left: 1.25rem; }
  .hero-foot { padding: 0 1.5rem; }
  .collection { padding: var(--section-space) var(--page-gutter) 0; }
  .section-intro { display: block; }
  .section-intro h2 { font-size: clamp(2.5rem, 10vw, 3.25rem); }
  .section-intro p { margin-top: 1.25rem; }
  .category-index { margin: 2rem 0 var(--section-space); }
  .group-heading { align-items: end; }
  .group-heading h3 { max-width: 10ch; font-size: 2rem; }
  .grid { gap: 2.25rem .85rem; }
  .product-info { align-items: flex-start; gap: .5rem; }
  .product-info strong { font-size: 1.3rem; overflow-wrap: anywhere; }
  .product-arrow { display: none; }
  footer { min-height: 13rem; padding: 2.5rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
  .back-to-top { margin-top: .5rem; }
  .contact { width: 100%; padding: var(--section-space) var(--page-gutter); gap: 2.5rem; }
  .contact-copy h2 { font-size: clamp(2.8rem, 13vw, 3.7rem); }
  #contact-form { grid-template-columns: 1fr; gap: 1.6rem; }
  .message-field, .contact-submit, .form-status { grid-column: 1; }
  dialog { width: calc(100vw - 1.5rem); max-height: calc(100vh - 1.5rem); }
  .detail-head { padding: 4.5rem 1.5rem 1.5rem; }
  .detail-head h2 { font-size: clamp(2.6rem, 13vw, 3.75rem); }
  .detail-gallery.has-detail { grid-template-columns: 1fr; }
  .detail-gallery figure { padding: 1.25rem; }
  .detail-gallery:not(.has-detail) img { max-height: calc(100vh - 16rem); }
  .detail-gallery figure + figure { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 80rem) {
  .site-header { gap: 1rem; }
  .site-header > .catalog-link { display: none; }
}
@media (max-width: 70rem) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto auto; }
  .site-header > .brand { grid-column: 1; grid-row: 1; }
  .language-switch { grid-column: 2; grid-row: 1; }
  .menu-toggle { grid-column: 3; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
