:root {
  /* The Pawdoor brand palette v1.0 */
  --forest: #1E3A2E;
  --sage: #6B7F5B;
  --ivory: #F7F3EB;
  --stone: #DCD7C9;
  --earth: #8B6F4E;
  --copper: #B08D57;
  --ink: #26312D;
  --ink-soft: #4e5a52;
  --paper: var(--ivory);
  --white: #ffffff;
  --band: #ECE7DB;
  --line: var(--stone);
  --light: var(--copper);
  --light-deep: var(--earth);
  --vet: var(--forest);
  --behaviour: var(--sage);
  --welfare: var(--earth);
  --radius: 8px;
  --head: "Playfair Display", Georgia, serif;
  --body: "Montserrat", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; font-weight: 400; color: var(--forest); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.3rem; color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--ink-soft); }
.small { font-size: .95rem; }

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { font-family: var(--body); font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--ink); padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--stone); }
.nav a[aria-current="page"] { background: var(--stone); }
.nav .btn, .nav .btn:hover { color: var(--ivory); }
.nav .btn { padding: 10px 20px; margin-left: 6px; }
.nav .btn:hover { background: var(--sage); }
.menu-btn { display: none; font-family: var(--body); font-weight: 600; background: none; border: 2px solid var(--ink); color: var(--ink); border-radius: 999px; padding: 6px 16px; font-size: 1rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; background: var(--forest); color: var(--ivory); padding: 13px 24px; border-radius: 4px; border: 2px solid var(--forest); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: var(--sage); border-color: var(--sage); color: var(--ivory); transform: translateY(-1px); }
.btn.light { background: var(--copper); color: var(--ink); border-color: var(--copper); }
.btn.light:hover { background: var(--earth); border-color: var(--earth); color: var(--ivory); }
.btn.ghost { background: transparent; color: var(--forest); }
.btn.ghost:hover { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.btn.small { padding: 9px 18px; font-size: .95rem; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-mark { width: min(420px, 100%); margin-inline: auto; display: block; }

/* Sections */
section { padding: 72px 0; }
.band { background: var(--band); }
.section-head { max-width: 40em; margin-bottom: 36px; }

/* Door cards */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.door-card { display: flex; flex-direction: column; text-decoration: none; color: #fff; padding: 64px 28px 30px; border-radius: 999px 999px var(--radius) var(--radius); min-height: 380px; position: relative; transition: transform .2s ease; }
.door-card:hover { transform: translateY(-4px); color: #fff; }
.door-card h3 { color: var(--ivory); font-size: 1.55rem; }
.door-card p { color: rgba(255,255,255,.9); }
.door-card .go { margin-top: auto; font-family: var(--head); font-weight: 650; border-top: 1px solid rgba(255,255,255,.35); padding-top: 14px; }
.door-card.vet { background: var(--forest); }
.door-card.behaviour { background: var(--sage); }
.door-card.welfare { background: var(--earth); }
.door-card::before { content: ""; position: absolute; top: 26px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--copper); transform: translateX(-50%); }

/* Partners */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { font-family: var(--body); font-weight: 600; font-size: .9rem; padding: 8px 18px; border-radius: 4px; border: 2px solid var(--forest); background: transparent; color: var(--forest); cursor: pointer; }
.chip:hover { background: var(--stone); }
.chip[aria-pressed="true"] { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.card[hidden] { display: none; }
.partner-card { text-decoration: none; color: var(--ink); align-items: flex-start; transition: transform .2s ease, box-shadow .2s ease; }
.partner-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20,39,43,.1); color: var(--ink); }
.partner-card h3 { margin: 12px 0 0; }
.partner-card .tag { margin-top: auto; padding-top: 10px; }

.arch { width: 96px; height: 120px; border-radius: 999px 999px 10px 10px; overflow: hidden; background: var(--stone); flex: none; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch.lg { width: 220px; height: 276px; }
.arch .initials { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--head); font-weight: 400; font-size: 2rem; color: var(--ivory); }
.arch.lg .initials { font-size: 4.2rem; }
.arch.vet .initials { background: var(--vet); }
.arch.behaviour .initials { background: var(--behaviour); }
.arch.welfare .initials { background: var(--welfare); }

.badge { display: inline-block; font-family: var(--body); font-weight: 700; font-size: .8rem; letter-spacing: .02em; padding: 4px 12px; border-radius: 4px; color: var(--ivory); background: var(--forest); }
.badge.vet, .badge.behaviour, .badge.welfare { background: var(--forest); }

.empty { background: var(--white); border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 32px; text-align: center; }
.empty h3 { margin-bottom: .3em; }
.empty p { max-width: 32em; margin-inline: auto; }

/* Partner profile */
.profile-hero { padding: 56px 0 40px; }
.profile-grid { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: end; }
.profile-grid h1 { margin: 10px 0 6px; }
.meta { color: var(--ink-soft); margin-bottom: 18px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { font-family: var(--body); font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--forest); border: 2px solid var(--forest); padding: 7px 16px; border-radius: 4px; }
.social:hover { background: var(--forest); color: var(--ivory); }
.profile-body { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: start; }
.offer { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.offer .type { font-family: var(--body); font-weight: 700; font-size: .8rem; letter-spacing: .03em; color: var(--earth); }
.offer h3 { margin: 0; }
.offer .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.price { font-family: var(--body); font-weight: 700; color: var(--forest); }
.aside-box { background: var(--stone); border-radius: var(--radius); padding: 24px; }
.aside-box ul { margin: 0; padding-left: 1.1em; }
.notice { background: #fff; border: 1px solid var(--copper); border-left: 4px solid var(--copper); border-radius: 6px; padding: 14px 18px; font-size: .95rem; }

/* Shop */
.shop-cat { margin-bottom: 56px; }
.product { gap: 8px; }
.product .brand-line { font-family: var(--body); font-weight: 700; font-size: .8rem; letter-spacing: .03em; color: var(--earth); }
.product h3 { margin: 0; }
.product .foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Forms */
form { display: grid; gap: 18px; }
label { font-family: var(--body); font-weight: 600; font-size: 1rem; display: grid; gap: 6px; }
input, select, textarea { font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--forest); outline: none; }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* Prose */
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Page banner */
.page-head { padding: 56px 0 24px; }

/* Footer */
.site-footer { background: var(--forest); color: var(--stone); padding: 56px 0 28px; margin-top: 40px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--copper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.footer-logo { height: 64px; width: auto; margin-bottom: 12px; }
.legal { border-top: 1px solid rgba(247,243,235,.25); margin-top: 36px; padding-top: 20px; font-size: .85rem; color: #c9cfc3; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .profile-body { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .doors, .grid { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .doors, .grid, .footer-grid { grid-template-columns: 1fr; }
  .door-card { min-height: 300px; }
  section { padding: 52px 0; }
  .arch.lg { width: 170px; height: 214px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
