/* Vecinos Unidos website styles.
   Page content follows the current vecinosunidos.org: VU blue bands, Plus Jakarta Sans,
   light-blue pill buttons, rounded photos beside text, gold line icons.
   Header and footer are a cleaner, more professional take. */
:root {
  --blue: #0078AE;          /* title band, blue sections */
  --blue-dark: #06678F;
  --button: #A4E0FC;        /* light-blue pill buttons */
  --button-hover: #8AD5F8;
  --button-text: #3C4044;
  --text: #333333;
  --soft: #F7F7F7;          /* home top section */
  --gray: #F2F2F2;          /* gray sections */
  --white: #FFFFFF;
  --line: #E3E3E3;
  --radius: 16px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.75rem); font-weight: 500; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px; border-radius: 20px;
  background: var(--button); color: var(--button-text);
  font-size: .95rem; font-weight: 600; line-height: 1; text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: var(--button-hover); color: var(--button-text); }
.btn i { font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px 24px; margin: 1.5em 0 0; }
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-dark); color: #fff; }

/* ---------- Header: white, sticky, full logo, Donate button ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); } }
.site-header.scrolled { box-shadow: 0 2px 14px rgba(12, 39, 51, .08); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav ul a {
  position: relative; display: block; padding: 10px 12px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--blue); border-radius: 2px; transform: scaleX(0); transition: transform .2s;
}
.site-nav ul a:hover { color: var(--blue); }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav ul a[aria-current="page"] { color: var(--blue); }
.header-cta { padding: 11px 20px; }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .2s, top .2s, opacity .2s; content: "";
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { left: 0; top: -6px; }
.nav-toggle-bars::after { left: 0; top: 6px; }
.menu-open .nav-toggle-bars { background: transparent; }
.menu-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.menu-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .site-nav ul a { padding: 10px 8px; font-size: .9rem; }
  .site-nav ul a::after { left: 8px; right: 8px; }
  .site-nav { gap: 12px; }
  .brand img { height: 40px; }
}
@media (max-width: 960px) {
  .header-row { min-height: 72px; }
  .brand img { height: 36px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(12, 39, 51, .1);
    padding: 8px 20px 20px;
  }
  .menu-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav ul li + li { border-top: 1px solid var(--line); }
  .site-nav ul a { padding: 14px 4px; font-size: 1rem; }
  .site-nav ul a::after { display: none; }
  .header-cta { justify-content: center; margin-top: 12px; padding: 14px 20px; }
}
@media (max-width: 380px) { .brand img { height: 30px; } }

/* ---------- Bands (section backgrounds) ---------- */
.band { padding: 56px 0; }
.band-soft { background: var(--soft); }
.band-white { background: var(--white); }
.band-gray { background: var(--gray); }
.band-blue { background: var(--blue); color: #fff; }
.band-blue a:not(.btn) { color: #fff; }
.band-blue + .band-blue, .band-white + .band-white, .band-gray + .band-gray { padding-top: 0; }

/* ---------- Photo + text rows (used by the top band and "row" sections) ---------- */
.row.has-image { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.row.image-right .row-figure { order: 2; }
.row-text > :last-child { margin-bottom: 0; }
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption { margin-top: 10px; font-size: .9rem; font-style: italic; text-align: center; }
@media (max-width: 860px) {
  .row.has-image { grid-template-columns: 1fr; gap: 28px; }
  .row.image-right .row-figure { order: 0; }
}

/* ---------- Inner page top band ---------- */
.page-head { background: var(--blue); color: #fff; padding: 48px 0 56px; }
.page-head h1 { margin: 0 0 32px; }
.page-head .head-heading { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 500; }
.page-head .row:not(.has-image) { max-width: 72em; }
.page-head a:not(.btn) { color: #fff; }

/* ---------- Home ---------- */
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
.hero p { max-width: 70em; }
.hero-photo { width: 100%; max-height: 640px; object-fit: cover; }
.mission h2 { margin-bottom: .5em; }
.mission-intro { font-size: 1.15rem; margin-bottom: 1.5em; }
.mission-item { --accent: var(--blue); display: flex; gap: 18px; align-items: flex-start; margin: 0 0 1.4em; }
.mission-item:last-child { margin-bottom: 0; }
.mission-item .card-icon { flex: none; width: 48px; height: 48px; margin: 2px 0 0; font-size: 1.2rem; }
.mission-item h3 { font-size: 1.1rem; font-weight: 700; color: var(--accent); margin: 0 0 .2em; }
.mission-item p { margin: 0; }
.community { text-align: center; }
.community .lead-text { max-width: 46em; margin: 0 auto 1em; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.point img { width: 72px; height: 72px; margin: 0 auto 14px; }
.point h3 { font-size: 1.05rem; margin-bottom: .5em; }

/* ---------- Section types ---------- */
.text-block { max-width: 72em; }
.text-block h2, .block-cards h2, .block-steps h2, .block-video h2, .block-slideshow h2, .block-gallery h2 { margin-bottom: .75em; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
/* Cards: white, softly raised; the icon carries the logo color */
.card {
  --accent: var(--blue);
  background: #fff; color: var(--text);
  border-radius: 14px; padding: 28px 26px 26px;
  box-shadow: 0 1px 3px rgba(12, 39, 51, .06), 0 8px 24px rgba(12, 39, 51, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(12, 39, 51, .06), 0 12px 28px rgba(12, 39, 51, .1); }
.card > :last-child { margin-bottom: 0; }
.card h3 { font-size: 1.15rem; font-weight: 700; color: var(--accent); margin-bottom: .4em; }
.card-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .card-grid.two-up { grid-template-columns: 1fr; } }
.cards-intro { max-width: 72em; margin-bottom: 28px; font-size: 1.05rem; }
.cards-intro > :last-child, .cards-outro > :last-child { margin-bottom: 0; }
.cards-outro { max-width: 60em; margin: 32px auto 0; text-align: center; font-size: 1.1rem; font-weight: 500; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card-head .card-icon { flex: none; margin: 0; }
.card-head h3 { margin: 0; }
.card-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.4rem;
}
/* Shared accent colors (logo blue, green, purple, teal + Attendance app burnt orange).
   Used by cards, Our Mission points and numbered steps. Keep after those rules. */
.accent-blue   { --accent: #0078AE; }
.accent-green  { --accent: #5C9A30; }
.accent-purple { --accent: #6C2A94; }
.accent-teal   { --accent: #1F8A9B; }
.accent-orange { --accent: #B45F26; }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }

/* Numbered steps: big colored number, then the step; optional small boxes (Math / Reading / Writing) */
.steps { list-style: none; padding: 0; margin: 0; max-width: 72em; }
.step { display: flex; gap: 22px; align-items: flex-start; margin: 0 0 2.25em; }
.step:last-child { margin-bottom: 0; }
.step-num {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent, var(--blue)); color: #fff; font-size: 1.4rem; font-weight: 700; line-height: 1;
}
.step-body { flex: 1; min-width: 0; padding-top: 10px; }
.step-body > :last-child { margin-bottom: 0; }
.step h3 { font-size: 1.35rem; font-weight: 600; color: var(--accent, var(--blue)); margin-bottom: .45em; }
.step-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 1.25em; }
.step-point { background: #F7F9FA; border-radius: 14px; padding: 20px 20px 18px; }
.step-point-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.step-point .card-icon { flex: none; width: 44px; height: 44px; margin: 0; font-size: 1.1rem; }
.step-point h4 { font-size: 1.15rem; font-weight: 700; color: var(--accent, var(--blue)); margin: 0; }
.step-point p { margin: 0; font-size: .95rem; }
@media (max-width: 560px) {
  .step { gap: 14px; }
  .step-num { width: 42px; height: 42px; font-size: 1.15rem; }
  .step-body { padding-top: 6px; }
}

.video { position: relative; aspect-ratio: 16 / 9; max-width: 760px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 2em; }
.photo-grid img { aspect-ratio: 4 / 3; object-fit: cover; }

.quote { margin: 0; max-width: 56em; }
.quote p { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 500; line-height: 1.35; margin: 0; }
.quote footer { margin-top: 14px; font-size: .95rem; }

.calendar-frame { display: block; width: 100%; height: 680px; border: 0; border-radius: var(--radius); background: #fff; }
.block-calendar.band-blue { padding-top: 0; }
.page-head + .block-calendar.band-blue { margin-top: -16px; }

/* Donors: centered heading, two cards side by side */
.donors { text-align: center; }
.donors-heading { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: .4em; }
.donors-intro { max-width: 40em; margin: 0 auto; }
.donor-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 900px; margin: 36px auto 0; }
.donor-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.donor-card:hover { transform: none; }
/* Solid color header with the icon and title in white */
.donor-card-head {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--accent); color: #fff; padding: 28px 24px 24px;
}
.donor-card-head .card-icon { margin: 0; background: #fff; color: var(--accent); }
.donor-card h3 { font-size: 1.3rem; margin: 0; color: #fff; }
.donor-list { list-style: none; padding: 26px 24px 30px; margin: 0; }
.donor-list li { margin: 0 0 .6em; font-size: 1.05rem; line-height: 1.5; }
.donor-list li:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .donor-groups { grid-template-columns: 1fr; } }

/* Board: round photo on the left, bio on the right, rows divided by lines */
.person { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 32px 0; }
.person-photo img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin: 0 auto; }
/* No headshot yet: the VU globe-and-book logo in a soft circle */
.person-photo img.avatar-logo { object-fit: contain; padding: 30px; background: #EAF6FC; }
.person h3 { font-size: 1.6rem; font-weight: 400; margin: 0 0 .3em; }
.person .role { font-weight: 700; margin: 0 0 .75em; }
.person .bio { margin: 0; }
.team-heading { margin: 1.5em 0 .25em; text-align: center; }
@media (max-width: 760px) {
  .person { grid-template-columns: 1fr; gap: 18px; }
  .person-photo img { width: 160px; height: 160px; }
  .person-photo img.avatar-logo { padding: 24px; }
}

/* ---------- Photo slideshow (Donate, Get Involved) ---------- */
.slideshow { --gap: 16px; --per-view: 1; position: relative; padding: 0 36px; }
.slideshow-viewport { overflow: hidden; }
.slides { display: flex; gap: var(--gap); margin: 0; padding: 0; list-style: none; transition: transform .5s ease; touch-action: pan-y; }
.slides li { flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); margin: 0; }
.slides img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); user-select: none; -webkit-user-drag: none; }
.slideshow.tall .slides img { aspect-ratio: 3 / 4; }
.slide-prev, .slide-next {
  position: absolute; top: calc(50% - 22px); transform: translateY(-50%);
  width: 32px; height: 44px; border: 0; background: none; color: #6C747C; font-size: 1.6rem; cursor: pointer;
}
.band-blue .slide-prev, .band-blue .slide-next { color: #fff; }
.slide-prev { left: 0; }
.slide-next { right: 0; }
.slide-prev:hover, .slide-next:hover { color: var(--text); }
.band-blue .slide-prev:hover, .band-blue .slide-next:hover { color: var(--button); }
.slide-dots { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.slide-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #000; opacity: .2; cursor: pointer; }
.band-blue .slide-dots button { background: #fff; opacity: .4; }
.slide-dots button[aria-current="true"] { opacity: 1; }
.slideshow:not(.ready) .slide-prev, .slideshow:not(.ready) .slide-next { display: none; }
.slideshow:not(.ready) .slides { flex-wrap: wrap; }
@media (min-width: 768px) { .slideshow { --per-view: 2; } }
@media (min-width: 1025px) { .slideshow { --per-view: 3; } }
@media (prefers-reduced-motion: reduce) { .slides { transition: none; } }

/* ---------- Footer: columns on a soft background, slim blue bar ---------- */
.site-footer { background: #F2F6F8; border-top: 4px solid var(--blue); font-size: .95rem; color: #44505A; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1.45fr 1fr 1fr; gap: 40px 64px;
  padding-top: 36px; padding-bottom: 36px;
}
.footer-logo { display: inline-block; }
@media (min-width: 961px) { .footer-about { align-self: center; justify-self: center; } }
.footer-logo img { width: 150px; height: auto; }
@media (max-width: 960px) { .footer-logo img { width: 130px; } }
.site-footer h2 {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-dark); margin: 6px 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-subgroup { margin-top: 22px; }
@media (min-width: 961px) { .footer-explore { justify-self: center; } }
.footer-col li { margin: 0 0 4px; line-height: 1.5; }
.footer-col a { color: #44505A; text-decoration: none; }
.footer-col a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; margin-bottom: 10px; }
.footer-contact i { color: var(--blue); width: 16px; margin-top: 4px; flex: none; text-align: center; }
.footer-bar { background: var(--blue); color: #fff; font-size: .85rem; }
.footer-bar-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 14px; padding-bottom: 14px; }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; padding-top: 32px; }
  .footer-bar-row { flex-direction: column; }
  .band { padding: 44px 0; }
}
