/* =============================================================================
   PetLegacy — Landing pré-launch
   Paleta verde sóbria + dourado discreto. Tipografia mista (serif/sans).
   Mobile-first, responsivo até 320px, suporte a prefers-reduced-motion.
   ============================================================================= */

:root {
  --color-bg: #fafaf7;
  --color-bg-alt: #f1ede4;
  --color-bg-dark: #2a4f37;
  --color-text: #2b2a26;
  --color-muted: #6b6a63;
  --color-primary: #3b6b4a;
  --color-primary-dark: #2a4f37;
  --color-primary-soft: #ddebe1;
  --color-accent: #8a5a26;        /* bronze escuro (5.78:1 vs branco — passa AA) */
  --color-accent-dark: #6b4419;
  --color-border: #e3dfd4;
  --color-card: #ffffff;
  --color-success: #2d6a4f;
  --color-error: #c44536;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10);

  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --max-width: 1140px;
  --container-pad: clamp(20px, 5vw, 32px);

  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --duration: 0.18s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
*:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

/* Skip nav — acessibilidade: invisivel ate receber focus via Tab */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 8px;
  color: #fff;
  text-decoration: none;
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--color-primary-dark); }

strong { color: var(--color-primary-dark); }

/* =============================================================================
   Layout helpers
   ============================================================================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.container-narrow { max-width: 720px; margin: 0 auto; padding-left: var(--container-pad); padding-right: var(--container-pad); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* =============================================================================
   HEADER
   ============================================================================= */

.site-header {
  background: rgba(250, 250, 247, 0.92);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-primary-dark);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  text-decoration: none;
}
.brand:hover { color: var(--color-primary); text-decoration: none; }
/* Logo icon usado no <a class="brand"> do header. Mantemos width/height
   no HTML pra Lighthouse nao reclamar de CLS. 64px porque o icone tem
   composicao densa (DNA + arvore + dog/cat + paws + ring) que so fica
   legivel acima de ~56px. */
.brand-mark {
  width: 64px;
  height: 64px;
  display: block;
  flex-shrink: 0;
}
.footer-brand-mark {
  width: 44px;
  height: 44px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  text-decoration: none;
}
.nav a:hover { color: var(--color-primary); }
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.nav-cta:hover {
  background: var(--color-primary-dark);
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* =============================================================================
   HERO
   ============================================================================= */

.hero {
  padding: clamp(48px, 8vw, 96px) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
  }
}

.hero-badge {
  display: inline-block;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.hero-content .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-muted);
  margin-bottom: 28px;
  max-width: 620px;
}
.hero-content .lead strong { color: var(--color-text); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-disclaimer {
  font-size: 0.92rem;
  color: var(--color-muted);
  font-style: italic;
  max-width: 580px;
}
.hero-disclaimer strong { font-style: normal; color: var(--color-primary-dark); }

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 520px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-bg-alt) 100%);
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  line-height: 1.2;
  min-height: 48px; /* touch target */
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-ghost:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}
.btn-block { width: 100%; }
.btn-large { padding: 18px 36px; font-size: 1.1rem; }
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* =============================================================================
   TRUST BAR
   ============================================================================= */

.trust-bar {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 18px 0;
}
.trust-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  text-align: center;
}
@media (min-width: 720px) {
  .trust-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
.trust-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
}
.trust-item strong { color: #fff; }
.trust-icon { font-size: 1.2rem; }

/* =============================================================================
   SECTIONS
   ============================================================================= */

.section {
  padding: clamp(56px, 9vw, 96px) 0;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section h2 {
  margin-bottom: 16px;
}
.section-lead {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: var(--color-muted);
  max-width: 720px;
  margin-bottom: 48px;
}

/* =============================================================================
   GRID + CARDS
   ============================================================================= */

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 10px; }
.card p {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
}
.card-feature {
  border-left: 4px solid var(--color-primary);
}

/* =============================================================================
   COMPROMISSOS — layout 2-col (texto+cards | foto)
   ============================================================================= */

.compromissos-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 960px) {
  .compromissos-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }
}

.compromissos-text .grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.compromissos-image {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-bg-alt);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.compromissos-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 5;
}
.compromissos-image figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(42, 79, 55, 0) 0%, rgba(42, 79, 55, 0.88) 60%);
  color: #fff;
  padding: 40px 24px 22px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.45;
  text-align: center;
}

/* =============================================================================
   STEPS
   ============================================================================= */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  counter-reset: step;
}
.step {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: 10px; }
.step p {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
}

/* =============================================================================
   DEPOIMENTOS (placeholder)
   ============================================================================= */

.testimonials-placeholder {
  background: var(--color-card);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  color: var(--color-muted);
}
.testimonials-placeholder p { margin: 0; font-size: 1.05rem; }

/* =============================================================================
   FAQ — accordion nativo via <details>
   ============================================================================= */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: box-shadow var(--duration) var(--ease);
  overflow: hidden;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--color-primary-dark);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: background var(--duration) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform var(--duration) var(--ease);
  font-family: var(--font-sans);
}
.faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(0deg);
}
.faq-item summary:hover { background: var(--color-bg); }
.faq-item p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}
.faq-item p:first-of-type { padding-top: 4px; }

/* =============================================================================
   FORM
   ============================================================================= */

.section-form { background: var(--color-bg-alt); }

.form {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
  margin-top: 24px;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--color-text);
}
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  min-height: 48px;
}
.field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}
.field input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: var(--color-error);
}
.field-helper {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.field.checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.5;
  cursor: pointer;
}
.field.checkbox input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.form-disclaimer {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.82rem;
  color: var(--color-muted);
  text-align: center;
}

.form-error {
  background: #fff4f3;
  border: 1px solid var(--color-error);
  color: var(--color-error);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.form-success {
  background: var(--color-card);
  border: 2px solid var(--color-success);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  margin-top: 24px;
  animation: fadeInUp 0.4s var(--ease);
}
.form-success-icon {
  display: block;
  font-size: 3rem;
  margin-bottom: 12px;
}
.form-success h3 {
  color: var(--color-success);
  margin-bottom: 12px;
}
.form-success p {
  color: var(--color-muted);
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================================================
   CTA FINAL
   ============================================================================= */

.cta-final {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: clamp(64px, 10vw, 112px) 0;
  text-align: center;
}
.cta-final h2 {
  color: #fff;
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cta-final-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-final .btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
}
.cta-final .btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.site-footer {
  background: var(--color-primary-dark);
  color: #e8e6df;
  padding: 56px 0 36px;
}
.site-footer strong { color: #fff; }
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a:hover { color: var(--color-accent); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 2fr; gap: 56px; }
}
.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #c7c4ba;
}
.footer-contact a {
  font-size: 0.92rem;
}

/* Ícones de redes sociais no rodapé */
.footer-social {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-social li { margin: 0; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c7c4ba;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 8px 12px;
  border: 1px solid rgba(199, 196, 186, 0.25);
  border-radius: var(--radius-pill);
  transition: color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}
.footer-social a:hover {
  color: #fff;
  border-color: var(--color-accent);
  background: rgba(184, 135, 70, 0.08);
  text-decoration: none;
}
.footer-social svg {
  flex-shrink: 0;
}

.footer-terms p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #c7c4ba;
}
.copyright {
  margin-top: 18px !important;
  font-size: 0.82rem !important;
  /* Antes era #9b988e — contraste 3.6:1 no fundo verde escuro (falha AA).
     Trocado pra #c7c4ba (mesma cor de .footer-terms p) — 5.8:1. */
  color: #c7c4ba !important;
}

/* =============================================================================
   RESPONSIVE — refinamentos finos
   ============================================================================= */

@media (max-width: 480px) {
  .hero-badge { font-size: 0.78rem; }
  .hero-cta .btn { width: 100%; }
  .nav { gap: 16px; }
  .trust-bar { padding: 14px 0; }
  .trust-item { font-size: 0.88rem; }
  .card, .step { padding: 24px 22px; }
}

@media (min-width: 1200px) {
  body { font-size: 17px; }
}
