/* ─────────────────────────────────────────────
   HUTO · base.css
   Reset, variáveis globais, utilitários compartilhados
   ───────────────────────────────────────────── */

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

:root {
  --bg:    #f5ede0;
  --bg2:   #ede3d0;
  --bg3:   #faf5ee;
  --ember: #9e7220;
  --elite: #886118;
  --bronze:#7a5c12;
  --smoke: #5c5650;
  --ink:   #1e1b17;
  --dim:   #3d3529;
  --rule:  rgba(140,100,20,0.18);
  --char:  #0c0a07;

  --font-display:  'Cinzel', serif;
  --font-body:     'Cormorant Garamond', Georgia, serif;
  --font-japanese: 'Shippori Mincho', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--char);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

::selection { background: var(--ember); color: var(--bg); }

::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-thumb { background: var(--ember); }

/* ── BOTÕES ── */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .58rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding: 16px 48px;
  border-radius: 2px;
  transition: background .35s cubic-bezier(0.25,0.46,0.45,0.94),
              color .35s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color .35s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow .35s cubic-bezier(0.25,0.46,0.45,0.94),
              transform .48s cubic-bezier(0.34,1.56,0.64,1);
}
.btn-f {
  background: var(--ember);
  color: rgba(245,237,224,.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.btn-f:hover {
  background: var(--elite);
  box-shadow: 0 8px 28px rgba(158,114,32,.28), inset 0 1px 0 rgba(255,255,255,.07);
  transform: translateY(-3px);
}
.btn-o {
  border: 1px solid var(--dim);
  color: var(--ink);
}
.btn-o:hover {
  border-color: var(--ember);
  color: var(--ember);
  background: rgba(158,114,32,.04);
  transform: translateY(-2px);
}

/* ── FOCO ── */
:where(a,button,[tabindex]):focus-visible {
  outline: 1.5px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}
:where(a,button,[tabindex]):focus:not(:focus-visible) { outline: none; }

/* ── REVEAL ── */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(0.16,1,0.3,1),
              transform .7s cubic-bezier(0.16,1,0.3,1);
}
.rv.in { opacity: 1; transform: none; }
.rv.rv-x { transform: translateX(-20px); }
.rv.rv-x.in { transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .18s; }
.d3 { transition-delay: .30s; }
.d4 { transition-delay: .42s; }
.d5 { transition-delay: .54s; }

@media (prefers-reduced-motion: reduce) { .rv, .rv.rv-x { transition-duration: 0.01s; } }
@media (scripting: none) { .rv, .rv.rv-x { opacity: 1; transform: none; } }

/* ── TIPOGRAFIA COMPARTILHADA ── */
.lbl {
  font-family: var(--font-japanese);
  font-size: .63rem;
  letter-spacing: .32em;
  color: var(--bronze);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.heading-i {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  letter-spacing: .01em;
  text-transform: none;
}
.rule {
  width: 32px;
  height: 1px;
  background: var(--ember);
  margin: 24px 0;
}
.body-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.95;
  color: var(--smoke);
  margin-bottom: 14px;
}
.body-text strong { color: var(--dim); font-weight: 600; }

.hidden { display: none; }

/* ── MODAL DE RESERVA ── */
.rsv-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8,6,4,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s .3s;
}
.rsv-modal.open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transition: opacity .3s ease;
}
.rsv-wrap {
  position: relative;
  width: 500px;
  max-width: calc(100vw - 32px);
  height: 700px;
  max-height: calc(100svh - 48px);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
  transform: translateY(14px);
  transition: transform .38s cubic-bezier(0.16,1,0.3,1);
}
.rsv-modal.open .rsv-wrap { transform: translateY(0); }
#rsv-frame { width: 100%; height: 100%; border: none; display: block; }
.rsv-close {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 10;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(12,10,7,.65);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.rsv-close:hover { background: rgba(12,10,7,.92); }

@media (max-width: 540px) {
  .rsv-wrap {
    width: 100vw; max-width: 100vw;
    height: 100svh; max-height: 100svh;
    border-radius: 0;
    transform: translateY(100%);
  }
  .rsv-modal.open .rsv-wrap { transform: translateY(0); }
}

/* ── FOOTER (compartilhado homepage + unidades) ── */
footer {
  background: #131007;
  border-top: 1px solid rgba(245,237,224,.08);
  padding: 72px max(72px, calc(50% - 720px)) 40px;
}
.ftop {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 72px;
  margin-bottom: 64px;
}
.fn {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: .4em;
  color: rgba(245,237,224,.95);
  text-transform: uppercase;
}
.fjp {
  font-family: var(--font-japanese);
  font-size: .76rem;
  color: rgba(180,135,55,.88);
  letter-spacing: .18em;
  margin-top: 4px; margin-bottom: 18px;
}
.fdesc {
  font-family: var(--font-body);
  font-size: .9rem;
  font-style: italic;
  color: rgba(245,237,224,.62);
  line-height: 1.85;
  max-width: 280px;
}
.fcol-t {
  font-family: var(--font-japanese);
  font-size: .6rem;
  letter-spacing: .24em;
  color: rgba(180,135,55,.88);
  margin-bottom: 20px;
}
.flinks { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.flinks a {
  font-family: var(--font-body);
  font-size: .92rem;
  color: rgba(245,237,224,.58);
  text-decoration: none;
  transition: color .3s;
}
.flinks a:hover { color: var(--ember); }
.fbot {
  border-top: 1px solid rgba(245,237,224,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fcopy {
  font-family: var(--font-japanese);
  font-size: .58rem;
  letter-spacing: .12em;
  color: rgba(245,237,224,.38);
}
.fkj {
  font-family: var(--font-japanese);
  font-size: 1.5rem;
  color: rgba(245,237,224,.05);
}

/* ── STICKY BOTTOM BAR (mobile) ── */
.mbar { display: none; }

@media (max-width: 960px) {
  .ftop { grid-template-columns: 1fr; gap: 44px; }
  footer { padding: 60px 28px calc(32px + 70px + env(safe-area-inset-bottom,0px)); }
  .fbot  { flex-direction: column; gap: 14px; }
  .mbar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 150;
    background: rgba(12,10,7,.98);
    border-top: 1px solid rgba(245,237,224,.08);
    padding: 10px 16px env(safe-area-inset-bottom, 10px);
    gap: 10px;
    transition: transform .3s;
  }
  .mbar.hidden { transform: translateY(110%); }
  .mbar-btn {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 13px 12px;
    font-family: var(--font-display);
    font-size: .54rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .28s, color .28s;
    white-space: nowrap;
  }
  .mbar-menu {
    border: 1px solid rgba(245,237,224,.16);
    color: rgba(245,237,224,.72);
  }
  .mbar-rsv {
    background: var(--ember);
    color: rgba(245,237,224,.95);
  }
}
@media (max-width: 640px) {
  footer { padding: 48px 20px calc(24px + 70px + env(safe-area-inset-bottom,0px)); }
  .ftop  { gap: 36px; }
}

/* ── LIGHTBOX (compartilhado homepage + unidades) ── */
.lb-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(12,10,7,.97);
  z-index: 9000;
  flex-direction: column;
  align-items: center;
  padding: 52px 80px 0;
}
.lb-modal.open { display: flex; }
.lb-close {
  position: absolute; top: 20px; right: 24px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; font-size: 0;
  display: flex; align-items: center; justify-content: center;
}
.lb-close::before,
.lb-close::after {
  content: '';
  position: absolute;
  width: 22px; height: 1px;
  background: rgba(245,237,224,.45);
  transition: background .25s;
}
.lb-close::before { transform: rotate(45deg); }
.lb-close::after  { transform: rotate(-45deg); }
.lb-close:hover::before,
.lb-close:hover::after { background: rgba(245,237,224,.95); }
.lb-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(245,237,224,.35);
  font-size: 3rem; line-height: 1;
  cursor: pointer; padding: 16px 12px;
  transition: color .2s;
}
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-nav:hover { color: rgba(245,237,224,.9); }
.lb-main {
  flex: 1; min-height: 0; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lb-strip {
  width: 100%; display: flex; gap: 6px;
  padding: 14px 0 20px;
  overflow-x: auto; scrollbar-width: none;
  flex-shrink: 0; justify-content: center;
}
.lb-strip::-webkit-scrollbar { display: none; }
.lb-thumb {
  width: 80px; height: 58px;
  flex-shrink: 0; cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent; border-radius: 2px;
  opacity: .4;
  transition: border-color .2s, opacity .2s;
}
.lb-thumb.active { border-color: rgba(158,114,32,.85); opacity: 1; }
.lb-thumb:hover:not(.active) { opacity: .72; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 640px) {
  .lb-modal { padding: 44px 0 0; }
  .lb-nav { display: none; }
  .lb-close {
    top: 10px; right: 14px;
    font-size: 1.3rem;
    color: rgba(245,237,224,.6);
  }
  .lb-strip { padding: 10px 12px 16px; justify-content: flex-start; }
  .lb-thumb { width: 60px; height: 44px; }
}
