/* playful touches: flying hummingbird and photo gallery */

/* ---------- flying hummingbird ---------- */
.flyer {
  position: fixed; top: 0; left: 0; width: 64px; height: 64px; z-index: 60;
  pointer-events: none; will-change: transform; opacity: 0;
}
.flyer svg { width: 100%; height: 100%; overflow: visible; }
.flyer .wing { transform-origin: 104px 84px; animation: flap .09s ease-in-out infinite alternate; }
.flyer .wing.back { animation-delay: .045s; }
@keyframes flap { from { transform: scaleY(1) rotate(0deg); } to { transform: scaleY(.25) rotate(8deg); } }

/* header icon: the little bird lifts on hover */
.brand:hover .brand-icon { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* gentle float for the big logo */
.logo-lockup img { animation: drift 7s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- photo gallery ---------- */
.gallery { padding: 72px 0 96px; }
.gallery .head { text-align: center; margin-bottom: 36px; }
.carousel { position: relative; max-width: 980px; margin: 0 auto; }
.carousel .viewport { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-2); }
.carousel .track { display: flex; transition: transform .9s cubic-bezier(.65,.05,.25,1); }
.carousel .slide { flex: 0 0 100%; margin: 0; position: relative; aspect-ratio: 16 / 10; max-height: 72vh; }
.carousel .slide { overflow: hidden; }
.carousel .slide .bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(22px) saturate(1.1); opacity: .7; }
.carousel .slide img { position: relative; width: 100%; height: 100%; object-fit: contain; transform: scale(1.04); transition: transform 6s ease; }
.carousel .slide.on img { transform: scale(1); }
.carousel .slide figcaption {
  position: absolute; right: 14px; bottom: 12px; font-size: .75rem; color: #fff;
  background: rgba(43,42,40,.35); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.carousel .nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255,253,249,.88); color: var(--ink); font-size: 1.3rem; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .3s, background .3s; display: grid; place-items: center;
}
.carousel .nav:hover { transform: translateY(-50%) scale(1.08); background: #fff; }
.carousel .prev { left: 14px; } .carousel .next { right: 14px; }
.carousel .dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.carousel .dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: background .3s, transform .3s; }
.carousel .dots button[aria-current="true"] { background: var(--accent); transform: scale(1.3); }
.thumbs { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.thumbs button { width: 64px; height: 48px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .6; transition: opacity .3s, border-color .3s, transform .3s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"], .thumbs button:hover { opacity: 1; border-color: var(--sun); transform: translateY(-2px); }

@media (max-width: 860px) {
  .carousel .slide { aspect-ratio: 4 / 5; }
  .carousel .nav { width: 40px; height: 40px; }
  .thumbs { display: none; }
  .flyer { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .flyer { display: none; }
  .logo-lockup img, .brand:hover .brand-icon { animation: none; }
  .carousel .track, .carousel .slide img { transition: none; }
}
/* sunset that sets as you scroll */
.hero-photo .sun-glow { animation: none; transform: translateY(calc(var(--set, 0) * 70%)) scale(calc(1 + var(--set, 0) * .12)); transition: transform .2s linear; }
.hero-photo .sun-glow::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, #F4B183 0%, #EE9A86 45%, #E58C8C 68%, rgba(229,140,140,0) 90%);
  opacity: var(--set, 0);
}
.hero { background: linear-gradient(180deg, rgba(243,188,158,calc(var(--set,0) * .28)), rgba(247,243,236,0) 85%); }

/* animated numbers */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat { background: var(--card); border-radius: var(--radius); padding: 34px 20px; box-shadow: var(--shadow); }
.stat .num { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: var(--accent); }
.stat p { margin: 12px 0 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }

/* ---------- healing is possible ---------- */
.hope-strip {
  display: flex; align-items: center; justify-content: center; gap: 16px; padding: 9px 16px 11px;
  border-top: 1px solid rgba(221,212,198,.6);
  background: linear-gradient(90deg, rgba(247,220,146,0), rgba(247,220,146,.28) 30%, rgba(243,188,158,.28) 70%, rgba(243,188,158,0));
  font-family: var(--serif); font-style: italic; font-size: 1.55rem; letter-spacing: .02em; color: var(--accent);
}
.hope-strip .hb-dot { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle, #F6CE92, #F3BC9E); flex: none; }
@media (max-width: 860px) { .hope-strip { font-size: 1.12rem; padding: 6px 12px 8px; } .nav-links { inset: 120px 0 auto 0; } }

.hope-line { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--accent); margin-top: .7em !important; }

/* words slide up under the footer logo */
.sun-reveal { margin: 8px auto 0; overflow: hidden; padding-bottom: 6px; }
.sun-reveal p {
  margin: 0; text-align: center; font-family: var(--serif); font-size: clamp(2.4rem, 5.5vw, 3.6rem); line-height: 1.1; color: var(--ink);
  opacity: 0; transform: translateY(36px); transition: opacity 1.6s ease .3s, transform 1.6s cubic-bezier(.2,.7,.2,1) .3s;
}
.sun-reveal p em { color: var(--accent); }
.sun-reveal.up p { opacity: 1; transform: none; }

/* the hummingbird's message */
.fly-note {
  position: fixed; z-index: 59; pointer-events: none; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--accent);
  opacity: 0; transition: opacity 1.4s ease, transform 3s ease; white-space: nowrap; text-shadow: 0 1px 8px rgba(247,243,236,.9);
}
.fly-note.show { opacity: .9; transform: translateY(-8px); }
@media (prefers-reduced-motion: reduce) { .sun-reveal p { transform: none; transition: none; opacity: 1; } }
