/* ===== Shoes for Ducks — colorful, fun, ridiculous ===== */
:root {
  --yellow: #ffd23f;
  --orange: #ff8c42;
  --pink: #ff5d8f;
  --teal: #2ec4b6;
  --blue: #4ea8de;
  --purple: #9b5de5;
  --ink: #2b2118;
  --cream: #fff8e7;
  --shadow: rgba(43, 33, 24, 0.18);
  --font: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 210, 63, 0.35), transparent 40%),
    radial-gradient(circle at 88% 12%, rgba(46, 196, 182, 0.3), transparent 42%),
    radial-gradient(circle at 75% 85%, rgba(155, 93, 229, 0.22), transparent 45%);
  overflow-x: hidden;
  line-height: 1.55;
}

/* Floating background ducks */
.floaties { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.floaties span {
  position: absolute;
  font-size: 2rem;
  opacity: 0.25;
  animation: bob linear infinite;
}
@keyframes bob {
  from { transform: translateY(110vh) rotate(0deg); }
  to   { transform: translateY(-15vh) rotate(360deg); }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 6px; width: 0%;
  z-index: 20; transform-origin: left;
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--teal), var(--purple));
}

/* Back to top — cute duck button */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  display: flex; align-items: flex-end; justify-content: center;
  width: 58px; height: 58px; padding-bottom: 7px;
  text-decoration: none; color: var(--ink);
  background: radial-gradient(circle at 50% 35%, #ffe27a, var(--yellow) 70%);
  border: 3px solid var(--ink); border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
  opacity: 0; pointer-events: none; transform: translateY(10px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.to-top.show {
  opacity: 1; pointer-events: auto; transform: translateY(0) scale(1);
  animation: duck-bob 2.4s ease-in-out infinite;
}
.to-top:hover { background: radial-gradient(circle at 50% 35%, #fff0b0, var(--yellow) 70%); }
.to-top:hover .to-top-duck { animation: duck-hop 0.5s ease; }
.to-top:active { transform: translateY(2px) scale(0.98); box-shadow: 2px 2px 0 var(--ink); }

.to-top-duck { font-size: 1.75rem; line-height: 1; }
/* little up-chevron so it clearly means "to the top" */
.to-top-arrow {
  position: absolute; top: 7px; left: 50%;
  width: 10px; height: 10px;
  border-top: 3px solid var(--ink); border-left: 3px solid var(--ink);
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}

@keyframes duck-bob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1); } }
@keyframes duck-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-7px) rotate(-6deg); } }

/* Topbar */
.topbar {
  position: relative; z-index: 3;
  background: var(--ink); color: var(--yellow);
  text-align: center; padding: 0.6rem 1rem;
  font-size: 0.85rem; letter-spacing: 0.2px;
}
.topbar strong { color: var(--pink); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.4rem;
  background: rgba(255, 248, 231, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); font-weight: 800; }
.brand-emoji { font-size: 1.8rem; animation: wobble 3s ease-in-out infinite; }
.brand-text { font-size: 1.35rem; letter-spacing: -0.5px; }
.brand-for { color: var(--pink); font-style: italic; margin: 0 2px; }
.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; white-space: nowrap; }
.nav-links a:hover { color: var(--pink); }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none; cursor: pointer; font-size: 1.5rem; line-height: 1;
  background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 12px;
  padding: 0.25rem 0.6rem; box-shadow: 3px 3px 0 var(--ink);
}
.nav-toggle:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* Buttons */
.btn {
  display: inline-block; cursor: pointer; border: none;
  font-family: var(--font); font-weight: 800; text-decoration: none;
  color: var(--ink); background: var(--yellow);
  border: 3px solid var(--ink); border-radius: 999px;
  padding: 0.7rem 1.4rem; box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-mini { padding: 0.4rem 1rem; background: var(--pink); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn-big { font-size: 1.05rem; padding: 0.9rem 1.8rem; background: var(--orange); }
.btn-huge { font-size: 1.4rem; padding: 1.1rem 2.4rem; background: var(--pink); color: #fff; }
.btn-ghost { background: transparent; }

/* Hero */
.hero {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center;
  max-width: 1150px; margin: 0 auto; padding: 3.5rem 1.4rem 2rem;
}
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-weight: 800; color: var(--purple); font-size: 0.8rem; margin-bottom: 0.6rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -1px; }
.wiggle { color: var(--pink); display: inline-block; animation: wobble 2.2s ease-in-out infinite; }
.lead { font-size: 1.1rem; margin: 1.2rem 0 1.6rem; max-width: 32rem; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 1.4rem; margin-top: 2rem; flex-wrap: wrap; }
.stat { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 0.8rem 1rem; box-shadow: 4px 4px 0 var(--ink); }
.stat-num { display: block; font-size: 1.6rem; font-weight: 900; color: var(--teal); }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* Hero art */
.hero-art { display: flex; justify-content: center; }
.duck-stage { position: relative; width: 260px; height: 260px; }
.big-duck { font-size: 9rem; text-align: center; animation: wobble 3.5s ease-in-out infinite; }
.sad-shoe { position: absolute; bottom: 10px; font-size: 2.5rem; opacity: 0.85; animation: float 3s ease-in-out infinite; }
.shoe-left { left: 30px; }
.shoe-right { right: 30px; animation-delay: 0.6s; }
.speech {
  position: absolute; top: 0; right: -10px;
  background: #fff; border: 3px solid var(--ink); border-radius: 14px;
  padding: 0.4rem 0.7rem; font-weight: 700; font-style: italic;
  box-shadow: 3px 3px 0 var(--ink);
}

@keyframes wobble { 0%,100%{transform:rotate(-4deg);} 50%{transform:rotate(4deg);} }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

/* Bands / sections */
.band { position: relative; z-index: 2; padding: 3.5rem 1.4rem; }
.band > h2 { text-align: center; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.5px; }
.section-sub { text-align: center; max-width: 40rem; margin: 0.6rem auto 2.2rem; opacity: 0.85; }
.band-1 { background: linear-gradient(135deg, rgba(255,210,63,0.25), rgba(255,93,143,0.2)); }
.band-2 { background: linear-gradient(135deg, rgba(46,196,182,0.22), rgba(78,168,222,0.22)); }
.band-3 { background: linear-gradient(135deg, rgba(155,93,229,0.2), rgba(255,140,66,0.2)); }

/* Cards */
.cards, .shoe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; max-width: 1100px; margin: 0 auto; }
.card, .shoe-card {
  background: #fff; border: 3px solid var(--ink); border-radius: 20px;
  padding: 1.6rem 1.4rem; box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.12s ease;
}
.card:hover, .shoe-card:hover { transform: translateY(-6px) rotate(-1deg); }
.card-icon, .shoe-emoji { font-size: 3rem; }
.card h3, .shoe-card h3 { margin: 0.5rem 0; font-size: 1.3rem; }
.shoe-card .price {
  display: inline-block; margin-top: 0.8rem; background: var(--yellow);
  border: 2px solid var(--ink); border-radius: 999px; padding: 0.25rem 0.8rem;
  font-weight: 800; font-size: 0.9rem;
}

/* Calculator */
.calc {
  max-width: 520px; margin: 0 auto; background: #fff;
  border: 3px solid var(--ink); border-radius: 22px; padding: 1.8rem;
  box-shadow: 8px 8px 0 var(--ink); display: grid; gap: 1rem;
}
.calc label { font-weight: 700; display: grid; gap: 0.35rem; }
.calc input, .calc select {
  font-family: var(--font); font-size: 1rem; padding: 0.6rem 0.8rem;
  border: 3px solid var(--ink); border-radius: 12px; background: var(--cream);
}
.calc-result {
  margin-top: 0.4rem; padding: 1rem; background: var(--cream);
  border: 3px dashed var(--ink); border-radius: 14px; font-weight: 700; text-align: center;
}

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; max-width: 1100px; margin: 0 auto; }
.quotes blockquote {
  background: #fff; border: 3px solid var(--ink); border-radius: 20px;
  padding: 1.6rem; box-shadow: 6px 6px 0 var(--ink); font-size: 1.1rem; font-style: italic;
}
.quotes cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 800; color: var(--purple); }

/* Pledge */
.band-pledge { background: linear-gradient(135deg, var(--pink), var(--orange)); color: #fff; text-align: center; }
.band-pledge .section-sub { color: #fff; opacity: 0.95; }
.pledge-box { max-width: 540px; margin: 0 auto; background: rgba(255,255,255,0.15); border: 3px solid #fff; border-radius: 24px; padding: 2rem; }
.pledge-count { font-weight: 700; }
.pledge-num { font-size: 4rem; font-weight: 900; line-height: 1; margin: 0.4rem 0 1.2rem; text-shadow: 3px 3px 0 var(--ink); }
.pledge-fine { font-size: 0.8rem; opacity: 0.9; margin-top: 1rem; }

/* Newsletter */
.news-band { text-align: center; }
.news-form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; }
.news-form input {
  font-family: var(--font); font-size: 1rem; padding: 0.7rem 1rem; flex: 1 1 240px;
  border: 3px solid var(--ink); border-radius: 999px; background: #fff;
}
.news-msg { margin-top: 1rem; font-weight: 800; color: var(--purple); min-height: 1.4rem; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 1rem; }
.faq-list details {
  background: #fff; border: 3px solid var(--ink); border-radius: 16px;
  padding: 1rem 1.2rem; box-shadow: 5px 5px 0 var(--ink);
}
.faq-list summary { font-weight: 800; cursor: pointer; font-size: 1.05rem; }
.faq-list p { margin-top: 0.7rem; }
.faq-list a { color: var(--pink); font-weight: 700; }

/* Footer */
.footer { position: relative; z-index: 2; background: var(--ink); color: var(--cream); text-align: center; padding: 2.5rem 1.4rem; }
.footer-ducks { font-size: 1.6rem; letter-spacing: 0.4rem; margin-bottom: 1rem; }
.footer-fine { opacity: 0.7; font-size: 0.85rem; margin-top: 0.6rem; }

/* Pop animation for confetti bursts */
.pop { animation: pop 0.5s ease; }
@keyframes pop { 0%{transform:scale(1);} 40%{transform:scale(1.25);} 100%{transform:scale(1);} }

.confetti {
  position: fixed; top: -10px; z-index: 50; font-size: 1.4rem;
  pointer-events: none; animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: 0; } }

/* Responsive */
@media (max-width: 780px) {
  .nav { padding: 0.55rem 1rem; }
  .brand-emoji { font-size: 1.5rem; }
  .brand-text { font-size: 1.15rem; }

  .nav-toggle { display: block; }

  /* Collapse links into a dropdown panel */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--ink);
    box-shadow: 0 8px 16px var(--shadow);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 380px; }
  .nav-links a {
    padding: 0.9rem 1.2rem;
    border-top: 2px solid rgba(43, 33, 24, 0.12);
    font-size: 1.05rem;
  }
  .nav-links .btn-mini {
    margin: 0.8rem 1.2rem; text-align: center; padding: 0.7rem 1rem;
  }

  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 2rem; }
  .hero-cta, .hero-stats { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .duck-stage { width: 220px; height: 220px; }
  .big-duck { font-size: 7rem; }

  .band { padding: 2.5rem 1.2rem; }
  .topbar { font-size: 0.78rem; padding: 0.55rem 0.9rem; }

  .to-top { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .to-top-duck { font-size: 1.55rem; }
}
