/* St. Vincent de Paul Thrift Store, Belleville
   Built on the SSVP Canada design system (tokens copied verbatim from _ds/.../tokens). */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/RedHatDisplay-400.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Display";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/RedHatDisplay-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/EBGaramond-400.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --ssvp-blue: #007ac2;
  --ssvp-blue-dark: #00639d;
  --ssvp-blue-mid: #4e94c7;
  --ssvp-blue-pale: #d1ecff;
  --ssvp-red: #ef3e33;
  --ssvp-red-dark: #b70b00;
  --ssvp-black: #000;
  --ssvp-grey: #707070;
  --ssvp-white: #fff;
  --border-subtle: rgba(0, 0, 0, 0.16);

  --font-sans: "Red Hat Display", Sans-serif;
  --font-serif-display: "EB Garamond", Georgia, serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;
  --fs-caption: 0.66rem;
  --fs-small: 0.85rem;
  --fs-label: 0.9rem;
  --fs-body: 1rem;
  --fs-body-lg: 1.14rem;
  --fs-h5: 1.2rem;
  --fs-h4: 1.33rem;
  --fs-h2: 2.4rem;
  --fs-stat: 1.9rem;

  /* Page-level display sizes from the prototype, scaled down on small screens */
  --fs-display: clamp(2.4rem, 1.2rem + 4.2vw, 3.6rem);
  --fs-title: clamp(2rem, 1.3rem + 2.4vw, 2.7rem);
  --fs-lead: clamp(1.14rem, 1rem + 0.5vw, 1.3rem);

  --radius-pill: 30px;
  --shadow-button: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  --shadow-card: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  --shadow-header: 0 10px 12px 0 rgba(0, 0, 0, 0.16);
  --duration-fast: 0.3s;
  --header-offset: 140px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: var(--header-offset);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: #fff;
  color: #000;
  font: var(--fw-medium) var(--fs-body-lg)/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
img {
  max-width: 100%;
}
a {
  color: var(--ssvp-blue-dark);
}
a:hover {
  color: var(--ssvp-blue);
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: #fff;
  color: var(--ssvp-blue-dark);
  padding: 12px 20px;
  font-weight: 700;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
}
:focus-visible {
  outline: 3px solid var(--ssvp-blue-mid);
  outline-offset: 3px;
}

/* ---------- Type helpers ---------- */
.display {
  font: var(--fw-bold) var(--fs-display)/1.1 var(--font-serif-display);
}
.title {
  font: var(--fw-bold) var(--fs-title)/1.1 var(--font-serif-display);
}
.section-heading {
  font: var(--fw-bold) var(--fs-h2)/1 var(--font-serif-display);
  color: #000;
  text-align: center;
}
.lead {
  font: var(--fw-medium) var(--fs-lead)/1.5 var(--font-sans);
}
.eyebrow {
  font: var(--fw-bold) 0.85rem/1.2 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.h-sans {
  font: var(--fw-bold) 1.7rem/1.2 var(--font-sans);
  color: var(--ssvp-blue);
}
.h-sans-sm {
  font: var(--fw-bold) var(--fs-h4)/1.2 var(--font-sans);
  color: var(--ssvp-blue);
}
.note {
  font-style: italic;
  color: var(--ssvp-grey);
  text-align: center;
}
.small {
  font: var(--fw-medium) 1rem/1.6 var(--font-sans);
}
.muted {
  color: var(--ssvp-grey);
}
.brand-dark {
  color: var(--ssvp-blue-dark);
}
.center {
  text-align: center;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  padding-top: 80px;
  padding-bottom: 80px;
}
.section--tight-top {
  padding-top: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap, 20px);
}
.stack--center {
  align-items: center;
  text-align: center;
}
.stack--start {
  align-items: flex-start;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 260px), 100%), 1fr));
  gap: var(--gap, 30px);
}
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 50px;
  align-items: center;
}
.split--top {
  align-items: start;
}
.band {
  padding: 70px 20px;
}
.band--pale {
  background: var(--ssvp-blue-pale);
}
.band--blue {
  background: var(--ssvp-blue);
  color: #fff;
}
.band--blue a:not(.btn) {
  color: #fff;
}
.band--blue a:not(.btn):hover {
  color: var(--ssvp-blue-pale);
}
.photo {
  width: 100%;
  object-fit: cover;
  display: block;
}
.photo--4x3 {
  aspect-ratio: 4/3;
}
.photo--3x2 {
  aspect-ratio: 3/2;
}
.panel {
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.panel--flat {
  box-shadow: none;
}
.panel__foot {
  margin-top: auto;
  padding-top: 10px;
}

/* ---------- Buttons (DS Button) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 12px 30px;
  font: var(--fw-bold) var(--fs-body-lg)/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  background: var(--ssvp-blue);
  color: #fff;
  transition:
    background var(--duration-fast),
    color var(--duration-fast);
  text-align: center;
}
.btn:hover {
  background: var(--ssvp-blue-dark);
  color: #fff;
}
.btn--donate {
  background: var(--ssvp-red);
}
.btn--donate:hover {
  background: var(--ssvp-red-dark);
}
.btn--on-image {
  background: #fff;
  color: var(--ssvp-blue-dark);
  box-shadow: var(--shadow-button);
}
.btn--on-image:hover {
  background: var(--ssvp-blue-pale);
  color: var(--ssvp-blue-dark);
}
.btn--text {
  background: none;
  padding: 0;
  border-radius: 0;
  color: #000;
  font: var(--fw-bold) var(--fs-label)/1.2 var(--font-sans);
}
.btn--text::before {
  content: ">";
}
.btn--text:hover {
  background: none;
  color: var(--ssvp-blue);
}
.btn-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-row--center {
  justify-content: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
}
.announce {
  background: var(--ssvp-blue-pale);
  color: var(--ssvp-blue-dark);
  text-align: center;
  padding: 10px 20px;
  font: var(--fw-bold) var(--fs-small)/1.3 var(--font-sans);
}
.topbar {
  background: var(--ssvp-blue);
}
.topbar .wrap {
  padding-top: 6px;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
}
.topbar__info {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
  color: #fff;
  font: var(--fw-bold) 0.72rem/1.3 var(--font-sans);
}
.topbar a {
  color: #fff;
  text-decoration: none;
  display: flex;
}
.topbar a:hover {
  color: var(--ssvp-blue-pale);
}
.mainbar {
  background: #fff;
  box-shadow: var(--shadow-header);
}
.mainbar .wrap {
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand img {
  height: 60px;
  width: 60px;
}
.brand__text {
  display: flex;
  flex-direction: column;
}
.brand__name {
  font: var(--fw-bold) 1.15rem/1.1 var(--font-sans);
  color: #000;
}
.brand__sub {
  font: var(--fw-semibold) 0.8rem/1.2 var(--font-sans);
  color: var(--ssvp-blue-dark);
}
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 4px;
}
.nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__links a {
  display: block;
  font: var(--fw-bold) 1rem/1.2 var(--font-sans);
  color: #000;
  text-decoration: none;
  padding: 14px 16px;
  border-bottom: 3px solid transparent;
  transition: color var(--duration-fast);
}
.nav__links a:hover {
  color: var(--ssvp-blue-mid);
}
.nav__links a[aria-current="page"] {
  color: var(--ssvp-blue);
  border-bottom-color: var(--ssvp-blue);
}
.nav .btn {
  margin-left: 12px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ssvp-blue-dark);
}
.nav-toggle svg {
  display: block;
}
.nav-toggle .icon-close {
  display: none;
}

@media (max-width: 1100px) {
  .topbar__hours {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: var(--shadow-header);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 24px;
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .nav__links {
    flex-direction: column;
    align-items: stretch;
  }
  .nav__links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav__links a[aria-current="page"] {
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: inset 4px 0 0 var(--ssvp-blue);
    padding-left: 14px;
  }
  .nav .btn {
    margin: 18px 0 0;
    align-self: flex-start;
  }
  .mainbar {
    position: relative;
  }
  .site-header.menu-open .icon-open {
    display: none;
  }
  .site-header.menu-open .icon-close {
    display: block;
  }
}
@media (max-width: 480px) {
  .brand img {
    height: 48px;
    width: 48px;
  }
  .brand__name {
    font-size: 1.02rem;
  }
  :root {
    --header-offset: 120px;
  }
}

/* ---------- Heroes ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  background-position: var(--hero-pos, center);
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  min-height: var(--hero-h, 420px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--hero-dim, 0.5));
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero--center {
  justify-content: center;
}
.hero--center .hero__inner {
  max-width: 860px;
  padding: 80px 20px;
  text-align: center;
  align-items: center;
  gap: 24px;
}
.hero h1,
.hero .display,
.hero h2 {
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  color: #fff;
}
.hero .lead {
  max-width: 640px;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}
.hero__meta {
  display: flex;
  gap: 10px 40px;
  flex-wrap: wrap;
  font: var(--fw-bold) var(--fs-body-lg)/1.4 var(--font-sans);
}

/* ---------- DS Card ---------- */
.card {
  background: #fff;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.card__img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}
.card__body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}
.card__title {
  font: var(--fw-bold) var(--fs-h5)/1.2 var(--font-sans);
  color: var(--ssvp-blue);
}
.card__text {
  font: var(--fw-regular) var(--fs-small)/1.6 var(--font-sans);
  flex: 1;
}
.cards {
  padding: 10px;
}

/* ---------- DS IconTile ---------- */
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}
.tile img {
  height: 90px;
  width: auto;
}
.tile__title {
  font: var(--fw-bold) var(--fs-h5)/1.2 var(--font-sans);
  color: var(--ssvp-blue);
}
.tile__text {
  font: var(--fw-regular) var(--fs-small)/1.6 var(--font-sans);
  max-width: 300px;
}
.tile--left {
  align-items: flex-start;
  text-align: left;
}

/* ---------- DS StatCounter ---------- */
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.stat img {
  height: 65px;
  width: auto;
}
.stat__value {
  font: var(--fw-black) var(--fs-stat)/1.2 var(--font-sans);
  color: var(--ssvp-blue);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font: var(--fw-regular) var(--fs-body)/1.6 var(--font-sans);
}

/* ---------- Numbered steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  width: 100%;
}
.steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.steps__n {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ssvp-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: var(--fw-black) 1.4rem/1 var(--font-sans);
}

/* ---------- Lists ---------- */
.checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checklist svg {
  flex: none;
  margin-top: 3px;
}
.bullets {
  list-style: disc;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.numbered {
  list-style: decimal;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Accordion (Mission, Vision & Values) ---------- */
.accordion {
  border-top: 1px solid var(--border-subtle);
}
.accordion details {
  border-bottom: 1px solid var(--border-subtle);
}
.accordion summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font: var(--fw-bold) var(--fs-h4)/1.2 var(--font-sans);
  color: var(--ssvp-blue-dark);
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary svg {
  flex: none;
  transition: transform var(--duration-fast);
}
.accordion details[open] summary svg {
  transform: rotate(180deg);
}
.accordion__body {
  padding: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Gallery ---------- */
.gallery figure {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font: var(--fw-bold) var(--fs-h4)/1.2 var(--font-sans);
}

/* ---------- Partners ---------- */
.partners {
  width: 100%;
  align-items: center;
}
.partners li {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}
.partners img {
  max-width: 100%;
  max-height: 110px;
  width: auto;
  height: auto;
  display: block;
}
.partners span {
  font: var(--fw-bold) 1.2rem/1.3 var(--font-sans);
  color: var(--ssvp-grey);
}

/* ---------- Event promo (home) ---------- */
.promo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  background: var(--ssvp-blue);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.promo__img {
  position: relative;
  min-height: 320px;
}
.promo__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
  display: block;
}
.promo__body {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.promo .eyebrow {
  color: var(--ssvp-blue-pale);
}
.sale {
  background: var(--ssvp-blue);
  color: #fff;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .promo__body,
  .panel,
  .card__body,
  .sale {
    padding: 30px 24px;
  }
}

/* ---------- Map ---------- */
.map {
  aspect-ratio: 4/3;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--ssvp-blue-pale);
}
.map iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Visit details ---------- */
.detail h2 {
  font: var(--fw-bold) var(--fs-h4)/1.2 var(--font-sans);
  color: var(--ssvp-blue);
}
.detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- Volunteer roles ---------- */
.role {
  background: #fff;
  padding: 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.role img {
  height: 56px;
  width: 56px;
  flex: none;
}
.role h3 {
  font: var(--fw-bold) var(--fs-h4)/1.2 var(--font-sans);
  color: var(--ssvp-blue);
}

/* ---------- Donate embed ---------- */
.give-box {
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 20px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#ch-embed-host {
  flex: 1;
  min-height: 360px;
}
#ch-embed-host iframe {
  width: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer__main {
  background: var(--ssvp-blue);
  color: #fff;
  padding: 50px 20px;
}
.site-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 40px;
  align-items: start;
}
.site-footer a:not(.btn) {
  color: #fff;
}
.site-footer a:not(.btn):hover {
  color: var(--ssvp-blue-pale);
}
.site-footer__logo {
  height: 64px;
  width: auto;
  align-self: flex-start;
}
.site-footer__addr {
  font: var(--fw-regular) 0.8rem/1.6 var(--font-sans);
}
.site-footer__nav {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.site-footer__nav a {
  display: block;
  font: var(--fw-semibold) var(--fs-small)/1.2 var(--font-sans);
  text-decoration: none;
  padding: 8px 0;
  transition: color var(--duration-fast);
}
.site-footer__motto {
  font: var(--fw-bold) 1.6rem/1.1 var(--font-serif-display);
}
.site-footer__legal {
  background: var(--ssvp-blue-mid);
  color: #fff;
  padding: 14px 20px;
}
.site-footer__legal div {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
  font: var(--fw-regular) var(--fs-caption)/1.2 var(--font-sans);
}

[hidden] {
  display: none !important;
}
