/* =======================================================
   Happy Paws, Tails & Scales — Design System
   Palette matched to the park-flyer brand: warm cream
   background, hand-lettered forest green, coral paw/heart
   accents, with a soft sky-blue + peach pairing for the
   "Our House / Your House" cards.
   ======================================================= */

@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap");

:root {
  --cream: #fbf8f1;
  --mist: #eff3e7;
  --sky: #cfeaf1;
  --sky-light: #e3eeda;
  --peach: #fbe7cf;
  --teal-600: #4b6b3f;
  --teal-700: #3a5730;
  --teal-900: #2c4423;
  --ink: #2e3a29;
  --ink-soft: #5c6b57;
  --honey: #f0846b;
  --honey-dark: #dd6a4f;
  --coral: #e76f51;
  --leaf: #4c9a72;
  --amber: #d98c1f;
  --border: #a9c190;
  --border-soft: #c3d6ac;
  --border-input: #7e9868;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-card: 0 6px 20px rgba(44, 68, 35, 0.08);
  --shadow-pop: 0 14px 34px rgba(44, 68, 35, 0.16);
  --font-display: "Baloo 2", "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --max: 1120px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 8% 0%, var(--mist) 0%, transparent 45%),
    radial-gradient(circle at 100% 10%, var(--sky-light) 0%, transparent 40%);
  background-attachment: fixed;
  line-height: 1.55;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal-900);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 65ch; }
a { color: var(--teal-700); }
img, svg { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--honey-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal-600); color: var(--cream); box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--teal-700); }
.btn-secondary { background: var(--cream); color: var(--teal-700); border-color: var(--teal-600); }
.btn-secondary:hover { background: var(--mist); }
.btn-ghost { background: transparent; color: var(--teal-700); border-color: transparent; padding: 10px 14px; }
.btn-danger { background: #fdece7; color: var(--coral); border-color: #f3c9bb; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 254, 254, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; color: var(--teal-900); font-size: 1.15rem; }
.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
}
.primary-nav a:hover { background: var(--mist); color: var(--teal-700); }
.primary-nav a.is-active { background: var(--teal-600); color: white; }
.primary-nav a.admin-link { border: 1px dashed var(--border); margin-left: 6px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 3px; background: var(--teal-900); border-radius: 3px; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--border-soft);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { text-align: center; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); margin-top: 80px; padding: 28px 0; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.footer-row p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.footer-nav a { margin-left: 16px; font-size: 0.9rem; text-decoration: none; color: var(--ink-soft); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mist); color: var(--teal-700); font-weight: 700;
  padding: 7px 16px; border-radius: 999px; font-size: 0.9rem; margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { position: relative; }
.hero-art .blob {
  position: absolute; inset: 0; background: var(--sky-light);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  transform: scale(1.08);
  z-index: 0;
}
.hero-art svg { position: relative; z-index: 1; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ---------- Trust chips (hand-lettered feel, like the flyer) ---------- */
.trust-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.trust-chip {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  color: var(--teal-700); border: 1.5px dashed var(--teal-600);
  padding: 5px 13px; border-radius: 999px; background: transparent;
}

/* ---------- Brush highlight behind a short phrase ---------- */
.brush-highlight {
  position: relative; display: inline-block; padding: 2px 4px;
}
.brush-highlight::before {
  content: ""; position: absolute; inset: 4px -6px;
  background: var(--sky-light);
  border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%;
  transform: rotate(-1.2deg);
  z-index: -1;
}

/* ---------- Where care happens (Our House / Your House cards) ---------- */
.where-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.where-card { border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); }
.where-card.is-ours { background: var(--sky); }
.where-card.is-theirs { background: var(--peach); }
.where-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.where-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.where-card li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--teal-900); }
.where-card .paw-dot { width: 20px; height: 20px; flex: none; }
@media (max-width: 700px) { .where-grid { grid-template-columns: 1fr; } }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 56px 0; }
.stat-card {
  background: var(--cream); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); padding: 20px; text-align: center;
  box-shadow: var(--shadow-card);
}
.stat-num { font-family: var(--font-display); font-size: 2rem; color: var(--teal-600); font-weight: 800; }
.stat-label { font-size: 0.88rem; color: var(--ink-soft); font-weight: 700; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: 46px 0; }
.section-head { max-width: 620px; margin-bottom: 34px; }
.section-tint { background: var(--mist); border-radius: var(--radius-lg); }

/* ---------- Steps (real sequence, numbered on purpose) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: var(--cream); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-card); position: relative; }
.step-num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--teal-600); color: white;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 700; margin-bottom: 14px;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- About / bio ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: center; }
.about-card {
  background: var(--cream); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-card);
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Pet cards (public showcase) ---------- */
.pet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.pet-card {
  background: var(--cream); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid var(--border-soft);
  display: flex; flex-direction: column;
}
.pet-card-art { background: var(--sky-light); padding: 26px; display: flex; justify-content: center; }
.pet-card-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pet-tag {
  align-self: flex-start; font-size: 0.78rem; font-weight: 800; color: var(--teal-700);
  background: var(--mist); padding: 4px 10px; border-radius: 999px;
}
.pet-card p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--cream); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow-card); max-width: 720px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--teal-900); }
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; margin-top: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 2px solid var(--border-input); font-family: var(--font-body); font-size: 1rem;
  background: white; color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: 0.8; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(44, 68, 35, 0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
fieldset { border: none; padding: 0; margin: 0 0 20px; }
legend { font-family: var(--font-display); color: var(--teal-700); font-weight: 700; padding: 0; margin-bottom: 10px; font-size: 1.05rem; }

.confirm-box {
  background: #eaf7f0; border: 1.5px solid #bfe3cc; color: var(--leaf);
  padding: 18px 20px; border-radius: var(--radius-md); font-weight: 700; display: none;
}
.confirm-box.is-visible { display: block; }

/* ---------- Status pills ---------- */
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; }
.status-pending { background: #fdf1de; color: var(--amber); }
.status-confirmed { background: #eaf7f0; color: var(--leaf); }
.status-declined { background: #fdece7; color: var(--coral); }

/* ---------- Admin ---------- */
.admin-shell { padding: 40px 0 90px; }
.login-card { max-width: 380px; margin: 60px auto; text-align: center; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-tab {
  background: var(--cream); border: 1.5px solid var(--border-soft); padding: 10px 18px;
  border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--ink-soft); font-family: var(--font-body);
}
.admin-tab.is-active { background: var(--teal-600); color: white; border-color: var(--teal-600); }
.admin-panel { display: none; }
.admin-panel.is-active { display: block; }

.table-wrap { overflow-x: auto; background: var(--cream); border-radius: var(--radius-md); box-shadow: var(--shadow-card); border: 1px solid var(--border-soft); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); font-size: 0.94rem; vertical-align: top; }
th { font-family: var(--font-display); color: var(--teal-900); background: var(--mist); }
tr:last-child td { border-bottom: none; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-soft); }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(18, 52, 58, 0.45);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 60;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  background: var(--cream); border-radius: var(--radius-lg); padding: 30px; max-width: 560px;
  width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-pop);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.icon-btn { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink-soft); line-height: 1; }

.badge-toggle { display: flex; align-items: center; gap: 10px; font-weight: 700; }
