@font-face {
  font-family: "Lilita One";
  src: url("/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --sky: #cfeafb;
  --bg: #fdf7ea;
  --card: #fffdf6;
  --card-top: #ffffff;
  --border: #f2c45a;
  --border-deep: #d99a2b;
  --fg: #3d2b1f;
  --muted: #7a6656;
  --heading: #6b3d14;
  --accent: #2f8f5b;
  --accent-deep: #1f6b42;
  --accent-soft: #e7f5ec;
  --pill: rgba(255, 255, 255, 0.9);
  --line: #efe3cc;
  --shadow: 0 12px 30px rgba(80, 50, 10, 0.13);
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky: #12324a;
    --bg: #111a22;
    --card: #1b2731;
    --card-top: #22313d;
    --border: #b88a2c;
    --border-deep: #8a6416;
    --fg: #ece3d6;
    --muted: #b3a593;
    --heading: #ffd27a;
    --accent: #7fd6a3;
    --accent-deep: #4fae7a;
    --accent-soft: #1f3a2c;
    --pill: rgba(20, 32, 42, 0.9);
    --line: #2c3a46;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--fg);
  background: linear-gradient(var(--sky), var(--bg) 560px) no-repeat, var(--bg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--border-deep); outline-offset: 3px; border-radius: 8px; }

h1, h2 {
  font-family: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-weight: 400;
  color: var(--heading);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
h1 { font-size: 36px; margin: 0 0 8px; }
h2 { font-size: 24px; margin: 32px 0 8px; }

/* ── Banner ───────────────────────────────────────────────────────────── */
.hero, .strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #8cccf1;
  background-image: url("/images/banner-1000.webp");
  background-image: image-set(
    url("/images/banner-1000.webp") 1x,
    url("/images/banner-1920.webp") 2x);
  background-size: cover;
  background-position: center 30%;
}
/* Scalloped lower edge, like the rim of a nest */
.hero::after, .strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 22px;
  background:
    radial-gradient(circle at 18px 0, transparent 17px, var(--bg) 18px) 0 0 / 36px 22px repeat-x;
}
.hero {
  min-height: clamp(280px, 46vw, 580px);
  padding: 28px 16px 70px;
}
.hero .logo {
  position: relative;
  z-index: 1;
  width: min(76vw, 470px);
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(40, 60, 90, 0.38));
  animation: bob 4.5s ease-in-out infinite;
}
.strip {
  min-height: 170px;
  padding: 16px 16px 48px;
}
.strip .logo {
  position: relative;
  z-index: 1;
  width: 180px;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(40, 60, 90, 0.38));
  transition: transform 0.2s ease;
}
.logo-link { display: inline-block; line-height: 0; position: relative; z-index: 1; }
.logo-link:hover .logo { transform: scale(1.04) rotate(-1.5deg); }

/* Leaves drifting down across the banner */
.leaves { position: absolute; inset: 0; pointer-events: none; }
.leaves img {
  position: absolute;
  top: -60px;
  width: 30px;
  height: auto;
  opacity: 0.9;
  animation: fall 14s linear infinite;
}
.leaves img:nth-child(1) { left: 6%;  animation-delay: 0s;    width: 26px; }
.leaves img:nth-child(2) { left: 22%; animation-delay: -5s;   animation-duration: 17s; }
.leaves img:nth-child(3) { left: 38%; animation-delay: -9s;   width: 22px; }
.leaves img:nth-child(4) { left: 61%; animation-delay: -2s;   animation-duration: 16s; }
.leaves img:nth-child(5) { left: 74%; animation-delay: -11s;  width: 24px; }
.leaves img:nth-child(6) { left: 87%; animation-delay: -7s;   animation-duration: 19s; }
.leaves img:nth-child(7) { left: 95%; animation-delay: -13s;  width: 20px; }
.strip .leaves img { animation-duration: 11s; }

@keyframes fall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { transform: translate(-30px, 330px) rotate(160deg); }
  90%  { opacity: 0.9; }
  100% { transform: translate(20px, 680px) rotate(320deg); opacity: 0; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ── Navigation pills, overlapping the banner's edge ─────────────────── */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: -30px auto 0;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}
nav a {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--pill);
  border: 2px solid var(--border);
  border-bottom-width: 4px;
  color: var(--heading);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
nav a:hover { background: var(--accent-soft); color: var(--heading); transform: translateY(-2px); }
nav a[aria-current="page"] {
  background: linear-gradient(#ffd77a, #f2b736);
  border-color: var(--border-deep);
  color: #4a2a0c;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 16px 24px;
}

/* ── Cards ────────────────────────────────────────────────────────────── */
.card {
  background: linear-gradient(var(--card-top), var(--card) 140px);
  border: 3px solid var(--border);
  border-bottom-width: 6px;
  border-radius: 26px;
  padding: 26px 28px;
  margin: 0 0 22px;
  box-shadow: var(--shadow);
}
.card > h2:first-child { margin-top: 0; }

/* About us, with Pico */
.about {
  display: flex;
  align-items: center;
  gap: 24px;
}
.about .pico {
  flex: none;
  width: 120px;
  height: auto;
  filter: drop-shadow(0 8px 10px rgba(60, 40, 10, 0.2));
  animation: bob 5s ease-in-out infinite;
}
.about h1 { margin-bottom: 6px; }
.about p { font-size: 19px; margin: 6px 0; }

/* Policy tiles */
.tiles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tiles a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 18px 14px 20px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--fg);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.tiles a:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
  color: var(--fg);
}
.tiles img {
  width: 76px;
  height: 76px;
  margin-bottom: 8px;
  transition: transform 0.25s ease;
}
.tiles a:hover img { transform: scale(1.08) rotate(-4deg); }
.tiles strong {
  display: block;
  font-family: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-weight: 400;
  color: var(--heading);
  font-size: 21px;
  letter-spacing: 0.01em;
}
.tiles span { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* Policy pages */
.doc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.doc-head img { width: 64px; height: 64px; flex: none; }
.doc-head h1 { margin: 0; }
.doc .muted {
  display: inline-block;
  margin: 6px 0 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
}
.doc h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc h2::before {
  content: "";
  flex: none;
  width: 22px;
  height: 25px;
  background: url("/images/leaf-1.webp") center / contain no-repeat;
}
.muted { color: var(--muted); font-size: 14px; margin-top: 0; }

.cta { margin: 14px 0 6px; }
.button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(#5fd08f, #2f9b5e);
  border: 2px solid #1f6b42;
  border-bottom-width: 5px;
  color: #fff;
  font-family: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-size: 21px;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.button:hover { color: #fff; transform: translateY(-2px); }
.button:active { transform: translateY(1px); }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 10px; border-bottom: 1px solid var(--line); }
th {
  color: var(--heading);
  background: var(--accent-soft);
  font-weight: 800;
}
th:first-child { border-top-left-radius: 12px; }
th:last-child { border-top-right-radius: 12px; }
li { margin: 4px 0; }
ul, ol { padding-left: 22px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
  max-width: 900px;
  margin: 10px auto 0;
  padding: 0 16px 44px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
footer p { margin: 4px 0; }

/* ── Small screens ────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; }
  .tiles a {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    align-content: center;
    column-gap: 14px;
    text-align: left;
    padding: 14px 16px;
  }
  .tiles img { grid-row: 1 / span 2; width: 56px; height: 56px; margin: 0; }
  .tiles strong { align-self: end; }
  .tiles span { align-self: start; }
  .tiles strong { font-size: 19px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .card { padding: 20px 18px; border-radius: 22px; }
  h1 { font-size: 30px; }
  h2 { font-size: 21px; }
  nav { gap: 6px; margin-top: -26px; }
  nav a { padding: 7px 13px; font-size: 14px; }
  .about { flex-direction: column; text-align: center; gap: 8px; }
  .about .pico { width: 96px; }
  .doc-head img { width: 52px; height: 52px; }
  th, td { font-size: 14px; padding: 9px 7px; }
  .strip { min-height: 150px; }
  .strip .logo { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .logo, .about .pico { animation: none; }
  .leaves { display: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
