/* ==========================================================================
   CAPOEIRA CRETE – CORDÃO DE OURO (Modern Refresh Redesign)
   Warm Charcoal (#141816) | Cordão Gold (#D49B2A) | Brazilian Green (#156642)
   ========================================================================== */

:root {
  --dark: #141816;
  --dark-2: #1d2320;
  --light: #faf8f4;
  --light-2: #f1ede4;
  --surface: #ffffff;
  --ink: #191d1b;
  --muted: #525955;
  --border: rgba(25, 29, 27, 0.11);
  --gold: #d49b2a;
  --gold-dark: #b07c15;
  --green: #156642;
  --green-dark: #0f4c31;
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1200px;
  --radius: 8px;
  --header-h: 76px;
  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--light);
  line-height: 1.68; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
p { margin: 0 0 1.1rem; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2rem, 860px); margin-inline: auto; }
.section { padding: clamp(3.5rem, 6.5vw, 5.5rem) 0; }
.section-alt { background: var(--light-2); }
.section-dark { background: var(--dark); color: #f8f6f0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 0.8rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }

.lead { font-size: clamp(1.02rem, 1.35vw, 1.16rem); color: var(--muted); line-height: 1.72; }
.section-dark .lead, .hero .lead, .page-hero .lead { color: #cfd6d2; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.55rem; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: all var(--transition);
}
.btn-primary { background: var(--gold); color: #141816 !important; }
.btn-primary:hover { background: #e3ac3c; transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff !important; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: #fff; color: var(--dark) !important; }
.btn-outline-dark { background: transparent; color: var(--ink) !important; border-color: rgba(25,29,27,0.3); }
.btn-outline-dark:hover { background: var(--dark); color: #fff !important; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 1000;
  background: rgba(20, 24, 22, 0.93); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: #fff !important; font-family: var(--font-display); }
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-main { font-size: 1.12rem; font-weight: 800; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.7rem; font-weight: 600; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

.main-nav { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.15rem; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.75rem; font-size: 0.88rem; font-weight: 600; color: #eceae4 !important; border-radius: 6px; }
.nav-link:hover, .nav-link.active { color: var(--gold) !important; background: rgba(255,255,255,0.06); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 0.4rem 0;
  list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all var(--transition); box-shadow: 0 18px 36px rgba(0,0,0,0.4);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 0.55rem 1rem; font-size: 0.86rem; color: #eceae4; }
.dropdown a:hover { background: rgba(212,155,42,0.14); color: var(--gold); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: transparent; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--dark);
  padding: 1.5rem; overflow-y: auto; transform: translateX(100%); transition: transform var(--transition); z-index: 999;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 0.8rem 0; color: #f8f6f0; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav .sub { padding-left: 1rem; font-size: 0.9rem; color: #c4ccc8; }

@media (min-width: 1024px) { .main-nav { display: block; } .nav-toggle, .mobile-nav { display: none; } }

/* Hero */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 3.5rem) 0 4.5rem; background: var(--dark); color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: brightness(0.48); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,22,0.4) 0%, rgba(20,24,22,0.9) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* Internal Page Hero */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 3.25rem) 0 3rem;
  background: var(--dark); color: #fff; border-bottom: 3px solid var(--gold); overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; opacity: 0.24; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .container { position: relative; z-index: 1; }

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,24,22,0.08); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 0.45rem; }

/* Belt Row */
.belt-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; display: flex; align-items: center; gap: 1.25rem;
}
.belt-card img { width: 96px; height: auto; flex-shrink: 0; border-radius: 4px; }

/* Teacher Profile */
.teacher-wrap { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 820px) { .teacher-wrap { grid-template-columns: 340px 1fr; } }
.teacher-photo { border-radius: var(--radius); overflow: hidden; border: 3px solid var(--gold); }
.teacher-photo img { width: 100%; object-fit: cover; }

/* Gallery & Lightbox */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-btn {
  padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 600; background: #fff; color: var(--ink);
  border: 1px solid var(--border); border-radius: 6px; cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--dark); color: var(--gold); border-color: var(--dark); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.gallery-item {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  border: 0; padding: 0; cursor: pointer; background: var(--dark-2);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 380ms ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cap {
  position: absolute; inset: auto 0 0 0; padding: 1.25rem 0.9rem 0.7rem;
  background: linear-gradient(transparent, rgba(20,24,22,0.88)); color: #fff; font-size: 0.83rem; text-align: left;
}

.lightbox {
  position: fixed; inset: 0; background: rgba(14,17,15,0.94); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; max-width: 92vw; border-radius: 6px; }
.lb-close, .lb-prev, .lb-next {
  position: fixed; background: rgba(255,255,255,0.14); color: #fff; border: 0;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
}
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* FAQ Accordion */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
  width: 100%; text-align: left; background: transparent; border: 0; padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); cursor: pointer;
}
.faq-panel { display: none; padding-bottom: 1.25rem; color: var(--muted); }
.faq-item.open .faq-panel { display: block; }

/* Forms */
.input, .textarea, .select {
  width: 100%; padding: 0.8rem 1rem; font-family: var(--font-sans); font-size: 0.95rem;
  border: 1px solid #d1d5d2; border-radius: 6px; background: #fff;
}
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 0.4rem; }
.alert { padding: 1rem 1.2rem; border-radius: 6px; margin-bottom: 1.2rem; font-weight: 500; }
.alert-ok { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.alert-err { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }

/* Footer */
.site-footer { background: var(--dark); color: #b7c0bb; padding: 4rem 0 2rem; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.footer-title { color: #fff; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.footer-links a { color: #cfd6d2; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: 0.84rem; }
