/* ===== VARIÁVEIS ===== */
:root {
  --cor-principal: #6B7A4E;
  --cor-principal-hover: rgba(107, 122, 78, 0.15);
  --cor-sage: #B9CCAE;
  --cor-sage-claro: #D4DECE;
  --cor-cinza: #A1A1A0;
  --cor-branco-quente: #F5F5F0;
  --cor-verde: #6B7A4E;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* BODY PADRÃO */
body {
  background: url('imagens/casamento.jpg') center/cover no-repeat fixed;
  opacity: 0;
  animation: fadeIn 0.35s ease forwards;
}

body.saindo {
  opacity: 0;
  transition: opacity 0.2s ease;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* OVERLAY */
body::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(20,30,15,0.45);
  top: 0;
  left: 0;
  z-index: -1;
}

/* CERIMÔNIA */
body.cerimonia {
  background: url('imagens/igreja.jpg') center/cover no-repeat fixed;
}

body.cerimonia::before {
  background: rgba(20,30,15,0.45);
}

/* NAV */
nav {
  background: rgba(245,245,240,0.95);
  padding: 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

nav a {
  text-decoration: none;
  color: var(--cor-principal);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

nav a.ativo {
  background: var(--cor-principal);
  color: white;
}

nav a:hover {
  background: var(--cor-principal-hover);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* HERO */
.hero {
  text-align: center;
  color: white;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 20px 20px;
  gap: 10px;
}

.hero h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 72px;
  opacity: 0;
  animation: heroEntrar 1.1s ease 0.1s forwards;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.hero h2 {
  font-size: 22px;
  font-weight: 300;
  opacity: 0;
  animation: heroEntrar 1.1s ease 0.4s forwards;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 16px;
  opacity: 0;
  animation: heroEntrar 1.1s ease 0.7s forwards;
}

.hero-divisor {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.5);
  opacity: 0;
  animation: heroEntrar 1.1s ease 0.55s forwards;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: heroEntrar 1.1s ease 0.9s forwards;
}

.hero-btn {
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.hero-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.hero-btn-principal {
  background: var(--cor-principal);
  color: white;
}

.hero-btn-secundario {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}

@keyframes heroEntrar {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero da cerimônia - menor, sem CTAs */
.hero-cerimonia {
  min-height: 32vh;
}

/* SECTION */
section {
  background: rgba(245,245,240,0.93);
  backdrop-filter: blur(6px);
  margin: 16px auto 40px;
  padding: 36px 30px 30px;
  max-width: 1200px;
  border-radius: 20px;
  text-align: center;
}

/* CONTADOR CIRCULAR */
.contador-circular {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.arco-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.arco-wrap {
  position: relative;
  width: 90px;
  height: 90px;
}

.arco-wrap svg {
  width: 90px;
  height: 90px;
  transform: rotate(-90deg);
}

.arco-track {
  fill: none;
  stroke: var(--cor-sage-claro);
  stroke-width: 4;
}

.arco-prog {
  fill: none;
  stroke: var(--cor-principal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0 214;
  transition: stroke-dasharray 0.8s cubic-bezier(.4,0,.2,1);
}

.arco-inner {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arco-num {
  font-size: 26px;
  font-weight: 600;
  color: #444;
}

.arco-lbl {
  font-size: 11px;
  color: #999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contador-data {
  margin-top: 16px;
  font-size: 13px;
  color: #888;
  letter-spacing: 0.04em;
}

/* CTAs da section */
.section-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.section-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.section-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.section-cta-principal {
  background: var(--cor-principal);
  color: white;
}

.section-cta-secundario {
  background: var(--cor-branco-quente);
  color: var(--cor-principal);
  border: 1.5px solid var(--cor-principal);
}

/* ===== PRESENTES ===== */

/* Barra de controles */
.controles-barra {
  position: sticky;
  top: 52px;
  z-index: 90;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  padding: 8px 0;
  margin-bottom: 12px;
  border-bottom: 0.5px solid rgba(0,0,0,0.07);
}

.controles-topo {
  display: flex;
  gap: 8px;
  align-items: center;
}

.busca-wrap {
  flex: 1;
  position: relative;
}

.busca-icone {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

#busca-presente {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

#busca-presente:focus {
  border-color: var(--cor-principal);
}

.btn-filtros-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  background: white;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  position: relative;
}

.btn-filtros-toggle.ativo {
  border-color: var(--cor-principal);
  color: var(--cor-principal);
  background: rgba(107,122,78,0.06);
}

.filtro-badge {
  background: var(--cor-principal);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Painel colapsável de filtros */
.controles-painel {
  display: none;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.controles-painel.aberto {
  display: flex;
}

#filtro-preco,
#ordenacao {
  flex: 1;
  min-width: 130px;
  padding: 8px 12px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  cursor: pointer;
  background: var(--cor-branco-quente);
  transition: border-color 0.2s;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

#filtro-preco:focus,
#ordenacao:focus {
  border-color: var(--cor-principal);
}

.btn-limpar {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid #ddd;
  background: white;
  color: #888;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-limpar:hover {
  border-color: var(--cor-principal);
  color: var(--cor-principal);
}

.controles-rodape {
  margin-top: 4px;
  min-height: 16px;
}

#contador-resultados {
  font-size: 11px;
  color: #aaa;
}

.lista-presentes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.presente {
  background: var(--cor-branco-quente);
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.presente:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Skeleton loader */
.presente.skeleton img,
.presente.skeleton h3,
.presente.skeleton p,
.presente.skeleton button {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
  color: transparent;
  border: none;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.presente img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.presente h3 {
  font-size: 14px;
  margin: 10px 0 4px;
}

.presente p {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 14px;
}

.presente button {
  margin-top: auto;
  background: var(--cor-principal);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 13px;
}

.presente button:hover {
  transform: scale(1.03);
}

/* Estado reservado */
.presente.reservado button {
  background: var(--cor-sage);
  color: white;
  cursor: not-allowed;
  transform: none;
}

.presente.reservado button:hover {
  transform: none;
}

.badge-reservado {
  display: inline-block;
  background: #f0f0f0;
  color: #888;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 6px;
}

/* Nenhum resultado */
.sem-resultado {
  grid-column: 1 / -1;
  padding: 40px;
  color: #888;
  font-size: 15px;
}

/* ===== MODAL ===== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.modal.ativo {
  opacity: 1;
}

.modal-conteudo {
  background: var(--cor-branco-quente);
  padding: 22px;
  border-radius: 15px;
  text-align: center;
  width: 90%;
  max-width: 350px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

/* Hint visual para arrastar no mobile */
.modal-conteudo::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  display: none;
}

/* Mostrar hint apenas em mobile */
@media (max-width: 600px) {
  .modal-conteudo::before {
    display: block;
  }
}

.modal.ativo .modal-conteudo {
  transform: scale(1);
}

.fechar {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 20px;
  cursor: pointer;
}

.modal-botoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.modal-botoes button {
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: var(--cor-principal);
  color: white;
  cursor: pointer;
}

/* WHATSAPP */
.btn-whatsapp {
  background: #25D366;
  color: white;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
}

.btn-whatsapp img {
  width: 18px;
}

/* WAZE */
.btn-waze {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: #33ccff;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
}

/* ANIMAÇÃO DINHEIRO */
.efeito-dinheiro {
  position: fixed;
  font-size: 24px;
  pointer-events: none;
  animation: subirDinheiro 1s ease-out forwards;
  z-index: 9999;
}

@keyframes subirDinheiro {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-60px) scale(1.5); }
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  color: white;
}

/* ===== BOTÕES PREMIUM ===== */

.btn-pix {
  background: #f1f1f1;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-pix:hover {
  background: #e6e6e6;
  transform: scale(1.05);
}

.btn-fechar {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.btn-fechar:hover {
  color: var(--cor-principal);
  transform: scale(1.05);
}

/* ===== RESPONSIVIDADE ===== */

@media (max-width: 1024px) {
  .lista-presentes {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 55vh;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero h2 {
    font-size: 18px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .section-ctas {
    flex-direction: column;
    align-items: center;
  }

  .section-cta {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .lista-presentes {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .lista-presentes .presente img {
    height: 140px;
    object-fit: cover;
  }

  .presente h3 {
    font-size: 13px;
  }

  .presente p {
    font-size: 13px;
  }

  nav a {
    font-size: 14px;
  }

  section {
    margin: 16px 12px 30px;
    padding: 20px 16px;
  }
}

/* ===== MODO PAISAGEM (HORIZONTAL) EM CELULARES ===== */
@media (max-width: 896px) and (orientation: landscape) {
  /* Barra de filtros MUITO mais compacta */
  .controles-barra {
    position: static;
    padding: 4px 0;
    margin-bottom: 8px;
  }

  .controles-topo {
    gap: 6px;
  }

  #busca-presente {
    padding: 6px 10px 6px 32px;
    font-size: 12px;
  }

  .busca-icone {
    font-size: 12px;
    left: 10px;
  }

  .btn-filtros-toggle {
    padding: 6px 10px;
    font-size: 11px;
  }

  .btn-filtros-toggle svg {
    width: 14px;
    height: 14px;
  }

  .filtro-badge {
    width: 14px;
    height: 14px;
    font-size: 9px;
  }

  .controles-painel {
    gap: 6px;
    margin-top: 6px;
  }

  #filtro-preco,
  #ordenacao {
    padding: 6px 10px;
    font-size: 11px;
    min-width: 100px;
  }

  .btn-limpar {
    padding: 6px 10px;
    font-size: 11px;
  }

  #contador-resultados {
    font-size: 10px;
  }

  /* Grid de presentes mais compacto */
  .lista-presentes {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .presente {
    padding: 8px;
    border-radius: 12px;
  }

  .presente img {
    height: 100px;
    border-radius: 8px;
  }

  .presente h3 {
    font-size: 11px;
    margin: 6px 0 2px;
  }

  .presente p {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .presente button {
    padding: 6px;
    font-size: 10px;
    border-radius: 8px;
  }

  .badge-humor {
    font-size: 8px;
    padding: 2px 5px;
    top: 6px;
    left: 6px;
  }

  /* Nav mais compacto */
  nav {
    padding: 6px;
    gap: 12px;
  }

  nav a {
    font-size: 12px;
    padding: 4px 8px;
  }

  /* Hero mais compacto */
  .hero {
    min-height: 30vh;
    padding: 20px 16px 10px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero h2 {
    font-size: 14px;
  }

  .hero-cerimonia {
    min-height: 25vh;
  }

  /* Section com menos padding */
  section {
    padding: 16px 12px;
    margin: 12px 8px 20px;
  }

  /* Contador menor */
  .arco-wrap,
  .arco-wrap svg {
    width: 55px;
    height: 55px;
  }

  .arco-num {
    font-size: 16px;
  }

  .arco-lbl {
    font-size: 9px;
  }

  .contador-circular {
    gap: 8px;
  }

  .contador-titulo {
    font-size: 28px;
  }

  /* Modal mais compacto no landscape */
  .modal-conteudo {
    padding: 16px;
    max-width: 320px;
  }

  .modal-img-presente {
    max-height: 120px;
  }

  .modal-nome-presente {
    font-size: 14px;
  }

  .modal-botoes button,
  .btn-whatsapp {
    padding: 8px;
    font-size: 12px;
  }

  /* Botões de navegação cerimônia */
  .btn-navegacao-row {
    flex-direction: row;
  }

  .btn-waze,
  .btn-gmaps {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Telas muito pequenas (iPhone SE, etc) em portrait */
@media (max-width: 480px) {
  .lista-presentes {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .presente img {
    height: 120px;
  }

  .presente h3 {
    font-size: 12px;
  }

  .presente button {
    font-size: 11px;
    padding: 8px;
  }
}

/* Desktop: painel de filtros sempre visível */
@media (min-width: 897px) {
  .controles-painel {
    display: flex !important;
  }

  .btn-filtros-toggle {
    display: none;
  }

  .controles-topo {
    flex-wrap: wrap;
  }

  #busca-presente {
    width: 240px;
    flex: none;
  }

  .controles-barra {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .controles-topo,
  .controles-painel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .controles-painel {
    margin-top: 0;
  }

  .controles-barra {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 0 12px;
  }

  .controles-topo,
  .controles-painel {
    flex: none;
  }

  .controles-rodape {
    width: 100%;
    text-align: center;
    margin-top: 4px;
  }
}

/* ===== CERIMÔNIA ===== */

.cerimonia-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: transparent;
  backdrop-filter: none;
  padding: 0 20px;
  max-width: 700px;
  margin: 30px auto 40px;
}

.info-card {
  background: rgba(245,245,240,0.95);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.info-card-header {
  background: var(--cor-principal);
  color: white;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.info-card-body {
  padding: 20px;
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-full {
  grid-column: 1 / -1;
}

.info-item {
  background: var(--cor-sage-claro);
  opacity: 0.9;
  border-left: 3px solid var(--cor-principal);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
}

.info-lbl {
  font-size: 10px;
  color: var(--cor-principal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.info-val {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
}

.tl-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.tl-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cor-principal);
  margin-top: 3px;
}

.tl-dot-festa {
  background: var(--cor-principal);
}

.tl-line {
  width: 2px;
  background: var(--cor-sage);
  flex: 1;
  min-height: 22px;
  margin: 4px 0;
}

.tl-content {
  padding-bottom: 18px;
}

.tl-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--cor-principal);
  margin-bottom: 2px;
}

.tl-time-festa {
  color: var(--cor-principal);
}

.tl-desc {
  font-size: 14px;
  color: #444;
}

/* Botões de navegação */
.local-endereco {
  font-size: 14px;
  color: #555;
  margin-bottom: 14px;
  text-align: center;
}

.btn-navegacao-row {
  display: flex;
  gap: 10px;
}

.btn-waze,
.btn-gmaps {
  flex: 1;
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-waze {
  background: #33ccff;
  color: white;
}

.btn-gmaps {
  background: #4285f4;
  color: white;
}

.btn-waze:hover,
.btn-gmaps:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* Responsividade cerimônia */
@media (max-width: 480px) {
  .btn-navegacao-row {
    flex-direction: column;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-full {
    grid-column: 1;
  }

  .cerimonia-section {
    padding: 0 12px;
  }
}

/* Section compacta — usada só no index */
.section-inicio {
  max-width: 680px;
}

/* ===== ACESSIBILIDADE ===== */
:focus-visible {
  outline: 2px solid var(--cor-principal);
  outline-offset: 3px;
}

/* ===== MODAL NOME DO PRESENTE ===== */
.modal-nome-presente {
  font-size: 17px;
  font-weight: 600;
  color: var(--cor-principal);
  margin: 6px 0 12px;
  line-height: 1.3;
}

.modal-proximo-passo {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
}

/* WhatsApp icon SVG inline */
.btn-whatsapp .wpp-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Altura uniforme nos cards */
.presente {
  position: relative;
}

.presente h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

/* Badge humor */
.badge-humor {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(185, 204, 174, 0.92);
  color: #3d5230;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  z-index: 1;
  backdrop-filter: blur(4px);
}

/* Imagem no modal */
.modal-img-presente {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin: 10px 0 6px;
  cursor: zoom-in;
}

/* ===== HIERARQUIA TIPOGRÁFICA DO CARD INÍCIO ===== */
.boas-vindas-texto {
  font-size: 15px;
  color: #888;
  font-weight: 400;
  margin-bottom: 28px;
  line-height: 1.6;
}

.contador-titulo {
  font-family: 'Great Vibes', cursive;
  font-size: 38px;
  font-weight: 400;
  color: var(--cor-principal);
  margin-bottom: 4px;
}

/* ===== REVEAL AO ENTRAR NA VIEWPORT ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CTAs refinados ===== */
.section-cta {
  font-size: 15px;
  padding: 14px 30px;
}

.section-cta-principal {
  box-shadow: 0 4px 14px rgba(107, 122, 78, 0.35);
}

.section-cta-principal:hover {
  box-shadow: 0 6px 20px rgba(107, 122, 78, 0.45);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  border: none;
  background: rgba(0,0,0,0.92);
  padding: 20px;
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 12px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(0,0,0,0.75);
}

.lightbox img {
  display: block;
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 12px;
}

.lightbox-titulo {
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin: 0;
  padding: 0 20px;
}

.lightbox-fechar {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}

.lightbox-fechar:hover {
  background: rgba(255,255,255,0.3);
}
/* ===== MOBILE PORTRAIT — AJUSTES FINAIS ===== */

@media (max-width: 600px) {
  /* Section sem padding excessivo */
  section {
    margin: 10px 6px 24px;
    padding: 14px 10px;
    border-radius: 16px;
  }

  /* Cards mais compactos */
  .presente {
    padding: 10px;
    border-radius: 14px;
  }

  .presente img {
    height: 120px;
  }

  .presente h3 {
    font-size: 12px;
    min-height: 2.4em;
    margin: 6px 0 4px;
  }

  .presente p {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .presente button {
    padding: 9px;
    font-size: 12px;
    border-radius: 10px;
  }

  /* Modal como bottom sheet */
  .modal {
    align-items: flex-end;
  }

  .modal-conteudo {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 20px 16px 32px;
    max-height: 92vh;
    overflow-y: auto;
  }

  /* Hero menor */
  .hero {
    min-height: 40vh;
    padding: 28px 16px 18px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero h2 {
    font-size: 15px;
  }

  /* Contador mais compacto */
  .arco-wrap,
  .arco-wrap svg {
    width: 66px;
    height: 66px;
  }

  .arco-num {
    font-size: 17px;
  }

  .arco-lbl {
    font-size: 10px;
  }

  .contador-circular {
    gap: 8px;
  }

  /* Nav compacto */
  nav {
    padding: 8px;
    gap: 6px;
  }

  nav a {
    font-size: 13px;
    padding: 6px 10px;
  }

  /* CTAs em coluna */
  .section-ctas {
    flex-direction: column;
    gap: 10px;
  }

  .section-cta {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 14px;
  }

  /* Cerimônia */
  .cerimonia-section {
    padding: 0 6px;
    margin: 12px auto 24px;
    gap: 12px;
  }

  .info-card-body {
    padding: 14px;
  }

  .btn-navegacao-row {
    flex-direction: row;
    gap: 8px;
  }

  /* Botão fechar maior no mobile */
  .fechar {
    font-size: 22px;
    padding: 12px 16px;
    top: 6px;
    right: 6px;
  }
}

/* iPhone SE e telas muito pequenas */
@media (max-width: 375px) {
  .lista-presentes {
    gap: 8px;
  }

  .presente img {
    height: 100px;
  }

  .presente h3 {
    font-size: 11px;
  }

  nav a {
    font-size: 12px;
    padding: 5px 8px;
  }

  .arco-wrap,
  .arco-wrap svg {
    width: 58px;
    height: 58px;
  }

  .arco-num {
    font-size: 15px;
  }
}
