/*
Theme Name: Quietpooch Child
Template: generatepress
Version: 1.1.0
*/
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&family=Bitter:wght@600;700&display=swap");

:root {
  --qp-sage: #39824A;
  --qp-terracotta: #d9702e;
  --qp-cream: #fdfbf7;
  --qp-ink: #253025;
  --qp-rule: #e3e8e1;
}

body {
  background: var(--qp-cream);
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--qp-ink);
  scroll-behavior: smooth;
}

h1,
h2,
h3,
.site-title {
  font-family: Bitter, Georgia, serif;
  font-weight: 600;
  color: var(--qp-ink);
}

a {
  color: var(--qp-sage);
}
a:visited {
  color: #3d6647;
}
a:hover {
  color: var(--qp-terracotta);
}
:focus-visible {
  outline: 3px solid var(--qp-terracotta);
  outline-offset: 2px;
}

/* Header — cream, no border, sage hover underline */
.site-header {
  background: var(--qp-cream);
  border-bottom: none;
}
.main-navigation,
.main-navigation ul li a {
  background: var(--qp-cream);
  color: var(--qp-ink);
}
.main-navigation a {
  font-weight: 600;
  font-size: 15px;
}
.main-navigation .main-nav ul li a:hover {
  color: var(--qp-sage);
  box-shadow: inset 0 -2px 0 var(--qp-sage);
}

.grid-container {
  max-width: 1120px;
}
.entry-content,
.site-hero > * {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

/* Sage rule under headings — the batch's only underlined H2 treatment */
.entry-content h2 {
  border-bottom: 2px solid var(--qp-rule);
  padding-bottom: 8px;
}

/* Warm callout for comfort/safety notes */
blockquote {
  border-left: 4px solid var(--qp-terracotta);
  background: linear-gradient(135deg, #fdf3ec 0%, #fbf3ec 100%);
  padding: 16px 20px;
  margin: 24px 0;
  font-style: normal;
  border-radius: 0 6px 6px 0;
  transition:
    border-left-color 200ms ease,
    box-shadow 200ms ease;
}
blockquote:hover {
  border-left-color: #bf5f26;
  box-shadow: 0 2px 12px rgba(217, 112, 46, 0.08);
}

table th {
  background: #1f3352;
  color: #fff;
}
table td,
table th {
  padding: 10px 12px;
  border: 1px solid var(--qp-rule);
}

/* Hero — cream, no card */
.site-hero {
  padding: 64px 20px 56px;
  text-align: center;
}
/* Warm sage glow behind the hero — applied to body to guarantee full-bleed coverage */
body.home {
  background:
    radial-gradient(
      ellipse 900px 500px at 50% 280px,
      rgba(61, 139, 79, 0.07) 0%,
      transparent 70%
    ),
    var(--qp-cream);
}
.site-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 12px;
}
.site-hero .hero-sub {
  font-size: 1.15rem;
  color: #556054;
  margin-bottom: 28px;
}
.site-hero .wp-block-button__link {
  background: linear-gradient(135deg, #d9702e 0%, #e8823e 100%);
  color: #fff;
  border-radius: 8px;
  padding: 14px 36px;
  font-weight: 700;
  font-size: 1.02rem;
  transition:
    background 200ms ease,
    transform 150ms ease,
    box-shadow 200ms ease;
  box-shadow:
    0 4px 16px rgba(217, 112, 46, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.08);
}
.site-hero .wp-block-button__link:hover {
  background: linear-gradient(135deg, #bf5f26 0%, #d9702e 100%);
  transform: translateY(-1px);
  box-shadow:
    0 8px 28px rgba(217, 112, 46, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.06);
}
.site-hero .wp-block-button__link:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(217, 112, 46, 0.25);
}

.site-footer,
.site-info {
  background: var(--qp-ink);
  color: #edeae2;
}
.site-footer a,
.site-info a {
  color: #edeae2;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Full-bleed hero: break out of the GP container instead of sitting in a box */
.site-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}
/* Homepage carries the hero only — no card, no double frame */
body.home .entry-content {
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: none;
}
body.home .entry-content > .site-hero > * {
  padding-left: 20px;
  padding-right: 20px;
}
.site-hero {
  max-width: none;
}

/* ---------- Homepage sections ---------- */
.qp-section {
  padding: 64px 20px;
}
.qp-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.qp-section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  border-bottom: none;
  margin-bottom: 8px;
}
.qp-lede {
  color: #5a6659;
  max-width: 60ch;
  margin-bottom: 32px;
}

/* Problem cards — entry by symptom, not by product category */
.qp-problems {
  background: var(--qp-cream);
}
.qp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.qp-card {
  display: block;
  background: #fff;
  border: 1px solid var(--qp-rule);
  border-top: 3px solid var(--qp-sage);
  border-radius: 3px;
  padding: 26px 24px 22px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}
.qp-card:hover,
.qp-card:focus-visible {
  border-top-color: var(--qp-terracotta);
  box-shadow: 0 8px 24px rgba(47, 58, 47, 0.12);
  transform: translateY(-2px);
}
.qp-card h3 {
  font-size: 1.18rem;
  margin: 0 0 10px;
  color: var(--qp-ink);
}
.qp-card p {
  font-size: 0.98rem;
  color: #556054;
  margin: 0 0 16px;
}
.qp-card-cta {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--qp-sage);
}
.qp-card:hover .qp-card-cta {
  color: var(--qp-terracotta);
}

/* Method band — the one dark section, breaks the cream rhythm */
.qp-method {
  background: linear-gradient(175deg, #1e2b1e 0%, #253025 40%, #2d3a2d 100%);
  color: #e8e6dd;
}
.qp-method h2,
.qp-method h3 {
  color: #fdfbf7;
}
.qp-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 28px;
}
.qp-method h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.qp-method p {
  font-size: 0.97rem;
  color: #cfd3c9;
  margin: 0;
}
.qp-note {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #46523f;
  font-size: 0.92rem;
  color: #b9bfb2;
}

/* Category list — text rows, deliberately not an icon grid */
.qp-browse {
  background: var(--qp-cream);
}
.qp-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
}
.qp-cats a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  background: #fff;
  border-left: 3px solid transparent;
  text-decoration: none;
  color: var(--qp-ink);
  transition:
    border-color 180ms ease,
    background 180ms ease;
}
.qp-cats a:hover,
.qp-cats a:focus-visible {
  border-left-color: var(--qp-sage);
  background: #f6f4ee;
}
.qp-cats strong {
  font-family: Bitter, Georgia, serif;
  font-weight: 600;
}
.qp-cats span {
  font-size: 0.88rem;
  color: #6b7566;
}

.qp-disclosure {
  padding: 28px 20px;
  background: var(--qp-cream);
}
.qp-disclosure p {
  font-size: 0.86rem;
  color: #6b7566;
  margin: 0;
}

@media (max-width: 640px) {
  .qp-section {
    padding: 44px 18px;
  }
  .site-hero {
    padding: 48px 18px 44px;
  }
}

/* ---------- Homepage polish ---------- */
/* Sections are bands, same breakout as the hero — not boxes floating in the container */
.qp-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}
/* Hero: tighten the dead air above the headline */
body.home .site-hero {
  padding: 72px 20px 76px;
}
body.home .site-hero h1 {
  margin-top: 0;
}

/* Card CTAs share a baseline regardless of copy length */
.qp-card {
  display: flex;
  flex-direction: column;
}
.qp-card p {
  flex: 1;
}
.qp-card-cta {
  margin-top: auto;
}

/* Category tiles: equal height, hairline rules instead of ragged cream gaps */
.qp-cats {
  background: var(--qp-rule);
  border: 1px solid var(--qp-rule);
}
.qp-cats li {
  display: flex;
}
.qp-cats a {
  flex: 1;
}
/* No filler cells: borders live on the tiles, so an incomplete last row reads as blank page */
.qp-cats {
  background: transparent;
  border: none;
  gap: 0;
}
.qp-cats a {
  border: 1px solid var(--qp-rule);
  border-left: 3px solid transparent;
  margin: -1px 0 0 -1px;
}

/* ---------- Hero trust badge ---------- */
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
  font-size: 0.88rem;
  color: #6b7566;
  flex-wrap: wrap;
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust span::before {
  content: "\2713";
  color: var(--qp-sage);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- Custom footer ---------- */
.qp-footer {
  background: var(--qp-ink);
  color: #c8ccc2;
  padding: 56px 20px 0;
  font-size: 0.93rem;
  line-height: 1.6;
}
.qp-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.qp-footer h4 {
  font-family: Bitter, Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fdfbf7;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
.qp-footer p {
  margin: 0 0 14px;
  color: #b4b9ac;
}
.qp-footer-about p:last-of-type {
  font-size: 0.85rem;
  color: #909688;
}
.qp-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.qp-footer ul li {
  margin: 0;
}
.qp-footer ul li a {
  display: block;
  padding: 5px 0;
  color: #c8ccc2;
  text-decoration: none;
  font-size: 0.91rem;
  transition:
    color 180ms ease,
    padding-left 180ms ease;
}
.qp-footer ul li a:hover {
  color: #fdfbf7;
  padding-left: 4px;
}
.qp-footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 12px;
  padding-top: 12px;
}
.qp-footer-legal a {
  font-size: 0.85rem;
  color: #909688;
}
.qp-footer-legal a:hover {
  color: #c8ccc2;
}
.qp-footer-vet {
  margin-top: 24px;
  padding: 14px 18px;
  background: rgba(61, 139, 79, 0.07);
  border-radius: 4px;
  border-left: 3px solid var(--qp-sage);
  font-size: 0.84rem;
  color: #909688;
  transition: background 200ms ease;
}
.qp-footer-vet:hover {
  background: rgba(61, 139, 79, 0.12);
}
.qp-footer-bar {
  margin-top: 44px;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.82rem;
  color: #8C9787;
}
.qp-footer-bar a {
  color: #909688;
  text-decoration: none;
}
.qp-footer-bar a:hover {
  color: #c8ccc2;
}
.qp-footer-credit {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #869984;
}
.qp-footer-credit a {
  color: #8C9787;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    color 180ms ease,
    border-color 180ms ease;
}
.qp-footer-credit a:hover {
  color: #b4b9ac;
  border-bottom-color: rgba(255, 255, 255, 0.25);
}
/* Hide the default GP footer bar — replaced by custom footer */
body footer.site-info,
body .footer-widgets {
  display: none !important;
}

/* ---------- Back to top button ---------- */
.qp-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--qp-sage), #2d6e3d);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.8);
  transition:
    opacity 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 280ms ease,
    transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
  box-shadow: 0 4px 14px rgba(37, 48, 37, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qp-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.qp-back-to-top:hover {
  background: linear-gradient(135deg, #d9702e, #bf5f26);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(217, 112, 46, 0.3);
}
.qp-back-to-top:active {
  transform: translateY(0) scale(0.95);
}

/* ---------- Article content polish ---------- */
.entry-content table {
  border-collapse: collapse;
  width: 100%;
}
.entry-content table tr:hover td {
  background: #f6f4ee;
}
.entry-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.entry-content a:hover {
  text-decoration-thickness: 2px;
}
.entry-content p {
  margin-bottom: 1.3em;
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}
.entry-content li {
  margin-bottom: 0.4em;
}

/* ---------- Global interactive transitions ---------- */
a,
button,
.qp-card,
.qp-cats a,
.wp-block-button__link {
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 200ms ease,
    transform 150ms ease;
}

/* ---------- Responsive: footer stacks ---------- */
@media (max-width: 768px) {
  .qp-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .qp-footer {
    padding: 40px 20px 0;
  }
  .hero-trust {
    gap: 16px;
    flex-direction: column;
    align-items: center;
  }
  .qp-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  .qp-section {
    padding: 44px 18px;
  }
  .site-hero {
    padding: 48px 18px 44px;
  }
  .qp-footer-inner {
    gap: 28px;
  }
  .qp-footer-bar {
    padding: 14px 16px;
  }
}

/* ---------- Scroll-reveal + entrance animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Generic reveal: JS adds .qp-reveal; initial state is invisible */
.qp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.qp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance — staggered, runs once on page load */
.site-hero h1 {
  animation: fadeUp 650ms cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.site-hero .hero-sub {
  animation: fadeUp 650ms cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}
.site-hero .wp-block-buttons {
  animation: fadeUp 650ms cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
}
.hero-trust span {
  opacity: 0;
  animation: fadeIn 400ms ease forwards;
}
.hero-trust span:nth-child(1) {
  animation-delay: 0.7s;
}
.hero-trust span:nth-child(2) {
  animation-delay: 0.95s;
}
.hero-trust span:nth-child(3) {
  animation-delay: 1.2s;
}

/* Method band — staggered items inside the dark section */
.qp-method .qp-method-grid > div {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.qp-method.is-visible .qp-method-grid > div {
  opacity: 1;
  transform: translateY(0);
}
.qp-method.is-visible .qp-method-grid > div:nth-child(1) {
  transition-delay: 0.08s;
}
.qp-method.is-visible .qp-method-grid > div:nth-child(2) {
  transition-delay: 0.2s;
}
.qp-method.is-visible .qp-method-grid > div:nth-child(3) {
  transition-delay: 0.32s;
}

/* Category list — staggered tile entrance */
.qp-cats li {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 350ms ease,
    transform 350ms ease;
}
.qp-browse.is-visible .qp-cats li {
  opacity: 1;
  transform: translateY(0);
}
.qp-browse.is-visible .qp-cats li:nth-child(1) {
  transition-delay: 0s;
}
.qp-browse.is-visible .qp-cats li:nth-child(2) {
  transition-delay: 0.05s;
}
.qp-browse.is-visible .qp-cats li:nth-child(3) {
  transition-delay: 0.1s;
}
.qp-browse.is-visible .qp-cats li:nth-child(4) {
  transition-delay: 0.15s;
}
.qp-browse.is-visible .qp-cats li:nth-child(5) {
  transition-delay: 0.2s;
}
.qp-browse.is-visible .qp-cats li:nth-child(6) {
  transition-delay: 0.25s;
}
.qp-browse.is-visible .qp-cats li:nth-child(7) {
  transition-delay: 0.3s;
}

/* Card hover — richer lift with warm glow */
.qp-card {
  transition:
    border-color 200ms ease,
    box-shadow 250ms ease,
    transform 200ms ease;
}
.qp-card:hover,
.qp-card:focus-visible {
  border-top-color: var(--qp-terracotta);
  box-shadow:
    0 12px 32px rgba(37, 48, 37, 0.14),
    0 0 0 1px rgba(61, 139, 79, 0.06);
  transform: translateY(-3px);
}

/* Category link — warm left-border slide on hover */
.qp-cats a:hover {
  border-left-color: var(--qp-terracotta);
}

/* Disclosure subtle top rule */
.qp-disclosure {
  border-top: 1px solid var(--qp-rule);
}

/* Respect reduced-motion for all entrance + reveal animations */
@media (prefers-reduced-motion: reduce) {
  .qp-reveal,
  .site-hero h1,
  .site-hero .hero-sub,
  .site-hero .wp-block-buttons,
  .hero-trust span,
  .qp-method .qp-method-grid > div,
  .qp-cats li {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Touch targets. Footer and nav links measured 18-32px tall at 375px; 44px is the
   minimum comfortable tap area. Scoped to touch widths. Added 2026-08-24. */
@media (max-width: 768px) {
	.qp-footer ul li a,
	.qp-footer-legal a,
	.qp-footer-bar a,
	.qp-cats a,
	.main-navigation .main-nav ul li a {
		display: flex;
		align-items: center;
		min-height: 44px;
	}
}

/* GeneratePress Customizer overrides. Both of these live in the database
   (generate_settings), not in this file, so they were invisible to a stylesheet
   review and only showed up when the rendered page was measured. Pinned here so the
   values are in version control. Added 2026-08-24.
     site description  #6B7A6B on cream = 4.40  -> 4.51
     hero CTA bg       white on #C4703A = 3.67  -> 4.53 */
.site-description {
	color: #6A786A;
}

/* GeneratePress injects an inline rule for
   `a.wp-block-button__link:not(.has-background)` which outranks
   `.site-hero .wp-block-button__link` on specificity AND lands later in the head. It
   was flattening the intended gradient to a solid #C4703A -- so the hero button was
   neither the designed gradient nor accessible (white text 3.67:1). Matching GP's
   specificity restores the gradient; the stops are darkened just enough for white to
   clear 4.5:1 (#d9702e -> #BA5C22 = 4.52, #e8823e -> #BE5A17 = 4.50). */
.site-hero a.wp-block-button__link:not(.has-background) {
	background: linear-gradient(135deg, #BA5C22 0%, #BE5A17 100%);
}

/* Round two: back-to-top and the footer credit were missed first time. */
@media (max-width: 768px) {
	a.qp-back-to-top,
	.qp-footer-credit a,
	.qp-footer-bar a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

/* ==== BEGIN seo_theme_block.py ==== */
/* Generated by scripts/wordpress/seo_theme_block.py -- edit the config there. */
.qp-seo-latest,
.qp-seo-faq { padding: 3.5rem 1.25rem; }
.qp-seo-faq { background: #F3F5F3; }
.qp-seo-inner { max-width: 1120px; margin: 0 auto; }
.qp-seo-latest h2,
.qp-seo-faq h2 { margin: 0 0 .5rem; color: #5F7A61; }
.qp-seo-lede { margin: 0 0 2rem; max-width: 60ch; opacity: .85; }
.qp-seo-grid {
	display: grid; gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.qp-seo-card {
	display: block; text-decoration: none; color: #2F3A31;
	background: #FFFFFF; border-radius: 10px; overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.08);
	transition: transform .18s ease, box-shadow .18s ease;
}
.qp-seo-card:hover,
.qp-seo-card:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.13); }
.qp-seo-card img { display: block; width: 100%; height: 180px; object-fit: cover; }
.qp-seo-cat {
	display: inline-block; margin: 1rem 1rem 0; font-size: .74rem;
	letter-spacing: .06em; text-transform: uppercase; color: #C4703A;
}
.qp-seo-card h3 { margin: .35rem 1rem 1.15rem; font-size: 1.03rem; line-height: 1.35; }
.qp-seo-qa { margin: 0 0 1.6rem; max-width: 72ch; }
.qp-seo-qa h3 { margin: 0 0 .4rem; font-size: 1.08rem; color: #5F7A61; }
.qp-seo-qa p { margin: 0; }
.qp-seo-source { margin: 2rem 0 0; font-size: .88rem; opacity: .8; max-width: 72ch; }
@media (prefers-reduced-motion: reduce) {
	.qp-seo-card { transition: none; }
	.qp-seo-card:hover { transform: none; }
}
/* ==== END seo_theme_block.py ==== */
