/* ============================================================
   PAWSOME - Pet & Animal Blog
   Design system: warm, playful, modern
   Fonts are loaded via <link> in HTML head (performance).
   ============================================================ */

:root {
  --primary: #ff8a3d;
  --primary-2: #ffb25e;
  --primary-soft: #fff0e2;
  --secondary: #2bae7f;
  --secondary-soft: #e0f6ec;
  --pink: #ff6b9d;
  --pink-soft: #ffe4ee;
  --gold: #ffc93c;
  --ink: #2d3142;
  --ink-soft: #5b6074;
  --bg: #fff9f2;
  --card: #ffffff;
  --line: #f0e6d8;
  --shadow: 0 10px 30px rgba(255, 138, 61, 0.14);
  --shadow-lg: 0 24px 60px rgba(45, 49, 66, 0.16);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --ease: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 74px;
}

[data-theme='dark'] {
  --ink: #f4efe8;
  --ink-soft: #b9b4aa;
  --bg: #17151c;
  --card: #211e28;
  --line: #322e3a;
  --primary-soft: #3a2a1c;
  --secondary-soft: #16281f;
  --pink-soft: #2d1a23;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16.5px;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: .2px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(1360px, 94%); margin-inline: auto; }

.section { padding: clamp(56px, 8vw, 96px) 0; }

/* Full-bleed tinted section bands (content stays in wrap, background spans viewport) */
.section-tint { background: linear-gradient(180deg, transparent, var(--primary-soft) 16%, var(--primary-soft) 84%, transparent); }
.section-tint.green { background: linear-gradient(180deg, transparent, var(--secondary-soft) 16%, var(--secondary-soft) 84%, transparent); }
.section-tint.pink { background: linear-gradient(180deg, transparent, var(--pink-soft) 16%, var(--pink-soft) 84%, transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lg); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 138, 61, .4);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(255, 138, 61, .5); }
.btn-ghost { background: transparent; border: 2px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Badges / chips ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
}
.tag-petcare { background: var(--secondary-soft); color: var(--secondary); }
.tag-top10 { background: var(--gold); color: #7a5200; }
.tag-guides { background: var(--pink-soft); color: var(--pink); }
.tag-new { background: var(--primary-soft); color: var(--primary); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid var(--line);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.brand .paw {
  width: 30px;
  height: 30px;
  display: inline-block;
  animation: bob 2.4s ease-in-out infinite;
}
.brand .paw img { width: 100%; height: 100%; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-5px) rotate(8deg); } }
.brand span b { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--primary-soft); color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  font-size: 18px;
  transition: transform .2s var(--ease), background .2s;
}
.icon-btn:hover { transform: rotate(20deg) scale(1.08); background: var(--primary-soft); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; z-index: 120; }
.burger span { position: absolute; left: 10px; right: 10px; height: 3px; border-radius: 3px; background: var(--ink); transition: .3s; }
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 29px; }
.burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .burger { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    background: var(--bg);
    transform: translateY(-110%);
    transition: transform .45s var(--ease);
    font-size: 22px;
  }
  .nav-links.open { transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 9vw, 110px) 0 80px;
  background:
    radial-gradient(900px 480px at 85% -10%, var(--primary-soft), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, var(--secondary-soft), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px;
  font-weight: 800; font-size: 14px;
  box-shadow: var(--shadow);
  animation: fadeUp .8s var(--ease) both;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .5; } }

.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  margin: 22px 0 18px;
  animation: fadeUp .8s var(--ease) .1s both;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary), var(--pink), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { font-size: 18.5px; color: var(--ink-soft); max-width: 520px; margin-bottom: 30px; animation: fadeUp .8s var(--ease) .2s both; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .8s var(--ease) .3s both; }
.hero-cta .btn { white-space: nowrap; }

.hero-stats { display: flex; gap: 30px; margin-top: 42px; animation: fadeUp .8s var(--ease) .4s both; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-display); font-size: 30px; color: var(--primary); }
.hero-stats span { font-size: 13.5px; color: var(--ink-soft); font-weight: 700; }

.hero-visual { position: relative; animation: fadeUp .9s var(--ease) .25s both; }
.hero-card {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 26px;
  transform: rotate(2deg);
  transition: transform .5s var(--ease);
}
.hero-card:hover { transform: rotate(0) scale(1.02); }
.hero-emoji { text-align: center; filter: drop-shadow(0 18px 24px rgba(255,138,61,.35)); }
.hero-emoji img { width: clamp(120px, 16vw, 150px); height: clamp(120px, 16vw, 150px); object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow-lg); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
.hero-card h3 { margin: 8px 0 4px; }
.hero-card p { margin: 0; font-size: 14.5px; }

.floater {
  position: absolute;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  animation: float 5s ease-in-out infinite;
}
.floater .emo { width: 30px; height: 30px; display: inline-block; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.floater .emo img { width: 100%; height: 100%; object-fit: cover; }
.floater.f1 { top: -24px; left: -30px; animation-delay: .4s; }
.floater.f2 { bottom: -20px; right: -14px; animation-delay: 1.1s; }
.floater.f3 { top: 40%; right: -34px; animation-delay: 1.8s; }

/* floating paw prints */
.paw-dots { position: absolute; opacity: .5; pointer-events: none; }
.paw-dots span { position: absolute; width: 30px; height: 30px; animation: pawDrift 9s linear infinite; }
.paw-dots span img { width: 100%; height: 100%; }
.paw-dots span:nth-child(1) { left: 6%; top: 30%; animation-delay: 0s; }
.paw-dots span:nth-child(2) { left: 18%; top: 74%; animation-delay: 3s; }
.paw-dots span:nth-child(3) { left: 80%; top: 20%; animation-delay: 1.5s; }
.paw-dots span:nth-child(4) { left: 90%; top: 62%; animation-delay: 5s; }
@keyframes pawDrift {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  15% { opacity: .5; }
  100% { transform: translateY(-80px) rotate(40deg); opacity: 0; }
}

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

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
}

/* ---------- Section headers ---------- */
.sec-head { text-align: center; max-width: 620px; margin: 0 auto clamp(30px, 5vw, 52px); }
.sec-head .kicker {
  display: inline-block;
  font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 13px;
  color: var(--primary);
  margin-bottom: 10px;
}
.sec-head h2 { font-size: clamp(28px, 4.5vw, 42px); }
.sec-head p { color: var(--ink-soft); margin-top: 12px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.card-thumb {
  height: 190px;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.card-thumb .thumb-emoji { width: 150px; height: 150px; animation: float 4s ease-in-out infinite; }
.card-thumb .thumb-emoji img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid rgba(255,255,255,.85); box-shadow: var(--shadow); }
.card-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 70% 0%, rgba(255,255,255,.45), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
}
.post-card:hover .card-thumb::after { opacity: 1; }
.th-bg-1 { background: linear-gradient(135deg, #ffe3c8, #ffb98a); }
.th-bg-2 { background: linear-gradient(135deg, #c9f0e0, #8fdcc0); }
.th-bg-3 { background: linear-gradient(135deg, #ffe0ea, #ffb6cf); }
.th-bg-4 { background: linear-gradient(135deg, #ffefb8, #ffd97a); }
.th-bg-5 { background: linear-gradient(135deg, #d7e8ff, #a9c8f8); }
.th-bg-6 { background: linear-gradient(135deg, #e5d8ff, #c2a6f5); }

.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 20px; line-height: 1.3; }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { color: var(--ink-soft); font-size: 14.5px; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.card-meta .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-soft); font-size: 15px;
}
.card-link {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; color: var(--primary);
  transition: gap .25s var(--ease);
}
.card-link:hover { gap: 12px; }

/* category cards */
.cat-card {
  position: relative;
  border-radius: var(--radius);
  padding: 30px 24px;
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.cat-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--shadow-lg); }
.cat-card .cat-emoji { position: absolute; top: 16px; right: 16px; font-size: 40px; line-height: 1; transition: transform .4s var(--ease); }
.cat-card:hover .cat-emoji { transform: scale(1.25) rotate(-8deg); }
.cat-card h3 { font-size: 22px; padding-right: 56px; color: #2d3142; }
.cat-card p { font-size: 14px; color: #5a5268; }
.cat-card .count { font-size: 12.5px; font-weight: 800; color: #5a5268; }

/* feature banner / newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--primary), var(--pink));
  border-radius: 30px;
  padding: clamp(40px, 6vw, 70px);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.newsletter .big-emoji { width: 64px; height: 64px; display: block; margin: 0 auto 8px; animation: float 3.5s ease-in-out infinite; }
.newsletter .big-emoji img { width: 100%; height: 100%; }
.newsletter h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 10px; }
.newsletter p { opacity: .92; margin-bottom: 24px; }
.newsletter form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.newsletter input {
  flex: 1; padding: 15px 20px;
  border: 0; border-radius: 999px;
  font-family: var(--font-body); font-size: 15px;
}
.newsletter form .btn { background: var(--ink); color: #fff; }
.newsletter .msg { margin-top: 14px; font-weight: 800; min-height: 22px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  padding: clamp(44px, 7vw, 76px) 0;
  background: linear-gradient(180deg, var(--primary-soft), transparent 80%);
  text-align: center;
}
.page-head h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 10px; }
.page-head p { color: var(--ink-soft); max-width: 560px; margin: 0 auto; }
.crumb { font-size: 13.5px; font-weight: 800; color: var(--ink-soft); margin-bottom: 16px; }
.crumb a:hover { color: var(--primary); }

/* ---------- Search / filter ---------- */
.searchbar {
  max-width: 560px;
  margin: 0 auto 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 20px;
  transition: border-color .25s, box-shadow .25s;
}
.searchbar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.searchbar input { flex: 1; border: 0; outline: 0; background: transparent; font-family: var(--font-body); font-size: 16px; color: var(--ink); }
.searchbar .btn { padding: 11px 22px; }

.filter-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--card);
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.filter-btn:hover { transform: translateY(-2px); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.post-card.hide { display: none; }

/* ---------- Blog post ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article .a-head { text-align: center; margin-bottom: 34px; }
.article .a-head h1 { font-size: clamp(28px, 4.5vw, 44px); margin: 14px 0 12px; }
.article .a-meta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.article .a-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article .a-hero {
  border-radius: 26px;
  min-height: 300px;
  display: grid; place-items: center;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
}
.article .a-hero .emo { width: clamp(130px, 26vw, 220px); animation: float 4.5s ease-in-out infinite; }
.article .a-hero .emo img { width: 100%; height: clamp(130px, 26vw, 220px); object-fit: cover; border-radius: 50%; border: 5px solid rgba(255,255,255,.9); box-shadow: var(--shadow-lg); }
.article .a-body { font-size: 17.5px; }
.article .a-body h2 { font-size: 27px; margin: 38px 0 14px; position: relative; padding-left: 18px; }
.article .a-body h2::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 8px; width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--primary), var(--pink));
}
.article .a-body h3 { font-size: 21px; margin: 26px 0 10px; }
.article .a-body p { margin-bottom: 18px; color: var(--ink-soft); }
.article .a-body ul, .article .a-body ol { margin: 0 0 20px 24px; }
.article .a-body li { margin-bottom: 9px; }
.article .a-body li::marker { color: var(--primary); font-weight: 800; }

.tip-box {
  background: var(--secondary-soft);
  border-left: 5px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 26px 0;
}
.tip-box b { font-family: var(--font-display); color: var(--secondary); display: block; margin-bottom: 4px; }
.tip-box.warn { background: var(--primary-soft); border-left-color: var(--primary); }
.tip-box.warn b { color: var(--primary); }

.rank-card {
  display: flex; gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 18px 0;
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.rank-card .num {
  min-width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--primary));
  color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  flex-shrink: 0;
}
.rank-card h3 { font-size: 19px; margin-bottom: 4px; }

/* author box */
.author-box {
  display: flex; gap: 18px; align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 40px 0;
  box-shadow: var(--shadow);
}
.author-box .avatar-big {
  width: 66px; height: 66px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 34px;
  background: linear-gradient(135deg, var(--primary-soft), var(--pink-soft));
}
.author-box b { font-family: var(--font-display); font-size: 18px; }
.author-box p { color: var(--ink-soft); font-size: 14.5px; margin: 2px 0 0; }

/* share */
.share-row { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 30px 0; }
.share-row .label { font-weight: 800; color: var(--ink-soft); }
.share-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 17px;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s;
}
.share-btn:hover { transform: translateY(-4px) scale(1.1); background: var(--primary-soft); }

/* ---------- Related / posts ---------- */
.related { margin-top: 60px; }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-emoji-wrap {
  background: linear-gradient(135deg, var(--primary-soft), var(--pink-soft), var(--secondary-soft));
  border-radius: 30px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-emoji-wrap .emo { display: flex; align-items: center; justify-content: center; gap: 14px; width: clamp(150px, 30vw, 240px); margin: 0 auto; animation: float 4s ease-in-out infinite; }
.about-emoji-wrap .emo img { width: 45%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 4px solid rgba(255,255,255,.9); box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.value-card { text-align: center; padding: 30px 20px; }
.value-card .ico {
  width: 66px; height: 66px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 20px;
  font-size: 30px;
  background: var(--primary-soft);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info .ci { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .ci .ico {
  width: 48px; height: 48px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  font-size: 22px;
}
.contact-info h3 { font-size: 18px; }
.contact-info p { color: var(--ink-soft); font-size: 15px; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; font-size: 14.5px; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15.5px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.field .err { color: #e5484d; font-size: 12.5px; font-weight: 700; margin-top: 4px; display: none; }
.field.error input, .field.error textarea { border-color: #e5484d; }
.field.error .err { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; margin-top: 60px; }
[data-theme='dark'] .footer { background: #121016; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 40px; }
.footer h4 { font-size: 17px; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: #cfd2da; font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: var(--primary-2); }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer p { color: #cfd2da; font-size: 14.5px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
  font-size: 13.5px; color: #aeb2bd;
}
.socials { display: flex; gap: 10px; }
.socials .icon-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
#toTop {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 90;
}
#toTop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#toTop:hover { transform: translateY(-4px); }

/* ---------- Loading bar on top ---------- */
.loadbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--primary), var(--pink), var(--secondary)); z-index: 200; border-radius: 0 4px 4px 0; }
.loadbar.run { animation: loadbar 1s ease forwards; }
@keyframes loadbar { from { width: 0; } to { width: 100%; } }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 48px; }
.muted { color: var(--ink-soft); }
.accent { color: var(--primary); }

/* ============================================================
   PAWSOME v2 - interactive sections & animations
   ============================================================ */

/* ---------- Hero typing effect ---------- */
#typeSpan { color: var(--secondary); }
.type-cursor { display: inline-block; width: 3px; height: .95em; margin-left: 3px; background: var(--primary); vertical-align: -0.1em; border-radius: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- Animated gradient text ---------- */
.grad-anim {
  background: linear-gradient(120deg, var(--primary), var(--pink), var(--secondary), var(--primary));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradMove 6s linear infinite;
}
@keyframes gradMove { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

/* ---------- Floating gradient blobs ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; z-index: 0; }
.blob-1 { width: 340px; height: 340px; background: var(--primary-soft); top: -90px; left: -80px; animation: blobMove 11s ease-in-out infinite alternate; }
.blob-2 { width: 300px; height: 300px; background: var(--secondary-soft); bottom: -60px; right: -70px; animation: blobMove 13s ease-in-out infinite alternate-reverse; }
.blob-3 { width: 220px; height: 220px; background: var(--pink-soft); top: 40%; left: 60%; animation: blobMove 9s ease-in-out infinite alternate; }
@keyframes blobMove { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,-30px) scale(1.15); } }

/* ---------- Post card: wobble emoji + shine ---------- */
.card-thumb .thumb-emoji { transition: transform .4s var(--ease); }
.post-card:hover .thumb-emoji { transform: scale(1.18) rotate(-8deg); }
.post-card:hover .card-thumb { background-size: 160% 160%; }
.card-thumb { transition: background-size .5s ease; background-size: 120% 120%; }

/* ---------- 3D tilt ---------- */
.tilt { transform-style: preserve-3d; }
.tilt .tilt-in { transform: translateZ(26px); }

/* ---------- Stats count-up ---------- */
.hero-stats b { display: inline-block; }
.stat-chip { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Trending list ---------- */
.trend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .trend-grid { grid-template-columns: 1fr; } }
.trend-list { display: flex; flex-direction: column; gap: 14px; }
.trend-item {
  display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.trend-item:hover { transform: translateX(8px) scale(1.01); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.trend-item .tnum {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  color: var(--primary); min-width: 34px;
}
.trend-item .tico { width: 46px; height: 46px; flex-shrink: 0; }
.trend-item .tico img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid var(--line); box-shadow: var(--shadow); }
.trend-item h4 { font-size: 16.5px; line-height: 1.3; }
.trend-item .tmeta { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
.trend-item .tarrow { margin-left: auto; font-size: 18px; color: var(--primary); opacity: 0; transform: translateX(-8px); transition: .3s var(--ease); }
.trend-item:hover .tarrow { opacity: 1; transform: translateX(0); }
.trend-feature { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; }
.trend-feature .tag { position: absolute; top: 26px; left: 26px; box-shadow: var(--shadow); }
.trend-feature .big { width: clamp(120px, 15vw, 170px); height: auto; position: absolute; top: 30px; right: 30px; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0,0,0,.25)); }
.trend-feature .big img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 4px solid rgba(255,255,255,.9); }
.trend-feature h3 { font-size: 26px; color: #fff; margin-bottom: 8px; padding-right: 12px; }
.trend-feature p { color: rgba(255,255,255,.9); font-size: 15px; max-width: 340px; }
.trend-feature .btn { align-self: flex-start; margin-top: 14px; }

/* ---------- Daily pet tip widget ---------- */
.tip-widget {
  background: linear-gradient(135deg, var(--secondary), #1f8f66);
  color: #fff; border-radius: 28px; padding: clamp(30px, 5vw, 50px);
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.tip-widget .twe { font-size: 80px; position: absolute; right: 24px; top: 10px; opacity: .9; animation: float 3.6s ease-in-out infinite; }
.tip-widget .kicker { color: #d9fff0; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; }
.tip-widget h2 { font-size: clamp(24px, 4vw, 34px); margin: 8px 0 6px; max-width: 560px; }
.tip-widget p { opacity: .95; max-width: 560px; }
.tip-widget #tipText { font-family: var(--font-display); font-size: clamp(19px, 3vw, 25px); font-weight: 700; line-height: 1.45; margin: 20px 0 24px; min-height: 78px; max-width: 640px; }
.tip-widget .btn { background: #fff; color: var(--secondary); }
.tip-widget .btn:hover { box-shadow: 0 12px 26px rgba(0,0,0,.25); }

/* ---------- Quiz section ---------- */
.quiz-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-lg); max-width: 720px; margin: 0 auto; text-align: center; }
.quiz-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; max-width: 460px; margin: 0 auto 26px; }
.quiz-bar-fill { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--pink)); transition: width .5s var(--ease); }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeUp .5s var(--ease); }
.quiz-step .qnum { font-family: var(--font-display); font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.quiz-step .qnum em { font-style: normal; opacity: .55; }
.quiz-step h3 { font-size: clamp(22px, 3.5vw, 30px); margin: 10px auto 24px; max-width: 520px; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .quiz-opts { grid-template-columns: 1fr; } }
.quiz-opt {
  border: 2px solid var(--line); background: var(--bg); border-radius: var(--radius-sm);
  padding: 16px 18px; font-family: var(--font-body); font-weight: 800; font-size: 15.5px; color: var(--ink);
  cursor: pointer; transition: all .25s var(--ease); text-align: left;
}
.quiz-opt:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.quiz-opt:active { transform: scale(.97); }
.quiz-result { display: none; padding: 10px 0; }
.quiz-result .r-emoji { width: 120px; height: 120px; margin: 0 auto; display: block; animation: float 3s ease-in-out infinite, popIn .6s var(--ease); }
.quiz-result .r-emoji img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow-lg); }
.quiz-result h3 { font-size: clamp(26px, 4vw, 36px); }
.quiz-result .r-trait { display: inline-block; margin-top: 8px; padding: 6px 16px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 13.5px; letter-spacing: .3px; }
.quiz-result p { max-width: 480px; margin: 14px auto 20px; color: var(--ink-soft); font-size: 16.5px; }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Testimonials ---------- */
.testi-wrap { position: relative; max-width: 720px; margin: 0 auto; }
.testi-track { overflow: hidden; border-radius: 24px; }
.testi-slide { display: none; text-align: center; padding: clamp(28px, 4vw, 44px); background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.testi-slide.active { display: block; animation: fadeUp .5s var(--ease); }
.testi-slide .quote { font-size: 42px; }
.testi-slide blockquote { font-family: var(--font-display); font-size: clamp(18px, 2.6vw, 23px); font-weight: 600; line-height: 1.5; margin: 14px auto; max-width: 560px; }
.testi-slide .person { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; color: var(--ink-soft); }
.testi-slide .person .pp { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--primary-soft); }
.testi-slide .stars { color: var(--gold); letter-spacing: 3px; }
.testi-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.testi-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: .3s; padding: 0; }
.testi-dot.active { background: var(--primary); transform: scale(1.35); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); transition: border-color .25s; }
.faq-item.open { border-color: var(--primary); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; background: transparent; border: 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); cursor: pointer; text-align: left; }
.faq-q .faq-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 17px; font-weight: 800; transition: transform .35s var(--ease), background .25s; }
.faq-item.open .faq-ico { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; padding: 0 22px; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 22px 20px; }
.faq-a p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Confetti ---------- */
.confetti { position: fixed; top: 0; left: 0; width: 10px; height: 14px; border-radius: 2px; z-index: 9999; pointer-events: none; }

/* ---------- Cursor paw trail ---------- */
.paw-trail { position: fixed; width: 24px; height: 24px; background: url('../img/paw.svg') center / contain no-repeat; pointer-events: none; z-index: 9998; opacity: 0; transform: translate(-50%,-50%) rotate(0deg); animation: pawFade .9s ease-out forwards; }
@keyframes pawFade { 0% { opacity: .85; transform: translate(-50%,-50%) rotate(-20deg) scale(1); } 100% { opacity: 0; transform: translate(-50%,-50%) translateY(-34px) rotate(20deg) scale(.6); } }
@media (hover: none), (pointer: coarse) { .paw-trail { display: none; } }

/* ---------- Pill quick links ---------- */
.quick-pills { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.quick-pills a {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 2px solid var(--line); border-radius: 999px;
  padding: 12px 20px; font-family: var(--font-display); font-weight: 700; font-size: 15px;
  transition: all .25s var(--ease);
}
.quick-pills a:hover { transform: translateY(-4px) scale(1.04); border-color: var(--primary); background: var(--primary-soft); color: var(--primary); box-shadow: var(--shadow); }

/* ---------- Big number section ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stats-band .s-card { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 16px; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.stats-band .s-card:hover { transform: translateY(-6px); }
.stats-band .s-emoji { font-size: 34px; }
.stats-band .s-num { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--primary); line-height: 1.1; }
.stats-band .s-label { font-size: 13.5px; font-weight: 800; color: var(--ink-soft); }

/* ---------- Section divider sparkle ---------- */
.div-sparkle { text-align: center; font-size: 22px; letter-spacing: 12px; opacity: .5; margin: -18px 0 0; }

/* ---------- Dark tweaks for new sections ---------- */
[data-theme='dark'] .trend-feature { box-shadow: 0 24px 60px rgba(0,0,0,.5); }
[data-theme='dark'] .tip-widget { box-shadow: 0 24px 60px rgba(0,0,0,.45); }

/* ============================================================
   PAWSOME v3 - full-width layout, CTA band & mobile polish
   ============================================================ */

/* ---------- Full-width CTA band ---------- */
.band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--primary), var(--pink) 55%, #a65ee0); }
[data-theme='dark'] .band { background: linear-gradient(120deg, #c96b26, #d34f7e 55%, #8a4cc2); }
.band-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding: clamp(54px, 7vw, 90px) 0; position: relative; z-index: 1; }
.band h2 { font-size: clamp(28px, 4.5vw, 48px); color: #fff; margin: 10px 0 14px; line-height: 1.2; }
.band p { color: rgba(255,255,255,.93); font-size: 17.5px; max-width: 580px; margin-bottom: 26px; }
.band .kicker { color: #ffe9d2; }
.band .btn { background: #fff; color: var(--primary); }
.band .btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.band .btn-ghost-l { background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.55); color: #fff; }
.band .btn-ghost-l:hover { background: rgba(255,255,255,.22); border-color: #fff; color: #fff; }
.band .big-emoji-band { width: clamp(90px, 12vw, 150px); margin: 0 auto; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 22px 34px rgba(0,0,0,.28)); }
.band .big-emoji-band img { width: 100%; height: auto; }
@media (max-width: 820px) {
  .band-inner { grid-template-columns: 1fr; text-align: center; }
  .band p { margin-inline: auto; }
  .band .hero-cta { justify-content: center; }
  .band .big-emoji-band { font-size: 84px; }
}

/* ---------- Reduced motion for sensitive users ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Mobile-friendly polish ---------- */
html { -webkit-tap-highlight-color: transparent; }

@media (max-width: 640px) { .section { padding: 46px 0; } }

@media (max-width: 560px) {
  .floater { display: none; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .newsletter form { flex-direction: column; }
  .newsletter form .btn { justify-content: center; }
  .searchbar { border-radius: 20px; flex-wrap: wrap; padding: 8px 10px; }
  .searchbar input { min-width: 100%; padding: 6px 8px; }
  .searchbar .btn { width: 100%; justify-content: center; margin-top: 4px; }
  .filter-btn { flex: 1; min-width: 42%; padding: 12px 14px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; padding: 13px 14px; font-size: 15px; }
  .article .a-hero { min-height: 210px; font-size: 84px; }
  .newsletter .big-emoji { font-size: 48px; }
}

/* Wide screens: a touch more breathing room in grids */
@media (min-width: 1280px) { .grid { gap: 30px; } }

/* ============================================================
   PAWSOME v4 - Core Web Vitals & accessibility polish
   ============================================================ */

/* Prevent layout shift for images that lack explicit dimensions */
img { height: auto; }

/* Visible keyboard focus (a11y, Google page experience) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Comfortable tap targets on touch (Mediavine mobile UX) */
button, .filter-btn, .quiz-opt, .faq-q, .share-btn, .icon-btn, .testi-dot { min-height: 44px; min-width: 44px; }

/* Larger touch targets for small-screen tap interactions */
@media (pointer: coarse) {
  .nav-links a { padding: 12px 18px; }
  .filter-btn { padding: 12px 18px; }
  .quiz-opt { padding: 18px 20px; }
  .share-btn { min-width: 46px; min-height: 46px; }
  .socials .icon-btn { width: 48px; height: 48px; }
}

/* Constrain line length for readability on desktop */
.a-body p { max-width: 68ch; }

/* Subtle default font smoothing on high-DPI screens */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
