/* ============================================================
   THE SHARING SHELVES — stylesheet
   Soft, warm, community nonprofit design. Rounded cards, pastel
   palette, gentle shadows. Not flashy, not corporate.
   ============================================================ */

:root {
  /* Palette — warm cream base, sage / blush / sky / sun pastels */
  --cream:        #FBF7F0;
  --cream-alt:     #F3ECDF;
  --white:        #FFFFFF;
  --sage:         #8FAE86;
  --sage-dark:    #5F7F58;
  --sage-light:   #DCE9D6;
  --blush:        #E8A79E;
  --blush-dark:   #C97A6E;
  --blush-light:  #FBE2DD;
  --sky:          #8FBFD3;
  --sky-dark:     #4E8AA3;
  --sky-light:    #DCEEF3;
  --sun:          #F0C05A;
  --sun-light:    #FBEACB;
  --text:         #4A4438;
  --text-light:   #7A7364;
  --text-faint:   #A79F8D;
  --border:       #E9E0CF;
  --shadow:       0 6px 20px rgba(90, 74, 40, 0.08);
  --shadow-hover: 0 10px 28px rgba(90, 74, 40, 0.14);
  --radius-lg:    24px;
  --radius-md:    16px;
  --radius-sm:    10px;
  --max-width:    1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Quicksand', 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--sky-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }

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

.section { padding: 64px 0; }
.section-narrow { padding: 40px 0; }
.section-alt { background: var(--cream-alt); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.eyebrow {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--sage-dark);
  background: var(--sage-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--sage); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--sage-dark); box-shadow: var(--shadow-hover); }
.btn-secondary { background: var(--blush); color: var(--white); box-shadow: var(--shadow); }
.btn-secondary:hover { background: var(--blush-dark); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; border-color: var(--sage); color: var(--sage-dark); }
.btn-outline:hover { background: var(--sage-light); }
.btn-sky { background: var(--sky); color: var(--white); box-shadow: var(--shadow); }
.btn-sky:hover { background: var(--sky-dark); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--sage-dark); }
.brand-tagline { font-size: 0.72rem; color: var(--text-light); letter-spacing: 0.03em; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
}
.nav-links a:hover { background: var(--sage-light); text-decoration: none; }
.nav-links a.active { background: var(--sage); color: var(--white); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--sage-dark);
  border-radius: 3px;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    display: none;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { font-size: 1.15rem; color: var(--text-light); max-width: 46ch; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 420px; height: auto; }

.page-hero {
  padding: 48px 0 36px;
  text-align: center;
}
.page-hero p { max-width: 640px; margin-left: auto; margin-right: auto; color: var(--text-light); font-size: 1.05rem; }

/* ---------- Impact counters ---------- */
.counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.counter-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.counter-number {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--sage-dark);
}
.counter-label { color: var(--text-light); font-weight: 600; font-size: 0.95rem; }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  margin: 0 auto 10px;
}
.step-icon { font-size: 1.7rem; margin-bottom: 6px; }
.step h4 { margin-bottom: 4px; font-size: 1rem; }
.step p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* Category chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; gap: 6px;
}

/* ---------- Item / gallery cards ---------- */
.item-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.item-photo {
  aspect-ratio: 4/3;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  position: relative;
  overflow: hidden;
}
.item-photo img { width: 100%; height: 100%; object-fit: cover; }
.item-status {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-available { background: var(--sage-light); color: var(--sage-dark); }
.status-shared { background: var(--border); color: var(--text-light); }
.item-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.item-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--sky-dark); font-weight: 700; }
.item-title { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.05rem; }
.item-meta { font-size: 0.85rem; color: var(--text-light); }
.item-body .btn { margin-top: auto; align-self: flex-start; }

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  align-items: flex-end;
}
.filter-field { display: flex; flex-direction: column; gap: 4px; }
.filter-field label { font-size: 0.78rem; font-weight: 700; color: var(--text-light); }
.filter-field input, .filter-field select {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--cream);
}
.results-note { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.form-row .hint { font-weight: 400; font-size: 0.8rem; color: var(--text-light); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-two { grid-template-columns: 1fr; } }
.radio-group { display: flex; flex-direction: column; gap: 12px; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.radio-group input { width: auto; flex-shrink: 0; }
.form-note {
  background: var(--sun-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 24px;
}

/* Callout / message boxes */
.callout {
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.callout-sage { background: var(--sage-light); }
.callout-blush { background: var(--blush-light); }
.callout-sky { background: var(--sky-light); }

/* ---------- Resources ---------- */
.resource-group { margin-bottom: 44px; }
.resource-group h3 { color: var(--sage-dark); border-bottom: 2px solid var(--sage-light); padding-bottom: 8px; margin-bottom: 16px; }
.resource-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 12px;
}
.resource-item h4 { margin-bottom: 4px; }
.resource-item .meta { font-size: 0.82rem; color: var(--text-light); margin-top: 6px; }
.resource-item .verified { font-size: 0.75rem; color: var(--sage-dark); font-weight: 700; }

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px;
}
.testimonial-quote { font-style: italic; font-size: 1.02rem; }
.testimonial-name { font-weight: 700; color: var(--sage-dark); margin-top: 12px; }
.testimonial-role { font-size: 0.82rem; color: var(--text-light); }

/* ---------- Founder / story ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 800px) { .founder-grid { grid-template-columns: 1fr; } }
.founder-photo {
  aspect-ratio: 1;
  background: var(--blush-light);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: var(--blush-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sage-dark);
  color: #EFF3EB;
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer a { color: #D9E5D3; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-brand p { color: #D9E5D3; font-size: 0.88rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 36px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #C7D6C0;
}

/* Skip link / accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--sage-dark); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.badge {
  display: inline-block;
  background: var(--sun-light);
  color: #8A6A1E;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
}
.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
