/* ============================================================
   São Bernardo FC — Design System | Identidade Visual 2026
   Tigre do ABC · Premium Dark Sports
   ============================================================ */

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

/* ============================================================
   CSS Custom Properties — Identidade Oficial
   ============================================================ */
:root {
  /* ---- Paleta Oficial ---- */
  --yellow:        #F4C300;   /* Amarelo Tigre */
  --yellow-dark:   #D4A017;   /* Dourado Premium */
  --yellow-light:  #FFD740;
  --yellow-glow:   rgba(244, 195, 0, 0.30);
  --yellow-subtle: rgba(244, 195, 0, 0.08);

  --black:         #111111;   /* Preto Elite */
  --graphite:      #2C2C2C;   /* Grafite */
  --graphite-2:    #1E1E1E;
  --graphite-3:    #383838;
  --white:         #FFFFFF;

  /* ---- Tokens Semânticos — Dark (padrão) ---- */
  --bg-page:       #111111;
  --bg-alt:        #161616;
  --bg-section:    #1A1A1A;
  --bg-card:       rgba(44, 44, 44, 0.65);
  --bg-card-solid: #2C2C2C;
  --bg-nav:        rgba(10, 10, 10, 0.92);
  --text-1:        #FFFFFF;
  --text-2:        rgba(255, 255, 255, 0.72);
  --text-3:        rgba(255, 255, 255, 0.42);
  --border:        rgba(255, 255, 255, 0.07);
  --border-2:      rgba(255, 255, 255, 0.12);
  --border-yellow: rgba(244, 195, 0, 0.30);

  /* ---- Tokens Light ---- */
  --light-bg-page:       #F4F4F4;
  --light-bg-alt:        #ECECEC;
  --light-bg-section:    #FFFFFF;
  --light-bg-card:       rgba(255, 255, 255, 0.85);
  --light-bg-nav:        rgba(17, 17, 17, 0.96);
  --light-text-1:        #111111;
  --light-text-2:        #444444;
  --light-text-3:        #888888;
  --light-border:        rgba(0, 0, 0, 0.08);
  --light-border-2:      rgba(0, 0, 0, 0.14);

  /* ---- Tipografia ---- */
  --ff-head:   'Bebas Neue', 'Impact', sans-serif;
  --ff-sub:    'Oswald', sans-serif;
  --ff-body:   'Montserrat', sans-serif;

  --fs-xs:  0.75rem;
  --fs-sm:  0.875rem;
  --fs-md:  1rem;
  --fs-lg:  1.125rem;
  --fs-xl:  1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 4rem;
  --fs-hero: clamp(3.5rem, 9vw, 7.5rem);

  /* ---- Espaçamento ---- */
  --sp-1: .25rem;  --sp-2: .5rem;  --sp-3: .75rem;
  --sp-4: 1rem;    --sp-5: 1.25rem;--sp-6: 1.5rem;
  --sp-8: 2rem;    --sp-10: 2.5rem;--sp-12: 3rem;
  --sp-16: 4rem;   --sp-20: 5rem;  --sp-24: 6rem;
  --sp-32: 8rem;

  /* ---- Layout ---- */
  --w-max:        1280px;
  --w-narrow:     860px;
  --container-px: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h:        80px;
  --section-py:   clamp(4rem, 8vw, 7rem);

  /* ---- Raios ---- */
  --r-sm:  4px;  --r-md: 8px;   --r-lg: 14px;
  --r-xl: 20px;  --r-2xl:28px;  --r-full: 9999px;

  /* ---- Sombras ---- */
  --sh-sm:     0 2px  8px rgba(0,0,0,.35);
  --sh-md:     0 6px 20px rgba(0,0,0,.50);
  --sh-lg:     0 12px 40px rgba(0,0,0,.65);
  --sh-xl:     0 24px 64px rgba(0,0,0,.75);
  --sh-yellow: 0 6px 28px rgba(244,195,0,.40);
  --sh-glow:   0 0 40px rgba(244,195,0,.18);

  /* ---- Transições ---- */
  --t-fast:   150ms ease;
  --t-base:   300ms ease;
  --t-slow:   500ms ease;
  --t-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Z-index ---- */
  --z-base:     1;
  --z-drop:   100;
  --z-sticky: 200;
  --z-over:   300;
  --z-modal:  400;
  --z-loader: 600;
}

/* Light Mode */
[data-theme="light"] {
  --bg-page:    var(--light-bg-page);
  --bg-alt:     var(--light-bg-alt);
  --bg-section: var(--light-bg-section);
  --bg-card:    var(--light-bg-card);
  --bg-card-solid: #FFFFFF;
  --bg-nav:     var(--light-bg-nav);
  --text-1:     var(--light-text-1);
  --text-2:     var(--light-text-2);
  --text-3:     var(--light-text-3);
  --border:     var(--light-border);
  --border-2:   var(--light-border-2);
  --sh-sm:      0 2px  8px rgba(0,0,0,.08);
  --sh-md:      0 6px 20px rgba(0,0,0,.12);
  --sh-lg:      0 12px 40px rgba(0,0,0,.16);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text-1);
  background: var(--bg-page);
  overflow-x: hidden;
  transition: background-color var(--t-base), color var(--t-base);
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   Tipografia
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-1);
}
h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}
.container--narrow { max-width: var(--w-narrow); }

.section { padding-block: var(--section-py); }
.section--dark   { background: var(--graphite-2); }
.section--black  { background: #0C0C0C; }
.section--yellow { background: var(--yellow); color: var(--black); }
.section--alt    { background: var(--bg-section); }

/* Grid */
.grid { display: grid; gap: var(--sp-8); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto-280 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-auto-240 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-auto-200 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* Flex */
.flex { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* ============================================================
   Section Headers
   ============================================================ */
.section-header { margin-bottom: var(--sp-12); }
.section-header--center { text-align: center; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--yellow);
  background: var(--yellow-subtle);
  border: 1px solid var(--border-yellow);
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-3);
}

.section--yellow .section-label {
  color: var(--black);
  background: rgba(0,0,0,.1);
  border-color: rgba(0,0,0,.2);
}

.section-title {
  font-family: var(--ff-head);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
  margin-bottom: var(--sp-4);
}
.section-title span { color: var(--yellow); }
.section--yellow .section-title span { color: var(--black); opacity: .55; }

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.65;
  font-weight: 400;
}
.section-header--center .section-subtitle { margin-inline: auto; }

/* ============================================================
   Divider
   ============================================================ */
.divider {
  width: 52px; height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
  border-radius: var(--r-full);
  margin-block: var(--sp-4);
}
.divider--center { margin-inline: auto; }
.divider--lg { width: 80px; height: 5px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 13px 30px;
  border-radius: var(--r-full);
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
  z-index: -1;
}
.btn:hover::after { background: rgba(255,255,255,.08); }

.btn--primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: var(--sh-yellow);
}
.btn--primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(244,195,0,.55);
}

.btn--outline {
  border-color: var(--yellow);
  color: var(--yellow);
}
.btn--outline:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: var(--sh-yellow);
}

.btn--glass {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.15);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn--glass:hover {
  background: rgba(244,195,0,.12);
  border-color: var(--border-yellow);
  color: var(--yellow);
}

.btn--white {
  background: var(--white);
  color: var(--black);
}
.btn--white:hover {
  background: rgba(255,255,255,.9);
  transform: translateY(-2px);
}

.btn--lg  { padding: 17px 42px; font-size: var(--fs-sm); letter-spacing: .08em; }
.btn--sm  { padding:  9px 18px; font-size: 11px; }
.btn--icon{ width: 44px; height: 44px; padding: 0; border-radius: var(--r-full); }

/* ============================================================
   Badge
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  font-family: var(--ff-body);
}
.badge--yellow  { background: var(--yellow); color: var(--black); }
.badge--gold    { background: var(--yellow-dark); color: var(--black); }
.badge--black   { background: var(--black); color: var(--white); border: 1px solid var(--border-2); }
.badge--glass   { background: rgba(255,255,255,.08); color: var(--white); border: 1px solid var(--border-2); }
.badge--outline { border: 1.5px solid var(--yellow); color: var(--yellow); background: transparent; }
.badge--green   { background: #16a34a; color: #fff; }
.badge--red     { background: #dc2626; color: #fff; }
.badge--white   { background: rgba(255,255,255,.9); color: var(--black); }

/* ============================================================
   Glassmorphism Card Base
   ============================================================ */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.glass:hover {
  border-color: var(--border-yellow);
  box-shadow: var(--sh-lg), var(--sh-glow);
}

/* ============================================================
   Scroll Progress
   ============================================================ */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-light));
  z-index: calc(var(--z-loader) + 1);
  transition: width .1s linear;
}

/* ============================================================
   Back to Top
   ============================================================ */
#back-to-top {
  position: fixed; bottom: var(--sp-8); right: var(--sp-8);
  width: 48px; height: 48px;
  background: var(--yellow); color: var(--black);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--sh-yellow);
  transition: all var(--t-base);
  opacity: 0; pointer-events: none; z-index: var(--z-sticky);
  transform: translateY(14px);
}
#back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
#back-to-top:hover   { background: var(--yellow-dark); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(244,195,0,.6); }

/* ============================================================
   Page Loader
   ============================================================ */
#page-loader {
  position: fixed; inset: 0;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: var(--z-loader);
  transition: opacity .5s ease, visibility .5s ease;
}
#page-loader.loaded { opacity: 0; visibility: hidden; }

.loader-logo {
  width: 100px; height: 100px;
  object-fit: contain;
  animation: loaderPulse 1.3s ease-in-out infinite;
  margin-bottom: var(--sp-6);
  filter: drop-shadow(0 0 20px rgba(244,195,0,.4));
}
.loader-bar {
  width: 180px; height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: var(--r-full); overflow: hidden;
}
.loader-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-light));
  border-radius: var(--r-full);
  animation: loaderBar 1.5s ease-in-out infinite;
}
.loader-text {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--text-3);
  margin-top: var(--sp-4);
}

@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .75; transform: scale(.94); }
}
@keyframes loaderBar {
  0%   { width: 0%; margin-left: 0; }
  50%  { width: 65%; margin-left: 0; }
  100% { width: 0%;  margin-left: 100%; }
}

/* ============================================================
   Page Hero (inner pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + var(--sp-16));
  padding-bottom: var(--sp-20);
  background: var(--black);
  position: relative; overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .18; filter: grayscale(50%);
  transform: scale(1.06);
  transition: transform 8s ease;
}
.page-hero:hover .page-hero__bg { transform: scale(1); }
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(17,17,17,.94) 0%, rgba(17,17,17,.72) 60%, rgba(244,195,0,.04) 100%);
}
/* Diagonal accent */
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 70%, rgba(244,195,0,.04) 70%, rgba(244,195,0,.04) 72%, transparent 72%),
    linear-gradient(135deg, transparent 75%, rgba(244,195,0,.02) 75%, rgba(244,195,0,.02) 77%, transparent 77%);
  pointer-events: none;
}
.page-hero__content { position: relative; z-index: 2; }
.page-hero__title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  text-transform: uppercase; letter-spacing: .04em; line-height: 1;
  color: var(--white);
}
.page-hero__title span { color: var(--yellow); }
.page-hero__subtitle {
  font-size: var(--fs-lg); color: var(--text-2);
  margin-top: var(--sp-4); max-width: 500px;
}

.breadcrumb {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); color: var(--text-3);
  margin-bottom: var(--sp-6); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
}
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb__sep { opacity: .4; }

/* ============================================================
   Scroll Animations
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal-left  { opacity: 0; transform: translateX(-28px); transition: opacity .65s ease, transform .65s ease; }
.reveal-right { opacity: 0; transform: translateX(28px);  transition: opacity .65s ease, transform .65s ease; }
.reveal.in-view, .reveal-left.in-view, .reveal-right.in-view { opacity: 1; transform: none; }

.delay-100 { transition-delay: .10s; }
.delay-200 { transition-delay: .20s; }
.delay-300 { transition-delay: .30s; }
.delay-400 { transition-delay: .40s; }
.delay-500 { transition-delay: .50s; }
.delay-600 { transition-delay: .60s; }

/* ============================================================
   Decorative — Carbon Texture, Diagonal Lines
   ============================================================ */
.carbon-bg {
  background-color: var(--bg-section);
  background-image:
    repeating-linear-gradient(45deg,  rgba(0,0,0,.06) 0, rgba(0,0,0,.06) 1px, transparent 1px, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.06) 0, rgba(0,0,0,.06) 1px, transparent 1px, transparent 50%);
  background-size: 5px 5px;
}

.diagonal-stripe {
  position: relative;
  overflow: hidden;
}
.diagonal-stripe::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(
      -55deg,
      transparent, transparent 40px,
      rgba(244,195,0,.025) 40px, rgba(244,195,0,.025) 42px
    );
}

/* ============================================================
   Utilities
   ============================================================ */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-yellow  { color: var(--yellow); }
.text-gold    { color: var(--yellow-dark); }
.text-white   { color: var(--white); }
.text-muted   { color: var(--text-3); }
.text-sm      { font-size: var(--fs-sm); }
.text-lg      { font-size: var(--fs-lg); }
.font-head    { font-family: var(--ff-head); }
.font-sub     { font-family: var(--ff-sub); }
.uppercase    { text-transform: uppercase; }
.tracking     { letter-spacing: .08em; }
.hidden       { display: none !important; }
.relative     { position: relative; }
.overflow-h   { overflow: hidden; }
.mt-auto      { margin-top: auto; }
.w-full       { width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Yellow border-top accent */
.accent-top::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-dark), var(--yellow));
}
