/*
Theme Name: PetZuoo GeneratePress Child
Theme URI: https://petzuoo.com/
Description: A fast, editorial, pet-focused GeneratePress child theme for PetZuoo.com. Built for strong readability, clean UX, accessibility, and ad-network compatibility.
Author: PetZuoo
Template: generatepress
Version: 1.0.0
Text Domain: petzuoo
*/

:root {
  --pz-bg: #fbfaf7;
  --pz-surface: #ffffff;
  --pz-surface-soft: #f0f5f1;
  --pz-text: #1f2927;
  --pz-muted: #65716d;
  --pz-green: #1f4f46;
  --pz-green-2: #2c675b;
  --pz-accent: #d86f4f;
  --pz-accent-soft: #f7e7df;
  --pz-border: #dde5e1;
  --pz-shadow: 0 14px 40px rgba(31, 79, 70, .08);
  --pz-radius: 18px;
  --pz-radius-sm: 12px;
  --pz-max: 1200px;
  --pz-content: 760px;
  --pz-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pz-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pz-bg);
  color: var(--pz-text);
  font-family: var(--pz-font);
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--pz-green-2); text-decoration-thickness: .08em; text-underline-offset: .14em; }
a:hover { color: var(--pz-accent); }
button, input, textarea, select { font: inherit; }
::selection { background: var(--pz-accent-soft); color: var(--pz-text); }

.pz-wrap { width: min(calc(100% - 40px), var(--pz-max)); margin-inline: auto; }
.pz-content-wrap { width: min(calc(100% - 40px), var(--pz-content)); margin-inline: auto; }
.pz-skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 10000;
  background: var(--pz-text); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.pz-skip-link:focus { top: 16px; }

/* Header */
.pz-site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,247,.95);
  border-bottom: 1px solid rgba(221,229,225,.85);
  backdrop-filter: blur(12px);
}
.pz-header-row { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.pz-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--pz-text); text-decoration: none; font-weight: 800; letter-spacing: -.03em; font-size: 1.45rem; }
.pz-brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--pz-green); color: #fff; flex: 0 0 auto; }
.pz-brand-mark svg { width: 22px; height: 22px; }
.pz-brand .custom-logo { max-height: 46px; width: auto; }
.pz-main-nav { justify-self: center; }
.pz-main-nav ul { display: flex; gap: 26px; align-items: center; list-style: none; margin: 0; padding: 0; }
.pz-main-nav a { color: var(--pz-text); font-size: .95rem; font-weight: 650; text-decoration: none; }
.pz-main-nav a:hover, .pz-main-nav .current-menu-item > a { color: var(--pz-accent); }
.pz-header-actions { display: flex; align-items: center; gap: 10px; }
.pz-search-form { display: flex; align-items: center; min-width: 210px; border: 1px solid var(--pz-border); border-radius: 999px; padding: 4px 5px 4px 14px; background: #fff; }
.pz-search-form input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--pz-text); }
.pz-search-form button { border: 0; background: var(--pz-green); color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.pz-mobile-toggle { display: none; border: 1px solid var(--pz-border); background: #fff; border-radius: 10px; padding: 9px 11px; cursor: pointer; color: var(--pz-text); }
.pz-mobile-menu { display: none; border-top: 1px solid var(--pz-border); background: var(--pz-surface); }
.pz-mobile-menu.is-open { display: block; }
.pz-mobile-menu ul { list-style: none; margin: 0; padding: 16px 0 20px; }
.pz-mobile-menu li + li { border-top: 1px solid #eef2f0; }
.pz-mobile-menu a { display: block; padding: 12px 0; font-weight: 650; color: var(--pz-text); text-decoration: none; }
.pz-mobile-search { padding: 0 0 20px; }
.pz-mobile-search .pz-search-form { display: flex; width: 100%; min-width: 0; }

/* Shared typography */
h1, h2, h3, h4 { color: var(--pz-text); line-height: 1.18; letter-spacing: -.03em; margin-top: 1.6em; margin-bottom: .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.65rem); }
p { margin: 0 0 1.25em; }
.pz-kicker { color: var(--pz-accent); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.pz-section-title { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.pz-section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px; }
.pz-section-head p { max-width: 620px; margin: 0; color: var(--pz-muted); }
.pz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--pz-green); color: #fff; border-radius: 999px; padding: 12px 18px; font-weight: 750; text-decoration: none; border: 1px solid var(--pz-green); transition: transform .2s ease, background .2s ease; }
.pz-btn:hover { color: #fff; background: var(--pz-green-2); transform: translateY(-1px); }
.pz-btn--ghost { background: transparent; color: var(--pz-green); }
.pz-btn--ghost:hover { color: #fff; }

/* Home */
.pz-hero { padding: clamp(48px, 8vw, 92px) 0 56px; }
.pz-hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(34px, 6vw, 78px); align-items: center; }
.pz-hero-copy h1 { margin: 10px 0 20px; font-size: clamp(2.6rem, 6vw, 5.1rem); }
.pz-hero-copy p { color: var(--pz-muted); font-size: 1.08rem; max-width: 620px; }
.pz-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pz-hero-feature { background: var(--pz-surface); border: 1px solid var(--pz-border); border-radius: 26px; overflow: hidden; box-shadow: var(--pz-shadow); }
.pz-hero-feature img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pz-hero-feature-body { padding: 24px 26px 26px; }
.pz-hero-feature h2 { margin: 7px 0 10px; font-size: clamp(1.45rem, 3vw, 2.15rem); }
.pz-hero-feature h2 a { color: var(--pz-text); text-decoration: none; }
.pz-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--pz-muted); font-size: .82rem; font-weight: 600; }
.pz-topic-strip { padding: 0 0 24px; }
.pz-topic-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pz-topic-pill { border: 1px solid var(--pz-border); background: var(--pz-surface); color: var(--pz-text); padding: 9px 14px; border-radius: 999px; font-weight: 650; font-size: .9rem; text-decoration: none; }
.pz-topic-pill:hover { border-color: var(--pz-accent); color: var(--pz-accent); }
.pz-home-section { padding: 58px 0; }
.pz-home-section--soft { background: var(--pz-surface-soft); border-block: 1px solid #e2eae6; }

/* Cards */
.pz-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.pz-card { background: var(--pz-surface); border: 1px solid var(--pz-border); border-radius: var(--pz-radius); overflow: hidden; min-width: 0; transition: transform .2s ease, box-shadow .2s ease; }
.pz-card:hover { transform: translateY(-3px); box-shadow: var(--pz-shadow); }
.pz-card-media { display: block; background: #e9efec; }
.pz-card-media img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.pz-card-body { padding: 20px; }
.pz-card h2, .pz-card h3 { margin: 7px 0 10px; font-size: 1.25rem; }
.pz-card h2 a, .pz-card h3 a { color: var(--pz-text); text-decoration: none; }
.pz-card p { margin: 0; color: var(--pz-muted); font-size: .94rem; }
.pz-card-footer { margin-top: 16px; font-size: .84rem; font-weight: 750; }
.pz-empty-card { min-height: 220px; display: grid; place-items: center; padding: 30px; text-align: center; }

/* Archives */
.pz-page-hero { padding: 58px 0 28px; }
.pz-page-hero h1 { margin: 8px 0 12px; font-size: clamp(2.2rem, 5vw, 4rem); }
.pz-page-hero p { color: var(--pz-muted); max-width: 760px; }
.pz-archive { padding: 28px 0 70px; }
.pz-pagination { margin-top: 38px; }
.pz-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-pagination a, .pz-pagination span { min-width: 40px; min-height: 40px; display: grid; place-items: center; border: 1px solid var(--pz-border); border-radius: 10px; background: #fff; text-decoration: none; }
.pz-pagination .current { background: var(--pz-green); color: #fff; border-color: var(--pz-green); }

/* Single article */
.pz-article-shell { padding: 50px 0 78px; }
.pz-article-head { width: min(calc(100% - 40px), 980px); margin: 0 auto 34px; text-align: center; }
.pz-article-head h1 { margin: 10px auto 18px; max-width: 980px; font-size: clamp(2.35rem, 5.7vw, 4.8rem); }
.pz-article-head .pz-meta { justify-content: center; }
.pz-article-feature { width: min(calc(100% - 40px), 1120px); margin: 0 auto 42px; }
.pz-article-feature img { display: block; width: 100%; max-height: 700px; object-fit: cover; border-radius: 24px; box-shadow: var(--pz-shadow); }
.pz-article-layout { width: min(calc(100% - 40px), 1120px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 300px); gap: 56px; align-items: start; justify-content: center; }
.pz-article-content { min-width: 0; }
.pz-article-content > *:first-child { margin-top: 0; }
.pz-article-content p, .pz-article-content li { color: #2a3431; }
.pz-article-content h2 { margin-top: 1.8em; padding-top: .2em; }
.pz-article-content h3 { margin-top: 1.55em; }
.pz-article-content ul, .pz-article-content ol { margin: 0 0 1.35em; padding-left: 1.35em; }
.pz-article-content li + li { margin-top: .38em; }
.pz-article-content blockquote { margin: 1.8em 0; padding: 20px 24px; border-left: 4px solid var(--pz-accent); background: var(--pz-accent-soft); border-radius: 0 12px 12px 0; }
.pz-article-content figure { margin: 1.8em 0; }
.pz-article-content figure img, .pz-article-content > img { border-radius: 14px; }
.pz-article-content figcaption { color: var(--pz-muted); font-size: .82rem; text-align: center; margin-top: 8px; }
.pz-article-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin: 1.7em 0; background: #fff; border: 1px solid var(--pz-border); border-radius: 12px; }
.pz-article-content th, .pz-article-content td { padding: 12px 14px; border-bottom: 1px solid var(--pz-border); text-align: left; }
.pz-article-content th { background: var(--pz-surface-soft); }
.pz-article-content hr { border: 0; border-top: 1px solid var(--pz-border); margin: 2.5em 0; }
.pz-article-content a { font-weight: 650; }
.pz-article-content .wp-block-image { margin-block: 2em; }
.pz-article-content .wp-block-button__link { background: var(--pz-green); border-radius: 999px; }
.pz-article-content .wp-block-separator { border-color: var(--pz-border); }
.pz-article-content .wp-block-table { overflow-x: auto; }
.pz-article-content .wp-caption { max-width: 100%; }
.pz-article-content input[type="text"], .pz-article-content input[type="email"], .pz-article-content textarea { max-width: 100%; }
.pz-sidebar { position: sticky; top: 105px; }
.pz-side-box { background: #fff; border: 1px solid var(--pz-border); border-radius: var(--pz-radius); padding: 22px; margin-bottom: 18px; }
.pz-side-box h2 { margin: 0 0 14px; font-size: 1rem; letter-spacing: -.01em; }
.pz-side-list { list-style: none; padding: 0; margin: 0; }
.pz-side-list li + li { border-top: 1px solid #edf1ef; }
.pz-side-list a { display: block; padding: 10px 0; color: var(--pz-text); text-decoration: none; font-size: .9rem; font-weight: 650; line-height: 1.4; }
.pz-author-box { margin-top: 46px; padding: 24px; background: var(--pz-surface-soft); border: 1px solid var(--pz-border); border-radius: var(--pz-radius); display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.pz-author-box img { border-radius: 50%; }
.pz-author-box h2 { margin: 0 0 7px; font-size: 1.15rem; }
.pz-author-box p { color: var(--pz-muted); margin: 0; font-size: .92rem; }
.pz-vet-note { margin-top: 28px; padding: 18px 20px; border: 1px solid #efd4c9; background: #fff8f4; border-radius: 14px; font-size: .9rem; color: #5b4a43; }
.pz-related { margin-top: 60px; }

/* Pages */
.pz-page-shell { padding: 54px 0 80px; }
.pz-page-card { width: min(calc(100% - 40px), 880px); margin: 0 auto; background: #fff; border: 1px solid var(--pz-border); border-radius: 24px; padding: clamp(26px, 5vw, 58px); box-shadow: 0 10px 30px rgba(31,79,70,.04); }
.pz-page-card h1 { margin-top: 0; font-size: clamp(2.2rem, 5vw, 4rem); }
.pz-page-card h2 { font-size: 1.65rem; }
.pz-page-card ul, .pz-page-card ol { padding-left: 1.3em; }
.pz-page-card .updated { color: var(--pz-muted); font-size: .85rem; }

/* Contact */
.pz-contact-form { display: grid; gap: 16px; margin-top: 24px; }
.pz-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pz-contact-form label { display: grid; gap: 7px; font-size: .9rem; font-weight: 700; }
.pz-contact-form input, .pz-contact-form textarea { width: 100%; border: 1px solid var(--pz-border); border-radius: 11px; background: #fff; padding: 12px 13px; color: var(--pz-text); outline: none; }
.pz-contact-form input:focus, .pz-contact-form textarea:focus { border-color: var(--pz-green); box-shadow: 0 0 0 3px rgba(31,79,70,.1); }
.pz-contact-form textarea { min-height: 160px; resize: vertical; }
.pz-form-alert { padding: 12px 14px; border-radius: 10px; margin: 18px 0; font-weight: 650; }
.pz-form-alert--success { background: #edf7f0; border: 1px solid #c9e3d0; color: #245b35; }
.pz-form-alert--error { background: #fff1ed; border: 1px solid #f1cabe; color: #7a3e30; }
.pz-hp { position: absolute !important; left: -9999px !important; }

/* 404 */
.pz-404 { text-align: center; padding: 100px 0 120px; }
.pz-404 h1 { margin: 0; font-size: clamp(4rem, 15vw, 9rem); color: var(--pz-green); }
.pz-404 h2 { margin-top: 4px; }

/* Footer */
.pz-site-footer { background: #173c36; color: #dce8e3; margin-top: 20px; }
.pz-footer-main { padding: 58px 0 42px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 42px; }
.pz-footer-brand .pz-brand { color: #fff; margin-bottom: 14px; }
.pz-footer-brand p { color: #b9ccc5; max-width: 420px; font-size: .92rem; }
.pz-footer-col h2 { margin: 0 0 16px; color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.pz-footer-col ul { list-style: none; margin: 0; padding: 0; }
.pz-footer-col li + li { margin-top: 9px; }
.pz-footer-col a { color: #dce8e3; text-decoration: none; font-size: .9rem; }
.pz-footer-col a:hover { color: #fff; text-decoration: underline; }
.pz-footer-bottom { border-top: 1px solid rgba(255,255,255,.13); padding: 18px 0 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: #b9ccc5; font-size: .8rem; }
.pz-footer-bottom p { margin: 0; }

/* Utilities */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; padding: 10px 14px; margin: 0; top: 10px; left: 10px; z-index: 100000; background: #fff; color: #000; }

@media (max-width: 980px) {
  .pz-header-row { grid-template-columns: auto 1fr auto; gap: 16px; }
  .pz-main-nav, .pz-header-actions .pz-search-form { display: none; }
  .pz-mobile-toggle { display: inline-flex; }
  .pz-header-actions { justify-self: end; }
  .pz-hero-grid { grid-template-columns: 1fr; }
  .pz-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pz-article-layout { grid-template-columns: minmax(0,1fr); }
  .pz-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .pz-side-box { margin-bottom: 0; }
  .pz-footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .pz-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .pz-wrap, .pz-content-wrap, .pz-article-head, .pz-article-feature, .pz-article-layout, .pz-page-card { width: min(calc(100% - 28px), var(--pz-max)); }
  .pz-site-header { position: relative; }
  .pz-header-row { min-height: 66px; }
  .pz-brand { font-size: 1.28rem; }
  .pz-brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .pz-hero { padding-top: 38px; }
  .pz-hero-copy h1 { font-size: clamp(2.4rem, 13vw, 3.8rem); }
  .pz-section-head { align-items: start; flex-direction: column; }
  .pz-card-grid { grid-template-columns: 1fr; }
  .pz-home-section { padding: 44px 0; }
  .pz-article-shell { padding-top: 36px; }
  .pz-article-head { text-align: left; }
  .pz-article-head .pz-meta { justify-content: flex-start; }
  .pz-article-head h1 { font-size: clamp(2.2rem, 12vw, 3.5rem); }
  .pz-article-feature { margin-bottom: 30px; }
  .pz-article-feature img { border-radius: 16px; }
  .pz-sidebar { grid-template-columns: 1fr; }
  .pz-author-box { grid-template-columns: 48px 1fr; padding: 18px; }
  .pz-form-row { grid-template-columns: 1fr; }
  .pz-footer-main { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 44px; }
  .pz-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 440px) {
  .pz-footer-main { grid-template-columns: 1fr; }
}

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