/* =====================================================================
   Confraternização FMB 2026 — tema oceano / pôr do sol
   CSS próprio, sem dependência de CDN (carrega no sinal fraco do resort)
   ===================================================================== */

:root {
  --ocean-deep:  #071928;
  --ocean-mid:   #0c2d48;
  --ocean-soft:  #113a5c;
  --sun-gold:    #e8b365;
  --sun-light:   #f7d08a;
  --sand-light:  #faf5ec;
  --seafoam:     #2dd4bf;
  --fmb-green:   #006445;

  --txt:         #faf5ec;
  --txt-soft:    rgba(250, 245, 236, .72);
  --txt-dim:     rgba(250, 245, 236, .52);

  --linha:       rgba(255, 255, 255, .14);
  --linha-forte: rgba(255, 255, 255, .24);
  --vidro:       rgba(7, 25, 40, .62);
  --vidro-alto:  rgba(7, 25, 40, .86);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --sombra: 0 25px 60px -15px rgba(0, 0, 0, .65);
  --sombra-sm: 0 8px 24px -10px rgba(0, 0, 0, .6);

  --barra-inferior: 68px;
  --fonte: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --fonte-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--fonte);
  font-size: 15px;
  line-height: 1.55;
  color: var(--txt);
  background-color: var(--ocean-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--barra-inferior) + env(safe-area-inset-bottom, 0px));
}

body.sem-barra { padding-bottom: 0; }

::selection { background: rgba(232, 179, 101, .3); color: #fde6ba; }

/* ---------------------------------------------------------------- fundo */

.fundo {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url('../img/praia-mobile.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

@media (min-width: 860px) {
  .fundo { background-image: url('../img/praia.jpg'); }
}

.fundo-veu {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(7,25,40,.86) 0%, rgba(7,25,40,.72) 45%, rgba(6,20,32,.95) 100%);
}

.fundo-brilho {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 78% 12%, rgba(232,179,101,.2), transparent 48%);
  pointer-events: none;
}

/* ------------------------------------------------------------ tipografia */

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; font-weight: 600; }

.display {
  font-family: var(--fonte-display);
  font-weight: 700;
  letter-spacing: -.01em;
}

.display-it {
  font-family: var(--fonte-display);
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--sun-light), var(--sun-gold) 45%, var(--seafoam));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rotulo {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: rgba(232, 179, 101, .9);
}

.suave  { color: var(--txt-soft); }
.apagado{ color: var(--txt-dim); }
.dourado{ color: var(--sun-gold); }
.turquesa { color: var(--seafoam); }
.menor  { font-size: 13px; }
.mini   { font-size: 11.5px; }
.centro { text-align: center; }
.negrito{ font-weight: 600; }

a { color: var(--sun-gold); text-decoration: none; }
a:hover { color: var(--sun-light); }

/* ------------------------------------------------------------- estrutura */

.capa { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.capa-estreita { max-width: 680px; margin: 0 auto; padding: 0 16px; }

.pilha > * + * { margin-top: 12px; }
.pilha-g > * + * { margin-top: 20px; }

.linha { display: flex; align-items: center; gap: 10px; }
.linha-entre { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.linha-quebra { flex-wrap: wrap; }
.cresce { flex: 1; min-width: 0; }

.secao { padding-top: 22px; padding-bottom: 22px; }

/* ---------------------------------------------------------------- vidro */

.vidro {
  background: var(--vidro);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--linha);
  box-shadow: var(--sombra);
  border-radius: var(--r-xl);
}

.cartao {
  background: rgba(7, 25, 40, .5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--linha);
  border-radius: var(--r-lg);
  padding: 16px;
}

.cartao-sutil {
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  padding: 14px;
}

/* -------------------------------------------------------------- cabeçalho */

.cabecalho {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 25, 40, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--linha);
  padding-top: env(safe-area-inset-top, 0px);
}

.cabecalho-int {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.marca { display: flex; align-items: center; gap: 10px; min-width: 0; }

.marca-icone {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(232,179,101,.25), rgba(45,212,191,.2));
  border: 1px solid rgba(232,179,101,.3);
  color: var(--sun-gold);
  box-shadow: var(--sombra-sm);
}

.marca-txt { min-width: 0; }
.marca-txt b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; }

.pilula {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid var(--linha);
  font-size: 11.5px; font-weight: 500;
  color: #fde6ba;
  white-space: nowrap;
}

.pilula-turquesa {
  background: rgba(45,212,191,.14);
  border-color: rgba(45,212,191,.32);
  color: #a7f3eb;
}

.pilula-verde {
  background: rgba(0,100,69,.3);
  border-color: rgba(0,100,69,.55);
  color: #a8e6cd;
}

.ponto-vivo { position: relative; display: inline-flex; width: 9px; height: 9px; flex: none; }
.ponto-vivo span:first-child {
  position: absolute; inset: 0;
  border-radius: 999px; background: var(--sun-gold);
  opacity: .75; animation: pulsar 1.8s cubic-bezier(0,0,.2,1) infinite;
}
.ponto-vivo span:last-child {
  position: relative; width: 9px; height: 9px;
  border-radius: 999px; background: var(--sun-gold);
}
.ponto-vivo.turquesa span { background: var(--seafoam); }

@keyframes pulsar { 75%, 100% { transform: scale(2.2); opacity: 0; } }

/* ------------------------------------------------------------- avatares */

.avatar {
  width: 36px; height: 36px;
  flex: none;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700;
  color: #06202e;
  letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.22);
}
.avatar-g { width: 46px; height: 46px; font-size: 15px; }
.avatar-p { width: 28px; height: 28px; font-size: 10.5px; }

/* --------------------------------------------------------------- botões */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, opacity .18s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

.btn-ouro {
  background: linear-gradient(100deg, var(--sun-gold), #d99b43);
  color: #0a1a26;
  box-shadow: 0 10px 28px -12px rgba(232,179,101,.7);
}
.btn-ouro:hover { background: linear-gradient(100deg, var(--sun-light), var(--sun-gold)); color: #0a1a26; }

.btn-vidro {
  background: rgba(255,255,255,.1);
  border-color: var(--linha-forte);
  color: var(--txt);
}
.btn-vidro:hover { background: rgba(255,255,255,.16); color: var(--txt); }

.btn-turquesa {
  background: rgba(45,212,191,.16);
  border-color: rgba(45,212,191,.4);
  color: #a7f3eb;
}
.btn-turquesa:hover { background: rgba(45,212,191,.24); color: #c7fbf4; }

.btn-perigo {
  background: rgba(220,80,80,.16);
  border-color: rgba(220,80,80,.4);
  color: #ffb3b3;
}
.btn-perigo:hover { background: rgba(220,80,80,.26); color: #ffd0d0; }

.btn-bloco { width: 100%; }
.btn-p { padding: 8px 13px; font-size: 13px; border-radius: 11px; }
.btn-icone { padding: 9px; border-radius: 11px; }

.ic { width: 18px; height: 18px; flex: none; }
.ic-p { width: 15px; height: 15px; flex: none; }
.ic-g { width: 22px; height: 22px; flex: none; }

/* ------------------------------------------------------------ formulários */

.campo { display: block; margin-bottom: 14px; }

.campo > span {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px; font-weight: 600;
  color: var(--txt-soft);
}

.entrada, .area, .selecao {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit; font-size: 16px; /* 16px evita zoom automático no iOS */
  color: var(--txt);
  background: rgba(0,0,0,.3);
  border: 1px solid var(--linha-forte);
  border-radius: 13px;
  transition: border-color .18s, background .18s;
  -webkit-appearance: none;
  appearance: none;
}

.entrada::placeholder, .area::placeholder { color: rgba(250,245,236,.38); }

.entrada:focus, .area:focus, .selecao:focus {
  outline: none;
  border-color: rgba(232,179,101,.65);
  background: rgba(0,0,0,.42);
  box-shadow: 0 0 0 3px rgba(232,179,101,.14);
}

.area { min-height: 110px; resize: vertical; line-height: 1.5; }

.selecao {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8b365' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 17px;
  padding-right: 38px;
}

.selecao option { background: var(--ocean-mid); color: var(--txt); }

.dica-campo { margin-top: 5px; font-size: 11.5px; color: var(--txt-dim); }

.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grade-2.quebra-mob { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- avisos */

.aviso {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  border: 1px solid;
}
.aviso .ic { margin-top: 1px; }
.aviso-erro  { background: rgba(220,80,80,.14);  border-color: rgba(220,80,80,.36);  color: #ffc9c9; }
.aviso-ok    { background: rgba(45,212,191,.13); border-color: rgba(45,212,191,.34); color: #a7f3eb; }
.aviso-atencao{ background: rgba(232,179,101,.13);border-color: rgba(232,179,101,.36);color: #fbdcab; }
.aviso-info  { background: rgba(255,255,255,.07); border-color: var(--linha);         color: var(--txt-soft); }

/* ------------------------------------------------------- barra inferior */

.barra-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  background: rgba(5, 18, 29, .93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--linha);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 9px 4px 8px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .01em;
  color: var(--txt-dim);
  text-decoration: none;
  transition: color .18s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.nav-item .ic { width: 21px; height: 21px; }
.nav-item:hover { color: var(--txt-soft); }
.nav-item.ativo { color: var(--sun-gold); }
.nav-item.ativo::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 2.5px; border-radius: 0 0 3px 3px;
  background: var(--sun-gold);
}
.nav-item.destaque .ic { width: 24px; height: 24px; }

/* ----------------------------------------------------------- onda rodapé */

.onda { width: 110%; margin-left: -5%; height: 42px; opacity: .4; color: rgba(45,212,191,.3); animation: ondular 10s ease-in-out infinite; pointer-events: none; display: block; }
@keyframes ondular { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-25px); } }

.rodape {
  background: rgba(5,18,29,.9);
  border-top: 1px solid var(--linha);
  padding: 16px;
  text-align: center;
  font-size: 11.5px;
  color: var(--txt-dim);
}
.rodape .sep { margin: 0 8px; color: rgba(255,255,255,.2); }

/* --------------------------------------------------------------- toast */

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--barra-inferior) + 16px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 14px);
  z-index: 200;
  display: flex; align-items: center; gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(10, 26, 38, .97);
  border: 1px solid rgba(232,179,101,.42);
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.8);
  font-size: 13.5px; font-weight: 500;
  color: #fde6ba;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s, transform .28s;
}
#toast.visivel { opacity: 1; transform: translate(-50%, 0); }
#toast.erro { border-color: rgba(220,80,80,.5); color: #ffc9c9; }
#toast .ic { color: var(--seafoam); }
#toast.erro .ic { color: #ff9a9a; }

/* ------------------------------------------------------- barra progresso */

.progresso {
  width: 100%; height: 9px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
}
.progresso > i {
  display: block; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d99b43 0%, #f7d08a 50%, #2dd4bf 100%);
  background-size: 200% 100%;
  animation: brilhar 3.5s linear infinite;
  transition: width .3s ease;
}
@keyframes brilhar { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ------------------------------------------------------------ utilidades */

.oculto { display: none !important; }
.so-leitor {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.divisor { height: 1px; background: var(--linha); margin: 16px 0; border: 0; }

.vazio {
  padding: 40px 20px;
  text-align: center;
  color: var(--txt-dim);
}
.vazio .ic-g { margin-bottom: 10px; opacity: .5; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
