/* ===== Fontes self-hosted (font-display: swap) ===== */
@font-face {
  font-family: "Gloock";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/gloock-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600; /* instância fixa: opsz 72, SOFT 100, wght 600 (só os glifos do wordmark) */
  font-display: swap;
  src: url("../fonts/fraunces-wordmark.woff2") format("woff2");
}

/* Fontes de reserva com métricas ajustadas (reduz CLS na troca) */
@font-face {
  font-family: "Gloock Fallback";
  src: local("Georgia");
  size-adjust: 94%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia");
  size-adjust: 97%;
  ascent-override: 93%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ===== Tokens ===== */
:root {
  --cream: #F9F1D7;
  --pill: #FCEFD9;
  --ink: #0C0C1A;
  --sky: #0B1FA0;
  --shade: #0C0C08;

  --font-title: "Gloock", "Gloock Fallback", Georgia, serif;
  --font-ui: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-brand: "Fraunces", "Fraunces Fallback", Georgia, serif;

  --gutter: clamp(20px, 2.7vw, 52px);
  /* linha mais larga ~45% da largura no desktop; svh limita em telas baixas */
  --title-size: clamp(34px, min(3.9vw, 8svh), 84px);
}

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

html {
  background: var(--sky);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  position: relative;
  /* A dobra ocupa a tela; em telas muito baixas a página rola em vez de cortar */
  height: 100svh;
  min-height: 560px;
  background: var(--sky);
  color: var(--cream);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Hero ===== */
.hero {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(84px, 11svh, 140px) var(--gutter) 0;
  overflow: hidden;
  background: var(--sky);
  text-align: center;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  transform-origin: 50% 50%;
}
.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 60%); /* ajuste fino do enquadramento */
}


/* Degradê escuro na base + véu suave atrás do texto central (contraste AA) */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--shade) 0%, rgb(12 12 8 / 0.72) 7%, rgb(12 12 8 / 0) 26%),
    radial-gradient(ellipse 52% 40% at 50% 28%, rgb(6 12 80 / 0.5) 0%, rgb(6 12 80 / 0) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 clamp(10px, 1.6svh, 18px);
  font-weight: 500;
  font-size: clamp(11px, 0.66vw + 4px, 12.5px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgb(6 12 80 / 0.55);
}

.title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: var(--title-size);
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 28px rgb(6 12 80 / 0.45);
  text-wrap: balance;
  hyphens: none; /* nunca corta "Ultrapersonalizada" */
  overflow-wrap: normal;
}
.title__line { display: block; }

.subtitle {
  margin: clamp(14px, 2.4svh, 26px) 0 0;
  max-width: 460px;
  font-weight: 400;
  font-size: clamp(14px, 0.35vw + 10px, 16px);
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-wrap: balance;
  text-shadow: 0 1px 14px rgb(6 12 80 / 0.6);
}

/* ===== Header ===== */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  margin-top: 16px;
  padding: 0 var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  --brand-size: clamp(34px, 3.3vw, 60px);
  gap: calc(var(--brand-size) * 0.22);
  min-height: 48px;
  padding-block: 2px;
  color: var(--cream);
  text-decoration: none;
}
.brand__logo {
  display: block;
  flex: none;
  /* ~1,2x a altura das ascendentes do wordmark (~0,74em); a caixa inclui o anel */
  width: calc(var(--brand-size) * 1.3);
  height: calc(var(--brand-size) * 1.3);
}
.brand__word {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: var(--brand-size);
  text-shadow: 0 1px 14px rgb(6 12 80 / 0.5); /* garante contraste sobre nuvens claras */
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ===== Pílulas ===== */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  height: clamp(48px, 3.3vw + 2px, 62px);
  padding: 0 clamp(22px, 2vw, 38px);
  border-radius: 999px;
  background: var(--pill);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgb(6 12 80 / 0.28);
}
.pill__arrow { display: block; flex: none; }
.pill--cta { margin-top: clamp(20px, 3.4svh, 36px); }

.pill:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}
/* No botão claro o contorno creme some; reforça com anel escuro interno */
.pill:focus-visible { box-shadow: 0 0 0 2px var(--ink), 0 6px 24px rgb(6 12 80 / 0.28); }

/* ===== Barra inferior ===== */
.bar {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--gutter) clamp(20px, 3.7svh, 40px);
  font-weight: 500;
  font-size: clamp(12px, 0.4vw + 8px, 15px);
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bar__loc { display: flex; align-items: center; gap: 14px; }
.bar__pin { flex: none; }
.bar__lines, .bar__info { display: flex; flex-direction: column; }
.bar__sep {
  align-self: stretch;
  width: 1px;
  min-height: 44px;
  background: var(--cream);
  opacity: 0.85;
}

/* ===== Responsivo ===== */
@media (max-width: 899.98px) {
  .bar__sep { display: block; }
}
@media (max-width: 599.98px) {
  .brand { --brand-size: 28px; }
  .top { height: 56px; margin-top: 10px; }
  .pill { font-size: 13px; }
  .pill--header { height: 44px; padding: 0 18px; }
  .pill--cta { height: 52px; }
  .title { font-size: clamp(30px, 9.4vw, 52px); }
  .hero { padding-top: clamp(80px, 12svh, 110px); }
  .bar__sep, .bar__info { display: none; }
}
/* Recorte vertical (celular e tablet retrato): igreja inteira à esquerda */
@media (max-width: 900px) and (orientation: portrait) {
  .hero__img { --focus-x: 8%; --focus-y: 60%; }
}

/* ===== Interação (sem animações de página; só o retorno visual das pílulas) ===== */
@media (prefers-reduced-motion: no-preference) {
  .pill { transition: transform 200ms ease, box-shadow 200ms ease; }
  .pill__arrow { transition: transform 200ms ease; }
  .pill:hover { transform: translateY(-2px); }
  .pill:hover .pill__arrow { transform: translate(2px, -2px); }
}
