/* ============================================
   CLINICAL VET — Design System v2
   Teal + Caramel + Paper · Fredoka + Nunito + Caveat
   ============================================ */

:root {
  /* ── TEAL (cor primária) ── */
  --teal-50:  #EAF7F6;
  --teal-100: #C8EAE8;
  --teal-200: #9DDAD7;
  --teal-300: #7DD3CF;
  --teal-400: #5BC4BF;
  --teal-500: #3FB8AF;   /* ★ PRINCIPAL */
  --teal-600: #2FA29A;
  --teal-700: #258A83;
  --teal-800: #1C6E69;
  --teal-900: #134D4A;

  /* ── CARAMELO (cor secundária) ── */
  --caramel-50:  #FBF3EC;
  --caramel-100: #F1DCC7;
  --caramel-200: #E5C09F;
  --caramel-300: #D89968;
  --caramel-400: #C68654;
  --caramel-500: #B8754A;
  --caramel-600: #9F5F38;
  --caramel-700: #804A29;
  --caramel-800: #5F371E;

  /* ── NEUTROS ── */
  --white:    #FFFFFF;
  --paper:    #FAF8F5;
  --line:     #E8E8E8;
  --muted:    #6E6E6E;
  --ink-soft: #3A3A3A;
  --ink:      #1A1A1A;

  /* ── SEMÂNTICAS ── */
  --success: #4CAF7E;
  --warning: #E0A458;
  --danger:  #D9534F;

  /* ── ALIASES p/ compatibilidade c/ componentes antigos ── */
  --cream-50:  var(--paper);
  --cream-100: #F4EFE6;
  --cream-200: var(--caramel-100);
  --cream-300: var(--caramel-200);

  --ink-900: var(--ink);
  --ink-800: var(--ink-soft);
  --ink-700: var(--ink-soft);
  --ink-500: var(--muted);
  --ink-400: #8B8B8B;
  --ink-300: #B5B5B5;
  --ink-200: var(--line);
  --ink-100: #F2F2F2;

  --coral-700: var(--caramel-700);
  --coral-600: var(--caramel-500);
  --coral-500: var(--caramel-400);
  --coral-100: var(--caramel-100);

  --gold-600: var(--caramel-600);
  --gold-500: var(--caramel-400);

  /* ── TIPOGRAFIA ── */
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, sans-serif;
  --font-script:  'Caveat', cursive;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* aliases */
  --font-serif: var(--font-display);
  --font-sans:  var(--font-body);

  /* ── ESPAÇAMENTO ── */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* ── BORDER-RADIUS ── */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 999px;

  /* ── SOMBRAS ── */
  --shadow-sm: 0 1px 2px rgba(26,26,26,.04), 0 2px 6px rgba(26,26,26,.04);
  --shadow-md: 0 4px 12px rgba(26,26,26,.06), 0 8px 24px rgba(26,26,26,.05);
  --shadow-lg: 0 12px 32px rgba(26,26,26,.08), 0 24px 60px rgba(26,26,26,.06);
  --shadow-xl: 0 24px 64px rgba(26,26,26,.10);
  --shadow-teal:    0 12px 30px -8px rgba(63,184,175,.45);
  --shadow-caramel: 0 12px 30px -8px rgba(184,117,74,.45);

  --max-w: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================
   Tipografia
   ============================================ */
.font-serif, .font-display { font-family: var(--font-display); font-weight: 600; }
.font-sans, .font-body { font-family: var(--font-body); }
.font-script { font-family: var(--font-script); }
.font-mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  font-weight: 700;
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--ink);
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--ink);
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
}
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
}

.italic, .script {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 700;
  color: var(--caramel-500);
}

.body-lg { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.body { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--muted); }
.caption { font-size: 12px; line-height: 1.4; color: var(--muted); }

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: 48px 0; }
@media (min-width: 768px) { .section-tight { padding: 72px 0; } }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================
   Botões — assinatura pill shape
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--r-full);
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--teal-500);
  color: white;
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover { background: var(--teal-600); transform: translateY(-2px); }
.btn-secondary {
  background: var(--caramel-500);
  color: white;
  box-shadow: var(--shadow-caramel);
}
.btn-secondary:hover { background: var(--caramel-600); transform: translateY(-2px); }
.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-coral { background: var(--caramel-500); color: white; box-shadow: var(--shadow-caramel); }
.btn-coral:hover { background: var(--caramel-600); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--teal-700);
  border: 2px solid var(--teal-500);
}
.btn-outline:hover { background: var(--teal-500); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-700);
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.2s var(--ease);
}
.btn-link:hover { gap: 10px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.card-pad { padding: 28px; }
@media (min-width: 768px) { .card-pad { padding: 32px 26px; } }

/* ============================================
   Forms
   ============================================ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.input, .textarea, .select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 18px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(63,184,175,.15);
}
.textarea { min-height: 120px; resize: vertical; }

/* ============================================
   Badges / Pills
   ============================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  height: 28px;
}
.pill-teal { background: var(--teal-100); color: var(--teal-700); border-color: var(--teal-100); }
.pill-caramel, .pill-coral { background: var(--caramel-100); color: var(--caramel-700); border-color: var(--caramel-100); }
.pill-cream { background: var(--paper); color: var(--ink-soft); border-color: var(--line); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot-pulse { position: relative; }
.dot-pulse::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; background: currentColor;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ============================================
   Image placeholders
   ============================================ */
.img-ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      var(--line) 0px, var(--line) 12px,
      var(--paper) 12px, var(--paper) 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-md);
}

/* ============================================
   Grid
   ============================================ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
  .grid { gap: 24px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s var(--ease) both; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header.dark {
  background: rgba(28, 110, 105, 0.95);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w); margin: 0 auto;
}
@media (min-width: 768px) { .nav-inner { padding: 20px 40px; } }

.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--teal-700);
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: var(--teal-500);
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links { display: none; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 0;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--teal-600); }
.nav-link.active { color: var(--teal-600); }
.nav-link.active::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
}

.nav-actions { display: flex; gap: 10px; align-items: center; }

.menu-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: var(--teal-500);
  color: white;
  box-shadow: var(--shadow-teal);
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--teal-800);
  color: white;
  z-index: 200;
  padding: 24px;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 48px;
}
.mobile-menu .brand { color: white; }
.mobile-menu .brand-mark { background: white; color: var(--teal-700); }
.mobile-menu-close {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: white;
  color: var(--ink);
  display: grid; place-items: center;
}
.mobile-nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center;
  color: white;
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link .num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  color: var(--teal-200);
  letter-spacing: 0.1em;
}
.mobile-menu-cta { margin-top: auto; padding-top: 32px; }
.mobile-menu-meta {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,0.85);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 24px;
}
.mobile-menu-meta a { color: white; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 80px 0 32px;
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin: 0 0 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-link {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-link:hover { color: white; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column;
  gap: 16px; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.55);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}
.footer-newsletter {
  display: flex; gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  padding: 4px 4px 4px 20px;
}
.footer-newsletter input {
  flex: 1; background: transparent;
  border: none; outline: none;
  color: white; font-size: 14px;
  font-family: inherit;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }

/* ============================================
   Emergência
   ============================================ */
.emergency-strip {
  background: var(--caramel-500);
  color: white;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  text-align: center;
  display: flex; justify-content: center; align-items: center; gap: 16px;
}
.emergency-strip a { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================
   Utility
   ============================================ */
.text-center { text-align: center; }
.text-teal { color: var(--teal-600); }
.text-caramel, .text-coral { color: var(--caramel-500); }
.text-cream { color: var(--paper); }
.text-ink { color: var(--ink); }
.text-muted { color: var(--muted); }

.bg-paper, .bg-cream { background: var(--paper); }
.bg-cream-light { background: var(--paper); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-teal { background: var(--teal-500); color: white; }
.bg-white { background: var(--white); }

.rounded-lg { border-radius: var(--r-lg); }
.rounded-xl { border-radius: var(--r-xl); }
.rounded-full { border-radius: var(--r-full); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }

.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================
   Padrão de patinhas decorativo
   ============================================ */
.paw-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 12% 18%, var(--ink) 1.5px, transparent 2px),
    radial-gradient(circle at 88% 32%, var(--ink) 1.5px, transparent 2px),
    radial-gradient(circle at 30% 70%, var(--ink) 1.5px, transparent 2px),
    radial-gradient(circle at 70% 85%, var(--ink) 1.5px, transparent 2px);
  background-size: 240px 240px;
}

/* WhatsApp flutuante */
.wa-float {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 60px; height: 60px;
  border-radius: var(--r-full);
  background: #25D366;
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,0.55);
  z-index: 90;
  transition: transform 0.2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
