/* Wash for Cash — site styles */

:root {
  --bg: #f2fafd;
  --surface: #ffffff;
  --ink: #12303f;
  --ink-soft: #4a6b7a;
  --brand: #0aa3c2;        /* aqua */
  --brand-deep: #067799;
  --navy: #0b2d45;
  --sun: #ffd166;          /* accent yellow */
  --coral: #ef6461;
  --line: #d6e9f0;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(11, 45, 69, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
h1, h2, h3, .brand-name { font-family: Fredoka, Inter, system-ui, sans-serif; }
h1 { font-size: 2rem; line-height: 1.15; }
a { color: var(--brand-deep); }
img { max-width: 100%; }
small, .muted { color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: .6rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: #fff; }
.brand-bubble { font-size: 1.6rem; }
.brand-name { font-size: 1.35rem; font-weight: 700; letter-spacing: .3px; }
.brand-name em { color: var(--sun); font-style: normal; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.nav-link {
  color: #dceef5; text-decoration: none; padding: .45rem .7rem; border-radius: 8px;
  font-weight: 500; font-size: .95rem; border: none; background: none; cursor: pointer;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.14); color: #fff; }
.inline-form { display: inline; }

/* ---------- Layout: content + ad rails ---------- */
.page-grid {
  max-width: 1400px; margin: 0 auto; padding: 1.2rem;
  display: grid; grid-template-columns: 170px minmax(0, 1fr) 170px; gap: 1.2rem;
  align-items: start;
}
.content { min-width: 0; }
.ad-rail { display: grid; gap: 1rem; position: sticky; top: 4.2rem; }
.ad-slot {
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: .9rem; font-size: .8rem; color: var(--ink-soft); text-align: center;
}
.ad-slot.tip { border-style: solid; background: #fdf7e6; }
.ad-tag {
  margin: 0 0 .4rem; font-weight: 700; text-transform: uppercase; font-size: .68rem;
  letter-spacing: .08em; color: var(--brand-deep);
}
.ad-slot p { margin: .3rem 0; }
@media (max-width: 1100px) { .ad-rail { display: none; } .page-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--brand); color: #fff; border: 2px solid var(--brand);
  padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  cursor: pointer; font-size: .95rem; font-family: inherit; transition: transform .12s, background .15s;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); transform: translateY(-1px); }
.btn-big { padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn-small { padding: .3rem .8rem; font-size: .85rem; }
.btn-ghost { background: transparent; color: var(--brand-deep); }
.btn-ghost:hover { background: rgba(10,163,194,.1); color: var(--brand-deep); transform: none; }
.btn-danger { background: transparent; border-color: var(--coral); color: var(--coral); }
.btn-danger:hover { background: var(--coral); border-color: var(--coral); color: #fff; }

/* ---------- Featured rotator (paid placements, above the hero) ---------- */
.featured-rotator {
  position: relative; min-height: 168px; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 1.1rem; box-shadow: var(--shadow);
  border: 3px solid var(--sun);
}
.feat-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  gap: .3rem; padding: 1.1rem 1.6rem 1.6rem; text-decoration: none; color: #fff;
  background: linear-gradient(100deg, var(--navy) 20%, var(--brand-deep) 75%, var(--brand));
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .6s; pointer-events: none;
}
.feat-slide.active { opacity: 1; pointer-events: auto; }
.feat-star {
  align-self: flex-start; background: var(--sun); color: var(--navy);
  font-weight: 700; font-size: .78rem; padding: .2rem .7rem; border-radius: 999px;
}
.feat-body h2 { margin: .35rem 0 .1rem; font-size: clamp(1.25rem, 3vw, 1.8rem); }
.feat-body p { margin: 0; color: #d6ecf4; font-size: .95rem; }
.feat-cta { position: absolute; right: 1.4rem; bottom: 1.1rem; font-weight: 700; color: var(--sun); }
.feat-dots {
  position: absolute; left: 0; right: 0; bottom: .55rem; z-index: 5;
  display: flex; gap: .45rem; justify-content: center;
}
.feat-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.45); padding: 0;
}
.feat-dots button.active { background: var(--sun); }
@media (max-width: 640px) { .feat-cta { display: none; } .feat-slide { padding: 1rem 1.1rem 1.6rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(160deg, #0b2d45 0%, #076a8a 55%, #0aa3c2 100%);
  color: #fff; padding: 4rem 2rem 5.5rem; text-align: center;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0 0 1rem; }
.hero .hl { color: var(--sun); }
.hero-sub { font-size: 1.12rem; color: #dff2f8; max-width: 560px; margin: 0 auto 1.6rem; }
.hero-ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; }
.hero-wave svg { display: block; width: 100%; height: 60px; }

/* floating bubbles */
.bubbles span {
  position: absolute; bottom: -60px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(255,255,255,.08) 60%);
  animation: rise linear infinite;
}
.bubbles span:nth-child(1) { left: 6%;  width: 34px; height: 34px; animation-duration: 11s; }
.bubbles span:nth-child(2) { left: 18%; width: 18px; height: 18px; animation-duration: 8s;  animation-delay: 2s; }
.bubbles span:nth-child(3) { left: 31%; width: 48px; height: 48px; animation-duration: 14s; animation-delay: 1s; }
.bubbles span:nth-child(4) { left: 47%; width: 22px; height: 22px; animation-duration: 9s;  animation-delay: 4s; }
.bubbles span:nth-child(5) { left: 60%; width: 40px; height: 40px; animation-duration: 12s; animation-delay: .5s; }
.bubbles span:nth-child(6) { left: 73%; width: 16px; height: 16px; animation-duration: 7s;  animation-delay: 3s; }
.bubbles span:nth-child(7) { left: 84%; width: 30px; height: 30px; animation-duration: 10s; animation-delay: 1.5s; }
.bubbles span:nth-child(8) { left: 93%; width: 24px; height: 24px; animation-duration: 13s; animation-delay: 5s; }
@keyframes rise { to { transform: translateY(-130vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bubbles span { animation: none; display: none; } }

/* ---------- Sections ---------- */
section { margin: 2.2rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.see-all { font-weight: 600; text-decoration: none; }

/* ---------- Carousel ---------- */
.carousel-wrap { position: relative; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(280px, 78vw);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem .2rem 1rem;
  scrollbar-width: thin;
}
.carousel > * { scroll-snap-align: start; }
.car-btn {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy); color: #fff; font-size: 1.5rem; line-height: 1; box-shadow: var(--shadow);
}
.car-btn:hover { background: var(--brand-deep); }
.car-btn.prev { left: -12px; } .car-btn.next { right: -12px; }

/* ---------- Event cards ---------- */
.event-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.event-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(11,45,69,.16); }
.event-card.cancelled { opacity: .6; }
.card-media { position: relative; aspect-ratio: 16/9; background: #cfeef7; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-art {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  gap: .5rem; font-size: 2.4rem;
  background: linear-gradient(135deg, #b3e6f2, #7fd4e8 60%, #5ec8e0);
}
.when-badge {
  position: absolute; top: .6rem; left: .6rem; background: var(--sun); color: var(--navy);
  font-weight: 700; font-size: .78rem; padding: .2rem .6rem; border-radius: 999px;
}
.cancel-badge {
  position: absolute; top: .6rem; right: .6rem; background: var(--coral); color: #fff;
  font-weight: 700; font-size: .78rem; padding: .2rem .6rem; border-radius: 999px;
}
.cancel-badge.feat-chip { background: var(--navy); color: var(--sun); }
.card-body { padding: .8rem .95rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.08rem; }
.card-benefit { margin: 0; font-size: .87rem; color: var(--ink-soft); }
.card-meta { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.card-foot { margin-top: auto; padding-top: .5rem; display: flex; gap: .5rem; }
.price-chip {
  background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700;
  padding: .18rem .6rem; border-radius: 999px;
}
.price-chip.donation { background: #1c8a4d; }
.pending-chip {
  background: #fff3cd; color: #7a5d00; font-size: .78rem; font-weight: 600;
  padding: .18rem .6rem; border-radius: 999px;
}
.event-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem;
}

/* ---------- How it works / CTA ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.step { background: var(--surface); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); text-align: center; }
.step-ico { font-size: 2.2rem; }
.step h3 { margin: .4rem 0 .3rem; }
.step p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.cta-band {
  background: linear-gradient(135deg, var(--sun), #ffe29e); border-radius: var(--radius);
  text-align: center; padding: 2.2rem 1.4rem; color: var(--navy);
}
.cta-band h2 { margin-top: 0; }

/* ---------- Events list ---------- */
.page-head { margin-bottom: 1.4rem; }
.search-bar { display: flex; gap: .6rem; max-width: 480px; margin: .8rem 0 .3rem; }
.search-bar input {
  flex: 1; padding: .6rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: 1rem;
}
.date-group { margin: 1.6rem 0; }
.date-heading {
  font-size: 1.15rem; color: var(--brand-deep);
  border-bottom: 2px solid var(--line); padding-bottom: .3rem;
}

/* ---------- Event detail ---------- */
.banner { padding: .8rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 500; }
.banner-cancel { background: #fdecec; color: #8a2724; border: 1px solid #f5c4c2; }
.banner-pending { background: #fff3cd; color: #7a5d00; border: 1px solid #ffe08a; }
.crumb { font-size: .9rem; }
.crumb a { text-decoration: none; }
.detail-head h1 { margin: .2rem 0 .3rem; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.detail-benefit { font-size: 1.05rem; color: var(--ink-soft); margin: 0 0 1rem; }
.detail-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.detail-gallery { display: grid; gap: .8rem; margin: 1.2rem 0; }
.detail-gallery.cols-2 { grid-template-columns: 1fr 1fr; }
.detail-gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 16/9; object-fit: cover; box-shadow: var(--shadow); }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px, 42%); gap: 1.4rem; margin-top: 1.4rem; }
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } .detail-gallery.cols-2 { grid-template-columns: 1fr; } }
.fact {
  background: var(--surface); border-radius: var(--radius); padding: .9rem 1.1rem;
  margin-bottom: .8rem; box-shadow: var(--shadow); font-size: .97rem;
}
.fact-label {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--brand-deep); margin-bottom: .25rem;
}
.detail-desc { background: var(--surface); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.detail-desc h2 { margin-top: 0; font-size: 1.1rem; }
.detail-map { min-height: 320px; }
#map { height: 100%; min-height: 320px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* share menu */
.share-wrap { position: relative; }
.share-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
  background: var(--surface); border-radius: 12px; box-shadow: 0 8px 26px rgba(11,45,69,.22);
  display: grid; min-width: 180px; overflow: hidden;
}
.share-menu a, .share-menu button {
  padding: .6rem .95rem; text-decoration: none; color: var(--ink); font-size: .93rem;
  background: none; border: none; text-align: left; cursor: pointer; font-family: inherit;
}
.share-menu a:hover, .share-menu button:hover { background: var(--bg); }
.share-menu[hidden] { display: none; }

/* ---------- Forms ---------- */
.auth-card, .form-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem 1.8rem; max-width: 720px; margin: 0 auto;
}
.auth-card { max-width: 440px; }
.stack-form { display: grid; gap: .9rem; }
.stack-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; }
.stack-form input, .stack-form select, .stack-form textarea {
  padding: .55rem .8rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: inherit; width: 100%;
}
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus {
  outline: 2px solid var(--brand); border-color: var(--brand);
}
.stack-form fieldset {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem;
  display: grid; gap: .8rem; margin: 0;
}
.stack-form legend { font-family: Fredoka, sans-serif; font-weight: 600; color: var(--brand-deep); padding: 0 .4rem; }
.field-row { display: flex; gap: .9rem; flex-wrap: wrap; align-items: end; }
.field-row > label { flex: 1; min-width: 140px; }
.radio-label { display: flex !important; flex-direction: row; align-items: center; gap: .45rem; font-weight: 500 !important; }
.radio-label input { width: auto; }
.form-error {
  background: #fdecec; color: #8a2724; border: 1px solid #f5c4c2;
  border-radius: 10px; padding: .7rem 1rem; margin-bottom: .9rem;
}
.geo-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.geo-status { font-size: .9rem; font-weight: 600; color: #1c8a4d; }
.geo-results { display: grid; gap: .4rem; }
.geo-results button {
  text-align: left; background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
  padding: .55rem .8rem; cursor: pointer; font-family: inherit; font-size: .9rem;
}
.geo-results button:hover { border-color: var(--brand); }
.img-preview { max-height: 110px; border-radius: 8px; margin-top: .3rem; }

/* ---------- Dashboard ---------- */
.manage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.manage-card { display: flex; flex-direction: column; gap: .5rem; }
.manage-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---------- Misc ---------- */
.empty-state {
  text-align: center; background: var(--surface); border-radius: var(--radius);
  padding: 2.5rem 1.5rem; box-shadow: var(--shadow);
}
.empty-art { font-size: 2.6rem; margin-bottom: .5rem; }
.site-footer { background: var(--navy); color: #bcd7e2; margin-top: 2rem; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 1.6rem 1.2rem; text-align: center; font-size: .9rem; }
.footer-inner a { color: #8fd6e8; }
.footer-links { margin: .4rem 0; }
.footer-fine { font-size: .75rem; opacity: .75; }
