/*
  Richmond Hill Supportive Housing Collaboration (RHSHC)
  Static HTML + CSS website, designed to be easy to edit in BlueGriffon.
  Colours inspired by the RHSHC brochure: deep blue, warm gold/yellow, white space.
*/

:root{
  --navy:#2E3361;
  --navy-dark:#171B3B;
  --blue:#184B68;
  --gold:#FFAC4C;
  --gold-soft:#FFF0DC;
  --text:#171717;
  --muted:#4f5b66;
  --bg:#F3F5FF;
  --border:#D7DCEA;
  --white:#ffffff;
  --max:1120px;
  --radius:18px;
  --shadow:0 14px 28px rgba(23,27,59,0.08);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;
  color:var(--text);
  line-height:1.6;
  background:#ffffff;
}

h1,h2,h3{ color:var(--navy); line-height:1.2; }
h1{ font-size:clamp(2rem,4vw,3.25rem); }
h2{ font-size:clamp(1.55rem,2.4vw,2.15rem); margin-top:0; }
h3{ font-size:1.16rem; margin-top:0; }
p{ margin-top:0; }
a{ color:var(--blue); }
a:hover{ color:var(--navy-dark); }
code{ background:#f3f3f3; padding:0.12rem 0.25rem; border-radius:6px; }

.container{ width:min(100% - 2rem,var(--max)); margin-inline:auto; }
.narrow{ max-width:850px; }
.skip-link{ position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus{ left:1rem; top:1rem; width:auto; height:auto; padding:0.6rem 0.9rem; background:#fff; border:2px solid var(--navy); border-radius:10px; z-index:999; }

/* Header */
.site-header{
  background:#fff;
  border-top:10px solid var(--gold);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.25rem;
  padding:1.25rem 0;
  flex-wrap:wrap;
}
.brand{
  display:flex;
  align-items:center;
  gap:1rem;
  text-decoration:none;
  color:inherit;
  min-width:min(100%,480px);
}
.brand img{
  width:118px;
  height:118px;
  object-fit:contain;
  flex:0 0 auto;
}
.brand-name{
  display:block;
  font-weight:900;
  letter-spacing:0.2px;
  line-height:1.08;
  color:var(--navy);
  font-size:clamp(1.35rem,2vw,2.1rem);
  max-width:16em;
}
.brand-tagline{
  display:block;
  margin-top:0.25rem;
  font-size:1rem;
  color:var(--muted);
}
.site-nav ul{
  list-style:none;
  display:flex;
  gap:0.4rem;
  padding:0;
  margin:0;
  flex-wrap:wrap;
}
.site-nav a{
  display:inline-block;
  text-decoration:none;
  padding:0.55rem 0.9rem;
  border-radius:999px;
  font-weight:700;
  color:var(--navy);
}
.site-nav a:hover{ background:rgba(46,51,97,0.08); }
.site-nav a[aria-current="page"]{ background:var(--gold-soft); color:var(--navy-dark); border:1px solid rgba(255,172,76,0.75); }

/* Home banner */
.header-banner{ width:100%; border-bottom:1px solid var(--border); background:#fff; }
.header-banner img{
  width:100%;
  height:clamp(190px,23vw,340px);
  object-fit:cover;
  object-position:center;
  display:block;
}

/* Hero and titles */
.hero{ background:linear-gradient(115deg,rgba(46,51,97,0.96),rgba(23,27,59,0.92) 58%,rgba(255,172,76,0.95)); color:#fff; }
.hero-inner{ padding:3rem 0; }
.hero-copy{ max-width:900px; }
.hero h1{ color:#fff; margin:0 0 1rem 0; }
.hero .lead{ color:rgba(255,255,255,0.92); font-size:1.15rem; max-width:74ch; }
.eyebrow{ text-transform:uppercase; letter-spacing:0.12em; font-size:0.82rem; font-weight:850; color:var(--gold); margin:0 0 0.45rem 0; }
.page-title{ padding:2.2rem 0; background:linear-gradient(90deg,rgba(46,51,97,0.08),rgba(255,172,76,0.13)); border-bottom:1px solid var(--border); }
.page-title h1{ margin:0 0 0.35rem 0; }
.breadcrumb{ margin:0; color:var(--muted); max-width:75ch; }

/* Buttons */
.button{
  display:inline-block;
  text-decoration:none;
  font-weight:800;
  border-radius:999px;
  padding:0.72rem 1.1rem;
  border:2px solid transparent;
}
button.button{ cursor:pointer; font:inherit; }
.button.primary{ background:var(--navy); color:#fff; border-color:var(--gold); }
.button.primary:hover{ background:var(--navy-dark); color:#fff; }
.button.secondary{ background:#fff; color:var(--navy); border-color:var(--gold); }
.button.secondary:hover{ background:var(--gold-soft); color:var(--navy-dark); }
.hero .button.primary{ background:var(--gold); color:#101010; border-color:#fff; }
.hero .button.primary:hover{ background:#ffc071; color:#101010; }
.hero .button.secondary{ background:transparent; color:#fff; border-color:#fff; }
.hero .button.secondary:hover{ background:rgba(255,255,255,0.14); color:#fff; }
.cta-row{ display:flex; gap:0.8rem; flex-wrap:wrap; margin-top:1.1rem; }

/* Sections and cards */
.section{ padding:2.65rem 0; }
.section.alt{ background:var(--bg); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section-intro{ max-width:76ch; color:var(--muted); }
.section > .container > h2::after{
  content:"";
  display:block;
  width:76px;
  height:5px;
  border-radius:999px;
  background:var(--gold);
  margin-top:0.55rem;
}
.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.35rem;
  box-shadow:var(--shadow);
}
.grid{ display:grid; gap:1.45rem; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); }
.two-column{ display:grid; gap:2rem; grid-template-columns:minmax(0,1.7fr) minmax(280px,0.8fr); align-items:center; }
.align-start{ align-items:start; }
.muted{ color:var(--muted); }
.small{ font-size:0.95rem; color:var(--muted); margin:0.35rem 0 0 0; }
.divider{ border:none; border-top:1px solid var(--border); margin:1rem 0; }

.section-band{
  background:var(--navy);
  color:#fff;
  border-radius:0 var(--radius) var(--radius) 0;
  border-left:12px solid var(--gold);
  padding:1rem 1.25rem;
  margin:0 0 1.15rem 0;
}
.section-band h2{ color:#fff; margin:0; }
.section-band.compact{ display:inline-block; border-radius:0 14px 14px 0; min-width:min(100%,420px); }

.stat-card{
  background:var(--gold);
  color:#101010;
  border-radius:var(--radius);
  padding:1.6rem;
  box-shadow:var(--shadow);
}
.stat-number{ display:block; color:var(--navy-dark); font-size:clamp(3rem,6vw,5rem); font-weight:950; line-height:1; }
.stat-card p{ font-weight:750; margin:0.8rem 0 0 0; font-size:1.08rem; }
.accent-panel{ background:var(--gold); border-radius:var(--radius); padding:1.6rem; box-shadow:var(--shadow); }
.accent-panel h2{ color:#101010; }
.accent-panel p{ margin-bottom:0; font-weight:650; }
.feature-card h2{ background:var(--gold); color:#101010; display:inline-block; padding:0.55rem 0.85rem; border-radius:14px; }

/* Video/news/social */
.video-placeholder{
  margin-top:1rem;
  border:2px dashed var(--border);
  background:#fff;
  border-radius:var(--radius);
  padding:1.35rem;
}
.video-placeholder p{ margin:0.25rem 0; }
.video-frame{ margin-top:1rem; aspect-ratio:16/9; background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.video-frame iframe{ width:100%; height:100%; border:0; display:block; }
.media-img{ width:100%; height:auto; display:block; border-radius:12px; border:1px solid var(--border); background:#fff; }
.news-card h3{ margin:0.45rem 0 0.25rem 0; }
.news-meta{ font-size:0.95rem; color:var(--muted); margin:0.55rem 0 0 0; }
.read-more{ font-weight:800; }
.social-links{ display:flex; gap:0.75rem; flex-wrap:wrap; margin-top:1rem; }
.cta-section{ background:#fff; }
.cta-panel{ background:linear-gradient(90deg,var(--navy),var(--navy-dark)); color:#fff; border-radius:var(--radius); padding:1.5rem; display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; box-shadow:var(--shadow); }
.cta-panel h2{ color:#fff; margin-bottom:0.35rem; }
.cta-panel p{ margin:0; color:rgba(255,255,255,0.9); }

/* About */
.mission-vision-grid{ display:grid; gap:1.5rem; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); }
.mission-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:1.25rem; box-shadow:var(--shadow); }
.mission-card p{ font-size:1.12rem; margin:0.5rem 0 0 0; }
.bring-card{ border-top:8px solid var(--navy); }
.bring-card.gold-card{ border-top-color:var(--gold); background:linear-gradient(180deg,#fff,var(--gold-soft)); }
.checklist{ margin:0.6rem 0 0 0; padding-left:1.25rem; }
.checklist li{ margin:0.38rem 0; }

/* Contact */
.contact-layout{ display:grid; gap:1.5rem; grid-template-columns:1fr; }
.contact-card h2,.contact-details-card h2,.governance-card h2{ margin-top:0; }
.contact-form{ max-width:760px; display:grid; gap:1rem; }
.form-row{ display:grid; gap:1rem; grid-template-columns:1fr 1fr; }
.form-actions{ margin-top:0; }
label{ font-weight:800; display:block; margin-bottom:0.35rem; color:var(--navy); }
input, textarea{ width:100%; padding:0.78rem 0.85rem; border:1px solid var(--border); border-radius:12px; font:inherit; background:#fff; }
textarea{ min-height:150px; resize:vertical; }
input:focus, textarea:focus{ outline:3px solid rgba(255,172,76,0.35); border-color:var(--navy); }

/* Board cards */
.board-grid{
  display:grid;
  gap:1.35rem;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
}
.board-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.35rem 1rem;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:0.85rem;
  align-items:center;
  text-align:center;
  min-height:315px;
}
.board-photo{
  width:170px;
  height:170px;
  border-radius:999px;
  object-fit:cover;
  border:7px solid var(--gold);
  flex:0 0 auto;
  background:var(--gold-soft);
  box-shadow:0 12px 24px rgba(23,27,59,0.13);
}
.board-card h3{ margin:0 0 0.2rem 0; color:var(--navy); font-size:1.22rem; }
.board-title{ margin:0; font-weight:850; color:#111; }
.board-org{ margin:0.18rem 0 0 0; color:var(--muted); font-size:0.98rem; }
.people-list{ list-style:none; padding:0; margin:0.75rem 0 0 0; }
.people-list li{ padding:0.45rem 0; border-bottom:1px solid var(--border); }
.people-list li:last-child{ border-bottom:none; }
.governance-card{ border-left:12px solid var(--gold); }

/* Resources */
.resource-card{ border-top:8px solid var(--navy); }
.resource-card.soft-card{ border-top-color:var(--gold); background:linear-gradient(180deg,#fff,var(--gold-soft)); }
.resource-card .button{ margin-top:0.35rem; }

/* Footer */
.site-footer{ background:var(--navy); color:#fff; padding:1.8rem 0; border-top:8px solid var(--gold); }
.site-footer a{ color:#fff; }
.site-footer a:hover{ color:var(--gold); }
.site-footer .small{ color:rgba(255,255,255,0.85); }
.footer-inner{ display:flex; justify-content:space-between; gap:1.5rem; flex-wrap:wrap; }
.footer-nav{ display:flex; gap:0.9rem; flex-wrap:wrap; align-items:center; }
.footer-nav a{ text-decoration:none; font-weight:700; }

@media (max-width:880px){
  .two-column{ grid-template-columns:1fr; }
  .brand img{ width:96px; height:96px; }
  .brand-name{ font-size:clamp(1.2rem,4vw,1.75rem); }
}
@media (max-width:720px){
  .header-inner{ align-items:flex-start; }
  .brand{ min-width:0; }
  .brand img{ width:82px; height:82px; }
  .brand-tagline{ font-size:0.92rem; }
  .form-row{ grid-template-columns:1fr; }
  .board-card{ align-items:center; }
  .board-photo{ width:145px; height:145px; }
}
@media (max-width:480px){
  .brand{ gap:0.7rem; }
  .brand img{ width:72px; height:72px; }
  .brand-name{ font-size:1.15rem; }
  .site-nav a{ padding:0.45rem 0.65rem; }
  .section{ padding:2rem 0; }
}


/* Dynamic video playlist and news feed helpers */
.video-message{
  width:100%;
  height:100%;
  min-height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:1.35rem;
  background:#fff;
  color:var(--muted);
}
.video-message p{ margin:0; }
.news-empty{
  background:#fff;
  border:1px dashed var(--border);
  border-radius:var(--radius);
  padding:1.35rem;
  color:var(--muted);
}
.news-card .read-more{
  display:inline-block;
  margin-top:0.35rem;
}


/* Simple placeholder card for client-facing sections */
.coming-soon-card{
  min-height:160px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:linear-gradient(180deg,#fff,var(--gold-soft));
  border-top:8px solid var(--gold);
}
.coming-soon-card h3{
  margin:0;
  font-size:1.45rem;
}

/* CSV-driven video cards */
.video-grid{
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
}
.video-card{
  display:flex;
  flex-direction:column;
  gap:0.75rem;
}
.video-card-frame{
  aspect-ratio:16/9;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
}
.video-card-frame iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}
.video-card h3{
  margin:0.15rem 0 0 0;
}
.video-card p{
  margin-bottom:0;
}
.video-link-placeholder{
  aspect-ratio:16/9;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:1rem;
  background:linear-gradient(180deg,#fff,var(--gold-soft));
  border:2px dashed var(--gold);
  border-radius:14px;
  color:var(--navy);
}
.video-watch-link{
  margin-top:auto;
}
.video-channel-cta{
  margin-top:1.25rem;
  text-align:center;
}


/* Member organization logo cards */
.member-org-grid{
  display:grid;
  gap:1.35rem;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
.member-org-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1rem;
  box-shadow:var(--shadow);
  text-align:center;
  display:flex;
  flex-direction:column;
  min-height:245px;
}
.member-logo-stage{
  height:155px;
  padding:1rem;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.member-logo-stage-dark{
  background:var(--navy);
  border-color:var(--navy);
}
.member-logo{
  display:block;
  max-width:100%;
  max-height:120px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.member-org-card h3{
  margin:0.9rem 0 0;
  font-size:1.08rem;
  line-height:1.25;
}

/* CSV-driven news cards with optional external links */
.news-grid{
  align-items:stretch;
}
.news-card{
  display:flex;
  flex-direction:column;
}
.news-body{
  margin-bottom:1rem;
}
.news-link{
  align-self:flex-start;
  margin-top:auto;
  padding:0.58rem 0.9rem;
}

/* Clickable member organization cards */
.member-org-link{
  color:inherit;
  text-decoration:none;
  transition:transform 160ms ease,box-shadow 160ms ease,border-color 160ms ease;
}
.member-org-link:hover{
  color:inherit;
  transform:translateY(-4px);
  border-color:var(--gold);
  box-shadow:0 18px 34px rgba(23,27,59,0.14);
}
.member-org-link:focus-visible{
  outline:4px solid rgba(255,172,76,0.72);
  outline-offset:4px;
}
.member-org-link h3{ color:var(--navy); }
.member-org-link:hover h3{ text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:0.2em; }

/* Open House funder, presented separately from member organizations */
.open-house-funder-section{
  background:linear-gradient(135deg,var(--gold-soft),#fff 62%,var(--bg));
  border-top:1px solid rgba(255,172,76,0.35);
  border-bottom:1px solid rgba(46,51,97,0.1);
}
.open-house-funder-card{
  display:grid;
  grid-template-columns:minmax(220px,320px) 1fr;
  gap:1.5rem;
  align-items:center;
  max-width:880px;
  margin-inline:auto;
  padding:1.25rem;
  background:#fff;
  color:inherit;
  text-decoration:none;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  transition:transform 160ms ease,box-shadow 160ms ease,border-color 160ms ease;
}
.open-house-funder-card:hover{
  color:inherit;
  transform:translateY(-4px);
  border-color:var(--gold);
  box-shadow:0 18px 34px rgba(23,27,59,0.14);
}
.open-house-funder-card:focus-visible{
  outline:4px solid rgba(255,172,76,0.72);
  outline-offset:4px;
}
.open-house-funder-logo-stage{
  min-height:170px;
  padding:1.25rem;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
}
.open-house-funder-logo{
  display:block;
  max-width:100%;
  max-height:135px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.open-house-funder-copy h3{
  margin-bottom:0.45rem;
  font-size:clamp(1.25rem,2vw,1.65rem);
}
.open-house-funder-copy p{
  margin-bottom:0.7rem;
  color:var(--muted);
  font-size:1.03rem;
}
.open-house-funder-link-text{
  display:inline-block;
  color:var(--navy);
  font-weight:850;
  text-decoration:underline;
  text-decoration-color:var(--gold);
  text-decoration-thickness:0.14em;
  text-underline-offset:0.22em;
}
@media (max-width:720px){
  .open-house-funder-card{
    grid-template-columns:1fr;
    text-align:center;
  }
  .open-house-funder-logo-stage{ min-height:145px; }
}

/* Board biography links and pop-up */
.bio-instruction{
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  margin:0 0 1.25rem;
  padding:0.6rem 0.85rem;
  border-radius:999px;
  background:var(--gold-soft);
  color:var(--navy-dark);
  font-weight:750;
}
.bio-instruction::before{
  content:"i";
  display:inline-grid;
  place-items:center;
  width:1.45rem;
  height:1.45rem;
  border-radius:999px;
  background:var(--gold);
  color:#111;
  font-weight:950;
  font-family:Georgia,serif;
}
.board-photo-button,
.board-name-button{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  padding:0;
  cursor:pointer;
}
.board-photo-button{
  display:block;
  border-radius:999px;
  line-height:0;
}
.board-photo{
  transition:transform 160ms ease,box-shadow 160ms ease,border-color 160ms ease;
}
.board-photo-button:hover .board-photo{
  transform:scale(1.035);
  border-color:#ffbe73;
  box-shadow:0 16px 30px rgba(23,27,59,0.18);
}
.board-name-button{
  color:var(--navy);
  font-weight:inherit;
  line-height:inherit;
}
.board-name-button:hover{
  text-decoration:underline;
  text-decoration-color:var(--gold);
  text-decoration-thickness:3px;
  text-underline-offset:0.18em;
}
.board-photo-button:focus-visible,
.board-name-button:focus-visible{
  outline:4px solid rgba(255,172,76,0.76);
  outline-offset:4px;
}
.bio-dialog{
  width:min(760px,calc(100% - 2rem));
  max-height:min(84vh,820px);
  margin:auto;
  padding:0;
  border:0;
  border-radius:22px;
  color:var(--text);
  background:#fff;
  box-shadow:0 28px 70px rgba(15,20,52,0.35);
  overflow:hidden;
}
.bio-dialog::backdrop{
  background:rgba(20,24,54,0.72);
  backdrop-filter:blur(3px);
}
.bio-dialog-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:0.8rem 1rem 0.8rem 1.35rem;
  background:var(--navy);
  border-bottom:7px solid var(--gold);
  color:#fff;
}
.bio-dialog-topbar p{
  margin:0;
  font-size:0.83rem;
  font-weight:900;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:#fff;
}
.bio-dialog-close{
  display:grid;
  place-items:center;
  width:2.55rem;
  height:2.55rem;
  padding:0;
  border:2px solid rgba(255,255,255,0.78);
  border-radius:999px;
  background:transparent;
  color:#fff;
  font:700 1.65rem/1 system-ui,sans-serif;
  cursor:pointer;
}
.bio-dialog-close:hover,
.bio-dialog-close:focus-visible{
  background:var(--gold);
  border-color:var(--gold);
  color:#111;
  outline:none;
}
.bio-dialog-content{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:1.5rem;
  align-items:start;
  padding:1.6rem;
  overflow-y:auto;
  max-height:calc(84vh - 72px);
}
.bio-dialog-photo{
  width:150px;
  height:150px;
  object-fit:cover;
  border-radius:999px;
  border:7px solid var(--gold);
  background:var(--gold-soft);
  box-shadow:0 12px 24px rgba(23,27,59,0.15);
}
.bio-dialog h2{
  margin:0 0 0.2rem;
}
.bio-dialog-role{
  margin:0 0 1rem;
  color:var(--muted);
  font-weight:800;
}
.bio-dialog-copy{
  margin:0;
  font-size:1.04rem;
  line-height:1.75;
}
body.bio-dialog-open{ overflow:hidden; }

@media (max-width:600px){
  .bio-instruction{
    display:flex;
    border-radius:14px;
  }
  .bio-dialog-content{
    grid-template-columns:1fr;
    text-align:center;
    padding:1.25rem;
  }
  .bio-dialog-photo{
    width:132px;
    height:132px;
    margin-inline:auto;
  }
  .bio-dialog-copy{ text-align:left; }
}

