:root {
  --bg: #f6f2ea;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #1f1b16;
  --text-soft: #64594a;
  --line: rgba(31, 27, 22, 0.12);
  --gold: #c89b3c;
  --gold-strong: #a77924;
  --shadow: 0 22px 48px rgba(22, 18, 13, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(200, 155, 60, 0.2), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(84, 64, 44, 0.16), transparent 28%),
    linear-gradient(180deg, #fbf8f2 0%, #f5efe4 60%, #f8f4ed 100%);
  animation: pageEnter 0.45s ease both;
  transition: opacity 0.32s ease;
}

body.page-exit {
  opacity: 0;
}

@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  animation: heroKenBurns 20s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  background:
    linear-gradient(165deg, rgba(8, 8, 8, 0.52), rgba(8, 8, 8, 0.32) 42%, rgba(8, 8, 8, 0.56)),
    radial-gradient(circle at 18% 18%, rgba(200, 155, 60, 0.25), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: calc(100% - 20px);
  text-align: center;
  color: #fff;
  animation: fadeUp 0.9s cubic-bezier(0.22, 0.84, 0.44, 1) both;
  animation-delay: 0.35s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 242, 219, 0.92);
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.hero-copy {
  margin: 16px auto 0;
  max-width: 780px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-btn {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero-btn:hover,
.hero-btn:focus-visible {
  transform: translateY(-1px);
}

.hero-btn-primary {
  color: #fff;
  background: linear-gradient(145deg, #d7b96d, #bd8f36);
}

.hero-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.hero-meta {
  margin-top: 18px;
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 251, 242, 0.96);
  background: rgba(35, 28, 20, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.public-main {
  width: calc(100% - 20px);
  margin: 24px auto 42px;
  display: grid;
  gap: 34px;
}

.context-chip-wrap {
  display: flex;
  justify-content: center;
}

.context-chip {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.section-header {
  margin-bottom: 14px;
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.95;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.collection-card {
  position: relative;
  min-height: 190px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.44);
}

.collection-card img,
.photo-tile img,
.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.65));
}

.card-body {
  position: absolute;
  inset: auto 14px 14px 14px;
  color: #fff;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  opacity: 1;
  transform: translateY(0);
  transition: background-color 220ms ease;
}

.collection-card:hover .card-body,
.collection-card:focus-visible .card-body {
  background: rgba(0, 0, 0, 0.3);
}

.collection-card img {
  transition: transform 420ms ease;
}

.collection-card:hover img {
  transform: scale(1.06);
}

.card-body strong {
  font-size: 0.96rem;
}

.card-body small {
  font-size: 0.78rem;
  opacity: 0.9;
}

.masonry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

.photo-tile {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #ded2bf;
  box-shadow: 0 10px 26px rgba(20, 17, 12, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.photo-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(20, 17, 12, 0.18);
}

.photo-tile::before {
  content: "";
  display: block;
  width: 100%;
}

.tile-portrait {
  flex: 0 0 100%;
  max-width: 100%;
}

.tile-portrait::before {
  padding-top: 133%;
}

.tile-landscape {
  flex: 0 0 100%;
  max-width: 100%;
}

.tile-landscape::before {
  padding-top: 132%;
}

.photo-tile img {
  position: absolute;
  inset: 0;
  transition: transform 260ms ease;
}

.photo-tile:hover img {
  transform: scale(1.03);
}

.tile-overlay {
  position: absolute;
  inset: auto 8px 8px 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(14, 12, 10, 0.54);
  opacity: 0;
  transition: opacity 180ms ease;
}

.photo-tile:hover .tile-overlay {
  opacity: 1;
}

.public-footer {
  margin: 24px 0 28px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  padding: 12px;
}

.lightbox.is-open {
  display: block;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(232, 205, 165, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(37, 28, 20, 0.82), rgba(12, 10, 9, 0.94));
  backdrop-filter: blur(18px);
}

.lightbox-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 96vh;
  margin: 2vh auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(246, 233, 213, 0.38);
  background:
    linear-gradient(135deg, rgba(248, 241, 230, 0.98), rgba(226, 212, 192, 0.96));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.lightbox-shell::before {
  content: "";
  position: absolute;
  inset: 14px 14px 132px;
  border-radius: 18px;
  border: 1px solid rgba(109, 83, 54, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 248, 240, 0.18));
  pointer-events: none;
}

.lightbox-image {
  position: absolute;
  inset: 18px 18px 160px;
  width: calc(100% - 36px);
  height: calc(100% - 178px);
  object-fit: contain;
  background:
    radial-gradient(circle at center, rgba(255, 252, 248, 0.98), rgba(238, 225, 204, 0.94));
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 14px rgba(255, 250, 244, 0.92),
    inset 0 0 0 15px rgba(146, 117, 80, 0.08),
    0 18px 40px rgba(69, 45, 21, 0.12);
}

.lightbox-close,
.lightbox-nav,
.lightbox-share {
  position: absolute;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  color: #534132;
  font-size: 1.4rem;
  background: rgba(255, 249, 241, 0.74);
  border: 1px solid rgba(126, 95, 58, 0.18);
}

.lightbox-nav {
  top: calc(50% - 22px);
  width: 52px;
  height: 52px;
  color: #5c4735;
  font-size: 1.8rem;
  background: rgba(255, 248, 239, 0.76);
  border: 1px solid rgba(126, 95, 58, 0.16);
  backdrop-filter: blur(10px);
}

.lightbox-nav.prev {
  left: 24px;
}

.lightbox-nav.next {
  right: 24px;
}

.lightbox-topbar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 92px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 18px;
  color: #5e4935;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.82), rgba(245, 234, 216, 0.66));
  border: 1px solid rgba(160, 125, 83, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(77, 52, 25, 0.08);
}

#lightboxCounter {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lightbox-share {
  position: static;
  min-height: 38px;
  padding: 8px 14px;
  color: #fff7ea;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 231, 197, 0.28);
  background: linear-gradient(135deg, rgba(165, 121, 70, 0.42), rgba(112, 80, 45, 0.26));
}

.lightbox-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 58px;
  font-size: 0.82rem;
  color: rgba(91, 69, 48, 0.92);
}

.lightbox-thumbs {
  position: absolute;
  left: 18px;
  right: 18px;
  top: auto;
  bottom: 14px;
  width: auto;
  height: 64px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 64px;
  grid-auto-rows: unset;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.78), rgba(234, 220, 198, 0.66));
  border: 1px solid rgba(160, 125, 83, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.lightbox-thumb {
  width: 100%;
  border: 1px solid rgba(121, 92, 57, 0.18);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 252, 248, 0.9);
  cursor: pointer;
  opacity: 0.66;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.lightbox-thumb.is-active {
  opacity: 1;
  border-color: rgba(171, 125, 62, 0.82);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(111, 80, 46, 0.16);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-share:hover {
  background: rgba(255, 248, 239, 0.92);
}

.lightbox-thumbs::-webkit-scrollbar {
  height: 8px;
}

.lightbox-thumbs::-webkit-scrollbar-thumb {
  background: rgba(150, 115, 74, 0.22);
  border-radius: 999px;
}

@media (min-width: 461px) {
  .public-main {
    width: calc(100% - 28px);
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile-portrait,
  .tile-landscape {
    flex-basis: calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }

  .tile-portrait::before,
  .tile-landscape::before {
    padding-top: 130%;
  }
}

@media (min-width: 781px) {
  .hero {
    min-height: 84vh;
  }

  .hero-content {
    width: min(1060px, calc(100% - 40px));
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-btn {
    min-height: 48px;
    padding: 12px 26px;
    font-size: 0.9rem;
  }

  .public-main {
    width: min(1180px, calc(100% - 38px));
    margin: 38px auto 60px;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tile-portrait {
    flex-basis: calc((100% - 36px) / 4);
    max-width: calc((100% - 36px) / 4);
  }

  .tile-landscape {
    flex-basis: calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }

  .tile-portrait::before {
    padding-top: 133%;
  }

  .tile-landscape::before {
    padding-top: 62%;
  }

  .lightbox-shell {
    width: min(1600px, 100%);
    height: calc(100vh - 24px);
    margin: 0 auto;
    border-radius: 32px;
  }

  .lightbox-shell::before {
    inset: 24px 116px 132px 24px;
    border-radius: 28px;
  }

  .lightbox-image {
    inset: 42px 156px 140px 42px;
    width: calc(100% - 198px);
    height: calc(100% - 182px);
    border-radius: 24px;
  }

  .lightbox-nav.prev {
    left: 58px;
  }

  .lightbox-nav.next {
    right: 170px;
  }

  .lightbox-topbar {
    left: 58px;
    right: 190px;
    bottom: 72px;
  }

  .lightbox-meta {
    left: 58px;
    right: 190px;
    bottom: 36px;
  }

  .lightbox-thumbs {
    top: 78px;
    right: 18px;
    bottom: 18px;
    left: auto;
    width: 86px;
    height: auto;
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-auto-rows: 72px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 8px;
  }

  .lightbox-thumb.is-active {
    transform: translateX(-2px);
  }

  .lightbox-thumbs::-webkit-scrollbar {
    width: 8px;
    height: auto;
  }
}

@media (min-width: 1281px) {
  .cards-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tile-portrait {
    flex-basis: calc((100% - 60px) / 6);
    max-width: calc((100% - 60px) / 6);
  }

  .tile-landscape {
    flex-basis: calc((100% - 24px) / 3);
    max-width: calc((100% - 24px) / 3);
  }
}

/* ── Scroll hint ─────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: scrollHintBounce 2.4s ease-in-out infinite;
  padding: 0;
}

.scroll-hint svg {
  width: 24px;
  height: 24px;
}

@keyframes scrollHintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.72; }
  50% { transform: translateX(-50%) translateY(9px); opacity: 1; }
}

/* ── Carrossel de prévia ─────────────────────────── */
.photo-strip-wrap {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
  background: linear-gradient(180deg, #ede7da, #f4efe5);
  border-bottom: 1px solid var(--line);
}

.photo-strip-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: stripScroll 72s linear infinite;
}

.photo-strip-wrap:hover .photo-strip-track {
  animation-play-state: paused;
}

@keyframes stripScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.strip-photo {
  width: 220px;
  height: 148px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(20, 17, 12, 0.1);
}

.strip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms ease;
}

.photo-strip-wrap:hover .strip-photo img {
  transform: scale(1.04);
}

@media (min-width: 781px) {
  .photo-strip-track {
    animation-duration: 58s;
  }
}
