/* =====================================================================
   PetHub — Base: reset, tipografia, layout, botões, utilitários
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -.02em;
  line-height: 1.1;
}
h1 { font-size: clamp(38px, 5.6vw, 68px); letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 18px; }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius-pill); }
.skip-link:focus { top: 12px; }

/* ---- Layout ---- */
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.container-wide { width: min(var(--container-wide), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section-sm { padding-block: calc(var(--section-y) * .6); }
.bg-off { background: var(--bg-off-white); }
.bg-dark { background: var(--bg-dark); }
.bg-purple { background: var(--brand-purple); }
.bg-pink-soft { background: var(--brand-pink-soft); }
.rounded-section { border-radius: var(--radius-2xl); }
main { padding-top: var(--header-h); }
body.has-announce main { padding-top: calc(var(--header-h) + var(--announce-h)); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 18px; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.theme-dark .eyebrow { color: var(--brand-lime); }
.lead { font-size: clamp(17px, 1.4vw, 20px); }
.muted { color: var(--text-muted); }

/* Highlights de texto (padrão pethub.app.br) */
.hl { display: inline-block; padding: 0 .18em; border-radius: .18em; line-height: 1.05; }
.hl-pink { background: var(--brand-pink); color: #fff; }
.hl-lime { background: var(--brand-lime); color: var(--text-heading); }
.hl-purple { background: var(--brand-purple); color: #fff; }
.accent { color: var(--brand-pink); }
.accent-purple { color: var(--brand-purple); }

/* ---- Grid helpers ---- */
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Botões ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
  border: 2px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur), color var(--dur), border-color var(--dur);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--cta); color: var(--cta-ink); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-pink { background: var(--brand-pink); color: #fff; box-shadow: 0 12px 28px rgba(245, 90, 165, .3); }
.btn-lime { background: var(--brand-lime); color: var(--text-heading); }
.btn-dark { background: var(--bg-dark); color: #fff; }
.btn-white { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-outline { border-color: var(--border-strong); color: var(--text-heading); background: transparent; }
.btn-outline:hover { border-color: var(--brand-purple); color: var(--brand-purple); }
.theme-dark .btn-outline { border-color: rgba(255,255,255,.35); color: #fff; }
.theme-dark .btn-outline:hover { border-color: #fff; color: #fff; }
.btn-ghost { padding-inline: 12px; color: var(--text-heading); }
.btn-ghost:hover { color: var(--brand-purple); transform: none; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-group.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---- Ícones (sprite Lucide) ---- */
.icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 32px; height: 32px; }
.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--accent-soft); color: var(--accent);
}
.icon-box.pink { background: var(--brand-pink-soft); color: var(--brand-pink); }
.icon-box.lime { background: var(--brand-lime-soft); color: #5b7a00; }
.icon-box.dark { background: var(--bg-dark); color: #fff; }
.icon-box.round { border-radius: 50%; }

/* ---- Badges / chips / tags ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: var(--accent-soft); color: var(--accent);
}
.badge.pink { background: var(--brand-pink-soft); color: #c2317a; }
.badge.lime { background: var(--brand-lime-soft); color: #4e6b00; }
.badge.dark { background: var(--bg-dark); color: #fff; }
.badge.soon { background: var(--brand-pink); color: #fff; font-size: 10px; padding: 3px 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-light); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--text-heading);
  transition: all var(--dur);
}
.chip:hover, .chip.is-active { background: var(--bg-dark); border-color: var(--bg-dark); color: #fff; }
.pill-note {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--bg-dark); color: #fff; font-size: 13px; font-weight: 600;
}

/* ---- Cards ---- */
.card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: clamp(20px, 2.5vw, 32px);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 18px; font-size: 20px; }
.card p { margin-top: 10px; }
.card .link-arrow { margin-top: 18px; }
.card.dark { background: var(--bg-dark-card); border-color: transparent; }
.card.soft { background: var(--bg-off-white); border-color: transparent; }

/* ---- Listas com check ---- */
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-heading); font-weight: 500; }
.check-list .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.theme-dark .check-list .icon { color: var(--brand-lime); }

/* ---- Forms ---- */
.field { display: grid; gap: 6px; }
.form-body { display: grid; gap: 20px; }
.field label { font-size: 14px; font-weight: 700; color: var(--text-heading); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--border-light); border-radius: var(--radius-md);
  background: #fff; transition: border-color var(--dur), box-shadow var(--dur);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 13px; color: var(--text-muted); }

.custom-select { position: relative; user-select: none; }
.custom-select select { position: absolute; opacity: 0; pointer-events: none; width: 100%; height: 100%; bottom: 0; left: 0; z-index: -1; }
.custom-select__trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--border-light); border-radius: var(--radius-md);
  background: #fff; cursor: pointer; transition: border-color var(--dur), box-shadow var(--dur);
}
.custom-select.is-open .custom-select__trigger, .custom-select__trigger:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.custom-select__trigger svg { width: 18px; height: 18px; color: #666; transition: transform var(--dur); }
.custom-select.is-open .custom-select__trigger svg { transform: rotate(180deg); }
.custom-select__dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 10;
  background: #fff; border: 1.5px solid var(--border-light); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: all var(--dur) var(--ease); overflow: hidden;
}
.custom-select.is-open .custom-select__dropdown { opacity: 1; visibility: visible; transform: none; }
.custom-select__option { padding: 12px 16px; cursor: pointer; transition: background var(--dur); }
.custom-select__option:hover, .custom-select__option.is-selected { background: var(--surface-soft); color: var(--accent); }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Placeholder marker (remover na versão final) ---- */
.placeholder-note {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: #FFF3C4; color: #7a5b00; border: 1px dashed #e0b400;
}
