/* Ajustes responsivos e de navegação sem alterar a identidade visual. */
html {
  scroll-padding-top: 110px;
}

body {
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

img,
iframe {
  max-width: 100%;
}

.wrap {
  width: min(1320px, calc(100% - clamp(40px, 8vw, 112px)));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.header {
  position: relative;
  min-height: 96px;
  border-bottom: 0;
}

.header .brand-logo img {
  width: 230px;
}

.button,
.home-secondary,
.home-textlink,
.textlink,
.menu-toggle {
  min-height: 44px;
}

.home-textlink,
.textlink {
  display: inline-flex;
  align-items: center;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
a {
  overflow-wrap: break-word;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 88px;
  }

  .header {
    min-height: 78px;
    gap: 18px;
  }

  .header .brand-logo img {
    width: 172px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 88px;
    padding: 9px 12px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--brown);
    cursor: pointer;
  }

  .header nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    width: 100%;
    padding: 8px 20px 16px;
    background: var(--cream);
    border: 1px solid var(--line);
    box-shadow: 0 18px 35px rgba(67, 36, 18, .14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .header nav.open {
    display: grid;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .header nav a:last-child {
    border-bottom: 0;
  }

  .header nav a:hover,
  .header nav a[aria-current] {
    border-bottom-color: var(--terra);
  }

  .home-hero-content,
  .home-gallery-preview,
  .home-intro,
  .home-process,
  .home-collection,
  .home-reviews,
  .section,
  .dark {
    padding-top: clamp(52px, 8vw, 72px);
    padding-bottom: clamp(52px, 8vw, 72px);
  }

  .hero,
  .page-intro,
  .location {
    padding-top: clamp(40px, 7vw, 58px);
  }

  .categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category {
    min-height: 235px;
  }

  .footergrid > div > a:not(.brand) {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .home-hero {
    min-height: 660px;
  }

  .home-hero-content {
    padding-top: 48px;
    padding-bottom: 88px;
  }

  .home-hero-content h1 {
    font-size: clamp(40px, 12vw, 46px);
    line-height: 1.02;
  }

  .home-proof {
    width: 100%;
  }

  .home-proof div {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }

  .home-proof div:last-child {
    border-bottom: 0;
  }

  .gallery-heading > p,
  .home-intro p,
  .lead {
    font-size: 16px;
    line-height: 1.7;
  }

  .collection-year {
    min-height: 300px;
    padding: 34px 24px;
  }

  .location .button {
    width: 100%;
  }

  .location .textlink {
    margin-top: 14px;
    margin-left: 0;
  }

  .closing h2 {
    font-size: clamp(40px, 12vw, 47px);
  }

  .float-wa {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 44px;
    padding: 11px 16px;
  }

  .page-intro h1 {
    font-size: clamp(38px, 11vw, 45px);
    letter-spacing: -1.5px;
  }

  .timeline article {
    padding: 30px 0;
  }

  .history-opening,
  .history-summary,
  .info-box,
  .article-grid > a,
  .contact-grid > a {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 420px) {
  .header .brand-logo img {
    width: 154px;
  }

  .menu-toggle {
    min-width: 48px;
  }

  .menu-toggle span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .home-hero-content h1 br {
    display: none;
  }

  .tile-photo figcaption {
    font-size: 11px;
    line-height: 1.35;
  }

  .categories,
  .fields {
    grid-template-columns: 1fr;
  }

  .category {
    min-height: 205px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footerbottom {
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header nav {
    transition: none;
  }
}
