/* ============================================================
   LEYLAND HEDGEHOG RESCUE — shared design for all pages.
   Volunteers: to change the words on the site, edit index.html
   or garden.html instead. This file only controls how it looks.
   ============================================================ */

:root {
  --cream:      #FAF4E8;
  --cream-deep: #F2E7D3;
  --ink:        #33231A;
  --ink-soft:   #5C4633;
  --moss:       #4F6B3C;
  --moss-deep:  #3C5230;
  --urgent:     #B23A26;
  --urgent-deep:#8E2C1B;
  --amber:      #D98E32;
  --card:       #FFFDF7;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(51, 35, 26, 0.10), 0 10px 24px rgba(51, 35, 26, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Karla", "Segoe UI", Verdana, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  /* Soft paper-grain texture, drawn in CSS so no image files are needed */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(217, 142, 50, 0.10), transparent),
    repeating-linear-gradient(45deg, rgba(51,35,26,0.012) 0 2px, transparent 2px 4px);
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  color: var(--ink);
}

a { color: var(--moss-deep); }

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Emergency ribbon ---------- */
.ribbon {
  display: block;
  background: var(--urgent);
  color: #FFF6EE;
  text-align: center;
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.ribbon a { color: #FFE3B8; }
a.ribbon { text-decoration: none; }
a.ribbon:hover, a.ribbon:focus-visible { background: var(--urgent-deep); }

/* ---------- Header ---------- */
header.hero {
  text-align: center;
  padding: 3rem 0 2.25rem;
  animation: rise 0.7s ease-out both;
}
.hero .hog {
  width: 108px;
  height: auto;
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  font-weight: 900;
}
.hero h1 span { color: var(--moss); }
.hero p.tagline {
  max-width: 32rem;
  margin: 0.9rem auto 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ---------- Page navigation pills ---------- */
.nav-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
}
.pill {
  display: inline-block;
  padding: 0.45rem 1.15rem;
  border-radius: 99px;
  border: 2px solid var(--moss);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--moss-deep);
  transition: background 0.15s ease;
}
.pill:hover, .pill:focus-visible { background: #E3EAD9; }
.pill[aria-current="page"] {
  background: var(--moss);
  color: #fff;
}

/* ---------- Section headings ---------- */
section { padding: 1.4rem 0; }
section h2 {
  font-size: clamp(1.5rem, 4.5vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
section h2::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--amber);
}
section.urgent h2::before { background: var(--urgent); }
section.calm h2::before { background: var(--moss); }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid rgba(51, 35, 26, 0.08);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card p + p { margin-top: 0.65rem; }

.card.vet    { border-left: 6px solid var(--urgent); }
.card.hoglet { border-left: 6px solid var(--amber); }
.card.night  { border-left: 6px solid var(--moss); }

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  margin-bottom: 0.65rem;
}
.badge.red   { background: #F8E0D9; color: var(--urgent-deep); }
.badge.amber { background: #F7E8CE; color: #8A5A14; }
.badge.green { background: #E3EAD9; color: var(--moss-deep); }

.big-point {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--urgent-deep);
}

/* ---------- Tick / cross lists ---------- */
.checklist {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.checklist li {
  position: relative;
  padding-left: 1.7rem;
}
.checklist li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}
.checklist.good li::before { content: "✓"; color: var(--moss-deep); }
.checklist.bad li::before  { content: "✗"; color: var(--urgent); }

/* ---------- Vets ---------- */
.vets {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}
.vet-line {
  background: var(--cream-deep);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-weight: 500;
}
.vet-line strong { font-weight: 700; }

.free-note {
  margin-top: 0.9rem;
  background: #E3EAD9;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  color: var(--moss-deep);
}

/* ---------- Rescue phone list ---------- */
.rescues {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.75rem;
}
.rescues li a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  background: var(--card);
  border: 1px solid rgba(51, 35, 26, 0.10);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.rescues li a:hover,
.rescues li a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--moss);
}
.rescues .place {
  font-weight: 700;
  color: var(--ink);
}
.rescues .num {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--moss-deep);
  font-variant-numeric: tabular-nums;
}
.rescues .num::before {
  content: "📞 ";
  font-size: 0.9em;
}

.bhps {
  margin-top: 1.1rem;
  background: var(--moss-deep);
  color: #F2EFE4;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.bhps p + p { margin-top: 0.65rem; }
.bhps strong { color: #fff; }
.bhps a {
  color: #FFD9A0;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}
.bhps a:hover, .bhps a:focus-visible { text-decoration: underline; }

/* ---------- Footer ---------- */
footer {
  margin-top: 2.5rem;
  padding: 2rem 0 2.5rem;
  background: var(--cream-deep);
  border-top: 1px solid rgba(51, 35, 26, 0.10);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
footer p + p { margin-top: 0.4rem; }

/* ---------- Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
section { animation: rise 0.7s ease-out both; }
section:nth-of-type(2) { animation-delay: 0.08s; }
section:nth-of-type(3) { animation-delay: 0.16s; }
section:nth-of-type(4) { animation-delay: 0.24s; }
section:nth-of-type(5) { animation-delay: 0.32s; }
section:nth-of-type(6) { animation-delay: 0.4s; }
section:nth-of-type(7) { animation-delay: 0.48s; }

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