/* ===================================================================
   Rubens Farina — Link in Bio
   Direção visual: "Litoral Esmeralda"
   Verde profundo + dourado + serifa editorial (Fraunces / Inter)
   =================================================================== */

:root {
  --pine-deep: #061a14;
  --pine: #0a2e24;
  --pine-soft: #0f3b2e;
  --gold: #c9a961;
  --gold-soft: #e0cb97;
  --sand: #f3efe6;
  --mist: rgba(243, 239, 230, .72);
  --whisper: rgba(243, 239, 230, .52);
  --hairline: rgba(201, 169, 97, .22);
  --wa: #25d366;

  --shell: 560px;
  --radius: 16px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--pine-deep);
  color: var(--sand);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Fundo ambiente: horizonte de litoral ---------- */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(201, 169, 97, .13) 0%, transparent 62%),
    radial-gradient(90% 55% at 50% 105%, rgba(15, 59, 46, .85) 0%, transparent 70%),
    linear-gradient(180deg, var(--pine-deep) 0%, #08231b 45%, var(--pine-deep) 100%);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 20px 110px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===================================================================
   HERO
   =================================================================== */
.hero { text-align: center; }

.avatar {
  width: 152px;
  height: 152px;
  margin: 0 auto 22px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(160deg, var(--gold) 0%, rgba(201, 169, 97, .28) 55%, rgba(201, 169, 97, .7) 100%);
}
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  background: var(--pine);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(34px, 10vw, 46px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.015em;
  color: #fbf8f1;
}

.tagline {
  margin: 0 auto 22px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mist);
}
.tagline b { color: var(--gold-soft); font-weight: 600; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(201, 169, 97, .07);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--gold-soft);
  white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; flex: none; }

/* Telas baixas (iPhone SE em pé, celular deitado): o hero inteiro encolhe para
   o botão de WhatsApp caber na primeira dobra. Sem isso, num 320x568 o CTA
   ficava 57px abaixo do corte — justamente o elemento que converte. */
@media (max-height: 640px) {
  .shell { padding-top: 24px; }
  .avatar { width: 112px; height: 112px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(30px, 9vw, 38px); }
  .tagline { margin-bottom: 16px; }
  .badges { gap: 6px; margin-bottom: 20px; }
  .badge { padding: 6px 11px; }
}

/* ===================================================================
   CTA PRINCIPAL
   =================================================================== */
.cta-wrap { margin: 0 0 34px; text-align: center; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 22px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.btn svg { width: 21px; height: 21px; flex: none; }

.btn-wa {
  background: linear-gradient(135deg, var(--gold) 0%, #b9954f 100%);
  color: #06211a;
  box-shadow: 0 12px 30px -12px rgba(201, 169, 97, .6);
}
.btn-wa:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-wa:active { transform: translateY(0); }

.btn-sub {
  display: block;
  max-width: 32ch;
  margin: 11px auto 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--whisper);
}
.btn-sub b { color: var(--gold-soft); font-weight: 600; }

/* ===================================================================
   LINKS
   =================================================================== */
.links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0 0 44px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(243, 239, 230, .09);
  background: linear-gradient(180deg, rgba(243, 239, 230, .055) 0%, rgba(243, 239, 230, .025) 100%);
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--hairline);
  background: linear-gradient(180deg, rgba(201, 169, 97, .1) 0%, rgba(243, 239, 230, .03) 100%);
}

.link-ic {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(201, 169, 97, .13);
  border: 1px solid var(--hairline);
  color: var(--gold);
}
.link-ic svg { width: 20px; height: 20px; }

.link-tx { flex: 1; min-width: 0; }
.link-tx strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sand);
}
.link-tx span {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--whisper);
}

.chev { flex: none; color: rgba(201, 169, 97, .55); transition: transform .18s var(--ease); }
.link-card:hover .chev { transform: translateX(3px); }

/* ===================================================================
   SEÇÕES
   =================================================================== */
.sec-head { text-align: center; margin: 0 0 24px; }
.sec-head h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(24px, 6.5vw, 30px);
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fbf8f1;
}
.sec-head p {
  margin: 0 auto;
  max-width: 36ch;
  font-size: 14px;
  color: var(--mist);
}

.rule {
  height: 1px;
  margin: 0 0 40px;
  background: linear-gradient(90deg, transparent, var(--hairline) 18%, var(--hairline) 82%, transparent);
}

/* ---------- Grid de serviços ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  margin: 0 0 44px;
}
.spec {
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(243, 239, 230, .08);
  background: linear-gradient(180deg, rgba(243, 239, 230, .05) 0%, rgba(243, 239, 230, .02) 100%);
}
.spec-ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(201, 169, 97, .12);
  color: var(--gold);
}
.spec-ic svg { width: 19px; height: 19px; }
.spec h3 {
  margin: 0 0 5px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sand);
}
.spec p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--whisper);
}

.spec-highlight {
  grid-column: 1 / -1;
  border-color: var(--hairline);
  background: linear-gradient(135deg, rgba(201, 169, 97, .14) 0%, rgba(15, 59, 46, .5) 100%);
}
.spec-highlight h3 { color: var(--gold-soft); }
.spec-highlight p { color: var(--mist); }

/* Em telas estreitas o grid vira coluna única — e os cartões viram
   horizontais (ícone à esquerda) para não sobrar espaço morto ao lado.
   Precisa vir DEPOIS das regras base de .spec para vencer no cascade. */
@media (max-width: 420px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 13px;
    align-items: start;
  }
  .spec-ic { grid-row: 1 / span 2; margin-bottom: 0; }
  .spec h3 { align-self: center; }
  .spec-highlight { grid-template-columns: 1fr; }
  .spec-highlight .spec-ic { grid-row: auto; margin-bottom: 12px; }
}

/* ---------- Sobre ---------- */
.about {
  padding: 28px 22px;
  margin: 0 0 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(243, 239, 230, .08);
  background: linear-gradient(170deg, rgba(15, 59, 46, .7) 0%, rgba(10, 46, 36, .45) 100%);
}
.fgbt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
}
.fgbt svg { width: 13px; height: 13px; }

.about h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(22px, 6vw, 27px);
  font-weight: 600;
  line-height: 1.15;
  color: #fbf8f1;
}
.about p {
  margin: 0 0 13px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--mist);
}
.about p strong { color: var(--sand); font-weight: 600; }

.quote {
  margin: 18px 0 0 !important;
  padding-left: 15px;
  border-left: 2px solid var(--gold);
  font-style: italic;
  color: var(--gold-soft) !important;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(243, 239, 230, .06);
  border: 1px solid rgba(243, 239, 230, .09);
  font-size: 11.5px;
  color: var(--mist);
}

/* ===================================================================
   RODAPÉ
   =================================================================== */
.foot { text-align: center; padding-top: 8px; }

.foot-social {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0 0 18px;
}
.foot-social a {
  /* 44px é o alvo de toque mínimo confortável (WCAG 2.5.5 / Apple HIG). */
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--gold);
  transition: transform .18s var(--ease), background .18s var(--ease);
}
.foot-social a:hover { transform: translateY(-2px); background: rgba(201, 169, 97, .12); }
.foot-social svg { width: 18px; height: 18px; }

.foot small {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--whisper);
}
.foot .name { color: var(--gold-soft); font-weight: 600; }

/* O crédito é texto pequeno (11px), então precisa de contraste AA de 4.5:1 —
   por isso opacidade alta. O sublinhado existe para o link não depender só da
   cor para se distinguir do texto ao redor. */
.credit { margin-top: 14px; font-size: 11px; color: rgba(243, 239, 230, .55); }
.credit a {
  /* O padding leva o alvo de toque aos 24px mínimos da WCAG 2.2 (2.5.8). */
  display: inline-block;
  padding: 5px 6px;
  margin: -5px -6px;
  color: rgba(243, 239, 230, .8);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(243, 239, 230, .35);
}
.credit a:hover { color: var(--gold); text-decoration-color: var(--gold); }

/* ===================================================================
   STICKY CTA (mobile)
   =================================================================== */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(6, 26, 20, 0) 0%, rgba(6, 26, 20, .93) 32%);
  transform: translateY(115%);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.sticky-cta.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.sticky-cta .btn { max-width: var(--shell); margin: 0 auto; font-size: 15px; padding: 15px 20px; }

@media (min-width: 720px) {
  .sticky-cta { display: none; }
  .shell { padding-bottom: 60px; }
}

/* ---------- Foco acessível ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}
