/* ============================================================
   Luzes SPA — pré-lançamento
   Tokens: neutral darks + white + greys; color comes from the
   suite image; gold is an accent only.
   ============================================================ */

:root {
  --black:   #0b0b0b;
  --ink:     #ffffff;
  --ink-2:   rgba(255, 255, 255, 0.72);
  --ink-3:   rgba(255, 255, 255, 0.48);
  --rule:    rgba(255, 255, 255, 0.12);
  --gold:    #d3b25f;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
          Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  --script: 'Parisienne', cursive;

  --max:  1120px;
  --text: 640px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --space: clamp(4rem, 12vw, 9.5rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

/* ============================================================
   Layout helpers
   ============================================================ */

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--text {
  max-width: calc(var(--text) + 2 * var(--gutter));
}

.section { padding-block: var(--space); position: relative; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Type
   ============================================================ */

.label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.h2 {
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.lead {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  max-width: 52ch;
}

.lead--tight { margin-top: 0; }

/* ============================================================
   Button — white, generous touch area, no shine
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--black);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover { background: #ebebeb; }
.btn:active { transform: translateY(1px); }

/* ============================================================
   Background — pre-blurred images, no CSS filters or transforms
   (Safari drops filters on fixed layers), JPG default with WebP
   swapped in by a tiny feature test in <head>.
   ============================================================ */

.bg {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -2;
  background-color: var(--black);
  background-image: url('../images/bg-mobile.jpg');
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
}
html.webp .bg { background-image: url('../images/bg-mobile.webp'); }

@media (min-width: 760px) {
  .bg { background-image: url('../images/bg-desktop.jpg'); background-position: center 40%; }
  html.webp .bg { background-image: url('../images/bg-desktop.webp'); }
}

.bg__shade {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.7) 0%, rgba(11, 11, 11, 0.55) 30%, rgba(11, 11, 11, 0.8) 60%, rgba(11, 11, 11, 0.96) 100%);
}

/* ============================================================
   Top bar
   ============================================================ */

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  padding-top: calc(1.1rem + env(safe-area-inset-top, 0px));
  padding-bottom: 1.1rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar__brand {
  flex: 0 0 auto;
  display: block;
  width: 130px;
  line-height: 0;
}
@media (min-width: 760px) { .topbar__brand { width: 150px; } }

.topbar__logo {
  display: block;
  width: 100%;
  height: auto;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.topbar__link {
  padding: 0.5rem 0;          /* comfortable tap height */
  font-size: 0.85rem;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.topbar__link:hover { color: var(--ink); border-color: var(--ink-3); }

.topbar__link--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -10px;      /* keeps a 40px touch area without shifting layout */
  border-bottom: 0;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: 7.5rem 4.5rem;
}

@media (max-width: 759px) {
  .hero { padding-block: 6.5rem calc(3.5rem + env(safe-area-inset-bottom, 0px)); }
  .hero__title { max-width: 12ch; }
}

.hero__inner {
  width: 100%;
}

.hero__title {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero__sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--ink-2);
  max-width: 44ch;
}

.hero__script {
  margin-top: 1.4rem;
  font-family: var(--script);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  color: var(--gold);
  line-height: 1;
}

.hero .btn { margin-top: 2.2rem; }

@media (max-width: 560px) {
  .hero .btn { width: 100%; }
}

/* ============================================================
   Teaser strip — a partial, softened crop; never the full image
   ============================================================ */

.tease { padding-bottom: 0; }

.tease__strip {
  position: relative;
  margin-block: 2.5rem;
  height: clamp(200px, 42vw, 460px);
  overflow: hidden;
}

.tease__strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 55%;
}

/* darken the strip with an overlay instead of a filter */
.tease__strip > .tease__dim {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(11, 11, 11, 0.16);
  pointer-events: none;
}

.tease__strip::before,
.tease__strip::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 32%;
  pointer-events: none;
  z-index: 1;
}
.tease__strip::before { top: 0;    background: linear-gradient(180deg, rgba(11,11,11,0.9), rgba(11,11,11,0)); }
.tease__strip::after  { bottom: 0; background: linear-gradient(0deg,  rgba(11,11,11,0.9), rgba(11,11,11,0)); }

.tease .container--text:last-child { padding-bottom: var(--space); }

/* ============================================================
   Editorial differentials — words, not cards
   ============================================================ */

.editorial {
  margin-top: 3.5rem;
  border-top: 1px solid var(--rule);
}

.editorial__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 2.5rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 760px) {
  .editorial__item {
    grid-template-columns: 260px 1fr;
    align-items: baseline;
    padding-block: 2.6rem;
  }
}

.editorial__word {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.editorial__text {
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 52ch;
}

/* ============================================================
   List / form — part of the page, not a box
   ============================================================ */

.list {
  background: rgba(11, 11, 11, 0.55);
}

.form {
  margin-top: 2.6rem;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
}
.field input:focus { outline: none; border-bottom-color: var(--ink); }

/* WhatsApp: country code + number, sharing one underline */
.phone {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.25s var(--ease);
}
.phone:focus-within { border-bottom-color: var(--ink); }

.phone .field-input,
.phone input,
.phone select { border-bottom: 0; }

.phone__cc {
  flex: 0 0 auto;
  min-height: 48px;
  font-size: 16px;
  padding: 0.5rem 1.6rem 0.5rem 0;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='1.6'/></svg>") no-repeat right center;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.phone__cc:focus { outline: none; }
.phone__cc option { color: #111; }

.phone__number { flex: 1 1 auto; min-width: 0; }

.field--trap {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form__submit { align-self: flex-start; margin-top: 0.4rem; }

@media (max-width: 560px) {
  .form__submit { align-self: stretch; }
}

.form__status { font-size: 0.92rem; min-height: 1.2em; color: #e0967f; }
.form__note { font-size: 0.85rem; color: var(--ink-3); }

.form.is-hidden { display: none; }

.confirm { display: none; margin-top: 2rem; }
.confirm.is-active { display: block; }

.confirm__script {
  margin-top: 1.6rem;
  font-family: var(--script);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

/* ============================================================
   Footer — same voice as luzesmotel.com.br
   ============================================================ */

.footer {
  background: var(--black);
  border-top: 1px solid var(--rule);
  padding-block: 3rem 2rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem 3rem;
}

.footer__brand { font-weight: 700; font-size: 1.05rem; }
.footer__tag   { margin-top: 0.35rem; color: var(--ink-3); font-size: 0.92rem; }

.footer__meta { color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
.footer__meta a { display: inline-block; margin-top: 0.4rem; color: var(--ink); text-decoration: none; }
.footer__meta a:hover { text-decoration: underline; }

.footer__social {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  margin-left: 1.25rem;
}

.footer__copy { margin-top: 2.5rem; font-size: 0.8rem; color: var(--ink-3); }

/* ============================================================
   Sticky CTA — phones only; shows once the hero CTA is out of
   view and hides when the form is on screen.
   ============================================================ */

.sticky-cta {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  -webkit-transform: translateY(110%);
  z-index: 20;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(11, 11, 11, 0.96) 0%, rgba(11, 11, 11, 0.85) 70%, rgba(11, 11, 11, 0) 100%);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
  pointer-events: none;
}
.sticky-cta.is-on { transform: none; pointer-events: auto; }
.sticky-cta .btn { width: 100%; }

@media (min-width: 760px) { .sticky-cta { display: none; } }
