/* ==========================================================================
   CGJF — Centro de Ginástica Juiz de Fora
   Design tokens
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Color */
  --black: #0d0d0e;
  --graphite-900: #1a1a1d;
  --graphite-800: #232326;
  --graphite-700: #333336;
  --graphite-600: #47474b;
  --bone: #faf8f4;
  --bone-dim: #d7d5d0;
  --grey-mute: #a3a3a8;
  --orange: #f2811b;
  --orange-light: #ffb673;
  --orange-deep: #c9640e;

  /* Gradients */
  --grad-orange: linear-gradient(115deg, var(--orange) 0%, var(--orange-light) 100%);
  --grad-fade-bottom: linear-gradient(180deg, rgba(13,13,14,0) 0%, rgba(13,13,14,0.5) 55%, rgba(13,13,14,0.95) 100%);
  --grad-fade-center: radial-gradient(ellipse 62% 72% at 50% 45%, rgba(13,13,14,0.42) 0%, rgba(13,13,14,0.78) 55%, rgba(13,13,14,0.96) 100%);

  /* Type */
  --font-display: 'Bebas Neue', 'Space Grotesk', sans-serif;
  --font-utility: 'Space Grotesk', monospace;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--orange); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--orange-light);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.eyebrow {
  font-family: var(--font-utility);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.98;
  text-transform: none;
  color: var(--bone);
}

h1 { font-size: clamp(42px, 6.6vw, 80px); }
h2 { font-size: clamp(36px, 5.5vw, 64px); }
h3 { font-size: clamp(26px, 3.4vw, 36px); }
h4 { font-size: clamp(20px, 2.2vw, 24px); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; line-height: 1.25; }

p { color: var(--bone-dim); }

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--bone-dim);
  max-width: 46em;
  line-height: 1.65;
}

/* ---------- Beam divider — signature element ----------
   A tapered horizontal line with angled legs, echoing the
   gymnastics balance beam. Used between sections instead of
   a generic hairline. */
.beam-divider {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  height: 34px;
  margin: 0 auto;
  width: 100%;
  max-width: 260px;
}
.beam-divider .beam-bar {
  flex: 1;
  height: 4px;
  background: var(--grad-orange);
  border-radius: 2px;
  align-self: center;
}
.beam-divider .beam-leg {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 22px solid var(--graphite-600);
}
.beam-divider .beam-leg.left { transform: rotate(-8deg) translateY(-2px); border-top-color: var(--graphite-600); }
.beam-divider .beam-leg.right { transform: rotate(8deg) translateY(-2px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 16px 30px;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s var(--ease);
  text-align: center;
}

@media (max-width: 480px) {
  .btn { font-size: 14px; padding: 14px 22px; text-wrap: balance; }
}

.btn-primary {
  background: var(--grad-orange);
  color: var(--black);
  box-shadow: 0 8px 24px -6px rgba(242, 129, 27, 0.55);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 30px -6px rgba(242, 129, 27, 0.7); }
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-ghost {
  border: 1.5px solid var(--graphite-600);
  color: var(--bone);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-light); }

.btn-sm { padding: 11px 20px; font-size: 13.5px; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 10px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13,13,14,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 0;
  border-bottom-color: rgba(255,255,255,0.07);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 104px; width: auto; transition: height 0.4s var(--ease); }
.site-header.scrolled .brand img { height: 76px; }

@media (max-width: 480px) {
  .brand img { height: 74px; }
  .site-header.scrolled .brand img { height: 58px; }
}

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--bone-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover { color: var(--bone); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--graphite-600);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--bone); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 340px);
    background: var(--graphite-900);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px var(--gutter);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    border-left: 1px solid var(--graphite-700);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 20px; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary.desktop-only { display: none; }
}

/* ---------- Sections / general ---------- */
section { position: relative; padding: clamp(70px, 11vw, 140px) 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }

.section-alt { background: var(--graphite-900); }

/* Light section — bone background, used to break up the dark palette and
   bring warmth/energy into the page. */
.section-light {
  background: var(--bone);
  color: #1a1917;
}
.section-light h1, .section-light h2, .section-light h3, .section-light h4 { color: #1a1917; }
.section-light p { color: #55524c; }
.section-light .eyebrow { color: var(--orange-deep); }
.section-light .eyebrow::before { background: var(--orange-deep); }
.section-light .grey-mute, .section-light .lede { color: #55524c; }
.section-light .address-item b { color: #1a1917; }
.section-light .address-item span { color: #55524c; }
.section-light .stat span { color: #6b675f; }
.section-light .stat-row { border-top-color: #e5e0d6; }
.section-light .map-embed { border-color: #e5e0d6; }
.section-light .quemsomos-body p { color: #55524c; }
.section-light .quemsomos-body strong { color: #1a1917; }

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242,129,27,0.12);
  border: 1px solid rgba(242,129,27,0.35);
  color: var(--orange-light);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }
.reveal-delay-4.in-view { transition-delay: 0.32s; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--graphite-700);
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand img { height: 58px; margin-bottom: 16px; }
.footer-brand p { max-width: 30ch; font-size: 14.5px; }
.footer-col h4 { font-size: 15px; margin-bottom: 18px; color: var(--bone); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { font-size: 14.5px; color: var(--bone-dim); }
.footer-col a:hover { color: var(--orange-light); }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--graphite-600);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, background 0.25s;
}
.social-row a:hover { border-color: var(--orange); background: rgba(242,129,27,0.1); }
.social-row svg { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid var(--graphite-700);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--grey-mute);
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -4px rgba(0,0,0,0.5);
  transition: transform 0.3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.stat-row { display: flex; gap: clamp(28px, 6vw, 64px); flex-wrap: wrap; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 52px);
  color: var(--orange-light);
  line-height: 1;
}
.stat span { font-size: 13.5px; color: var(--grey-mute); text-transform: uppercase; letter-spacing: 0.06em; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--orange); color: var(--black);
  padding: 12px 20px; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 16px; top: 16px; }
