/* =========================================================
   Crumbl Fundraising — Homepage Styles
   ========================================================= */

:root {
  --pink: #FF8FA8;
  --pink-light: #FFF0F3;
  --bg: #FFFDFC;
  --text: #111111;
  --text-muted: #57545A;
  --border: #F0E5E7;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --shadow-soft: 0 8px 24px rgba(17, 17, 17, 0.06);
  --shadow-card: 0 2px 10px rgba(17, 17, 17, 0.04);

  --container-max: 1080px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  background: var(--pink-light);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.wordmark__dot {
  color: var(--text);
}

.menu-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.menu-btn:hover {
  background: #FF7A98;
  transform: translateY(-1px);
}

.menu-btn:active {
  transform: scale(0.96);
}

.menu-btn__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.menu-btn__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

.site-menu {
  background: var(--pink-light);
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.site-menu .container {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  padding-bottom: 16px;
}

.site-menu a {
  padding: 10px 0;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.site-menu a:last-child {
  border-bottom: none;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  background: var(--pink-light);
  padding: 8px 0 40px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  box-shadow: var(--shadow-soft);
}

.hero__headline {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}

.hero__headline--accent {
  color: var(--pink);
}

.hero__subhead {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
}

.hero__body {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 22px;
  max-width: 46ch;
}

.hero__microcopy {
  font-size: 13px;
  color: var(--text-muted);
  margin: 10px 0 0;
}

.hero__cookies {
  position: relative;
  min-height: 300px;
  width: 100%;
}

.cookie {
  position: absolute;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

/* CSS-drawn cookie fallback: radial-gradient "dough" base with a subtle
   dot texture standing in for chips/toppings until real photography
   is dropped into the images/ folder. */
.cookie::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: -1;
}

.cookie--choc-chip {
  width: 140px;
  height: 140px;
  top: 0;
  right: 20px;
}
.cookie--choc-chip::before {
  background:
    radial-gradient(circle at 30% 65%, rgba(90,52,32,0.55) 0 6px, transparent 7px),
    radial-gradient(circle at 60% 30%, rgba(90,52,32,0.55) 0 5px, transparent 6px),
    radial-gradient(circle at 75% 65%, rgba(90,52,32,0.55) 0 6px, transparent 7px),
    radial-gradient(circle at 45% 50%, rgba(90,52,32,0.55) 0 5px, transparent 6px),
    radial-gradient(circle, #D9A15C, #C4823A);
}

.cookie--pink-sugar {
  width: 130px;
  height: 130px;
  top: 65px;
  right: 125px;
}
.cookie--pink-sugar::before {
  background: radial-gradient(circle, #FFC2D1, #FF9FB8);
}

.cookie--snickerdoodle {
  width: 125px;
  height: 125px;
  top: 140px;
  right: 145px;
}
.cookie--snickerdoodle::before {
  background: radial-gradient(circle, #EAC78A, #D9A85F);
}

.cookie--cookies-cream {
  width: 135px;
  height: 135px;
  top: 175px;
  right: 15px;
}
.cookie--cookies-cream::before {
  background:
    radial-gradient(circle at 35% 40%, rgba(60,45,40,0.6) 0 14px, transparent 15px),
    radial-gradient(circle, #EFE3D6, #E3D3C0);
}

/* =========================================================
   Section cards
   ========================================================= */

.section-card {
  padding: 18px 0;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.card__title {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
}

.card__body {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  max-width: 68ch;
}

/* How it works */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step:first-child {
  padding-top: 0;
}

.step__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pink-light);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__icon svg {
  width: 22px;
  height: 22px;
}

.step__text h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 2px 0 4px;
}

.step__text p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Group types */

.group-list {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 2;
  margin: 0;
}

.group-list span:not(.dot) {
  color: var(--text);
  font-weight: 600;
}

.group-list .dot {
  color: var(--pink);
  margin: 0 8px;
  font-weight: 700;
}

/* Final CTA */

.section-card--cta {
  padding-bottom: 40px;
}

.cta-card {
  background: var(--pink-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

.cta-card__title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.cta-card__body {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.cta-card__box {
  display: flex;
  justify-content: center;
}

.cookie-box-wrap {
  position: relative;
  width: 240px;
  height: 160px;
}

.cookie-box-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.cookie-box {
  position: absolute;
  inset: 0;
  width: 150px;
  height: 100px;
}

.cookie-box__lid {
  position: absolute;
  top: -14px;
  left: 4px;
  width: 90px;
  height: 34px;
  background: var(--pink);
  border-radius: 8px 8px 0 0;
  transform: rotate(-8deg);
  transform-origin: bottom left;
}

.cookie-box__cookies {
  position: absolute;
  bottom: 26px;
  left: 10px;
  display: flex;
  gap: 6px;
}

.cookie-box__cookies span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E3B36A;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4);
}

.cookie-box__cookies span:nth-child(2) { background: #7A4B32; }
.cookie-box__cookies span:nth-child(3) { background: #FFC2D1; }
.cookie-box__cookies span:nth-child(4) { background: #EFE3D6; }

.cookie-box__label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 130px;
  height: 30px;
  background: #fff;
  border: 2px solid var(--pink);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: var(--text);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 999px;
  min-height: 48px;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn--primary {
  background: var(--pink);
  color: var(--text);
}

.btn--primary:hover {
  background: #FF7A98;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: scale(0.98);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: 24px 0 36px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer__lock {
  width: 14px;
  height: 14px;
}

/* =========================================================
   Responsive — tablet and desktop
   ========================================================= */

@media (min-width: 700px) {
  .hero__headline {
    font-size: 52px;
  }

  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 48px 44px;
  }

  .hero__cookies {
    min-height: 360px;
  }

  .cookie--choc-chip {
    width: 190px;
    height: 190px;
    right: 30px;
  }

  .cookie--pink-sugar {
    width: 175px;
    height: 175px;
    top: 90px;
    right: 165px;
  }

  .cookie--snickerdoodle {
    width: 165px;
    height: 165px;
    top: 190px;
    right: 190px;
  }

  .cookie--cookies-cream {
    width: 170px;
    height: 170px;
    top: 230px;
    right: 15px;
  }
  .card {
    padding: 36px 40px;
  }

  .cta-card {
    grid-template-columns: 180px 1fr;
    padding: 36px 44px;
  }

  .cta-card__text {
    text-align: left;
  }
}

@media (min-width: 960px) {
  .site-menu .container {
    flex-direction: row;
    justify-content: flex-end;
    gap: 32px;
  }

  .site-menu a {
    border-bottom: none;
    padding: 4px 0;
  }
}

/* =========================================================
   Apply page (Start a Fundraiser form)
   Append this entire block to the end of your existing styles.css
   ========================================================= */

.apply-intro {
  background: var(--pink-light);
  padding: 24px 0 28px;
}

.breadcrumb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--pink);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.breadcrumb-pill svg {
  width: 14px;
  height: 14px;
}

.apply-intro__title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}

.apply-intro__body {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.step-progress__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.step-progress__track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.step-progress__fill {
  display: block;
  height: 100%;
  background: var(--pink);
  border-radius: 999px;
}

/* Form sections reuse .card from the homepage, just stacked with spacing */

.form-section {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
}

.form-group input::placeholder {
  color: #B7B3B8;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 143, 168, 0.18);
}

/* Organization type pill selector */

.pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pill:hover {
  border-color: var(--pink);
}

.pill--active {
  border-color: var(--pink);
  background: var(--pink-light);
  color: var(--pink);
}

.pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
}

/* Upload rows */

.upload-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.upload-row:first-of-type {
  margin-top: 20px;
}

.upload-row:hover {
  border-color: var(--pink);
}

.upload-row__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-row__icon svg {
  width: 20px;
  height: 20px;
}

.upload-row__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.upload-row__title {
  font-size: 14px;
  font-weight: 700;
}

.upload-row__desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.upload-row__filename {
  font-size: 12px;
  color: var(--pink);
  font-weight: 700;
  margin-top: 4px;
}

.upload-row__chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.upload-row__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Submit */

.apply-submit {
  padding: 8px 0 40px;
  text-align: center;
}

.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

.apply-submit__note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* =========================================================
   Responsive — tablet and desktop
   ========================================================= */

@media (min-width: 700px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .form-row--three {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .pill-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .apply-intro__title {
    font-size: 32px;
  }

  .apply-submit {
    max-width: 420px;
    margin: 0 auto;
  }
}

