/* PawHome website — same palette as the app (see frontend AppColors). */
:root {
  --yellow: #F4C542;
  --yellow-soft: #FFF0BF;
  --ink: #1F3A2E;
  --charcoal: #26332D;
  --cream: #FFF9E8;
  --green: #6B8F71;
  --green-soft: #E6EFE3;
  --muted: #6B7570;
  --border: #EAE2C8;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(38, 51, 45, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; color: var(--charcoal); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: "Poppins", sans-serif; color: var(--ink); line-height: 1.2; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 40px); }
.muted { color: var(--muted); }
.hand { font-family: "Caveat", cursive; font-size: 1.5rem; line-height: 1.05; color: var(--ink); }
.heart { color: var(--yellow); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 14px; font: 600 .95rem "Poppins", sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(244, 197, 66, .45); }
.btn-primary { background: var(--yellow); color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { box-shadow: 0 8px 20px rgba(38, 51, 45, .3); }
.btn-ghost { background: rgba(255, 255, 255, .7); border-color: var(--border); color: var(--charcoal); }
.btn-ghost:hover { box-shadow: var(--shadow); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.pulse { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 197, 66, .55); } 50% { box-shadow: 0 0 0 14px rgba(244, 197, 66, 0); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 249, 232, .88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--border); box-shadow: 0 6px 18px rgba(38, 51, 45, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--yellow); font-size: 21px; transition: transform .4s ease; }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }
.brand-name { font: 700 1.35rem "Poppins", sans-serif; color: var(--ink); }
/* Sized by height, width auto — works for a square badge or a wide
   horizontal wordmark alike, unlike a fixed square + object-fit: cover,
   which crushed a wide logo down to a sliver of its center. */
.brand-logo { height: 40px; width: auto; max-width: 55vw; object-fit: contain; transition: transform .3s ease; }
.brand:hover .brand-logo { transform: scale(1.04); }
.footer-brand .brand-logo { height: 48px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: .92rem; font-weight: 500; position: relative; padding: 4px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--yellow); transition: width .25s ease; }
.nav a:not(.btn):hover::after { width: 100%; }
.nav-cta { padding: 10px 18px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--charcoal); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 46px 0 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.float { position: absolute; opacity: .55; animation: floaty 7s ease-in-out infinite; }
.paw.p1 { top: 10%; left: 46%; font-size: 30px; }
.paw.p2 { bottom: 8%; left: 40%; font-size: 24px; animation-delay: -3s; transform: rotate(20deg); }
.spark.s1 { top: 22%; left: 3%; color: var(--yellow); font-size: 26px; animation-duration: 5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(8deg); } }
.hero-grid > * { min-width: 0; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hand-tag { transform: rotate(-4deg); margin-bottom: 14px; display: inline-block; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; margin-bottom: 18px; }
.hl { color: var(--yellow); position: relative; white-space: nowrap; }
.lead { font-size: 1.08rem; color: var(--charcoal); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 16px; }
.free-note { font-size: .9rem; font-weight: 500; color: var(--green); }

.hero-media { position: relative; }
.blob-shadow { position: absolute; inset: 6% -4% -6% 8%; background: var(--yellow); border-radius: 58% 42% 50% 50% / 46% 58% 42% 54%; opacity: .9; animation: morph 12s ease-in-out infinite; }
.blob { position: relative; overflow: hidden; border-radius: 48% 52% 45% 55% / 52% 46% 54% 48%; animation: morph 10s ease-in-out infinite reverse; box-shadow: var(--shadow); background: var(--yellow-soft); }
.blob-photo img { width: 100%; height: 420px; object-fit: cover; transition: transform 6s ease; }
.blob-photo:hover img { transform: scale(1.06); }
.blob-photo.small img { height: 230px; }
@keyframes morph {
  0%, 100% { border-radius: 48% 52% 45% 55% / 52% 46% 54% 48%; }
  33% { border-radius: 55% 45% 52% 48% / 45% 55% 45% 55%; }
  66% { border-radius: 45% 55% 48% 52% / 55% 45% 55% 45%; }
}
.hand-photo { position: absolute; top: 6%; right: 2%; transform: rotate(6deg); color: var(--ink); text-shadow: 0 1px 8px rgba(255, 255, 255, .8); animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-8px); } }

/* ---------- Sections & panels ---------- */
.section { padding: 34px 0; }
.section.tight { padding: 14px 0; }
.section-title { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: 22px; }
.section-title.small { font-size: 1.25rem; margin-bottom: 16px; }
.panel { border-radius: var(--radius); padding: 30px; }
.panel-cream { background: linear-gradient(135deg, #FFF3C9, #FFF8E1); border: 1px solid var(--border); }
.panel-green { background: var(--green-soft); }
.icon-circle { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--yellow-soft); font-size: 25px; flex: none; transition: transform .3s ease; }
.icon-circle.green { background: #D9E8D6; }
.icon-circle.big { width: 64px; height: 64px; font-size: 30px; }
.checks li { position: relative; padding-left: 28px; margin: 9px 0; font-size: .95rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { padding: 0 22px; border-left: 1px solid rgba(38, 51, 45, .12); }
.step:first-child { padding-left: 0; border-left: 0; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); font: 700 .8rem "Poppins", sans-serif; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--muted); }
.step:hover .icon-circle, .who:hover .icon-circle, .feature:hover .icon-circle { transform: scale(1.12) rotate(-6deg); }

/* Who */
.who-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; }
.who-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 20px; }
.who { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--muted); }
.who strong { color: var(--ink); font: 600 .92rem "Poppins", sans-serif; }
.panel-green h3 { font-size: 1.05rem; margin-bottom: 8px; }
.whatsapp { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(38, 51, 45, .1); font-weight: 500; }

/* Why */
.why-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 30px; align-items: center; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.feature h3 { font-size: .95rem; margin: 10px 0 4px; }
.feature p { font-size: .84rem; color: var(--muted); }
.feature .icon-circle { width: 46px; height: 46px; font-size: 21px; }
.why-media { position: relative; }
.why-media .hand { position: absolute; top: -4px; right: 0; transform: rotate(-5deg); }
.art { font-size: 5rem; display: block; text-align: center; padding: 40px 0; animation: floaty 6s ease-in-out infinite; }

/* Split panels */
.split { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; padding: 22px; overflow: hidden; }
.split:has(> .btn) { grid-template-columns: 240px 1fr auto; }
.split-media { border-radius: 18px; overflow: hidden; background: var(--yellow-soft); min-height: 150px; display: grid; place-items: center; }
.split-media img { width: 100%; height: 100%; object-fit: cover; min-height: 170px; transition: transform .8s ease; }
.split:hover .split-media img { transform: scale(1.05); }
.split-copy h2 { font-size: 1.4rem; margin-bottom: 8px; }
.split-copy p { max-width: 36em; }
.split-copy .checks { margin-top: 10px; }

/* Safety */
.safety { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 22px 30px; }
.safety-title { display: flex; align-items: center; gap: 14px; }
.safety-title h2 { font-size: 1.25rem; }
.checks.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.checks.cols li { font-size: .83rem; color: var(--muted); margin: 0; }

/* FAQ + blog */
.faq-blog { display: grid; grid-template-columns: 1fr 1.7fr; gap: 40px; align-items: start; }
.faq { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 4px; font-weight: 500; font-size: .92rem; display: flex; justify-content: space-between; gap: 12px; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 "Poppins", sans-serif; color: var(--green); transition: transform .3s ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--green); }
.faq p { padding: 0 4px 16px; color: var(--muted); font-size: .9rem; animation: fadeDown .35s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.col-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.link-small { font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--green); white-space: nowrap; }
.link-small:hover { text-decoration: underline; }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(38, 51, 45, .14); }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--yellow-soft); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .post-card-media img { transform: scale(1.07); }
.post-card-fallback { display: grid; place-items: center; height: 100%; font-size: 3rem; }
.post-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 1rem; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--green); }
.post-card p { font-size: .85rem; color: var(--muted); }
.read-more { margin-top: auto; font-size: .82rem; font-weight: 600; color: var(--green); text-decoration: none; }

/* CTA band */
.cta-band { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--yellow); border-radius: var(--radius); padding: 30px 38px; overflow: hidden; }
.cta-band::after { content: "🐾"; position: absolute; right: 14px; bottom: -6px; font-size: 3rem; opacity: .35; transform: rotate(-16deg); }
.cta-heart { font-size: 2.2rem; color: rgba(255, 255, 255, .8); animation: bob 3.5s ease-in-out infinite; }
.cta-copy { flex: 1; min-width: 240px; }
.cta-copy h2 { font-size: 1.45rem; }
.cta-copy p { margin-top: 4px; font-weight: 500; }
.cta-band.small { margin: 44px 0 20px; padding: 24px 28px; }
.cta-band.small::after { display: none; }
.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff; padding: 9px 18px; border-radius: 12px; text-decoration: none; font: 600 1rem "Poppins", sans-serif; line-height: 1.1; transition: transform .2s; }
.store small { display: block; font: 500 .6rem "Inter", sans-serif; letter-spacing: .06em; opacity: .85; }
.store-icon { font-size: 1.4rem; }
a.store:hover { transform: translateY(-3px) scale(1.03); }
.store--soon { opacity: .85; cursor: default; }

/* Footer */
.site-footer { margin-top: 40px; padding: 40px 0 22px; background: var(--cream); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr) 1.3fr; gap: 24px; }
.footer-brand p { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.footer-grid h4 { font-size: .85rem; margin-bottom: 10px; }
.footer-grid a { display: block; font-size: .82rem; color: var(--muted); text-decoration: none; padding: 3px 0; transition: color .2s, transform .2s; }
.footer-grid a:hover { color: var(--ink); transform: translateX(3px); }
.footer-brand a { display: inline-flex; padding: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .78rem; color: var(--muted); }
.social { display: flex; gap: 14px; }
.social a { color: var(--muted); text-decoration: none; }
.social a:hover { color: var(--ink); }

/* ---------- Blog pages ---------- */
.page-head { padding: 56px 0 18px; text-align: center; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-head .lead { margin-inline: auto; color: var(--muted); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 36px; font-size: .9rem; }
.pagination a { font-weight: 600; text-decoration: none; padding: 8px 16px; border-radius: 12px; background: var(--yellow); }
.empty { text-align: center; }
.article { padding: 34px 0 20px; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 12px; }
.meta { color: var(--muted); font-size: .88rem; margin-bottom: 24px; }
.cover { width: 100%; border-radius: var(--radius); margin-bottom: 30px; box-shadow: var(--shadow); }
.related { margin-top: 50px; }
.preview-banner { background: var(--charcoal); color: #fff; text-align: center; padding: 8px; font-size: .85rem; }

.prose { font-size: 1.05rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.55rem; margin-top: 1.9em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose a { color: #4c7654; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose li { margin: .4em 0; }
.prose img { border-radius: 16px; margin-inline: auto; }
.prose blockquote { margin-left: 0; padding: 12px 20px; border-left: 4px solid var(--yellow); background: #FFF3C9; border-radius: 0 14px 14px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose th { background: #FFF3C9; }
.prose code { background: #FFF3C9; padding: 2px 6px; border-radius: 6px; font-size: .9em; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .who-grid, .why-grid, .faq-blog { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .checks.cols { grid-template-columns: 1fr 1fr; }
  .safety { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); padding: 8px 20px 20px; border-bottom: 1px solid var(--border); box-shadow: 0 14px 24px rgba(38, 51, 45, .1); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 12px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hl { white-space: normal; }
  .paw.p1, .spark.s1 { display: none; }
  .hero { padding-top: 26px; }
  .blob-photo img { height: 300px; }
  .who-list { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .split, .split:has(> .btn) { grid-template-columns: 1fr; }
  .post-grid, .post-grid.three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(3) { padding: 0; border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
