/* ==========================================================================
   Apnaw Forever — shared theme ("Coming Soon" design system, extended)
   Brand: Orange #F5821F · Teal-slate #3C5966 · Navy #1F3A4D · Cream #FCEFE0
   Fonts: Baloo 2 (display) · Caveat (script accent) · Nunito (body)
   Used by every page via includes/header.php + includes/footer.php
   ========================================================================== */

:root{
  --orange:#F5821F; --orange-deep:#E8681B; --orange-soft:#FBDFC4; --orange-tint:#FFF3E6;
  --teal:#3C5966; --teal-deep:#2C4550; --navy:#1F3A4D;
  --cream:#FCEFE0; --cream-hi:#FFF7ED; --white:#ffffff;
  --muted:#6d818a; --line:rgba(60,89,102,.14);

  --font-display:"Baloo 2","Segoe UI",sans-serif;
  --font-script:"Caveat",cursive;
  --font-body:"Nunito","Segoe UI",sans-serif;

  /* fluid type */
  --step-hero:clamp(2.4rem, 1.3rem + 5vw, 5rem);
  --step-h2:clamp(1.7rem, 1.1rem + 2.4vw, 2.8rem);
  --step-h3:clamp(1.2rem, 1rem + .9vw, 1.55rem);
  --step-sub:clamp(1.4rem, 1.05rem + 1.6vw, 2.2rem);
  --step-lead:clamp(1.02rem, .96rem + .4vw, 1.2rem);

  /* spacing */
  --gutter:clamp(1.25rem,5vw,2rem);
  --section-y:clamp(1.9rem, 1rem + 3vw, 3.75rem);  /* ~60px desktop, ~30px mobile */
  --maxw:1180px;

  --shadow-soft:0 18px 40px -18px rgba(31,58,77,.35);
  --shadow-card:0 22px 48px -26px rgba(31,58,77,.45);
  --shadow-btn:0 12px 24px -10px rgba(232,104,27,.6);
  --radius:22px; --radius-sm:14px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
html,body{ margin:0; }
body{
  font-family:var(--font-body); color:var(--navy); line-height:1.65;
  background:
    radial-gradient(1200px 700px at 88% -12%, #FFE7CC 0%, transparent 55%),
    radial-gradient(1000px 650px at -12% 108%, #FFE0C6 0%, transparent 55%),
    var(--cream);
  min-height:100dvh; overflow-x:hidden; -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:var(--orange-deep); }
h1,h2,h3,h4{ font-family:var(--font-display); color:var(--teal-deep); line-height:1.08;
             letter-spacing:-.4px; margin:0 0 .5rem; }
p{ margin:0 0 1rem; }

.skip-link{ position:absolute; left:-999px; top:0; z-index:200; background:var(--teal);
            color:#fff; padding:.7rem 1.1rem; border-radius:0 0 12px 0; font-weight:700; }
.skip-link:focus{ left:0; }

/* ---------- Layout helpers ---------- */
.container{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.section{ padding-block:var(--section-y); position:relative; }
.section--tint{ background:linear-gradient(180deg,transparent, var(--orange-tint) 12% 88%, transparent); }
.center{ text-align:center; }
.eyebrow{ font-family:var(--font-script); color:var(--orange-deep); font-size:var(--step-sub);
          line-height:1; margin:0 0 .25rem; transform:rotate(-2deg); display:inline-block; }
.section__head{ max-width:64ch; margin-inline:auto; margin-bottom:clamp(2rem,4vw,3rem); }
.section__head h2{ font-size:var(--step-h2); font-weight:800; }
.section__head p{ font-size:var(--step-lead); color:var(--navy); opacity:.9; }
.accent{ color:var(--orange);
         background-image:linear-gradient(var(--orange-soft),var(--orange-soft));
         background-repeat:no-repeat; background-position:0 92%; background-size:100% .16em;
         -webkit-box-decoration-break:clone; box-decoration-break:clone; }

/* ---------- Buttons ---------- */
.btn{ display:inline-flex; align-items:center; gap:.55rem; text-decoration:none; cursor:pointer;
      font-family:var(--font-display); font-weight:700; font-size:1.02rem; line-height:1;
      padding:.9rem 1.6rem; border-radius:999px; border:2px solid transparent;
      transition:transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
      min-height:46px; }
.btn svg{ width:20px; height:20px; flex:none; }
.btn--primary{ background:var(--orange); color:#fff; box-shadow:var(--shadow-btn); }
.btn--primary:hover{ background:var(--orange-deep); transform:translateY(-2px); }
.btn--ghost{ background:#fff; color:var(--teal-deep); border-color:var(--line); box-shadow:var(--shadow-soft); }
.btn--ghost:hover{ transform:translateY(-2px); border-color:var(--orange); color:var(--orange-deep); }
.btn--on-teal{ background:#fff; color:var(--teal-deep); }
.btn--on-teal:hover{ background:var(--orange); color:#fff; transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }
.btn-row{ display:flex; flex-wrap:wrap; gap:.8rem; }

/* ---------- Pills / badges ---------- */
.pill{ display:inline-flex; align-items:center; gap:.4rem; font-family:var(--font-body);
       font-weight:700; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase;
       padding:.3em .7em; border-radius:999px; }
.pill--available{ background:#e8f6ec; color:#1f7a44; }
.pill--available .dot{ width:7px; height:7px; border-radius:50%; background:#2ec27a;
                       box-shadow:0 0 0 0 rgba(46,194,122,.5); animation:pulse 2s infinite; }
.pill--adopted{ background:var(--orange-soft); color:var(--orange-deep); }
.pill--urgent{ background:#fde4e0; color:#c33b22; }

/* Reusable "live" pill with a pulsing dot (coming-soon badge style) */
.live-pill{ display:inline-flex; align-items:center; gap:.5rem; font-family:var(--font-body);
            font-weight:700; font-size:.76rem; letter-spacing:.12em; text-transform:uppercase;
            color:var(--teal); background:#fff; border:1.5px solid var(--line);
            padding:.42rem .95rem; border-radius:999px; box-shadow:var(--shadow-soft); }
.live-pill .dot{ width:8px; height:8px; border-radius:50%; background:var(--orange);
                 box-shadow:0 0 0 0 rgba(245,130,31,.55); animation:pulse 2s infinite; }
.live-pill--onteal{ background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.25); color:#fff; }

/* ---------- Site header / nav ---------- */
.site-header{ position:sticky; top:0; z-index:100; background:rgba(252,239,224,.82);
              backdrop-filter:saturate(1.2) blur(10px); border-bottom:1px solid var(--line); }
/* 3-part layout: logo left, links centered, CTA right */
.nav{ display:flex; align-items:center; gap:1rem; min-height:84px; padding-block:.55rem; }
.nav__logo{ flex:1 1 0; display:flex; align-items:center; }
.nav__logo img{ width:128px; height:auto; aspect-ratio:16/9; }
.nav__links{ flex:0 1 auto; display:flex; align-items:center; justify-content:center;
             gap:.3rem; list-style:none; margin:0; padding:0; }
.nav__links a{ position:relative; text-decoration:none; color:var(--teal-deep); font-weight:700;
               font-family:var(--font-display); padding:.55rem .9rem; border-radius:999px;
               transition:background .2s, color .2s; }
.nav__links a:hover{ background:#fff; color:var(--orange-deep); }
.nav__links a[aria-current="page"]{ color:var(--orange-deep); }
/* absolute underline: never changes link height, so the active item stays aligned with the rest */
.nav__links a[aria-current="page"]::after{ content:""; position:absolute; left:.9rem; right:.9rem; bottom:3px;
               height:3px; border-radius:3px; background:var(--orange); }
.nav__links a[aria-current="page"]:hover{ background:#fff; color:var(--orange-deep); }
.nav__cta--d{ flex:1 1 0; display:flex; justify-content:flex-end; }
.nav__cta--m{ display:none; }
.nav__toggle{ display:none; width:46px; height:46px; border:1.5px solid var(--line);
              background:#fff; border-radius:12px; cursor:pointer; color:var(--teal-deep);
              align-items:center; justify-content:center; }
.nav__toggle svg{ width:24px; height:24px; }
.nav__toggle .ic-close{ display:none; }
.nav.is-open .nav__toggle .ic-open{ display:none; }
.nav.is-open .nav__toggle .ic-close{ display:block; }

@media (max-width:860px){
  .nav__toggle{ display:inline-flex; }
  .nav__logo{ flex:0 0 auto; margin-right:auto; }
  .nav__cta--d{ display:none; }
  .nav__links{ position:absolute; left:0; right:0; top:100%; flex-direction:column; align-items:stretch;
               gap:.1rem; background:var(--cream-hi); border-bottom:1px solid var(--line);
               padding:.6rem var(--gutter) 1.1rem; box-shadow:var(--shadow-soft);
               display:none; }
  .nav.is-open .nav__links{ display:flex; }
  .nav__links a{ padding:.8rem .6rem; font-size:1.1rem; }
  .nav__links a[aria-current="page"]::after{ display:none; }
  .nav__cta--m{ display:block; margin-top:.5rem; }
  .nav__cta--m .btn{ width:100%; justify-content:center; }
}

/* ---------- Decorative layer ---------- */
.decor{ position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.blob{ position:absolute; border-radius:47% 53% 44% 56%/55% 44% 56% 45%; filter:blur(2px); }
.paw-bg{ position:absolute; color:var(--orange); opacity:.1; }
.paw-bg svg{ width:100%; height:auto; }
.decor .paw-bg{ animation:float 9.5s ease-in-out infinite; }

/* Section decor — fills the empty side gutters on wide screens (like the coming-soon page).
   Content sits above via .section > .container { z-index:1 }. Hidden on mobile where sides aren't blank. */
.section{ overflow:hidden; }
.section > .container{ position:relative; z-index:1; }
.sec-decor{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.sec-decor .blob{ opacity:.5; }
.sec-decor .paw-bg{ animation:float 10s ease-in-out infinite; }
@media (max-width:980px){ .sec-decor{ display:none; } }

/* ---------- Experiment page: coming-soon-style fixed animated background ---------- */
/* On .exp, a single fixed decor layer sits behind everything and the per-section
   tints/decor are removed, so blobs & paws stay in view and drift as you scroll. */
.decor--fixed{ position:fixed; inset:0; z-index:-1; pointer-events:none; overflow:hidden; }
.decor--fixed .blob{ position:absolute; border-radius:47% 53% 44% 56%/55% 44% 56% 45%; filter:blur(2px); }
.decor--fixed .paw-bg{ position:absolute; animation:float 9s ease-in-out infinite; }
body.exp .section--tint{ background:transparent; }
/* remove ALL per-section decor (hero + cta .decor and every .sec-decor); only .decor--fixed remains */
body.exp .decor,
body.exp .sec-decor{ display:none; }
@keyframes drift{ 50%{ transform:translate(29px,-34px) rotate(13deg); } }
@keyframes float{ 50%{ transform:translateY(-18px) rotate(-8deg); } }
@keyframes pulse{ 70%{ box-shadow:0 0 0 10px rgba(245,130,31,0); } 100%{ box-shadow:0 0 0 0 rgba(245,130,31,0); } }

/* ---------- Hero ---------- */
.hero{ position:relative; overflow:hidden; }
.hero__inner{ position:relative; z-index:1; display:grid; gap:clamp(2rem,5vw,3.5rem);
              align-items:center; padding-block:clamp(2.25rem, 1.8rem + 1.6vw, 3.75rem); }
@media (min-width:880px){ .hero__inner{ grid-template-columns:1.05fr .95fr; } }
.hero__script{ font-family:var(--font-script); color:var(--orange-deep); font-size:var(--step-sub);
               line-height:1; display:inline-block; transform:rotate(-2deg); margin-bottom:.3rem; }
.hero h1{ font-size:var(--step-hero); font-weight:800; color:var(--teal); margin:.2rem 0 .3rem; }
.hero__lead{ font-size:var(--step-lead); max-width:50ch; color:var(--navy); opacity:.92; margin-bottom:1.5rem; }
.hero__stats{ display:flex; flex-wrap:wrap; gap:clamp(1rem,4vw,2.2rem); margin-top:1.8rem; }
.hero__stat b{ font-family:var(--font-display); font-weight:800;
               font-size:clamp(1.3rem, 1rem + 1.4vw, 1.9rem); color:var(--orange-deep);
               display:block; line-height:1; }
.hero__stat span{ font-size:clamp(.72rem, .68rem + .2vw, .85rem); color:var(--teal); font-weight:600; }
/* keep the three stats on a single row on small screens */
@media (max-width:560px){
  .hero__stats{ flex-wrap:nowrap; gap:.7rem; }
  .hero__stat{ flex:1 1 0; min-width:0; }
}

/* hero visual (branded composition — swap for a real photo later) */
.hero__art{ position:relative; aspect-ratio:4/3.4; border-radius:28px; overflow:hidden;
            background:
              radial-gradient(120% 120% at 20% 10%, var(--orange) 0%, var(--orange-deep) 60%);
            box-shadow:var(--shadow-card); display:grid; place-items:center; isolation:isolate; }
.hero__art::before{ content:""; position:absolute; inset:0; z-index:-1;
            background:radial-gradient(60% 60% at 80% 85%, rgba(255,255,255,.22), transparent 70%); }
.hero__art img{ width:70%; filter:drop-shadow(0 20px 30px rgba(0,0,0,.18)); }
.hero__art--photo{ background:var(--teal); }
.hero__art--photo img{ width:100%; height:100%; object-fit:cover; filter:none; }
.hero__art .paw-stamp{ position:absolute; color:#fff; opacity:.16; }
.hero__art .paw-stamp svg{ width:100%; }
.hero__art .ps1{ width:120px; top:6%; right:8%; }
.hero__art .ps2{ width:70px; bottom:10%; left:8%; }
.hero__badge{ position:absolute; bottom:14px; left:14px; right:14px; background:rgba(255,255,255,.92);
              border-radius:16px; padding:.7rem 1rem; display:flex; align-items:center; gap:.7rem;
              font-size:.9rem; color:var(--teal-deep); backdrop-filter:blur(4px); }
.hero__badge .emoji{ font-size:1.4rem; }

/* ---------- Grids ---------- */
.grid{ display:grid; gap:clamp(1.1rem,2.5vw,1.6rem); }
.grid--3{ grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr)); }
.grid--steps{ grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr)); }

/* ---------- Cards: generic ---------- */
.card{ background:#fff; border:1.5px solid var(--line); border-radius:var(--radius);
       box-shadow:var(--shadow-card); overflow:hidden; display:flex; flex-direction:column;
       transition:transform .2s ease, box-shadow .2s ease; }
.card:hover{ transform:translateY(-4px); box-shadow:0 30px 56px -28px rgba(31,58,77,.5); }

/* step / value cards */
.step{ background:#fff; border:1.5px solid var(--line); border-radius:var(--radius);
       box-shadow:var(--shadow-soft); padding:clamp(1.3rem,3vw,1.9rem); }
.step__ic{ width:56px; height:56px; border-radius:16px; display:grid; place-items:center;
           background:var(--orange-tint); color:var(--orange-deep); font-size:1.6rem; margin-bottom:.9rem; }
.step h3{ font-size:var(--step-h3); }
.step p{ margin:0; color:var(--navy); opacity:.9; }

/* ---------- Pet card ---------- */
.pet__media{ position:relative; aspect-ratio:4/3; overflow:hidden; }
.pet__media img{ width:100%; height:100%; object-fit:cover; }
.pet__ph{ width:100%; height:100%; display:grid; place-items:center;
          background:linear-gradient(140deg,var(--orange-soft),var(--cream));
          color:var(--orange-deep); }
.pet__ph svg{ width:44%; opacity:.5; }
.pet__media .pill{ position:absolute; top:12px; left:12px; box-shadow:0 6px 14px -8px rgba(0,0,0,.4); }
.pet__body{ padding:1.1rem 1.2rem 1.3rem; display:flex; flex-direction:column; flex:1; }
.pet__name{ font-family:var(--font-display); font-weight:800; font-size:1.25rem; color:var(--teal-deep);
            margin:0; line-height:1.1; }
.pet__meta{ font-size:.86rem; color:var(--muted); font-weight:600; margin:.1rem 0 .6rem; }
.pet__desc{ font-size:.94rem; color:var(--navy); opacity:.9; margin:0 0 1rem; }
.pet__link{ margin-top:auto; font-family:var(--font-display); font-weight:700; color:var(--orange-deep);
            text-decoration:none; display:inline-flex; align-items:center; gap:.35rem; }
.pet__link:hover{ gap:.6rem; }

/* ---------- Story card ---------- */
.story{ display:grid; gap:0; }
@media (min-width:720px){ .story--feature{ grid-template-columns:1fr 1fr; align-items:stretch; } }
.story__media{ position:relative; min-height:240px; background:
      linear-gradient(140deg,var(--teal),var(--teal-deep)); display:grid; place-items:center; color:#fff; }
.story__media svg{ width:34%; opacity:.25; }
.story__media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.story__body{ padding:clamp(1.4rem,3vw,2.2rem); display:flex; flex-direction:column; justify-content:center; }
.story__body .pill{ align-self:flex-start; margin-bottom:.7rem; }
.story__quote{ font-family:var(--font-script); font-size:clamp(1.4rem, 1rem + 1.6vw, 2rem); color:var(--teal-deep);
               line-height:1.25; margin:0 0 .6rem; }
.story__by{ font-weight:700; color:var(--orange-deep); }

/* ---------- Split / about teaser ---------- */
.split{ display:grid; gap:clamp(1.6rem,4vw,3rem); align-items:center; }
@media (min-width:820px){ .split{ grid-template-columns:1fr 1fr; } .split--rev .split__media{ order:2; } }
.split__media{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-card);
               aspect-ratio:5/4; background:linear-gradient(140deg,var(--orange-soft),var(--cream));
               display:grid; place-items:center; }
.split__media img{ width:100%; height:100%; object-fit:cover; }
.split__media .mark{ width:46%; opacity:.6; color:var(--orange-deep); }

/* founder chips */
/* 2-up grid so the 3 founder chips + "Read our story" are all equal size (no empty cell) */
.founders{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); align-items:stretch;
           gap:.6rem; margin-top:1rem; }
.founders .btn{ justify-content:center; }
@media (max-width:400px){ .founders{ grid-template-columns:1fr; } }
.founder{ display:flex; align-items:center; gap:.55rem; background:#fff; border:1.5px solid var(--line);
          border-radius:999px; padding:.35rem .9rem .35rem .4rem; box-shadow:var(--shadow-soft); }
.founder .av{ width:34px; height:34px; border-radius:50%; background:var(--teal); color:#fff;
              font-family:var(--font-display); font-weight:700; display:grid; place-items:center; font-size:.9rem; }
.founder b{ font-size:.9rem; color:var(--teal-deep); font-family:var(--font-display); }
.founder span{ display:block; font-size:.72rem; color:var(--muted); font-weight:600; }

/* ---------- CTA band ---------- */
.cta-band{ position:relative; overflow:hidden; background:linear-gradient(135deg,var(--teal),var(--teal-deep));
           color:#fff; border-radius:var(--radius); padding:clamp(2.2rem,5vw,3.6rem); text-align:center; }
.cta-band h2{ color:#fff; font-size:var(--step-h2); font-weight:800; }
.cta-band p{ color:rgba(255,255,255,.88); max-width:52ch; margin-inline:auto; font-size:var(--step-lead); }
.cta-band .btn-row{ justify-content:center; margin-top:1.4rem; }
.cta-band .paw-bg{ color:#fff; opacity:.08; }

/* ---------- Footer ---------- */
.site-footer{ position:relative; overflow:hidden; background:var(--teal-deep);
              color:rgba(255,255,255,.82); margin-top:var(--section-y); }
.footer__decor{ position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.footer__decor .blob{ border-radius:47% 53% 44% 56%/55% 44% 56% 45%; filter:blur(2px); }
.footer__decor .paw-bg{ color:#fff; opacity:.07; }
.site-footer .container{ position:relative; z-index:1; }
.site-footer a{ color:rgba(255,255,255,.82); text-decoration:none; }
.site-footer a:hover{ color:#fff; }
/* mobile: brand full-width, then the two link columns side by side */
.footer__grid{ display:grid; grid-template-columns:1fr 1fr; gap:1.6rem 2rem;
               padding-block:clamp(2.5rem,5vw,3.5rem); }
.footer__brand{ grid-column:1 / -1; }
@media (min-width:720px){
  .footer__grid{ grid-template-columns:1.4fr 1fr 1fr; }
  .footer__brand{ grid-column:auto; }
}
.footer__brand img{ width:150px; height:auto; aspect-ratio:16/9; background:#fff; border-radius:14px;
                    padding:.4rem .7rem; }
.footer__brand .tag{ font-family:var(--font-script); font-size:1.5rem; color:var(--orange-soft); margin:.6rem 0 .2rem; }
.footer__col h4{ color:#fff; font-size:1.05rem; margin-bottom:.8rem; }
.footer__col ul{ list-style:none; margin:0; padding:0; display:grid; gap:.5rem; }
.footer__socials{ display:flex; gap:.6rem; margin-top:.4rem; }
.footer__socials a{ width:42px; height:42px; border-radius:12px; display:grid; place-items:center;
                    background:rgba(255,255,255,.1); transition:background .2s, transform .15s; }
.footer__socials a:hover{ background:var(--orange); transform:translateY(-2px); }
.footer__socials svg{ width:19px; height:19px; }
.footer__bar{ border-top:1px solid rgba(255,255,255,.12); padding-block:1.1rem; display:flex;
              flex-wrap:wrap; gap:.6rem 1.2rem; justify-content:space-between; font-size:.85rem; }
.footer__bar a{ margin-right:1rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb{ display:flex; width:fit-content; margin:0 auto 1.1rem; align-items:center; gap:.5rem;
             background:#fff; border:1.5px solid var(--line); box-shadow:var(--shadow-soft);
             border-radius:999px; padding:.4rem .5rem .4rem 1rem; font-family:var(--font-display);
             font-weight:600; font-size:.82rem; }
.breadcrumb a{ color:var(--teal); text-decoration:none; transition:color .2s; }
.breadcrumb a:hover{ color:var(--orange-deep); }
.breadcrumb .sep{ color:var(--muted); }
.breadcrumb .current{ color:#fff; background:var(--orange); padding:.22rem .8rem; border-radius:999px; }

/* ---------- Interior page hero (frosted-glass banner) ---------- */
.page-hero-section{ padding-top:clamp(1.5rem, 1rem + 1.6vw, 2.75rem); padding-bottom:0; }
.page-hero{ position:relative; z-index:1; text-align:center;
            display:flex; flex-direction:column; align-items:center; justify-content:center;
            padding:clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem) clamp(1.5rem, 5vw, 3rem);
            background:rgba(255,249,240,.55);
            -webkit-backdrop-filter:blur(16px) saturate(1.3); backdrop-filter:blur(16px) saturate(1.3);
            border:1px solid rgba(255,255,255,.6); border-radius:26px; box-shadow:var(--shadow-card); }
.page-hero .breadcrumb{ margin-bottom:1rem; }
.page-hero .eyebrow{ margin-bottom:.1rem; }
.page-hero h1{ font-family:var(--font-display); font-weight:800; color:var(--teal);
               font-size:clamp(2.1rem, 1.4rem + 3vw, 3.4rem); line-height:1.04; margin:.2rem 0 .5rem; }
.page-hero p{ max-width:60ch; margin:0 auto; font-size:var(--step-lead); color:var(--navy); opacity:.92; }
.page-hero p:last-child, .page-hero h1:last-child{ margin-bottom:0; }
/* @supports fallback: a touch more opacity where blur is unsupported */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .page-hero{ background:rgba(255,249,240,.9); }
}

/* ---------- Long-form / legal prose ---------- */
.prose{ max-width:760px; margin-inline:auto; }
.prose .card{ padding:clamp(1.4rem,4vw,2.6rem); }
.prose h2{ font-family:var(--font-display); font-weight:700; color:var(--teal-deep);
           font-size:clamp(1.3rem,1.1rem + .9vw,1.6rem); margin:1.8rem 0 .5rem; }
.prose h2:first-child{ margin-top:0; }
.prose h3{ font-size:1.1rem; color:var(--teal); margin:1.2rem 0 .3rem; }
.prose p{ color:var(--navy); margin:0 0 .9rem; }
.prose ul{ margin:0 0 1rem; padding-left:1.2rem; }
.prose li{ margin:.3rem 0; }
.prose a{ color:var(--orange-deep); }
.note{ display:flex; gap:.8rem; align-items:flex-start; background:var(--orange-tint);
       border:1.5px solid var(--line); border-radius:var(--radius-sm); padding:1rem 1.2rem; margin:0 0 1.6rem;
       font-size:.92rem; color:var(--navy); }
.note .ic{ flex:none; font-size:1.2rem; }
.toc{ display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 1.6rem; }
.toc a{ font-size:.85rem; font-weight:700; color:var(--teal); background:#fff; border:1.5px solid var(--line);
        padding:.35rem .8rem; border-radius:999px; text-decoration:none; }
.toc a:hover{ color:var(--orange-deep); border-color:var(--orange); }
.legal-meta{ font-size:.85rem; color:var(--muted); margin-bottom:1.2rem; }

/* ---------- Detailed founder bios ---------- */
.bios{ display:grid; gap:clamp(1.1rem,2.5vw,1.6rem); }
@media (min-width:760px){ .bios{ grid-template-columns:1fr; } }
.bio{ display:grid; gap:1.2rem; background:#fff; border:1.5px solid var(--line); border-radius:var(--radius);
      box-shadow:var(--shadow-card); padding:clamp(1.3rem,3vw,2rem); }
@media (min-width:620px){ .bio{ grid-template-columns:auto 1fr; align-items:start; } }
.bio__ava{ width:88px; height:88px; border-radius:22px; display:grid; place-items:center;
           background:linear-gradient(140deg,var(--orange),var(--orange-deep)); color:#fff;
           font-family:var(--font-display); font-weight:800; font-size:1.8rem; box-shadow:var(--shadow-soft); }
.bio__name{ font-family:var(--font-display); font-weight:800; color:var(--teal-deep); font-size:1.3rem; margin:0; }
.bio__role{ font-weight:700; color:var(--orange-deep); font-size:.9rem; margin:.1rem 0 .7rem; }
.bio p{ margin:0 0 .7rem; color:var(--navy); }
.bio p:last-child{ margin-bottom:0; }

/* ---------- Forms ---------- */
.form{ display:grid; gap:1.1rem; }
.form__row{ display:grid; gap:1.1rem; }
@media (min-width:560px){ .form__row--2{ grid-template-columns:1fr 1fr; } }
.field{ display:grid; gap:.35rem; }
.field label{ font-family:var(--font-display); font-weight:600; color:var(--teal-deep); font-size:.95rem; }
.field label .req{ color:var(--orange-deep); }
.field input,.field select,.field textarea{ font-family:var(--font-body); font-size:16px; color:var(--navy);
       background:#fff; border:1.5px solid var(--line); border-radius:12px; padding:.75rem .9rem;
       width:100%; transition:border-color .2s, box-shadow .2s; }
.field textarea{ resize:vertical; min-height:120px; }
.field input:focus,.field select:focus,.field textarea:focus{ outline:none; border-color:var(--orange);
       box-shadow:0 0 0 3px rgba(245,130,31,.15); }
.field .err-msg{ font-size:.82rem; color:#c33b22; display:none; }
.field.invalid input,.field.invalid select,.field.invalid textarea{ border-color:#c33b22; }
.field.invalid .err-msg{ display:block; }
.form__note{ font-size:.85rem; color:var(--muted); }
.form-success{ display:flex; gap:.9rem; align-items:flex-start; background:#e8f6ec; border:1.5px solid #bfe6cc;
       border-radius:var(--radius-sm); padding:1.1rem 1.3rem; color:#1f6b40; }
.form-success .ic{ font-size:1.4rem; }
.pet-ref{ display:inline-flex; align-items:center; gap:.5rem; background:var(--orange-tint);
       border:1.5px solid var(--line); border-radius:999px; padding:.4rem .9rem; font-weight:700;
       color:var(--teal-deep); font-size:.9rem; margin-bottom:.4rem; }

/* ---------- Contact info cards ---------- */
.info-grid{ display:grid; gap:1rem; }
.info-card{ display:flex; gap:.9rem; align-items:flex-start; background:#fff; border:1.5px solid var(--line);
       border-radius:var(--radius-sm); box-shadow:var(--shadow-soft); padding:1.1rem 1.2rem; }
.info-card .ic{ flex:none; width:42px; height:42px; border-radius:12px; display:grid; place-items:center;
       background:var(--orange-tint); color:var(--orange-deep); }
.info-card .ic svg{ width:20px; height:20px; }
.info-card h3{ font-size:1rem; margin:0 0 .15rem; color:var(--teal-deep); }
.info-card a,.info-card p{ margin:0; color:var(--navy); font-size:.92rem; text-decoration:none; }
.info-card a:hover{ color:var(--orange-deep); }

/* ---------- Pets listing: filter chips ---------- */
.filters{ display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin-bottom:clamp(1.6rem,4vw,2.4rem); }
.filter-btn{ font-family:var(--font-display); font-weight:700; font-size:.9rem; color:var(--teal-deep);
             background:#fff; border:1.5px solid var(--line); border-radius:999px; padding:.5rem 1.15rem;
             cursor:pointer; transition:background .2s, color .2s, border-color .2s; }
.filter-btn:hover{ border-color:var(--orange); color:var(--orange-deep); }
.filter-btn.active{ background:var(--orange); color:#fff; border-color:var(--orange); }
.filter-btn .count{ opacity:.65; font-weight:600; }
.pet.hide{ display:none; }
.no-results{ text-align:center; color:var(--muted); display:none; padding:2rem 0; }

/* ---------- Pet detail ---------- */
.crumb-left .breadcrumb{ margin-inline:0; }
.pet-detail{ display:grid; gap:clamp(1.5rem,4vw,2.5rem); }
@media (min-width:860px){ .pet-detail{ grid-template-columns:1.05fr .95fr; align-items:start; } }
.pet-detail__media{ position:relative; border-radius:var(--radius); overflow:hidden;
                    box-shadow:var(--shadow-card); aspect-ratio:4/3; background:var(--orange-soft); }
.pet-detail__media img{ width:100%; height:100%; object-fit:cover; }
.pet-detail__media .pill{ position:absolute; top:14px; left:14px; box-shadow:0 6px 14px -8px rgba(0,0,0,.4); }
.pet-detail__info h1{ font-size:clamp(2rem,1.4rem + 2.4vw,3rem); line-height:1.05; margin:.1rem 0 .15rem; color:var(--teal); }
.pet-detail__meta{ color:var(--muted); font-weight:700; margin:0 0 .3rem; }
.care-list{ list-style:none; padding:0; margin:1.1rem 0 .4rem; display:flex; flex-wrap:wrap; gap:.5rem; }
.care-list li{ display:inline-flex; align-items:center; gap:.4rem; background:#fff; border:1.5px solid var(--line);
               border-radius:999px; padding:.4rem .85rem; font-weight:700; font-size:.85rem; color:var(--teal-deep); }
.care-list li::before{ content:"✓"; color:#1f7a44; font-weight:800; }
.pet-detail .card{ padding:1.3rem 1.4rem; margin-top:1.2rem; }
.pet-detail .card h3{ margin:0 0 .4rem; font-size:1.1rem; color:var(--teal-deep); }
.pet-detail .card p{ margin:0; color:var(--navy); }
.pet-detail__cta{ display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1.4rem; }
/* contributor + doctor credit cards */
.credits{ display:grid; gap:1rem; margin-top:1.2rem; }
@media (min-width:520px){ .credits{ grid-template-columns:1fr 1fr; } }
.credits .info-card h3{ font-size:.8rem; letter-spacing:.06em; text-transform:uppercase; color:var(--orange-deep); }
.credits .info-card strong{ color:var(--teal-deep); font-family:var(--font-display); }
.credits .info-card small{ display:block; color:var(--muted); font-size:.82rem; margin-top:.1rem; }

/* ---------- Happy stories grid ---------- */
.stories{ display:grid; gap:clamp(1.2rem,3vw,1.8rem); }
@media (min-width:700px){ .stories{ grid-template-columns:1fr 1fr; } }
.stories .story--feature{ grid-column:1 / -1; }
.story__text{ color:var(--navy); margin:.2rem 0 0; }
.story__when{ font-size:.82rem; color:var(--muted); font-weight:700; margin-top:.6rem; }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s cubic-bezier(.2,.7,.2,1),
         transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1; transform:none; }

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .blob,.paw-bg,[class*="animation"]{ animation:none !important; }
}
