/* Palácio Pet — estilos (mobile-first)
 * Cor primária oficial: #F4C7DF. Os tons --rose-ink e --blush são DERIVADOS
 * apenas para garantir contraste WCAG 2.2 AA; não são a paleta oficial.
 * [TODO: cor secundária e cor de acento — pendente de verificação]
 */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #f4c7df;        /* oficial */
  --bg: #fdfbfd;             /* oficial */
  --text: #1a1a1a;           /* oficial */
  --rose-ink: #8a2759;       /* derivado: 8.1:1 sobre --bg */
  --rose-line: #c25a92;      /* derivado: bordas, 3.9:1 */
  --blush: #fbeaf3;          /* derivado: fundos suaves */
  --muted: #5b5560;          /* 7:1 sobre --bg */
  --white: #ffffff;
  --warning-bg: #fff6db;
  --warning-line: #b07c00;
  --error: #b3261e;
  --error-bg: #fdecea;
  --success: #1e6b3a;
  --success-bg: #e8f5ec;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(138, 39, 89, 0.08);
  --container: 1120px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw + 1rem, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--text); color: var(--white); padding: .75rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 780px; }
.center { text-align: center; justify-content: center; }
.block { display: block; }
.small { font-size: .925rem; }
.muted { color: var(--muted); }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

/* Topbar */
.topbar { background: var(--text); color: var(--white); font-size: .875rem; padding: .5rem 0; text-align: center; }
.topbar a { color: var(--primary); font-weight: 700; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 253, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--blush);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.2rem; }
.brand-tag { font-size: .8rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--rose-line); background: var(--white); color: var(--text); cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle-open, .nav-toggle-close { display: inline-flex; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open,
.nav-toggle[aria-expanded="false"] .nav-toggle-close { display: none; }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--blush);
  padding: .5rem 1rem 1.25rem; box-shadow: var(--shadow);
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block; padding: .85rem .5rem; text-decoration: none; color: var(--text);
  font-weight: 700; border-bottom: 1px solid var(--blush);
}
.site-nav a[aria-current="page"] { color: var(--rose-ink); }
.site-nav a[aria-current="page"]::before { content: "• "; }
.nav-cta { margin-top: 1rem; }
.nav-cta .btn { width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important; align-items: center; gap: 1.25rem;
    position: static; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible;
  }
  .site-nav ul { display: flex; gap: .25rem; }
  .site-nav li a { border: 0; padding: .5rem .65rem; border-radius: 999px; font-size: .975rem; }
  .site-nav li a:hover { background: var(--blush); }
  .site-nav a[aria-current="page"] { background: var(--blush); }
  .site-nav a[aria-current="page"]::before { content: none; }
  .nav-cta { margin: 0; }
  .nav-cta .btn { width: auto; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px;
  font-weight: 800; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--primary); color: var(--text); border-color: var(--rose-line); }
.btn-primary:hover { background: #f0b6d4; }
.btn-secondary { background: var(--white); color: var(--rose-ink); border-color: var(--rose-ink); }
.btn-secondary:hover { background: var(--blush); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.link-button { background: none; border: 0; padding: 0; color: var(--rose-ink); text-decoration: underline; cursor: pointer; font: inherit; }
.text-link { font-weight: 700; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.cta-row:empty { display: none; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--blush) 0%, var(--bg) 100%); padding: 3rem 0 3.5rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--white); border: 1px solid var(--primary); border-radius: 999px;
  padding: .3rem .9rem; font-weight: 700; font-size: .9rem; color: var(--rose-ink);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 260px; }
.hero-blob {
  width: min(320px, 80vw); aspect-ratio: 1; border-radius: 46% 54% 52% 48% / 50% 45% 55% 50%;
  background: var(--primary); display: grid; place-items: center; box-shadow: var(--shadow);
}
.hero-blob img { width: 62%; border-radius: 50%; box-shadow: 0 0 0 10px rgba(255,255,255,.6); }
.paw { position: absolute; color: var(--rose-line); }
.paw .icon { width: 40px; height: 40px; }
.paw-1 { top: 4%; left: 12%; transform: rotate(-20deg); }
.paw-2 { bottom: 6%; right: 10%; transform: rotate(18deg); }
.paw-3 { top: 12%; right: 14%; }
@media (min-width: 860px) {
  .hero { padding: 5rem 0; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
}

.page-hero { background: linear-gradient(180deg, var(--blush), var(--bg)); padding: 3rem 0 2rem; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-soft { background: var(--blush); }
.section-title { text-align: center; margin-bottom: 1.75rem; }
.section-title.left { text-align: left; }

.card {
  background: var(--white); border: 1px solid #f1dbe7; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.steps, .grid-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); font-weight: 800; font-size: 1.2rem; margin-bottom: .75rem;
}
.notice-card { max-width: 760px; margin: 0 auto; border: 2px dashed var(--rose-line); }
.highlight-card { background: var(--primary); border-color: var(--rose-line); }
.highlight-card .btn-secondary { background: var(--white); }

.two-col { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.info-list, .check-list, .footer-list, .footer-links { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .85rem; padding: .85rem 0; border-bottom: 1px solid var(--blush); }
.info-list li > .icon { color: var(--rose-ink); margin-top: .2rem; }
.info-list strong { display: block; }
.check-list li { display: flex; gap: .6rem; margin-bottom: .65rem; }
.check-list .icon { color: var(--rose-ink); margin-top: .2rem; }

.pending {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--warning-bg); border: 1px solid var(--warning-line); color: #5c4100;
  border-radius: 999px; padding: .15rem .7rem; font-size: .9rem; font-weight: 700;
}

.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }

.placeholder-photo { margin: 0; }
.placeholder-inner {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 2px dashed var(--rose-line);
  background: repeating-linear-gradient(45deg, var(--blush), var(--blush) 14px, var(--white) 14px, var(--white) 28px);
  display: grid; place-items: center; align-content: center; gap: .5rem; color: var(--rose-ink); font-weight: 800;
}
.placeholder-inner .icon { width: 56px; height: 56px; }
.placeholder-photo figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* FAQ */
.faq { display: grid; gap: .85rem; }
.faq-item { background: var(--white); border: 1px solid #f1dbe7; border-radius: var(--radius-sm); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 800; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--rose-ink);
}
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 1.25rem 1rem; }

/* Forms */
.form-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .form-layout { grid-template-columns: 1.6fr 1fr; } }
.aside { display: grid; gap: 1.25rem; }
.lead-form fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.lead-form legend { font-weight: 800; font-size: 1.15rem; margin-bottom: .75rem; padding: 0; }
.lead-form .radio-group legend { font-size: 1rem; margin-bottom: .5rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label:not(.chip):not(.checkbox) { display: block; font-weight: 700; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .85rem; font: inherit; color: var(--text);
  background: var(--white); border: 2px solid #9b8e97; border-radius: var(--radius-sm);
}
textarea { resize: vertical; min-height: 110px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--rose-ink); outline: 3px solid var(--primary); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-hint { font-size: .9rem; color: var(--muted); margin: .35rem 0 0; }
.field-error { color: var(--error); font-size: .9rem; font-weight: 700; margin: .35rem 0 0; }
.field-error:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  border: 2px solid #9b8e97; border-radius: 999px; padding: .45rem .9rem; background: var(--white); font-weight: 600;
}
.chip:has(input:checked) { background: var(--primary); border-color: var(--rose-ink); }
.chip:has(input:focus-visible) { outline: 3px solid var(--text); outline-offset: 2px; }
.chip input { accent-color: var(--rose-ink); width: 18px; height: 18px; margin: 0; }
.checkbox { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; }
.checkbox input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--rose-ink); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius-sm); padding: .9rem 1rem; margin-bottom: 1.25rem; border: 2px solid; }
.alert-warning { background: var(--warning-bg); border-color: var(--warning-line); color: #3d2b00; }
.alert-error { background: var(--error-bg); border-color: var(--error); color: #5f1410; }
.alert-success { background: var(--success-bg); border-color: var(--success); color: #0f3d20; }
.alert ul { margin: .5rem 0 0; padding-left: 1.25rem; }

.form-status { margin: 1rem 0 0; font-weight: 700; }
.form-status:empty { display: none; }

.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid rgba(26,26,26,.25); border-top-color: var(--text); animation: spin .8s linear infinite;
}
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer { background: var(--text); color: #f3eef2; padding: 3rem 0 0; margin-top: 2rem; }
.site-footer a, .site-footer .link-button { color: var(--primary); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1.4fr 1fr; } }
.footer-logo { border-radius: 50%; margin-bottom: 1rem; }
.footer-title { font-size: 1.05rem; margin-bottom: 1rem; color: var(--white); }
.footer-list li { display: flex; gap: .6rem; margin-bottom: .75rem; }
.footer-list .icon { color: var(--primary); margin-top: .2rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-bottom { border-top: 1px solid #3a3a3a; margin-top: 2rem; padding: 1.25rem 1rem; font-size: .875rem; color: #d6ccd3; }
.footer-bottom p { margin: 0; }

/* Consent */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  max-width: 560px; margin-left: auto;
  background: var(--white); border: 2px solid var(--rose-line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.18);
}
.consent-inner { padding: 1.25rem; }
.consent-title { font-size: 1.15rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }

/* Result page (sem JS) */
.result { max-width: 640px; margin: 0 auto; }
