:root {
  --cream: #f4e7c8;
  --cream-2: #fff6df;
  --ink: #073641;
  --ink-soft: #0d4c58;
  --gold: #d19a43;
  --gold-dark: #9c681d;
  --muted: #716852;
  --white: #ffffff;
  --line: rgba(7, 54, 65, 0.16);
  --shadow: 0 22px 70px rgba(7, 54, 65, 0.15);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% -5%, rgba(209, 154, 67, 0.22), transparent 36%),
    radial-gradient(circle at 88% 10%, rgba(7, 54, 65, 0.14), transparent 30%),
    var(--cream);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 231, 200, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(7, 54, 65, 0.22);
  background: var(--cream-2);
}

.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: 1rem; letter-spacing: 0; }
.brand small { margin-top: 4px; color: var(--muted); font-weight: 800; }

.nav-links {
  display: flex;
  gap: 19px;
  align-items: center;
  font-size: 0.94rem;
  font-weight: 900;
}

.nav-links a { opacity: 0.78; }
.nav-links a:hover { color: var(--gold-dark); opacity: 1; }

.menu {
  display: none;
  border: 1px solid var(--line);
  background: var(--cream-2);
  border-radius: 14px;
  padding: 9px 12px;
  cursor: pointer;
}

section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 50px;
  align-items: center;
  padding-top: 82px;
}

.page-hero {
  padding-top: 72px;
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 950;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 6.8vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.7rem, 5.5vw, 5rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.14rem;
}

.hero-actions, .owner-links, .feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 950;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn.primary {
  background: var(--ink);
  color: var(--cream-2);
  box-shadow: 0 16px 34px rgba(7, 54, 65, 0.22);
}

.btn.primary:hover { background: var(--ink-soft); }

.btn.secondary {
  background: var(--gold);
  color: #1d1508;
  box-shadow: 0 16px 34px rgba(209, 154, 67, 0.25);
}

.btn.secondary:hover { background: #dfa94f; }

.btn.ghost {
  background: rgba(255, 246, 223, 0.75);
  color: var(--ink);
  border-color: var(--line);
}

.btn.light {
  background: var(--cream-2);
  color: var(--ink);
}

.btn.dark {
  background: var(--ink);
  color: var(--cream-2);
}

.btn.full { width: 100%; }

.credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.credential-strip span,
.pill,
.tag,
.bio-badges span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 0.8rem;
  font-weight: 950;
  background: rgba(209, 154, 67, 0.2);
  color: var(--gold-dark);
}

.logo-card,
.quick-links a,
.card,
.panel,
.info-panel,
.bio-card,
.bio-story,
.contact-card,
.feed-item,
.adoption-card,
.adoption-notice {
  background: rgba(255, 246, 223, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(7, 54, 65, 0.08);
}

.logo-card {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  padding: 24px;
  box-shadow: var(--shadow);
}

.logo-card > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--cream-2);
}

.logo-card-info {
  margin-top: -54px;
  margin-left: auto;
  position: relative;
  width: calc(100% - 28px);
  border-radius: 24px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(7, 54, 65, 0.13);
}

.logo-card-info p { color: var(--muted); }

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 20px;
}

.quick-links a {
  padding: 20px;
  transition: transform .16s ease;
}

.quick-links a:hover { transform: translateY(-2px); }
.quick-links strong, .quick-links span { display: block; }
.quick-links span { margin-top: 6px; color: var(--muted); }

.section-heading {
  max-width: 810px;
  text-align: center;
  margin: 0 auto 30px;
}

.section-heading.left {
  text-align: left;
  margin-left: 0;
}

.section-heading p,
.card p,
.panel-title p,
.info-panel p,
.bio-story p,
.contact-card span,
.contact-card a,
.feed p,
.muted,
.adoption-card p,
.adoption-notice p {
  color: var(--muted);
}

.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }

.card { padding: 24px; }

.icon {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.split-callout,
.portal-page,
.bio-layout,
.contact-layout {
  display: grid;
  gap: 20px;
  align-items: start;
}

.split-callout,
.portal-page,
.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-callout > div {
  padding: 28px;
  border-radius: 34px;
  background: var(--ink);
  color: var(--cream-2);
  box-shadow: var(--shadow);
}

.split-callout > div:nth-child(2) {
  background: var(--gold);
  color: #1d1508;
}

.split-callout p { color: rgba(255, 246, 223, 0.76); }
.split-callout > div:nth-child(2) p { color: rgba(29, 21, 8, 0.72); }

.panel,
.info-panel,
.contact-card,
.bio-card,
.bio-story,
.adoption-notice {
  padding: 26px;
}

.panel-title { margin-bottom: 22px; }

.panel-title span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--cream-2);
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

form { display: grid; gap: 15px; }

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(7, 54, 65, 0.12);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--ink);
}

.range-label { color: var(--muted); }

.info-panel ul {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--muted);
}

.info-panel li { margin-bottom: 8px; }

.bio-layout { grid-template-columns: 340px minmax(0, 1fr); }

.bio-card img {
  width: 100%;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--cream-2);
  margin-bottom: 18px;
}

.bio-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adoption-notice {
  margin-top: 0;
  margin-bottom: 18px;
}

.adoption-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 20px;
}

.adoption-card {
  overflow: hidden;
}

.adoption-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: rgba(7, 54, 65, 0.08);
  font-size: 4rem;
}

.adoption-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adoption-body {
  padding: 20px;
}

.contact-methods {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-methods div {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.45);
}

.updates-section { padding-top: 30px; }
.feed-actions { margin-top: 0; margin-bottom: 18px; }

.feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feed-item { overflow: hidden; }

.media {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: rgba(7, 54, 65, 0.08);
  overflow: hidden;
}

.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media .placeholder,
.placeholder-photo {
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 950;
}

.hidden-field { display: none; }

.feed-body { padding: 18px; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag.dark {
  color: var(--ink);
  background: rgba(7, 54, 65, 0.12);
}

.progress {
  margin-top: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(7, 54, 65, 0.12);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(7, 54, 65, 0.28);
  background: rgba(255, 246, 223, 0.6);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  color: var(--muted);
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 54px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
}

.footer p { margin-bottom: 0; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--cream-2);
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-weight: 900;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .split-callout,
  .portal-page,
  .bio-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .cards.three,
  .cards.four,
  .feed,
  .quick-links,
  .adoption-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bio-card { max-width: 420px; }
}

@media (max-width: 720px) {
  .menu { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 84px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--cream-2);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .brand small { display: none; }
  section { padding: 42px 0; }

  .cards.three,
  .cards.four,
  .feed,
  .quick-links,
  .adoption-grid {
    grid-template-columns: 1fr;
  }

  h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
}
