*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── MODO ESCURO (padrão) ── */
:root {
  --bg:          #0a0a0a;
  --bg-alt:      #111111;
  --bg-card:     #141414;
  --texto:       #f0e6d0;
  --texto-suave: #8a7a65;
  --dourado:     #c9a84c;
  --dourado-dim: rgba(201,168,76,0.15);
  --borda:       rgba(201,168,76,0.15);
  --navbar-bg:   #050505;
  --branco:      #ffffff;
}

/* ── MODO CLARO ── */
[data-theme="light"] {
  --bg:          #ffffff;
  --bg-alt:      #f5f0e8;
  --bg-card:     #ffffff;
  --texto:       #0a0a0a;
  --texto-suave: #6b5c45;
  --dourado:     #b8922e;
  --dourado-dim: rgba(184,146,46,0.1);
  --borda:       rgba(184,146,46,0.2);
  --navbar-bg:   #ffffff;
  --branco:      #0a0a0a;
}

html { scroll-behavior: auto; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--texto);
  font-size: 16px;
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navbar-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 68px;
  border-bottom: 1px solid var(--borda);
  transition: background 0.4s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--texto);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav-logo {
  height: 38px;
  width: 38px;
  object-fit: contain;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.7);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.08), 0 0 14px rgba(201,168,76,0.18);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.nav-brand:hover .nav-logo {
  border-color: var(--dourado);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.14), 0 0 22px rgba(201,168,76,0.32);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--texto-suave);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--dourado); }

.nav-endereco {
  font-size: 0.72rem;
  color: var(--texto-suave);
  letter-spacing: 0.06em;
  padding-left: 1.5rem;
  border-left: 1px solid var(--borda);
  white-space: nowrap;
}

/* Botão modo claro/escuro */
.theme-toggle {
  background: none;
  border: 1px solid var(--borda);
  color: var(--texto-suave);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s;
  flex-shrink: 0;
}

.theme-toggle:hover { border-color: var(--dourado); color: var(--dourado); }

.theme-toggle svg { width: 15px; height: 15px; fill: currentColor; }

.icon-moon { display: block; }
.icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 30px;
  height: 30px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--texto);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease;
  transform-origin: center;
  position: absolute;
}

.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(2) { transform: translateY(0); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }

.nav-toggle.open span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--dourado-dim) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}

/* Entrada animada — estado inicial */
.hero-logo-wrap,
.hero-label,
.hero h1,
.hero-sub,
.btn-primary {
  opacity: 0;
  transform: translateY(18px);
}

/* Cada elemento entra em sequência */
.hero-logo-wrap { animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.2s forwards; }
.hero-label  { animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.45s forwards; }
.hero h1     { animation: heroFadeUp 1s  cubic-bezier(0.16,1,0.3,1) 0.65s forwards; }
.hero-sub    { animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.9s forwards; }
.btn-primary { animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 1.1s forwards; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.hero-logo-wrap::before,
.hero-logo-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-logo-wrap::before {
  inset: -14px;
  border: 1px solid rgba(201,168,76,0.22);
  animation: logoRingPulse 3.5s ease-in-out 1.5s infinite;
}

.hero-logo-wrap::after {
  inset: -28px;
  border: 1px solid rgba(201,168,76,0.1);
  animation: logoRingPulse 3.5s ease-in-out 2.2s infinite;
}

@keyframes logoRingPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.018); }
}

.hero-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.75);
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.1),
    0 0 28px rgba(201,168,76,0.22),
    0 0 60px rgba(201,168,76,0.09);
}

.hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dourado);
  font-weight: 400;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  color: var(--texto);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--texto-suave);
  font-weight: 300;
  max-width: 420px;
  line-height: 1.8;
}

.btn-primary {
  margin-top: 0.5rem;
  display: inline-block;
  padding: 0.75rem 2.5rem;
  border: 1px solid var(--dourado);
  color: var(--dourado);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
  background: var(--dourado);
  color: var(--bg);
}

.hero-line {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--dourado));
  animation: heroFadeUp 1.2s cubic-bezier(0.16,1,0.3,1) 1.4s forwards;
  opacity: 0;
}

/* ── SHARED ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--texto);
  letter-spacing: -0.01em;
}

/* ── SOBRE ── */
.sobre {
  padding: 7rem 2rem;
  background: var(--bg-alt);
  transition: background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.sobre::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 360px;
  height: 360px;
  background-image: url('download.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.07;
  pointer-events: none;
  filter: invert(1) sepia(1) saturate(2) hue-rotate(355deg);
}

.sobre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--borda);
}

.sobre-card {
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid var(--borda);
  transition: background 0.3s;
}

.sobre-card:last-child { border-right: none; }
.sobre-card:not(:first-child) { padding-left: 2rem; }

.sobre-card:hover { background: var(--dourado-dim); }

.card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--dourado);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.sobre-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--texto);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.sobre-card p {
  font-size: 0.875rem;
  color: var(--texto-suave);
  line-height: 1.8;
  font-weight: 300;
}

/* ── CATÁLOGO ── */
.catalogo {
  padding: 7rem 2rem;
  background: var(--bg);
  transition: background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.catalogo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background-image: url('download.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.045;
  pointer-events: none;
  filter: invert(1) sepia(1) saturate(2) hue-rotate(355deg);
  z-index: 0;
}

.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  background: transparent;
  border: none;
}

.bird-card {
  background: var(--bg-card);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: default;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--borda);
  border-radius: 16px;
  overflow: hidden;
}

.bird-card:hover {
  background: var(--bg-alt);
  box-shadow: 0 8px 30px rgba(201,168,76,0.08);
  transform: translateY(-3px);
}

.bird-foto {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--borda);
}

.bird-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.bird-card:hover .bird-foto img {
  transform: scale(1.04);
}

.bird-foto-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.bird-foto-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.2;
  stroke: var(--dourado);
}

.bird-foto-placeholder span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texto-suave);
  opacity: 0.6;
}

.bird-body {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bird-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.bird-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--texto);
  line-height: 1.2;
}

.badge-sexo {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--dourado);
  color: var(--dourado);
  border-radius: 999px;
}

.badge-macho { border-color: var(--dourado); color: var(--dourado); }
.badge-femea { border-color: var(--dourado); color: var(--dourado); }

.bird-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--borda);
}

.bird-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.bird-meta-row .label {
  color: var(--texto-suave);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.bird-meta-row .value {
  color: var(--texto);
  font-weight: 500;
}

.btn-genealogia {
  width: 100%;
  padding: 0.55rem;
  background: transparent;
  border: 1px solid var(--dourado);
  color: var(--dourado);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.btn-genealogia:hover {
  background: var(--dourado);
  color: var(--bg);
}

/* ── MODAL ── */
.modal-overlay {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--borda);
  padding: 3rem;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--texto-suave);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover { color: var(--dourado); }

.modal-tag {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 0.5rem;
}

#modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--texto);
  margin-bottom: 2rem;
  text-align: left;
}

.modal-content {
  font-size: 0.875rem;
  color: var(--texto-suave);
  line-height: 1.8;
}

.genealogia-placeholder {
  padding: 2.5rem 1rem;
  text-align: center;
  border: 1px solid var(--borda);
  color: var(--texto-suave);
  font-size: 0.85rem;
  line-height: 2;
}

.genealogia-placeholder strong {
  display: block;
  color: var(--texto);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

/* ── CONTATO ── */
.contato {
  padding: 7rem 2rem;
  background: var(--bg-alt);
  transition: background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contato::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -80px;
  width: 380px;
  height: 380px;
  background-image: url('download.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.07;
  pointer-events: none;
  filter: invert(1) sepia(1) saturate(2) hue-rotate(355deg);
}

.contato .section-header h2 { color: var(--texto); }

.contato-sub {
  font-size: 0.875rem;
  color: var(--texto-suave);
  font-weight: 300;
  margin-bottom: 3.5rem;
}

.contato-lista {
  display: flex;
  flex-direction: column;
  max-width: 480px;
}

.contato-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--borda);
  transition: padding-left 0.3s ease;
}

.contato-item:first-child { border-top: 1px solid var(--borda); }

.contato-item:hover { padding-left: 0.75rem; }

.contato-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dourado);
  font-weight: 400;
}

.contato-valor {
  font-size: 0.9rem;
  color: var(--texto);
  font-weight: 300;
}

.contato-divider { display: none; }

/* ── FOOTER ── */
footer {
  background: var(--navbar-bg);
  padding: 1.5rem 3rem;
  border-top: 1px solid var(--borda);
  transition: background 0.4s ease;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--texto-suave);
  letter-spacing: 0.05em;
}

/* ── WHATSAPP FLUTUANTE ── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}

.whatsapp-float svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .whatsapp-float { bottom: 1.2rem; right: 1.2rem; padding: 0.7rem 1rem; font-size: 0.75rem; }
}

/* ── RESPONSIVE ── */

/* Tablet largo */
@media (max-width: 1100px) {
  .container { padding: 0 1.5rem; }
  .catalogo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet */
@media (max-width: 1024px) {
  .catalogo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet pequeno */
@media (max-width: 860px) {
  .navbar { padding: 0 1.5rem; }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: var(--navbar-bg);
    padding: 0 2rem;
    gap: 1.2rem;
    border-top: 1px solid var(--borda);
    border-bottom: 0px solid var(--borda);
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease, padding 0.4s cubic-bezier(0.16,1,0.3,1), border-bottom-width 0.3s ease;
  }
  .nav-links.open {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
    padding: 1.5rem 2rem;
    border-bottom-width: 1px;
  }
  .nav-toggle { display: flex; }
  .nav-endereco { border-left: none; padding-left: 0; font-size: 0.8rem; }

  .sobre { padding: 4rem 1.5rem; }
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-card { border-right: none; border-bottom: 1px solid var(--borda); padding: 2rem 0; }
  .sobre-card:last-child { border-bottom: none; }
  .sobre-card:not(:first-child) { padding-left: 0; }

  .catalogo { padding: 4rem 1.5rem; }
  .catalogo-grid { grid-template-columns: 1fr; gap: 1rem; }

  .contato { padding: 4rem 1.5rem; }
  .contato-lista { max-width: 100%; }

  .footer-inner { flex-direction: column; gap: 0.4rem; text-align: center; }
  footer { padding: 1.2rem 1.5rem; }
}

/* Mobile */
@media (max-width: 600px) {
  .navbar { padding: 0 1rem; height: 60px; }
  .nav-links { top: 60px; }

  .hero { padding: 4rem 1rem 3rem; min-height: 100svh; }
  .hero-line { display: none; }
  .hero-logo { width: 88px; height: 88px; }
  .hero-sub { font-size: 0.85rem; }
  .hero-sub br { display: none; }

  .sobre { padding: 3.5rem 1rem; }
  .section-header { margin-bottom: 2.5rem; }

  .catalogo { padding: 3.5rem 1rem; }
  .catalogo-grid { grid-template-columns: 1fr; gap: 1rem; }
  .bird-body { padding: 0.8rem; }
  .bird-header h3 { font-size: 1.1rem; }

  .contato { padding: 3.5rem 1rem; }
  .contato-item { flex-direction: column; align-items: flex-start; gap: 0.25rem; padding: 1rem 0; }
  .contato-item:hover { padding-left: 0.4rem; }
  .contato-valor { font-size: 0.85rem; }

  .modal-box { padding: 1.5rem 1rem; width: 95%; max-height: 90vh; }
  #modal-title { font-size: 1.4rem; margin-bottom: 1.2rem; }

  .footer-inner { font-size: 0.7rem; }
}

/* Mobile pequeno */
@media (max-width: 380px) {
  .nav-brand span { font-size: 0.95rem; }
  .catalogo-grid { grid-template-columns: 1fr; }
  .bird-body { padding: 1rem; }
  .btn-primary { padding: 0.65rem 1.5rem; font-size: 0.7rem; }
}
