/* ===========================================================
   POUSADA EMBAIXADA — global stylesheet
   Editorial boutique aesthetic. Quiet luxury, earth tones.
   =========================================================== */

:root {
  /* Palette */
  --ink:       #1F1611;
  --ink-soft:  #2E251E;
  --cobre:     #B87333;
  --cobre-dk:  #8E5722;
  --areia:     #F4EFE8;
  --areia-dk:  #E8E0D3;
  --pedra:     #8A7A6A;
  --linha:     #D9CFC0;
  --branco:    #FBF8F3;

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans:  "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --script:"Allura", "Cormorant Garamond", cursive;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-pad: clamp(72px, 10vw, 140px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--areia);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pedra);
  font-weight: 500;
}
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.h-display em {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  color: var(--cobre);
}
.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}
.h-section em {
  font-family: var(--script);
  font-style: normal;
  color: var(--cobre);
}
.h-card {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 60ch;
}
.body-text { color: var(--ink-soft); max-width: 62ch; }
.body-text p + p { margin-top: 1em; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  padding: 18px 0;
  transition: background-color .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(244, 239, 232, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--linha);
  padding: 12px 0;
}
.site-header.is-light:not(.is-scrolled) { color: #fff; }
.site-header.is-light:not(.is-scrolled) .nav a,
.site-header.is-light:not(.is-scrolled) .brand-text { color: #fff; }
.site-header.is-light:not(.is-scrolled) .header-cta { color: #fff; border-color: rgba(255,255,255,.45); }
.site-header.is-light:not(.is-scrolled) .header-cta:hover { background: #fff; color: var(--ink); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  height: 44px;
  width: auto;
  transition: height .3s ease;
}
.is-scrolled .brand img { height: 36px; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text .b1 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pedra);
}
.brand-text .b2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 8px 0;
  transition: color .25s ease;
}
.nav a:hover { color: var(--cobre); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--cobre);
}

.header-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .25s ease;
}
.header-cta:hover { background: var(--ink); color: var(--areia); }
.header-cta svg { width: 14px; height: 14px; }

.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: currentColor;
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after  { top: 7px; }

/* mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--areia);
  z-index: 90;
  padding: 80px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  transition: transform .35s ease;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ink);
}
.mobile-nav .close {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}

@media (max-width: 880px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--areia);
  padding: clamp(72px, 10vw, 120px) 0 32px;
  margin-top: clamp(80px, 10vw, 140px);
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cobre);
  margin: 0 0 20px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer a { color: rgba(255,255,255,.78); transition: color .2s; font-size: 14px; }
.site-footer a:hover { color: var(--cobre); }
.footer-brand .mark {
  font-family: var(--serif);
  font-size: 32px;
  font-style: italic;
  margin-bottom: 16px;
  color: #fff;
}
.footer-brand p { color: rgba(255,255,255,.6); font-size: 14px; max-width: 32ch; line-height: 1.6; }
.footer-bottom {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
@media (max-width: 800px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 70;
  background: var(--ink);
  color: var(--areia);
  border-radius: 999px;
  padding: 14px 22px 14px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 18px 40px -16px rgba(31,22,17,.55);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background-color .3s;
  transform: translateY(0);
}
.wa-fab:hover { background: var(--cobre); transform: translateY(-2px); }
.wa-fab svg { width: 16px; height: 16px; }
.wa-fab .label { display: inline; }
@media (max-width: 600px) {
  .wa-fab { padding: 14px; }
  .wa-fab .label { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-dark { background: var(--ink); color: var(--areia); }
.btn-dark:hover { background: var(--cobre); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--areia); }
.btn-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-cobre { background: var(--cobre); color: var(--branco); }
.btn-cobre:hover { background: var(--cobre-dk); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      var(--areia-dk) 0 12px,
      #ddd2bf 12px 24px
    );
  overflow: hidden;
  color: var(--ink-soft);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  padding: 16px;
  background: rgba(244, 239, 232, .35);
}
.ph.dark {
  background:
    repeating-linear-gradient(135deg, #2a201a 0 12px, #352a22 12px 24px);
}
.ph.dark::after { color: rgba(255,255,255,.7); background: rgba(0,0,0,.2); }
.ph.has-img { background: #1a130e; }
.ph.has-img::after { display: none; }
.ph > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }

/* ---------- Page top spacer (for fixed header) ---------- */
.page-pad-top { padding-top: 120px; }

/* ---------- Section header pattern ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head .meta { display: flex; flex-direction: column; gap: 12px; }
.section-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--cobre);
}
.section-head .body-text { padding-bottom: 8px; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Utility ---------- */
.divider {
  height: 1px;
  background: var(--linha);
  margin: 0;
  border: 0;
}
.text-cobre { color: var(--cobre); }
.script { font-family: var(--script); font-style: normal; }
.serif  { font-family: var(--serif); }

/* selection */
::selection { background: var(--cobre); color: var(--branco); }

/* focus */
:focus-visible { outline: 2px solid var(--cobre); outline-offset: 3px; border-radius: 2px; }
