/* ──────────────────────────────────────────────────────────
   FEBRAPE — Federação Brasiliense de Peteca
   Identidade visual oficial
   Manutenção: edite só as variáveis em :root para mudar cores
   ────────────────────────────────────────────────────────── */

:root {
  /* Paleta FEBRAPE */
  --green-dark:   #081A0F;
  --green-deep:   #0D4A24;
  --green:        #1B7A3E;
  --green-light:  #4CAF72;
  --green-bg:     #F0FBF4;
  --white:        #ffffff;
  --gray-soft:    rgba(13, 74, 36, 0.08);
  --gray-mid:     rgba(13, 74, 36, 0.55);

  /* Tipografia */
  --font-sans: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1100px;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 20px rgba(8, 26, 15, 0.08);
  --shadow-lg: 0 12px 40px rgba(8, 26, 15, 0.18);

  /* Transições */
  --tr: 0.25s ease;
}

/* ── Reset enxuto ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.55;
  color: var(--green-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: transparent; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header fixo ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(13, 74, 36, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--green-deep);
}
.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}
.brand-text { font-size: 17px; font-weight: 800; }

.nav-desktop {
  display: flex;
  gap: 32px;
}
.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--green-deep);
  position: relative;
  transition: color var(--tr);
}
.nav-desktop a:hover { color: var(--green); }
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--green-light);
  transition: width var(--tr);
}
.nav-desktop a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--green-deep);
  transition: all var(--tr);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid rgba(13, 74, 36, 0.08);
  padding: 8px 24px 16px;
}
.nav-mobile a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--green-deep);
  border-bottom: 1px solid rgba(13, 74, 36, 0.06);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.is-open { display: flex; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 140px 0 100px;
  background: var(--green-dark);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(76, 175, 114, 0.18), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(27, 122, 62, 0.25), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 20px;
}
.eyebrow-dark { color: var(--green); }

.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-accent {
  background: linear-gradient(120deg, var(--green-light), #6BD392);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Botões ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform var(--tr), background var(--tr), color var(--tr), border-color var(--tr);
}
.btn-primary {
  background: var(--green-light);
  color: var(--green-dark);
}
.btn-primary:hover {
  background: var(--white);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}
.btn-light {
  background: var(--white);
  color: var(--green-deep);
}
.btn-light:hover { transform: translateY(-1px); }

/* ── Seções gerais ──────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-light { background: var(--green-bg); }
.section-dark { background: var(--green-dark); color: var(--white); }
.section-accent { background: var(--green-deep); color: var(--white); }

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--green-dark);
}
.section-title-light { color: var(--white); }

.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-mid);
  max-width: 720px;
  margin-bottom: 40px;
}
.lead-light { color: rgba(255, 255, 255, 0.72); }
.lead-small { font-size: 15px; margin-bottom: 32px; }

/* ── Sobre / Info grid ──────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-soft);
  transition: transform var(--tr), box-shadow var(--tr);
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.info-card h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.info-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--green-dark);
}

/* ── Diretoria ──────────────────────────────────────────────── */
.subsection-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.board-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-soft);
  transition: transform var(--tr), border-color var(--tr);
}
.board-card:hover {
  transform: translateY(-2px);
  border-color: var(--green-light);
}
.board-card-lead {
  background: var(--green-deep);
  color: var(--white);
  border-color: var(--green-deep);
}
.board-card .role {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.board-card-lead .role { color: var(--green-light); }
.board-card h4 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--green-dark);
}
.board-card-lead h4 { color: var(--white); }

.council {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  border: 1px solid var(--gray-soft);
}
.council-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.council-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.council-list li {
  font-size: 15px;
  color: var(--green-dark);
  font-weight: 500;
}

/* ── Clubes ─────────────────────────────────────────────────── */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.club-card {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(76, 175, 114, 0.18);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--tr), background var(--tr), border-color var(--tr);
}
.club-card:hover {
  transform: translateY(-3px);
  background: rgba(76, 175, 114, 0.08);
  border-color: rgba(76, 175, 114, 0.45);
}
.club-card:hover .club-avatar {
  transform: scale(1.05);
  border-color: var(--green-light);
}
.club-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  border: 2px solid rgba(76, 175, 114, 0.35);
  background: var(--green-deep);
  transition: transform var(--tr), border-color var(--tr);
}
.club-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--white);
}
.club-handle {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--green-light);
  margin-bottom: 14px;
}
.club-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}
.clubs-cta {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}
.clubs-cta a {
  color: var(--green-light);
  font-weight: 600;
  border-bottom: 1px solid rgba(76, 175, 114, 0.4);
  transition: border-color var(--tr);
}
.clubs-cta a:hover { border-color: var(--green-light); }

/* ── Instagram ──────────────────────────────────────────────── */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.ig-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
  transition: transform var(--tr), box-shadow var(--tr);
}
.ig-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ig-card:hover img { transform: scale(1.04); }

.ig-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(8, 26, 15, 0.85) 0%, rgba(8, 26, 15, 0) 60%);
  color: var(--white);
}
.ig-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 6px;
}
.ig-overlay h4 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.ig-cta-wrap { text-align: center; }

/* ── Contato ────────────────────────────────────────────────── */
.contact-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.contact-inner .lead { margin-left: auto; margin-right: auto; }
.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 13px;
}
.footer-meta a {
  color: var(--green-light);
  font-weight: 600;
  transition: color var(--tr);
}
.footer-meta a:hover { color: var(--white); }

/* ── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .info-grid,
  .board-grid,
  .clubs-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 110px 0 70px; }
  .section { padding: 64px 0; }

  .info-grid,
  .board-grid,
  .clubs-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-meta { align-items: flex-start; }

  .container { padding: 0 20px; }
}
