/* ==========================================================================
   Casarano Imóveis — Pedro Martins
   Paleta e tipografia inspiradas no cartão de visitas do corretor.
   ========================================================================== */

:root {
  --lime: #cddc39;
  --lime-600: #b9c92c;
  --lime-soft: #e6ee9c;
  --lime-wash: #f6f9e4;
  --green: #0f8a5f;
  --green-dark: #0a5f42;
  --green-deep: #06301f;
  --ink: #14180c;
  --ink-soft: #4a5340;
  --white: #ffffff;
  --line: rgba(20, 24, 12, .12);
  --shadow-sm: 0 2px 10px rgba(6, 48, 31, .07);
  --shadow-md: 0 12px 32px rgba(6, 48, 31, .12);
  --shadow-lg: 0 24px 60px rgba(6, 48, 31, .18);
  --radius: 18px;
  --radius-lg: 26px;
  --ff-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
}

a { text-decoration: none; }

::selection { background: var(--lime); color: var(--ink); }

/* ---------- utilitários de marca ---------- */
.text-green { color: var(--green) !important; }
.text-ink { color: var(--ink) !important; }
.text-muted-brand { color: var(--ink-soft) !important; }
.bg-lime { background: var(--lime) !important; }
.bg-lime-wash { background: var(--lime-wash) !important; }
.bg-green-deep { background: var(--green-deep) !important; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--lime-600);
}
.eyebrow-light { color: var(--lime); }
.eyebrow-light::before { background: var(--lime); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.section-title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: .6rem 0 .9rem; }
.section-lead { color: var(--ink-soft); max-width: 56ch; font-size: 1.05rem; }

/* ---------- botões ---------- */
.btn { font-weight: 700; border-radius: 999px; padding: .8rem 1.6rem; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease; }
.btn:active { transform: translateY(1px); }

.btn-brand { background: var(--green); color: var(--white); border: 2px solid var(--green); }
.btn-brand:hover, .btn-brand:focus { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn-lime { background: var(--lime); color: var(--ink); border: 2px solid var(--lime); }
.btn-lime:hover, .btn-lime:focus { background: var(--lime-600); border-color: var(--lime-600); color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn-outline-ink { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline-ink:hover { background: var(--ink); color: var(--lime); }

.btn-outline-lime { border: 2px solid rgba(255, 255, 255, .55); color: var(--white); background: transparent; }
.btn-outline-lime:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* ---------- navbar ---------- */
.navbar-brand-custom { display: flex; align-items: center; gap: .7rem; }
.brand-logo { width: 42px; height: 42px; }
.brand-name { font-family: var(--ff-display); font-weight: 800; font-size: 1.15rem; line-height: .98; color: var(--ink); }
.brand-name span { display: block; }
.brand-creci { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-dark); font-weight: 600; }

.navbar-custom {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, padding .25s ease;
  padding-block: .85rem;
}
.navbar-custom.is-stuck { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); padding-block: .5rem; }
.navbar-custom .nav-link { position: relative; font-weight: 600; color: var(--ink); padding: .5rem .95rem; border-radius: 999px; }
.navbar-custom .nav-link:hover { color: var(--green-dark); }
.navbar-custom .nav-link.active { color: var(--green-dark); }
/* seção atual marcada por um filete, sem preencher o fundo do link */
.navbar-custom .nav-link.active::after {
  content: "";
  position: absolute;
  left: .95rem; right: .95rem; bottom: .2rem;
  height: 2px; border-radius: 2px;
  background: var(--lime-600);
}
.navbar-toggler { border: 2px solid var(--ink); border-radius: 12px; padding: .35rem .55rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--green-deep);
  color: var(--white);
  overflow: hidden;
}
.hero-grade { display: grid; grid-template-columns: 1fr; min-height: 70vh; }

.hero-painel {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6.5rem, 12vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
}
/* filete lima na margem do painel */
.hero-painel::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: clamp(6.5rem, 12vw, 8rem); bottom: clamp(3rem, 6vw, 5rem);
  width: 3px; border-radius: 3px;
  background: var(--lime);
}

.hero-title { font-size: clamp(2.3rem, 4.8vw, 3.7rem); letter-spacing: -.03em; line-height: 1.05; }
.hero-title em { font-style: normal; color: var(--lime); }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.1rem); line-height: 1.7; color: rgba(255, 255, 255, .74); max-width: 42ch; }

.hero-ficha {
  display: flex; flex-wrap: wrap;
  gap: .75rem 2rem;
  margin: 2.2rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-ficha dt { font-family: var(--ff-display); font-size: 1.2rem; color: var(--lime); }
.hero-ficha dd { margin: .1rem 0 0; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

.hero-midia { position: relative; min-height: 320px; }
.hero-fundo,
.hero-fundo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-cartao { display: none; }

@media (min-width: 992px) {
  .hero-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  /* a foto sangra até a borda direita da janela */
  .hero-midia { margin-right: calc((100vw - 100%) / -2); }

  .hero-cartao {
    display: block;
    position: absolute; left: -3.5rem; bottom: 3rem; z-index: 3;
    max-width: 268px;
    background: var(--white); color: var(--ink);
    border-radius: 16px; padding: 1.1rem 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .hero-cartao:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
  .hero-cartao:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
  .hero-cartao small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
  .hero-cartao strong { display: block; font-family: var(--ff-display); font-size: 1.15rem; margin: .3rem 0 .45rem; line-height: 1.2; }
  .hero-cartao em {
    display: inline-flex; align-items: center; gap: .35rem;
    font-style: normal; font-size: .82rem; font-weight: 700; color: var(--green-dark);
  }
  .hero-cartao em svg { width: 15px; height: 15px; transition: transform .25s ease; }
  .hero-cartao:hover em svg { transform: translateX(4px); }
}

@media (max-width: 991.98px) {
  .hero-midia { min-height: 300px; margin: 0 -1.5rem; }
}

/* ---------- serviços ---------- */
.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; color: var(--ink); }
.service-card:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.service-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--lime); color: var(--green-dark);
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.service-card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 1.2rem; }
.service-go {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: auto;
  font-size: .88rem; font-weight: 700;
  color: var(--green-dark);
}
.service-go svg { width: 17px; height: 17px; transition: transform .25s ease; }
.service-card:hover .service-go svg { transform: translateX(4px); }

/* ---------- feed de imóveis ---------- */
.feed { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .feed { grid-template-columns: repeat(2, 1fr); } }

.post {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease, opacity .28s ease;
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.post-perfil { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.2rem; }
.post-perfil img { width: 26px; height: 26px; border-radius: 50%; }
.post-perfil span { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }

.badge-op {
  position: absolute;
  top: .75rem; right: .75rem;
  z-index: 2;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(6, 48, 31, .18);
}
.badge-venda { background: var(--green); color: #fff; }

.post-media { position: relative; background: var(--lime-wash); }
/* botão transparente sobre a foto inteira; a lupa só aparece no hover/foco */
.post-ampliar {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  border: 0; padding: 0;
  background: rgba(6, 48, 31, 0);
  cursor: zoom-in;
  transition: background-color .25s ease;
}
.post-ampliar svg {
  width: 44px; height: 44px;
  color: var(--white);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .25s ease, transform .25s ease;
  filter: drop-shadow(0 2px 8px rgba(6, 48, 31, .5));
}
.post:hover .post-ampliar { background: rgba(6, 48, 31, .28); }
.post:hover .post-ampliar svg,
.post-ampliar:focus-visible svg { opacity: 1; transform: scale(1); }
.post-ampliar:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
.post-media img { width: 100%; height: 210px; object-fit: cover; display: block; transition: transform .5s ease; }
@media (min-width: 992px) { .post-media img { height: 280px; } }
.post:hover .post-media img { transform: scale(1.045); }
.post-price {
  position: absolute; left: .9rem; bottom: .9rem;
  background: rgba(20, 24, 12, .88);
  color: var(--lime);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.05rem;
  padding: .4rem .9rem;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}
.post-price small { display: block; font-family: var(--ff-body); font-weight: 500; font-size: .68rem; color: rgba(255,255,255,.7); letter-spacing: .04em; }

.post-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-body h3 { font-size: 1.1rem; margin: 0; }
.post-local { margin: 0; font-size: .86rem; color: var(--green-dark); font-weight: 600; }
/* margem inferior soma ao gap do corpo: separa a descricao do botao */
.post-desc { margin: .2rem 0 1rem; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; }
.post-body .btn { margin-top: auto; padding: .65rem 1rem; font-size: .92rem; text-align: center; }

/* ---------- corretor / sobre ---------- */
.about { background: var(--lime-wash); }
.about-photo {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}
/* bloco lima deslocado atrás da foto, em vez de moldura ao redor */
.about-photo::before {
  content: "";
  position: absolute;
  left: -1.1rem; top: 1.1rem; right: 1.1rem; bottom: -1.1rem;
  background: var(--lime);
  border-radius: var(--radius-lg);
}
.about-photo img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;              /* libera o aspect-ratio: sem isso o atributo height do HTML fixa a altura */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about-photo .creci-tag {
  position: absolute; z-index: 2;
  right: -.6rem; bottom: 1.2rem;
  background: var(--ink); color: var(--lime);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  padding: .45rem .85rem; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(6, 48, 31, .25);
}
.about-texto { color: var(--ink-soft); margin: 1rem 0 0; line-height: 1.7; max-width: 58ch; }

/* faixa dos escritorios: hairlines em vez de cartao, dois enderecos lado a lado */
.about-escritorios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-top: 2rem;
  padding: 1.3rem 0;
  border-top: 1px solid rgba(20, 24, 12, .14);
  border-bottom: 1px solid rgba(20, 24, 12, .14);
}
@media (min-width: 576px) {
  .about-escritorios { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
}

.escritorio { display: flex; gap: .9rem; align-items: flex-start; }
.escritorio .ic {
  flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: var(--green-dark);
}
.escritorio .ic svg { width: 18px; height: 18px; }
.escritorio .rotulo {
  display: block;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .3rem;
}
.escritorio .endereco { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ink); }
.escritorio .mapa {
  display: inline-flex; align-items: center; gap: .35rem;
  /* min-height garante os 44px de alvo de toque recomendados */
  padding: .55rem 0 .35rem;
  min-height: 44px;
  font-size: .86rem; font-weight: 700; color: var(--green-dark);
  white-space: nowrap;
}
.escritorio .mapa svg { width: 15px; height: 15px; transition: transform .2s ease; }
.escritorio .mapa:hover svg { transform: translateX(3px); }

.about-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem .6rem; margin-top: 1.8rem; }
.about-redes { display: flex; gap: .45rem; margin-left: auto; }
/* botao (263px) + icones (182px) cabem na mesma linha ate ~576px; abaixo disso
   eles empilham, e o "auto" deixaria os icones sozinhos no canto oposto */
@media (max-width: 575.98px) {
  .about-redes { margin-left: 0; }
}
/* o .social-link nasceu para o rodapé escuro; aqui ele vive sobre fundo claro */
.about-redes .social-link { border-color: var(--line); color: var(--ink-soft); }
.about-redes .social-link:hover { background: var(--green); border-color: var(--green); color: var(--white) !important; }

/* ---------- depoimentos ---------- */
.quote-card {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex; flex-direction: column; gap: .8rem;
}
.quote-icon { width: 30px; height: 30px; color: var(--lime-600); flex: 0 0 auto; }
.quote-card blockquote { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.quote-card figcaption {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.quote-card figcaption strong { display: block; font-size: .95rem; color: var(--ink); }
.quote-contexto { display: block; font-size: .82rem; font-weight: 600; color: var(--green-dark); margin-top: .15rem; }

/* ---------- anuncie seu imóvel ---------- */
.cta { background: var(--green-deep); color: var(--white); position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; inset: auto -120px -220px auto;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(205,220,57,.22), rgba(205,220,57,0) 70%);
}
.cta h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.cta p { color: rgba(255, 255, 255, .78); }

.steps { list-style: none; padding: 0; margin: 0; }
.step {
  height: 100%;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.step:hover { background: rgba(255, 255, 255, .09); border-color: rgba(205, 220, 57, .45); transform: translateY(-4px); }
.step-q {
  display: block;
  /* .84rem é o maior tamanho em que as quatro perguntas cabem numa linha */
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .6);
  margin-bottom: .5rem;
}
.step-a {
  display: block;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--lime);
  margin-bottom: .7rem;
}
.step p { font-size: .92rem; margin-bottom: 0; }

.cta-actions {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

/* ---------- contato ---------- */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.contact-form > .row { height: 100%; align-content: start; }
.contact-form .form-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.contact-form .form-control, .contact-form .form-select {
  border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem;
}
.contact-form .form-control:focus, .contact-form .form-select:focus {
  border-color: var(--green); box-shadow: 0 0 0 .2rem rgba(15, 138, 95, .15);
}
.contact-form .form-control.is-invalid { border-color: #c0392b; background-image: none; padding-right: .9rem; }
.contact-form .form-control.is-invalid:focus { box-shadow: 0 0 0 .2rem rgba(192, 57, 43, .15); }
.invalid-feedback { font-size: .82rem; font-weight: 500; color: #c0392b; }
.opcional {
  font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  color: var(--ink-soft); background: var(--lime-wash);
  padding: .12rem .45rem; border-radius: 6px; margin-left: .35rem;
  text-transform: none;
}
.contador { font-size: .76rem; color: var(--ink-soft); text-align: right; margin-top: .3rem; }
.contador.no-limite { color: #c0392b; font-weight: 600; }
/* ---------- painel de conversa ---------- */
.chat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.chat-head {
  display: flex; align-items: center; gap: .8rem;
  background: var(--green-dark); color: var(--white);
  padding: 1rem 1.2rem;
}
.chat-head img { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; }
.chat-head strong { display: block; font-size: .98rem; }
.chat-head span { font-size: .76rem; color: rgba(255, 255, 255, .72); }

.chat-body {
  background: var(--lime-wash);
  padding: 1.5rem 1.2rem;
  display: flex; flex-direction: column; gap: .8rem;
  flex: 1;
  min-height: 240px;
}
.bubble {
  max-width: 88%;
  padding: .8rem 1rem;
  border-radius: 16px;
  font-size: .94rem;
  line-height: 1.5;
  white-space: pre-line;
  box-shadow: var(--shadow-sm);
}
.bubble-in { align-self: flex-start; background: var(--white); color: var(--ink); border-top-left-radius: 4px; }
.bubble-out { align-self: flex-end; background: var(--lime); color: var(--ink); border-top-right-radius: 4px; }
.bubble-out.esta-vazia { background: rgba(205, 220, 57, .32); color: var(--ink-soft); font-style: italic; }

.chat-foot {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.chat-foot > span { font-size: .88rem; color: var(--ink-soft); }
.chat-foot strong { color: var(--ink); font-weight: 700; }
.chat-foot-ic { width: 20px; height: 20px; color: #25d366; flex: 0 0 auto; }



/* ---------- rodapé ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 3.5rem 0 1.5rem; text-align: center; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: var(--lime); }
.footer .brand-name { color: var(--white); }
.footer .brand-creci { color: var(--lime); }
.footer .navbar-brand-custom { display: inline-flex; text-align: left; }
.footer-creci { margin: .75rem 0 1rem; }
.footer-sobre { max-width: 46ch; margin: 0 auto 1.5rem; font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: .85rem;
  display: grid;
  gap: .35rem;
}
.social-link {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  display: grid; place-items: center;
  transition: all .2s ease;
}
.social-link:hover { background: var(--lime); border-color: var(--lime); color: var(--ink) !important; }
.social-link svg { width: 19px; height: 19px; }

/* ---------- imagem ampliada ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1080;
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 48, 31, .92);
  backdrop-filter: blur(6px);
  animation: lightbox-entra .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lightbox-entra { from { opacity: 0; } to { opacity: 1; } }

.lightbox-quadro { margin: 0; display: flex; flex-direction: column; gap: 1rem; max-width: 100%; }
.lightbox-quadro img {
  display: block;
  margin: 0 auto;
  max-width: min(1100px, 78vw);
  max-height: 72vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--lime-wash);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}
.lightbox-quadro figcaption { text-align: center; color: var(--white); }
.lightbox-quadro strong { display: block; font-family: var(--ff-display); font-size: 1.15rem; }
.lightbox-quadro span { font-size: .9rem; color: rgba(255, 255, 255, .7); }

.lightbox-fechar {
  position: absolute; top: 1rem; right: 1rem;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  cursor: pointer;
  transition: background-color .2s ease;
}
.lightbox-fechar:hover { background: rgba(255, 255, 255, .24); }
.lightbox-fechar:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.lightbox-fechar svg { width: 20px; height: 20px; }

/* navegação da galeria */
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  cursor: pointer;
  transition: background-color .2s ease;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox-nav:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-anterior { left: clamp(.5rem, 3vw, 2rem); }
.lightbox-anterior svg { transform: rotate(180deg); }
.lightbox-proxima { right: clamp(.5rem, 3vw, 2rem); }
.lightbox-nav[hidden] { display: none; }
/* em telas estreitas a foto ocupa quase toda a largura e as setas ficam sobre
   ela: fundo mais opaco para nao sumirem em imagens claras */
@media (max-width: 575.98px) {
  .lightbox-anterior { left: .25rem; }
  .lightbox-proxima { right: .25rem; }
  .lightbox-nav {
    width: 44px; height: 44px;
    background: rgba(6, 48, 31, .62);
    border-color: rgba(255, 255, 255, .45);
    backdrop-filter: blur(6px);
  }
}

.lightbox-contador {
  display: block;
  margin-top: .35rem;
  font-size: .8rem; letter-spacing: .1em;
  color: rgba(255, 255, 255, .55);
}

/* trava a rolagem do fundo enquanto a imagem está aberta */
body.com-lightbox { overflow: hidden; }

/* ---------- animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- ajustes responsivos ---------- */
/* as linhas com gutter g-lg-5 usam margem negativa de 24px; o padding do
   container acompanha para o conteúdo não vazar da viewport */
@media (min-width: 992px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (max-width: 991.98px) {
  /* o bloco lima avanca 1.1rem abaixo da foto: sem esta folga o texto da coluna
     seguinte quase encosta nele quando as colunas empilham. Precisa vir depois
     da regra base .about-photo, que define margin pelo atalho. */
  .about-photo { margin-bottom: 2.4rem; }

  /* o menu aberto é a própria barra crescendo, sem cartão flutuante por cima */
  .navbar-custom .navbar-collapse { margin-top: .5rem; padding-bottom: .5rem; }
  .navbar-custom .nav-link { padding: .7rem 1rem; }
  /* no menu empilhado o filete vira barra à esquerda, não um traço de ponta a ponta */
  .navbar-custom .nav-link.active::after {
    left: 0; right: auto;
    top: .45rem; bottom: .45rem;
    width: 3px; height: auto;
  }
}
@media (max-width: 575.98px) {
  .cta-actions .btn { width: 100%; }
}
