/*
 * mymoval-brand.css
 * Shared branded styles for the My MoVal section pages.
 *
 * Sits on top of main-style.css (which provides the base hero, section,
 * sub-nav and animation rules) and the City framework (mv-main.css /
 * mv-style.css). Gives every My MoVal page the same green "food-resources"
 * look: deep-green scoop hero, eyebrow + section titles, and branded cards.
 *
 * Per-page hero image: set --hero-img on the page (see .hero-bg--brand),
 * e.g. <div class="hero-bg hero-bg--brand" style="--hero-img:url('img/church-header.jpg')">
 */

/* ==========================================================================
   1. BRAND TOKENS
   ========================================================================== */
:root {
  --ps-green:   #2e7d32;
  --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  (deep-green overlay with an inverted circular scoop)
   ========================================================================== */
.hero--brand { min-height: 400px; }

.hero-bg--brand {
  background-image: var(--hero-img);
  background-attachment: scroll;
  background-position: center;
  background-size: cover;
}

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

.hero--brand .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--brand .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. LAYOUT HELPERS
   ========================================================================== */
.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--4 { grid-template-columns: repeat(4, 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 / rule 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;
  height: 100%;
}
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; }

/* ---------- Logo / partner tiles ---------- */
.ps-logo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 1.5rem;
  list-style: none; padding: 0;
}
.ps-logo-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
  background: var(--vims-white, #fff); border-radius: var(--ps-radius);
  box-shadow: var(--vims-shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
  padding: 1.4rem 1.2rem; text-align: center; text-decoration: none; color: var(--ps-text);
  border-bottom: 4px solid var(--ps-green);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 150px;
}
a.ps-logo-card:hover { transform: translateY(-3px); box-shadow: var(--vims-shadow-md, 0 6px 20px rgba(0,0,0,0.13)); text-decoration: none; }
.ps-logo-card img { max-width: 100%; max-height: 80px; width: auto; height: auto; object-fit: contain; }
.ps-logo-card span { font-size: 1.35rem; font-weight: 700; color: var(--ps-blue); line-height: 1.3; }

/* ---------- Media cards (image-topped) ---------- */
.ps-media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 1.5rem; list-style: none; padding: 0; }
.ps-media-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--vims-white, #fff); border-radius: var(--ps-radius); overflow: hidden;
  box-shadow: var(--vims-shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
  border-bottom: 4px solid var(--ps-green);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ps-media-card:hover { transform: translateY(-3px); box-shadow: var(--vims-shadow-md, 0 6px 20px rgba(0,0,0,0.13)); }
.ps-media-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.ps-media-body { padding: 1.4rem 1.5rem 1.6rem; }
.ps-media-body h3 {
  font-family: var(--font-display, sans-serif);
  font-size: 1.8rem; font-weight: 700; color: var(--ps-blue); margin: 0 0 0.5rem; text-align: center;
}
.ps-media-body p { font-size: 1.4rem; line-height: 1.6; color: var(--ps-text); margin: 0 0 0.6rem; }
.ps-media-body p:last-child { margin-bottom: 0; }
.ps-media-body a { color: var(--ps-green); text-decoration: none; font-weight: 700; }
.ps-media-body a:hover { color: var(--ps-orange); text-decoration: underline; }
.ps-media-body ul { margin: 0.4rem 0 0; padding-left: 1.6rem; font-size: 1.4rem; line-height: 1.6; color: var(--ps-text); }

@media (max-width: 900px) { .ps-media-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 670px) { .ps-media-grid { grid-template-columns: 1fr; } }

/* ---------- Report / 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); }

/* ---------- Simple contact / meta list (like pantry cards) ---------- */
.ps-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.ps-meta li {
  position: relative; padding-left: 2.4rem;
  font-size: 1.4rem; line-height: 1.55; color: var(--ps-text);
}
.ps-meta li i { position: absolute; left: 0; top: 0.25rem; width: 1.6rem; text-align: center; color: var(--ps-green); }
.ps-meta a { color: var(--ps-green); text-decoration: none; }
.ps-meta a:hover { color: var(--ps-orange); text-decoration: underline; }

/* ---------- Directory table + filter ---------- */
.ps-table-tools { margin: 0 0 1.2rem; }
.ps-filter-input {
  width: 100%; max-width: 420px;
  padding: 0.9rem 1.2rem; font-size: 1.5rem;
  border: 1px solid #cfd3d8; border-radius: var(--ps-radius);
  background: #fff; color: var(--ps-text);
}
.ps-filter-input:focus { outline: 2px solid var(--ps-green); outline-offset: 1px; border-color: var(--ps-green); }
.ps-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.ps-directory {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--ps-radius); overflow: hidden;
  box-shadow: var(--vims-shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
  font-size: 1.45rem;
}
table.ps-directory thead th {
  background: var(--ps-green); color: #fff; text-align: left;
  font-family: var(--font-display, sans-serif); text-transform: uppercase;
  letter-spacing: 0.03em; padding: 1.1rem 1.3rem; font-size: 1.4rem;
}
table.ps-directory td { padding: 1rem 1.3rem; border-top: 1px solid #e6e8ea; color: var(--ps-text); vertical-align: top; }
table.ps-directory tbody tr:nth-child(even) { background: #f7f8f9; }
table.ps-directory tbody tr:hover { background: #eef5ee; }
table.ps-directory a { color: var(--ps-green); text-decoration: none; }
table.ps-directory a:hover { color: var(--ps-orange); text-decoration: underline; }

/* ---------- Green background utility (headers, bands) ---------- */
.bk-green { background: var(--ps-green); color: #fff; }

/* ---------- Calendar embed ---------- */
.ps-calendar-embed {
  margin-top: 1.5rem; background: #fff; border-radius: var(--ps-radius);
  box-shadow: var(--vims-shadow-sm, 0 2px 8px rgba(0,0,0,0.08)); padding: 1rem;
  min-height: 500px;
}

/* ---------- Info card (green accent, for sidebars) ---------- */
.ps-info-card {
  background: var(--ps-green); color: #fff; border-radius: var(--ps-radius);
  padding: 1.8rem 1.9rem; box-shadow: var(--vims-shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
}
.ps-info-card h3 {
  font-family: var(--font-display, sans-serif); font-size: 1.9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 0.4rem; color: #fff;
}
.ps-info-card h3 + p { margin-top: 0; }
.ps-info-card p { font-size: 1.45rem; line-height: 1.6; margin: 0 0 1.1rem; color: rgba(255,255,255,0.95); }
.ps-info-card p:last-child { margin-bottom: 0; }
.ps-info-card a { color: #fff; text-decoration: underline; }
.ps-split { display: grid; grid-template-columns: 2fr 1fr; gap: 1.8rem; margin-top: 1.5rem; align-items: start; }
.ps-split .ps-prose p { font-size: 1.5rem; line-height: 1.7; color: var(--ps-text); }
.ps-split .ps-prose h3 {
  font-family: var(--font-display, sans-serif); color: var(--ps-green);
  font-size: 2rem; font-weight: 700; margin: 1.6rem 0 0.6rem;
}
@media (max-width: 768px) { .ps-split { grid-template-columns: 1fr; } }

/* ---------- Sticky sub-nav offset for in-page anchors ---------- */
.section[id] { scroll-margin-top: 90px; }

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