/* ============================ */
/* VARIÁVEIS GLOBAIS */
/* ============================ */
:root {
  --accent: #584735;
  --ink: #3b2f2a;
  --ink-soft: #6c5b53;
  --card: rgba(246, 236, 226, 0.92);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --bg-2: #f5e9d8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --card: rgba(246, 236, 226, 0.15);
    --ink: #584735;
    --ink-soft: #6c5b53;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

/* ============================ */
/* RESET E GLOBAL */
/* ============================ */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--ink);
  background: url('../img/background.jpg') repeat center center fixed;
  background-size: auto;
}

.wrap {
  max-width: 1100px;
  margin-inline: auto;
  padding: 20px;
}

/* ============================ */
/* TIPOGRAFIA E ANIMAÇÕES */
/* ============================ */
p {
  font-family: 'Pacifico', cursive;
}

h2, .portfolio-title {
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95);}
  to { opacity: 1; transform: scale(1);}
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes zoomIn {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

/* ============================ */
/* HEADER / NAVIGATION */
/* ============================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  backdrop-filter: saturate(120%) blur(6px);
  border-radius: 999px;
  box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--bg-2) 70%, #fff 30%);
}

.brand {
  display: flex;
  gap: .8rem;
  align-items: center;
  font-weight: 600;
}

.logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: url('../img/logo.png') center/cover no-repeat;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .25);
}

.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  font-size: 1.15rem;
  flex-wrap: wrap;
}

.menu-left, .menu-right {
  display: flex;
  gap: 28px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.95;
  font-size: 1.15rem;
}

.menu a:hover {
  opacity: 1;
  transform: scale(1.05);
  transition: transform 0.2s ease, opacity 0.2s ease;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.menu a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}



/* ============================ */
/* MEDIA / VÍDEO */
/* ============================ */
.media {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: block;
  width: 100%;
  background: #d9c2ab;
  outline: 1px solid color-mix(in srgb, #000 5%, var(--card) 95%);
}

.media video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantém o vídeo preenchendo todo o container */
  display: block;
}

.card {
  position: relative; /* importante para overlay */
  overflow: hidden;
}

.card.unavailable {
  position: relative;
}

.card.unavailable::before {
  content: "Indisponível";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(88, 71, 53, 0.7);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  pointer-events: none;
}

/* ============================ */
/* BOTÕES CTA E CARDS */
/* ============================ */
.cta, .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, #000 6%, var(--card) 94%);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  padding: clamp(10px, 2vw, 16px);
}

.cta:hover, .card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .18);
  background: color-mix(in srgb, var(--accent) 12%, var(--card) 88%);
}

.cta::after, .card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-25deg);
}

.cta:hover::after, .card:hover::after {
  left: 125%;
  transition: left 0.75s ease;
}

.cta h3, .card h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--ink);
}

.cta p, .card p {
  color: var(--ink-soft);
  margin: 8px 0 0;
  font-size: .95rem;
}

/* ============================ */
/* HERO / HERO CARD */
/* ============================ */
.hero {
  padding: 72px 0 24px;
  text-align: center;
}

.kicker {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--ink-soft);
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(36px, 6vw, 72px);
  margin: 14px auto;
  max-width: 20ch;
}

h1 em {
  font-style: italic;
  font-weight: 600;
  opacity: .95;
}

.hero .primary {
  margin-top: 18px;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: color-mix(in srgb, var(--accent) 85%, #fff 15%);
  color: #191003;
  box-shadow: var(--shadow);
}

.hero-card {
  margin: 48px auto 18px;
  max-width: 900px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
  padding: clamp(10px, 2vw, 16px);
}

/* ============================ */
/* GRID / PORTFOLIO / ALBUNS */
/* ============================ */
.grid, #portfolio-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 40px auto;
  max-width: 900px;
}

#portfolio {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

#album-card-container {
  display: none;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.4s ease;
}

#album-card {
  display: flex;
  flex-direction: row;
  gap: 40px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

#album-main-container {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

#album-main img {
  width: 220px;
  border-radius: 8px;
  cursor: pointer;
}

#album-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#album-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

#album-photos img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  cursor: pointer;
  background: #cebbaa3d;
}

#sub-albums {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#sub-albums .card {
  width: 180px;
  padding: 12px;
  text-align: center;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 280px;
}

#sub-albums .card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

#sub-albums .card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #cebbaa3d;
}

#sub-albums .card .description {
  padding: 8px 10px;
  text-align: justify;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  max-height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-top: 10px;
}

#album-info {
  padding: 12px;
  text-align: justify;
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  white-space: normal;
}

/* Botão voltar estilo Hero Card */
#btn-back {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 12px 26px; /* mais espaçamento como hero card */
  border-radius: 999px; /* efeito pill */
  border: none;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 1rem;
  overflow: hidden;
  transition: all 0.25s ease;
}

/* Brilho diagonal */
#btn-back::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-25deg);
}

#btn-back:hover::after {
  left: 125%;
  transition: left 0.75s ease;
}

#btn-back:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 36px rgba(0,0,0,0.18);
}


/* ============================ */
/* LIGHTBOX */
/* ============================ */
.lightbox, .lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-container img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -15px; right: -15px;
  font-size: 28px;
  background: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 10px;
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.services-hidden .card {
  display: none;
}

.service-detail p {
  text-align: justify;
  line-height: 1.6;
}

.service-detail {
  transition: none !important; /* desativa animações */
  cursor: default;             /* remove o cursor de clique hover */
}

.service-detail:hover {
  transform: none !important;
  box-shadow: var(--shadow) !important; /* mantém a sombra normal */
  background: var(--card) !important;   /* mantém a cor normal */
}

.service-detail::after {
  display: none !important; /* remove o brilho diagonal do hero card */
}
/* ============================ */
/* MODAL SERVIÇO */
/* ============================ */
#service-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#service-card {
  background: rgba(200, 175, 155, 0.795);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 900px;
  width: 90%;
  padding: 20px;
  position: relative;
  color: white;
}

#service-main-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}

#service-main {
  flex: 0 0 250px;
  text-align: center;
}

#service-main img {
  width: 100%;
  border-radius: 12px;
}

#service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  text-align: justify;
  color: white;
}

#service-info h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  text-align: center;
  color: white;
}

#service-info p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  color: white;
  white-space: pre-line;
}

#btn-close-service {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

#btn-close-service:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}





/* ============================ */
/* FOOTER */
/* ============================ */
footer {
  text-align: center;
  color: var(--ink-soft);
  border-radius: 0;
  z-index: 50;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto 28px;
}

.footer-container h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.footer-container p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.social-icons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-icons a {
  font-size: 1.4rem;
  color: var(--ink-soft);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, var(--card) 88%);
  transition: all 0.25s ease;
}

.social-icons a:hover {
  color: #fff;
  background: var(--accent);
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ============================ */
/* RESPONSIVIDADE */
/* ============================ */
@media (max-width: 900px) {
  #album-card {
    flex-direction: column;
    gap: 20px;
  }
  #album-main-container {
    flex: none;
  }
  #album-right {
    width: 100%;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 200px) {
  .menu {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 42px;
  }
}

/* ============================ */
/* SPINNER / PAGINAÇÃO / FILTRO */
/* ============================ */
.spinner {
  border: 6px solid #f3f3f321;
  border-top: 6px solid #5555551c;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.pagination button {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination button:hover:enabled {
  transform: scale(1.05);
  background: var(--accent);
  color: #fff;
}

.pagination span {
  font-size: 0.9rem;
  color: var(--ink);
}

#filter {
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: var(--card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

#filter:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

#filter:focus {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ============================ */
/* BOTÃO VOLTAR ESTILO HERO CARD */
/* ============================ */
.service-detail button {
  padding: 12px 24px;
  border-radius: 999px; /* estilo pill como hero card */
  border: none;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.service-detail button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-25deg);
}

.service-detail button:hover::after {
  left: 125%;
  transition: left 0.75s ease;
}

.service-detail button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}