/* ============================================
   joaomoysescastro.com — Estilos Globais
   Paleta SJP: dark premium, ouro, mística-moderna
   ============================================ */

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

:root {
  --bg: #0a0a0f;
  --ink-2: #111118;
  --ink-3: #1a1a26;
  --gold: #c8a96e;
  --gold-dim: #9a7e4f;
  --gold-glow: rgba(200, 169, 110, 0.18);
  --ember: #e86c3a;
  --text: #e8e4dc;
  --text-dim: #9991a0;
  --text-faint: #4e4a58;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --radius-card: 12px;
  --radius-btn: 4px;
  --font-main: 'Nunito Sans', 'Nunito', sans-serif;
  --font-serif: 'Nunito Sans', 'Nunito', sans-serif;
  --font-mono: 'Nunito Sans', 'Nunito', sans-serif;
  --font-sans: 'Nunito Sans', 'Nunito', sans-serif;
  --max-w: 1140px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--text); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--text); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); color: var(--gold); }

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 8px;
}

.section-title { margin-bottom: 16px; }

.section-desc {
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg);
}
.btn-gold:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.btn-outline:hover {
  background: var(--gold-glow);
  color: var(--text);
  border-color: var(--gold);
}

.btn-ember {
  background: var(--ember);
  color: #fff;
}
.btn-ember:hover {
  background: #f07d4f;
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0.85) contrast(1.1);
}
.nav-logo span { color: var(--text); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--bg) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-btn) !important;
  font-size: 0.7rem !important;
}
.nav-cta:hover {
  background: var(--text) !important;
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, var(--gold-glow) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 24px; }
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Sections --- */
section { padding: 100px 0; }
section:nth-child(even) { background: var(--ink-2); }

.section-header { text-align: center; margin-bottom: 56px; }

/* --- Cards --- */
.card {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 { margin-bottom: 12px; }

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.card-link:hover { color: var(--text); }

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--gold-dim);
  opacity: 0.3;
  position: absolute;
  top: 12px;
  left: 20px;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

.testimonial-detail {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 4px;
}

/* --- Service Detail (individual pages) --- */
.service-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 20%, var(--gold-glow) 0%, transparent 50%);
  pointer-events: none;
}

.service-content {
  max-width: 760px;
  margin: 0 auto;
}

.service-content h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.service-content p,
.service-content li {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-content ul {
  list-style: none;
  padding-left: 0;
}

.service-content ul li::before {
  content: '\2726';
  color: var(--gold);
  margin-right: 10px;
}

.price-highlight {
  background: var(--ink-3);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-card);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

.price-highlight .price {
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 700;
}

.price-highlight .price-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* --- Vivencias --- */
.vivencia-card {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.vivencia-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--ink-3);
}

.vivencia-body {
  padding: 28px;
}

.vivencia-body h3 { margin-bottom: 12px; }

.vivencia-body p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-channels {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-channels li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-channels .channel-icon {
  width: 40px;
  height: 40px;
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-channels .channel-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-channels .channel-value {
  color: var(--text);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1rem;
  transition: border-color var(--transition);
}

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

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

/* --- Footer --- */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* --- Page Header (for inner pages) --- */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 20%, var(--gold-glow) 0%, transparent 50%);
  pointer-events: none;
}

/* --- Divider --- */
.gold-divider {
  width: 60px;
  height: 2px;
  background: var(--gold-dim);
  margin: 0 auto 24px;
}

/* --- Mentor / About Highlights --- */
.highlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.highlight-row.reverse { direction: rtl; }
.highlight-row.reverse > * { direction: ltr; }

.highlight-text h2 { margin-bottom: 16px; }
.highlight-text p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.highlight-visual {
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.6;
}

.highlight-visual img {
  max-height: 260px;
  width: auto;
  opacity: 0.8;
  filter: brightness(0.9);
  transition: opacity var(--transition);
}

.highlight-visual:hover img {
  opacity: 1;
}

/* --- Logo in hero --- */
.hero-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 28px;
  opacity: 0.7;
  filter: brightness(0.85);
}

/* --- Stats --- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 48px 0;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 8px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--ink-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 968px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .highlight-row { grid-template-columns: 1fr; gap: 32px; }
  .highlight-row.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--ink-2);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 20px;
    border-left: 1px solid var(--border);
    transition: right var(--transition);
    z-index: 999;
  }

  .nav-links.open { right: 0; }

  .nav-toggle { display: flex; z-index: 1001; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .stats-row { gap: 32px; }

  .hero { padding: 100px 24px 60px; }
}
