/* ============================================================
   PRÁTICA BIOMED — Imersão Limpeza de Pele
   style.css — Mobile-first, breakpoints 640px / 960px
   ============================================================ */

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

/* ——— Design Tokens ——— */
:root {
  --bg-hero:       #2C1F0E;
  --bg-s2:         #1C1208;
  --gold:          #C9A84C;
  --gold-light:    #E2C97E;
  --gold-dim:      rgba(201, 168, 76, 0.08);
  --gold-border:   rgba(201, 168, 76, 0.22);
  --text-main:     #F0E6D3;
  --text-muted:    #B8A88A;
  --error:         #D97070;

  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'Outfit', system-ui, sans-serif;

  --max-w:         1180px;
  --px:            clamp(1.25rem, 5vw, 2.75rem);
  --radius:        10px;
}

/* ——— Base ——— */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ——— Animations ——— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes checkPop {
  0%   { opacity: 0; transform: scale(0.7); }
  70%  { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

/* ——— Decorative Circles (hero background) ——— */
.circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  pointer-events: none;
  z-index: 0;
}

.circle-1 {
  width: 520px; height: 520px;
  top: -140px; right: -100px;
  border-color: rgba(201, 168, 76, 0.10);
}
.circle-2 {
  width: 300px; height: 300px;
  top: 20px; right: 20px;
  border-color: rgba(201, 168, 76, 0.16);
}
.circle-3 {
  width: 760px; height: 760px;
  bottom: -280px; left: -260px;
  border-color: rgba(201, 168, 76, 0.06);
}
.circle-4 {
  width: 200px; height: 200px;
  top: 38%; left: 36%;
  border-color: rgba(201, 168, 76, 0.09);
}
.circle-5 {
  width: 110px; height: 110px;
  top: 22%; right: 28%;
  border-color: rgba(201, 168, 76, 0.13);
}

/* ══════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: clamp(3rem, 8vh, 5.5rem) var(--px) clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
  background: var(--bg-hero);
}

/* Subtle radial glow */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 72% 48%, rgba(201, 168, 76, 0.05) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* Logo */
.hero-logo { display: flex; }

.logo-wrapper {
  position: relative;
  display: inline-flex;
  height: clamp(96px, 16vw, 96px);
  width: clamp(96px, 16vw, 96px);
}

.logo-wrapper .logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: circle(47% at 50% 50%);
}

.logo-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: logoRingRotate 18s linear infinite;
}

@keyframes logoRingRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Hero Grid ── */
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    grid-template-rows: auto auto;
    column-gap: 3.5rem;
    row-gap: 2rem;
    align-items: start;
  }

  .hero-content-top    { grid-column: 1; grid-row: 1; }
  .hero-form-col       { grid-column: 2; grid-row: 1 / 3; }
  .hero-content-bottom { grid-column: 1; grid-row: 2; }
}

/* ── Hero Content (left) ── */
.hero-content-top {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  padding-top: 0.75rem;
}

.hero-content-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

/* Badge */
.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Hero title */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--text-main);
  font-style: normal;
}

.title-italic {
  display: block;
  font-style: italic;
  color: var(--gold-light);
  font-weight: 300;
}

/* Hero subtitle */
.hero-subtitle {
  margin-top: -350px;
  font-size: clamp(0.875rem, 1.6vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 54ch;
}

/* Hero byline */
.hero-byline {
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 0.25rem;
}



/* ══════════════════════════════════════════════
   FORM CARD (right column)
══════════════════════════════════════════════ */
.hero-form-col { width: 100%; }

@media (min-width: 960px) {
  .hero-form-col {
    position: sticky;
    top: 2rem;
  }
}

.form-card {
  background: rgba(20, 12, 4, 0.72);
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.125rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 8px  rgba(201, 168, 76, 0.35),
    0 0 28px rgba(201, 168, 76, 0.14),
    0 0 60px rgba(201, 168, 76, 0.06),
    inset 0 1px 0 rgba(226, 201, 126, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 8px 40px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.form-card:hover {
  border-color: rgba(226, 201, 126, 0.85);
  box-shadow:
    0 0 4px  rgba(226, 201, 126, 1),
    0 0 14px rgba(201, 168, 76, 0.85),
    0 0 40px rgba(201, 168, 76, 0.5),
    0 0 80px rgba(201, 168, 76, 0.22),
    0 0 130px rgba(201, 168, 76, 0.08),
    inset 0 1px 0 rgba(226, 201, 126, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 14px 50px rgba(0, 0, 0, 0.55);
}

/* Form card header */
.form-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.5);
  padding: 0.22rem 0.625rem;
  border-radius: 100px;
  margin-bottom: 0.875rem;
  box-shadow:
    0 0 6px  rgba(201, 168, 76, 0.3),
    0 0 16px rgba(201, 168, 76, 0.12);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.form-tag:hover {
  color: var(--gold-light);
  border-color: rgba(226, 201, 126, 0.9);
  box-shadow:
    0 0 5px  rgba(226, 201, 126, 1),
    0 0 14px rgba(201, 168, 76, 0.7),
    0 0 30px rgba(201, 168, 76, 0.35);
}

.form-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.form-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.375rem;
  line-height: 1.65;
}

/* ——— Field Groups ——— */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.875rem;
}

.field-group--hidden         { display: none !important; }
.field-group--hidden.visible {
  display: flex !important;
  animation: fadeUp 0.3s ease forwards;
}

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

.required { color: var(--gold); }

/* Shared input / select base */
.field-input,
.field-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  padding: 0.675rem 0.875rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field-input::placeholder { color: rgba(184, 168, 138, 0.38); }

.field-input:focus,
.field-select:focus {
  border-color: rgba(201, 168, 76, 0.7);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.field-input.has-error,
.field-select.has-error {
  border-color: rgba(217, 112, 112, 0.7);
  box-shadow: 0 0 0 3px rgba(217, 112, 112, 0.08);
}

/* Select arrow */
.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23B8A88A' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.field-select option {
  background: #1C1208;
  color: var(--text-main);
}

/* WhatsApp row */
.whatsapp-row {
  display: grid;
  grid-template-columns: minmax(108px, 136px) 1fr;
  gap: 0.5rem;
}

.ddd-select { font-size: 0.875rem; }
.whatsapp-input { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* Error text */
.field-error {
  font-size: 0.74rem;
  color: var(--error);
  min-height: 1rem;
  font-weight: 400;
}

/* ——— Submit Button ——— */
.btn-submit {
  width: 100%;
  background: var(--gold);
  color: #1A0F04;
  border: none;
  border-radius: var(--radius);
  padding: 0.9rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  margin-top: 0.375rem;
  letter-spacing: 0.01em;
  position: relative;
}

.btn-submit:hover:not(:disabled) {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.32);
}

.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.75; cursor: not-allowed; }

.btn-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit.is-loading .btn-text    { display: none; }
.btn-submit.is-loading .btn-loading { display: flex; }

.spinner {
  width: 17px; height: 17px;
  animation: spin 0.75s linear infinite;
}

/* Privacy note */
.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.73rem;
  color: var(--text-muted);
  opacity: 0.65;
  margin-top: 0.875rem;
  line-height: 1.55;
}

.form-privacy svg { flex-shrink: 0; margin-top: 1px; }

/* ——— Success State ——— */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
  padding: 2.5rem 1rem 1.5rem;
}

.success-icon {
  width: 68px; height: 68px;
  animation: checkPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.success-icon svg { width: 100%; height: 100%; }

.success-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--text-main);
}

.success-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 30ch;
}

/* ══════════════════════════════════════════════
   SECTION TWO — DOR + SOLUÇÃO
══════════════════════════════════════════════ */
.section-two {
  background: var(--bg-s2);
  padding: clamp(4rem, 10vh, 7rem) var(--px);
  position: relative;
}

/* Top gold hairline */
.section-two::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-border) 50%, transparent 100%);
}

.section-two-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Desktop: side by side with vertical divider */
@media (min-width: 960px) {
  .section-two-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
}

/* ——— Pain Section ——— */
.pain-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .pain-section {
    flex: 1;
    padding-right: 3.5rem;
  }
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.2;
}

/* Pain Grid */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .pain-grid { grid-template-columns: 1fr 1fr; }
}

.pain-card {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(201, 168, 76, 0.11);
  border-radius: var(--radius);
  padding: 1.125rem 1.125rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pain-card:hover {
  border-color: rgba(201, 168, 76, 0.24);
  background: rgba(255, 255, 255, 0.03);
}

.pain-icon {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1.5;
  flex-shrink: 0;
  font-style: normal;
}

.pain-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ——— Section Divider ——— */
.section-divider {
  /* Mobile: horizontal hairline */
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
  align-self: stretch;
}

@media (min-width: 960px) {
  .section-divider {
    /* Desktop: vertical hairline */
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent 0%, var(--gold-border) 40%, var(--gold-border) 60%, transparent 100%);
    flex-shrink: 0;
  }
}

/* ——— Solution Section ——— */
.solution-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .solution-section {
    flex: 1;
    padding-left: 3.5rem;
  }
}

.solution-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.22;
}

/* Differentials grid */
.differentials-grid {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
}

@media (min-width: 640px) {
  .differentials-grid {
    flex-direction: row;
    justify-content: center;
  }
}

.differential-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.625rem 1rem;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background: rgba(201, 168, 76, 0.03);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  max-width: 260px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .differential-card { max-width: none; margin: 0; }
}

.differential-card:hover {
  background: rgba(201, 168, 76, 0.07);
  border-color: rgba(201, 168, 76, 0.42);
  transform: translateY(-3px);
}

.differential-number {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 5.5vw, 3.75rem);
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
}

.differential-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.differential-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 22ch;
  margin-top: 0.2rem;
}

/* Solution CTA */
.solution-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.125rem;
  margin-top: 0.25rem;
}

.solution-cta-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 38ch;
}

/* Gold button (link) */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #1A0F04;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.875rem 2.125rem;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.32);
}

.btn-gold:active { transform: translateY(0); }

/* Section byline */
.section-byline {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.45;
  margin-top: 0.5rem;
}
