@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url('assets/playfair-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f5eae4;
  --rose: #f4eae3;
  --ink: #2e201a;
  --muted: #63554d;
  --accent: #824d39;
  --coffee: #321f19;
  --line: #e2d5c9;
  --serif: Playfair, Georgia, serif;
  --gutter: clamp(1rem, 3.8vw, 4rem);
  --shell: 87rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 'DM Sans', sans-serif; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
figure, h1, h2, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
:where(a, button, summary):focus-visible { outline: 2px solid #ae6044; outline-offset: 4px; }
.skip-link { position: fixed; top: .5rem; left: .5rem; padding: .5rem 1rem; background: white; z-index: 3; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.container { width: min(100% - var(--gutter) * 2, var(--shell)); margin-inline: auto; }
.section { padding-block: clamp(3.75rem, 7vw, 7rem); }

.site-header { background: var(--paper); }
.header-inner { min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-block; width: clamp(9.3rem, 14vw, 12rem); flex-shrink: 0; }
.brand img { width: 100%; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1.3rem, 3.4vw, 3.25rem); }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.desktop-nav a:hover { text-decoration: underline; text-underline-offset: .35em; }
.button {
  min-height: 3.25rem;
  padding: .68rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: var(--accent);
  color: #fffaf5;
  border: 1px solid transparent;
  border-radius: .6rem;
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color .18s, color .18s, border-color .18s;
  cursor: pointer;
}
.button:hover { background: #653a2c; }
.button-outline { border-color: #aa8878; color: var(--ink); background: transparent; }
.button-outline:hover { background: var(--rose); border-color: var(--accent); }
.header-cta { min-height: 2.8rem; }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.mobile-menu { display: none; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: .32em; text-decoration-thickness: 1px; font-weight: 600; }
.text-link:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  min-height: clamp(31rem, 43vw, 43rem);
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--coffee);
  color: #fff7ef;
}
.hero-copy {
  padding: clamp(2rem, 4.2vw, 4.5rem);
  padding-right: clamp(1.5rem, 3vw, 3.25rem);
  align-self: center;
}
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--accent); text-transform: uppercase; letter-spacing: .105em; font-size: .875rem; font-weight: 700; line-height: 1.3; }
.eyebrow span { width: 1.65rem; height: 1px; background: currentColor; }
.eyebrow .icon { width: 1.05rem; height: 1.05rem; }
.hero .eyebrow { color: #e7bfa7; }
h1, h2 { font-weight: 700; line-height: 1.02; letter-spacing: -.065em; }
h1 { margin-top: 1.2rem; font-size: clamp(3.15rem, 4.9vw, 5rem); }
h2 { font-size: clamp(2.35rem, 4.6vw, 4.7rem); text-wrap: balance; }
h1 em, h2 em { color: var(--accent); font-family: var(--serif); font-weight: 500; letter-spacing: -.055em; }
h1 em { color: #e5af93; white-space: nowrap; }
.hero-description { max-width: 26rem; margin-top: 1.35rem; font-size: clamp(1rem, 1.35vw, 1.17rem); color: #f3e2d7; }
.hero-actions, .location-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.55rem; }
.hero-actions .button { background: #eac1a9; color: #301c17; }
.hero-actions .button:hover { background: #f6d3bf; }
.hero-actions .button-outline { border-color: #ad8b7a; background: transparent; color: #fff7ef; }
.hero-actions .button-outline:hover { background: #51362a; }
.hero-media { position: relative; min-width: 0; background-color: #ad9580; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.hero-photo-nav {
  position: absolute;
  bottom: clamp(.6rem, 1.75vw, 1.5rem);
  right: clamp(.6rem, 1.75vw, 1.5rem);
  left: clamp(.6rem, 1.75vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .5rem .55rem .5rem .78rem;
  border-radius: .8rem;
  background: rgb(33 22 18 / 87%);
  color: #fff9f3;
}
.hero-photo-name { font-size: .9rem; font-weight: 600; line-height: 1.2; }
.hero-thumbnails { display: flex; gap: .35rem; }
.hero-thumbnails button { padding: .125rem; width: 3rem; height: 2.75rem; border: 1px solid transparent; border-radius: .4rem; background: transparent; cursor: pointer; }
.hero-thumbnails button[aria-pressed="true"], .hero-thumbnails button:hover { border-color: #f6d3bf; }
.hero-thumbnails button img { width: 100%; height: 100%; object-fit: cover; border-radius: .25rem; }

.amenities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.35rem; border: 1px solid var(--line); border-radius: 1.1rem; background: #f6efe8; }
.amenities > div { display: flex; align-items: center; gap: .95rem; padding: clamp(.8rem, 2vw, 1.5rem); }
.amenities > div + div { border-inline-start: 1px solid var(--line); }
.amenity-icon { flex: none; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: .7rem; background: #ead9cc; color: var(--accent); }
.amenity-icon .icon { width: 1.45rem; height: 1.45rem; }
.amenities strong, .amenities p span { display: block; }
.amenities strong { font-size: 1rem; line-height: 1.25; }
.amenities p span { margin-top: .27rem; font-size: .875rem; line-height: 1.35; color: var(--muted); }

.section-intro { display: grid; grid-template-columns: 1.5fr .7fr; align-items: end; gap: 1rem 3rem; margin-bottom: 1.65rem; }
.section-intro h2, .rental-layout h2, .location-copy h2 { margin-top: .75rem; }
.section-intro > p { max-width: 27rem; justify-self: end; color: var(--muted); }
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.gallery-filters button {
  min-height: 44px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99rem;
  padding: .5rem .95rem;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}
.gallery-filters button:hover { border-color: var(--accent); color: var(--accent); }
.gallery-filters button[aria-pressed="true"] { background: var(--coffee); color: white; border-color: var(--coffee); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery figure { position: relative; isolation: isolate; display: grid; grid-template: 1fr / 1fr; }
.gallery figure > * { grid-area: 1 / 1; }
.photo-link { position: relative; display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: 1.43; overflow: hidden; border-radius: 1rem; background: #e3d3c0; }
.photo-link::after { content: ''; position: absolute; inset: 45% 0 0; pointer-events: none; background: linear-gradient(transparent, rgb(35 22 15 / 85%)); }
.photo-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-link:hover img { transform: scale(1.04); }
.photo-link span {
  position: absolute;
  z-index: 1;
  bottom: .75rem;
  right: .75rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fbf6ef;
  color: var(--ink);
  font-size: 1.25rem;
}
.gallery figcaption { align-self: end; position: relative; z-index: 1; padding: .65rem 3.3rem .9rem .95rem; color: #fffdf8; font-size: .9375rem; font-weight: 700; line-height: 1.2; pointer-events: none; }
.gallery.is-mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.gallery.is-mosaic figure { grid-column: span 4; }
.gallery.is-mosaic figure:first-child { grid-column: span 7; grid-row: span 2; }
.gallery.is-mosaic figure:nth-child(2), .gallery.is-mosaic figure:nth-child(3) { grid-column: span 5; }
.gallery.is-mosaic figure:first-child .photo-link { aspect-ratio: auto; min-height: 22rem; }
.gallery.is-mosaic figure:nth-child(2) .photo-link, .gallery.is-mosaic figure:nth-child(3) .photo-link { aspect-ratio: 2.25; }
.gallery-more { display: flex; justify-content: center; margin-top: 1.45rem; }

.rental-section { background: var(--coffee); color: #fff7ef; }
.rental-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem clamp(2.75rem, 7vw, 7.5rem); align-items: center; }
.rental-layout .eyebrow, .rental-layout h2 em { color: #e5af93; }
.rental-copy { margin: 1.15rem 0 1.45rem; max-width: 31rem; color: #f3e2d7; }
.rental-layout .button { background: #eac1a9; color: #301c17; }
.rental-layout .button:hover { background: #f6d3bf; }
.faq { background: #463028; border: 1px solid #72594b; border-radius: 1rem; padding-inline: clamp(.95rem, 2.4vw, 2rem); }
.faq details + details { border-top: 1px solid #72594b; }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; cursor: pointer; list-style: none; padding-block: 1.05rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.25rem; line-height: 1; font-weight: 400; color: #e5af93; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-bottom: 1rem; color: #f3e2d7; }

.location-section { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.location-section > img { width: 100%; height: 100%; min-height: 23rem; object-fit: cover; border-radius: 1.5rem 0 0 1.5rem; }
.location-copy { display: grid; align-content: center; justify-items: start; background: #f1e6db; padding: clamp(1.5rem, 5vw, 5rem); border-radius: 0 1.5rem 1.5rem 0; }
address { margin-top: 1rem; color: var(--muted); font-style: normal; font-size: 1.1rem; }
.location-actions { margin-top: 1.3rem; }
.phone { margin-top: .5rem; font-size: .9375rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .9rem; }
.footer-inner .brand { width: 9rem; }
.footer-inner p, .footer-inner .text-link { color: var(--muted); font-size: .875rem; }
.footer-base { background: var(--coffee); color: #f3e2d7; }
.footer-base-inner { min-height: 3.65rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .1rem 1.5rem; padding-block: .3rem; font-size: .875rem; }
.footer-credit, .footer-credit a { display: inline-flex; align-items: center; }
.footer-credit { gap: .55rem; }
.footer-credit a { min-height: 44px; }
.footer-credit img { width: auto; height: 1.75rem; filter: brightness(0) invert(1); }
.footer-credit a:hover img { opacity: .8; }

body:has(dialog[open]) { overflow: hidden; }
dialog { width: min(95vw, 72rem); max-height: calc(100dvh - 1rem); padding: 0; border: 0; border-radius: .75rem; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgb(31 26 21 / 84%); }
.viewer { position: relative; }
.viewer img { width: 100%; height: auto; max-height: calc(100dvh - 5rem); object-fit: contain; background: #211b17; }
.viewer button { width: 2.75rem; height: 2.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink); line-height: 1; font-size: 1.65rem; }
.viewer button:hover { background: var(--rose); }
.viewer-close { position: absolute; top: .75rem; right: .75rem; }
.viewer-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; text-align: center; padding: .6rem; }
.viewer-controls p { font-size: .9rem; }

@media (max-width: 1060px) {
  .hero { grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); }
  .hero-copy { padding-inline: clamp(1.5rem, 3.7vw, 2.8rem); }
}
@media (max-width: 800px) {
  .header-inner { gap: .5rem; min-height: 4.65rem; }
  .site-header { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); }
  main :is(section[id], #contato) { scroll-margin-top: 5.1rem; }
  .desktop-nav { display: none; }
  .header-cta { padding-inline: .65rem; font-size: .875rem; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border: 1px solid #aa8878;
    border-radius: .6rem;
    cursor: pointer;
    list-style: none;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-icon { width: 1rem; height: .7rem; position: relative; color: var(--ink); }
  .menu-icon::before, .menu-icon::after { content: ''; position: absolute; inset-inline: 0; height: 1.5px; background: currentColor; }
  .menu-icon::before { top: 2px; }
  .menu-icon::after { bottom: 2px; }
  .mobile-menu[open] .menu-icon::before { top: 5px; transform: rotate(45deg); }
  .mobile-menu[open] .menu-icon::after { bottom: 5px; transform: rotate(-45deg); }
  .mobile-menu nav {
    position: absolute;
    top: calc(100% + .6rem);
    right: 0;
    width: min(16rem, calc(100vw - 2rem));
    display: grid;
    padding: .4rem;
    border: 1px solid var(--line);
    border-radius: .8rem;
    background: #fcf6f0;
    box-shadow: 0 .8rem 1.8rem rgb(46 32 26 / 14%);
  }
  .mobile-menu nav a { display: flex; align-items: center; min-height: 44px; padding: .55rem .7rem; border-radius: .4rem; font-weight: 600; text-decoration: none; }
  .mobile-menu nav a:is(:hover, :focus-visible, [aria-current]) { background: #eddcd1; }
  .hero { display: flex; flex-direction: column; min-height: auto; }
  .hero-copy { padding: 1.7rem clamp(1.2rem, 5vw, 2.5rem); align-self: stretch; }
  h1 { font-size: clamp(2.3rem, 9.35vw, 4.6rem); max-width: 16ch; }
  .hero-description { margin-top: 1rem; }
  .hero-actions { margin-top: 1.15rem; }
  .hero-actions .button { min-height: 3rem; padding-inline: .8rem; }
  .hero-media { aspect-ratio: 1.4; }
  .amenities { grid-template-columns: 1fr; margin-top: 1rem; }
  .amenities > div + div { border-inline-start: 0; border-top: 1px solid var(--line); }
  .section-intro, .rental-layout, .location-section { grid-template-columns: 1fr; }
  .section-intro > p { justify-self: start; }
  .gallery, .gallery.is-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .gallery.is-mosaic figure { grid-column: auto; }
  .gallery.is-mosaic figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery.is-mosaic figure:nth-child(2), .gallery.is-mosaic figure:nth-child(3) { grid-column: auto; }
  .gallery.is-mosaic figure:first-child .photo-link { min-height: 0; aspect-ratio: 1.43; }
  .gallery.is-mosaic figure:nth-child(2) .photo-link, .gallery.is-mosaic figure:nth-child(3) .photo-link { aspect-ratio: 1.16; }
  .gallery figcaption { padding: .5rem 2.15rem .65rem .65rem; font-size: .875rem; }
  .photo-link span { bottom: .55rem; right: .5rem; width: 1.45rem; height: 1.45rem; font-size: 1rem; }
  .location-section > img { height: auto; min-height: 0; aspect-ratio: 1.55; border-radius: 1.5rem 1.5rem 0 0; }
  .location-copy { padding-block: 2rem; border-radius: 0 0 1.5rem 1.5rem; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 370px) {
  .header-inner .brand { width: 8rem; }
  .hero-actions .button { padding-inline: .7rem; font-size: .875rem; }
  .hero-actions .icon { width: 1rem; height: 1rem; }
  .hero-thumbnails button { width: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes settle-in {
    from { opacity: .15; transform: translateY(.55rem); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes menu-in {
    from { opacity: 0; transform: translateY(-.25rem); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero-copy, .animate-in { animation: settle-in .5s ease-out both; }
  .mobile-menu[open] nav { animation: menu-in .18s ease-out both; }
  .button:active { transform: translateY(1px); }
}
