/* =========================================================
   NEXTGUEST — DESIGN TOKENS
   =========================================================
   Palette (deliberately monochrome, no gradients/bright color):
     --white      #FFFFFF   base background
     --bg-soft    #F7F6F3   warm off-white for alternating sections
     --black      #0B0B0C   primary text / dark sections
     --ink-700    #4A4A47   secondary text
     --ink-400    #8C8A85   tertiary / captions
     --line       #E5E2DC   hairline borders
     --gold       #B79A6B   single restrained accent (status dot, underline)

   Type:
     --font-display : Fraunces (editorial serif, used for headlines only)
     --font-body     : Inter (UI + body copy)
   ========================================================= */

:root {
  --white: #FFFFFF;
  --bg-soft: #F7F6F3;
  --black: #0B0B0C;
  --ink-700: #4A4A47;
  --ink-400: #8C8A85;
  --line: #E5E2DC;
  --gold: #B79A6B;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --container: 1180px;
}

/* =========================== RESET =========================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

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

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 720px; }

/* English brand fragments keep their own letterform treatment */
.en { font-family: var(--font-display); font-style: normal; }

/* =========================== TYPE =========================== */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-400);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow--light { color: rgba(255,255,255,0.78); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

/* =========================== NAV =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  transition: opacity .4s var(--ease);
}
.nav:not(.is-scrolled) .nav__logo { color: var(--white); }

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__links a {
  color: var(--black);
  opacity: 0.78;
  transition: opacity .25s var(--ease);
}
.nav:not(.is-scrolled) .nav__links a { color: var(--white); }
.nav__links a:hover { opacity: 1; }

.nav__cta {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.nav:not(.is-scrolled) .nav__cta { background: var(--white); color: var(--black); }
.nav__cta:hover { transform: translateY(-1px) scale(1.02); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav__burger span {
  width: 22px; height: 1.6px;
  background: var(--black);
  transition: background .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease);
}
.nav:not(.is-scrolled) .nav__burger span { background: var(--white); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
.nav__burger.is-open span { background: var(--black) !important; }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 8px 24px 24px;
  gap: 4px;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  padding: 14px 4px;
  font-size: 1.02rem;
  border-bottom: 1px solid var(--line);
  color: var(--black);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile-cta {
  margin-top: 10px;
  text-align: center;
  background: var(--black);
  color: var(--white) !important;
  border-radius: 999px;
  padding: 14px !important;
  border-bottom: none !important;
  font-weight: 600;
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* =========================== BUTTONS =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,0.16); }
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}
.btn--ghost:active { transform: translateY(0) scale(0.98); }

.btn--block { width: 100%; background: var(--black); color: var(--white); padding: 17px; margin-top: 10px; }
.btn--block:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(0,0,0,0.22); }

/* On white sections, primary button flips to dark-on-light */
.contact .btn--primary, .form .btn--block { background: var(--black); color: var(--white); }

/* =========================== HERO =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  will-change: transform;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.18) 0%, rgba(10,10,10,0.06) 36%, rgba(10,10,10,0.62) 100%);
}

@media (max-width: 860px) {
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px 96px;
  max-width: 760px;
}
.hero__title {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.reveal-line { display: block; overflow: hidden; }
.reveal-line span {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1s var(--ease) forwards;
}
.reveal-line:nth-child(1) span { animation-delay: .15s; }
.reveal-line:nth-child(2) span { animation-delay: .3s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero__subtitle {
  color: rgba(255,255,255,0.86);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 540px;
  margin-bottom: 36px;
  font-weight: 400;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 46px;
  background: rgba(255,255,255,0.3);
}
.hero__scroll-cue span {
  display: block;
  width: 1px; height: 14px;
  background: var(--white);
  animation: scrollCue 2s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(32px); opacity: 0; }
}
@media (max-width: 600px) { .hero__scroll-cue { display: none; } }

/* generic scroll-reveal utility, animated by JS via IntersectionObserver */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.reveal-zoom img { transform: scale(1.08); transition: transform 1.4s var(--ease); }
.reveal-zoom.is-visible img { transform: scale(1); }

/* =========================== SERVICES =========================== */
.services { padding: 140px 0 120px; background: var(--white); }
.services .section-title { max-width: 640px; }

.services__grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.card {
  background: var(--white);
  padding: 44px 36px;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.card:hover { background: var(--bg-soft); }
.card__icon {
  width: 44px; height: 44px;
  margin-bottom: 26px;
  color: var(--black);
}
.card__icon svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.card p { color: var(--ink-700); font-size: 0.94rem; line-height: 1.6; }

@media (max-width: 860px) {
  .services__grid { grid-template-columns: 1fr; }
  .services { padding: 96px 0 80px; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================== TRUST — O PADRÃO =========================== */
.trust { padding: 120px 0 0; background: var(--white); }
.trust .section-title { max-width: 560px; }

.trust__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.trust__check {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.trust__item p { font-size: 1rem; font-weight: 500; }

@media (max-width: 860px) {
  .trust { padding: 88px 0 0; }
  .trust__grid { grid-template-columns: 1fr; gap: 0; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================== PHONE / WHATSAPP MOCKUP =========================== */
.phone-section { padding: 140px 0; background: var(--bg-soft); overflow: hidden; }
.phone-section__grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 64px;
}
.phone-section__copy .section-title { max-width: 460px; }
.phone-section__lede { color: var(--ink-700); font-size: 1.05rem; max-width: 420px; line-height: 1.6; }

.phone-section__mockup { display: flex; justify-content: center; }

.phone {
  position: relative;
  width: 300px;
  height: 610px;
  background: var(--black);
  border-radius: 46px;
  padding: 14px;
  box-shadow: 0 50px 90px -30px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.04);
  transform: rotate(-1.2deg);
  transition: transform .6s var(--ease);
}
.phone:hover { transform: rotate(0deg) translateY(-4px); }

.phone__notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: var(--black);
  border-radius: 0 0 18px 18px;
  z-index: 3;
}

.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  background: #ECE5DD;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wa__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 38px 16px 14px;
  background: #075E54;
  color: var(--white);
}
.wa__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.wa__name { font-size: 0.92rem; font-weight: 600; }
.wa__status { font-size: 0.74rem; color: rgba(255,255,255,0.7); }

.wa__body {
  flex: 1;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.wa__bubble {
  background: var(--white);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.84rem;
  color: #111;
  max-width: 86%;
  align-self: flex-start;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
  opacity: 0;
  transform: translateY(8px);
}
.phone-section__mockup.is-visible .wa__bubble { animation: bubbleIn .5s var(--ease) forwards; }
.phone-section__mockup.is-visible .wa__bubble:nth-child(1) { animation-delay: .2s; }
.phone-section__mockup.is-visible .wa__bubble:nth-child(2) { animation-delay: .55s; }
.phone-section__mockup.is-visible .wa__bubble:nth-child(3) { animation-delay: .9s; }
.phone-section__mockup.is-visible .wa__bubble:nth-child(4) { animation-delay: 1.3s; }
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0); } }

.wa__bubble--checklist p { font-weight: 500; }
.wa__bubble p + p { margin-top: 2px; }
.wa__time {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: #8b9b95;
  text-align: right;
}

@media (max-width: 920px) {
  .phone-section { padding: 96px 0; }
  .phone-section__grid { grid-template-columns: 1fr; gap: 48px; text-align: left; }
  .phone-section__mockup { order: -1; }
  .phone { width: 250px; height: 510px; }
}

/* =========================== STATEMENT (dark) =========================== */
.statement {
  position: relative;
  background: var(--black);
  color: var(--white);
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.statement__media {
  position: absolute; inset: 0;
  opacity: 0.42;
}
.statement__media img { width: 100%; height: 100%; object-fit: cover; }
.statement::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.92) 100%);
}
.statement__content {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.statement__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.statement__title span { display: block; }
.statement__text {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  font-weight: 400;
  line-height: 1.55;
}

/* =========================== PROCESS =========================== */
.process { padding: 140px 0; background: var(--bg-soft); }
.process .section-title { max-width: 600px; }

.process__line {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 64px 0 0;
  display: none;
}
.process__line-fill {
  position: absolute; top: 0; left: 0; height: 1px;
  width: 0%;
  background: var(--black);
  transition: width .2s linear;
}
@media (min-width: 861px) { .process__line { display: block; } }

.process__steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.step { padding-top: 0; }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-400);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  margin-bottom: 8px;
  line-height: 1.3;
}
.step p { color: var(--ink-700); font-size: 0.92rem; line-height: 1.55; }
.step--final h3 { color: var(--black); }
.step--final .step__num { color: var(--gold); }

@media (max-width: 860px) {
  .process { padding: 96px 0; }
  .process__steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 26px 0; border-bottom: 1px solid var(--line); }
  .step--final { border-bottom: none; }
}

/* =========================== WHY =========================== */
.why { padding: 140px 0; background: var(--white); }
.why__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
}
.why__intro { position: sticky; top: 140px; align-self: start; }
.why__lede { color: var(--ink-700); font-size: 1.05rem; max-width: 380px; line-height: 1.6; }

.why__list { display: flex; flex-direction: column; }
.why__list li {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.why__list li:first-child { padding-top: 0; }
.why__index {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-400);
  flex-shrink: 0;
  width: 32px;
}
.why__list h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; margin-bottom: 6px; }
.why__list p { color: var(--ink-700); font-size: 0.94rem; line-height: 1.6; max-width: 460px; }

@media (max-width: 980px) {
  .why { padding: 96px 0; }
  .why__grid { grid-template-columns: 1fr; gap: 40px; }
  .why__intro { position: static; margin-bottom: 12px; }
}

/* =========================== DETAIL =========================== */
.detail {
  position: relative;
  background: var(--black);
}
.detail__media { height: 78vh; overflow: hidden; }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__caption {
  position: absolute;
  bottom: 56px; left: 0; right: 0;
  text-align: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  padding: 0 24px;
}
@media (max-width: 700px) { .detail__media { height: 64vh; } .detail__caption { bottom: 32px; } }

/* =========================== CONTACT FORM =========================== */
.contact { padding: 140px 0; background: var(--bg-soft); }
.contact__lede { color: var(--ink-700); font-size: 1.05rem; margin-bottom: 48px; }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 44px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.12);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form__full { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.form span { font-size: 0.85rem; font-weight: 600; color: var(--ink-700); }

.form input, .form select, .form textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 13px 16px;
  background: var(--white);
  color: var(--black);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(11,11,12,0.06);
  outline: none;
}
.form textarea { resize: vertical; min-height: 100px; }

.form__success {
  display: none;
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--black);
  text-align: center;
}
.form__success.is-shown { display: block; animation: fadeIn .5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 640px) {
  .contact { padding: 96px 0; }
  .form { padding: 28px; }
  .form__row { grid-template-columns: 1fr; gap: 18px; }
}

/* =========================== FOOTER =========================== */
.footer { background: var(--black); color: var(--white); padding: 96px 0 32px; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; display: block; margin-bottom: 10px; }
.footer__tag { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

.footer__nav { display: flex; gap: 32px; flex-wrap: wrap; }
.footer__nav a, .footer__social a { color: rgba(255,255,255,0.72); font-size: 0.92rem; transition: color .25s var(--ease); }
.footer__nav a:hover, .footer__social a:hover { color: var(--white); }
.footer__social { display: flex; gap: 28px; }

.footer__bottom { padding-top: 28px; }
.footer__bottom p { color: rgba(255,255,255,0.45); font-size: 0.82rem; }

@media (max-width: 640px) {
  .footer { padding: 72px 0 28px; }
  .footer__inner { flex-direction: column; gap: 32px; padding-bottom: 40px; }
}

/* =========================== FLOATING WHATSAPP =========================== */
.float-wa {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.float-wa:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 18px 36px rgba(0,0,0,0.28); }
