/* ==========================================================================
   Mibis Home — folha de estilo
   Paleta e tipografia originais preservadas; contraste ajustado para WCAG AA.
   ========================================================================== */

:root {
  --bg:        #f5f0e7;  /* fundo principal (areia) */
  --bg-alt:    #ede7db;  /* fundo de seções alternadas */
  --ink:       #2d2925;  /* texto principal / fundo escuro */
  --body:      #6f6a60;  /* texto corrido  — 4.74:1 sobre --bg */
  --muted:     #635d52;  /* rótulos pequenos — 5.75:1 sobre --bg */
  --sage:      #8f9962;  /* verde de apoio (decorativo) */
  --sage-dark: #6f7a45;  /* verde para texto/links */
  --rose:      #efb2b4;  /* rosa da marca */
  --cream:     #ece5d8;  /* texto sobre fundo escuro */
  --cream-dim: #c5bfb0;  /* texto secundário sobre escuro — 7.87:1 */
  --line:      rgba(51, 48, 43, .12);
  --line-dark: rgba(233, 227, 214, .18);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pad: 44px;          /* respiro lateral do container */
  --shadow: 0 18px 44px rgba(45, 41, 37, .16);
}

/* --------------------------------------------------------------- base --- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* impede que o header fixo cubra o título ao navegar pelas âncoras */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe { max-width: 100%; }

/* garante que o atributo hidden esconda o elemento mesmo com classe de layout */
[hidden] { display: none !important; }

a { color: var(--ink); }
a:hover { color: var(--sage-dark); }

/* foco visível e consistente em todo elemento interativo */
:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 22px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  color: var(--bg);
}

/* ----------------------------------------------------------- utilidades -- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.container--narrow { max-width: 1000px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: .005em;
  margin: 0;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.08;
  font-weight: 500;
  margin: 0;
}

.lead {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--body);
  font-weight: 300;
}

.prose {
  font-size: 15px;
  line-height: 1.8;
  color: var(--body);
  font-weight: 300;
}

.section { padding: 96px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
.section-head--ruled {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* animação de entrada — desligada em prefers-reduced-motion (ver fim) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- botões */

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 16px 32px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: #443e37; color: var(--bg); transform: translateY(-2px); }

.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.btn--link {
  padding: 16px 6px;
  border-bottom: 1px solid currentColor;
  align-self: center;
}
.btn--link:hover { color: var(--sage-dark); }

.btn--link-light {
  padding: 15px 6px;
  color: var(--cream);
  border-bottom: 1px solid var(--line-dark);
}
.btn--link-light:hover { color: #fff; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.inline-link {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  border-bottom: 1px solid var(--sage-dark);
  padding-bottom: 3px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 243, 236, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(51, 48, 43, .1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { display: block; width: auto; }
.brand .brand-icon { height: 48px; }
.brand .brand-word { height: 40px; }

.nav-desktop {
  display: flex;
  gap: 32px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--body);
}
.nav-desktop a {
  text-decoration: none;
  color: inherit;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--sage);
}

/* botão hambúrguer — só aparece no mobile */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* painel de navegação mobile */
.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(247, 243, 236, .98);
}
.nav-mobile[data-open="true"] { display: block; }
.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 8px var(--pad) 20px;
}
/* :not(.btn) — senão esta regra apagaria o texto claro do botão do WhatsApp */
.nav-mobile a:not(.btn) {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav-mobile li:last-child a { border-bottom: 0; }
.nav-mobile .nav-mobile-cta {
  margin-top: 18px;
  display: block;
  text-align: center;
}

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
}
.hero-copy {
  padding: 96px 64px 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  margin-left: auto;
}
.hero-copy .lead { max-width: 400px; margin: 28px 0 38px; }
.hero-media {
  min-height: 560px;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ------------------------------------------------- tira de categorias --- */

.marquee {
  background: var(--ink);
  color: var(--cream-dim);
  overflow: hidden;
  padding: 26px 0;
}
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
}
.marquee-track > span { white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ------------------------------------------------------------ ambientação */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li {
  font-size: 14px;
  color: var(--body);
  font-weight: 300;
  display: flex;
  gap: 12px;
}
.feature-list li::before {
  content: "—";
  color: var(--sage-dark);
  flex: none;
}

.media-frame { overflow: hidden; min-height: 400px; }
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------- vitrine */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card { display: flex; flex-direction: column; gap: 14px; }
.card-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}
.card:hover .card-media img { transform: scale(1.05); }
.card-title { font-size: 14px; font-weight: 400; }
.card-sub { font-size: 12px; color: var(--muted); }

/* --------------------------------------------------------------- galeria */

.gallery { background: var(--bg-alt); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.gallery-item {
  overflow: hidden;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  display: block;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

/* -------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(23, 21, 19, .93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox[data-open="true"] { display: flex; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: var(--shadow);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(245, 240, 231, .1);
  border: 1px solid rgba(236, 229, 216, .35);
  color: var(--cream);
  width: 48px;
  height: 48px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(245, 240, 231, .24); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-nav--next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ----------------------------------------------------------------- sobre */

.video-wrap {
  min-height: 440px;
  overflow: hidden;
  position: relative;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--ink);
}
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity .3s ease;
}
.play-btn[hidden] { display: none; }
.play-btn-circle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(45, 41, 37, .55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(236, 229, 216, .5);
  transition: transform .3s ease, background .3s ease;
}
.play-btn:hover .play-btn-circle {
  transform: scale(1.07);
  background: rgba(45, 41, 37, .72);
}
.play-btn-circle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 20px solid var(--bg);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 5px;
}

/* ----------------------------------------------------------- depoimentos */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.quote {
  background: #fbf8f2;
  border: 1px solid var(--line);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote-stars { color: var(--sage-dark); letter-spacing: .18em; font-size: 13px; }
.quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
}
.quote footer {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: auto;
}

/* ------------------------------------------------------------------- faq */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--sage-dark);
  transition: transform .25s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--body);
  max-width: 62ch;
}

/* --------------------------------------------------------------- contato */

.contact { background: var(--ink); color: var(--cream); }
.contact .h2 { margin-bottom: 26px; }
.contact address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.8;
  color: var(--cream-dim);
  font-weight: 300;
}
/* :not(.btn) — senão esta regra sobrescreveria a cor do texto dos botões */
.contact a:not(.btn) { color: var(--cream); }
.contact a:not(.btn):hover { color: #fff; }

.hours {
  list-style: none;
  padding: 20px 0 0;
  margin: 22px 0 30px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  color: var(--cream-dim);
}
.hours .hours-label { color: var(--cream); }

.map-link {
  min-height: 320px;
  overflow: hidden;
  display: block;
  position: relative;
}
.map-link iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
  filter: grayscale(.35) contrast(.95);
}
/* camada transparente: o clique abre o Google Maps em vez de arrastar o mapa */
.map-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  /* folga extra embaixo para o botão flutuante do WhatsApp não cobrir o texto */
  padding: 28px var(--pad) 96px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer img {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.site-footer p {
  font-size: 12px;
  color: var(--cream-dim);
  letter-spacing: .06em;
  margin: 0;
}

/* ------------------------------------------------ botão flutuante do zap */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #0b2e17;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float:hover {
  transform: translateY(-3px);
  color: #0b2e17;
  box-shadow: 0 22px 50px rgba(45, 41, 37, .26);
}
.wa-float svg { width: 22px; height: 22px; flex: none; fill: currentColor; }

/* ========================================================== responsivo === */

@media (max-width: 980px) {
  :root { --pad: 24px; }

  .split { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }

  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }

  .hero { grid-template-columns: 1fr; }
  .hero-copy {
    padding: 64px var(--pad) 48px;
    max-width: none;
    margin-left: 0;
    order: 1;
  }
  .hero-media { min-height: 420px; order: 2; }

  /* no mobile a ordem visual da ambientação fica texto → imagem */
  .split--flip .media-frame { order: 2; }
  .split--flip .split-copy { order: 1; }

  .gallery-grid { grid-auto-rows: 170px; }
  .video-wrap { min-height: 380px; }
  .media-frame { min-height: 300px; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-item--wide { grid-column: span 2; }
  .marquee-track { font-size: 18px; gap: 40px; }
  .brand .brand-icon { height: 38px; }
  .brand .brand-word { height: 30px; }
  .btn { padding: 15px 24px; }
  .btn-row { gap: 10px; }
  /* rótulo do botão flutuante some, fica só o ícone */
  .wa-float { padding: 15px; right: 16px; bottom: 16px; }
  .wa-float span { display: none; }
  .lightbox-nav { width: 42px; height: 42px; }
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
