/* ==========================================================================
   CYD DuPage: Coming Soon page
   Palette pulled from the new CYD logo, plus one warm "sunshine" accent.
   ========================================================================== */

:root {
  color-scheme: light;

  --purple: #6b2394;
  --purple-deep: #4f1970;
  --green: #5aa845;
  --green-text: #3d7d2c;   /* darker green for text on light grounds (AA) */
  --blue: #0c64a8;
  --lime: #9ccb38;
  --sun: #ffc23d;

  --ink: #1e1636;
  --ink-soft: #4f4867;
  --ground: #ffffff;
  --tint-lime: #f4f9e8;
  --line: #ddd8e6;
  --error: #b3261e;

  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  --radius: 18px;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .container { padding: 0 28px; } }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.brand-stripe {
  height: 8px;
  background: linear-gradient(90deg,
    var(--purple) 0 25%, var(--green) 25% 50%, var(--blue) 50% 75%, var(--lime) 75% 100%);
}

.eyebrow {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
}
.eyebrow-green { color: var(--green-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-purple {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 0 var(--purple-deep);
}
.btn-purple:hover { background: #7a2ba7; }
.btn-purple:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--purple-deep); }
.btn-outline {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: #eef5fb; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 110px;
}
@media (min-width: 900px) { .hero { padding: 72px 0 140px; } }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(280px, 0.8fr) 1.2fr; gap: 56px; }
}

.hero-logo {
  justify-self: center;
  width: min(100%, 280px);
}
@media (min-width: 900px) { .hero-logo { width: 100%; max-width: 420px; } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: var(--tint-lime);
  border: 2px solid var(--lime);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--green-text);
}
.badge-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(156, 203, 56, 0.6);
}

.org-name {
  font-size: clamp(2.35rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.org-line { display: block; }
.org-line-1 { color: var(--purple); }
.org-line-2 { color: var(--blue); }

.lede {
  margin: 0 0 28px;
  max-width: 54ch;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 899px) {
  .hero-copy { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* Decorative "balls" echoing the logo */
.hero-dots { position: absolute; inset: 0; pointer-events: none; }
.dot { position: absolute; border-radius: 50%; opacity: 0.9; }
.dot-lime   { width: 54px; height: 54px; background: var(--lime);   top: 9%;  right: 7%; }
.dot-blue   { width: 18px; height: 18px; background: var(--blue);   bottom: 16%; right: 26%; opacity: 0.55; }
.dot-purple { width: 26px; height: 26px; background: var(--purple); bottom: 26%; left: 4%; opacity: 0.35; }
.dot-green  { width: 14px; height: 14px; background: var(--green);  top: 12%; left: 42%; opacity: 0.6; }
.dot-sun    { width: 20px; height: 20px; background: var(--sun);    bottom: 30%; right: 4%; opacity: 0.8; }
@media (max-width: 640px) {
  .dot-lime { width: 36px; height: 36px; top: 4%; right: 5%; }
  .dot-blue, .dot-green { display: none; }
}

/* ==========================================================================
   Holiday Toy Giveaway
   ========================================================================== */
.holiday { position: relative; color: #fff; }

.wave { display: block; width: 100%; height: 70px; }
@media (min-width: 900px) { .wave { height: 110px; } }
.wave path { fill: var(--purple); }
.wave-top { margin-bottom: -1px; }
.wave-bottom { margin-top: -1px; }

.holiday-inner {
  position: relative;
  background: var(--purple);
  padding: 24px 0 40px;
}

.holiday-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .holiday-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; }
}

.holiday-photo {
  margin: 0;
  border: 8px solid #fff;
  border-radius: 22px;
  overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: 0 22px 40px -18px rgba(20, 6, 36, 0.6);
  background: #fff;
}
.holiday-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.holiday-copy h2 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.holiday-copy p { margin: 0 0 16px; max-width: 52ch; color: #efe6f6; }

.date-chip {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink) !important;
  font-weight: 800;
  font-size: 1.05rem;
  transform: rotate(-1.5deg);
  box-shadow: 0 4px 0 #d99a12;
  margin-bottom: 22px !important;
}

.holiday-help {
  padding-top: 16px;
  border-top: 2px dashed rgba(255, 255, 255, 0.28);
}
.holiday-help a {
  color: #fff;
  font-weight: 800;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* Little sun-colored sparkles */
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkle {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--sun);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.s1 { top: 6%;  right: 8%;  }
.s2 { top: 40%; right: 3%;  width: 11px; height: 11px; opacity: 0.8; }
.s3 { bottom: 6%; right: 14%; width: 14px; height: 14px; opacity: 0.7; }
@media (max-width: 899px) { .s2 { display: none; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: 56px 0 88px; background: var(--ground); }

.contact-grid { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
}

.contact-intro h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--purple);
  margin-bottom: 14px;
}
.contact-intro p { margin: 0 0 16px; color: var(--ink-soft); max-width: 46ch; }

.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-weight: 700;
}
.topic-list li { display: flex; align-items: center; gap: 12px; }
.topic-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.topic-purple { background: var(--purple); }
.topic-green  { background: var(--green); }
.topic-blue   { background: var(--blue); }
.topic-lime   { background: var(--lime); }

.form-card {
  background: var(--tint-lime);
  border: 2px solid #e2edc8;
  border-radius: 26px;
  padding: 24px 18px;
}
@media (min-width: 640px) { .form-card { padding: 34px 32px; } }

#contact-form { display: grid; gap: 4px; }

.field-row { display: grid; gap: 4px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; gap: 18px; } }

.field { display: flex; flex-direction: column; min-width: 0; }
.field label {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.optional { font-weight: 600; color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--purple) 50%),
                    linear-gradient(135deg, var(--purple) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(107, 35, 148, 0.18);
}
.field [aria-invalid="true"] { border-color: var(--error); }

.field-error {
  min-height: 1.4em;
  margin: 4px 0 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--error);
}

/* Honeypot: moved off-screen rather than display:none, since some bots skip hidden fields */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit { justify-self: start; margin-top: 6px; }
.btn-submit[disabled] { opacity: 0.7; cursor: progress; }

.form-status {
  margin: 12px 0 0;
  min-height: 1.4em;
  font-weight: 700;
  color: var(--error);
}

.form-success { text-align: center; padding: 28px 8px; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 1.8rem; color: var(--purple); margin: 16px 0 8px; }
.form-success p { margin: 0; color: var(--ink-soft); }
.success-ball {
  display: inline-block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lime);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #fff; border-top: 1px solid var(--line); }

.footer-grid {
  display: grid;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 28px;
  align-items: center;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto; } }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand img { width: 150px; flex-shrink: 0; }
.footer-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--purple);
}
.footer-tag { margin: 0; color: var(--ink-soft); font-size: 0.95rem; max-width: 42ch; }

.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 800; }
.footer-links a { color: var(--blue); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer-legal {
  padding-top: 18px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.footer-legal p { margin: 0; }

/* ==========================================================================
   Motion (only when the visitor hasn't asked to reduce it)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease; }

  .badge-dot { animation: pulse 2.2s ease-out infinite; }
  @keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(156, 203, 56, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(156, 203, 56, 0); }
    100% { box-shadow: 0 0 0 0 rgba(156, 203, 56, 0); }
  }

  .dot-lime { animation: bounce-in 1.1s cubic-bezier(.28,.84,.42,1) 0.2s both; }
  @keyframes bounce-in {
    0%   { transform: translateY(-120px); }
    55%  { transform: translateY(0); }
    70%  { transform: translateY(-22px); }
    85%  { transform: translateY(0); }
    92%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
  }

  .dot-blue, .dot-purple, .dot-green, .dot-sun { animation: drift 7s ease-in-out infinite alternate; }
  .dot-purple { animation-duration: 9s; }
  .dot-sun { animation-duration: 8s; animation-delay: -3s; }
  @keyframes drift {
    from { transform: translate(0, 0); }
    to   { transform: translate(8px, -12px); }
  }

  .success-ball { animation: bounce-in 0.9s cubic-bezier(.28,.84,.42,1) both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
