/* =====================
   Design tokens
===================== */
:root {
  --color-text: #2e2e2e;
  --color-text-dark: #505050;
  --color-bg: #f0f0f0;
  --color-accent: #d00000;
  --radius-sm: 6px;
  --transition-fast: 0.25s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.7s ease;
  --header-height: 90px;
}

/* =====================
   Reset & base
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Cormorant', serif;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--header-height);
}

/* Global focus style (accessibility) */
:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

/* =====================
   Header
===================== */
.smart-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  width: 100%;
  height: 90px;
  background-color: #f0f0f0; /* sólido absoluto */
  z-index: 1000;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}

.smart-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-content {
  max-width: 1400px;
  margin-inline: auto;
  padding: 0.9rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.smart-header h1 {
  font-weight: 300;
  font-size: clamp(1.6rem, 6vw, 2rem);
  letter-spacing: 0.06em;
}

.home-link {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.home-link:hover,
.home-link:focus-visible {
  opacity: 0.85;
}

.contact-info,
.contact-info a {
  color: var(--color-text);
  font-size: 1.2rem;
  text-decoration: none;
  opacity: 0.9;
}

.contact-info a:hover,
.contact-info a:focus-visible {
  opacity: 0.75;
  text-decoration: underline;
}
.intro {
  max-width: 700px;
  margin: 2rem auto 3rem;
  padding: 0 5vw;
  text-align: center;
  font-size: 1.2rem;
  font-style: italic;
  opacity: 0.9;
}
.about {
  max-width: 700px;
  margin: 2rem auto 3rem;
  padding: 0 5vw;
  text-align: center;
  font-size: 1.2rem;
  font-style: italic;
  opacity: 0.9;
}
.trust-section {
  max-width: 700px;
  margin: 2rem auto 3rem;
  padding: 0 5vw;
  text-align: center;
  font-size: 1rem;
  font-style: normal;
  opacity: 0.9;
}

.trust-bullets {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.trust-bullets li {
  margin-bottom: 0.8rem;
  letter-spacing: 0.03em;
}


/* =====================
   Main Layout Container
===================== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5vw 6rem;
}
/* =====================
   Section Spacing
===================== */
main > section {
  margin-bottom: 8rem;
}

main > section:last-of-type {
  margin-bottom: 0;
}
/* =====================
   Available Works
===================== */
.available h2 {
  text-align: center;
  margin-bottom: 4rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.available .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem; /* menor gap para telas menores */
}

.available .gallery-item {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.image-wrapper img {
  width: 100%;          /* Preenche o container */
  height: auto;         /* Mantém proporção */
  display: block;       /* Remove gaps */
  object-fit: cover;    /* Mantém proporção, corta se necessário */
  max-height: 80vh;     /* Limita a altura a 80% da viewport */
  transition: transform 0.3s ease; /* Se quiseres hover suave */
}
.caption {
  text-align: center;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text);
  margin: 0.8rem 0;
}

.buy-btn {
  align-self: center;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.buy-btn:hover,
.buy-btn:focus-visible {
  background: var(--color-text);
  color: white;
  transform: translateY(-2px);
}

/* =====================
   Sold Works
===================== */
.sold-section {
  padding-top: 4rem;

}

.sold-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.sold-intro {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0.7;
}
.sold-section .gallery-item {
  display: flex;
  flex-direction: column;
}

.sold-section .buy-btn {
  margin-top: 1rem; /* optional spacing */
  align-self: center;
  text-align: center;
  width: auto;
  padding: 0.5rem 1rem;
  display: inline-block;
}

.sold-section .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
}
.sold-section .caption {
  text-align: center;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text);
  margin: 0.8rem 0;
}
.sold-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 15px;
  height: 15px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  z-index: 5;
  pointer-events: none;
  outline: 1px solid #ffffff;
  outline-offset: -1px;
}

.buy-btn.disabled {
  background: #aaa;
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}

.exhibitions {
  max-width: 700px;
  margin: 2rem auto 3rem;
  padding: 0 5vw;
  text-align: center;
  font-size: 1.2rem;
  font-style: italic;
  opacity: 0.9;
}

.exhibitions h2 {
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
}

.exhibitions-intro {
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.exhibitions-list {
  list-style: none;
  padding: 0;
}

.exhibitions-list li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
.section-separator {
  border: none;
  border-top: 1px solid #ddd; /* cor clara, elegante */
  margin: 40px 0;             /* espaçamento acima e abaixo da linha */
}
/* =====================
   Footer
===================== */
footer {
  padding-block: 4rem 2rem;
  padding-inline: 1rem;
  text-align: center;
  font-size: 1.2rem;
  opacity: 0.85;
}

footer a {
  color: var(--color-text);
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  opacity: 0.7;
  text-decoration: underline;
}

.shipping-info {
  font-size: 0.95rem;
  line-height: 2;
  margin-top: 2rem;
  margin-bottom: 1rem;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* =====================
   Back to top
===================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-text);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-medium),
    transform var(--transition-medium),
    background-color var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 0.9;
  visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  opacity: 1;
  transform: translateY(-4px);
  background: var(--color-text-dark);
}
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.lightbox-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
  will-change: transform, opacity;
}

.lightbox-info {
  font-family: 'Cormorant', serif;
  font-size: 1rem;
  line-height: 1.3;
}
/* BOTÃO CLOSE */
.lightbox-close {
  position: fixed;
  top: 30px;
  right: 40px;
  background: transparent;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  position: fixed; /* fixas na tela */
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 2.5rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10000;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* =====================
   Mobile (max-width: 600px)
===================== */

@media (max-width: 600px) {
  :root {
    --header-height: 100px;
  }

  .available .grid,
  .sold-section .grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .smart-header {
    height: auto;
    padding-block: 0.6rem;
    padding-inline: 4vw;
    background-color: #f0f0f0;
  }

  .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 100vw;
  }

  .smart-header h1 {
    font-size: clamp(1rem, 4.5vw, 1.4rem);
    line-height: 1.2em;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    max-width: 95%;
    margin-bottom: 0.2rem;
  }

  .contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
    font-size: clamp(0.8rem, 3vw, 0.95rem);
    width: 100%;
    overflow-wrap: break-word;
    text-align: center;
  }


  .available .gallery-item {
    margin-block-end: 5rem;
  }

  .caption {
    font-size: 1.05rem;
  }

  .buy-btn {
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
  }
}
