/* Ajustes mantidos fora do bundle compilado para facilitar futuras correções. */

/* Dourado do Atelier · Índice em todos os destaques, menus e controlos. */
body {
  --primary: var(--gold);
  --primary-foreground: var(--gold-foreground);
  --wave: var(--gold);
  --wave-foreground: var(--gold-foreground);
  --accent: var(--gold);
  --accent-foreground: var(--gold-foreground);
  --ring: var(--gold);
  --gradient-deep: var(--gradient-gold);
}

.site-home .home-partners {
  padding: clamp(36px, 5vw, 64px) 20px;
  background: #fff;
  color: #292b27;
}

.home-partners-inner {
  max-width: 1152px;
  margin-inline: auto;
}

.home-partners h2 {
  margin: 0 0 32px;
  font-family: Oswald, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-align: center;
  text-transform: uppercase;
}

.home-partners-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-partners-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.home-partners-logos img {
  display: block;
  width: 70%;
  max-width: 154px;
  height: 56px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .home-partners-logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px;
  }

  .home-partners-logos img {
    height: 67.2px;
  }
}

.site-testimonial {
  padding: clamp(48px, 6vw, 80px) 24px;
  background: #f6f3ed;
  color: #292b27;
  text-align: center;
}

.site-testimonial-inner {
  max-width: 680px;
  margin-inline: auto;
}

.site-testimonial h2 {
  margin: 0 0 24px;
  color: #806537;
  font-family: Oswald, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-testimonial figure,
.site-testimonial blockquote,
.site-testimonial blockquote p {
  margin: 0;
}

.site-testimonial blockquote {
  font-family: Georgia, serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.6;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.site-testimonial figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  text-align: left;
}

.site-testimonial-author {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-testimonial-photo {
  display: block;
  width: 67.2px;
  height: 67.2px;
  flex-shrink: 0;
  margin: 0;
  border-radius: 50%;
  background: #f6f3ed;
  object-fit: cover;
  object-position: center;
}

.site-testimonial-name {
  display: block;
  font-family: Barlow, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.site-testimonial-detail {
  display: block;
  margin-top: 4px;
  color: #69655d;
  font-size: 13px;
  line-height: 1.6;
}

.signature-page {
  padding-top: 80px;
  background: #090b0d;
  color: #f6f3ed;
}

.signature-intro {
  width: min(100% - 40px, 1152px);
  margin-inline: auto;
  padding-block: clamp(64px, 8vw, 112px);
  display: grid;
  align-items: center;
  gap: 40px;
}

.signature-copy {
  min-width: 0;
}

.signature-eyebrow {
  margin-bottom: 28px;
  color: #c4ae7e;
  font-family: Oswald, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.signature-copy h1 {
  font-family: Georgia, serif;
  font-size: clamp(48px, 6.5vw, 90px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.signature-copy h1 em {
  color: #c4ae7e;
  font-weight: 400;
}

.signature-rule {
  display: block;
  width: 64px;
  height: 1px;
  margin-block: 36px;
  background: #a28b5d;
}

.signature-copy > p:last-child {
  max-width: 480px;
  font-size: 18px;
  line-height: 1.9;
  color: #d0cdc4;
}

.signature-emblem {
  margin: 0;
}

.signature-emblem img {
  display: block;
  width: 100%;
  height: auto;
}

.signature-gold {
  background: #f6f3ed;
  color: #24251f;
  padding-block: clamp(56px, 7vw, 96px);
}

.signature-gold-inner {
  width: min(100% - 40px, 1000px);
  margin-inline: auto;
  display: grid;
  gap: 36px;
  align-items: center;
}

.signature-purity {
  display: grid;
  gap: 14px;
  color: #826b3e;
}

.signature-purity > span {
  font-family: Georgia, serif;
  font-size: clamp(64px, 8vw, 100px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.signature-purity small {
  font-family: Oswald, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signature-gold-inner > p {
  font-size: 20px;
  line-height: 1.85;
}

.signature-closing {
  width: min(100% - 40px, 900px);
  margin-inline: auto;
  padding-block: clamp(64px, 8vw, 112px);
  text-align: center;
}

.signature-closing .signature-rule {
  margin: 0 auto 36px;
}

.signature-closing h2 {
  font-family: Georgia, serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.signature-closing p {
  margin-top: 28px;
  color: #d0cdc4;
  font-size: 18px;
  line-height: 1.8;
}

.signature-closing a {
  display: inline-block;
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid #a28b5d;
  font-size: 14px;
}

.signature-closing a:hover {
  color: #c4ae7e;
}

.signature-page a:focus-visible {
  outline: 2px solid #c4ae7e;
  outline-offset: 5px;
}

@media (min-width: 768px) {
  .signature-intro {
    grid-template-columns: 1fr 1fr;
  }

  .signature-gold-inner {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
  }
}

.history-page {
  padding-top: 80px;
  background: #f6f3ed;
  color: #24251f;
}

.history-wrap {
  width: min(100% - 40px, 1152px);
  margin-inline: auto;
}

.history-eyebrow {
  margin: 0 0 24px;
  color: #826b3e;
  font-family: Oswald, sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.history-intro {
  padding-block: clamp(64px, 9vw, 128px) 56px;
  border-bottom: 1px solid #b6a78666;
}

.history-intro h1 {
  font-family: Georgia, serif;
  font-size: clamp(64px, 10vw, 136px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.history-intro h1 em {
  color: #826b3e;
  font-weight: 400;
}

.history-intro-bottom {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  color: #656358;
  font-size: 15px;
  line-height: 1.7;
}

.history-fine-rule {
  display: block;
  width: 72px;
  height: 1px;
  flex-shrink: 0;
  background: #a28b5d;
}

.history-chapter {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: clamp(64px, 8vw, 112px);
}

.history-page h2 {
  margin-bottom: 32px;
  font-family: Georgia, serif;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.history-copy > p:not(.history-eyebrow),
.history-factory-copy {
  font-size: 18px;
  line-height: 1.85;
  color: #59594f;
}

.history-copy > p + p {
  margin-top: 24px;
}

.history-photo {
  margin: 0;
  min-width: 0;
}

.history-photo-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #e9e3d7, #d4cbbb);
  border: 1px solid #a28b5d55;
}

.history-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid #a28b5d55;
}

.history-photo-number {
  font-family: Georgia, serif;
  font-size: clamp(64px, 9vw, 112px);
  font-style: italic;
  color: #86775788;
}

.history-photo-label {
  position: absolute;
  bottom: 36px;
  font-family: Oswald, sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #615944;
}

.history-photo figcaption {
  display: grid;
  gap: 6px;
  padding-top: 18px;
  font-size: 16px;
}

.history-photo figcaption small {
  font-size: 13px;
  color: #69665c;
}

.history-factory {
  padding-block: clamp(64px, 8vw, 112px);
  background: #20231f;
  color: #f6f3ed;
}

.history-factory .history-eyebrow,
.history-years {
  color: #c4ae7e;
}

.history-years {
  display: block;
  margin-bottom: 32px;
  font-family: Georgia, serif;
  font-size: 24px;
}

.history-factory-copy {
  max-width: 800px;
  color: #d0d0c4;
}

.history-photo-pair {
  display: grid;
  gap: 40px;
  margin-top: 56px;
}

.history-factory .history-photo-placeholder {
  aspect-ratio: 5 / 4;
  background: linear-gradient(145deg, #353a32, #272b24);
}

.history-factory .history-photo-number {
  color: #c4ae7e88;
}

.history-factory .history-photo-label,
.history-factory .history-photo figcaption small {
  color: #c4beab;
}

.history-perspective {
  align-items: start;
}

.history-closing {
  padding-block: 56px 96px;
  border-top: 1px solid #b6a78666;
  text-align: center;
}

.history-closing .history-fine-rule {
  margin: 0 auto 32px;
}

.history-closing p {
  max-width: 850px;
  margin-inline: auto;
  font-family: Georgia, serif;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.45;
}

.history-closing a {
  display: inline-block;
  margin-top: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid #a28b5d;
  font-size: 14px;
}

.history-closing a:hover {
  color: #826b3e;
}

.history-page a:focus-visible {
  outline: 2px solid #826b3e;
  outline-offset: 5px;
}

@media (min-width: 768px) {
  .history-chapter {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .history-photo-pair {
    grid-template-columns: 1fr 1fr;
  }

  .history-photo-pair > :last-child {
    margin-top: 64px;
  }
}

.site-exhibitions-layout {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: center;
}

.site-exhibitions-art {
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink);
}

.site-exhibitions-art img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.site-exhibitions-programme {
  min-width: 0;
}

.site-exhibitions-empty {
  display: grid;
  gap: 1rem;
  margin-block: 2rem;
  padding-block: 2rem;
  border-block: 1px solid var(--border);
  color: var(--muted-foreground);
  line-height: 1.7;
}

.site-exhibitions-empty svg {
  color: var(--gold);
}

.site-exhibitions-contact {
  color: var(--foreground);
  text-underline-offset: 5px;
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.site-exhibitions-contact:hover {
  color: var(--gold);
}

.site-exhibitions-contact:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

@media (min-width: 768px) {
  .site-exhibitions-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.site-hero-logo {
  display: block;
  width: min(100%, 28rem);
  height: auto;
  margin-bottom: 2rem;
}

.site-contact-cta {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: background-color 180ms ease;
}

.site-contact-cta:hover,
.site-contact-cta:focus-visible {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.site-contact-cta:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

body > header {
  z-index: 50;
  box-sizing: border-box;
  height: 80px;
  display: grid;
  grid-template-rows: 1fr 2px;
  padding-block: 0;
  transition: none;
  background: #fff;
  border-bottom: 0;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.06);
}

body > header > .site-header-inner {
  width: 100%;
  min-width: 0;
  padding-block: 16px;
}

/* Mantém as linhas e camadas do conteúdo abaixo do menu fixo ao fazer scroll. */
body > main {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

header #nav-menu a {
  color: #111;
}

header #nav-menu a:hover,
header #nav-menu a:focus-visible,
header #nav-menu a[aria-current="page"] {
  color: var(--gold);
}

.site-header-rule {
  position: static;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.site-header-logo {
  flex-shrink: 0;
}

.site-header-logo img {
  display: block;
  width: auto;
  object-fit: contain;
}

.site-header-bag {
  display: none;
}

.site-header-logo:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Garante que a navegação desktop nunca invade o layout mobile antes da hidratação. */
@media (max-width: 1023.98px) {
  body > header {
    box-sizing: border-box;
    height: 77px;
    padding-block: 0;
    transition: none;
  }

  header #mobile-menu-btn {
    color: #111;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    justify-self: start;
  }

  .site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    height: 100%;
  }

  body > header > .site-header-inner {
    padding-block: 0;
    min-height: 0;
  }

  .site-header-logo {
    justify-self: center;
  }

  .site-header-bag {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    justify-self: end;
    color: #111;
  }

  header #nav-menu {
    display: none !important;
  }
}

/* Logo do cabeçalho e do rodapé 25% maiores (tamanho base: 2rem). */
header img.h-8,
footer img.h-8 {
  height: 2.5rem;
}


/* Enquadramento mais baixo para revelar mais da parte inferior do retrato. */
img[src*="guilherme-shaper.jpg"] {
  object-position: center 65%;
}

/* Altura 30% maior: 420 -> 546px e 640 -> 832px no desktop. */
#shaper-photo {
  min-height: 546px;
  transform: translateY(-40px);
}

@media (min-width: 1024px) {
  #shaper-photo {
    min-height: 832px;
  }
}

/* Menu mobile independente do framework: continua funcional mesmo se a hidratação falhar. */
#site-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-start;
  background: rgb(0 0 0 / 0.46);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

#site-mobile-overlay[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

#site-mobile-panel {
  width: min(88vw, 380px);
  height: 100dvh;
  overflow-y: auto;
  background: var(--background, #fff);
  color: var(--foreground, #111827);
  border-right: 1px solid var(--border, #e5e7eb);
  box-shadow: 18px 0 55px rgb(0 0 0 / 0.18);
  transform: translateX(-100%);
  transition: transform 220ms ease;
}

#site-mobile-overlay[data-open="true"] #site-mobile-panel {
  transform: translateX(0);
}

.site-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.site-mobile-title {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-mobile-close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-mobile-close svg {
  width: 24px;
  height: 24px;
}

.site-mobile-nav {
  display: grid;
  padding: 0.75rem 1.25rem 2rem;
}

.site-mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  color: inherit;
  font-family: Oswald, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-mobile-nav a:hover,
.site-mobile-nav a:focus-visible,
.site-mobile-nav a[aria-current="page"] {
  color: var(--gold);
}

.site-mobile-nav a:focus-visible,
.site-mobile-close:focus-visible,
button[aria-label="Menu"]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

body.site-mobile-menu-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  #site-mobile-overlay {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #site-mobile-overlay,
  #site-mobile-panel {
    transition: none;
  }
}

/* A imagem regressa ao preto e branco quando o cartão sai da zona de leitura. */
@media (hover: none) and (pointer: coarse) {
  .site-home main a.group > img {
    filter: grayscale(1);
    opacity: 0.45;
    scale: 1.05;
    transition: filter 900ms ease-out, opacity 900ms ease-out, scale 900ms ease-out;
  }

  .site-home main a.group.is-in-view > img {
    filter: grayscale(0);
    opacity: 0.7;
    scale: 1;
  }
}

@media (hover: none) and (pointer: coarse) and (prefers-reduced-motion: reduce) {
  .site-home main a.group > img,
  .site-home main a.group.is-in-view > img {
    scale: 1;
    transition: none;
  }
}

/* Mensagem de confirmação do formulário de contacto. */
.site-form-status {
  grid-column: 1 / -1;
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--gold);
}

/* Fade de entrada: o conteudo fica visivel por defeito, mesmo sem JavaScript. */
.scroll-reveal {
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 900ms ease, transform 1200ms var(--reveal-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.scroll-reveal.is-reveal-pending {
  opacity: 0;
  transform: translateY(38px);
}

/* O texto acompanha a entrada do cartao com um atraso discreto. */
.site-home a.scroll-reveal > h2,
.site-home a.scroll-reveal > span {
  translate: 0 0;
  transition: translate 1100ms var(--reveal-ease), color 500ms ease, width 700ms var(--reveal-ease);
  transition-delay: calc(var(--reveal-delay, 0ms) + 70ms);
}

.site-home a.scroll-reveal.is-reveal-pending > h2,
.site-home a.scroll-reveal.is-reveal-pending > span {
  translate: 0 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .page-arrive {
    animation: hero-arrive 1300ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
  }

  .site-home main > section:first-child > img {
    animation: hero-settle 2200ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .site-home .site-hero-logo,
  .site-home .site-hero-logo ~ p {
    animation: hero-arrive 1300ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .site-home .site-hero-logo ~ p {
    animation-delay: 140ms;
  }

  .site-home .site-hero-logo ~ p:last-child {
    animation-delay: 260ms;
  }
}

@keyframes hero-settle {
  from { transform: scale(1.045); }
  to { transform: scale(1); }
}

@keyframes hero-arrive {
  from { opacity: 0; translate: 0 20px; }
  to { opacity: 1; translate: 0 0; }
}

.scroll-reveal:focus-within {
  opacity: 1;
  transform: none;
  transition: none;
}

.site-home a.scroll-reveal:focus-within > h2,
.site-home a.scroll-reveal:focus-within > span {
  translate: none;
  transition: none;
}

@media (max-width: 767px) {
  .page-arrive {
    animation-duration: 950ms;
  }

  .scroll-reveal {
    transition-duration: 650ms, 900ms;
  }

  .scroll-reveal.is-reveal-pending {
    transform: translateY(22px);
  }

  .site-home a.scroll-reveal.is-reveal-pending > h2,
  .site-home a.scroll-reveal.is-reveal-pending > span {
    translate: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce), print {
  .page-arrive,
  .scroll-reveal,
  .scroll-reveal.is-reveal-pending,
  .site-home a.scroll-reveal > h2,
  .site-home a.scroll-reveal > span,
  .site-home a.scroll-reveal.is-reveal-pending > h2,
  .site-home a.scroll-reveal.is-reveal-pending > span,
  .site-home main > section:first-child > img,
  .site-home .site-hero-logo,
  .site-home .site-hero-logo ~ p {
    opacity: 1;
    transform: none;
    translate: none;
    transition: none;
    animation: none;
  }
}
