/* =========================================================================
   Belas Aves — catálogo público
   ========================================================================= */

/* --------------------------------------------------------------- hero */
.hero {
  border-bottom: 1px solid var(--line-faint);
  background:
    radial-gradient(900px 320px at 12% -10%, oklch(0.50 0.15 152 / 0.07), transparent 60%),
    radial-gradient(700px 300px at 100% 0%, oklch(0.55 0.15 252 / 0.06), transparent 55%);
}
.hero__inner {
  padding-block: 44px 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
@media (min-width: 720px) { .hero__inner { padding-block: 84px 68px; } }

.hero .eyebrow { display: block; }
.eyebrow__sub {
  display: block;
  margin-top: 7px;
  font: 400 11px/1.4 var(--mono);
  letter-spacing: 0.14em;
  color: var(--text-quiet);
}

.hero__title {
  font-size: clamp(2rem, 9vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
}
.hero__title--logo { margin-top: 22px; }
.hero__logoimg {
  display: block;
  width: auto; height: auto;
  max-width: min(440px, 84vw);
  max-height: 190px;
}
@media (min-width: 720px) {
  .hero__logoimg { max-width: 480px; max-height: 210px; }
}
.hero__desc {
  font-weight: 300;
  font-size: clamp(1rem, 4.4vw, 1.125rem);
  line-height: 1.62;
  color: var(--text-muted);
  margin: 22px auto 0;
  max-width: 58ch;
  text-wrap: pretty;
}

.hero__points {
  list-style: none; padding: 0;
  margin: 26px 0 0;
  display: inline-flex; flex-direction: column; gap: 11px;
  text-align: left;
}
.hero__points li {
  display: flex; align-items: flex-start; gap: 11px;
  font: 400 14.5px/1.5 var(--font);
  color: var(--text-muted);
  max-width: 52ch;
}
.hero__points li::before {
  content: ""; flex: none;
  width: 6px; height: 6px; margin-top: 8px;
  border-radius: var(--r-pill); background: var(--live);
}

/* --------------------------------------------------------------- nav de seções */
.secnav {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  padding-top: 28px;
}
.secnav .btn { flex: 1 1 44%; }
@media (min-width: 520px) { .secnav .btn { flex: 0 0 auto; min-width: 180px; } }

/* --------------------------------------------------------------- section */
.catalog, .sorteio { scroll-margin-top: 16px; }
.catalog { padding-block: 44px 56px; }
@media (min-width: 720px) { .catalog { padding-block: 72px 88px; } }

/* faixa destacada para "Aves para reserva" — cresce até a borda da tela */
.catalog--band {
  background: var(--surface);
  border-block: 1px solid var(--line-faint);
  max-width: none;
  padding-inline: 0;
}
.catalog--band > * {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section-head { margin-bottom: 8px; text-align: center; }
.section-head h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
.section-sub { color: var(--text-muted); margin: 0 0 28px; text-align: center; }

/* --------------------------------------------------------------- grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1120px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* --------------------------------------------------------------- bird card */
.bird { display: flex; flex-direction: column; overflow: hidden; }

.bird__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  background-image: repeating-linear-gradient(135deg, oklch(0.90 0.005 285) 0 1px, transparent 1px 9px);
}
.bird__media img { width: 100%; height: 100%; object-fit: cover; }
.bird__media img[data-lb] { cursor: zoom-in; }
.bird__flag {
  position: absolute; left: 12px; top: 12px;
}
.bird__price {
  position: absolute; right: 12px; bottom: 12px;
  background: oklch(0.98 0.002 285 / 0.94);
  border: 1px solid var(--line-soft);
  padding: 5px 10px; border-radius: var(--r-pill);
  font: 500 13px/1 var(--mono); letter-spacing: -0.01em;
  backdrop-filter: blur(4px);
}

.bird__body { display: flex; flex-direction: column; gap: 12px; padding: 18px; flex: 1; }
.bird__name { font-size: 1.375rem; line-height: 1.25; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.bird__toggle { margin-top: auto; }
.bird__toggle svg { transition: transform .2s ease; }
.bird__toggle[aria-expanded="true"] svg { transform: rotate(45deg); }

/* --------------------------------------------------------------- details */
.details {
  display: none;
  border-top: 1px solid var(--line-soft);
  padding: 18px;
  background: var(--canvas);
}
.details[data-open="true"] { display: block; }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; margin: 0; }
@media (max-width: 400px) { .specs { grid-template-columns: 1fr; } }
.specs > div { min-width: 0; }
.specs dt {
  font: 400 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-quiet); margin-bottom: 5px;
}
.specs dd { margin: 0; font-weight: 500; }
.spec--full { grid-column: 1 / -1; }
.spec--full dd { font-weight: 400; color: var(--text-muted); }

.details h4 {
  font: 400 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-quiet); font-weight: 400;
  margin: 22px 0 12px;
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.mtile {
  position: relative; display: block; padding: 0; margin: 0;
  width: 100%; aspect-ratio: 1/1;
  border: 1px solid var(--line-soft); border-radius: 10px;
  overflow: hidden; background: var(--surface-2); cursor: zoom-in;
}
.mtile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mtile--video { background: var(--text); }
.mtile__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.mtile__play svg { width: 38px; height: 38px; }

.parents { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.parent { text-align: center; }
.parent img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line-soft); margin-bottom: 8px;
}
.parent__img { cursor: zoom-in; }
.parent span {
  display: block; font: 400 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-quiet); margin-bottom: 3px;
}
.parent strong { font-size: .9rem; font-weight: 500; }

.details .btn--wa { margin-top: 20px; }

/* --------------------------------------------------------------- states */
.state {
  text-align: center; padding: 56px 20px; color: var(--text-muted);
  border: 1px dashed var(--line); border-radius: var(--r-card); background: var(--surface);
}
.state .spinner { margin: 0 auto 14px; }

/* --------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line-faint); background: var(--surface); margin-top: 24px; }

.footer__inner {
  padding-block: 44px 30px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 12px;
}
.footer__nome { font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; }
.footer__tag { font: 400 13px/1.55 var(--font); color: var(--text-quiet); max-width: 50ch; }

.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 8px; }
.footer__link {
  display: inline-flex; align-items: center; gap: 9px;
  font: 400 14px/1 var(--font); color: var(--text);
  min-height: 28px;
}
.footer__link:hover { color: var(--primary); }
.footer__link svg { width: 16px; height: 16px; flex: none; color: var(--text-quiet); }
.footer__link:hover svg { color: var(--primary); }

.footer__bar {
  border-top: 1px solid var(--line-faint);
  padding-block: 16px 32px;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  justify-content: center; align-items: center; text-align: center;
}
.footer__fine { font: 400 12px/1.7 var(--mono); color: var(--text-quiet); }
.footer__fine a { color: var(--text-quiet); text-decoration: underline; text-underline-offset: 2px; }
.footer__fine a:hover { color: var(--text); }
.footer__top { font: 400 12px/1 var(--mono); color: var(--text-quiet); letter-spacing: 0.04em; }
.footer__top:hover { color: var(--text); }

/* --------------------------------------------------------------- sorteio / rifa */
.sorteio { padding-block: 44px 72px; }
@media (min-width: 720px) { .sorteio { padding-block: 72px 96px; } }

.rifa { padding: 20px; }
@media (min-width: 720px) { .rifa { padding: 28px; } }

.rifa__head { display: flex; flex-direction: column; align-items: center; gap: 16px; }
@media (min-width: 640px) { .rifa__head { flex-direction: row; align-items: flex-start; gap: 22px; } }
.rifa__foto {
  width: 100%; max-width: 420px;
  aspect-ratio: 1 / 1;
  object-fit: cover; cursor: zoom-in;
  border-radius: 12px; border: 1px solid var(--line-soft);
}
@media (min-width: 640px) { .rifa__foto { width: 360px; max-width: none; flex: none; } }
.rifa__info { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.rifa__titulo { font-size: 1.375rem; letter-spacing: -0.02em; }
.rifa__premio { margin: 2px 0 0; color: var(--text-muted); max-width: 46ch; }
.rifa__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }

.rifa__aviso {
  margin: 20px 0 18px;
  padding: 12px 14px;
  border: 1px solid oklch(0.55 0.15 32 / 0.28);
  background: oklch(0.55 0.15 32 / 0.07);
  border-radius: var(--r-input);
  font: 400 13px/1.55 var(--font); color: var(--alert-deep);
  text-align: center;
}
.rifa__aviso strong { color: var(--alert-deep); }

#rifaToggle { margin-top: 4px; }
.rifa__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 6px;
  margin-top: 12px;
}
@media (min-width: 560px) { .rifa__grid { grid-template-columns: repeat(10, 1fr); gap: 8px; } }

.rifa__n {
  aspect-ratio: 1 / 1;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: 500 14px/1 var(--mono);
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}
.rifa__n:hover:not(:disabled):not(.is-on) { border-color: var(--primary); color: var(--primary); }
.rifa__n.is-on {
  background: var(--primary); border-color: var(--primary); color: var(--primary-ink);
  transform: translateY(-1px);
}
.rifa__n.is-sold, .rifa__n:disabled {
  background: oklch(0.55 0.15 32 / 0.16);
  border-color: oklch(0.55 0.15 32 / 0.45);
  color: var(--alert-deep);
  cursor: not-allowed;
}

.rifa__bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: oklch(0.98 0.002 285 / 0.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-soft);
}
.rifa__sel { font: 400 13px/1.4 var(--font); color: var(--text-muted); flex: 1 1 auto; min-width: 160px; }
.rifa__sel strong { color: var(--text); }
.rifa__bar .btn { flex: 0 0 auto; }
@media (max-width: 520px) { .rifa__bar .btn { flex: 1 1 100%; } }

/* --------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: oklch(0.145 0.005 285 / 0.93);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lightbox__body {
  width: min(1000px, 94vw);
  display: flex; align-items: center; justify-content: center;
}
.lightbox__body img,
.lightbox__body video {
  max-width: 100%; max-height: 86vh;
  border-radius: 10px; display: block;
  background: #000;
}
.lb-embed { width: 100%; aspect-ratio: 16 / 9; }
.lb-embed iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.lightbox__close {
  position: absolute; top: 10px; right: 14px;
  width: 44px; height: 44px; border: 0; background: none;
  color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
}
