/* ---- Seasonal ribbon: Fall 2026 ("Book Your Fall Projects Today!") ----
   Requested by Dennis Herring (email 2026-11-18) via Matt Jones. Sits above the sticky header and
   scrolls away with the page. Full viewport width (L&L rule). Leaves stay inside the ribbon and
   stop for visitors who turn off motion. Remove this block and the .fall-ribbon markup to take it down. */
.fall-ribbon {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--teal-deep) 0%, var(--teal) 50%, var(--teal-deep) 100%);
  color: #fff;
  border-bottom: 3px solid var(--lime);
}
.fall-ribbon-in {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 11px clamp(16px, 3vw, 36px);
  text-align: center;
}
.fall-ribbon-text {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.fall-ribbon-text .fr-leaf-icon { display: inline-block; margin-right: 8px; }
.fall-ribbon-btn {
  flex: none;
  display: inline-block;
  background: var(--lime);
  color: var(--dark);
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.fall-ribbon-btn:hover, .fall-ribbon-btn:focus-visible { background: #fff; transform: translateY(-1px); }
.fall-ribbon-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Falling leaves */
.fall-ribbon-leaves { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fall-ribbon-leaves span {
  position: absolute;
  top: -24px;
  width: 20px;
  height: 20px;
  opacity: 0;
  background: currentColor;
  /* Maple leaf silhouette (solid, no vein line), Dennis 2026-11-20 */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4L58 22L70 16L66 40L84 28L90 36L82 46L96 50L80 60L84 70L62 66L60 74L54 72L52 96L48 96L46 72L40 74L38 66L16 70L20 60L4 50L18 46L10 36L16 28L34 40L30 16L42 22Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4L58 22L70 16L66 40L84 28L90 36L82 46L96 50L80 60L84 70L62 66L60 74L54 72L52 96L48 96L46 72L40 74L38 66L16 70L20 60L4 50L18 46L10 36L16 28L34 40L30 16L42 22Z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: fr-fall 7s linear infinite;
}
/* Every other leaf is a rounded leaf with a short stem, for variety */
.fall-ribbon-leaves span:nth-child(even) {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4C20 30 18 70 47 88L46 98L54 98L53 88C82 70 80 30 50 4Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4C20 30 18 70 47 88L46 98L54 98L53 88C82 70 80 30 50 4Z'/%3E%3C/svg%3E");
}
.fall-ribbon-leaves span:nth-child(1)  { left: 4%;  color: #e07a1f; animation-delay: 0s;   animation-duration: 7s; }
.fall-ribbon-leaves span:nth-child(2)  { left: 13%; color: #c8432b; animation-delay: 2.2s; animation-duration: 8s;  width: 16px; height: 16px; }
.fall-ribbon-leaves span:nth-child(3)  { left: 22%; color: #e3a72f; animation-delay: 4.1s; animation-duration: 6.5s; }
.fall-ribbon-leaves span:nth-child(4)  { left: 31%; color: #a8461f; animation-delay: 1.3s; animation-duration: 7.5s; width: 17px; height: 17px; }
.fall-ribbon-leaves span:nth-child(5)  { left: 69%; color: #e07a1f; animation-delay: 3.4s; animation-duration: 7s; }
.fall-ribbon-leaves span:nth-child(6)  { left: 78%; color: #e3a72f; animation-delay: 0.7s; animation-duration: 8.5s; width: 16px; height: 16px; }
.fall-ribbon-leaves span:nth-child(7)  { left: 87%; color: #c8432b; animation-delay: 5s;   animation-duration: 6.8s; }
.fall-ribbon-leaves span:nth-child(8)  { left: 95%; color: #a8461f; animation-delay: 2.8s; animation-duration: 7.8s; width: 17px; height: 17px; }
.fall-ribbon-leaves span:nth-child(9)  { left: 45%; color: #e3a72f; animation-delay: 6s;   animation-duration: 7.2s; width: 15px; height: 15px; }
.fall-ribbon-leaves span:nth-child(10) { left: 56%; color: #e07a1f; animation-delay: 4.6s; animation-duration: 8.2s; width: 15px; height: 15px; }
@keyframes fr-fall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.95; }
  50%  { transform: translate(18px, 40px) rotate(180deg); }
  90%  { opacity: 0.9; }
  100% { transform: translate(-6px, 84px) rotate(340deg); opacity: 0; }
}

.fr-btn-short { display: none; }
@media (max-width: 640px) {
  .fr-btn-long { display: none; }
  .fr-btn-short { display: inline; }
  .fall-ribbon-in { gap: 10px; padding: 9px 12px; }
  .fall-ribbon-text { font-size: 14.5px; white-space: nowrap; }
  .fall-ribbon-text .fr-leaf-icon { display: none; }
  .fall-ribbon-btn { font-size: 12.5px; padding: 8px 12px; }
  .fall-ribbon-leaves span:nth-child(n+7) { display: none; }
}
@media (max-width: 359px) {
  .fall-ribbon-text { font-size: 13px; }
  .fall-ribbon-btn { padding: 7px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .fall-ribbon-leaves { display: none; }
}
