/* O'Dell Women's Center — site styles */
:root {
  --ink: #1C2554;        /* logo navy */
  --blue: #4E6296;       /* brand bar blue */
  --sun: #F2E86D;        /* brand bar yellow */
  --sun-soft: #FBF6CF;
  --paper: #F6F4EC;
  --line: #DCDFE8;
  --muted: #59628A;
  --white: #FFFFFF;
  --wrap: 1160px;
  --radius: 6px;
  --head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.22rem; line-height: 1.6; }
.muted { color: var(--muted); }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink h2, .section--ink h3 { color: var(--white); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Brand bars motif ---------- */
.bars { display: flex; gap: 10px; align-items: flex-end; }
.bars span { display: block; width: 18px; background: var(--blue); border-radius: 2px; }
.bars span:nth-child(even) { background: var(--sun); }
.bars--small span { width: 7px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 24px; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; gap: clamp(14px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav a {
  font-weight: 500; font-size: 0.98rem; color: var(--ink); text-decoration: none;
  white-space: nowrap; padding: 6px 0; border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--sun); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 82px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--sun); padding-left: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 600; font-size: 1rem;
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  padding: 13px 26px; border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }

/* ---------- Home hero ---------- */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 3.3vw, 2.75rem); line-height: 1.16; margin-bottom: 28px; }
.hero .bars { margin-bottom: 28px; height: 54px; }
.hero .bars span:nth-child(1) { height: 54px; } .hero .bars span:nth-child(2) { height: 38px; }
.hero .bars span:nth-child(3) { height: 46px; } .hero .bars span:nth-child(4) { height: 28px; }
.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.collage .c-main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.collage .c-a, .collage .c-b { aspect-ratio: 4 / 3; }

.marquee { background: var(--sun-soft); border-block: 1px solid #EFE6A6; overflow: hidden; padding: 14px 0; }
.marquee__track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.marquee__track span { font-family: var(--head); font-weight: 500; font-size: 1.35rem; padding-right: 2.2rem; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Page header ---------- */
.page-head { padding: 80px 0 32px; }
.page-head .bars { margin-bottom: 22px; height: 30px; }
.page-head .bars span:nth-child(1) { height: 30px; } .page-head .bars span:nth-child(2) { height: 20px; } .page-head .bars span:nth-child(3) { height: 26px; }

/* ---------- Generic splits ---------- */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.split--flip { grid-template-columns: 1fr 1.2fr; }
.split img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.portrait { aspect-ratio: 4 / 5; }
.landscape { aspect-ratio: 3 / 2; }
figure { margin: 0; }
figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 10px; }

/* ---------- Programs (About) ---------- */
.programs { border-top: 1px solid var(--line); }
.program { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.program h3 { font-size: 1.7rem; }
.program ul { padding-left: 1.2em; margin: 0 0 1em; }
.program li { margin-bottom: 0.5em; max-width: 64ch; }

/* ---------- Quote ---------- */
.quote { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.quote img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 50%; border: 6px solid var(--sun); }
.quote blockquote { margin: 0; font-family: var(--head); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.35; }
.quote cite { display: block; margin-top: 20px; font-family: var(--body); font-style: normal; font-size: 1rem; opacity: 0.85; }

/* ---------- Stats (Grant Awards) ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 4px solid var(--sun); margin-top: 40px; }
.stat { padding: 28px 28px 8px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 28px; }
.stat strong { display: block; font-family: var(--head); font-weight: 600; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; }
.stat span { color: var(--muted); }

/* ---------- Logo grid ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 28px 0 0; }
.logos li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 130px; display: flex; align-items: center; justify-content: center; padding: 18px; }
.logos img { max-height: 92px; max-width: 100%; width: auto; object-fit: contain; }
.year + .year { margin-top: 64px; }

/* ---------- Grant application ---------- */
.notice { display: inline-block; background: var(--sun-soft); border-left: 4px solid var(--sun); padding: 12px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 8px 0 24px; font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.facts div { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: -1px -1px 0 0; }
.facts dt { font-size: 0.92rem; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-family: var(--head); font-weight: 600; font-size: 1.4rem; line-height: 1.2; }
.priorities { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.priority { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 30px; }
.priority:nth-child(2) { border-top-color: var(--sun); }
.priority ul { padding-left: 1.2em; margin: 0; }
.priority li { margin-bottom: 0.35em; }
.apply-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 0; }

/* ---------- Get involved cards ---------- */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.way img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 22px; }
.way h2 { font-size: 2rem; margin-bottom: 0.3em; }
.way p { min-height: 3.3em; }

/* ---------- News ---------- */
.news { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 32px; list-style: none; padding: 0; margin: 0; }
.news li { width: calc((100% - 96px) / 4); min-width: 230px; }
.news a { text-decoration: none; color: var(--ink); display: block; }
.news img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 16px; }
.news h3 { font-size: 1.28rem; line-height: 1.25; margin-bottom: 6px; }
.news a:hover h3 { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.news .src { font-size: 0.92rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 560px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 6px; }
.form .opt { color: var(--muted); font-weight: 400; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #C9CEDC; border-radius: var(--radius); padding: 12px 14px;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(78,98,150,.2); }
.form textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400 !important; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 500; font-size: 0.95rem; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; border: 1px solid #C9CEDC; border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 400; background: #fff; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-status { font-weight: 500; min-height: 1.5em; margin: 0; }
.form-status.ok { color: #2E6B3F; }
.form-status.err { color: #A23B2A; }
.hp { position: absolute; left: -5000px; }

/* ---------- Dialogs ---------- */
dialog { border: 0; border-radius: 10px; padding: 0; width: min(640px, 100% - 32px); max-height: 90vh; color: var(--ink); }
dialog::backdrop { background: rgba(28, 37, 84, 0.55); }
.dialog-inner { padding: 40px; position: relative; }
.dialog-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); padding: 6px 10px; }
.donate-box { background: var(--paper); border-radius: var(--radius); padding: 24px; margin: 20px 0 0; }
.donate-box address { font-style: normal; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact-card { border-top: 4px solid var(--sun); padding-top: 22px; margin-top: 28px; }
.contact-card address { font-style: normal; margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); padding: 56px 0 32px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 46px; width: auto; margin-bottom: 16px; }
.site-footer h2 { font-size: 1.1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.9rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .hero .wrap, .split, .split--flip, .contact, .quote, .program, .priorities { grid-template-columns: 1fr; gap: 36px; }
  .quote img { max-width: 200px; }
  .ways { grid-template-columns: 1fr; }
  .news li { width: calc((100% - 32px) / 2); min-width: 0; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 2; }
}
@media (max-width: 560px) {
  .form .row { grid-template-columns: 1fr; }
  .news li { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .dialog-inner { padding: 32px 22px; }
  .brand img { height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Refinements ---------- */
.btn { line-height: 1.2; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; }
.logos li { width: calc((100% - 48px) / 4); }
@media (max-width: 900px) { .logos li { width: calc((100% - 16px) / 2); } }
.way { display: flex; flex-direction: column; align-items: flex-start; }
.way .btn { margin-top: auto; }
.site-footer { background: #fff; }
.legal { max-width: none; }
.split figure { max-width: 440px; justify-self: end; }
.facts { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
