/* ==========================================================
   IMPÉRIO AZTECA FUTEBOL CLUBE
   Tokens: bg #0B0B0C · bg-alt #150F11 · maroon #6B1220
           gold #C9A227 · gold-light #E7C978 · cream #EFE7D8
   Display: Cinzel  ·  Body: Barlow  ·  Labels: Barlow Condensed
   ========================================================== */

:root{
  --bg:            #0B0B0C;
  --bg-alt:        #150F11;
  --maroon:        #6B1220;
  --maroon-deep:   #3A0A11;
  --gold:          #C9A227;
  --gold-light:    #E7C978;
  --gold-dim:      #6E5B24;
  --cream:         #EFE7D8;
  --muted:         #B7ACA0;
  --line:          rgba(201,162,39,0.28);

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body:    "Barlow", -apple-system, "Segoe UI", sans-serif;
  --font-label:   "Barlow Condensed", var(--font-body);

  --max: 1140px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

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

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  color: var(--gold-light);
  letter-spacing: 0.01em;
}

h2{ font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }

p{ margin: 0 0 1rem; }

.eyebrow{
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  margin: 0 0 0.8rem;
}
.eyebrow.light{ color: var(--gold-light); }
.center{ text-align: center; }

.section{ padding: 5.5rem 1.5rem; }
.section-inner{ max-width: var(--max); margin: 0 auto; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-gold{
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #1a1206;
}
.btn-gold:hover{ transform: translateY(-2px); }
.btn-outline{
  border-color: var(--gold-dim);
  color: var(--gold-light);
}
.btn-outline:hover{
  border-color: var(--gold);
  background: rgba(201,162,39,0.08);
}

/* ==========================================================
   HEADER / NAV
   ========================================================== */
.nav-toggle-input{ display: none; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,11,12,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-crest{
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-display);
}
.brand-text strong{
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}
.brand-text em{
  font-style: normal;
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav{
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.site-nav a{ color: var(--cream); opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.site-nav a:hover{ opacity: 1; color: var(--gold-light); }
.nav-cta{
  border: 1px solid var(--gold-dim);
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  color: var(--gold-light) !important;
  opacity: 1 !important;
}
.nav-cta:hover{ background: rgba(201,162,39,0.1); border-color: var(--gold); }

.nav-burger{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.nav-burger span{
  display: block;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero{
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(107,18,32,0.45), transparent 60%),
    var(--bg);
  text-align: center;
}

.hero-motif{
  position: absolute;
  top: -10%;
  left: 50%;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg,
      rgba(201,162,39,0.07) 0deg 9deg,
      transparent 9deg 18deg);
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 72%);
          mask-image: radial-gradient(circle, black 40%, transparent 72%);
  pointer-events: none;
}

.hero-inner{
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 4.5rem;
}

.hero-crest{
  width: clamp(120px, 18vw, 168px);
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.55));
}

.hero h1{
  display: flex;
  flex-direction: column;
  font-size: clamp(2.4rem, 1.7rem + 3.2vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 1.1rem;
}
.hero h1 span{
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.28em;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.6rem;
}

.hero-lede{
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2.2rem;
}

.hero-actions{
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-step{
  width: 100%;
  color: var(--bg-alt);
  line-height: 0;
}
.hero-step svg{ width: 100%; height: 44px; display: block; }
.hero-step svg path{ fill: currentColor; }

/* ==========================================================
   DIVIDER (stepped-pyramid motif, echoes the crest)
   ========================================================== */
.divider{ width: 100%; line-height: 0; color: var(--maroon-deep); }
.divider svg{ width: 100%; height: 26px; display: block; }
.divider svg path{ fill: currentColor; }

/* ==========================================================
   SOBRE
   ========================================================== */
.sobre{ background: var(--bg-alt); }

.two-col{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.two-col.reverse{ grid-template-columns: 0.85fr 1.15fr; }
.two-col.reverse .col-visual{ order: 1; }
.two-col.reverse .col-text{ order: 2; }

.col-text p{ color: var(--muted); }

.valores{
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.valores li{
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold-dim);
  color: var(--muted);
  font-size: 0.95rem;
}
.valores li span{
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.visual-frame{
  position: relative;
  aspect-ratio: 1;
  max-width: 340px;
  margin: 0 auto;
  padding: 2.4rem;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-frame.small{ max-width: 260px; }
.visual-frame::before{
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201,162,39,0.15);
  pointer-events: none;
}
.visual-frame img{ width: 100%; }

/* ==========================================================
   JOGOS
   ========================================================== */
.jogos{ background: var(--bg); }

.jogos-grid{
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.jogo-card{
  border: 1px solid var(--line);
  padding: 1.8rem 1.6rem;
  background: linear-gradient(180deg, rgba(107,18,32,0.12), transparent 60%);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.jogo-card:hover{ border-color: var(--gold-dim); transform: translateY(-3px); }

.jogo-competicao{
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.jogo-confronto{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 1.1rem;
}
.jogo-confronto .time{ flex: 1; }
.jogo-confronto .versus{ color: var(--gold); font-size: 0.85rem; }

.jogo-info{
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

/* ==========================================================
   NUMEROS
   ========================================================== */
.numeros{
  background: linear-gradient(180deg, var(--maroon-deep), var(--bg-alt));
}

.numeros-grid{
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.numero-item strong{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}
.numero-item span{
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================
   CONTATO
   ========================================================== */
.contato{ background: var(--bg-alt); }
.contato .col-text p{ color: var(--muted); }

.email-link{
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
  margin-bottom: 1.6rem;
}
.email-link:hover{ border-color: var(--gold); }

.contato-info{
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.contato-info li{
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold-dim);
  color: var(--muted);
  font-size: 0.95rem;
}
.contato-info li span{
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.social-row{
  display: flex;
  gap: 1.6rem;
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.social-row a{ color: var(--muted); transition: color 0.2s; }
.social-row a:hover{ color: var(--gold-light); }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer{
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
}
.footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-crest{ width: 30px; height: 30px; object-fit: contain; opacity: 0.85; }
.footer-inner p{
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px){
  .two-col, .two-col.reverse{
    grid-template-columns: 1fr;
    gap: 2.2rem;
    text-align: center;
  }
  .two-col.reverse .col-visual{ order: -1; }
  .valores, .contato-info{ text-align: left; max-width: 380px; margin-inline: auto; }
  .jogos-grid{ grid-template-columns: 1fr 1fr; }
  .numeros-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .nav-burger{ display: flex; }

  .site-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav a{
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--line);
    opacity: 1;
  }
  .nav-cta{ margin: 1rem 1.5rem; text-align: center; border-radius: 2px; }

  .nav-toggle-input:checked ~ .site-header .site-nav{
    max-height: 420px;
  }
  .nav-toggle-input:checked ~ .site-header .nav-burger span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle-input:checked ~ .site-header .nav-burger span:nth-child(2){ opacity: 0; }
  .nav-toggle-input:checked ~ .site-header .nav-burger span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }

  .section{ padding: 4rem 1.25rem; }
  .jogos-grid{ grid-template-columns: 1fr; }
  .numeros-grid{ grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .hero{ padding-top: 3rem; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; }
}

@media (max-width: 420px){
  .numeros-grid{ grid-template-columns: 1fr; }
  .brand-text em{ display: none; }
}

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