/* União Futebol Clube — Piranema. Visual próprio: azul do escudo, ouro das estrelas, divisas como assinatura. */
:root {
  --navy: #003475;
  --navy-ink: #001f47;
  --navy-soft: #e6edf6;
  --gold: #fec400;
  --gold-deep: #d2961f;
  --flame: #ff5e08;
  --paper: #f7f5ef;
  --white: #fff;
  --ink: #0d1a2c;
  --muted: #4a5a70;
  --line: #d8dee8;
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
ul, dl { list-style: none; }

.wrap {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Tipografia */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.9rem;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 10px;
  background: var(--gold);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 80% 100%, 50% 40%, 20% 100%);
}
.kicker--light { color: var(--gold); }

.display {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--navy-ink);
}
.display--light { color: var(--white); }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40rem;
  margin-top: 1rem;
}

/* Botões */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.pill:hover { transform: translateY(-2px); }
.pill--gold { background: var(--gold); color: var(--navy-ink); }
.pill--gold:hover { background: #ffd43d; }
.pill--ghost { border: 2px solid rgba(255, 255, 255, 0.7); color: var(--white); }
.pill--ghost:hover { background: var(--white); color: var(--navy-ink); }
.pill--blue { background: var(--navy); color: var(--white); }
.pill--blue:hover { background: var(--navy-ink); }
.pill--outline { border: 2px solid var(--navy); color: var(--navy); }
.pill--outline:hover { background: var(--navy); color: var(--white); }

/* Navegação */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: max(1.25rem, calc((100% - 1160px) / 2));
  color: var(--white);
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}
.site-nav.is-solid,
.site-nav--solid {
  background: var(--navy-ink);
  box-shadow: 0 6px 24px rgba(0, 20, 50, 0.18);
}
.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  line-height: 1;
}
.site-nav__brand img { width: 40px; height: auto; }
.site-nav__brand small {
  display: block;
  font-family: var(--font-body);
  font-stretch: 100%;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  opacity: 0.8;
  margin-top: 0.2rem;
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.site-nav__links a { position: relative; padding-block: 0.4rem; }
.site-nav__links a:not(.site-nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav__links a:hover::after,
.site-nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__cta {
  background: var(--gold);
  color: var(--navy-ink);
  padding: 0.55rem 1.1rem !important;
  border-radius: 6px;
}
.site-nav__burger { display: none; width: 44px; height: 44px; position: relative; color: inherit; }
.site-nav__burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.site-nav__burger span:first-child { top: 17px; }
.site-nav__burger span:last-child { top: 25px; }
.site-nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.site-nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--navy-ink);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 31, 71, 0.94) 0%, rgba(0, 31, 71, 0.75) 42%, rgba(0, 31, 71, 0.15) 100%),
    linear-gradient(0deg, rgba(0, 31, 71, 0.7) 0%, transparent 40%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3rem;
  padding-block: calc(var(--nav-h) + 4rem) 6.5rem;
}
.hero__stars { display: flex; gap: 0.35rem; margin-bottom: 1.4rem; }
.hero__stars i {
  width: 18px;
  height: 18px;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.hero__stars i:first-child { background: #c9cacd; }
.hero__stars i:nth-child(2) { background: var(--flame); }
.hero__name {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 8rem);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.hero__name em { font-style: normal; color: var(--gold); }
.hero__line {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.88);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero__crest {
  width: clamp(160px, 18vw, 240px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}
.hero__chevrons {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  background: var(--paper);
  clip-path: polygon(0 100%, 0 70%, 50% 0, 100% 70%, 100% 100%);
}

/* Divisas (assinatura do escudo) */
.chevrons {
  display: grid;
  gap: 10px;
  width: 120px;
}
.chevrons span {
  height: 22px;
  background: var(--navy);
  clip-path: polygon(0 100%, 0 45%, 50% 0, 100% 45%, 100% 100%, 50% 55%);
}
.chevrons span:nth-child(2) { width: 82%; margin-inline: auto; }
.chevrons span:nth-child(3) { width: 60%; margin-inline: auto; }
.chevrons--gold span { background: var(--gold); }

/* O clube */
.club { padding-block: 6rem 5rem; }
.club__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.club__photo { position: relative; }
.club__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}
.club__year {
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 1.1rem 1.4rem 1rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 0.9;
}
.club__year small {
  display: block;
  font-family: var(--font-body);
  font-stretch: 100%;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.club__text p { margin-top: 1.1rem; color: var(--muted); font-size: 1.05rem; }
.club__text p strong { color: var(--ink); }
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 4.5rem;
  border-top: 2px solid var(--navy);
}
.facts div { padding: 1.4rem 1.2rem 0 0; }
.facts b {
  display: block;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1;
  color: var(--navy);
}
.facts span { display: block; margin-top: 0.4rem; font-size: 0.9rem; color: var(--muted); }

/* Atividades */
.acts { padding-block: 5rem; background: var(--white); }
.acts__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.acts__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  counter-reset: act;
}
.act {
  position: relative;
  padding: 2rem 1.6rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  counter-increment: act;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.act:hover { transform: translateY(-4px); border-color: var(--navy); }
.act::before {
  content: "0" counter(act);
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1rem;
  color: var(--gold-deep);
}
.act h3 {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy-ink);
  margin: 0.8rem 0 0.7rem;
}
.act p { color: var(--muted); }

/* Galeria */
.gallery { padding-block: 5.5rem; }
.gallery__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 10px;
  margin-top: 2.6rem;
}
.mosaic a { position: relative; overflow: hidden; border-radius: 6px; background: var(--navy-soft); }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic a:last-child { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.mosaic a:hover img { transform: scale(1.05); }

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 18, 42, 0.92);
}
.lb[hidden] { display: none; }
.lb__fig img { max-height: 82vh; width: auto; border-radius: 6px; }
.lb__fig figcaption { color: var(--white); text-align: center; margin-top: 0.8rem; font-size: 0.95rem; }
.lb__x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  color: var(--white);
}

/* Contato */
.join { padding-block: 5.5rem 6rem; background: var(--white); }
.join__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.join__copy p { margin-top: 1.1rem; color: var(--muted); font-size: 1.05rem; max-width: 30rem; }
.join__copy .chevrons { margin-top: 2.5rem; }
.join__panel { display: grid; gap: 0.75rem; }
.contact-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
a.contact-row:hover { border-color: var(--navy); transform: translateX(4px); }
.contact-row svg { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--navy); color: var(--white); }
.contact-row small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
}
.contact-row span { font-weight: 600; }

/* Rodapé */
.foot { background: var(--navy-ink); color: rgba(255, 255, 255, 0.82); padding-top: 4rem; }
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
}
.foot__brand { display: flex; gap: 1.2rem; align-items: center; }
.foot__brand img { width: 72px; height: auto; }
.foot__brand strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.7rem;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.foot__brand p { font-size: 0.9rem; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.foot__cols h3 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.foot__cols a { display: block; padding-block: 0.3rem; font-size: 0.95rem; }
.foot__cols a:hover { color: var(--white); }
.foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
}
.foot__bottom a:hover { color: var(--white); }

/* Transparência e páginas internas */
.page-transp { background: var(--paper); }
.transp-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.transp-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 260px;
  height: 260px;
  background: var(--navy-soft);
  clip-path: polygon(0 100%, 0 45%, 50% 0, 100% 45%, 100% 100%, 50% 55%);
  pointer-events: none;
}
.transp-hero .wrap { position: relative; z-index: 1; }
.transp-hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.transp-hero__meta span {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
}
.transp-list { padding-block: 3.5rem 5rem; }
.transp-section-title {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--navy-ink);
  margin-bottom: 1.2rem;
}
.transp-list .transp-section-title + .docs,
.transp-list .transp-section-title + .docs-empty { margin-bottom: 3rem; }
.docs { display: grid; gap: 0.9rem; }
.doc {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1.3rem 1.4rem 1.3rem 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.doc__bar { align-self: stretch; background: var(--gold); margin: -1.3rem 0; }
.doc__type {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
}
.doc__title { font-size: 1.1rem; font-weight: 700; color: var(--navy-ink); margin-top: 0.2rem; }
.doc__desc { color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; }
.doc__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.doc__actions .pill { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.docs-empty {
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.legal { padding-block: 3.5rem 5rem; }
.legal__content { max-width: 760px; }
.legal__content h2 {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--navy-ink);
  margin: 2.2rem 0 0.6rem;
}
.legal__content p { color: var(--muted); margin-top: 0.7rem; }
.legal__content a { color: var(--navy); text-decoration: underline; }

/* Aviso de privacidade */
.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  background: var(--navy-ink);
  color: var(--white);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  font-size: 0.88rem;
}
.cookie[hidden] { display: none; }
.cookie a { text-decoration: underline; color: var(--gold); }
.cookie .pill { min-height: 40px; padding: 0.5rem 1rem; flex-shrink: 0; }

/* Revelação ao rolar */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Responsivo */
@media (max-width: 960px) {
  .site-nav__burger { display: block; }
  .site-nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.5rem;
    background: var(--navy-ink);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
  }
  .site-nav__links.is-open { transform: none; }
  .site-nav__links a { padding: 0.9rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .site-nav__cta { margin-top: 1rem; text-align: center; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__crest { display: none; }
  .club__grid, .join__grid, .foot__top { grid-template-columns: 1fr; }
  .club__year { right: 1rem; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .acts__list { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .doc { grid-template-columns: 6px 1fr; }
  .doc__actions { grid-column: 2; }
}
@media (max-width: 520px) {
  .hero__actions .pill { flex: 1 1 100%; }
  .cookie { flex-direction: column; align-items: stretch; }
}
