/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --gold:        #FFD700;
  --gold-dim:    #B8960C;
  --gold-glow:   rgba(255, 215, 0, 0.25);
  --bg:          #0A0A0A;
  --bg-card:     #111111;
  --bg-elevated: #1A1A1A;
  --border:      rgba(255, 215, 0, 0.12);
  --border-hover:rgba(255, 215, 0, 0.35);
  --text-primary:#F5F5F5;
  --text-muted:  #888888;
  --text-faint:  #444444;
  --error:       #FF5252;
  --success:     #69F0AE;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-gold: 0 0 40px rgba(255, 215, 0, 0.15);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.6);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============================================================
   UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

.text-gold { color: var(--gold); font-style: normal; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn .material-symbols-outlined { font-size: 20px; }

.btn-primary {
  background: var(--gold);
  color: #0A0A0A;
}
.btn-primary:hover {
  background: #FFE44D;
  box-shadow: 0 0 24px var(--gold-glow), 0 4px 16px rgba(255,215,0,0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255,215,0,0.05);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: #0A0A0A;
  box-shadow: var(--shadow-gold);
}

.btn-sm  { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg  { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ============================================================
   SECTION HEADERS
============================================================ */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
}

/* ============================================================
   HEADER / NAV
============================================================ */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-right: auto;
}
.logo-apex {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Lazy-load: imagem começa invisível, transiciona ao carregar */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: opacity;
}
.hero-bg-img.loaded { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.92) 0%,
    rgba(10,10,10,0.75) 50%,
    rgba(10,10,10,0.88) 100%
  );
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  background: rgba(255,215,0,0.05);
}
.hero-badge .material-symbols-outlined { font-size: 16px; }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-subheadline strong { color: var(--text-primary); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ============================================================
   DIFERENCIAIS
============================================================ */
.diferenciais {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--bg);
}

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

.diferencial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.diferencial-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255,215,0,0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.card-icon {
  font-size: 28px;
  color: var(--gold);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* Barra de Excelência */
.excellence-bar { margin-top: auto; }
.bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bar-label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.05em; }
.bar-value  { font-size: 0.75rem; color: var(--gold); font-weight: 600; }

.bar-track {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   PRICING
============================================================ */
.planos {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--bg-card);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { border-color: var(--border-hover); }

/* Plano em destaque */
.pricing-card--featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-gold);
  transform: scale(1.05);
  background: var(--bg-elevated);
  z-index: 1;
}
.pricing-card--featured:hover {
  box-shadow: 0 0 0 1px var(--gold), 0 0 60px rgba(255,215,0,0.25);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0A0A0A;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 16px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.plan-badge .material-symbols-outlined { font-size: 14px; }

.plan-header { margin-bottom: 1.75rem; }

.plan-tier {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 0.5rem;
}
.price-currency { font-size: 1.1rem; color: var(--text-muted); }
.price-amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.price-period { font-size: 0.9rem; color: var(--text-muted); }

.plan-tagline { font-size: 0.875rem; color: var(--text-muted); }

/* Benefícios */
.plan-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.benefit::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.benefit-yes {
  color: var(--text-primary);
}
.benefit-yes::before {
  background-color: rgba(105, 240, 174, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2369F0AE'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}
.benefit-no {
  color: var(--text-faint);
}
.benefit-no::before {
  background-color: rgba(255,255,255,0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23444'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
}

/* ============================================================
   AGENDAMENTO / FORMULÁRIO
============================================================ */
.agendamento {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--bg);
}

.agendamento-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .agendamento-inner { grid-template-columns: 1fr; }
}

.agendamento-copy .section-header { text-align: left; }
.agendamento-copy .section-title  { text-align: left; }
.agendamento-copy .section-subtitle { text-align: left; margin-inline: 0; margin-bottom: 2rem; }

.form-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.form-benefits-list .material-symbols-outlined {
  font-size: 20px;
  color: var(--gold);
}

/* Form Card */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.scheduling-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* MD3 Field */
.field-group { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.field-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  font-size: 20px;
  color: var(--text-faint);
  pointer-events: none;
  transition: color var(--transition);
}

.field-input {
  width: 100%;
  padding: 14px 14px 14px 46px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.field-input::placeholder { color: var(--text-faint); }
.field-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.field-input:focus + .field-icon,
.field-input-wrap:focus-within .field-icon { color: var(--gold); }

.field-input.is-invalid { border-color: var(--error); }
.field-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(255,82,82,0.2); }

/* Select */
.field-select-wrap .select-arrow {
  position: absolute;
  right: 14px;
  font-size: 20px;
  color: var(--text-faint);
  pointer-events: none;
}
.field-select { cursor: pointer; }
.field-select option { background: var(--bg-elevated); }

/* Horário chips */
.horario-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.horario-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.horario-chip span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.horario-chip span .material-symbols-outlined { font-size: 18px; }
.horario-chip:hover span {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.horario-chip input:checked + span {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255,215,0,0.08);
}
.horario-chip input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Erros */
.field-error {
  font-size: 0.78rem;
  color: var(--error);
  min-height: 1em;
}

/* Submit button states */
.btn-submit { position: relative; overflow: hidden; }
.btn-loading { display: none; align-items: center; gap: 8px; }
.btn-submit.loading .btn-text    { display: none; }
.btn-submit.loading .btn-loading { display: flex; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #0A0A0A;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.form-privacy .material-symbols-outlined { font-size: 14px; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-tagline { font-size: 0.8rem; color: var(--text-faint); margin-top: 4px; }
.footer-copy { font-size: 0.8rem; color: var(--text-faint); }

/* ============================================================
   MODAL
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.modal-overlay[hidden] { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-icon .material-symbols-outlined {
  font-size: 64px;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.modal-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.modal-desc strong { color: var(--text-primary); }

/* ============================================================
   SCROLL REVEAL (classe adicionada via JS)
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FOCUS VISIBLE (acessibilidade)
============================================================ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
