/* ===== Nova Caxias UP — estilos =====
   Cores: ajuste aqui para mudar a identidade visual da página. */
:root {
  --navy: #14307a;
  --navy-dark: #0d2159;
  --blue: #2b5fc7;
  --sky: #eaf5fc;
  --sky-2: #d6ecf9;
  --orange: #f58220;
  --yellow: #ffc82e;
  --green: #6cb33f;
  --text: #1c2a45;
  --muted: #55627d;
  --wa: #0e7a3c;
  --wa-hover: #0a6431;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(20, 48, 122, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
  padding-bottom: 76px; /* espaço para o botão flutuante */
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; margin-top: 32px; }

/* ---------- Botão ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px;
  border-radius: 999px;
  font-size: 1.08rem; font-weight: 700; text-decoration: none; text-align: center;
  color: #fff; background: var(--wa);
  box-shadow: 0 8px 20px rgba(14, 122, 60, .35);
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--wa-hover); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, .wa-float:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn--big { min-height: 64px; padding: 16px 36px; font-size: 1.18rem; }
.ico { width: 26px; height: 26px; fill: currentColor; flex: none; }

/* ---------- Textos comuns ---------- */
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.eyebrow--light { color: var(--yellow); }
.lead { font-size: 1.1rem; color: var(--muted); margin-top: 14px; }
.legal { font-size: .82rem; color: var(--muted); margin-top: 14px; line-height: 1.45; }
.legal--light { color: #c9d6f3; }
.section { padding: 64px 0; }
.section--sky { background: linear-gradient(180deg, var(--sky), #fff 140%); }
.section--navy { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.section--navy .lead { color: #dbe5fb; }
.section h2 { font-size: clamp(1.7rem, 5.6vw, 2.5rem); color: var(--navy); }
.section--navy h2 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 28px; }

/* ---------- Tag de imagem ---------- */
.img-tag {
  position: absolute; left: 10px; bottom: 10px;
  font-size: .68rem; line-height: 1; padding: 6px 9px; border-radius: 999px;
  background: rgba(13, 33, 89, .72); color: #fff; letter-spacing: .02em;
  backdrop-filter: blur(2px);
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; overflow: hidden; background: var(--navy-dark);
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__media, .hero__shade { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,33,89,.15) 0%, rgba(13,33,89,.05) 25%, rgba(13,33,89,.82) 62%, rgba(13,33,89,.96) 100%);
}
.hero__top { padding-top: 16px; }
.logo-chip {
  display: inline-flex; background: rgba(255,255,255,.95);
  padding: 8px 16px; border-radius: 16px; box-shadow: var(--shadow);
}
.logo-chip img { width: 128px; height: auto; }
.hero__content { padding-bottom: 36px; padding-top: 40px; }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { font-size: clamp(1.75rem, 7.4vw, 3rem); font-weight: 800; text-wrap: balance; }
.hero__lead { margin: 14px 0 22px; font-size: 1.08rem; color: #eaf0ff; max-width: 560px; }
.hero .btn { width: 100%; }
.hero__hint { margin-top: 12px; font-size: .85rem; color: #cbd8f6; text-align: center; }
.img-tag--hero { left: auto; right: 12px; bottom: auto; top: 16px; }

/* ---------- 2. Entrada ---------- */
.section--navy::before, .section--navy::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
}
.section--navy::before { width: 260px; height: 260px; right: -90px; top: -80px; background: var(--blue); opacity: .45; }
.section--navy::after { width: 140px; height: 140px; left: -50px; bottom: -40px; background: var(--yellow); opacity: .9; }
.section--navy .container { position: relative; z-index: 1; }
.steps { list-style: none; margin: 28px 0 30px; padding: 0; display: grid; gap: 12px; }
.steps li {
  display: flex; gap: 14px; align-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px; padding: 14px 16px;
}
.steps__n {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: var(--navy-dark);
  background: var(--yellow);
}
.steps strong { display: block; font-size: 1.05rem; }
.steps span:not(.steps__n) { color: #dbe5fb; font-size: .95rem; }
.section--navy .btn { width: 100%; }

/* ---------- 3. Decorado ---------- */
.gallery {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -20px; padding: 4px 20px 14px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot {
  position: relative; margin: 0; flex: 0 0 84%; scroll-snap-align: center;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sky-2);
}
.shot img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.shot figcaption {
  position: absolute; left: 0; right: 0; top: 0; padding: 28px 16px 22px;
  font-weight: 700; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45);
  background: linear-gradient(180deg, rgba(10,20,50,.55), transparent);
}
.swipe-hint { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.invite {
  margin-top: 34px; background: #fff; border-radius: 24px; padding: 28px 22px; text-align: center;
  box-shadow: var(--shadow); border-top: 6px solid var(--orange);
}
.invite h3 { font-size: 1.5rem; color: var(--navy); }
.invite p { margin: 10px 0 20px; color: var(--muted); }
.invite .btn { width: 100%; }

/* ---------- 4. Diferenciais ---------- */
.cards { display: grid; gap: 18px; }
.card {
  position: relative; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid #e3ecf6;
}
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card .img-tag { top: 10px; bottom: auto; }
.card__body { padding: 18px 20px 22px; }
.card h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 6px; }
.card p { color: var(--muted); }
.subhead { margin: 40px 0 14px; font-size: 1.2rem; color: var(--navy); }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.minis figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; }
.minis img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.minis figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px;
  color: #fff; font-weight: 700; font-size: .95rem;
  background: linear-gradient(0deg, rgba(10,20,50,.75), transparent);
}

/* ---------- 5. Localização ---------- */
.loc { display: grid; gap: 28px; align-items: center; }
.loc__img { position: relative; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.loc__img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 600; color: var(--navy); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: .85rem; display: grid; place-items: center;
}
.note { margin-top: 18px; color: var(--muted); font-size: .95rem; }

/* ---------- 6. Final ---------- */
.final {
  padding: 72px 0 80px; text-align: center; color: #fff;
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%);
}
.final__logo { width: 84px; height: auto; margin: 0 auto 16px; background: #fff; border-radius: 22px; padding: 10px; }
.final h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.final .lead { color: #e3ecff; margin-bottom: 28px; }
.final .btn { width: 100%; max-width: 440px; }
.final__hint { margin-top: 14px; font-size: .9rem; color: #d3e0fa; }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-dark); color: #b9c7e8; padding: 28px 0 24px; font-size: .82rem; }
.footer p + p { margin-top: 8px; }
.footer strong { color: #fff; }

/* ---------- Botão flutuante ---------- */
.wa-float {
  position: fixed; right: 14px; bottom: 14px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float .ico { width: 24px; height: 24px; }

/* ---------- Telas maiores ---------- */
@media (min-width: 720px) {
  body { font-size: 18px; padding-bottom: 0; }
  .section { padding: 96px 0; }
  .hero .btn, .section--navy .btn, .invite .btn { width: auto; }
  .hero__hint { text-align: left; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; align-items: flex-start; padding: 20px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 22px; }
  .card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; }
  .card--feature img { height: 100%; aspect-ratio: auto; min-height: 320px; }
  .card--feature .card__body { align-self: center; padding: 32px; }
  .card--feature h3 { font-size: 1.6rem; }
  .minis { grid-template-columns: repeat(4, 1fr); }
  .loc { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .wa-float { right: 24px; bottom: 24px; }
}

@media (min-width: 960px) {
  /* Hero em duas colunas: texto à esquerda, foto à direita */
  .hero { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; background: var(--sky); color: var(--text); min-height: 640px; max-height: 860px; }
  .hero__media { left: 50%; inset: 0 0 0 50%; border-radius: 0 0 0 80px; overflow: hidden; z-index: 0; }
  .hero__shade { display: none; }
  .hero__top, .hero__content { grid-column: 1; width: auto; max-width: 600px; margin-left: max(20px, calc((100vw - 1120px) / 2)); }
  .hero__content { align-self: center; padding-bottom: 60px; }
  .hero h1 { color: var(--navy); }
  .hero .eyebrow { color: var(--blue); }
  .hero__lead { color: var(--muted); }
  .hero__hint { color: var(--muted); }
  .logo-chip { background: #fff; padding: 10px 18px; }
  .logo-chip img { width: 150px; }
  .img-tag--hero { right: 16px; top: auto; bottom: 16px; }

  /* Galeria do decorado em grade */
  .gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; overflow: visible; margin: 0; padding: 0; }
  .shot { flex: none; }
  .shot--wide { grid-column: 1 / -1; }
  .shot--wide img { aspect-ratio: 21 / 8; }
  .shot:not(.shot--wide) { grid-column: span 3; }
  .shot:not(.shot--wide) img { aspect-ratio: 16 / 10; }
  .swipe-hint { display: none; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card--feature { grid-column: 1 / -1; }
}

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

/* ---------- Posição de recorte das imagens (substitui style inline, exigido pela CSP) ---------- */
.sprite { position: absolute; }
.op-25-50 { object-position: 25% 50%; }
.op-30-50 { object-position: 30% 50%; }
.op-35-50 { object-position: 35% 50%; }
.op-40-50 { object-position: 40% 50%; }
.op-50-40 { object-position: 50% 40%; }
.op-50-60 { object-position: 50% 60%; }
.op-55-50 { object-position: 55% 50%; }
.op-70-60 { object-position: 70% 60%; }

