/*
 * ps-styles.css
 * Page-specific styles for the Moreno Valley Food Resources page.
 *
 * Requires main-style.css to be loaded FIRST (shared tokens + base hero,
 * section, panel, sub-nav, animation rules), which itself sits on top of the
 * City framework (mv-main.css / mv-style.css).
 *
 * Contents:
 *   1. Page tokens (:root)        3. Page-specific layout (.ps-*)
 *   2. Hero variant               4. Responsive adjustments
 */

/* ==========================================================================
   1. PAGE TOKENS  — food-resources palette (with fallbacks to brand tokens)
   ========================================================================== */
:root {
  --ps-green:   #2e7d32;   /* primary — fresh/produce green */
  --ps-blue:    var(--brand-blue, #1a3a6b);
  --ps-orange:  var(--vims-accent, #f5a800);
  --ps-red:     #b3261e;
  --ps-surface: var(--neutral-gray-light, #f1f1f2);
  --ps-text:    var(--neutral-gray-dark, #4d515f);
  --ps-radius:  10px;
}


/* ==========================================================================
   2. HERO VARIANT  (overrides the base hero from main-style.css)
   PLACEHOLDER IMAGE — swap the URL below for the hero image Colt provides.
   ========================================================================== */
.hero--ps { min-height: 400px; }

.hero-bg--ps {
  background-image: url("../img/food-pantry-banner.png");
  background-attachment: scroll;
  background-position: left;
  background-size: cover;
  
}

.hero--ps .hero-title { margin-top: 0; }

/* Green overlay — deeper green, with its right edge shaped as an inverted
   (concave) circular scoop curving the opposite way from the diagonal */
.hero--ps .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(15, 61, 20, 0.82),
    rgba(7, 33, 11, 0.97)
  );
  clip-path: none;
  -webkit-mask-image: radial-gradient(ellipse 88% 150% at 100% 50%, transparent 68%, #000 68%);
          mask-image: radial-gradient(ellipse 88% 150% at 100% 50%, transparent 68%, #000 68%);
}

@media (max-width: 768px) {
  .hero--ps .hero-overlay {
    -webkit-mask-image: radial-gradient(ellipse 80% 150% at 100% 50%, transparent 56%, #000 56%);
            mask-image: radial-gradient(ellipse 80% 150% at 100% 50%, transparent 56%, #000 56%);
  }
}


/* ==========================================================================
   3. PAGE-SPECIFIC LAYOUT
   ========================================================================== */

/* ---------- Responsive grid ---------- */
.ps-grid { display: grid; gap: 1.6rem; }
.ps-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ps-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ps-grid.pad-top { margin-top: 1.5rem; }

/* ---------- Inline links ---------- */
.ps-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display, sans-serif);
  font-weight: 700; font-size: 1.4rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ps-green);
  text-decoration: none; margin-top: 0.6rem;
  transition: gap 0.2s ease, color 0.2s ease;
}
.ps-link + .ps-link { margin-left: 1.2rem; }
.ps-link:hover { gap: 0.7rem; color: var(--ps-orange); text-decoration: none; }

/* ---------- Info / resource cards ---------- */
.ps-rule-card {
  background: var(--vims-white, #fff);
  border-radius: var(--ps-radius);
  border-top: 4px solid var(--ps-green);
  box-shadow: var(--vims-shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
  padding: 1.6rem 1.7rem 1.8rem;
}
.ps-rule-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.ps-rule-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--ps-green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.ps-rule-title {
  font-family: var(--font-display, sans-serif);
  font-size: 2rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--ps-blue); margin: 0;
}
.ps-rule-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.ps-rule-list li {
  position: relative; padding-left: 1.6rem;
  font-size: 1.45rem; line-height: 1.6; color: var(--ps-text);
}
.ps-rule-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--ps-green); font-weight: 700;
}

/* ---------- Resource cards (clickable) ---------- */
.ps-resource-card {
  display: block; background: var(--vims-white, #fff);
  border-radius: var(--ps-radius); padding: 1.6rem 1.5rem;
  box-shadow: var(--vims-shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
  border-left: 4px solid transparent; text-decoration: none; color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
a.ps-resource-card:hover {
  transform: translateY(-3px); text-decoration: none;
  box-shadow: var(--vims-shadow-md, 0 6px 20px rgba(0,0,0,0.13));
  border-left-color: var(--ps-orange);
}
.ps-resource-icon { font-size: 2.4rem; color: var(--ps-green); margin-bottom: 0.6rem; }
.ps-resource-card h3 {
  font-family: var(--font-display, sans-serif);
  font-size: 1.85rem; font-weight: 700; color: var(--ps-blue); margin: 0 0 0.4rem;
}
.ps-resource-card p { font-size: 1.4rem; line-height: 1.6; color: var(--ps-text); margin: 0 0 0.6rem; }

/* ---------- Contact / help list (on dark section) ---------- */
.ps-report-row { align-items: flex-start; }
.ps-report-list { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.ps-report-list li {
  font-size: 1.6rem; line-height: 1.6; color: rgba(255,255,255,0.9);
  padding-left: 1.7rem; position: relative;
}
.ps-report-list li::before {
  content: "\f0f3"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; color: var(--ps-orange); font-size: 1.2rem; top: 2px;
}
.ps-report-list a { color: var(--ps-orange); }

/* ---------- Map embed ---------- */
.ps-map-embed {
  position: relative;
  width: 100%;
  border-radius: var(--ps-radius);
  overflow: hidden;
  box-shadow: var(--vims-shadow-md, 0 6px 20px rgba(0,0,0,0.13));
}
.ps-map-embed iframe {
  width: 100%;
  min-height: 520px;
  display: block;
  border: 0;
}

/* ---------- Pantry list cards ---------- */
.ps-pantry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
}
.ps-pantry-card {
  background: var(--vims-white, #fff);
  border-radius: var(--ps-radius);
  border-top: 4px solid var(--ps-green);
  box-shadow: var(--vims-shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
}
.ps-pantry-name {
  font-family: var(--font-display, sans-serif);
  font-size: 1.8rem; font-weight: 700; line-height: 1.25;
  color: var(--ps-blue); margin: 0 0 1rem;
}
.ps-pantry-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.ps-pantry-meta li {
  position: relative; padding-left: 2.4rem;
  font-size: 1.4rem; line-height: 1.55; color: var(--ps-text);
}
.ps-pantry-meta li i {
  position: absolute; left: 0; top: 0.25rem;
  width: 1.6rem; text-align: center; color: var(--ps-green);
}
.ps-pantry-meta a { color: var(--ps-green); text-decoration: none; }
.ps-pantry-meta a:hover { color: var(--ps-orange); text-decoration: underline; }

/* ---------- In-page jump targets: offset for sticky sub-nav ---------- */
#distribution,
#pantries,
#pantry-list,
#find-pantry,
#pantry-map,
#contact { scroll-margin-top: 90px; }


/* ==========================================================================
   4. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 900px) {
  .ps-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ps-pantry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ps-report-row { flex-direction: column; }
  .ps-report-row .seven.columns,
  .ps-report-row .five.columns { width: 100%; margin-left: 0; }

  /* Hero overlay on small screens: keep the deep-green gradient (the scoop
     mask is set in the 768px rule above) */
  .hero--ps .hero-overlay {
    clip-path: none;
    background: linear-gradient(to bottom, rgba(15,61,20,0.82), rgba(7,33,11,0.97));
  }
}
@media (max-width: 670px) {
  .ps-grid--2, .ps-grid--3 { grid-template-columns: 1fr; }
  .ps-pantry-grid { grid-template-columns: 1fr; }
  .ps-map-embed iframe { min-height: 420px; }
}
