/* Cleiton Serra — Layout moderno full-width */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: #0a0a0f;
  color: #f5f5f7;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #c9a22714, transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, #2563eb0d, transparent);
}

.gold { color: #c9a227; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #0a0a0ff2;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e1e2a;
}

.header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 1.25rem;
  flex-wrap: wrap;
}

.brand {
  display: flex; align-items: center; gap: 0.625rem;
  text-decoration: none; color: #f5f5f7;
  font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
}

.brand img { border-radius: 50%; object-fit: cover; }

.main-nav {
  display: flex; gap: 0.25rem; flex: 1; justify-content: center;
}

.main-nav a {
  padding: 0.5rem 0.875rem;
  color: #a0a0b0; text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover, .main-nav a.active {
  color: #c9a227; background: #c9a22714;
}

.header-actions {
  display: flex; align-items: center; gap: 0.5rem;
  flex-shrink: 0;
}

.search-form {
  display: flex; align-items: center;
  background: #12121a; border: 1px solid #2a2a3a;
  border-radius: 2rem; overflow: hidden;
}

.search-form input {
  background: transparent; border: none; color: #f5f5f7;
  padding: 0.4rem 0.75rem; font-size: 0.8125rem;
  width: 120px; outline: none;
}

.search-form button {
  background: none; border: none; cursor: pointer;
  padding: 0.4rem 0.6rem; font-size: 0.875rem;
}

.lang-select {
  background: #12121a; border: 1px solid #2a2a3a;
  color: #f5f5f7; border-radius: 0.5rem;
  padding: 0.4rem 0.5rem; font-size: 0.75rem;
  cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1.25rem; border-radius: 0.625rem;
  font-weight: 600; font-size: 0.875rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8125rem; }
.btn-gold { background: #c9a227; color: #0a0a0f; }
.btn-gold:hover { background: #dbb42e; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #c9a227; border: 1px solid #c9a22766; }
.btn-outline:hover { background: #c9a22714; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}

.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #f5f5f7; border-radius: 1px;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, #12121a40 0%, transparent 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 1.125rem; color: #a0a0b0;
  margin: 0 0 1.5rem; max-width: 32rem;
}

.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-visual {
  display: flex; justify-content: center;
}

.hero-avatar {
  width: min(280px, 80vw); height: min(280px, 80vw);
  border-radius: 50%; object-fit: cover;
  border: 3px solid #c9a22780;
  box-shadow: 0 0 60px #c9a22726;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: #12121a66;
  border-top: 1px solid #1e1e2a;
  border-bottom: 1px solid #1e1e2a;
}

.section-header {
  margin-bottom: 2rem;
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 1rem; flex-wrap: wrap;
}

.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

.section-header p {
  color: #a0a0b0; margin: 0.25rem 0 0;
  font-size: 0.9375rem;
}

/* Reflection */
.reflection-card {
  background: linear-gradient(135deg, #c9a2271a, #16161f);
  border: 1px solid #c9a22740;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.reflection-card .label {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: #c9a227;
  margin-bottom: 0.75rem;
}

.reflection-card blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin: 0; font-style: italic; line-height: 1.5;
}

/* Links grid */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem; border-radius: 1rem;
  border: 1px solid #2a2a3a99;
  text-decoration: none; color: inherit;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: #c9a22766;
  box-shadow: 0 12px 32px #0000004d;
}

.link-card .emoji { font-size: 2rem; }
.link-card strong { display: block; font-size: 0.9375rem; }
.link-card span { font-size: 0.8125rem; color: #6b6b7b; }

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #16161f;
  border: 1px solid #1e1e2a;
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}

.card:hover {
  border-color: #c9a2274d;
  transform: translateY(-3px);
}

.card-img {
  aspect-ratio: 16/9;
  background: #12121a;
  object-fit: cover; width: 100%;
}

.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.badge {
  display: inline-block; font-size: 0.6875rem;
  font-weight: 600; padding: 0.2rem 0.6rem;
  border-radius: 9999px; margin-bottom: 0.5rem;
  width: fit-content;
}

.badge-pregacao { background: #c9a2271a; color: #c9a227; }
.badge-artigo, .badge-motivacao { background: #3b82f61a; color: #60a5fa; }
.badge-curso { background: #a855f71a; color: #c084fc; }
.badge-produto { background: #22c55e1a; color: #4ade80; }
.badge-treinamento { background: #f973161a; color: #fb923c; }

.card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.card p { color: #a0a0b0; font-size: 0.875rem; margin: 0; flex: 1; }

.card-price {
  margin-top: 1rem; font-size: 1.25rem;
  font-weight: 700; color: #c9a227;
}

/* Videos */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.video-wrap {
  background: #16161f;
  border: 1px solid #1e1e2a;
  border-radius: 1rem;
  overflow: hidden;
}

.video-wrap iframe {
  width: 100%; aspect-ratio: 16/9;
  border: none; display: block;
}

.video-wrap h3 {
  padding: 1rem 1.25rem;
  margin: 0; font-size: 0.9375rem;
}

.video-instagram {
  padding: 1rem;
  min-height: 400px;
  display: flex; align-items: center; justify-content: center;
}

/* Page hero */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid #1e1e2a;
  margin-bottom: 2rem;
}

.page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.page-hero p { color: #a0a0b0; margin: 0; }

/* Contact form */
.form-grid {
  display: grid; gap: 1rem; max-width: 560px;
}

.form-grid label {
  display: flex; flex-direction: column; gap: 0.375rem;
  font-size: 0.8125rem; color: #a0a0b0;
}

.form-grid input, .form-grid textarea, .form-grid select {
  background: #12121a; border: 1px solid #2a2a3a;
  border-radius: 0.625rem; padding: 0.75rem 1rem;
  color: #f5f5f7; font-family: inherit; font-size: 0.9375rem;
}

.form-grid input:focus, .form-grid textarea:focus {
  outline: none; border-color: #c9a22780;
}

.alert {
  padding: 0.875rem 1rem; border-radius: 0.625rem;
  font-size: 0.875rem; margin-bottom: 1rem;
}

.alert-ok { background: #22c55e1a; color: #4ade80; border: 1px solid #22c55e40; }
.alert-err { background: #ef44441a; color: #f87171; border: 1px solid #ef444440; }

/* Footer */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid #1e1e2a;
  background: #08080c;
  padding: 3rem 1.25rem 1.5rem;
}

.footer-grid {
  max-width: 1200px; margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-brand img { border-radius: 50%; margin-bottom: 0.75rem; }
.footer-brand p { color: #6b6b7b; font-size: 0.875rem; margin: 0; }

.site-footer h4 {
  font-size: 0.8125rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: #c9a227;
  margin: 0 0 0.75rem;
}

.site-footer a {
  display: block; color: #a0a0b0;
  text-decoration: none; font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

.site-footer a:hover { color: #c9a227; }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 1.5rem; border-top: 1px solid #1e1e2a;
  text-align: center; font-size: 0.75rem; color: #6b6b7b;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 5.5rem; right: 1.25rem;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px #25d36666;
  z-index: 90; transition: transform 0.2s;
  text-decoration: none;
}

.whatsapp-float:hover { transform: scale(1.08); }

/* Chat */
.chat-fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem;
  width: 56px; height: 56px; border-radius: 50%;
  background: #c9a227; border: none; font-size: 1.5rem;
  cursor: pointer; z-index: 90;
  box-shadow: 0 4px 20px #c9a2274d;
  transition: transform 0.2s;
}

.chat-fab:hover { transform: scale(1.08); }

.chat-panel {
  position: fixed; bottom: 5rem; right: 1.25rem;
  width: min(360px, calc(100vw - 2rem));
  height: 420px; background: #16161f;
  border: 1px solid #2a2a3a; border-radius: 1rem;
  display: flex; flex-direction: column;
  z-index: 95; box-shadow: 0 16px 48px #00000080;
}

.chat-panel[hidden] { display: none !important; }

.chat-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.875rem 1rem; border-bottom: 1px solid #1e1e2a;
}

.chat-header button {
  background: none; border: none; color: #a0a0b0;
  cursor: pointer; font-size: 1rem;
}

.chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}

.chat-bubble {
  max-width: 85%; padding: 0.5rem 0.75rem;
  border-radius: 0.75rem; font-size: 0.8125rem;
  line-height: 1.4;
}

.chat-bubble.them { background: #12121a; align-self: flex-start; }
.chat-bubble.me { background: #c9a22726; align-self: flex-end; }

.chat-form {
  display: flex; gap: 0.5rem; padding: 0.75rem;
  border-top: 1px solid #1e1e2a;
}

.chat-form input {
  flex: 1; background: #12121a; border: 1px solid #2a2a3a;
  border-radius: 2rem; padding: 0.5rem 1rem;
  color: #f5f5f7; font-size: 0.875rem;
}

.chat-form button {
  background: #c9a227; border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer;
}

/* Admin / Portal */
.auth-page {
  min-height: 100vh; display: grid; place-items: center;
  padding: 1rem;
}

.auth-box {
  width: 100%; max-width: 400px;
  background: #16161f; border: 1px solid #2a2a3a;
  border-radius: 1rem; padding: 2rem;
}

.auth-box h1 { font-size: 1.25rem; margin: 0 0 1.5rem; text-align: center; }

.admin-layout {
  display: grid; grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #08080c; border-right: 1px solid #1e1e2a;
  padding: 1.5rem 1rem;
}

.admin-sidebar a {
  display: block; padding: 0.625rem 0.875rem;
  color: #a0a0b0; text-decoration: none;
  border-radius: 0.5rem; font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
  background: #c9a22714; color: #c9a227;
}

.admin-main { padding: 1.5rem; }

.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}

.stat-card {
  background: #16161f; border: 1px solid #1e1e2a;
  border-radius: 0.75rem; padding: 1.25rem;
}

.stat-card strong { display: block; font-size: 1.5rem; color: #c9a227; }
.stat-card span { font-size: 0.8125rem; color: #6b6b7b; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
}

th, td {
  padding: 0.75rem 1rem; text-align: left;
  border-bottom: 1px solid #1e1e2a;
}

th { color: #6b6b7b; font-weight: 500; font-size: 0.75rem; text-transform: uppercase; }

.empty-state {
  text-align: center; padding: 3rem 1rem;
  color: #6b6b7b;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-avatar { width: 180px; height: 180px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; margin-left: auto; }

  .main-nav {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; background: #0a0a0ff5;
    padding: 1rem; border-bottom: 1px solid #1e1e2a;
  }

  .main-nav.open { display: flex; }

  .header-actions {
    width: 100%; order: 3;
    justify-content: space-between;
  }

  .search-form input { width: 100%; min-width: 0; }
  .search-form { flex: 1; }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { border-right: none; border-bottom: 1px solid #1e1e2a; }
}

@media (max-width: 480px) {
  .whatsapp-float, .chat-fab { right: 1rem; }
  .chat-panel { right: 1rem; left: 1rem; width: auto; }
}
