/* ==========================================================================
   Jhone Max Personal Trainer - Modern High-Converting CSS System
   CREF-GO 012712 | Presencial Morrinhos/GO & Online Brasil
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=Oswald:wght@500;600;700&display=swap');

:root {
  /* Brand Palette - Jhone Max Metallic Orange & Deep Onyx */
  --bg-main: #06080d;
  --bg-card: #0e131f;
  --bg-card-hover: #161e30;
  --bg-glass: rgba(14, 19, 31, 0.85);
  
  --color-primary: #f97316; /* Jhone Max Signature Metallic Orange */
  --color-primary-hover: #ea580c;
  --color-primary-glow: rgba(249, 115, 22, 0.35);
  
  --color-secondary: #84cc16; /* Electric Lime */
  --color-secondary-glow: rgba(132, 204, 22, 0.3);
  
  --color-text-main: #f9fafb;
  --color-text-muted: #9ca3af;
  --color-text-dim: #6b7280;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(249, 115, 22, 0.35);

  /* Fonts */
  --font-heading: 'Outfit', 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions & Shadows */
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-box: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
  --shadow-orange: 0 10px 25px -5px rgba(249, 115, 22, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap, .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.eyebrow.light {
  color: #fff;
}

.text-gold, .text-orange {
  color: var(--color-primary);
}

.text-lime {
  color: var(--color-secondary);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 2.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-primary {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(249, 115, 22, 0.6);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-whatsapp::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z'/%3E%3C/svg%3E") no-repeat center center / contain;
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(34, 197, 94, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-main);
  border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(249, 115, 22, 0.05);
}

.badge-cref {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 9999px;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 0;
  transition: var(--transition-fast);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(6, 8, 13, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav-logo-cref {
  font-size: 0.7rem;
  color: var(--color-primary);
  font-weight: 700;
  display: block;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-cta-btn {
  padding: 0.5rem 1.15rem !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  border-radius: 9999px !important;
  letter-spacing: 0.03em !important;
}

@media (max-width: 1200px) {
  .nav-links {
    gap: 0.75rem;
  }
  .nav-links a {
    font-size: 0.8rem;
  }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-main);
  font-size: 1.75rem;
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 9rem;
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(132, 204, 22, 0.06) 0%, transparent 50%);
}

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

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  margin: 1.25rem 0;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
}

.hero-mini span b {
  color: var(--color-secondary);
}

.hero-human-proof {
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 0.925rem;
  border-left: 3px solid var(--color-primary);
  padding-left: 1rem;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1.5px solid var(--border-gold);
}

.hero-image-wrapper img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hero-floating-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(14, 19, 31, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* AUTHORITY STRIP (4 BLOCKS) */
.authority {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.015);
  padding: 2rem 0;
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.authority-item {
  background: var(--bg-card);
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  text-align: center;
}

.authority-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.authority-item span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* MINI CTA CARD */
.mini-cta-card {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(14, 19, 31, 0.9) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 4rem auto;
}

.mini-cta-card span {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.mini-cta-card strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
}

/* STORY FLOW SECTION */
.story-section {
  padding: 5rem 0;
}

.story-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.story-card {
  background: var(--bg-card);
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  position: relative;
}

.story-card.problem {
  border-color: rgba(239, 68, 68, 0.3);
}

.story-card.solution {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.08) 0%, var(--bg-card) 100%);
}

.story-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-text-dim);
  opacity: 0.3;
}

.story-label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.story-label.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.story-label.success {
  background: rgba(132, 204, 22, 0.15);
  color: var(--color-secondary);
}

.story-arrow {
  font-size: 2.5rem;
  color: var(--color-primary);
}

/* OBJECTIVE BUILDER FORM SECTION */
.objective-builder-section {
  padding: 5rem 0;
  background: rgba(255, 255, 255, 0.01);
}

.objective-builder-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.objective-card {
  background: var(--bg-card);
  border-radius: 1.75rem;
  padding: 2.5rem;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-box);
}

.objective-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.objective-option {
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(6, 8, 13, 0.8);
  border: 1.5px solid var(--border-light);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.objective-option:hover, .objective-option.active {
  border-color: var(--color-primary);
  background: rgba(249, 115, 22, 0.12);
  color: var(--color-primary);
}

.objective-input, .objective-select {
  width: 100%;
  padding: 0.9rem 1.15rem;
  background: rgba(6, 8, 13, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.objective-submit {
  display: block;
  width: 100%;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

/* BEFORE & AFTER RESULTS TAB SWITCHER */
.before-after-tabs {
  background: var(--bg-card);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.ba-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ba-tab {
  flex: 1;
  padding: 0.6rem;
  border-radius: 0.5rem;
  background: rgba(6, 8, 13, 0.6);
  border: 1px solid var(--border-light);
  color: var(--color-text-muted);
  cursor: pointer;
  font-weight: 700;
}

.ba-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.ba-grid {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ba-grid.active {
  display: grid;
}

.ba-grid div {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
}

.ba-grid div span {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* DELIVERABLES & METHOD */
.deliverable-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.deliverable {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.deliverable:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
}

.deliverable i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.timeline-item {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-light);
  position: relative;
}

.timeline-item span {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.5rem;
}

/* SECTION PADDING & FOOTER */
.section {
  padding: 6rem 0;
}

.footer {
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem 0;
  background: #040609;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.float-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.5);
  z-index: 99;
  transition: var(--transition-fast);
}

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

@media (max-width: 992px) {
  .hero-grid, .objective-builder-grid, .mini-cta-card, .story-flow, .footer-grid {
    grid-template-columns: 1fr;
  }
  .story-arrow {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Mobile Desktop-Proportional Resolution & Density Optimization
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  html {
    font-size: 14.5px; /* Proporção ideal de leitura e densidade para celular */
  }
  .wrap {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  h1 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }
  /* Preserva o layout do aplicativo JhoneMaxPersonal idêntico ao desktop */
  #app-aluno .wrap {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .float-whatsapp {
    width: 52px;
    height: 52px;
    bottom: 1.25rem;
    right: 1.25rem;
  }
}
