/* ===== FGKKO - Federação Gaúcha de Karate Kyokushin ===== */

:root {
  --preto: #0a0a0a;
  --vermelho: #c41e1e;
  --vermelho-escuro: #9b1818;
  --verde: #1a8c3c;
  --amarelo: #e8c825;
  --branco: #ffffff;
  --cinza-claro: #f5f5f5;
  --cinza: #888;
  --cinza-escuro: #222;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--cinza-escuro);
  line-height: 1.6;
  background: var(--branco);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s;
  background: transparent;
}

.header.scrolled {
  background: rgba(10,10,10,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--branco);
}

.logo img {
  height: 56px;
  width: auto;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--branco);
}

.logo-text span { color: var(--vermelho); }

.nav-desktop { display: flex; align-items: center; gap: .25rem; }

.nav-desktop a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem 1rem;
  border-radius: 8px;
  transition: color .2s, background .2s;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.nav-desktop a:hover { color: var(--branco); background: rgba(255,255,255,.1); }

.nav-cta {
  background: var(--vermelho) !important;
  color: var(--branco) !important;
  padding: .625rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background .2s !important;
}

.nav-cta:hover { background: var(--vermelho-escuro) !important; }

/* Mobile menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--branco);
  margin: 6px 0;
  transition: transform .3s, opacity .3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  background: var(--preto);
  z-index: 200;
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform .3s ease;
}

.mobile-menu.open { transform: translateX(0); }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 190;
}
.mobile-overlay.open { display: block; }

.mobile-menu a {
  display: block;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-menu a:hover { color: var(--vermelho); }

.mobile-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: var(--branco);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--preto);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(196,30,30,.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(26,140,60,.1) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}

.hero-logo {
  width: 200px;
  height: auto;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 40px rgba(196,30,30,.3);
  animation: fadeInDown .8s ease;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--branco);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: .5rem;
  animation: fadeInUp .8s ease .2s both;
}

.hero h1 span { color: var(--vermelho); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 2.5rem;
  animation: fadeInUp .8s ease .4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp .8s ease .6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: none;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--vermelho);
  color: var(--branco);
  box-shadow: 0 4px 20px rgba(196,30,30,.4);
}
.btn-primary:hover { background: var(--vermelho-escuro); }

.btn-outline {
  background: transparent;
  color: var(--branco);
  border: 2px solid rgba(255,255,255,.3);
}
.btn-outline:hover { border-color: var(--branco); background: rgba(255,255,255,.05); }

/* RS flag stripe */
.hero-stripe {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--verde) 33%, var(--vermelho) 33% 66%, var(--amarelo) 66%);
}

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 1.5rem;
}

.section-dark { background: var(--preto); color: var(--branco); }
.section-gray { background: var(--cinza-claro); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--vermelho);
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--cinza);
  max-width: 600px;
  margin-bottom: 3rem;
}

.section-center { text-align: center; }
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,.7);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--vermelho);
}

.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-top: .25rem;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 320px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(196,30,30,.2);
}

/* ===== KYOKUSHIN ===== */
.kyokushin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.kyokushin-card {
  background: var(--branco);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}

.kyokushin-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
}

.kyokushin-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--vermelho), var(--vermelho-escuro));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
}

.kyokushin-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .75rem;
}

.kyokushin-card p {
  font-size: .9rem;
  color: var(--cinza);
  line-height: 1.7;
}

/* ===== VALUES ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .3s;
}

.value-card:hover { border-color: var(--vermelho); }

.value-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .5rem;
  color: var(--branco);
}

.value-card p {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}

/* ===== EVENTS ===== */
.events-list {
  display: grid;
  gap: 1.5rem;
}

.event-card {
  display: flex;
  gap: 1.5rem;
  background: var(--branco);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .2s;
}

.event-card:hover { transform: translateX(4px); }

.event-date {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--vermelho);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--branco);
}

.event-date .day {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .8;
}

.event-info h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: .25rem;
}

.event-info .event-meta {
  font-size: .85rem;
  color: var(--cinza);
  margin-bottom: .5rem;
}

.event-info p {
  font-size: .9rem;
  color: #555;
  line-height: 1.6;
}

.event-badge {
  display: inline-block;
  background: rgba(196,30,30,.1);
  color: var(--vermelho);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .25rem .75rem;
  border-radius: 6px;
  margin-bottom: .5rem;
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--vermelho-escuro), var(--vermelho));
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,.05)" stroke-width="1"/><circle cx="50" cy="50" r="25" fill="none" stroke="rgba(255,255,255,.05)" stroke-width="1"/></svg>') center/300px repeat;
}

.cta-section .section-inner { position: relative; z-index: 1; }

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--branco);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,.7);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.btn-white {
  background: var(--branco);
  color: var(--vermelho);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn-white:hover { background: var(--cinza-claro); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-list {
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(196,30,30,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .25rem;
}

.contact-info-item p, .contact-info-item a {
  font-size: .9rem;
  color: var(--cinza);
  text-decoration: none;
}

.contact-info-item a:hover { color: var(--vermelho); }

.contact-form { display: grid; gap: 1rem; }

.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .375rem;
  color: var(--cinza-escuro);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .875rem 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color .2s;
  background: var(--branco);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--vermelho);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--preto);
  color: rgba(255,255,255,.5);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.footer-logo img { height: 40px; border-radius: 6px; }

.footer-logo span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--branco);
  letter-spacing: 2px;
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}

.footer-links a:hover { color: var(--branco); }

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: .8rem;
}

.footer-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--verde) 33%, var(--vermelho) 33% 66%, var(--amarelo) 66%);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .kyokushin-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: block; }
  .mobile-menu { display: block; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image { order: -1; }
  .about-image img { width: 200px; }

  .kyokushin-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .event-card { flex-direction: column; }

  .hero-logo { width: 150px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: 1fr; }
}
