/*
Theme Name: OnlyPawsy
Theme URI: https://onlypawsy.com
Description: Warm, modern pet profile platform theme for OnlyPawsy. Child theme of Twenty Twenty-Five. Presentation only — business logic lives in the onlypawsy-core plugin.
Author: OnlyPawsy
Template: twentytwentyfive
Version: 0.4.0
Text Domain: onlypawsy
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --op-bg: #fff7ed;
  --op-bg-soft: #fffaf4;
  --op-surface: #ffffff;
  --op-text: #2b2118;
  --op-muted: #5e5046;          /* darkened for AA contrast on cream */
  --op-muted-soft: #7a6a5c;     /* large text / decorative only */
  --op-primary: #f97316;
  --op-primary-dark: #c2410c;
  --op-accent: #5e8c3e;         /* darkened green for AA contrast */
  --op-accent-soft: #8bbf6a;
  --op-peach: #ffd7c2;
  --op-yellow: #fde68a;
  --op-border: #eadfd2;

  --op-shadow-sm: 0 6px 18px rgba(43, 33, 24, .06);
  --op-shadow-md: 0 16px 40px rgba(43, 33, 24, .08);
  --op-shadow-lg: 0 30px 70px rgba(43, 33, 24, .12);

  --op-radius-lg: 32px;
  --op-radius-md: 22px;
  --op-radius-sm: 14px;

  --op-ring: 0 0 0 3px rgba(249, 115, 22, .35);
  --op-shell: min(1160px, calc(100% - 32px));
  --op-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ============================================================
   Base
   ============================================================ */
html {
  scroll-behavior: smooth;
}

body {
  color: var(--op-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .op-display {
  font-family: Manrope, Inter, sans-serif;
}

a {
  color: var(--op-primary-dark);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.wp-site-blocks {
  overflow-x: clip;
}

/* Visible keyboard focus everywhere (was missing). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
.op-primary-action:focus-visible,
.op-secondary-action:focus-visible,
.op-mini-btn:focus-visible,
.op-nav a:focus-visible {
  outline: none;
  box-shadow: var(--op-ring);
  border-radius: 12px;
}

/* Skip link for keyboard / screen-reader users. */
.op-skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--op-text);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s var(--op-ease);
}
.op-skip:focus {
  top: 12px;
  color: #fff;
}

/* ============================================================
   WordPress block element styling (scoped, no global hijack)
   ============================================================ */
.wp-block-site-title,
.wp-block-site-title a {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--op-text);
}

.wp-block-navigation a {
  font-weight: 600;
  color: var(--op-text);
}

.wp-block-button__link {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--op-primary), var(--op-primary-dark));
  color: #fff;
  border: 0;
  box-shadow: 0 12px 26px rgba(249, 115, 22, .22);
  font-family: Manrope, Inter, sans-serif;
  font-weight: 700;
  padding: .9rem 1.4rem;
  transition: transform .18s var(--op-ease), box-shadow .18s var(--op-ease);
}
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(249, 115, 22, .30);
}

/* Forms — scoped to content, not a blanket button{} override. */
.wp-block-post-content input,
.wp-block-post-content textarea,
.wp-block-post-content select,
.op-form input,
.op-form textarea,
.op-form select {
  border-radius: var(--op-radius-sm);
  border: 1px solid var(--op-border);
  background: #fff;
  padding: .85rem 1rem;
  color: var(--op-text);
  font: inherit;
}

/* ============================================================
   Page shell + ambient background
   ============================================================ */
.op-page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 215, 194, .85), transparent 30rem),
    radial-gradient(circle at 88% 8%, rgba(139, 191, 106, .20), transparent 28rem),
    radial-gradient(circle at 50% 100%, rgba(253, 230, 138, .35), transparent 34rem),
    var(--op-bg);
}

.op-shell {
  width: var(--op-shell);
  margin-inline: auto;
}

/* ============================================================
   Top bar + navigation (now mobile-accessible)
   ============================================================ */
.op-topbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin: 16px auto 0;
  width: var(--op-shell);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .7rem .6rem 1rem;
  border: 1px solid rgba(234, 223, 210, .9);
  border-radius: 999px;
  background: rgba(255, 250, 244, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--op-shadow-md);
}

.op-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--op-text);
  text-decoration: none;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.08rem;
}

.op-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--op-primary), var(--op-primary-dark));
  color: #fff;
  box-shadow: 0 10px 22px rgba(249, 115, 22, .28);
}
.op-brand-mark svg { width: 22px; height: 22px; display: block; }

.op-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.op-nav a {
  color: var(--op-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .35rem .2rem;
  border-bottom: 2px solid transparent;
  transition: color .15s var(--op-ease), border-color .15s var(--op-ease);
}
.op-nav a:hover {
  color: var(--op-primary-dark);
  border-bottom-color: var(--op-primary);  /* state not by colour alone */
}

.op-nav-right {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.op-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--op-text);
  color: #fff;
  text-decoration: none;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(43, 33, 24, .18);
  transition: transform .18s var(--op-ease);
}
.op-mini-btn:hover { transform: translateY(-2px); color: #fff; }

/* Hamburger — hidden on desktop, shown on mobile. */
.op-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--op-border);
  background: rgba(255, 255, 255, .7);
  border-radius: 13px;
  color: var(--op-text);
  cursor: pointer;
  place-items: center;
}
.op-nav-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   Hero
   ============================================================ */
.op-landing-hero {
  padding: clamp(2.6rem, 6vw, 5.5rem) 0 2.5rem;
}

.op-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.op-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, .12);
  color: var(--op-primary-dark);
  font-weight: 700;
  font-size: .9rem;
  padding: .45rem .85rem;
}

.op-hero-title {
  margin: 1.1rem 0 1rem;
  max-width: 16ch;
  font-size: clamp(2.8rem, 6.5vw, 5.8rem);
  line-height: 1.02;            /* was .88 — clipped descenders */
  letter-spacing: -.035em;      /* was -.075em — too crushed */
  font-weight: 800;
}

.op-gradient-text {
  background: linear-gradient(135deg, var(--op-primary-dark), var(--op-primary), #b45309);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.op-hero-copy {
  max-width: 56ch;
  color: var(--op-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.65;
}

.op-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}

.op-primary-action,
.op-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 54px;
  padding: 0 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 700;
  transition: transform .18s var(--op-ease), box-shadow .18s var(--op-ease);
}
.op-primary-action {
  background: linear-gradient(135deg, var(--op-primary), var(--op-primary-dark));
  color: #fff;
  box-shadow: 0 16px 34px rgba(249, 115, 22, .26);
}
.op-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(249, 115, 22, .32);
  color: #fff;
}
.op-secondary-action {
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--op-border);
  color: var(--op-text);
}
.op-secondary-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--op-shadow-sm);
  color: var(--op-text);
}

.op-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}
.op-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--op-border);
  color: var(--op-muted);
  font-size: .9rem;
  font-weight: 600;
}

/* ---- Phone mockup ---- */
.op-phone-wrap {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}
.op-blob {
  position: absolute;
  inset: 30px 0 auto auto;
  width: min(420px, 90%);
  aspect-ratio: 1;
  border-radius: 38% 62% 53% 47% / 41% 40% 60% 59%;
  background: linear-gradient(135deg, rgba(255, 215, 194, .9), rgba(253, 230, 138, .8));
  transform: rotate(-8deg);
  z-index: 0;
}
.op-phone {
  position: relative;
  z-index: 2;
  width: min(380px, 100%);
  border-radius: 44px;
  padding: 13px;
  background: #2b2118;
  box-shadow: var(--op-shadow-lg);
  transform: rotate(2deg);
}
.op-phone-screen {
  overflow: hidden;
  border-radius: 34px;
  background: var(--op-bg-soft);
  min-height: 500px;
  padding: 1rem;
}
.op-screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .9rem;
  color: var(--op-muted);
  font-size: .85rem;
  font-weight: 700;
}

.op-featured-pet {
  border-radius: 28px;
  padding: 1rem;
  background:
    radial-gradient(circle at 80% 0%, rgba(253, 230, 138, .7), transparent 9rem),
    #fff;
  border: 1px solid var(--op-border);
  box-shadow: var(--op-shadow-md);
}
.op-pet-portrait {
  height: 210px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .85), transparent 8rem),
    linear-gradient(135deg, var(--op-peach), var(--op-yellow));
  font-size: 6rem;
  margin-bottom: 1rem;
}
.op-pet-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.op-pet-name {
  margin: 0;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.op-pet-sub {
  margin: .3rem 0 0;
  color: var(--op-muted);
  font-weight: 600;
}
.op-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--op-bg-soft);
  border: 1px solid var(--op-border);
  color: var(--op-muted);
  font-weight: 700;
  font-size: .8rem;
  padding: .35rem .7rem;
}
.op-support-box {
  margin-top: 1rem;
  padding: .9rem;
  border-radius: 22px;
  background: var(--op-bg-soft);
  border: 1px solid var(--op-border);
}
.op-support-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  color: var(--op-muted);
  font-size: .9rem;
  font-weight: 700;
}

/* ============================================================
   Signature element: support goal bar (data-driven + a11y)
   Set the fill via inline style: <div class="op-goal" style="--p:62%">
   ============================================================ */
.op-goal {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #f1e5d8;
  overflow: hidden;
}
.op-goal > span {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--op-accent), var(--op-primary));
  transform-origin: left center;
  transition: width 1.1s var(--op-ease);
}

/* ============================================================
   Generic section + cards
   ============================================================ */
.op-section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.op-section-head {
  max-width: 56ch;
  margin-bottom: 1.8rem;
}
.op-section-kicker {
  color: var(--op-primary-dark);
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .8rem;
}
.op-section-title {
  margin: .4rem 0 .65rem;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 800;
}
.op-section-copy {
  color: var(--op-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.op-feature-grid,
.op-pets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.op-feature-card {
  border-radius: 26px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--op-border);
  box-shadow: var(--op-shadow-sm);
  transition: transform .2s var(--op-ease), box-shadow .2s var(--op-ease);
}
.op-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--op-shadow-md);
}
.op-feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(249, 115, 22, .12);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.op-feature-card h3 {
  margin: 0 0 .45rem;
  font-size: 1.3rem;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.op-feature-card p {
  margin: 0;
  color: var(--op-muted);
  line-height: 1.6;
}

.op-pet-tile {
  border-radius: 28px;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--op-border);
  box-shadow: var(--op-shadow-sm);
  transition: transform .2s var(--op-ease), box-shadow .2s var(--op-ease);
}
.op-pet-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--op-shadow-md);
}
.op-pet-tile-face {
  height: 180px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 4.4rem;
  background: linear-gradient(135deg, #fff1e6, var(--op-yellow));
}
.op-pet-tile:nth-child(2) .op-pet-tile-face {
  background: linear-gradient(135deg, #e7f5dc, var(--op-bg));
}
.op-pet-tile:nth-child(3) .op-pet-tile-face {
  background: linear-gradient(135deg, var(--op-peach), var(--op-bg-soft));
}
.op-pet-tile h3 {
  margin: 1rem 0 .25rem;
  font-size: 1.35rem;
  letter-spacing: -.025em;
}
.op-pet-tile p {
  margin: 0;
  color: var(--op-muted);
  line-height: 1.55;
}

/* ============================================================
   Impact block
   ============================================================ */
.op-impact {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 1.2rem;
  align-items: stretch;
  border-radius: 34px;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  background:
    radial-gradient(circle at 10% 0%, rgba(94, 140, 62, .18), transparent 20rem),
    rgba(255, 255, 255, .75);
  border: 1px solid var(--op-border);
  box-shadow: var(--op-shadow-md);
}
.op-impact-card {
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--op-border);
  padding: 1.4rem;
}
.op-impact-stat {
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 800;
  color: var(--op-primary-dark);
}

/* ============================================================
   Footer
   ============================================================ */
.op-footer {
  padding: 2rem 0 2.4rem;
  color: var(--op-muted);
}
.op-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--op-border);
  padding-top: 1.4rem;
}
.op-footer strong {
  font-family: Manrope, Inter, sans-serif;
}

/* ============================================================
   Sticky mobile CTA (modern conversion pattern, mobile only)
   ============================================================ */
.op-mobile-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  padding: .85rem 1.1rem;
  border-radius: 999px;
  text-align: center;
  background: linear-gradient(135deg, var(--op-primary), var(--op-primary-dark));
  color: #fff;
  text-decoration: none;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(249, 115, 22, .32);
}

/* ============================================================
   Scroll-reveal — only active when JS can undo it (.js on <html>)
   so no-JS visitors keep all content visible.
   ============================================================ */
.js .op-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--op-ease), transform .6s var(--op-ease);
}
.js .op-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .op-hero-grid,
  .op-impact {
    grid-template-columns: 1fr;
  }
  .op-phone {
    transform: none;
  }
  .op-phone-wrap {
    min-height: auto;
  }
  .op-feature-grid,
  .op-pets-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile nav: collapse links into a toggled panel instead of hiding them. */
  .op-nav-toggle {
    display: grid;
  }
  .op-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: .6rem;
    background: rgba(255, 250, 244, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--op-border);
    border-radius: 22px;
    box-shadow: var(--op-shadow-lg);
    display: none;
  }
  .op-topbar.is-open .op-nav {
    display: flex;
  }
  .op-nav a {
    padding: .8rem 1rem;
    border-bottom: 0;
    border-radius: 12px;
  }
  .op-nav a:hover {
    background: rgba(249, 115, 22, .1);
  }
  .op-topbar {
    position: relative;
    top: 8px;
  }

  .op-mobile-cta {
    display: block;
  }
}

@media (max-width: 700px) {
  .op-hero-title {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }
  .op-primary-action,
  .op-secondary-action {
    width: 100%;
  }
}

/* ============================================================
   Reduced motion: respect the OS setting (was ignored).
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .op-reveal {
    opacity: 1;
    transform: none;
  }
  .op-phone,
  .op-blob {
    transform: none;
  }
}

/* ============================================================
   Pet catalog (archive-pet) + cards with real photos
   ============================================================ */
.op-catalog-grid {
  margin-top: 1.5rem;
}

/* The card is now a link wrapping a photo + body. */
a.op-pet-tile {
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}
a.op-pet-tile:hover { color: inherit; }

.op-pet-tile-photo {
  height: 200px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1e6, var(--op-yellow));
}
.op-pet-tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.op-pet-tile-photo--empty {
  display: grid;
  place-items: center;
  font-size: 4.4rem;
}
.op-pet-tile:nth-child(3n+2) .op-pet-tile-photo--empty {
  background: linear-gradient(135deg, #e7f5dc, var(--op-bg));
}
.op-pet-tile:nth-child(3n) .op-pet-tile-photo--empty {
  background: linear-gradient(135deg, var(--op-peach), var(--op-bg-soft));
}

.op-pet-tile-body { padding: .25rem .25rem 0; }
.op-pet-tile-body h3 {
  margin: .85rem 0 .2rem;
  font-size: 1.3rem;
  letter-spacing: -.025em;
}
.op-pet-line {
  margin: 0;
  color: var(--op-muted);
  font-weight: 600;
  font-size: .92rem;
}
.op-pet-desc {
  margin: .55rem 0 0;
  color: var(--op-muted);
  line-height: 1.55;
}
.op-pet-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: .85rem;
  font-size: .88rem;
  font-weight: 700;
}
.op-pet-fans { color: var(--op-primary-dark); }
.op-pet-goalpct { color: var(--op-accent); }

.op-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .3rem .65rem;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.op-badge--rescue {
  background: rgba(94, 140, 62, .14);
  color: #41662b;
}

/* Pagination */
.op-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: 2.4rem;
}
.op-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--op-border);
  color: var(--op-text);
  text-decoration: none;
  font-weight: 700;
}
.op-pagination .page-numbers:hover { border-color: var(--op-primary); }
.op-pagination .page-numbers.current {
  background: var(--op-text);
  color: #fff;
  border-color: var(--op-text);
}

/* Empty state */
.op-empty {
  text-align: center;
  max-width: 460px;
  margin: 1.5rem auto 0;
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius-lg);
  box-shadow: var(--op-shadow-sm);
}
.op-empty-emoji { font-size: 3rem; }
.op-empty h2 { margin: .6rem 0 .4rem; }
.op-empty p { color: var(--op-muted); margin: 0 0 1.4rem; }

/* ============================================================
   Single pet profile (single-pet)
   ============================================================ */
.op-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.4rem;
  color: var(--op-muted);
  font-size: .9rem;
  font-weight: 600;
}
.op-breadcrumb a { color: var(--op-muted); text-decoration: none; }
.op-breadcrumb a:hover { color: var(--op-primary-dark); }
.op-breadcrumb [aria-current="page"] { color: var(--op-text); }

.op-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.op-profile-photo {
  border-radius: var(--op-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--op-peach), var(--op-yellow));
  box-shadow: var(--op-shadow-md);
}
.op-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.op-profile-photo--empty {
  display: grid;
  place-items: center;
  font-size: 7rem;
}
.op-profile-title {
  margin: .3rem 0 .3rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
}
.op-profile-meta {
  margin: 0 0 1rem;
  color: var(--op-muted);
  font-weight: 600;
  font-size: 1.05rem;
}

.op-stats {
  display: flex;
  gap: 1rem;
  margin: 1.4rem 0;
}
.op-stat {
  flex: 1;
  max-width: 160px;
  padding: .9rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--op-border);
}
.op-stat-num {
  display: block;
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--op-text);
}
.op-stat-label {
  color: var(--op-muted);
  font-size: .85rem;
  font-weight: 700;
}

.op-block-title {
  margin: 2.6rem 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -.03em;
}

.op-goal-card {
  padding: 1.4rem;
  border-radius: var(--op-radius-md);
  background: #fff;
  border: 1px solid var(--op-border);
  box-shadow: var(--op-shadow-sm);
}
.op-goal-card .op-support-line { font-size: 1rem; }

.op-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .8rem;
}
.op-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  border: 1px solid var(--op-border);
}

.op-prose {
  max-width: 68ch;
  color: var(--op-text);
  line-height: 1.7;
}
.op-prose p { margin: 0 0 1rem; }
.op-prose h2, .op-prose h3 { margin: 1.6rem 0 .6rem; }

.op-owner-note {
  max-width: 68ch;
  margin: 1.8rem 0 0;
  padding: 1.3rem 1.5rem;
  border-radius: var(--op-radius-md);
  background: var(--op-bg-soft);
  border: 1px solid var(--op-border);
  border-left: 4px solid var(--op-primary);
}
.op-owner-note-label {
  margin: 0 0 .35rem;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--op-primary-dark);
}
.op-owner-note p:last-child { margin: 0; color: var(--op-text); }

.op-profile-cta {
  margin-top: 3rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: var(--op-radius-lg);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(253, 230, 138, .5), transparent 18rem),
    rgba(255, 255, 255, .7);
  border: 1px solid var(--op-border);
  box-shadow: var(--op-shadow-sm);
}
.op-profile-cta .op-section-title { margin-top: 0; }
.op-profile-cta .op-section-copy { margin: .5rem auto 1.3rem; max-width: 48ch; }

.op-share-btn { cursor: pointer; font: inherit; }

@media (max-width: 820px) {
  .op-profile-hero { grid-template-columns: 1fr; }
}
