/* =============================================
   WhatsApp Direto — Conexão de Valor
   style.css
   ============================================= */

/* ── Tokens ── */
:root {
  --green-dark:   #0F5032;
  --green-main:   #1A7A4A;
  --green-light:  #28A966;
  --green-pale:   #E8F4ED;
  --gold:         #C8A951;
  --orange:       #E36036;
  --text:         #1a1f1c;
  --text-muted:   #5a6b61;
  --surface:      #FFFFFF;
  --ground:       #F5F5F0;
  --border:       #D4E3DA;
  --shadow:       0 8px 32px rgba(15,80,50,0.10), 0 2px 8px rgba(15,80,50,0.06);
  --radius-card:  16px;
  --radius-input: 10px;
  --font-serif:   Georgia, 'Times New Roman', serif;
  --font-sans:    'DM Sans', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text:       #E8F0EB;
    --text-muted: #8aA094;
    --surface:    #152519;
    --ground:     #0D0D0D;
    --border:     #233d2c;
    --green-pale: #1a3025;
    --shadow:     0 8px 32px rgba(0,0,0,0.5);
    --orange:     #F07040;
  }
}

:root[data-theme="dark"] {
  --text:       #E8F0EB;
  --text-muted: #8aA094;
  --surface:    #152519;
  --ground:     #0D0D0D;
  --border:     #233d2c;
  --green-pale: #1a3025;
  --shadow:     0 8px 32px rgba(0,0,0,0.5);
  --orange:     #F07040;
}

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

/* ── Base ── */
body {
  font-family: var(--font-sans);
  background: var(--ground);
  color: var(--text);
  min-height: 100vh;
}

/* ── Page wrapper ── */
.page {
  max-width: 520px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-inline: 20px;
  padding-block: 48px;
}

/* ── Site header ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-inner {
  max-width: 960px;
  margin-inline: auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1;
}

.site-logo:hover { color: var(--green-main); }

.logo-dot {
  color: var(--orange);
}

.site-tagline {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  background: var(--green-dark);
  padding: 28px 32px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.wa-icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.card-header-text {
  padding-top: 2px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: normal;
  color: #FFFFFF;
  line-height: 1.25;
}

.card-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.62);
  margin-top: 5px;
  line-height: 1.45;
}

.gold-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 70%);
}

.card-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Form fields ── */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.phone-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.country-select {
  flex: 0 0 auto;
  padding: 11px 26px 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  background-color: var(--ground);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231A7A4A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.country-select:focus {
  outline: none;
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(26,122,74,0.15);
}

input[type="tel"] {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--ground);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="tel"]:focus {
  outline: none;
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(26,122,74,0.15);
}

input[type="tel"]::placeholder { color: var(--text-muted); opacity: 0.55; }

textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  background: var(--ground);
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

textarea:focus {
  outline: none;
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(26,122,74,0.15);
}

textarea::placeholder { color: var(--text-muted); opacity: 0.55; }

.field-error {
  font-size: 12.5px;
  color: #c0392b;
  display: none;
}

.field-error.show { display: block; }

input.invalid { border-color: #c0392b; }

/* ── Buttons ── */
.btn-group {
  display: flex;
  gap: 10px;
}

.btn-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--green-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-input);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn-primary:hover  { background: var(--green-light); }
.btn-primary:active { transform: scale(0.97); }

.btn-primary:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 2px;
}

.btn-secondary {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 16px;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-secondary:hover          { border-color: var(--green-main); color: var(--green-main); }
.btn-secondary.copied         { border-color: var(--green-light); color: var(--green-light); }
.btn-secondary:focus-visible  { outline: 2px solid var(--green-main); outline-offset: 2px; }

/* ── Info pills ── */
.info-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.info-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--green-pale);
  padding: 5px 10px;
  border-radius: 20px;
  line-height: 1.3;
}

.info-pill svg { flex-shrink: 0; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--green-dark);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Footer ── */
.page-footer { text-align: center; }

.footer-text {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.75;
}

.footer-text a {
  color: var(--green-main);
  text-decoration: none;
  font-weight: 500;
}

.footer-text a:hover { text-decoration: underline; }

/* ── SEO section ── */
.seo-section {
  max-width: 520px;
  margin-inline: auto;
  padding-inline: 20px;
  padding-bottom: 48px;
}

.seo-divider {
  height: 1px;
  background: var(--border);
  margin-block: 8px;
}

.seo-block {
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
}

.seo-block:last-child { border-bottom: none; }

.seo-h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: normal;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
}

.seo-h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-main);
  margin-bottom: 8px;
  margin-top: 18px;
}

.seo-h3:first-child { margin-top: 0; }

.seo-p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 60ch;
}

.seo-p + .seo-p { margin-top: 10px; }

.seo-faq { display: flex; flex-direction: column; gap: 16px; }

.faq-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.faq-a {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .page        { padding-block: 32px; }
  .card-header { padding: 22px 22px 20px; }
  .card-body   { padding: 22px 22px 26px; }
  .btn-group   { flex-direction: column; }
  .btn-secondary { justify-content: center; }
  .site-tagline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-secondary, .toast { transition: none; }
}
