/* ============================================================
   FONTELLI — Marcenaria Digital
   Paleta: marfim quente · bronze/dourado · grafite profundo
   ============================================================ */

:root {
  --ivory:       #f5efe4;
  --ivory-soft:  #faf6ee;
  --ivory-deep:  #ece3d4;
  --ink:         #1c1917;
  --ink-soft:    #2a2520;
  --bronze:      #a5824f;
  --bronze-deep: #8a6a3c;
  --bronze-lite: #c2a878;
  --taupe:       #7a6e5f;
  --taupe-soft:  #9a8f80;
  --line:        rgba(28, 25, 23, 0.12);
  --line-light:  rgba(245, 239, 228, 0.16);

  --serif:  "Cormorant Garamond", Georgia, serif;
  --body:   "EB Garamond", Georgia, serif;
  --sans:   "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--body);
  background: var(--ivory);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: 130px 0; position: relative; }

/* ---------- Typographic helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--bronze);
  display: inline-block;
}
.eyebrow--light { color: var(--bronze-lite); }
.eyebrow--light::before { background: var(--bronze-lite); }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--bronze-deep); }

.section-head { max-width: 720px; margin-bottom: 72px; }
.section-lead {
  margin-top: 26px;
  font-size: 1.2rem;
  color: var(--taupe);
  max-width: 620px;
}
.section-head--light .section-title { color: var(--ivory); }
.section-head--light .section-lead { color: var(--taupe-soft); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 17px 38px;
  border-radius: 2px;
  display: inline-block;
  transition: all 0.4s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--gold {
  background: var(--bronze);
  color: var(--ivory-soft);
  border-color: var(--bronze);
}
.btn--gold:hover {
  background: var(--bronze-deep);
  border-color: var(--bronze-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(138, 106, 60, 0.6);
}
.btn--ghost-light {
  background: transparent;
  color: var(--ivory-soft);
  border-color: rgba(245, 239, 228, 0.4);
}
.btn--ghost-light:hover {
  background: var(--ivory-soft);
  color: var(--ink);
  border-color: var(--ivory-soft);
  transform: translateY(-2px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: #000;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.scrolled {
  background: #000;
  backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 14px; color: var(--ivory-soft); }
.brand-logo { display: block; height: 44px; width: auto; }

.brand-mark { width: 42px; height: 42px; color: var(--bronze); flex-shrink: 0; display: block; }
.brand-mark--lg { width: 56px; height: 56px; }

.brand-type { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
}
.brand-tag {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.7;
  padding-left: 0.34em;
}

.nav { display: flex; align-items: center; gap: 42px; }
.nav a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  position: relative;
  transition: color 0.4s var(--ease);
}
.site-header.scrolled .nav a { color: var(--ivory-soft); }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--bronze);
  transition: width 0.4s var(--ease);
}
.nav a:not(.nav-cta):hover { color: var(--bronze); }
.nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  border: 1px solid rgba(245, 239, 228, 0.45);
  padding: 11px 24px;
  border-radius: 2px;
  transition: all 0.4s var(--ease);
}
.site-header.scrolled .nav-cta { border-color: rgba(245, 239, 228, 0.45); }
.nav-cta:hover { background: var(--bronze); border-color: var(--bronze) !important; color: var(--ivory-soft) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 110; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ivory-soft); transition: all 0.35s var(--ease); }
.site-header.scrolled .nav-toggle span { background: var(--ivory-soft); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 16s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 17, 14, 0.82) 0%, rgba(20, 17, 14, 0.45) 42%, rgba(20, 17, 14, 0.15) 75%),
    linear-gradient(0deg, rgba(20, 17, 14, 0.5) 0%, transparent 40%);
}
.hero-content { position: relative; padding-top: 90px; padding-bottom: 120px; max-width: 820px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ivory-soft);
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 30px;
}
.hero-title em { font-style: italic; color: var(--bronze-lite); }
.hero-sub {
  color: rgba(245, 239, 228, 0.86);
  font-size: 1.3rem;
  max-width: 540px;
  margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 1px solid rgba(245, 239, 228, 0.5);
  border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero-scroll span { width: 3px; height: 8px; background: var(--ivory-soft); border-radius: 2px; animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(12px); } }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { background: var(--ivory); text-align: center; }
.manifesto-inner { max-width: 900px; margin: 0 auto; }
.manifesto .eyebrow { justify-content: center; }
.manifesto-quote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3.15rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin-bottom: 34px;
}
.manifesto-quote em { font-style: italic; color: var(--bronze-deep); }
.manifesto-text { color: var(--taupe); font-size: 1.2rem; max-width: 660px; margin: 0 auto; }

.stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 76px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { flex: 1; padding: 40px 20px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 1px; background: var(--line); }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--bronze-deep);
}
.stat-num span { font-size: 0.5em; vertical-align: super; color: var(--bronze); }
.stat-label {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ============================================================
   SOBRE
   ============================================================ */
.about { background: var(--ivory-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about-media { position: relative; }
.about-media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 40px 80px -40px rgba(28, 25, 23, 0.5);
}
.about-media-badge {
  position: absolute;
  right: -26px; bottom: 44px;
  background: var(--ink);
  color: var(--ivory-soft);
  padding: 22px 30px;
  border-radius: 3px;
  box-shadow: 0 24px 50px -20px rgba(28, 25, 23, 0.6);
  line-height: 1.3;
}
.about-media-badge span { display: block; font-family: var(--body); font-style: italic; color: var(--taupe-soft); font-size: 1rem; }
.about-media-badge strong { font-family: var(--sans); font-weight: 400; font-size: 0.86rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-lite); }
.about-text p { margin-top: 24px; color: var(--taupe); }
.about-text .section-title { color: var(--ink); }
.signature {
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: 1.5rem !important;
  color: var(--ink) !important;
  line-height: 1.4;
  padding-top: 12px;
}

/* ============================================================
   AMBIENTES
   ============================================================ */
.rooms { background: var(--ivory); }
.rooms-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.room {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 42px 40px;
  display: flex;
  align-items: baseline;
  gap: 22px;
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
  cursor: default;
}
.room-idx { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--bronze); transition: color 0.45s var(--ease); }
.room-name { font-family: var(--serif); font-size: 1.65rem; font-weight: 500; color: var(--ink); transition: color 0.45s var(--ease); }
.room:hover { background: var(--ink); }
.room:hover .room-name { color: var(--ivory-soft); }
.room:hover .room-idx { color: var(--bronze-lite); }
.room--accent { background: var(--bronze); }
.room--accent .room-name { color: var(--ivory-soft); }
.room--accent .room-idx { color: rgba(245, 239, 228, 0.7); }
.room--accent:hover { background: var(--bronze-deep); }

/* ============================================================
   GALERIA
   ============================================================ */
.gallery { background: var(--ivory-deep); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 18px;
}
.gcard {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  background: var(--ink);
}
.gcard--tall { grid-row: span 2; }
.gcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gcard::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20, 17, 14, 0.78) 0%, rgba(20, 17, 14, 0.12) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.gcard figcaption {
  position: absolute;
  left: 26px; bottom: 22px;
  z-index: 2;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.gcard-cat { display: block; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--bronze-lite); margin-bottom: 6px; }
.gcard-title { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ivory-soft); line-height: 1.15; }
.gcard:hover img { transform: scale(1.07); }
.gcard:hover::after { opacity: 1; }
.gcard:hover figcaption { opacity: 1; transform: translateY(0); }

/* ============================================================
   PROCESSO
   ============================================================ */
.process { background: var(--ink); }
.process .section-head { margin-bottom: 80px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-light); }
.pillar { padding: 48px 34px 10px 0; border-right: 1px solid var(--line-light); }
.pillar:last-child { border-right: none; }
.pillar:not(:first-child) { padding-left: 34px; }
.pillar-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--bronze);
  display: block;
  margin-bottom: 22px;
}
.pillar h3 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; color: var(--ivory-soft); margin-bottom: 16px; }
.pillar p { font-size: 1.02rem; color: var(--taupe-soft); }

/* ============================================================
   CTA
   ============================================================ */
.cta { text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 17, 14, 0.9), rgba(20, 17, 14, 0.72)); }
.cta-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.cta .eyebrow { justify-content: center; }
.cta-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: var(--ivory-soft);
  margin-bottom: 26px;
}
.cta-text { color: rgba(245, 239, 228, 0.82); font-size: 1.22rem; max-width: 560px; margin: 0 auto 44px; }
.cta-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ivory-deep); padding: 90px 0 40px; border-top: 3px solid var(--bronze); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.footer-logo { display: block; width: auto; height: auto; max-width: 100%; margin-bottom: 22px; }
.footer-slogan { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--taupe); line-height: 1.5; }
.footer-col h4 { font-family: var(--sans); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze-deep); margin-bottom: 22px; }
.footer-col a, .footer-col span { display: block; font-size: 1.05rem; color: var(--taupe); margin-bottom: 12px; transition: color 0.35s var(--ease); }
.footer-col a:hover { color: var(--bronze-deep); }
.footer-base {
  display: flex; justify-content: space-between; padding-top: 30px;
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--taupe-soft);
}

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.wa-float {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 150;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.55), 0 6px 16px -6px rgba(0,0,0,0.4);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: waPulse 2.8s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px -6px rgba(37, 211, 102, 0.7); }
.wa-float:hover .wa-float-tip { opacity: 1; transform: translateX(0); pointer-events: auto; }
.wa-float-tip {
  position: absolute;
  right: 74px;
  white-space: nowrap;
  background: var(--ink);
  color: var(--ivory-soft);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 3px;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.wa-float-tip::after {
  content: "";
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--ink);
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.55), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.55), 0 0 0 12px rgba(37, 211, 102, 0); }
}
@media (max-width: 520px) {
  .wa-float { width: 54px; height: 54px; right: 18px; bottom: 18px; }
  .wa-float-tip { display: none; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16, 14, 11, 0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  padding: 40px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 88vw; max-height: 86vh; object-fit: contain; border-radius: 3px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); }
.lightbox-close { position: absolute; top: 28px; right: 36px; background: none; border: none; color: var(--ivory-soft); font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: 0.7; transition: opacity 0.3s; }
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(245,239,228,0.3); color: var(--ivory-soft);
  width: 56px; height: 56px; border-radius: 50%; font-size: 1.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.35s var(--ease);
}
.lightbox-nav:hover { background: var(--bronze); border-color: var(--bronze); }
.lightbox-prev { left: 34px; }
.lightbox-next { right: 34px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .about-grid { gap: 60px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar { border-bottom: 1px solid var(--line-light); }
  .pillar:nth-child(even) { border-right: none; }
}

@media (max-width: 860px) {
  .section { padding: 90px 0; }
  .container { padding: 0 26px; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0;
    background: rgba(20, 17, 14, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav.open { transform: translateX(0); }
  .nav a { color: var(--ivory-soft) !important; font-size: 1.1rem; }
  .nav-cta { border-color: var(--bronze) !important; }
  body.nav-open .nav-toggle span { background: var(--ivory-soft) !important; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-media { max-width: 460px; }
  .about-media img { aspect-ratio: 4/4.4; }
  .rooms-grid { grid-template-columns: 1fr 1fr; }
  .room { padding: 30px 24px; }
  .room-name { font-size: 1.35rem; }
  .stats { flex-direction: column; }
  .stat + .stat::before { display: none; }
  .stat { border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .lightbox-nav { display: none; }
}

@media (max-width: 520px) {
  .brand-tag { display: none; }
  .hero-content { padding-top: 120px; }
  .rooms-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gcard--tall { grid-row: span 1; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; padding-left: 0 !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; gap: 8px; text-align: center; }
  .hero-actions .btn, .cta-actions .btn { flex: 1; text-align: center; }
}