﻿/* ============================================================
   pawspagesstudio — Main Stylesheet
   Warm, trustworthy, modern pet problem-solving platform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-page:        #FAF8F4;
  --bg-surface:     #FFFFFF;
  --bg-warm:        #F5F0E8;
  --bg-warm-light:  #FBF9F5;

  /* Borders */
  --border-light:   #EAE3D8;
  --border-mid:     #D4C9BA;

  /* Text */
  --text-primary:   #2D2926;
  --text-secondary: #6B6058;
  --text-muted:     #9E9590;

  /* Brand */
  --brown:          #96501E;
  --brown-dark:     #7A3E14;
  --brown-light:    #C4834A;
  --tan:            #D4AA7D;
  --green:          #5B7A5E;
  --green-dark:     #4A6850;
  --green-light:    #8FAF94;

  /* Semantic */
  --warn-bg:        #FFF9EC;
  --warn-border:    #F5D080;
  --warn-text:      #8A5800;
  --danger-bg:      #FFF5F5;
  --danger-border:  #F5A3A3;
  --danger-text:    #C0392B;
  --info-bg:        #F0F7FC;
  --info-border:    #A8D4EF;
  --info-text:      #1A6490;
  --tip-bg:         #F2FAF5;
  --tip-border:     #A3E0B5;
  --tip-text:       #1A7A4A;

  /* Pet accent colors */
  --c-dog:    #C4834A;
  --c-cat:    #9B7EBD;
  --c-bird:   #5B9BD5;
  --c-fish:   #4AAFB5;
  --c-hamster:#E08B5A;
  --c-rabbit: #D4A0C0;
  --c-other:  #7BA87E;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sizes */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.5rem;
  --text-4xl:  3.25rem;

  /* Spacing scale */
  --s1: 0.25rem;  --s2: 0.5rem;   --s3: 0.75rem;  --s4: 1rem;
  --s5: 1.25rem;  --s6: 1.5rem;   --s8: 2rem;     --s10: 2.5rem;
  --s12: 3rem;    --s16: 4rem;    --s20: 5rem;    --s24: 6rem;

  /* Radii */
  --r-sm: 4px;   --r-md: 8px;   --r-lg: 12px;
  --r-xl: 16px;  --r-2xl: 24px; --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(45,41,38,.06);
  --shadow-sm: 0 1px 4px rgba(45,41,38,.08),0 1px 2px rgba(45,41,38,.05);
  --shadow-md: 0 4px 12px rgba(45,41,38,.10),0 2px 4px rgba(45,41,38,.06);
  --shadow-lg: 0 8px 28px rgba(45,41,38,.12),0 4px 8px rgba(45,41,38,.07);
  --shadow-xl: 0 16px 48px rgba(45,41,38,.14),0 8px 16px rgba(45,41,38,.08);

  /* Motion */
  --fast: 150ms ease;
  --base: 250ms ease;

  /* Layout */
  --nav-h:   68px;
  --max-w:   1200px;
  --max-art: 720px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-decoration: none; transition: color var(--fast); }
a:hover { color: var(--brown-dark); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.25; color: var(--text-primary); font-weight: 600; }
p { margin-bottom: var(--s4); }
ul,ol { padding-left: var(--s6); }
li { margin-bottom: var(--s2); }
button { cursor: pointer; font-family: var(--font-body); }
input,textarea,select { font-family: var(--font-body); }
[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* ── Layout Helpers ─────────────────────────────────────── */
.container       { max-width: var(--max-w);   margin: 0 auto; padding: 0 var(--s6); }
.container-sm    { max-width: var(--max-art);  margin: 0 auto; padding: 0 var(--s6); }
.section         { padding: var(--s16) 0; }
.section-sm      { padding: var(--s10) 0; }
.section-lg      { padding: var(--s24) 0; }
.text-center     { text-align: center; }

/* ── Navigation ─────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(250,248,244,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--base);
}
.site-nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s6);
  gap: var(--s6);
}

.nav-logo {
  display: flex; align-items: center; gap: var(--s2);
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-mark { font-size: 1.6rem; line-height: 1; }
.nav-logo-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.nav-logo-name {
  font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: -.01em;
}
.footer-brand-logo { margin-bottom: var(--sp-2); }
.footer-logo-img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex; align-items: center; gap: var(--s1);
  list-style: none; padding: 0; margin: 0; flex: 1; justify-content: center;
}
.nav-links a {
  display: block; padding: var(--s2) var(--s3);
  font-size: var(--text-sm); font-weight: 500;
  color: var(--text-secondary); border-radius: var(--r-md);
  transition: all var(--fast);
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-warm); }
.nav-links a.active { color: var(--brown); background: rgba(150,80,30,.08); }

.nav-actions { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; }

.nav-search-pill {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: var(--bg-warm); border: 1px solid var(--border-light);
  border-radius: var(--r-full); font-size: var(--text-sm);
  color: var(--text-muted); min-width: 180px; cursor: pointer;
  transition: all var(--fast);
}
.nav-search-pill:hover { border-color: var(--brown-light); color: var(--text-secondary); }
.nav-search-pill svg { flex-shrink: 0; }

.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; padding: var(--s2);
}
.nav-hamburger span {
  display: block; height: 2px; background: var(--text-secondary);
  border-radius: 2px; transition: all var(--fast);
}

/* Mobile nav */
.nav-mobile-drawer {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg-page); z-index: 999;
  padding: var(--s6); overflow-y: auto;
}
.nav-mobile-drawer.open { display: block; }
.nav-mobile-links { list-style: none; padding: 0; margin: 0; }
.nav-mobile-links li { margin-bottom: var(--s1); }
.nav-mobile-links a {
  display: block; padding: var(--s3) var(--s4);
  font-size: var(--text-md); font-weight: 500;
  color: var(--text-primary); border-radius: var(--r-md);
  transition: all var(--fast);
}
.nav-mobile-links a:hover { background: var(--bg-warm); color: var(--brown); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + var(--s16));
  padding-bottom: var(--s16);
  background: var(--bg-page);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -80px; right: -160px;
  width: 580px; height: 580px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,131,74,.09) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,122,94,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  text-align: center; max-width: 820px; margin: 0 auto;
  padding: 0 var(--s6);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: rgba(91,122,94,.10); border: 1px solid rgba(91,122,94,.20);
  border-radius: var(--r-full);
  font-size: var(--text-sm); font-weight: 500; color: var(--green-dark);
  margin-bottom: var(--s6);
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, var(--text-4xl));
  font-weight: 700; line-height: 1.15;
  margin-bottom: var(--s5);
}
.hero-title .accent { color: var(--brown); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, var(--text-md));
  color: var(--text-secondary); max-width: 560px;
  margin: 0 auto var(--s10); line-height: 1.7;
}

/* Search box */
.hero-search { max-width: 640px; margin: 0 auto; position: relative; }
.search-wrap {
  display: flex; align-items: center;
  background: var(--bg-surface); border: 2px solid var(--border-light);
  border-radius: var(--r-full);
  padding: var(--s2) var(--s2) var(--s2) var(--s5);
  gap: var(--s3); box-shadow: var(--shadow-md);
  transition: all var(--base);
}
.search-wrap:focus-within {
  border-color: var(--brown-light);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(196,131,74,.12);
}
.search-icon { flex-shrink: 0; color: var(--text-muted); }
.search-input {
  flex: 1; border: none; outline: none;
  font-size: var(--text-base); color: var(--text-primary);
  background: transparent; min-width: 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  flex-shrink: 0; padding: var(--s3) var(--s6);
  background: var(--brown); color: #fff; border: none;
  border-radius: var(--r-full); font-size: var(--text-sm);
  font-weight: 600; transition: background var(--fast); white-space: nowrap;
}
.search-btn:hover { background: var(--brown-dark); }
.search-hints {
  margin-top: var(--s4); font-size: var(--text-sm);
  color: var(--text-muted); text-align: center;
}
.search-hints button {
  background: none; border: none; padding: 0;
  color: var(--brown); font-size: var(--text-sm);
  text-decoration: underline; text-decoration-style: dotted;
  cursor: pointer; transition: color var(--fast);
}
.search-hints button:hover { color: var(--brown-dark); }

/* Search dropdown */
.search-dropdown {
  display: none; position: absolute; top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-surface); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xl);
  max-height: 420px; overflow-y: auto; z-index: 200;
}
.search-dropdown.open { display: block; }
.search-dropdown-item {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s4); border-bottom: 1px solid var(--border-light);
  transition: background var(--fast); text-decoration: none;
  color: var(--text-primary);
}
.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item:hover { background: var(--bg-warm-light); }
.sdi-emoji { flex-shrink: 0; font-size: 1.3rem; margin-top: 2px; }
.sdi-title { display: block; font-size: var(--text-sm); font-weight: 500; margin-bottom: var(--s1); }
.sdi-meta  { font-size: var(--text-xs); color: var(--text-muted); }
.search-dropdown-empty { padding: var(--s10); text-align: center; color: var(--text-muted); font-size: var(--text-sm); }

/* ── Section headers ────────────────────────────────────── */
.section-label {
  display: inline-block; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); margin-bottom: var(--s3);
}
.section-title {
  font-size: clamp(1.75rem, 3vw, var(--text-3xl));
  font-weight: 700; margin-bottom: var(--s4);
}
.section-desc {
  font-size: var(--text-md); color: var(--text-secondary);
  max-width: 540px; margin: 0 auto; line-height: 1.7;
}

/* ── Pet Category Grid ──────────────────────────────────── */
.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: var(--s4);
}
.pet-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: var(--s6) var(--s4);
  background: var(--bg-warm-light); border: 1px solid var(--border-light);
  border-radius: var(--r-2xl); text-decoration: none;
  transition: all var(--base); gap: var(--s3);
}
.pet-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: var(--tan); background: var(--bg-surface);
}
.pet-card-emoji { font-size: 2.6rem; line-height: 1; }
.pet-card-name  { font-weight: 600; font-size: var(--text-sm); color: var(--text-primary); }
.pet-card-count { font-size: var(--text-xs); color: var(--text-muted); }

/* ── Problem Categories ─────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s3);
}
.problem-card {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s5);
  background: var(--bg-surface); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); text-decoration: none;
  transition: all var(--base);
}
.problem-card:hover {
  border-color: var(--brown-light); box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.problem-card-icon { font-size: 1.5rem; flex-shrink: 0; }
.problem-card-text { font-size: var(--text-sm); font-weight: 500; color: var(--text-primary); }

/* ── Article Cards ──────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s6);
}
.article-card {
  display: flex; flex-direction: column;
  background: var(--bg-warm-light); border: 1px solid var(--border-light);
  border-radius: var(--r-2xl); overflow: hidden;
  text-decoration: none; transition: all var(--base);
}
.article-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.article-card-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem;
}
.article-card-body {
  padding: var(--s5); flex: 1;
  display: flex; flex-direction: column; gap: var(--s3);
}
.article-card-tags { display: flex; gap: var(--s2); flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: var(--s1);
  padding: 2px var(--s2); border-radius: var(--r-sm);
  font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}
.tag-dog     { background: rgba(196,131,74,.12);  color: #7A3800; }
.tag-cat     { background: rgba(155,126,189,.12); color: #5B3A8C; }
.tag-bird    { background: rgba(91,155,213,.12);  color: #1A5F9B; }
.tag-fish    { background: rgba(74,175,181,.12);  color: #1A7070; }
.tag-hamster { background: rgba(224,139,90,.12);  color: #8C3800; }
.tag-rabbit  { background: rgba(212,160,192,.12); color: #7A2A60; }
.tag-other   { background: rgba(123,168,126,.12); color: #2A5E2D; }
.tag-behavior{ background: rgba(45,41,38,.07);    color: var(--text-secondary); }
.tag-health  { background: rgba(192,57,43,.08);   color: #8A1F10; }
.tag-nutrition{ background: rgba(39,174,96,.08);  color: #1A6E3C; }

.article-card-title {
  font-family: var(--font-heading); font-size: var(--text-lg);
  font-weight: 600; color: var(--text-primary); line-height: 1.3;
}
.article-card-excerpt {
  font-size: var(--text-sm); color: var(--text-secondary);
  line-height: 1.65; flex: 1;
}
.article-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--s3); border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.article-card-time { font-size: var(--text-xs); color: var(--text-muted); }
.article-card-cta {
  font-size: var(--text-sm); font-weight: 500; color: var(--brown);
  display: flex; align-items: center; gap: var(--s1);
}
.article-card-cta svg { transition: transform var(--fast); }
.article-card:hover .article-card-cta svg { transform: translateX(4px); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s6); border-radius: var(--r-full);
  font-size: var(--text-sm); font-weight: 600;
  text-decoration: none; transition: all var(--fast);
  border: 2px solid transparent;
}
.btn-primary   { background: var(--brown); color: #fff; border-color: var(--brown); }
.btn-primary:hover { background: var(--brown-dark); border-color: var(--brown-dark); color: #fff; }
.btn-outline   { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: #fff; }
.btn-ghost     { background: transparent; color: var(--text-secondary); border-color: var(--border-mid); }
.btn-ghost:hover { background: var(--bg-warm); color: var(--text-primary); }
.btn-light     { background: #fff; color: var(--text-primary); border-color: #fff; }
.btn-light:hover { background: var(--bg-warm); color: var(--text-primary); }

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #2D2926 0%, #4A3728 100%);
  color: #fff; text-align: center; padding: var(--s16) 0;
}
.cta-banner .section-label { color: var(--tan); }
.cta-banner h2 { font-size: clamp(1.75rem, 3vw, var(--text-3xl)); color: #fff; margin-bottom: var(--s4); }
.cta-banner p  { color: rgba(255,255,255,.7); font-size: var(--text-md); max-width: 480px; margin: 0 auto var(--s8); }
.cta-btns      { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; }
.btn-cta-light { background: #fff; color: var(--brown-dark); border-color: #fff; }
.btn-cta-light:hover { background: var(--bg-warm); color: var(--text-primary); }
.btn-cta-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-cta-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--text-primary); color: rgba(255,255,255,.65);
  padding: var(--s16) 0 var(--s8);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s10); margin-bottom: var(--s12);
}
.footer-brand-name {
  font-family: var(--font-heading); font-size: var(--text-xl);
  font-weight: 700; color: #fff; margin-bottom: var(--s3);
}
.footer-brand-name em { color: var(--tan); font-style: normal; }
.footer-brand-desc { font-size: var(--text-sm); line-height: 1.7; margin-bottom: var(--s5); }
.footer-disclaimer {
  font-size: var(--text-xs); background: rgba(255,255,255,.06);
  padding: var(--s3) var(--s4); border-radius: var(--r-md);
  border-left: 3px solid var(--tan); line-height: 1.65;
  color: rgba(255,255,255,.5);
}
.footer-col-title {
  font-size: var(--text-sm); font-weight: 600; color: #fff;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: var(--s5);
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s3); }
.footer-links a { font-size: var(--text-sm); color: rgba(255,255,255,.55); transition: color var(--fast); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: var(--s6); border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); flex-wrap: wrap;
}
.footer-copy { font-size: var(--text-xs); color: rgba(255,255,255,.35); }
.footer-legal { display: flex; gap: var(--s5); }
.footer-legal a { font-size: var(--text-xs); color: rgba(255,255,255,.35); transition: color var(--fast); }
.footer-legal a:hover { color: rgba(255,255,255,.65); }

/* ── Article Header ─────────────────────────────────────── */
.article-page-header {
  padding-top: calc(var(--nav-h) + var(--s12));
  padding-bottom: var(--s10);
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
}
.breadcrumb {
  display: flex; align-items: center; gap: var(--s2);
  font-size: var(--text-sm); color: var(--text-muted);
  margin-bottom: var(--s5); flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brown); }
.breadcrumb-sep { color: var(--border-mid); }
.article-header-tags { display: flex; gap: var(--s2); margin-bottom: var(--s5); flex-wrap: wrap; }
.article-page-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text-primary); margin-bottom: var(--s5);
}
.article-page-sub {
  font-size: var(--text-md); color: var(--text-secondary);
  line-height: 1.65; max-width: 680px;
}
.article-meta-bar {
  display: flex; align-items: center; gap: var(--s6);
  margin-top: var(--s6); padding-top: var(--s5);
  border-top: 1px solid var(--border-light); flex-wrap: wrap;
}
.article-author { display: flex; align-items: center; gap: var(--s3); }
.article-author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-warm); display: flex;
  align-items: center; justify-content: center; font-size: 1rem;
}
.article-author-info strong { font-size: var(--text-sm); font-weight: 600; display: block; }
.article-author-info small  { font-size: var(--text-xs); color: var(--text-muted); }
.article-meta-date          { font-size: var(--text-sm); color: var(--text-muted); }
.article-meta-time          { font-size: var(--text-sm); color: var(--text-muted); }

/* ── Article Layout ─────────────────────────────────────── */
.article-page-layout {
  display: grid; grid-template-columns: 1fr 280px;
  gap: var(--s12); align-items: start;
  padding: var(--s10) 0 var(--s16);
}
.article-sidebar {
  position: sticky; top: calc(var(--nav-h) + var(--s5));
}
.sidebar-widget {
  background: var(--bg-surface); border: 1px solid var(--border-light);
  border-radius: var(--r-xl); padding: var(--s5); margin-bottom: var(--s4);
}
.sidebar-widget-title {
  font-size: var(--text-xs); font-weight: 600; color: var(--text-primary);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--s4);
}
.toc { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s1); }
.toc a {
  display: block; font-size: var(--text-sm); color: var(--text-secondary);
  padding: var(--s1) var(--s2); border-radius: var(--r-sm);
  border-left: 2px solid transparent; line-height: 1.45;
  transition: all var(--fast);
}
.toc a:hover, .toc a.active {
  color: var(--brown); background: rgba(150,80,30,.06);
  border-left-color: var(--brown);
}
.toc-sub { padding-left: var(--s4); }

/* ── Article Content ────────────────────────────────────── */
.article-body { max-width: var(--max-art); }
.article-body h2 {
  font-size: clamp(1.3rem, 2.5vw, var(--text-2xl));
  font-weight: 700; margin-top: var(--s12); margin-bottom: var(--s4);
  padding-bottom: var(--s3); border-bottom: 2px solid var(--border-light);
}
.article-body h3 {
  font-size: var(--text-xl); font-weight: 600;
  margin-top: var(--s8); margin-bottom: var(--s3);
}
.article-body h4 {
  font-size: var(--text-md); font-weight: 600;
  margin-top: var(--s6); margin-bottom: var(--s2);
}
.article-body p  { font-size: var(--text-base); line-height: 1.78; color: var(--text-primary); margin-bottom: var(--s5); }
.article-body ul,
.article-body ol { margin-bottom: var(--s5); }
.article-body li { font-size: var(--text-base); line-height: 1.7; margin-bottom: var(--s2); }
.article-body strong { font-weight: 600; }

/* ── Callout Boxes ──────────────────────────────────────── */
.callout {
  padding: var(--s5) var(--s6); border-radius: var(--r-lg);
  margin: var(--s8) 0; border-left: 4px solid;
}
.callout-head {
  font-family: var(--font-heading); font-size: var(--text-md);
  font-weight: 600; margin-bottom: var(--s3);
  display: flex; align-items: center; gap: var(--s2);
}
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }

.callout-quickanswer { background: var(--bg-warm-light); border-color: var(--tan); }
.callout-quickanswer .callout-head { color: var(--brown); }

.callout-warn   { background: var(--warn-bg);   border-color: var(--warn-border); }
.callout-warn   .callout-head { color: var(--warn-text); }

.callout-danger { background: var(--danger-bg); border-color: var(--danger-border); }
.callout-danger .callout-head { color: var(--danger-text); }

.callout-vet    { background: #FFF5F5; border-color: #C0392B; }
.callout-vet    .callout-head { color: #C0392B; }

.callout-info   { background: var(--info-bg);   border-color: var(--info-border); }
.callout-info   .callout-head { color: var(--info-text); }

.callout-tip    { background: var(--tip-bg);    border-color: var(--tip-border); }
.callout-tip    .callout-head { color: var(--tip-text); }

.callout-notdo  { background: #FFF8F0; border-color: #E8A000; }
.callout-notdo  .callout-head { color: var(--warn-text); }

/* ── Related Articles ───────────────────────────────────── */
.related-section {
  margin-top: var(--s12); padding-top: var(--s8);
  border-top: 2px solid var(--border-light);
}
.related-section h3 { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--s6); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); }
.related-card {
  display: flex; gap: var(--s3); padding: var(--s4);
  background: var(--bg-page); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); text-decoration: none;
  transition: all var(--base);
}
.related-card:hover { border-color: var(--brown-light); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-card-emoji { font-size: 1.5rem; flex-shrink: 0; }
.related-card-title { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); line-height: 1.4; }

/* ── Category Page ──────────────────────────────────────── */
.cat-page-header {
  padding-top: calc(var(--nav-h) + var(--s12));
  padding-bottom: var(--s12); background: var(--bg-page);
}
.cat-header-content { max-width: 680px; }
.cat-page-icon    { font-size: 3.5rem; margin-bottom: var(--s4); line-height: 1; }
.cat-page-title   { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: var(--s4); }
.cat-page-desc    { font-size: var(--text-md); color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--s6); }
.cat-stats        { display: flex; gap: var(--s6); flex-wrap: wrap; }
.cat-stat-num     { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 700; color: var(--brown); display: block; }
.cat-stat-lbl     { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

/* Filter bar */
.filter-bar { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s8); }
.filter-btn {
  padding: var(--s2) var(--s4);
  background: var(--bg-surface); border: 1px solid var(--border-light);
  border-radius: var(--r-full); font-size: var(--text-sm); font-weight: 500;
  color: var(--text-secondary); transition: all var(--fast);
}
.filter-btn:hover { border-color: var(--brown-light); color: var(--brown); }
.filter-btn.active { background: var(--brown); border-color: var(--brown); color: #fff; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border-light); border-radius: var(--r-lg);
  margin-bottom: var(--s3); overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) var(--s5); background: var(--bg-surface);
  cursor: pointer; gap: var(--s4); transition: background var(--fast);
}
.faq-q:hover { background: var(--bg-warm-light); }
.faq-q-text { font-weight: 600; font-size: var(--text-base); color: var(--text-primary); line-height: 1.4; }
.faq-ico {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-warm); display: flex; align-items: center;
  justify-content: center; font-size: .7rem; color: var(--text-secondary);
  transition: transform var(--base);
}
.faq-item.open .faq-ico { transform: rotate(45deg); background: var(--brown); color: #fff; }
.faq-a {
  display: none; padding: 0 var(--s5) var(--s5);
  background: var(--bg-surface); border-top: 1px solid var(--border-light);
}
.faq-a p { padding-top: var(--s4); font-size: var(--text-base); color: var(--text-secondary); line-height: 1.7; margin-bottom: 0; }
.faq-item.open .faq-a { display: block; }

/* ── Disclaimer ─────────────────────────────────────────── */
.disclaimer {
  background: var(--info-bg); border: 1px solid var(--info-border);
  border-radius: var(--r-lg); padding: var(--s4) var(--s5);
  margin: var(--s8) 0; font-size: var(--text-sm);
  color: var(--text-secondary); line-height: 1.65;
}
.disclaimer strong { color: var(--info-text); }

/* ── About / Contact Pages ──────────────────────────────── */
.plain-page-header {
  padding-top: calc(var(--nav-h) + var(--s12));
  padding-bottom: var(--s10);
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
}
.plain-content { padding: var(--s12) 0 var(--s16); }
.plain-content h2 { margin-top: var(--s10); margin-bottom: var(--s4); }
.plain-content h3 { margin-top: var(--s8); margin-bottom: var(--s3); }
.plain-content p  { line-height: 1.78; color: var(--text-primary); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); margin-top: var(--s8); }
.contact-item { padding: var(--s6); background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--r-xl); }
.contact-item h4 { margin-bottom: var(--s3); }
.form-group    { margin-bottom: var(--s5); }
.form-label    { display: block; font-size: var(--text-sm); font-weight: 500; margin-bottom: var(--s2); }
.form-control  {
  width: 100%; padding: var(--s3) var(--s4);
  background: var(--bg-surface); border: 1px solid var(--border-mid);
  border-radius: var(--r-md); font-size: var(--text-base);
  color: var(--text-primary); transition: border-color var(--fast);
}
.form-control:focus { outline: none; border-color: var(--brown-light); box-shadow: 0 0 0 3px rgba(196,131,74,.12); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .article-page-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}
@media (max-width: 768px) {
  .nav-links, .nav-search-pill { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding-top: calc(var(--nav-h) + var(--s10)); padding-bottom: var(--s10); }
  .pet-grid { grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s8); }
  .footer-bottom { flex-direction: column; text-align: center; gap: var(--s3); }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .container, .container-sm { padding: 0 var(--s4); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .search-btn { padding: var(--s3) var(--s3); font-size: var(--text-xs); }
  .pet-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .problem-grid { grid-template-columns: 1fr; }
}
