/* ============= Design tokens ============= */
:root {
  --bg: #0c1430;
  --bg-card: #161e3d;
  --bg-card-soft: #1a2347;
  --fg: #f5f1e8;
  --muted: #b8b3a8;
  --primary: #c9a84c;
  --primary-dark: #a8893a;
  --primary-fg: #0c1430;
  --border: #2a3458;
  --input-bg: #1a2347;
  --destructive: #e05656;
  --radius: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-primary: 0 10px 30px -10px rgba(201, 168, 76, 0.3);
}

/* ============= Reset ============= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border: 0 solid var(--border); }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.01em;
  font-weight: 600;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }

.accent { color: var(--primary); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
@media (max-width: 480px) { .nowrap { white-space: normal; } }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }

/* ============= Logo ============= */
.logo {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 20;
}
.logo img { height: 3rem; width: auto; }
@media (min-width: 640px) { .logo img { height: 3.5rem; } }

/* ============= Hero ============= */
.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom,
    rgba(12, 20, 48, 0.85),
    rgba(12, 20, 48, 0.7),
    rgba(12, 20, 48, 0.95));
}
.hero-content {
  max-width: 64rem;
  text-align: center;
}
.hero-content p {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}
.hero-content .btn-cta { margin-top: 2rem; }

/* ============= Buttons ============= */
.btn-cta {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-primary);
  transition: background-color 0.2s, transform 0.15s;
}
.btn-cta:hover { background: var(--primary-dark); }
.btn-cta:active { transform: translateY(1px); }
.btn-cta:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-submit { width: 100%; margin-top: 0.5rem; }
@media (min-width: 640px) {
  .btn-submit { width: auto; padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* ============= Sections ============= */
.section {
  padding: 5rem 1.5rem;
  border-top: 1px solid rgba(42, 52, 88, 0.5);
}
.section:first-of-type { border-top: 0; }
.section-card { background: rgba(22, 30, 61, 0.4); }

.grid-2 {
  display: grid;
  gap: 3rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-daisy { grid-template-columns: 1.3fr 1fr; }
  .order-1 { order: 1; }
  .order-2 { order: 2; }
}

.image-wrap {
  position: relative;
}
.image-glow {
  position: absolute;
  inset: -1rem;
  z-index: -1;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 1.5rem;
  filter: blur(40px);
}
.image-wrap img {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
}
.image-wrap .portrait {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-position: top;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
}
.bio { margin-top: 1.5rem; }
.bio p { color: var(--muted); margin-top: 1rem; }
.bio p:first-child { margin-top: 0; }

/* ============= Formulário ============= */
.form-wrap { max-width: 42rem; margin: 0 auto; }
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
@media (min-width: 640px) { .form-card { padding: 2rem; } }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.field input, .field textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 5rem; }
.field input:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(184, 179, 168, 0.5); }
.field .error {
  display: block;
  font-size: 0.8125rem;
  color: var(--destructive);
  margin-top: 0.25rem;
  min-height: 1.1em;
}

.grid-2-sm { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2-sm { grid-template-columns: 1fr 1fr; } }

/* ============= Vídeo ============= */
.video-wrap { max-width: 56rem; margin: 0 auto; }
.video-frame {
  margin: 2.5rem auto 0;
  max-width: 22rem;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* ============= CTA final ============= */
.final-cta { max-width: 48rem; margin: 0 auto; text-align: center; }

/* ============= Footer ============= */
footer {
  border-top: 1px solid rgba(42, 52, 88, 0.5);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ============= WhatsApp flutuante ============= */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #25D366;
  color: #fff;
  box-shadow: var(--shadow-xl);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 1.75rem; height: 1.75rem; }
@media (min-width: 640px) {
  .whatsapp-float { width: 4rem; height: 4rem; }
  .whatsapp-float svg { width: 2rem; height: 2rem; }
}

/* ============= Toast ============= */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  color: var(--fg);
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  min-width: 16rem;
  max-width: 22rem;
  animation: toast-in 0.3s ease-out;
  pointer-events: auto;
}
.toast.success { border-left-color: var(--primary); }
.toast.error { border-left-color: var(--destructive); }
.toast.leaving { animation: toast-out 0.3s ease-in forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}