/* ============================ */
/* VARIÁVEIS GLOBAIS */
/* ============================ */
:root {
  --accent: #584735;
  --ink: #584735;
  --ink-soft: #6c5b53;
  --card: rgba(246, 236, 226, 0.15);
  --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-color: #CDBBAB;
  background-image: url('../img/background.jpg');
  background-repeat: repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: auto;
}

.wrap {
  max-width: 1100px;
  margin-inline: auto;
  padding: 20px;
}

/* ============================ */
/* TIPOGRAFIA E ANIMAÇÕES */
/* ============================ */
p {
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

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, .menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: transparent;
}

.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;
  white-space: nowrap;
}

.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 325px;
  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(4, 1fr); /* 4 fotos por linha */
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  #album-photos {
    grid-template-columns: repeat(3, 1fr); /* tablets: 3 por linha */
  }
}

@media (max-width: 768px) {
  #album-photos {
    grid-template-columns: repeat(2, 1fr); /* mobile maior: 2 por linha */
  }
}

@media (max-width: 480px) {
  #album-photos {
    grid-template-columns: 1fr; /* mobile pequeno: 1 por linha */
  }
}

#album-photos img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  cursor: pointer;
  background: #cebbaa3d;
  border: 2px solid transparent;
  transition: border 0.3s ease, transform 0.3s ease;
}

#album-photos img:hover {
  border-color: #F5E9D8;
  transform: scale(1.03);
}

#sub-albums {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#sub-albums .card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start; /* título sempre no topo */
  width: 150px;                /* largura fixa dos sub-albuns */
  padding: 8px;
  gap: 6px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: var(--card);
  transition: all 0.2s ease;
}

#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;               /* altura uniforme */
  object-fit: cover;           /* mantém proporção, sem cortar o centro */
  border-radius: 6px;
}

#sub-albums .card h4 {
  margin: 0;
  text-align: center;          /* ou left, se preferir */
  font-size: 0.95rem;
  line-height: 1.2;
}

#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);
}

.card img {
  width: 100%;
  height: auto;           /* altura proporcional à largura */
  max-height: 180px;      /* limita o tamanho máximo para não expandir demais */
  object-fit: contain;    /* mantém a imagem inteira visível */
  border-radius: 12px;
  margin-bottom: 10px;
  background: #ffffff00;    /* cor de fundo para preencher o espaço extra */
}


#services-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr); /* 4 cards por linha */
  max-width: 1200px;
  margin: 40px auto;
}

@media (max-width: 1024px) {
  #services-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 por linha em tablets */
  }
}

@media (max-width: 768px) {
  #services-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 por linha em mobile maior */
  }
}

@media (max-width: 480px) {
  #services-grid {
    grid-template-columns: 1fr; /* 1 por linha em telemóveis pequenos */
  }
}

/* Ajuste nos cards */
#services-grid .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 250px;    /* largura do card */
  padding: 10px;       /* menos padding */
  font-size: 0.95rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;

  /* altura mínima menor para cards compactos */
  min-height: 300px;
}

#services-grid .card img {
  width: 100%;
  height: 180px;         /* altura fixa */
  object-fit: contain;    /* mantém a imagem inteira */
  background: #f5e9d82a;    /* moldura para espaços extras */
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 2px;
}

#services-grid .card h3 {
  margin: 0;
  margin-bottom: 6px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

#services-grid .card p {
  flex-grow: 1;           /* ocupa espaço restante */
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0;
}

/* ============================ */
/* MODAL DE GALERIA (ANTIGO LIGHTBOX) */
/* ============================ */

/* Animações específicas do modal */
@keyframes lbFade {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes lbZoom {
  from { transform: scale(.96); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Overlay com blur e saturação (ficará acima do modal de serviço) */
.modal, .modal-overlay {
  position: fixed; 
  inset:0; 
  background: rgba(203, 122, 51, 0.062);
  backdrop-filter: blur(8px);
  display:flex; 
  justify-content:center; 
  align-items:center; 
  z-index:9999;
  animation: fadeIn 0.3s ease;
}

/* Content com radius e sombra premium */
.modal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  position: relative; /* importante para posicionar o close */
  background: transparent; /* Changed from semi-transparent to transparent to match new style */
  /* box-shadow: var(--shadow); Remove shadow from container as it's transparent now */
  padding: 0; /* Remove padding */
  border-radius: 8px;
  box-sizing: border-box;
}

.modal-container img.main-image {
  width: auto;
  max-width: 90vw;
  max-height: 75vh; /* Reduced height to make room for thumbnails */
  object-fit: contain;
  margin-bottom: 0;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

/* Modal Thumbnails Strip - Admin Style Ported */
.modal-thumbs {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 90%;
  background: rgba(226, 141, 37, 0.048);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow-x: auto;
  z-index: 10003;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.modal-thumbs::-webkit-scrollbar {
  height: 4px;
}

.modal-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

.modal-thumbs img {
  height: 50px;
  width: 50px;
  min-width: 50px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.modal-thumbs img:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.modal-thumbs img.active {
  opacity: 1;
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  z-index: 1;
}

  /* Botão fechar modal */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(88, 71, 53, 0.85);
  color: #f5ede4;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-close:hover {
  background: rgba(88, 71, 53, 1);
  transform: scale(1.1);
}

/* Setas laterais */
.modal-prev, .modal-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 16px;
  font-size: 20px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.168);
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: none;
  transition: 0.6s ease;
  z-index: 3001;
  user-select: none;
}

.modal-prev { left: 20px; border-radius: 3px; }
.modal-next { right: 20px; border-radius: 3px; }

.modal-prev:hover, .modal-next:hover {
 transform: rotate(0,5deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(235, 132, 58, 0.086);
}



/* ============================ */
/* MODAL SERVIÇO */
/* ============================ */
#service-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.466);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#service-card {
  background: rgba(200, 175, 155, 0.596);
  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%;
  max-width: 400px;     /* largura máxima */
  height: 200px;        /* altura fixa para todas */
  object-fit: contain;  /* mostra a imagem inteira sem cortar */
  border-radius: 20px;
  background: #ffffff00;  /* cor de fundo para as barras extras */
  padding: 4px;         /* opcional: espaço entre imagem e fundo */
}

#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;
  top: 12px;
  right: 12px;
  bottom: auto; /* remover bottom */
  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: 2px solid transparent;
  border-image: linear-gradient(to right, transparent, #584735, transparent) 1;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ============================ */
/* HAMBURGER + MOBILE NAV */
/* ============================ */

/* Botão hambúrguer — oculto no desktop */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(88, 71, 53, 0.1);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 6px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  transition: background 0.2s;
}

.hamburger-btn:hover { background: rgba(88, 71, 53, 0.18); }

.ham-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animação X quando aberto */
.hamburger-btn.open .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open .ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay menu mobile */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-nav-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  animation: fadeOverlay 0.25s ease forwards;
}

@keyframes fadeOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 60px 0 24px;
  background: #f5e9d8;
  width: 72%;
  max-width: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  animation: slideInRight 0.28s ease forwards;
  overflow-y: auto;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.mobile-nav-list li a {
  display: block;
  padding: 15px 28px;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(88, 71, 53, 0.1);
  transition: background 0.15s, padding-left 0.15s;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a.active {
  background: rgba(88, 71, 53, 0.08);
  padding-left: 36px;
  color: var(--accent);
}

.mobile-nav-list li a.active {
  border-left: 3px solid var(--accent);
}

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

/* Tablet */
@media (max-width: 900px) {
  #album-card {
    flex-direction: column;
    gap: 20px;
  }
  #album-main-container { flex: none; }
  #album-right { width: 100%; }
  .modal-prev { left: 0; }
  .modal-next { right: 0; }

  .precos-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Mobile */
@media (max-width: 768px) {

  /* ── Wrapper ── */
  .wrap { padding: 12px; }

  /* ── Nav ── */
  .menu {
    position: relative;
    padding: 8px 12px;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .menu-left,
  .menu-right { display: none; }

  .logo {
    width: 90px;
    height: 90px;
  }

  .hamburger-btn { display: flex; }

  /* ── Hero ── */
  .hero {
    padding: 24px 0 16px;
  }

  h1 {
    font-size: clamp(26px, 7vw, 42px);
    margin: 10px auto;
  }

  .hero-card {
    margin: 24px auto 12px;
    border-radius: 18px;
    padding: 8px;
  }

  /* ── Grid de cards ── */
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 20px auto;
  }

  .card h3 { font-size: 1rem; }

  /* ── Portfólio ── */
  #portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  #portfolio-controls { grid-template-columns: 1fr; }

  /* ── Avaliações ── */
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-form {
    padding: 18px 16px;
  }

  /* ── Preçários ── */
  .precos-section {
    grid-template-columns: 1fr;
  }

  .precos-card { padding: 16px; }

  .precos-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.85rem;
  }

  /* ── Secção sobre ── */
  #sobre > div {
    padding: 16px !important;
  }

  #about-photo {
    float: none !important;
    display: block;
    margin: 0 auto 16px !important;
    width: 130px !important;
    shape-outside: none !important;
  }

  /* ── Footer ── */
  .footer-links {
    gap: 12px;
    flex-direction: column;
    align-items: center;
  }

  /* ── Modais ── */
  .modal-content {
    max-width: 96vw;
    max-height: 92vh;
  }

  .modal-close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  /* ── Album detalhe ── */
  #album-photos {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }

  /* ── Orçamentos form ── */
  .paredes-grid,
  .form-row-2col {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile pequeno */
@media (max-width: 400px) {
  .grid,
  #portfolio-grid {
    grid-template-columns: 1fr;
  }

  #album-photos {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .logo {
    width: 70px;
    height: 70px;
  }
}

/* ============================ */
/* 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);
}

/* Container da grelha */
/* Container da grelha + select */
#portfolio-controls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* Select alinhado com cartões */
#filter {
  width: 200px;           
  margin-left: auto;      
  display: block;
  appearance: none;
  border: none;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative; /* necessário para a seta */
}

/* Hover e clique como nos cards */
#filter:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

#filter:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

/* Seta personalizada */
#filter::after {
  content: '▼';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
}

/* ============================ */
/* PREÇÁRIOS */
/* ============================ */
.precos-section {
  max-width: 860px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.precos-card {
  background: rgba(246, 236, 226, 0.55);
  border: 1px solid rgba(88, 71, 53, 0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
  animation: fadeIn 0.3s ease both;
}

.precos-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(88, 71, 53, 0.2);
}

.precos-cat-foto {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.precos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.precos-table th {
  text-align: left;
  padding: 8px 12px;
  background: rgba(88, 71, 53, 0.1);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.precos-table th:first-child { border-radius: 8px 0 0 8px; }
.precos-table th:last-child  { border-radius: 0 8px 8px 0; }

.precos-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(88, 71, 53, 0.08);
  color: var(--ink);
}

.precos-table tbody tr:last-child td {
  border-bottom: none;
}

.precos-table tbody tr:hover td {
  background: rgba(88, 71, 53, 0.04);
}

/* Linhas clicáveis (com foto de exemplo) */
.precos-table tbody tr.precos-row-clickable {
  cursor: pointer;
}
.precos-table tbody tr.precos-row-clickable:hover td {
  background: rgba(88, 71, 53, 0.09);
  transition: background 0.15s;
}
.precos-table tbody tr.precos-row-clickable td:first-child {
  font-weight: 500;
}

/* Badge (?) junto ao nome do item */
.precos-foto-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #e53e3e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  font-style: normal;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.15s;
  position: relative;
  top: -1px;
}
.precos-foto-badge:hover {
  background: #c53030;
}

.precos-note {
  max-width: 860px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}

.precos-empty {
  text-align: center;
  padding: 2rem;
  color: var(--ink-soft);
  font-style: italic;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(88, 71, 53, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ============================ */
/* AVALIAÇÕES — index e página dedicada */
/* ============================ */
#reviews-index-section {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1rem 2rem;
}

#reviews-index-section h2 {
  text-align: center;
}

.reviews-cta-block {
  background: rgba(246, 236, 226, 0.55);
  border: 1px solid rgba(88, 71, 53, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.reviews-cta-text {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.reviews-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.reviews-cta-btn:hover { opacity: 0.88; }
.reviews-cta-btn:active { transform: scale(0.97); }

/* Página avaliacoes.html */
#avaliacoes-page {
  max-width: 860px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}

#avaliacoes-page h2 {
  text-align: center;
}

.reviews-form {
  background: rgba(246, 236, 226, 0.55);
  border: 1px solid rgba(88, 71, 53, 0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

.reviews-form-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.reviews-form label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reviews-form input[type="text"],
.reviews-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(88, 71, 53, 0.25);
  border-radius: 10px;
  background: rgba(255,255,255,0.6);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s;
}

.reviews-form input[type="text"]:focus,
.reviews-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.9);
}

.reviews-form button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: 0.5rem;
}

.reviews-form button[type="submit"]:hover { opacity: 0.88; }
.reviews-form button[type="submit"]:active { transform: scale(0.98); }
.reviews-form button[type="submit"]:disabled { opacity: 0.55; cursor: not-allowed; }

.review-success-msg {
  text-align: center;
  color: #2d6a4f;
  font-weight: 600;
  padding: 1rem 0;
  font-size: 1rem;
}

/* Star rating selector */
.review-stars {
  display: flex;
  gap: 6px;
  font-size: 2rem;
  line-height: 1;
}

.review-stars .star {
  color: rgba(88, 71, 53, 0.25);
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
  user-select: none;
}

.review-stars .star:hover,
.review-stars .star.active {
  color: #d4891a;
}

.review-stars .star:active {
  transform: scale(0.9);
}

/* ============================ */
/* AVALIAÇÕES — GRELHA */
/* ============================ */
#reviews-display h2 {
  text-align: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.review-card {
  background: rgba(246, 236, 226, 0.55);
  border: 1px solid rgba(88, 71, 53, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: fadeIn 0.3s ease both;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.review-card-nome {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.review-card-stars {
  color: #d4891a;
  font-size: 1rem;
  letter-spacing: 1px;
}

.review-card-texto {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.5;
}

.review-card-data {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: auto;
}

.review-badge-fb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e7f0fd;
  color: #1877f2;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: auto;
}

.reviews-empty,
.reviews-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  padding: 1.5rem 0;
}

/* ============================ */
/* FACEBOOK EMBED */
/* ============================ */
#facebook-section {
  max-width: 860px;
  margin: 2rem auto 2.5rem;
  text-align: center;
}

#facebook-section h2 {
  text-align: center;
}

#facebook-reviews-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(246, 236, 226, 0.45);
  border: 1px solid rgba(88, 71, 53, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  min-height: 120px;
  gap: 1rem;
}

.fb-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1877f2;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.fb-review-btn:hover { background: #145dbf; }
.fb-review-btn:active { transform: scale(0.97); }