/* Page Lemon template: Foster. Friendly teal and coral, photo-led polaroids, rounded type. */
:root {
  /* Colour tokens: edit here. Keep --ink on --paper and --white; --white on --teal; --ink on --coral and --sun */
  --paper: #F3FAF9;        /* page ground, cool mint-white */
  --white: #FFFFFF;        /* polaroid frames and cards */
  --ink: #0B2E2E;          /* body text */
  --muted: #3E5C5B;        /* secondary text */
  --teal: #0E6B66;         /* primary buttons and links */
  --teal-deep: #0A4D4A;    /* footer and hover */
  --teal-soft: #D5EEEA;    /* soft bands and dividers */
  --coral: #FF7A66;        /* accent: CTA band, step numbers. Text on it is --ink */
  --sun: #FFD166;          /* tape, stickers, highlight */

  /* Fonts: change the Google Fonts <link> in each page too */
  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 16px; }
ul, ol { padding: 0; margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: var(--gutter); top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
.section { padding: 56px 0; }
@media (min-width: 720px) { .section { padding: 96px 0; } }
.band-soft { background: var(--teal-soft); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 42ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  background: var(--teal); color: var(--white); border: 2px solid var(--teal);
  font: 600 1.05rem/1.2 var(--font-display); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--teal-soft); color: var(--teal-deep); }
.btn-coral { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.btn-coral:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 2px solid var(--teal-soft); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.wordmark { font: 600 1.5rem/1 var(--font-display); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); box-shadow: 18px 0 0 var(--sun); margin-right: 14px; }
.nav-inline { display: none; }
.nav-disclosure { position: relative; }
.nav-disclosure summary {
  list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; padding: 10px 16px;
  border-radius: 999px; border: 2px solid var(--teal); color: var(--teal); font: 600 1rem var(--font-display);
  display: inline-flex; align-items: center;
}
.nav-disclosure summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; padding: 12px;
  background: var(--white); border-radius: 18px; box-shadow: 0 16px 40px rgba(11, 46, 46, .18);
  display: grid; gap: 4px;
}
.menu-panel a { padding: 12px 14px; min-height: 44px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; display: flex; align-items: center; }
.menu-panel a:hover { background: var(--teal-soft); }
.menu-panel a[aria-current="page"] { background: var(--sun); }
.menu-panel .btn { margin-top: 8px; color: var(--ink); }
.menu-panel a.btn[aria-current="page"] { background: var(--coral); }
@media (min-width: 900px) {
  .nav-disclosure { display: none; }
  .nav-inline { display: flex; align-items: center; gap: 28px; }
  .nav-inline ul { display: flex; gap: 22px; list-style: none; }
  .nav-inline a { color: var(--ink); text-decoration: none; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
  .nav-inline a:hover { color: var(--teal); }
  .nav-inline a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -4px 0 var(--sun); }
.nav-inline a.btn[aria-current="page"] { color: var(--ink); box-shadow: none; }
}

/* Polaroids: the photo frame for every animal and story */
.polaroid {
  position: relative; margin: 0; background: var(--white); padding: 12px 12px 52px;
  border-radius: 6px; box-shadow: 0 14px 28px rgba(11, 46, 46, .16);
  transform: rotate(var(--rot, 0deg));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.polaroid::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 88px; height: 28px;
  transform: translateX(-50%) rotate(-3deg); background: rgba(255, 209, 102, .88); border-radius: 3px;
}
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.polaroid figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; font: 600 1.15rem/1.2 var(--font-display); text-align: center; color: var(--ink); }
.polaroid:hover, .polaroid:focus-within { transform: rotate(0deg) translateY(-6px); box-shadow: 0 24px 40px rgba(11, 46, 46, .22); }
.polaroid .caption-link { color: var(--teal); text-decoration: none; font-weight: 800; font-family: var(--font-body); font-size: 1rem; }
.polaroid .caption-link::after { content: ""; position: absolute; inset: 0; }
.tilt-a { --rot: -1.5deg; }
.tilt-b { --rot: 2deg; }
.polaroid.big { padding: 16px 16px 64px; }
.polaroid.big figcaption { font-size: 1.5rem; bottom: 14px; }

/* Hero */
.hero { padding: 40px 0 56px; }
@media (min-width: 900px) { .hero { padding: 72px 0 96px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hl { background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%); padding: 0 .06em; }
.pile { position: relative; min-height: 440px; }
@media (min-width: 900px) { .pile { min-height: 560px; } }
.pile .polaroid { position: absolute; width: 52%; }
.pile-1 { --rot: -5deg; top: 0; left: 0; z-index: 2; }
.pile-2 { --rot: 4deg; top: 12%; right: 0; z-index: 3; }
.pile-3 { --rot: -2deg; bottom: 0; left: 16%; z-index: 4; width: 46%; }
.pile .polaroid:hover, .pile .polaroid:focus-within { z-index: 6; }
.sticker {
  position: absolute; right: 2%; top: 56%; z-index: 5; width: 118px; height: 118px; border-radius: 50%;
  background: var(--coral); color: var(--ink); display: grid; place-items: center; text-align: center;
  font: 600 1.1rem/1.05 var(--font-display); transform: rotate(12deg); box-shadow: 0 10px 22px rgba(11, 46, 46, .18);
}
@media (min-width: 900px) { .sticker { width: 140px; height: 140px; font-size: 1.25rem; } }

/* Adopt grid and filters */
.chips { display: none; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; }
.js .chips { display: flex; }
.chip {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--teal);
  background: transparent; color: var(--teal); font: 800 1rem var(--font-body); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--teal); color: var(--white); }
.adopt-grid { list-style: none; display: grid; gap: 52px 28px; grid-template-columns: 1fr; padding-top: 18px; }
@media (min-width: 620px) { .adopt-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .adopt-grid { grid-template-columns: repeat(3, 1fr); } }
.adopt-card { display: grid; gap: 22px; align-content: start; }
.adopt-card:nth-child(3n+1) .polaroid { --rot: -2deg; }
.adopt-card:nth-child(3n+2) .polaroid { --rot: 1.5deg; }
.adopt-card:nth-child(3n) .polaroid { --rot: -1deg; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.meta li { background: var(--teal-soft); color: var(--teal-deep); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .95rem; }

/* Steps */
.steps { list-style: none; display: grid; gap: 28px; margin-top: 36px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: 0 8px 22px rgba(11, 46, 46, .08); }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--coral); color: var(--ink); display: grid; place-items: center; font: 600 1.6rem/1 var(--font-display); margin-bottom: 18px; }

/* Stats */
.stats { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (min-width: 480px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { background: var(--white); border-radius: var(--radius); padding: 24px; margin: 0; }
.stat dt, .stat dd { margin: 0; }
.stat-num { display: block; font: 600 clamp(2.2rem, 5vw, 3.4rem)/1 var(--font-display); color: var(--teal); margin-bottom: 8px; overflow-wrap: anywhere; }
.stat-label { color: var(--muted); font-weight: 700; }

/* Quotes */
.quotes { display: grid; gap: 24px; margin-top: 36px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote-card { background: var(--white); border-radius: var(--radius); padding: 28px; margin: 0; }
.quote-card blockquote { margin: 0 0 14px; font: 500 1.3rem/1.35 var(--font-display); }
.quote-card figcaption { color: var(--muted); font-weight: 700; }

/* Coral CTA band */
.band-coral { background: var(--coral); color: var(--ink); }
.band-coral .lede { color: var(--ink); }
.band-coral .btn-ghost { color: var(--ink); border-color: var(--ink); }

/* Profile */
.profile-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 1fr 1fr; } }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; background: var(--white); border-radius: var(--radius); padding: 28px; margin: 28px 0; }
.facts dt { font-weight: 800; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }

/* Stories */
.story { display: grid; gap: 28px; align-items: center; padding: 48px 0; border-top: 2px solid var(--teal-soft); }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; } .story.flip .story-photo { order: 2; } }
.story:first-of-type { border-top: 0; }

/* Donate */
.gift-grid { display: grid; gap: 24px; margin-top: 36px; }
@media (min-width: 900px) { .gift-grid { grid-template-columns: repeat(3, 1fr); } }
.gift { background: var(--white); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.gift .price { font: 600 2.6rem/1 var(--font-display); color: var(--teal); }
.gift.featured { outline: 3px solid var(--coral); outline-offset: 4px; }
.gift .btn { margin-top: auto; }
.split-bars { list-style: none; margin-top: 28px; display: grid; gap: 18px; }
.bar-row { display: grid; gap: 6px; }
.bar { height: 16px; border-radius: 999px; background: var(--teal-soft); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--teal); border-radius: inherit; }
.w-40 { width: 40%; }
.w-25 { width: 25%; }
.w-20 { width: 20%; }
.w-15 { width: 15%; }

/* Volunteer roles */
.roles { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 900px) { .roles { grid-template-columns: repeat(2, 1fr); } }
.role { background: var(--white); border-radius: var(--radius); padding: 26px; border-left: 10px solid var(--teal); }
.role:nth-child(2n) { border-left-color: var(--coral); }
.role .time { font-weight: 800; color: var(--teal); margin-bottom: 6px; display: block; }

/* Slots and inert forms */
.slot { margin-top: 28px; background: var(--white); border-radius: var(--radius); padding: 24px; }
.slot p:last-child { margin: 0; }
.enquiry-form { display: grid; gap: 16px; }
.enquiry-form label { font-weight: 800; display: block; margin-bottom: 6px; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--teal-soft); border-radius: 14px;
  font: 400 1rem var(--font-body); background: var(--paper); color: var(--ink);
}
.enquiry-form textarea { min-height: 120px; }
.enquiry-form .field-row { display: grid; gap: 16px; }
@media (min-width: 620px) { .enquiry-form .field-row { grid-template-columns: 1fr 1fr; } }
.enquiry-form .check { display: flex; align-items: center; gap: 10px; }
.enquiry-form .check label { display: inline; margin: 0; font-weight: 600; }
.enquiry-form .check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--teal); }

/* Visit and hours */
.visit-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1fr; } }
.hours { list-style: none; background: var(--white); border-radius: var(--radius); padding: 24px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 2px dashed var(--teal-soft); }
.hours li:last-child { border-bottom: 0; }

/* Footer */
.site-footer { background: var(--teal-deep); color: var(--white); padding: 56px 0 40px; }
.site-footer a { color: var(--sun); font-weight: 700; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-name { font: 600 1.5rem/1.1 var(--font-display); margin: 0 0 8px; }
.footer-grid p { margin: 0 0 8px; }
.site-footer .btn-coral { color: var(--ink); }
.site-footer .btn-coral:hover { color: var(--paper); }

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Plain pages */
.plain { max-width: 68ch; }
.wrap.plain { max-width: 1160px; } .wrap.plain > * { max-width: 68ch; }
.plain h2 { font-size: 1.8rem; margin-top: 32px; }
