/* =========================================================
   ESPORTE CLUBE BELA VISTA — Design System
   Fundado em 1979 — São José/SC
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600;700;800&display=swap');

:root{
  --preto: #0a0a0b;
  --preto-2: #131315;
  --preto-3: #1c1c1f;
  --amarelo: #f6c500;
  --amarelo-2: #ffdd55;
  --vermelho: #e2382b;
  --branco: #fbf8ef;
  --creme: #f2ecda;
  --cinza: #9a988f;
  --linha: rgba(251,248,239,0.12);

  --font-display: 'Anton', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --container: 1240px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior: smooth; }
}
body{
  margin:0;
  background: var(--preto);
  color: var(--branco);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; font-weight:400; }
p{ margin:0; }

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

/* --- grain texture overlay --- */
.grain{
  position: fixed;
  inset:0;
  pointer-events:none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* --- eyebrow label --- */
.eyebrow{
  font-family: var(--font-cond);
  font-weight:700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--amarelo);
  display:flex;
  align-items:center;
  gap: 12px;
}
.eyebrow::before{
  content:'';
  width: 28px;
  height: 3px;
  background: var(--vermelho);
  display:inline-block;
}

.section-title{
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--branco);
  margin: 14px 0 0;
}
.section-title em{
  font-style:normal;
  color: var(--amarelo);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: sticky;
  top:0;
  z-index: 500;
  background: rgba(10,10,11,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linha);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content: space-between;
  height: 84px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 14px;
}
.brand img{ height: 52px; width:auto; }
.brand-text{
  font-family: var(--font-cond);
  line-height: 1.05;
}
.brand-text .l1{
  font-weight:700;
  font-size: 12px;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color: var(--cinza);
}
.brand-text .l2{
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing:0.02em;
  color: var(--branco);
  text-transform: uppercase;
}

.main-nav{
  display:flex;
  align-items:center;
  gap: 34px;
}
.main-nav a{
  font-family: var(--font-cond);
  font-weight:600;
  font-size: 16px;
  letter-spacing:0.06em;
  text-transform: uppercase;
  color: var(--creme);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:-2px;
  height:3px;
  background: var(--amarelo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after{ transform: scaleX(1); }
.main-nav a.active{ color: var(--amarelo); }

.ig-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: var(--amarelo);
  color: var(--preto);
  font-family: var(--font-cond);
  font-weight:700;
  letter-spacing:0.05em;
  text-transform:uppercase;
  font-size:14px;
  padding: 11px 20px;
  border-radius: 3px;
  transition: transform .2s ease, background .2s ease;
}
.ig-btn:hover{ background: var(--amarelo-2); transform: translateY(-2px); }
.ig-btn svg{ width:16px; height:16px; }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  color: var(--branco);
  width: 40px; height:40px;
  cursor:pointer;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family: var(--font-cond);
  font-weight:700;
  font-size:16px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  padding: 15px 30px;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor:pointer;
  transition: all .22s ease;
}
.btn-primary{
  background: var(--amarelo);
  color: var(--preto);
}
.btn-primary:hover{ background: var(--amarelo-2); transform: translateY(-2px); }
.btn-ghost{
  border-color: rgba(251,248,239,0.4);
  color: var(--branco);
}
.btn-ghost:hover{ border-color: var(--amarelo); color: var(--amarelo); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  min-height: 92vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background: var(--preto);
}
.hero-bg{
  position:absolute;
  top:-12%; left:0; right:0;
  height:124%;
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
}
.hero-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.35) 0%, rgba(10,10,11,0.55) 45%, rgba(10,10,11,0.97) 96%),
    linear-gradient(90deg, rgba(10,10,11,0.75) 0%, rgba(10,10,11,0.1) 45%);
}
.hero-glow{
  position:absolute;
  top:-20%; left:50%;
  width:1400px; height:1400px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(246,197,0,0.16) 0%, rgba(246,197,0,0) 62%);
  pointer-events:none;
}
.hero-content{
  position:relative;
  z-index:2;
  padding: 60px 0 clamp(300px, 34vw, 420px);
  width:100%;
}
.hero-title-row{
  display:flex;
  align-items:flex-end;
  gap: clamp(18px, 3vw, 42px);
}
.hero-crest{
  flex: 0 0 auto;
  width: clamp(106px, 12.6vw, 207px);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.55));
}
.hero h1{
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 0.92;
  text-transform:uppercase;
  color: var(--branco);
  text-shadow: 0 6px 40px rgba(0,0,0,0.5);
}
.hero h1 .h1-top{
  font-size: clamp(2.17rem, 6.07vw, 5.49rem);
  color: var(--branco);
}
.hero h1 .h1-bottom{
  font-size: clamp(3rem, 8.4vw, 7.6rem);
  color: var(--amarelo);
}
.hero-sub{
  font-family: var(--font-cond);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--creme);
  max-width: 46ch;
  margin-top: 22px;
  letter-spacing: 0.01em;
}
.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top: 38px;
}

/* =========================================================
   SCOREBOARD STRIP
   ========================================================= */
.scoreboard{
  background: var(--amarelo);
  color: var(--preto);
  position: relative;
  z-index: 3;
}
.scoreboard .container{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
}
.score-item{
  padding: 26px 20px;
  text-align:center;
  border-left: 2px solid rgba(10,10,11,0.15);
}
.score-item:first-child{ border-left:none; }
.score-item .num{
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height:1;
}
.score-item .label{
  font-family: var(--font-cond);
  font-weight:600;
  letter-spacing:0.1em;
  text-transform:uppercase;
  font-size: 12.5px;
  margin-top: 6px;
  opacity: 0.78;
}

/* =========================================================
   SECTIONS
   ========================================================= */
section{ position: relative; }
.section-pad{ padding: 120px 0; }
.section-pad-sm{ padding: 80px 0; }

.diag-top{
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
}
.diag-bottom{
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
}

.bg-2{ background: var(--preto-2); }
.bg-creme{ background: var(--creme); color: var(--preto); }
.bg-creme .eyebrow{ color: var(--vermelho); }
.bg-creme .section-title{ color: var(--preto); }
.bg-creme .section-title em{ color: var(--vermelho); }

/* --- sobre / história teaser --- */
.about-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items:center;
  margin-top: 50px;
}
.about-photo{
  position: relative;
}
.about-photo img{
  width:100%;
  border-radius: 4px;
  filter: saturate(1.05) contrast(1.03);
}
.about-photo::before{
  content:'';
  position:absolute;
  top: -18px; left:-18px;
  width: 120px; height:120px;
  border-top: 5px solid var(--amarelo);
  border-left: 5px solid var(--amarelo);
}
.about-photo::after{
  content:'';
  position:absolute;
  bottom: -18px; right:-18px;
  width: 120px; height:120px;
  border-bottom: 5px solid var(--vermelho);
  border-right: 5px solid var(--vermelho);
}
.about-copy p{
  font-size: 1.08rem;
  color: var(--creme);
  margin-top: 22px;
}
.bg-creme .about-copy p{ color: #3a382f; }
.about-copy .lead{
  font-family: var(--font-cond);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--branco);
  margin-top:22px;
}
.bg-creme .about-copy .lead{ color: var(--preto); }

/* =========================================================
   TÍTULOS — cards
   ========================================================= */
.title-card{
  position:relative;
  overflow:hidden;
  border-radius: 4px;
  aspect-ratio: 4/5;
  background: var(--preto-3);
}
.title-card img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.title-card:hover img{ transform: scale(1.08); }
.title-card::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(10,10,11,0) 40%, rgba(10,10,11,0.92) 100%);
  z-index:1;
}
.title-card .tc-body{
  position:absolute; left:0; right:0; bottom:0;
  z-index:2;
  padding: 26px;
}
.title-card .tc-year{
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--amarelo);
  line-height:1;
}
.title-card .tc-name{
  font-family: var(--font-cond);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.04em;
  font-size: 15px;
  color: var(--creme);
  margin-top:6px;
}

/* =========================================================
   CONQUISTAS — carrossel movido pela posição do mouse na tela
   ========================================================= */
.titles-scroll{ padding: 90px 0 0; }
.ts-hint{
  font-family: var(--font-cond);
  font-size: 14.5px;
  letter-spacing: 0.03em;
  color: var(--cinza);
  margin-top: 18px;
}
.ts-hint-swipe{ display: none; }
.titles-scroll.ts-static .ts-hint-mouse{ display: none; }
.titles-scroll.ts-static .ts-hint-swipe{ display: block; }

.ts-viewport{
  margin-top: 40px;
  width: 100%;
  overflow: hidden;
}
.ts-track{
  display: flex;
  align-items: stretch;
  gap: 26px;
  padding: 0 28px;
  will-change: transform;
}
.ts-track .title-card{
  flex: 0 0 auto;
  width: min(72vw, 400px);
  aspect-ratio: 4/5;
}
.ts-progress{
  position: relative;
  height: 3px;
  margin: 34px 28px 0;
  background: var(--linha);
  overflow: hidden;
  border-radius: 2px;
}
.ts-progress-fill{
  position: absolute;
  left:0; top:0; bottom:0;
  width: 0%;
  background: var(--amarelo);
}

.tc-cta{
  display:flex;
  flex-direction: column;
  align-items:flex-start;
  justify-content:center;
  gap: 14px;
  background: var(--amarelo);
  color: var(--preto);
  padding: 40px;
  border-radius: 4px;
}
.tc-cta-star{ font-size: 2.2rem; line-height:1; color: var(--vermelho); }
.tc-cta-text{
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.05;
  text-transform: uppercase;
}
.tc-cta-arrow{
  font-family: var(--font-cond);
  font-size: 1.6rem;
  transition: transform .25s ease;
}
.tc-cta:hover .tc-cta-arrow{ transform: translateX(8px); }

/* fallback: linha horizontal com scroll nativo (telas pequenas / touch) */
.titles-scroll.ts-static .ts-viewport{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 10px;
}
.titles-scroll.ts-static .ts-track{
  transform: none !important;
  width: max-content;
}
.titles-scroll.ts-static .title-card{ scroll-snap-align: start; }
.titles-scroll.ts-static .ts-progress{ display:none; }

/* desktop: cards maiores, preenchendo mais a altura da seção */
@media (min-width: 981px){
  .titles-scroll{ padding-top: 60px; }
  .ts-viewport{ margin-top: 24px; }
  .ts-track .title-card{ width: auto; height: min(56vh, 520px); }
}

/* =========================================================
   INSTAGRAM CTA
   ========================================================= */
.ig-cta{
  background: repeating-linear-gradient(-45deg, var(--preto) 0 40px, var(--preto-2) 40px 80px);
  border-top: 6px solid var(--amarelo);
  border-bottom: 6px solid var(--amarelo);
  padding: 74px 0;
  text-align:center;
}
.ig-cta .eyebrow{ justify-content:center; }
.ig-cta h2{
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  text-transform:uppercase;
  margin-top: 14px;
}
.ig-cta .handle{
  font-family: var(--font-cond);
  font-size: 1.3rem;
  color: var(--amarelo);
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.ig-cta .btn{ margin-top: 30px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: var(--preto);
  border-top: 1px solid var(--linha);
  padding: 70px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom: 18px;
}
.footer-brand img{ height:48px; }
.footer-brand span{
  font-family: var(--font-display);
  font-size: 20px;
  text-transform:uppercase;
}
.footer-desc{ color: var(--cinza); font-size:14.5px; max-width: 34ch; }
.footer-col h4{
  font-family: var(--font-cond);
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-size:13px;
  color: var(--amarelo);
  margin-bottom: 18px;
}
.footer-col ul li{ margin-bottom: 11px; }
.footer-col a{
  color: var(--creme);
  font-size:14.5px;
  transition: color .2s ease;
}
.footer-col a:hover{ color: var(--amarelo); }
.footer-social{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color: var(--creme);
}
.footer-social svg{ width:18px; height:18px; color:var(--amarelo); }
.footer-bottom{
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--linha);
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--cinza);
  font-family: var(--font-cond);
  letter-spacing:0.03em;
}

/* =========================================================
   PAGE HEADER (inner pages)
   ========================================================= */
.page-hero{
  padding: 160px 0 80px;
  position: relative;
  background: var(--preto-2);
  overflow:hidden;
}
.page-hero::before{
  content:'';
  position:absolute;
  top:-30%; right:-10%;
  width:700px; height:700px;
  background: radial-gradient(circle, rgba(246,197,0,0.12) 0%, rgba(246,197,0,0) 65%);
}
.breadcrumb{
  font-family: var(--font-cond);
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-size: 13px;
  color: var(--cinza);
  margin-top: 18px;
}
.breadcrumb a{ color: var(--amarelo); }

/* =========================================================
   HISTÓRIA page
   ========================================================= */
.timeline{
  position:relative;
  margin-top: 60px;
  padding-left: 40px;
  border-left: 2px solid var(--linha);
}
.timeline-item{
  position:relative;
  padding-bottom: 54px;
}
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:'';
  position:absolute;
  left: -46px; top: 4px;
  width: 14px; height:14px;
  border-radius:50%;
  background: var(--amarelo);
  box-shadow: 0 0 0 5px var(--preto), 0 0 0 6px var(--linha);
}
.timeline-year{
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--amarelo);
}
.timeline-item p{
  color: var(--creme);
  margin-top:10px;
  max-width: 62ch;
  font-size: 1.02rem;
}

.story-copy{
  max-width: 780px;
  margin-top: 10px;
}
.story-copy p{
  color: var(--creme);
  font-size: 1.12rem;
  margin-top: 24px;
}
.story-copy p:first-of-type{
  font-family: var(--font-cond);
  font-size: 1.5rem;
  font-weight:500;
  color: var(--branco);
  line-height:1.5;
}
.pull-quote{
  font-family: var(--font-cond);
  font-size: 1.7rem;
  line-height:1.4;
  color: var(--amarelo);
  border-left: 4px solid var(--vermelho);
  padding-left: 26px;
  margin: 46px 0;
  max-width: 640px;
}

/* =========================================================
   TÍTULOS page — gallery
   ========================================================= */
.year-block{
  margin-top: 90px;
}
.year-block:first-child{ margin-top: 50px; }
.year-head{
  display:flex;
  align-items:baseline;
  gap: 22px;
  margin-bottom: 30px;
  flex-wrap:wrap;
}
.year-head .yh-year{
  font-family: var(--font-display);
  font-size: clamp(2.4rem,5vw,3.6rem);
  color: var(--amarelo);
  line-height:1;
}
.year-head .yh-title{
  font-family: var(--font-cond);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.05em;
  font-size: 1.15rem;
  color: var(--creme);
}
.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery a{
  display:block;
  overflow:hidden;
  border-radius:3px;
  aspect-ratio: 4/3;
  position:relative;
}
.gallery img{
  width:100%; height:100%;
  object-fit:cover;
  transition: transform .5s ease, filter .5s ease;
}
.gallery a:hover img{ transform: scale(1.06); filter: brightness(1.05); }
.gallery.single{ grid-template-columns: 1fr; }
.gallery.single a{ aspect-ratio: 16/8; }
.gallery.two{ grid-template-columns: repeat(2,1fr); }
.gallery.two a{ aspect-ratio: 4/3; }

/* =========================================================
   TRANSPARÊNCIA page
   ========================================================= */
.doc-intro{
  max-width: 760px;
  color: var(--creme);
  font-size: 1.08rem;
  margin-top: 24px;
}
.doc-section{ margin-top: 66px; }
.doc-section h3{
  font-family: var(--font-cond);
  text-transform:uppercase;
  letter-spacing:0.08em;
  font-size: 1.15rem;
  font-weight:700;
  color: var(--amarelo);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--linha);
  margin-bottom: 22px;
}
.doc-list{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.doc-card{
  display:flex;
  align-items:center;
  gap: 16px;
  background: var(--preto-2);
  border: 1px solid var(--linha);
  border-radius: 4px;
  padding: 18px 20px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.doc-card:hover{
  border-color: var(--amarelo);
  background: var(--preto-3);
  transform: translateX(4px);
}
.doc-ico{
  flex: 0 0 auto;
  width: 42px; height:42px;
  border-radius:3px;
  background: rgba(246,197,0,0.12);
  color: var(--amarelo);
  display:flex; align-items:center; justify-content:center;
}
.doc-ico svg{ width:20px; height:20px; }
.doc-name{
  font-family: var(--font-body);
  font-weight:600;
  font-size: 14.5px;
  color: var(--branco);
  line-height:1.35;
}
.doc-meta{
  font-family: var(--font-cond);
  font-size:12px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color: var(--cinza);
  margin-top:4px;
}
.doc-dl{
  margin-left:auto;
  flex: 0 0 auto;
  color: var(--cinza);
}
.doc-dl svg{ width:18px; height:18px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; align-items:center; justify-content:center; }
  .about-grid{ grid-template-columns:1fr; gap:40px; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .gallery{ grid-template-columns: repeat(2,1fr); }
  .doc-list{ grid-template-columns: 1fr; }
  .scoreboard .container{ grid-template-columns: repeat(2,1fr); }
  .score-item:nth-child(3){ border-left:none; }
}
@media (max-width: 600px){
  .gallery{ grid-template-columns: 1fr 1fr; }
  .hero h1{ max-width: none; }
  .hero-crest{ width: 90px; }
  .hero-actions{ display: none; }

  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-grid > *:first-child{ grid-column: 1 / -1; }
  .footer-grid > *:nth-child(4){ grid-column: 1 / -1; }
}

/* --- mobile nav drawer --- */
.mobile-nav{
  position: fixed;
  inset: 84px 0 0 0;
  background: var(--preto);
  z-index: 400;
  padding: 40px 28px;
  display:none;
  flex-direction:column;
  gap: 8px;
}
.mobile-nav.open{ display:flex; }
.mobile-nav a{
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform:uppercase;
  padding: 16px 0;
  border-bottom: 1px solid var(--linha);
  color: var(--branco);
}
.mobile-nav a.active{ color: var(--amarelo); }
.mobile-nav .ig-btn{ margin-top: 24px; align-self:flex-start; }

/* --- reveal on scroll --- */
.reveal{
  opacity:0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in{ opacity:1; transform:none; }
