:root {
  /* Paleta reduzida ao próprio logo: azul-noite, azul Blue Moon (dois
     tons — um para fundo claro, um mais vívido para fundo escuro),
     azul-gelo e branco. Nenhuma cor quente como fundo de seção. */
  --white: #ffffff;
  --pearl: #fcfdfe;
  --moon-50: #f2f7fb;
  --moon-100: #dceefb;
  --moon-200: #b9def5;
  --moon-300: #7ec3ea;
  --moon-500: #1c8fdb;
  --moon-600: #0e74b8;
  --moon-700: #0b5d96;
  --ink: #141b3d;
  --text: #454a5f;
  --muted: #6b7086;
  --line: rgba(20, 27, 61, 0.12);
  --line-blue: rgba(20, 27, 61, 0.12);
  --on-dark: rgba(255, 255, 255, 0.92);
  --on-dark-muted: rgba(255, 255, 255, 0.66);
  --line-on-dark: rgba(255, 255, 255, 0.18);
  --shadow: 0 20px 50px rgba(20, 27, 61, 0.08);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", Arial, sans-serif;
  --layout-max: 1680px;
  --layout-width: 90.5%;
  --layout-padding: clamp(24px, 2vw, 36px);
  --section: clamp(5rem, 7.5vw, 8.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --card-shadow: 0 10px 28px rgba(20, 27, 61, 0.05);
  --floral-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none'%3E%3Cg stroke='%230A72B0' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M28 222C63 180 62 111 135 33M70 161c-25-4-40 8-47 28 23 3 40-7 47-28Zm20-35c20-15 42-12 55 2-18 16-39 15-55-2Zm24-43c-18-12-35-8-46 7 17 12 34 9 46-7Z'/%3E%3Cpath d='M134 34c10-17 31-22 46-11-7 19-27 27-46 11Z'/%3E%3Ccircle cx='159' cy='76' r='13'/%3E%3Cpath d='M159 58c5 7 6 12 0 18-6-6-5-12 0-18Zm18 18c-7 5-12 6-18 0 6-6 12-5 18 0Zm-18 18c-5-7-6-12 0-18 6 6 5 12 0 18Zm-18-18c7-5 12-6 18 0-6 6-12 5-18 0Z'/%3E%3Ccircle cx='198' cy='124' r='9'/%3E%3Cpath d='M198 111c4 5 4 9 0 13-5-4-4-9 0-13Zm13 13c-5 4-9 4-13 0 4-5 9-4 13 0Zm-13 13c-4-5-4-9 0-13 5 4 4 9 0 13Zm-13-13c5-4 9-4 13 0-4 5-9 4-13 0Z'/%3E%3Cpath d='M164 87c18 12 28 23 34 37'/%3E%3C/g%3E%3C/svg%3E");
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch' result='grain'/%3E%3CfeFlood flood-color='%230A72B0' flood-opacity='.32' result='tone'/%3E%3CfeComposite in='tone' in2='grain' operator='in'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  --bm-navy: #141b3d;
  --bm-blue: #075b96;
  --bm-blue-bright: #0879bc;
  --header-top: 20px;
  --header-height: 80px;
  --header-height-scrolled: 70px;
  --header-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-transition: 340ms;
}

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

html {
  scroll-behavior: smooth;
  /* A barra já estará no estado curto quando o destino aparecer. */
  scroll-padding-top: calc(var(--header-height-scrolled) + 1rem);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.lightbox-open,
body.extra-dialog-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.75rem, 3.8vw, 4rem);
}

h3 {
  font-size: clamp(1.6rem, 2.7vw, 2.25rem);
}

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

:focus-visible {
  outline: 3px solid var(--moon-500);
  outline-offset: 4px;
}

.container,
.hero-content {
  width: min(var(--layout-width), var(--layout-max));
  margin-inline: auto;
  padding-inline: var(--layout-padding);
}

.section {
  padding-block: var(--section);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--white);
  color: var(--moon-700);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  color: var(--moon-700);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.lead {
  color: var(--ink);
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.65;
}

/* Um só formato de botão em toda a página: compacto, largura ditada
   pelo próprio rótulo, seta logo ao lado do texto — sem a antiga
   célula de ícone separada por uma divisória, que engordava a peça e
   a fazia parecer uma barra. Ao passar o mouse muda só a cor: nenhum
   deslocamento, nenhum brilho atravessando, nenhuma sombra crescendo. */
.button,
.hero-button,
.header-cta {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid transparent;
  border-radius: 6px;
  /* Folga maior depois da seta do que antes do rótulo: a seta precisa
     de ar à direita para não parecer encostada na borda. */
  padding: 0 1.6rem 0 1.35rem;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.button-primary {
  border-color: var(--bm-blue);
  background: var(--bm-blue);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--bm-navy);
  background: var(--bm-navy);
}

.button-secondary {
  border-color: var(--line-blue);
  background: var(--moon-50);
  color: var(--bm-blue);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--bm-blue);
  background: var(--bm-blue);
  color: var(--white);
}

.button-label {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
}

.button-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
}

.button-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form .button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.9;
}

.contact-form .button[aria-busy="true"] .button-icon svg { display: none; }
.contact-form .button[aria-busy="true"] .button-icon::before {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: contact-submit-spin 0.7s linear infinite;
  content: "";
}

@keyframes contact-submit-spin {
  to { transform: rotate(360deg); }
}

.text-link {
  margin-top: 1.2rem;
}

/* Revelação no scroll: só opacity/transform (roda no compositor, sem
   travar o thread principal), curva fast-out/slow-in já definida em
   --ease. O JS liga a classe is-visible via IntersectionObserver. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

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

/* Cascata leve nas grades repetidas — cada item entra um pouco depois
   do anterior, em vez de todos surgirem ao mesmo tempo. */
.highlights .highlight:nth-child(4n + 1),
.feature-grid .feature-card:nth-child(4n + 1),
.gallery-grid .gallery-item:nth-child(3n + 1),
.extras-grid .extra-card:nth-child(4n + 1) {
  --reveal-delay: 0s;
}

.highlights .highlight:nth-child(4n + 2),
.feature-grid .feature-card:nth-child(4n + 2),
.gallery-grid .gallery-item:nth-child(3n + 2),
.extras-grid .extra-card:nth-child(4n + 2) {
  --reveal-delay: 0.08s;
}

.highlights .highlight:nth-child(4n + 3),
.feature-grid .feature-card:nth-child(4n + 3),
.gallery-grid .gallery-item:nth-child(3n),
.extras-grid .extra-card:nth-child(4n + 3) {
  --reveal-delay: 0.16s;
}

.highlights .highlight:nth-child(4n),
.feature-grid .feature-card:nth-child(4n),
.extras-grid .extra-card:nth-child(4n) {
  --reveal-delay: 0.24s;
}

/* Cabeçalho fixo em dois estados. No topo ele flutua a 20px da borda,
   sem fundo, sem borda e sem sombra — só o texto sobre a fotografia.
   Assim que a página rola, o JS liga .is-scrolled: a mesma barra desce
   para top:0, encolhe um pouco, ganha fundo branco e uma sombra quase
   invisível. Tudo transiciona junto, na mesma curva, nos dois sentidos.
   --header-bottom acompanha a borda inferior da barra em cada estado e
   é o que o painel mobile usa para se encaixar logo abaixo dela. */
.site-header {
  --header-bottom: calc(var(--header-top) + var(--header-height));
  position: fixed;
  z-index: 1000;
  top: var(--header-top);
  right: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition:
    top var(--header-transition) var(--header-ease),
    height var(--header-transition) var(--header-ease),
    background var(--header-transition) var(--header-ease),
    box-shadow var(--header-transition) var(--header-ease);
}

.site-header.is-scrolled,
body.menu-open .site-header {
  --header-bottom: var(--header-height-scrolled);
  top: 0;
  height: var(--header-height-scrolled);
  background: var(--white);
  box-shadow: 0 1px 10px rgba(20, 27, 61, 0.06);
}

.nav-shell {
  display: grid;
  width: min(var(--layout-width), var(--layout-max));
  height: 100%;
  grid-template-columns: 192px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 1.45vw, 1.6rem);
  margin-inline: auto;
  padding-inline: var(--layout-padding);
}

.brand,
.site-header .brand {
  position: relative;
  display: flex;
  width: 188px;
  max-width: 100%;
  align-items: center;
  border: 0;
  padding: 0;
  transform: none;
  justify-self: start;
  transition: width var(--header-transition) var(--header-ease);
}

/* A marca encolhe junto com a barra, para a folga em volta do
   logotipo continuar a mesma nos dois estados. */
.site-header.is-scrolled .brand,
body.menu-open .brand {
  width: 168px;
}

.brand img {
  width: 100%;
  height: auto;
}

/* Sobre a fotografia o logotipo vira branco; no estado branco volta a
   ser o logotipo normal, em azul. */
.site-logo {
  filter: brightness(0) invert(1);
  transition: filter var(--header-transition) var(--header-ease);
}

.site-header.is-scrolled .site-logo,
body.menu-open .site-logo {
  filter: none;
}

.primary-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 1.2vw, 1.45rem);
  white-space: nowrap;
}

/* Os links atravessam de branco (sobre a foto) para azul-marinho (sobre
   o branco) na mesma curva da barra. O hover é só um degrau de opacidade
   no próprio tom; quem marca o item é o losango azul que cresce embaixo
   — o mesmo marcador serve para hover, foco e seção atual. */
.primary-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.785rem;
  font-weight: 600;
  letter-spacing: 0.062em;
  line-height: 1.2;
  text-shadow: 0 1px 12px rgba(20, 27, 61, 0.45);
  text-transform: uppercase;
  transition: color var(--header-transition) var(--header-ease);
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="true"] {
  color: var(--white);
}

.site-header.is-scrolled .primary-nav a {
  color: rgba(20, 27, 61, 0.78);
  text-shadow: none;
}

.site-header.is-scrolled .primary-nav a:hover,
.site-header.is-scrolled .primary-nav a:focus-visible,
.site-header.is-scrolled .primary-nav a[aria-current="true"] {
  color: var(--bm-navy);
}

/* Marcador do item atual: um traço azul curto que nasce do centro do
   link. Cresce na horizontal (scaleX) para hover e para a seção em
   cena, e volta pelo mesmo caminho — nunca aparece ou some de repente. */
.primary-nav a::after {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--moon-300);
  content: "";
  opacity: 0;
  transform: translateX(-50%) scaleX(0.2);
  transition: opacity 0.28s var(--header-ease), transform 0.28s var(--header-ease), background var(--header-transition) var(--header-ease);
}

.site-header.is-scrolled .primary-nav a::after {
  background: var(--bm-blue);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  opacity: 0.55;
  transform: translateX(-50%) scaleX(0.7);
}

.primary-nav a[aria-current="true"]::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

/* O botão da barra é a versão mais discreta do mesmo formato: um
   degrau mais baixo que os do corpo da página, para não competir com
   o herói logo abaixo. */
.header-cta {
  height: 42px;
  border-color: var(--bm-blue);
  background: var(--bm-blue);
  color: var(--white);
  padding: 0 1.45rem 0 1.2rem;
  justify-self: end;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: var(--bm-navy);
  background: var(--bm-navy);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  background: transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled .menu-toggle,
body.menu-open .menu-toggle {
  border-color: var(--line-blue);
  background: var(--moon-50);
}

.menu-toggle span {
  width: 1.25rem;
  height: 1px;
  background: var(--white);
  transition: background 0.3s var(--ease);
}

.site-header.is-scrolled .menu-toggle span,
body.menu-open .menu-toggle span {
  background: var(--bm-navy);
}

/* Banner principal: começa no topo da viewport e passa por trás do
   cabeçalho transparente — o recuo interno é que mantém o texto abaixo
   da barra. */
.hero {
  position: relative;
  display: flex;
  width: 100%;
  height: auto;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  overflow: clip;
  background: var(--ink);
  /* A mesma folga em cima e embaixo: descontada a barra fixa, o que
     sobra é dividido igualmente pelo align-items: center, então o bloco
     de texto pousa no centro vertical da faixa visível do banner. */
  padding: 0 0 clamp(56px, 7vh, 88px);
  padding-top: calc(var(--header-top) + var(--header-height) + clamp(56px, 7vh, 88px));
}

.hero-media,
.hero-wash {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
  background-image: var(--hero-banner-img, url("../images/banner-1920w.webp"));
  /* Ajuste focal do "right center" para manter a placa no terço direito. */
  background-position: 55% center;
  background-size: cover;
}

/* Véu preto neutro — sem nenhum azul, para a fotografia não ganhar
   tintura. Vive quase todo na metade esquerda, atrás da coluna de
   texto, e já chegou a zero antes do meio: da parede de pedra e da
   placa BLUE MOON para a direita a foto é a original. A segunda camada
   é só uma sombra rasa no topo, o mínimo para os links do cabeçalho
   transparente terem contraste. */
.hero-wash {
  z-index: 1;
  background:
    linear-gradient(96deg, rgba(3, 3, 5, 0.88) 0%, rgba(3, 3, 5, 0.81) 13%, rgba(3, 3, 5, 0.64) 25%, rgba(3, 3, 5, 0.43) 36%, rgba(3, 3, 5, 0.18) 47%, rgba(3, 3, 5, 0.05) 55%, transparent 62%),
    linear-gradient(180deg, rgba(3, 3, 5, 0.3) 0%, rgba(3, 3, 5, 0.07) 14%, transparent 26%);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  z-index: 1;
  bottom: -6rem;
  left: -5.5rem;
  width: clamp(300px, 20vw, 390px);
  height: clamp(440px, 28vw, 560px);
  background: var(--floral-art) left bottom / contain no-repeat;
  content: "";
  filter: brightness(0) invert(1);
  opacity: 0.055;
  pointer-events: none;
  transform: rotate(-7deg);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 72%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: none;
}

/* Entrada do herói: linha de apoio, título, texto e botões assentam na
   ordem em que são lidos, com 80ms entre um e outro. Um fade e alguns
   pixels de subida, nada mais — a fotografia já está lá desde o
   primeiro quadro, só o texto pousa sobre ela. */
@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero-content > * {
  animation: hero-enter 0.72s var(--ease) both;
}

.hero-content > *:nth-child(1) { animation-delay: 0.06s; }
.hero-content > *:nth-child(2) { animation-delay: 0.14s; }
.hero-content > *:nth-child(3) { animation-delay: 0.22s; }
.hero-content > *:nth-child(4) { animation-delay: 0.3s; }

/* Mesmos textos e mesma paleta do herói — só os tons clareiam, porque
   agora tudo isso descansa sobre a fotografia escurecida. Na linha de
   apoio as palavras vão a branco (o azul da marca não aguenta corpo
   miúdo sobre foto) e a estrela fica com o azul-gelo luminoso, que é o
   que ela precisa ser: o acento decorativo, não o texto. */
.hero-eyebrow {
  margin-bottom: 1.15rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.205em;
  text-shadow: 0 1px 14px rgba(3, 3, 5, 0.55);
}

/* Era o caractere "✦": cada sistema desenhava a sua estrela, e no celular
   saía diferente do desenho do site. Agora é um SVG — o mesmo em todo lugar. */
.hero-eyebrow::before {
  width: 0.85rem;
  height: 0.85rem;
  background: currentColor;
  color: var(--moon-300);
  content: "";
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M12 1.5 14 9.6l8.1 2.4-8.1 2.4-2 8.1-2-8.1L1.9 12 10 9.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M12 1.5 14 9.6l8.1 2.4-8.1 2.4-2 8.1-2-8.1L1.9 12 10 9.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero h1 {
  max-width: 660px;
  margin-bottom: 1.3rem;
  color: var(--white);
  font-size: clamp(2.85rem, 3.65vw, 3.95rem);
  font-weight: 600;
  line-height: 1.04;
  text-shadow: 0 2px 24px rgba(3, 3, 5, 0.42);
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero h1 .hero-title-accent {
  color: var(--moon-500);
  font-style: italic;
  font-weight: 600;
}

.hero-copy {
  max-width: 470px;
  margin-bottom: 1.9rem;
  color: var(--on-dark);
  font-size: clamp(0.985rem, 1.05vw, 1.09rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Os botões do herói herdam o formato compacto comum; aqui só ganham
   um pouco mais de respiro lateral, por serem os dois primeiros da
   página, e o par secundário claro que funciona sobre a fotografia. */
.hero-button {
  padding: 0 1.8rem 0 1.5rem;
}

.hero-button-primary {
  border-color: var(--bm-blue);
  background: var(--bm-blue);
  color: var(--white);
}

.hero-button-primary:hover,
.hero-button-primary:focus-visible {
  border-color: var(--bm-navy);
  background: var(--bm-navy);
}

/* Vidro fosco sobre a fotografia: quase nada de fundo, um véu de blur
   que separa o botão da parede sem apagá-la, e contorno branco fino.
   No hover vira branco sólido com o texto azul-noite. */
.hero-button-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.hero-button-secondary:hover,
.hero-button-secondary:focus-visible {
  border-color: var(--white);
  background: var(--white);
  color: var(--bm-navy);
}

/* Faixa de métricas, fina, quase sem peso — abre a zona clara que
   continua direto na seção Sobre, sem linha dura entre as duas. */
.intro-strip {
  background: var(--pearl);
}

.intro-strip-grid {
  display: grid;
  width: 100%;
  min-height: 96px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 96px;
  grid-template-rows: auto minmax(1.4em, auto);
  place-content: center;
  padding: 1rem clamp(0.75rem, 2vw, 1.5rem);
  text-align: center;
}

.stat-item:not(:last-child)::after {
  position: absolute;
  top: calc(50% - 18px);
  right: 0;
  width: 1px;
  height: 22px;
  background: var(--line);
  content: "";
}

.stat-item:not(:last-child)::before {
  position: absolute;
  z-index: 1;
  top: calc(50% + 16px);
  right: -3px;
  width: 6px;
  height: 6px;
  background: var(--bm-blue);
  content: "";
  transform: rotate(45deg);
}

.stat-item strong {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--bm-navy);
  font-family: var(--display);
  font-weight: 600;
  line-height: 1;
}

.stat-number {
  font-size: clamp(2.5rem, 3.1vw, 3.375rem);
}

.stat-word {
  font-family: var(--body);
  font-size: clamp(0.7rem, 0.75vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.stat-item > span {
  margin-top: 0.55rem;
  color: var(--bm-navy);
  font-size: clamp(0.6875rem, 0.65vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Superfícies editoriais compartilhadas. */
.about,
.events,
.features,
.gallery-section,
.extras,
.instagram-callout,
.contact,
.final-cta,
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}

.about::before,
.gallery-section::before,
.contact::before {
  position: absolute;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  background: var(--floral-art) center / contain no-repeat;
  content: "";
  opacity: 0.045;
  pointer-events: none;
}

.about::before {
  top: 2rem;
  right: -8rem;
  transform: rotate(7deg);
}

.gallery-section::before {
  top: 3rem;
  left: -8rem;
  transform: rotate(-8deg) scaleX(-1);
}

.contact::before {
  bottom: -7rem;
  left: -7rem;
  width: 34rem;
  height: 34rem;
  opacity: 0.09;
  transform: rotate(-16deg) scaleX(-1);
}

.events::after,
.extras::after,
.site-footer::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: var(--paper-grain);
  content: "";
  opacity: 0.02;
  pointer-events: none;
}

.about > .container,
.events > .container,
.features > .container,
.gallery-section > .container,
.extras > .container,
.instagram-callout > .container,
.contact > .container,
.final-cta > .container,
.site-footer > .container {
  position: relative;
  z-index: 1;
}

/* About */
.about {
  background:
    radial-gradient(ellipse 38rem 32rem at 100% 16%, rgba(255, 255, 255, 0.85), transparent 72%),
    var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7.5rem);
}

.about-copy > p:not(.eyebrow) {
  max-width: 37rem;
}

.about-visual {
  position: relative;
  padding: 0 0 2.2rem 2.2rem;
}

/* Uma moldura floral por trás do arco da foto — como as coroas de flor
   que a própria casa usa em cima do arco, só que desenhada, atrás do
   retrato em vez de sobre ele. */
.about-visual::before,
.about-visual::after {
  position: absolute;
  z-index: 0;
  top: -3rem;
  width: 10rem;
  aspect-ratio: 1;
  background: var(--floral-art) center / contain no-repeat;
  content: "";
  opacity: 0.4;
  pointer-events: none;
}

.about-visual::before {
  left: 0.5rem;
  transform: rotate(-18deg);
}

.about-visual::after {
  right: -1.5rem;
  transform: rotate(14deg) scaleX(-1);
}

.photo-card {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 48% 48% 1.25rem 1.25rem;
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  height: clamp(31rem, 52vw, 45rem);
  object-fit: cover;
}

.moon-seal {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  display: grid;
  width: 8.5rem;
  height: 8.5rem;
  place-content: center;
  border: 10px solid var(--white);
  border-radius: 50%;
  background: var(--moon-100);
  color: var(--moon-700);
  text-align: center;
}

.moon-seal span {
  font-family: var(--display);
  font-size: 1.35rem;
  font-style: italic;
}

.moon-seal strong {
  font-size: 0.59rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 1.35vw, 1.25rem);
  margin-top: clamp(2rem, 3vw, 2.75rem);
}

.highlight {
  position: relative;
  min-width: 0;
  overflow: hidden;
  grid-column: span 3;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  padding: clamp(1.375rem, 1.7vw, 1.75rem);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.highlight:nth-child(n + 5) {
  grid-column: span 4;
}

.highlight::after,
.feature-card::after {
  position: absolute;
  z-index: 0;
  right: -1.75rem;
  bottom: -2.4rem;
  width: clamp(90px, 8vw, 120px);
  aspect-ratio: 1;
  background: var(--floral-art) center / contain no-repeat;
  content: "";
  pointer-events: none;
  transform: rotate(-9deg);
  transition: opacity 0.25s ease;
}

/* O floral fica mais presente nos cards do Sobre — é o toque decorativo
   pedido para essa seção; no Estrutura segue quase marca d'água. */
.highlight::after {
  width: clamp(105px, 9vw, 140px);
  opacity: 0.16;
}

.feature-card::after {
  width: clamp(105px, 9vw, 140px);
  opacity: 0.14;
}

.highlight:nth-child(even)::after,
.feature-card:nth-child(even)::after {
  top: -2.6rem;
  right: -2rem;
  bottom: auto;
  transform: rotate(13deg) scaleX(-1);
}

.highlight:hover,
.feature-card:hover {
  border-color: rgba(20, 27, 61, 0.22);
  box-shadow: var(--card-shadow);
}

.highlight:hover::after {
  opacity: 0.28;
}

.feature-card:hover::after {
  opacity: 0.24;
}

.highlight > *,
.feature-card > * {
  position: relative;
  z-index: 1;
}

.highlight-icon,
.feature-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 9px;
  background: var(--moon-50);
  color: var(--bm-blue);
}

.highlight-icon svg,
.feature-icon svg {
  width: 20px;
  height: 20px;
}

.highlight h4 {
  max-width: none;
  margin: 1rem 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.55vw, 1.55rem);
  font-weight: 600;
  line-height: 1.14;
}

/* Section headings */
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.65fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 3vw, 2.75rem);
}

.section-heading h2,
.gallery-heading h2 {
  max-width: 48rem;
  margin-bottom: 0;
}

.section-heading > p,
.section-heading > div:last-child p,
.gallery-heading > div > p:last-child {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading small {
  display: block;
  margin-top: 0.8rem;
  color: var(--moon-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Events */
.events {
  background: var(--moon-50);
}

/* Cada formato de celebração é uma fotografia real da casa, não uma
   linha numerada — a lista não é uma sequência, então não finge ser
   uma. Cartões retos, lado a lado, mesma largura: a foto no topo é a
   protagonista, e a legenda vive num painel claro abaixo dela — nunca
   texto branco sobre a foto, sempre legível. */
.event-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.2vw, 1.25rem);
}

.event-card {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.event-card:nth-child(1) { --reveal-delay: 0s; }
.event-card:nth-child(2) { --reveal-delay: 0.08s; }
.event-card:nth-child(3) { --reveal-delay: 0.16s; }
.event-card:nth-child(4) { --reveal-delay: 0.24s; }
.event-card:nth-child(5) { --reveal-delay: 0.32s; }

.event-card:hover {
  border-color: rgba(20, 27, 61, 0.22);
  box-shadow: var(--card-shadow);
}

.event-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.event-card:hover .event-card-media img {
  transform: scale(1.06);
}

.event-card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.1rem 1.1rem 1.25rem;
}

.event-card-content h3 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.3vw, 1.35rem);
  line-height: 1.1;
}

.event-card-content p {
  display: -webkit-box;
  margin: 0 0 1rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.event-card-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--bm-blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.event-card-cta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke-width: 1.8;
}

.event-card-cta span {
  transition: transform 0.2s ease;
}

.event-card-cta:hover {
  color: var(--bm-navy);
}

/* Features */
.features {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 1.35vw, 1.25rem);
  align-items: stretch;
}

.feature-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  grid-column: span 3;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  padding: clamp(1.5rem, 1.9vw, 2rem);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:nth-child(n + 5) {
  grid-column: span 4;
}

.feature-card h3 {
  max-width: none;
  margin: 1rem 0 0.55rem;
  font-size: clamp(1.45rem, 1.8vw, 1.75rem);
  line-height: 1.08;
}

.feature-card p {
  max-width: 33rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Gallery — a grande quebra da página: fotografias grandes sobre
   azul-noite. Título e legendas invertem para claro; o acento vívido
   (--bm-blue-bright) substitui o azul de fundo claro aqui dentro. */
.gallery-section {
  background: var(--ink);
}

.gallery-section::before {
  filter: brightness(0) invert(1);
  opacity: 0.05;
}

.gallery-section .gallery-heading .eyebrow {
  color: var(--bm-blue-bright);
}

.gallery-section .gallery-heading h2 {
  color: var(--white);
}

.gallery-section .gallery-heading > div > p:last-child {
  color: var(--on-dark-muted);
}

.gallery-section .gallery-filters button {
  border-color: var(--line-on-dark);
  background: transparent;
  color: var(--on-dark-muted);
}

.gallery-section .gallery-filters button:hover,
.gallery-section .gallery-filters button.active {
  border-color: var(--bm-blue-bright);
  background: var(--bm-blue-bright);
  color: var(--white);
}

.gallery-section .gallery-item button {
  background: rgba(255, 255, 255, 0.06);
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 1.05fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.gallery-filters button {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 0 0.95rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.gallery-filters button:hover,
.gallery-filters button.active {
  border-color: var(--moon-700);
  background: var(--moon-700);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.2vw, 1.25rem);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 0.7rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item.is-filtered-out {
  display: none;
}

.gallery-item button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: var(--moon-100);
  padding: 0;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease), filter 0.35s ease;
}

.gallery-item button:hover img {
  filter: brightness(1.035) saturate(1.01);
  transform: scale(1.025);
}

.lightbox {
  width: fit-content;
  max-width: min(calc(100vw - 32px), 1180px);
  max-height: calc(100svh - 32px);
  overflow: hidden;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  padding: 0;
  box-shadow: 0 24px 70px rgba(20, 27, 61, 0.26);
}

.lightbox::backdrop {
  background: rgba(20, 27, 61, 0.72);
}

.lightbox-shell {
  position: relative;
  display: grid;
  width: fit-content;
  max-width: min(calc(100vw - 32px), 1180px);
  max-height: calc(100svh - 32px);
  place-items: center;
}

.lightbox-media {
  display: grid;
  max-width: 100%;
  max-height: calc(100svh - 32px);
  overflow: hidden;
  place-items: center;
  border-radius: inherit;
  background: var(--ink);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.lightbox-media.is-dragging {
  cursor: grabbing;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 32px);
  border-radius: inherit;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.18s ease;
}

.lightbox-media.is-dragging img {
  transition: none;
}

.lightbox-close,
.lightbox-navigation,
.extra-lightbox-close,
.extra-lightbox-navigation {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-blue);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--bm-navy);
  box-shadow: 0 8px 24px rgba(20, 27, 61, 0.15);
}

.lightbox-close,
.extra-lightbox-close {
  top: 0.75rem;
  right: 0.75rem;
}

.lightbox-navigation,
.extra-lightbox-navigation {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-previous,
.extra-lightbox-previous {
  left: 0.75rem;
}

.lightbox-next,
.extra-lightbox-next {
  right: 0.75rem;
}

.lightbox-close:hover,
.lightbox-navigation:hover,
.extra-lightbox-close:hover,
.extra-lightbox-navigation:hover {
  border-color: var(--bm-blue);
  color: var(--bm-blue);
}

.lightbox-close svg,
.lightbox-navigation svg,
.extra-lightbox-close svg,
.extra-lightbox-navigation svg {
  width: 21px;
  height: 21px;
}

.lightbox-navigation[hidden],
.extra-lightbox-navigation[hidden] {
  display: none;
}

.lightbox-counter,
.extra-lightbox-counter {
  position: absolute;
  z-index: 3;
  bottom: 0.75rem;
  left: 50%;
  min-width: 3.5rem;
  border: 1px solid var(--line-blue);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.35rem 0.65rem;
  color: var(--bm-navy);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  transform: translateX(-50%);
}

/* Extras */
.extras {
  background: var(--pearl);
}

.extras-filter-shell {
  margin-bottom: clamp(2rem, 3vw, 2.5rem);
}

.extras-filter-bar {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.35rem 0.35rem 0.9rem;
  scrollbar-color: var(--line-blue) transparent;
  scrollbar-width: thin;
}

.extras-filter-bar button {
  display: inline-flex;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 0 1.05rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.extras-filter-bar button:hover {
  border-color: var(--bm-blue);
  color: var(--bm-blue);
}

.extras-filter-bar button.is-active {
  border-color: var(--bm-blue);
  background: var(--bm-blue);
  color: var(--white);
}

.extras-filter-bar svg {
  width: 16px;
  height: 16px;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.2vw, 1.125rem);
}

.extra-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  transition: border-color 0.25s ease;
}

.extra-card[hidden] {
  display: none;
}

.extra-card::after {
  position: absolute;
  z-index: 0;
  right: -2rem;
  bottom: -2.5rem;
  width: clamp(95px, 8vw, 125px);
  aspect-ratio: 1;
  background: var(--floral-art) center / contain no-repeat;
  content: "";
  opacity: 0.04;
  pointer-events: none;
  transform: rotate(-10deg);
  transition: opacity 0.25s ease;
}

.extra-card:nth-child(even)::after {
  top: 45%;
  right: -2.25rem;
  bottom: auto;
  transform: rotate(12deg) scaleX(-1);
}

.extra-card:hover {
  border-color: rgba(20, 27, 61, 0.22);
}

.extra-card:hover::after {
  opacity: 0.08;
}

.extra-card-media,
.extra-card-content {
  position: relative;
  z-index: 1;
}

.extra-card-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--moon-50);
}

.extra-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.extra-card-placeholder {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.88), transparent 36%),
    var(--moon-50);
}

.extra-card-placeholder::after {
  position: absolute;
  right: -6%;
  bottom: -22%;
  width: 62%;
  aspect-ratio: 1;
  background: var(--floral-art) center / contain no-repeat;
  content: "";
  opacity: 0.1;
  transform: rotate(-8deg);
}

.extra-card-placeholder > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-blue);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--bm-blue);
}

.extra-card-placeholder svg {
  width: 22px;
  height: 22px;
}

.extra-card-content {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1rem, 1.3vw, 1.35rem);
}

.extra-card-category {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--bm-blue);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.extra-card-category svg {
  width: 18px;
  height: 18px;
}

.extra-card h3 {
  display: -webkit-box;
  min-height: 2.35em;
  margin: 0;
  overflow: hidden;
  font-size: clamp(1.3rem, 1.5vw, 1.55rem);
  line-height: 1.1;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.extra-card p {
  display: -webkit-box;
  min-height: 4.5em;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.extra-view-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  border: 1px solid var(--line-blue);
  border-radius: 6px;
  background: var(--moon-50);
  padding: 0 1rem;
  color: var(--bm-blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.extra-view-button:hover,
.extra-view-button:focus-visible {
  border-color: var(--bm-blue);
  background: var(--bm-blue);
  color: var(--white);
}

.extra-view-button svg {
  width: 16px;
  height: 16px;
}

.extras-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
}

.extras-more-button {
  display: inline-flex;
  max-width: 100%;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid var(--line-blue);
  border-radius: 6px;
  background: var(--moon-50);
  padding: 0 1.35rem;
  color: var(--bm-blue);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.extras-more-button:hover,
.extras-more-button:focus-visible {
  border-color: var(--bm-blue);
  background: var(--bm-blue);
  color: var(--white);
}

.extras-more-button[hidden] {
  display: none;
}

/* Visualização ampliada dos itens extras — só a foto, igual à lightbox
   da galeria: clicar, ver a imagem, fechar. Nada de texto por cima. */
.extra-lightbox {
  width: fit-content;
  max-width: min(calc(100vw - 32px), 1080px);
  max-height: calc(100svh - 32px);
  overflow: hidden;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  padding: 0;
  box-shadow: 0 24px 70px rgba(20, 27, 61, 0.26);
}

.extra-lightbox::backdrop {
  background: rgba(20, 27, 61, 0.72);
}

.extra-lightbox-shell {
  position: relative;
  display: grid;
  width: fit-content;
  max-width: min(calc(100vw - 32px), 1080px);
  max-height: calc(100svh - 32px);
  place-items: center;
}

.extra-lightbox-media {
  display: grid;
  max-width: 100%;
  max-height: calc(100svh - 32px);
  overflow: hidden;
  place-items: center;
  border-radius: inherit;
  background: var(--ink);
}

.extra-lightbox-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 32px);
  min-width: min(60vw, 32rem);
  border-radius: inherit;
  object-fit: contain;
}

.extra-lightbox-placeholder {
  position: relative;
  display: grid;
  width: min(60vw, 32rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.1), transparent 32%),
    var(--ink);
}

.extra-lightbox-placeholder::after {
  position: absolute;
  right: -7%;
  bottom: -22%;
  width: 66%;
  aspect-ratio: 1;
  background: var(--floral-art) center / contain no-repeat;
  content: "";
  filter: brightness(0) invert(1);
  opacity: 0.1;
  transform: rotate(-8deg);
}

.extra-lightbox-placeholder > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid var(--line-on-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.extra-lightbox-placeholder svg {
  width: 26px;
  height: 26px;
}

.extra-lightbox [hidden] {
  display: none;
}

/* Instagram — interlúdio curto em azul-gelo, não uma seção cheia. O
   logotipo real da marca (gradiente) e um brilho suave atrás dele são
   o único ponto de cor fora da paleta — a identidade do Instagram é o
   próprio conteúdo aqui, não um ícone genérico de contorno. */
.instagram-callout {
  background: var(--moon-50);
  padding-block: clamp(2rem, 2.6vw, 2.75rem);
}

.instagram-callout::before {
  position: absolute;
  z-index: 0;
  top: -3.5rem;
  right: 6%;
  width: 13rem;
  aspect-ratio: 1;
  background: var(--floral-art) center / contain no-repeat;
  content: "";
  opacity: 0.12;
  pointer-events: none;
  transform: rotate(14deg) scaleX(-1);
}

.instagram-grid {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.instagram-icon {
  position: relative;
  display: grid;
  place-items: center;
}

.instagram-icon::before {
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 41, 118, 0.22), transparent 72%);
  content: "";
}

.instagram-icon svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 3px 10px rgba(150, 47, 191, 0.28));
}

.instagram-grid h3 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.5rem, 1.9vw, 1.875rem);
}

.instagram-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact */
.contact {
  background:
    radial-gradient(ellipse 36rem 30rem at 0% 12%, rgba(242, 247, 251, 0.95), transparent 72%),
    var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 6rem);
}

.contact-copy {
  position: sticky;
  top: 8rem;
}

.contact-copy h2 {
  max-width: 32rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.contact-copy address {
  display: grid;
  gap: 0.45rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  font-style: normal;
}

.contact-copy address span {
  color: var(--ink);
  font-weight: 700;
}

.contact-copy address a {
  color: var(--muted);
  font-size: 0.88rem;
}

.form-card {
  border: 1px solid var(--line-blue);
  border-radius: 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.form-heading {
  margin-bottom: 2.5rem;
}

.form-heading h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.form-heading > p:last-child {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label,
.extras-selector summary {
  color: var(--ink);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--pearl);
  padding: 0.82rem 0.9rem;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--moon-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(28, 143, 219, 0.15);
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field-error {
  min-height: 1em;
  color: #a74451;
  font-size: 0.72rem;
}

.extras-selector {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--pearl);
}

.extras-selector summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem;
}

.extras-selector summary::-webkit-details-marker {
  display: none;
}

/* O "+" e o "−" eram texto: destoavam dos ícones em traço do resto da
   página, e cada sistema desenhava o seu. Agora é o chevron do Lucide. */
.extras-selector-chevron {
  float: right;
  width: 18px;
  height: 18px;
  color: var(--moon-700);
  transition: transform 0.2s var(--ease);
}

.extras-selector[open] .extras-selector-chevron {
  transform: rotate(180deg);
}

.extras-selector summary span {
  margin-left: 0.4rem;
  color: var(--muted);
  font-size: 0.58rem;
}

.extras-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  max-height: 18rem;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding: 1rem;
}

.extras-options label,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text);
  cursor: pointer;
  font-size: 0.78rem;
}

.extras-options input,
.consent input {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  margin-top: 0.15rem;
  accent-color: var(--moon-700);
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.form-footer p {
  max-width: 17rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.69rem;
}

.form-alert {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border: 0;
  border-radius: 0.9rem;
  background: var(--moon-50);
  padding: 1rem 1.15rem;
}

.form-alert:focus,
.form-alert:focus-visible {
  outline: none;
  box-shadow: none;
}

.form-alert-success {
  background: #f0f8f3;
}

.form-alert-error {
  background: #fff6f7;
}

.form-alert-icon {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border-radius: 50%;
  background: #dff3e7;
  color: #218653;
}

.form-alert-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.form-alert-error .form-alert-icon {
  background: #fce8eb;
  color: #a74451;
}

.form-alert strong {
  color: var(--ink);
}

.form-alert p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
}

/* Comemoração breve ao confirmar a solicitação — só quando o envio dá
   certo, e só para quem não pediu menos movimento na tela. */
.confetti-burst {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  opacity: 0.95;
  animation: confetti-fall var(--fall-duration, 1.4s) var(--fall-delay, 0s) ease-in forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.95;
  }

  100% {
    transform: translate(var(--fall-drift, 0), 130px) rotate(var(--fall-rotate, 220deg));
    opacity: 0;
  }
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Final CTA — a mesma fachada do herói, agora sob a noite: a casa
   reaparece no fim do percurso, e o CTA vira parte da fotografia, não
   um cartão pousado sobre uma faixa. */
.final-cta {
  padding: clamp(96px, 11vw, 156px) 0;
  background:
    linear-gradient(180deg, rgba(20, 27, 61, 0.93), rgba(20, 27, 61, 0.86) 45%, rgba(20, 27, 61, 0.96)),
    var(--hero-banner-img, url("../images/banner-1920w.webp")) center 35% / cover no-repeat;
}

.final-cta-inner {
  position: relative;
  isolation: isolate;
  text-align: center;
}

.final-cta-inner::before,
.final-cta-inner::after {
  position: absolute;
  z-index: 0;
  width: clamp(160px, 18vw, 270px);
  aspect-ratio: 1;
  background: var(--floral-art) center / contain no-repeat;
  content: "";
  filter: brightness(0) invert(1);
  opacity: 0.08;
  pointer-events: none;
}

.final-cta-inner::before {
  bottom: -4.5rem;
  left: -3rem;
  transform: rotate(-13deg);
}

.final-cta-inner::after {
  top: -4.75rem;
  right: -3rem;
  transform: rotate(168deg) scaleX(-1);
}

.final-cta-inner > * {
  position: relative;
  z-index: 1;
}

.final-cta .eyebrow {
  color: var(--bm-blue-bright);
}

.final-cta h3 {
  margin-bottom: 0.8rem;
  color: var(--white);
}

.final-cta p:not(.eyebrow) {
  margin-bottom: 2rem;
  color: var(--on-dark-muted);
}

.final-cta .button-primary {
  border-color: var(--bm-blue-bright);
  background: var(--bm-blue-bright);
}

.final-cta .button-primary:hover,
.final-cta .button-primary:focus-visible {
  border-color: var(--white);
  background: var(--white);
  color: var(--bm-navy);
}

/* Um pequeno céu noturno no único CTA em azul-noite da página — o
   mesmo brilho ✦ do cabeçalho do herói, agora piscando devagar, como
   se a "lua" do nome estivesse ali de verdade. */
.night-sky {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.night-sparkle {
  position: absolute;
  width: 1em;
  height: 1em;
  background: currentColor;
  color: var(--bm-blue-bright);
  font-size: 0.85rem;
  line-height: 1;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M12 1.5 14 9.6l8.1 2.4-8.1 2.4-2 8.1-2-8.1L1.9 12 10 9.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M12 1.5 14 9.6l8.1 2.4-8.1 2.4-2 8.1-2-8.1L1.9 12 10 9.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: twinkle 4.2s ease-in-out infinite;
}

.night-sparkle-1 { top: 16%; left: 8%; font-size: 0.7rem; animation-delay: 0s; }
.night-sparkle-2 { top: 68%; left: 6%; font-size: 1rem; animation-delay: 1.4s; }
.night-sparkle-3 { top: 24%; left: 92%; font-size: 0.75rem; animation-delay: 0.7s; }
.night-sparkle-4 { top: 78%; left: 90%; font-size: 0.65rem; animation-delay: 2.3s; }
.night-sparkle-5 { top: 45%; left: 16%; font-size: 0.55rem; animation-delay: 3.1s; }
.night-sparkle-6 { top: 40%; left: 84%; font-size: 0.6rem; animation-delay: 1.9s; }

@keyframes twinkle {
  0%, 100% {
    opacity: 0.15;
    transform: scale(0.75);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.15);
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding-block: 4rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.75fr);
  gap: 2.5rem;
}

.footer-logo {
  width: 12rem;
}

.footer-brand p {
  max-width: 26rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-column h3 {
  margin-bottom: 0.55rem;
  color: var(--moon-700);
  font-family: var(--body);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-column a:hover {
  color: var(--moon-700);
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.footer-bottom > p {
  margin: 0;
}

.privacy-note {
  max-width: 25rem;
  text-align: right;
}

.privacy-note summary {
  color: var(--moon-700);
  cursor: pointer;
  font-weight: 700;
}

.privacy-note p {
  margin: 0.75rem 0 0;
}

.privacy-note a {
  text-decoration: underline;
}

.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: 1.2rem;
  bottom: 1.2rem;
  display: grid;
  width: 3.7rem;
  height: 3.7rem;
  place-content: center;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #2b9e6b;
  color: var(--white);
  box-shadow: 0 13px 28px rgba(37, 108, 77, 0.25);
  transition: background 0.2s var(--ease);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #23845a;
}

.whatsapp-float svg {
  width: 1.65rem;
  fill: currentColor;
}

/* Aviso de cookies — mesma superfície de cartão usada no formulário de
   contato (borda, sombra, raio), fixo no canto e recolhido por padrão. O
   JS decide quando mostrar (site.js: bmCookieBanner) e desloca o botão do
   WhatsApp para cima enquanto o aviso estiver visível. */
.cookie-banner {
  position: fixed;
  z-index: 95;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  max-width: 26rem;
  margin-left: auto;
  opacity: 0;
  border: 1px solid var(--line-blue);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow);
  pointer-events: none;
  transform: translateY(calc(100% + 1.2rem));
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.cookie-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* O botão do WhatsApp some enquanto o aviso está aberto — os dois disputam
   o mesmo canto, e o consentimento é a prioridade momentânea. Volta assim
   que a pessoa aceita. */
body.has-cookie-banner .whatsapp-float {
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.35rem;
}

.cookie-banner p {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.6;
}

.cookie-banner a {
  color: var(--bm-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner .button {
  align-self: flex-end;
}

@media (max-width: 560px) {
  .cookie-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    max-width: none;
  }

  .cookie-banner-inner {
    padding: 1.1rem;
  }

  .cookie-banner .button {
    align-self: stretch;
  }
}

/* O link "Abrir no Google Maps" veste o mesmo formato compacto, um
   degrau abaixo na hierarquia: contorno pálido, sem preenchimento. */
.text-link {
  display: inline-flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--line-blue);
  border-radius: 6px;
  background: var(--moon-50);
  padding: 0 1.1rem;
  color: var(--bm-blue);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.text-link:hover,
.text-link:focus-visible {
  border-color: var(--bm-blue);
  background: var(--bm-blue);
  color: var(--white);
}

@media (max-width: 1280px) {
  .extras-grid,
  .event-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .highlights,
  .feature-grid,
  .extras-grid,
  .event-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlight,
  .highlight:nth-child(n + 5),
  .feature-card,
  .feature-card:nth-child(n + 5) {
    grid-column: auto;
  }

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

  .footer-column:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 1100px) {
  /* O respiro de 20px é um gesto de desktop: no telefone a barra já
     nasce colada no topo, só troca de cor ao rolar. */
  :root {
    --layout-width: 100%;
    --header-top: 0px;
    --header-height: 72px;
    --header-height-scrolled: 64px;
  }

  .nav-shell {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 1rem;
    padding-inline: var(--layout-padding);
  }

  .site-header .brand {
    width: 155px;
  }

  .site-header.is-scrolled .brand,
  body.menu-open .brand {
    width: 141px;
  }

  .menu-toggle {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    position: fixed;
    z-index: 999;
    top: var(--header-bottom);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100svh - var(--header-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    border-bottom: 1px solid var(--line-blue);
    background: var(--white);
    box-shadow: 0 10px 22px rgba(20, 27, 61, 0.09);
    padding: 0.5rem var(--layout-padding) 1rem;
    white-space: normal;
    overscroll-behavior: contain;
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
    min-height: 50px;
    border-bottom: 1px solid var(--line-blue);
    font-size: 0.78rem;
    letter-spacing: 0.07em;
  }

  /* O painel aberto é sempre branco, então aqui os links são
     azul-marinho em qualquer estado da barra — e o realce do item atual
     vira uma virada de cor para o azul da marca, já que o losango não
     cabe nesta lista vertical. */
  .site-header .primary-nav a,
  .site-header.is-scrolled .primary-nav a {
    color: var(--bm-navy);
    text-shadow: none;
  }

  .site-header .primary-nav a:hover,
  .site-header .primary-nav a:focus-visible,
  .site-header .primary-nav a[aria-current="true"],
  .site-header.is-scrolled .primary-nav a:hover,
  .site-header.is-scrolled .primary-nav a:focus-visible,
  .site-header.is-scrolled .primary-nav a[aria-current="true"] {
    color: var(--bm-blue);
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .primary-nav a::after {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --layout-width: 100%;
    --layout-padding: clamp(20px, 3.2vw, 26px);
  }

  .hero {
    height: auto;
    min-height: 100svh;
    padding: 0 0 clamp(56px, 7vh, 64px);
    padding-top: calc(var(--header-height) + clamp(68px, 9vh, 88px));
  }

  .hero-media {
    background-position: 73% center;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 6.2vw, 2.95rem);
  }

  .intro-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-item {
    grid-template-rows: auto minmax(2.8em, auto);
  }

  .stat-item:nth-child(2)::before,
  .stat-item:nth-child(2)::after {
    display: none;
  }

  .stat-item:nth-child(-n + 2) {
    background-image: linear-gradient(var(--line-blue), var(--line-blue));
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 64px 1px;
  }

  .about-grid,
  .section-heading,
  .gallery-heading,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    padding-left: 1rem;
  }

  .contact-copy {
    position: static;
  }

  .section-heading,
  .gallery-heading {
    align-items: start;
    gap: 1rem;
  }

  .section-heading > p,
  .section-heading > div:last-child p {
    justify-self: start;
  }

  .gallery-filters {
    justify-content: flex-start;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instagram-grid {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .instagram-grid .button {
    grid-column: 2;
    justify-self: start;
  }

  .extra-lightbox-shell {
    grid-template-columns: 1fr;
  }

  .extra-lightbox-media {
    aspect-ratio: 16 / 9;
  }

  .extra-lightbox-placeholder {
    min-height: 20rem;
  }

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

  .footer-brand,
  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .privacy-note {
    text-align: left;
  }
}

@media (max-width: 560px) {
  :root {
    --layout-width: 100%;
    --layout-padding: clamp(18px, 5vw, 22px);
    --section: 4.5rem;
  }

  h2 {
    font-size: clamp(2.35rem, 10.5vw, 2.875rem);
    line-height: 1.06;
  }

  .hero {
    min-height: 100svh;
    padding: 0 0 clamp(48px, 12vw, 58px);
    padding-top: calc(var(--header-height) + clamp(28px, 8vw, 40px));
  }

  .hero-media {
    background-position: 78% center;
  }

  /* Na coluna estreita o texto ocupa a largura toda, então o véu
     escurece de cima para baixo em vez de só pela esquerda. */
  .hero-wash {
    background:
      linear-gradient(180deg, rgba(3, 3, 5, 0.74) 0%, rgba(3, 3, 5, 0.64) 40%, rgba(3, 3, 5, 0.52) 72%, rgba(3, 3, 5, 0.44) 100%),
      linear-gradient(90deg, rgba(3, 3, 5, 0.3) 0%, transparent 72%);
  }

  .hero::after {
    bottom: -4rem;
    left: -5rem;
    width: 230px;
    height: 350px;
    opacity: 0.08;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 2.8rem);
  }

  .hero-title-line {
    white-space: normal;
  }

  .hero-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-button {
    width: 100%;
    flex: 0 0 auto;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-actions .button {
    width: 100%;
  }

  .stat-item {
    min-height: 110px;
    padding: 0.85rem 0.5rem;
  }

  .stat-item strong {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
  }

  .stat-number {
    font-size: clamp(1.9rem, 8.5vw, 2.4rem);
  }

  .stat-item > span {
    font-size: 0.59rem;
    letter-spacing: 0.07em;
  }

  .photo-card img {
    height: 30rem;
  }

  .moon-seal {
    width: 7.5rem;
    height: 7.5rem;
  }

  .highlights,
  .feature-grid,
  .extras-grid,
  .event-list,
  .form-row,
  .extras-options,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .extras-filter-bar {
    flex-wrap: nowrap;
    padding-bottom: 0.55rem;
  }

  .instagram-grid {
    grid-template-columns: 28px minmax(0, 1fr);
    text-align: left;
  }

  .instagram-grid .button {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: start;
  }

  .extra-lightbox {
    width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);
  }

  .extra-lightbox-media {
    aspect-ratio: 4 / 3;
  }

  .extra-lightbox-placeholder {
    min-height: 0;
  }

  .extra-lightbox-content {
    padding: 1.4rem;
  }

  .form-card {
    padding: 1.25rem;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer .button {
    width: 100%;
  }

  .footer-column:last-child,
  .footer-brand {
    grid-column: auto;
  }

  .final-cta {
    padding-top: clamp(48px, 12vw, 64px);
    padding-bottom: clamp(48px, 12vw, 64px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  /* Sem os atrasos em cascata o herói nasce inteiro: com duração quase
     zero, um delay de 0,3s ainda seguraria os botões invisíveis. */
  .hero-content > * {
    animation: none;
  }

  .highlight:hover,
  .feature-card:hover,
  .extra-card:hover {
    transform: none;
  }
}

/* =========================================================================
   Fotos da seção "Sobre a Blue Moon"

   A moldura, a altura e o selo são os mesmos de quando a seção tinha uma
   foto fixa — o que muda é que agora várias se revezam dentro dela. Com uma
   foto só o PHP não escreve .photo-card-gallery e nada aqui vale.
   ========================================================================= */
.photo-card-gallery {
  --about-photo-height: clamp(31rem, 52vw, 45rem);
  height: var(--about-photo-height);
}

.photo-card-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.photo-card-gallery img.is-current {
  opacity: 1;
}

/* As setas ficam no meio da moldura, discretas até o mouse chegar perto. */
.about-photos-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--bm-navy);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.25s var(--ease), background 0.25s var(--ease);
}

.about-photos-previous { left: 1rem; }
.about-photos-next { right: 1rem; }

.photo-card-gallery:hover .about-photos-nav,
.photo-card-gallery:focus-within .about-photos-nav { opacity: 1; }

.about-photos-nav:hover { background: var(--white); }
.about-photos-nav:focus-visible { opacity: 1; outline: 3px solid var(--moon-500); outline-offset: 2px; }
.about-photos-nav svg { width: 20px; height: 20px; }

/* Os pontos ficam acima do selo redondo, à direita, para não passarem por
   baixo dele na quina inferior esquerda da moldura. */
.about-photos-dots {
  position: absolute;
  z-index: 3;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background: rgba(20, 27, 61, 0.42);
  backdrop-filter: blur(4px);
}

.about-photos-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}

.about-photos-dot.is-current {
  width: 1.4rem;
  border-radius: 999px;
  background: var(--white);
}

.about-photos-dot:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

@media (max-width: 820px) {
  .photo-card-gallery { --about-photo-height: 30rem; }
  .about-photos-nav { width: 2.4rem; height: 2.4rem; opacity: 1; }
  .about-photos-dots { right: 1rem; bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-card-gallery img { transition: none; }
}

/* =========================================================================
   Fotos do item extra, dentro da janela "Ver item"

   As setas do lightbox trocam de item; esta faixa troca de foto dentro do
   mesmo item. Ela flutua sobre a imagem para não alterar as medidas da
   janela, que são calculadas a partir da foto.
   ========================================================================= */
.extra-lightbox-thumbs {
  position: absolute;
  z-index: 3;
  bottom: 0.75rem;
  left: 50%;
  display: flex;
  max-width: calc(100% - 6rem);
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.4rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(20, 27, 61, 0.52);
  scrollbar-width: none;
  transform: translateX(-50%);
}

.extra-lightbox-thumbs::-webkit-scrollbar { display: none; }

.extra-lightbox-thumb {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.55rem;
  background: none;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}

.extra-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.extra-lightbox-thumb:hover { opacity: 1; }

.extra-lightbox-thumb.is-current {
  border-color: var(--white);
  opacity: 1;
}

.extra-lightbox-thumb:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* Com a faixa presente, o contador de fotos sai do rodapé e vai para o
   canto — os dois disputavam o mesmo centro embaixo. */
.extra-lightbox-thumbs:not([hidden]) ~ .extra-lightbox-counter {
  top: 0.75rem;
  bottom: auto;
  left: 0.75rem;
  transform: none;
}

@media (max-width: 560px) {
  .extra-lightbox-thumbs { max-width: calc(100% - 1.5rem); }
  .extra-lightbox-thumb { width: 2.5rem; height: 2.5rem; }
}

/* =========================================================================
   REFINO DE SUPERFICIES E MOVIMENTO

   O acabamento dos cards segue a linguagem editorial da casa: linhas finas,
   fotografia em destaque e movimentos curtos. Nenhum card "salta" da pagina;
   a resposta acontece dentro dele, preservando a estabilidade do layout.
   ========================================================================= */
:root {
  --card-motion: 420ms;
  --card-ease: cubic-bezier(0.2, 0.78, 0.2, 1);
  --card-shadow-refined: 0 16px 38px rgba(20, 27, 61, 0.075);
}

.button-icon svg {
  transition: transform 280ms var(--card-ease);
}

.highlight,
.feature-card,
.event-card,
.extra-card,
.form-card {
  border-color: rgba(20, 27, 61, 0.13);
}

.highlight,
.feature-card {
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(20, 27, 61, 0.025);
  transition:
    border-color var(--card-motion) var(--card-ease),
    background-color var(--card-motion) var(--card-ease),
    box-shadow var(--card-motion) var(--card-ease);
}

.highlight::before,
.feature-card::before {
  display: none;
}

.highlight-icon,
.feature-icon {
  border: 1px solid transparent;
  transition:
    border-color 300ms var(--card-ease),
    background-color 300ms var(--card-ease),
    color 300ms var(--card-ease),
    transform 300ms var(--card-ease);
}

.event-card {
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(20, 27, 61, 0.025);
  transition:
    border-color var(--card-motion) var(--card-ease),
    box-shadow var(--card-motion) var(--card-ease);
}

.event-card-media::after,
.gallery-item button::after,
.extra-card-media::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  content: "";
  pointer-events: none;
  transition:
    border-color var(--card-motion) var(--card-ease),
    box-shadow var(--card-motion) var(--card-ease);
}

.event-card-media img,
.extra-card-media img,
.gallery-item img {
  transition:
    transform 720ms var(--card-ease),
    filter var(--card-motion) var(--card-ease);
}

.event-card-content,
.extra-card-content {
  position: relative;
}

.event-card-content::before,
.extra-card-content::before {
  display: none;
}

.event-card-content h3,
.extra-card h3 {
  transition: color 300ms var(--card-ease);
}

.event-card-cta svg,
.extra-view-button svg {
  transition: transform 280ms var(--card-ease);
}

.gallery-item {
  border-radius: 8px;
  background: var(--ink);
}

.gallery-item button::after {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0);
}

.extra-card {
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(20, 27, 61, 0.025);
  transition:
    border-color var(--card-motion) var(--card-ease),
    box-shadow var(--card-motion) var(--card-ease);
}

.extra-card-media::after {
  border-color: rgba(20, 27, 61, 0.055);
}

.form-card {
  border-radius: 18px;
  box-shadow: 0 18px 52px rgba(20, 27, 61, 0.08);
}

.field input,
.field select,
.field textarea,
.extras-selector {
  transition:
    border-color 260ms var(--card-ease),
    background-color 260ms var(--card-ease),
    box-shadow 260ms var(--card-ease);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover .button-icon svg,
  .button:focus-visible .button-icon svg {
    transform: translateX(3px);
  }

  .highlight:hover,
  .feature-card:hover {
    border-color: rgba(20, 27, 61, 0.2);
    box-shadow: var(--card-shadow-refined);
  }

  .highlight:hover::before,
  .feature-card:hover::before {
    transform: scaleY(1);
  }

  .highlight:hover .highlight-icon,
  .feature-card:hover .feature-icon {
    border-color: rgba(20, 27, 61, 0.1);
    background: var(--moon-50);
    color: var(--bm-blue);
  }

  .event-card:hover,
  .extra-card:hover {
    border-color: rgba(20, 27, 61, 0.2);
    box-shadow: var(--card-shadow-refined);
  }

  .event-card:hover .event-card-media img,
  .extra-card:hover .extra-card-media img,
  .gallery-item button:hover img {
    filter: brightness(1.025) saturate(1.025);
    transform: scale(1.04);
  }

  .event-card:hover .event-card-media::after,
  .extra-card:hover .extra-card-media::after {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 -54px 64px rgba(20, 27, 61, 0.055);
  }

  .event-card:hover .event-card-content::before,
  .extra-card:hover .extra-card-content::before {
    transform: scaleX(1);
  }

  .event-card:hover .event-card-content h3,
  .extra-card:hover h3 {
    color: var(--bm-navy);
  }

  .event-card-cta:hover svg,
  .extra-view-button:hover svg,
  .extra-view-button:focus-visible svg {
    transform: translate(2px, -2px);
  }

  .gallery-item button:hover::after {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.055);
  }
}

/* =========================================================================
   REFINO TIPOGRAFICO E EDITORIAL — LANDING PAGE

   A identidade permanece a mesma, mas com menos peso, menos repeticao
   decorativa e uma hierarquia mais calma entre titulos, textos e acoes.
   ========================================================================= */
body {
  color: #41475b;
  line-height: 1.7;
}

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.6rem, 3.6vw, 3.75rem);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}

.eyebrow {
  margin-bottom: 1.15rem;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.145em;
}

.lead {
  font-size: clamp(1.04rem, 1.45vw, 1.22rem);
  line-height: 1.72;
}

.button,
.hero-button,
.header-cta {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.055em;
}

.hero-eyebrow {
  font-weight: 600;
  letter-spacing: 0.17em;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(2.75rem, 3.5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.035;
}

.hero h1 .hero-title-accent {
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.028em;
}

.hero-copy {
  max-width: 485px;
  font-size: clamp(1rem, 1.03vw, 1.08rem);
  line-height: 1.7;
}

.highlight,
.feature-card,
.event-card,
.extra-card {
  border-color: rgba(20, 27, 61, 0.105);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(20, 27, 61, 0.02);
}

.highlight h4 {
  font-size: clamp(1.25rem, 1.45vw, 1.48rem);
  font-weight: 500;
  line-height: 1.18;
}

.feature-card::after {
  opacity: 0.055;
}

.feature-card:hover::after {
  opacity: 0.075;
}

.highlight-icon,
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: rgba(242, 247, 251, 0.78);
}

.feature-card h3 {
  margin-top: 1.05rem;
  font-size: clamp(1.38rem, 1.65vw, 1.62rem);
  font-weight: 500;
  line-height: 1.14;
}

.feature-card p {
  color: #666c80;
  font-size: 0.91rem;
  line-height: 1.68;
}

.event-card-content {
  padding: 1.2rem 1.2rem 1.35rem;
}

.event-card-content h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.2rem, 1.28vw, 1.38rem);
  font-weight: 500;
  line-height: 1.14;
}

.event-card-content p {
  margin-bottom: 1.1rem;
  color: #666c80;
  font-size: 0.85rem;
  line-height: 1.62;
}

.event-card-cta {
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.045em;
}

@media (hover: hover) and (pointer: fine) {
  .highlight:hover,
  .feature-card:hover,
  .event-card:hover,
  .extra-card:hover {
    border-color: rgba(20, 27, 61, 0.18);
    box-shadow: 0 14px 34px rgba(20, 27, 61, 0.065);
  }

  .event-card:hover .event-card-media img,
  .extra-card:hover .extra-card-media img,
  .gallery-item button:hover img {
    filter: brightness(1.015) saturate(1.015);
    transform: scale(1.03);
  }
}

@media (max-width: 560px) {
  h2 {
    font-size: clamp(2.25rem, 10vw, 2.7rem);
    line-height: 1.08;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10.5vw, 2.65rem);
    line-height: 1.055;
  }

  .hero-copy {
    font-size: 0.97rem;
    line-height: 1.7;
  }

  .event-card-content h3 {
    font-size: 1.4rem;
  }

  .event-card-content p {
    font-size: 0.9rem;
  }

  .highlight,
  .feature-card,
  .event-card,
  .extra-card {
    border-radius: 8px;
  }
}

@media (max-width: 560px) {
  .highlight,
  .feature-card,
  .event-card,
  .extra-card { border-radius: 9px; }

  .form-card { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .button-icon svg,
  .highlight::before,
  .feature-card::before,
  .highlight-icon,
  .feature-icon,
  .event-card-media img,
  .extra-card-media img,
  .gallery-item img,
  .event-card-content::before,
  .extra-card-content::before,
  .event-card-cta svg,
  .extra-view-button svg {
    transform: none !important;
  }
}

/* Página 404 — reaproveita a escala tipográfica e os botões já existentes,
   só adiciona o espaçamento vertical de uma página curta e centralizada. */
.error-page {
  padding-top: calc(var(--header-top) + var(--header-height) + clamp(96px, 14vh, 160px));
  padding-bottom: clamp(96px, 11vw, 156px);
  text-align: center;
}

.error-page .eyebrow {
  justify-content: center;
}

.error-page h1 {
  font-size: clamp(2.6rem, 3.6vw, 3.75rem);
}

.error-page .lead {
  margin-left: auto;
  margin-right: auto;
}

.error-page .button {
  margin-top: 0.5rem;
}
