/* ============================================================
   João Estofador — folha de estilos
   Paleta: creme / madeira / verde-escuro / grafite
   ============================================================ */

:root {
  --cor-fundo: #faf6ef;        /* creme */
  --cor-fundo-alt: #f1e9dc;    /* bege claro */
  --cor-texto: #2e2a25;        /* grafite quente */
  --cor-texto-suave: #5d564c;
  --cor-primaria: #2f4a3c;     /* verde-escuro */
  --cor-primaria-escura: #243a2f;
  --cor-acento: #a4683a;       /* madeira / castanho quente */
  --cor-acento-claro: #c98e5a;
  --cor-branco: #fffdf9;
  --cor-whatsapp: #1e7e4d;

  --fonte-titulos: Georgia, "Times New Roman", serif;
  --fonte-texto: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --raio: 12px;
  --sombra: 0 6px 24px rgba(46, 42, 37, 0.10);
  --transicao: 0.25s ease;
  --largura-max: 1140px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* compensa o header fixo nas âncoras */
}

body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cor-texto);
  background: var(--cor-fundo);
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--fonte-titulos);
  line-height: 1.2;
  color: var(--cor-texto);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-family: var(--fonte-texto); font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--cor-primaria); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cor-acento);
  outline-offset: 2px;
}

.container {
  max-width: var(--largura-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--cor-fundo-alt); }

.section-head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section-lead { color: var(--cor-texto-suave); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cor-acento);
  margin-bottom: 0.75em;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: 0.8em 1.6em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transicao), color var(--transicao), border-color var(--transicao);
}

.btn-primary {
  background: var(--cor-primaria);
  color: var(--cor-branco);
}
.btn-primary:hover { background: var(--cor-primaria-escura); }

.btn-outline {
  border-color: var(--cor-primaria);
  color: var(--cor-primaria);
  background: transparent;
}
.btn-outline:hover { background: var(--cor-primaria); color: var(--cor-branco); }

.btn-light {
  background: var(--cor-branco);
  color: var(--cor-primaria);
}
.btn-light:hover { background: var(--cor-fundo-alt); }

.btn-whatsapp {
  background: var(--cor-whatsapp);
  color: var(--cor-branco);
}
.btn-whatsapp:hover { background: #16613b; }

.btn-small { padding: 0.5em 1.2em; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(46, 42, 37, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cor-texto);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--cor-primaria);
  color: var(--cor-branco);
  font-family: var(--fonte-titulos);
  font-weight: 700;
}

.brand-name { font-size: 1.1rem; }
.brand-name strong { color: var(--cor-acento); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a:not(.btn) {
  text-decoration: none;
  color: var(--cor-texto);
  font-weight: 600;
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transicao), color var(--transicao);
}

.nav-list a:not(.btn):hover { color: var(--cor-acento); border-bottom-color: var(--cor-acento); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 2px solid var(--cor-primaria);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  color: var(--cor-primaria);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(60rem 30rem at 110% -10%, rgba(164, 104, 58, 0.12), transparent),
    var(--cor-fundo);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--cor-texto-suave);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}

.hero-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--cor-texto-suave);
}

/* ---------- Sobre o ofício ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.about-points li {
  background: var(--cor-branco);
  border-left: 4px solid var(--cor-acento);
  border-radius: 0 var(--raio) var(--raio) 0;
  padding: 1rem 1.25rem;
  box-shadow: var(--sombra);
}

.about-points h3 { margin-bottom: 0.2em; }
.about-points p { margin: 0; color: var(--cor-texto-suave); font-size: 0.97rem; }

/* ---------- Serviços ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--cor-branco);
  border-radius: var(--raio);
  padding: 1.6rem;
  box-shadow: var(--sombra);
  transition: transform var(--transicao);
}

.card:hover { transform: translateY(-4px); }

.card-icon { font-size: 1.9rem; display: block; margin-bottom: 0.6rem; }

.card p { color: var(--cor-texto-suave); font-size: 0.97rem; }

.card-fix {
  margin: 0;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(46, 42, 37, 0.18);
  font-size: 0.9rem;
  color: var(--cor-acento);
  font-weight: 600;
}

/* ---------- Galeria ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.filter-btn {
  border: 2px solid var(--cor-primaria);
  background: transparent;
  color: var(--cor-primaria);
  border-radius: 999px;
  min-height: 44px; /* área de toque confortável em mobile */
  padding: 0.45em 1.2em;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transicao), color var(--transicao);
}

.filter-btn:hover { background: rgba(47, 74, 60, 0.1); }

.filter-btn.is-active {
  background: var(--cor-primaria);
  color: var(--cor-branco);
}

.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 16rem;       /* layout tipo masonry, sem JS */
  column-gap: 1.2rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
}

.gallery-item[hidden] { display: none; }

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra);
  position: relative;
}

.gallery-open img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-open:hover img { transform: scale(1.03); }

.gallery-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(30, 26, 22, 0.78));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
}

.gallery-empty {
  text-align: center;
  color: var(--cor-texto-suave);
  padding-block: 2rem;
}

/* ---------- Materiais ---------- */
.materials-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
}

.material {
  background: var(--cor-branco);
  border-radius: var(--raio);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--sombra);
}

.material h3 { color: var(--cor-primaria); margin-bottom: 0.3em; }
.material p { margin: 0; color: var(--cor-texto-suave); font-size: 0.97rem; }

.materials-note {
  margin-top: 1.8rem;
  font-style: italic;
  color: var(--cor-texto-suave);
}

/* ---------- Processo ---------- */
.steps {
  list-style: none;
  counter-reset: passo;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.4rem;
}

.step {
  position: relative;
  background: var(--cor-branco);
  border-radius: var(--raio);
  padding: 1.5rem 1.3rem 1.3rem;
  box-shadow: var(--sombra);
  border-top: 4px solid var(--cor-acento);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--cor-acento);
  color: var(--cor-branco);
  font-family: var(--fonte-titulos);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.step h3 { font-size: 1.05rem; }
.step p { margin: 0; color: var(--cor-texto-suave); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta {
  background:
    linear-gradient(rgba(36, 58, 47, 0.92), rgba(36, 58, 47, 0.92)),
    url("../img/sofa-dois-lugares-branco-padrao.jpeg") center / cover no-repeat;
}

.cta-inner {
  text-align: center;
  max-width: 44rem;
  color: var(--cor-branco);
}

.cta-inner h2 { color: var(--cor-branco); }
.cta-inner p { color: rgba(255, 253, 249, 0.88); font-size: 1.1rem; margin-bottom: 1.6rem; }

/* ---------- Contactos ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-list {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.7rem;
}

.contact-list div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.5rem;
}

.contact-list dt {
  font-weight: 700;
  color: var(--cor-primaria);
}

.contact-list dd { margin: 0; overflow-wrap: anywhere; }

.contact-note {
  font-size: 0.85rem;
  color: var(--cor-texto-suave);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.contact-form {
  background: var(--cor-branco);
  border-radius: var(--raio);
  padding: 1.8rem;
  box-shadow: var(--sombra);
}

.contact-form h3 { margin-bottom: 1.2rem; }

.form-field { margin-bottom: 1rem; }

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  border: 1.5px solid rgba(46, 42, 37, 0.25);
  border-radius: 8px;
  font: inherit;
  background: var(--cor-fundo);
  color: var(--cor-texto);
}

.form-privacy {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--cor-texto-suave);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cor-primaria-escura);
  color: rgba(255, 253, 249, 0.85);
  padding-block: 3rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 253, 249, 0.15);
}

.footer-brand {
  font-family: var(--fonte-titulos);
  font-size: 1.3rem;
  color: var(--cor-branco);
  margin-bottom: 0.4rem;
}

.footer-brand strong { color: var(--cor-acento-claro); }

.footer-tag { font-size: 0.95rem; }

.footer-title {
  color: var(--cor-branco);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.footer-links a { color: rgba(255, 253, 249, 0.85); text-decoration: none; }
.footer-links a:hover { color: var(--cor-acento-claro); text-decoration: underline; }

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.footer-bottom p { margin: 0; }

/* ---------- WhatsApp flutuante / voltar ao topo ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--cor-whatsapp);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform var(--transicao);
}

.whatsapp-float:hover { transform: scale(1.08); }

.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 5.4rem;
  z-index: 40;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 0;
  background: var(--cor-acento);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover { background: var(--cor-acento-claro); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(20, 17, 14, 0.92);
  padding: 1rem;
}

.lightbox[hidden] { display: none; }

.lightbox-figure {
  margin: 0;
  max-width: min(90vw, 70rem);
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  margin-inline: auto;
  border-radius: 8px;
}

.lightbox-caption {
  color: rgba(255, 253, 249, 0.9);
  margin-top: 0.8rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: rgba(255, 253, 249, 0.12);
  border: 0;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transicao);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 253, 249, 0.3); }

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* ---------- Pré-chat (assistente de orçamento) ---------- */
.prechat {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 17, 14, 0.6);
  padding: 1rem;
}

.prechat[hidden] { display: none; }

.prechat-box {
  position: relative;
  background: var(--cor-branco);
  border-radius: var(--raio);
  box-shadow: 0 12px 40px rgba(20, 17, 14, 0.35);
  width: min(100%, 34rem);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 1.8rem 1.4rem;
}

.prechat-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: var(--cor-fundo-alt);
  color: var(--cor-texto);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.prechat-close:hover { background: var(--cor-acento-claro); color: var(--cor-branco); }

.prechat-step {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cor-acento);
  margin: 0 0 0.4em;
}

.prechat-title { font-size: 1.35rem; margin-bottom: 1rem; }

.prechat-options {
  display: grid;
  gap: 0.6rem;
}

.prechat-option {
  text-align: left;
  padding: 0.8em 1em;
  border: 1.5px solid rgba(46, 42, 37, 0.25);
  border-radius: 10px;
  background: var(--cor-fundo);
  color: var(--cor-texto);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transicao), background var(--transicao);
}

.prechat-option:hover {
  border-color: var(--cor-primaria);
  background: var(--cor-fundo-alt);
}

.prechat-option.is-selected {
  border-color: var(--cor-primaria);
  background: var(--cor-primaria);
  color: var(--cor-branco);
}

.prechat-text-label {
  display: block;
  font-size: 0.9rem;
  color: var(--cor-texto-suave);
  margin-bottom: 0.5rem;
}

.prechat-body textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  border: 1.5px solid rgba(46, 42, 37, 0.25);
  border-radius: 8px;
  font: inherit;
  background: var(--cor-fundo);
  color: var(--cor-texto);
}

.prechat-summary {
  margin: 0 0 0.4rem;
  display: grid;
  gap: 0.7rem;
}

.prechat-summary dt {
  font-weight: 700;
  color: var(--cor-primaria);
  font-size: 0.9rem;
}

.prechat-summary dd { margin: 0; }

.prechat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.prechat-privacy {
  margin: 1.2rem 0 0;
  font-size: 0.82rem;
  color: var(--cor-texto-suave);
  border-top: 1px dashed rgba(46, 42, 37, 0.18);
  padding-top: 0.8rem;
}

.btn-ghost {
  background: transparent;
  color: var(--cor-texto-suave);
  border: 2px solid transparent;
}

.btn-ghost:hover { color: var(--cor-texto); text-decoration: underline; }

/* ---------- Extras de contacto e formulário ---------- */
.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--cor-texto-suave);
  letter-spacing: 0.04em;
}

.contact-maps-title { margin-top: 1.8rem; }

.form-fields {
  border: 0;
  margin: 0;
  padding: 0;
}

.form-fields:disabled { opacity: 0.55; }

.form-unavailable {
  background: var(--cor-fundo-alt);
  border-left: 4px solid var(--cor-acento);
  border-radius: 0 8px 8px 0;
  padding: 0.7rem 1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

/* ---------- Consentimento e erros do pré-chat ---------- */
.prechat-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  background: var(--cor-fundo);
  border: 1.5px solid rgba(46, 42, 37, 0.18);
  border-radius: 10px;
}

.prechat-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.15rem;
  accent-color: var(--cor-primaria);
  cursor: pointer;
}

.prechat-consent label {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--cor-texto-suave);
  cursor: pointer;
}

.prechat-consent a { color: var(--cor-primaria); font-weight: 600; }

.prechat-error {
  margin: 0.8rem 0 0;
  padding: 0.6rem 0.9rem;
  background: #fbeaea;
  border-left: 4px solid #a13030;
  border-radius: 0 8px 8px 0;
  color: #7c2424;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Minimapa (CSS puro, sem serviços externos) ---------- */
.map-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  background: var(--cor-branco);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.map-card-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 9rem;
  color: var(--cor-primaria);
  background:
    /* "estradas" estilizadas */
    linear-gradient(105deg, transparent 46%, rgba(255, 253, 249, 0.9) 47%, rgba(255, 253, 249, 0.9) 53%, transparent 54%),
    linear-gradient(15deg, transparent 60%, rgba(255, 253, 249, 0.7) 61%, rgba(255, 253, 249, 0.7) 65%, transparent 66%),
    /* grelha de mapa */
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(47, 74, 60, 0.08) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(47, 74, 60, 0.08) 22px 23px),
    linear-gradient(140deg, #dde7d8, #cfdcc6);
}

.map-pin {
  filter: drop-shadow(0 3px 4px rgba(20, 17, 14, 0.3));
}

.map-card-info { padding: 1.1rem 1.3rem; }

.map-card-title {
  font-family: var(--fonte-titulos);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.map-card-sub {
  font-size: 0.85rem;
  color: var(--cor-texto-suave);
  margin: 0 0 0.9rem;
}

.map-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Footer: notas e Livro de Reclamações ---------- */
.footer-note-small {
  font-size: 0.8rem;
  color: rgba(255, 253, 249, 0.6);
}

.btn-livro {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.45em 1em;
  border: 1.5px solid rgba(255, 253, 249, 0.4);
  border-radius: 999px;
  font-weight: 600;
}

.btn-livro:hover {
  border-color: var(--cor-acento-claro);
  text-decoration: none;
}

/* ---------- Páginas legais ---------- */
.legal-content {
  max-width: 46rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.legal-content h1 { margin-bottom: 0.2em; }

.legal-updated {
  color: var(--cor-texto-suave);
  font-size: 0.9rem;
  margin-bottom: 2.2rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.legal-content ul { padding-left: 1.3rem; }
.legal-content li { margin-bottom: 0.4em; }

.legal-links {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(46, 42, 37, 0.2);
}

.page-legal .site-footer { margin-top: 2rem; padding-block: 1.5rem; }
.page-legal .footer-bottom a { color: rgba(255, 253, 249, 0.85); }

/* ---------- Animações de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .gallery-open img, .whatsapp-float { transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

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

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cor-fundo);
    border-bottom: 1px solid rgba(46, 42, 37, 0.1);
    box-shadow: var(--sombra);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }

  .nav-list.is-open { display: flex; }

  .nav-list li { border-bottom: 1px solid rgba(46, 42, 37, 0.08); }
  .nav-list li:last-child { border-bottom: 0; }

  .nav-list a:not(.btn) {
    display: block;
    padding: 0.9em 0;
    border-bottom: 0;
  }

  .nav-cta { padding-top: 0.8rem; }
  .nav-cta .btn { display: block; text-align: center; }

  .gallery-grid { columns: 2 10rem; }

  .contact-list div { grid-template-columns: 1fr; gap: 0; }

  .map-card { grid-template-columns: 1fr; }
  .map-card-visual { min-height: 6rem; }

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

  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
