/* =========================================================
   Modo apresentação (tablet na rua): Início → Bandeira → Projeto
   ========================================================= */
html, body.apres { height: 100%; }
body.apres { display: grid; grid-template-rows: auto 1fr; height: 100dvh; overflow: hidden; background: #fff; }
.apres svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.y { background: var(--g-yellow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b { background: var(--g-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* barra superior */
.ap-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px clamp(14px, 3vw, 28px); padding-top: max(10px, env(safe-area-inset-top)); background: var(--g-blue); color: #fff; z-index: 5; }
.ap-logo { grid-column: 2; }
.ap-logo img { height: 40px; width: auto; display: block; }
.ap-actions { grid-column: 3; justify-self: end; display: flex; gap: 8px; }
.ap-back { grid-column: 1; justify-self: start; }
.ap-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); background: rgba(255,255,255,.1); color: #fff; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; }
.ap-btn[hidden] { display: none; }
.ap-btn svg { width: 20px; height: 20px; stroke-width: 2.4; }
.ap-back { background: #fff; color: var(--blue-2); border-color: transparent; }
.ap-icon { padding: 0 13px; }

/* tela rolável */
.ap-screen { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: clamp(18px, 3vw, 32px) clamp(16px, 3.5vw, 40px) 48px; outline: none; }
.ap-screen > * { max-width: 1180px; margin-left: auto; margin-right: auto; }

/* ---------- início ---------- */
.h-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; border-radius: 26px; overflow: hidden; color: #fff; background: var(--blue-2); min-height: 320px; }
.h-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(45,63,137,.97) 0%, rgba(45,63,137,.85) 50%, rgba(39,125,194,.35) 100%), url("../img/aruja-aerea.jpg") center / cover; }
.h-hero-copy { position: relative; z-index: 1; padding: clamp(20px, 3.4vw, 40px); align-self: center; }
.h-hero h1 { margin: 12px 0 10px; font-weight: 900; text-transform: uppercase; line-height: .92; font-size: clamp(2.4rem, 6vw, 4.4rem); }
.h-hero p { margin: 0 0 18px; color: rgba(255,255,255,.88); font-size: clamp(.95rem, 1.6vw, 1.15rem); }
.h-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.h-nums div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 10px 12px; }
.h-nums b { display: block; font-weight: 900; font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--yellow-1); line-height: 1; }
.h-nums span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; display: block; margin-top: 4px; }
.h-hero-caio { position: relative; z-index: 1; width: 100%; max-width: 420px; justify-self: center; align-self: end; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }

.h-sec { margin-top: clamp(28px, 4vw, 44px); }
.h-sec-head { margin-bottom: 14px; }
.h-sec-head h2 { margin: 0; font-weight: 900; text-transform: uppercase; color: var(--blue-2); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1; }
.h-sec-head p { margin: 6px 0 0; color: var(--ink-soft); }

.h-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.h-cat { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 20px; background: var(--g-blue); color: #fff; text-decoration: none; min-height: 150px; box-shadow: var(--shadow-sm); transition: transform .2s; position: relative; overflow: hidden; }
.h-cat::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(232,226,62,.35); }
.h-cat:active { transform: scale(.97); }
.h-cat-ico svg { width: 44px; height: 44px; stroke: var(--yellow-1); stroke-width: 1.7; }
.h-cat-name { margin-top: auto; font-weight: 900; text-transform: uppercase; font-size: 1.1rem; line-height: 1.05; }
.h-cat-n { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.8); }

.pgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.h-steps li { background: var(--mist); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; }
.h-steps b { font-weight: 900; text-transform: uppercase; color: var(--blue-2); font-size: .95rem; }
.h-steps span { font-size: .9rem; color: var(--ink-soft); line-height: 1.4; }
.h-steps li.hot { background: var(--g-blue); }
.h-steps li.hot b { color: var(--yellow-1); }
.h-steps li.hot span { color: #fff; }

.qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qr-card { background: var(--mist); border-radius: 20px; padding: 16px; display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.qr-card img { width: 100%; height: auto; border-radius: 10px; background: #fff; }
.qr-card b { display: block; font-weight: 900; text-transform: uppercase; color: var(--blue-2); font-size: 1.1rem; line-height: 1.05; margin-bottom: 6px; }
.qr-card span { display: block; font-size: .92rem; color: var(--ink-soft); }
.h-foot { margin: 16px 0 0; font-weight: 700; color: var(--blue-2); font-size: .9rem; }
.h-foot a { color: var(--blue-1); }

/* ---------- bandeira ---------- */
.c-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.c-ico { width: 76px; height: 76px; flex: none; border-radius: 22px; background: var(--g-blue); display: grid; place-items: center; }
.c-ico svg { width: 42px; height: 42px; stroke: var(--yellow-1); stroke-width: 1.7; }
.c-head h1 { margin: 4px 0 2px; font-weight: 900; text-transform: uppercase; color: var(--blue-2); font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: .95; }
.c-head p { margin: 0; font-weight: 700; color: var(--ink-soft); }
.c-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.c-nav .pnav { text-decoration: none; }

/* ---------- projeto ---------- */
.ap-screen .pdet { padding-bottom: 8px; }

/* ---------- retrato / tablet em pé ---------- */
@media (max-width: 900px) {
  .h-hero { grid-template-columns: 1fr; }
  .h-hero-caio { display: none; }
  .h-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-cat { min-height: 120px; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 14px; }
  .h-cat-ico { grid-row: span 2; }
  .h-cat-name { margin-top: 0; align-self: end; }
  .h-cat-n { align-self: start; }
  .h-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- celular ---------- */
@media (max-width: 600px) {
  .ap-logo img { height: 32px; }
  .ap-btn { min-height: 42px; padding: 0 12px; font-size: .85rem; }
  #home span { display: none; }
  .h-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-cats { gap: 8px; }
  .h-cat { padding: 14px; min-height: 96px; column-gap: 10px; border-radius: 16px; }
  .h-cat-ico svg { width: 32px; height: 32px; }
  .h-cat-name { font-size: .88rem; }
  .h-cat-n { font-size: .72rem; }
  .pgrid.two { grid-template-columns: 1fr; }
  .h-steps { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: 1fr; }
  .qr-card { grid-template-columns: 110px 1fr; }
  .c-ico { width: 56px; height: 56px; border-radius: 16px; }
  .c-ico svg { width: 30px; height: 30px; }
}
body.apres { grid-template-columns: minmax(0, 1fr); }
.ap-screen, .ap-screen > * { min-width: 0; }
.pgrid > *, .pdet > *, .pdet-hero > * { min-width: 0; }
