/*
 * ps-housing-styles.css
 * Page-specific styles for the Prohousing Designation page.
 *
 * Requires main-style.css to be loaded FIRST (shared tokens + base hero,
 * section, panel, sub-nav, animation and disclaimer 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  — prohousing colors (with fallbacks to brand tokens)
   ========================================================================== */
:root {
  --ps-blue:    var(--brand-blue, #1a3a6b);
  --ps-orange:  var(--vims-accent, #f5a800);
  --ps-green:   #2e7d5b;
  --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)
   ========================================================================== */
.hero--ps { min-height: 420px; }

.hero-bg--ps {
  background-image: url("../img/prohousing-hero.jpg");
  background-attachment: scroll;
  background-position: center 40%;
}

.hero--ps .hero-overlay {
  clip-path: polygon(0% 0%, 0% 100%, 62% 100%, 50% 0%);
}

.hero--ps .hero-content { max-width: 620px; }
.hero--ps .hero-title { margin-top: 0; }


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

/* ---------- Responsive grid ---------- */
.ps-grid { display: grid; gap: 1.6rem; }
.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; }

.ps-lede { max-width: 760px; margin-left: auto; margin-right: auto; }

/* In-page jump targets clear the sticky sub-nav */
#about, #why, #plan, #get-involved { scroll-margin-top: 90px; }

/* ---------- 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-blue);
  text-decoration: none; margin-top: 0.6rem;
  transition: gap 0.2s ease, color 0.2s ease;
}
.ps-link:hover,
.ps-link:focus { gap: 0.7rem; color: var(--ps-green); text-decoration: none; }

/* ---------- Section 1: intro + meeting card ---------- */
.ps-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}
.ps-intro-text .largish { max-width: 680px; }
.ps-badge-img {
  display: block; width: 100%; max-width: 560px; height: auto;
  margin-top: 1.5rem;
  border-radius: var(--ps-radius);
  box-shadow: var(--vims-shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
}

.ps-meeting {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-top: 4px solid var(--ps-orange);
  border-radius: var(--ps-radius);
  box-shadow: var(--vims-shadow-md, 0 6px 20px rgba(0,0,0,0.13));
  padding: 1.8rem 1.8rem 1.6rem;
  color: var(--ps-blue);
}
.ps-meeting-icon { font-size: 2.4rem; color: var(--ps-orange); margin-bottom: 0.4rem; }
.ps-meeting-eyebrow {
  font-family: var(--font-display, sans-serif);
  font-size: 1.3rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ps-green); margin: 0 0 0.2rem;
}
.ps-meeting-title {
  font-family: var(--font-display, sans-serif);
  font-size: 2.2rem; font-weight: 700; text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.ps-meeting p { font-size: 1.5rem; line-height: 1.6; margin: 0 0 0.7rem; }
.ps-meeting-meta { display: flex; align-items: flex-start; gap: 0.6rem; }
.ps-meeting-meta i { color: var(--ps-orange); margin-top: 4px; width: 1.2em; text-align: center; }
.ps-meeting .atc-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 0; }

/* ---------- Section 2: why reapply (dark photo band) ---------- */
.ps-section-2 {
  background-image: linear-gradient(to bottom, rgba(14, 30, 70, 0.82), rgba(14, 30, 70, 0.92)),
url("../img/prohousing-hero.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.ps-stat {
  background: #fff;
  border-radius: var(--ps-radius);
  border-top: 5px solid var(--ps-orange);
  box-shadow: var(--vims-shadow-md, 0 6px 20px rgba(0,0,0,0.13));
  padding: 1.8rem 1.6rem;
  text-align: center;
}
.ps-stat-icon { font-size: 2.6rem; color: var(--ps-green); margin-bottom: 0.4rem; }
.ps-stat-figure {
  font-family: var(--font-display, sans-serif);
  font-size: 2.8rem; font-weight: 700; line-height: 1.1;
  color: var(--ps-blue); margin: 0 0 0.2rem;
}
.ps-stat-title {
  font-family: var(--font-display, sans-serif);
  font-size: 1.6rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ps-green); margin: 0 0 0.7rem;
}
.ps-stat p { font-size: 1.5rem; line-height: 1.6; color: var(--ps-text); margin: 0; }

/* ---------- Section 3: 4-part plan ---------- */
.ps-plan { list-style: none; margin: 0; padding: 0; }
.ps-plan-card {
  position: relative;
  background: var(--ps-surface);
  border-radius: var(--ps-radius);
  border-bottom: 4px solid var(--ps-green);
  padding: 1.8rem 1.5rem 1.6rem;
  margin: 0;
}
.ps-plan-num {
  position: absolute; top: 1.2rem; right: 1.4rem;
  font-family: var(--font-display, sans-serif);
  font-size: 3.6rem; font-weight: 700; line-height: 1;
  color: rgba(26,58,107,0.15);
}
.ps-plan-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ps-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 1rem;
}
.ps-plan-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 0 0.5rem;
}
.ps-plan-card p { font-size: 1.5rem; line-height: 1.6; color: var(--ps-text); margin: 0; }

/* ---------- Section 4: get involved cards ---------- */
.ps-resource-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--vims-white, #fff);
  border-radius: var(--ps-radius); padding: 1.8rem 1.6rem;
  box-shadow: var(--vims-shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
  border-left: 4px solid var(--ps-orange);
}
.ps-resource-icon { font-size: 2.4rem; color: var(--ps-blue); margin-bottom: 0.6rem; }
.ps-resource-card h3 {
  font-family: var(--font-display, sans-serif);
  font-size: 1.95rem; font-weight: 700; color: var(--ps-blue); margin: 0 0 0.4rem;
}
.ps-resource-card p { font-size: 1.5rem; line-height: 1.6; color: var(--ps-text); margin: 0 0 0.6rem; }
.ps-resource-card .ps-meta { font-size: 1.4rem; }
.ps-resource-card .ps-link + .ps-link { margin-top: 0.3rem; }

.ps-coming-soon {
  display: inline-block; margin-top: 0.6rem; padding: 0.4rem 0.9rem;
  background: rgba(26,58,107,0.08); color: var(--ps-blue);
  font-size: 1.3rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; border-radius: 999px;
}

/* ---------- Contact band ---------- */
.ps-contact-link { color: var(--ps-orange); font-weight: 700; }
.ps-contact-link:hover,
.ps-contact-link:focus { color: #fff; }


/* ==========================================================================
   4. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 980px) {
  .ps-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ps-intro { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  /* Hero overlay: drop the diagonal clip so the dark gradient covers the
     entire hero image for legible text on small screens */
  .hero--ps .hero-overlay {
    clip-path: none;
    background: linear-gradient(to bottom, rgba(14, 30, 70, 0.7), rgba(14, 30, 70, 0.95));
  }
}
@media (max-width: 670px) {
  .ps-grid--3, .ps-grid--4 { grid-template-columns: 1fr; }
}
