/* Opal Health website: page layout (Lafiya structure). Components and tokens come from tokens.css and bundle.css. */
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--opal-purple); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 800; }
.skip:focus { left: 16px; }

/* Announcement bar */
.announce { background: var(--purple-dark); color: var(--white); text-align: center; font-size: 15px; line-height: 22px; padding: 9px 16px; font-weight: 600; }
.announce a { color: var(--white); font-weight: 800; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* Header: links left, logo centered, Donate right */
.site-head { background: var(--white); border-bottom: 1px solid var(--lavender-line); position: sticky; top: 0; z-index: 50; }
.site-head__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; gap: 24px; }
.site-nav { display: flex; gap: 18px; flex-wrap: nowrap; }
.site-nav a { color: var(--opal-purple); font-weight: 800; font-size: 13px; line-height: 20px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: 4px 0; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.site-head__logo img { width: 168px; height: auto; }
.site-head__right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--opal-purple); }
.social:hover { background: var(--lavender-tint); }
.social:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.menu-btn { display: none; align-items: center; gap: 6px; background: none; border: 2px solid var(--opal-purple); color: var(--opal-purple); border-radius: var(--radius-pill); padding: 7px 14px; font: 800 15px/20px var(--font-sans); cursor: pointer; }
.menu-btn .oh-icon { font-size: 20px; }
.site-head__logo { flex: none; }
@media (max-width: 1100px) {
  .site-head__in { grid-template-columns: auto 1fr; min-height: 72px; }
  .site-head__logo { order: -1; }
  .site-head__logo img { width: 132px; }
  .site-nav { display: none; grid-column: 1 / -1; flex-direction: column; gap: 0; padding: 8px 0 16px; border-top: 1px solid var(--lavender-line); }
  .site-nav a { font-size: 16px; padding: 12px 0; }
  .site-head.is-open .site-nav { display: flex; }
  .menu-btn { display: inline-flex; }
  .site-head__right { grid-column: 2; grid-row: 1; }
}

/* Hero: headline above a wide photo */
.hero { padding-top: var(--space-7); }
.hero h1 { font-size: 46px; line-height: 56px; font-weight: 700; color: var(--opal-purple); max-width: 940px; }
.hero__lead { font-size: 21px; line-height: 32px; margin-top: var(--space-4); max-width: 760px; color: var(--ink); }
.hero__link { display: inline-flex; align-items: center; gap: 12px; margin-top: var(--space-5); font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; }
.hero__link .c { width: 38px; height: 38px; border-radius: 50%; background: var(--opal-purple); color: var(--white); display: flex; align-items: center; justify-content: center; flex: none; }
.hero__link:hover span:last-child { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.hero__photo { position: relative; margin: var(--space-6) 0 0; height: 560px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__photo img[src*="chew"] { object-position: center 20%; }
.hero__photo figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--white); color: var(--muted-text); font-size: 14px; line-height: 20px; font-style: italic; padding: 6px 12px; border-radius: var(--radius-sm); max-width: calc(100% - 32px); }
.hero--short .hero__photo { height: 420px; }
@media (max-width: 720px) { .hero h1 { font-size: 32px; line-height: 40px; } .hero__lead { font-size: 18px; line-height: 28px; } .hero__photo, .hero--short .hero__photo { height: 280px; } }

/* Sections */
.sec { padding: var(--space-9) 0; }
.sec--cream { background: var(--cream-tint); }
.sec--tint { background: var(--lavender-tint); }
.sec--purple { background: var(--opal-purple); color: var(--white); }
.label { display: block; font-size: 13px; line-height: 16px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-dark); }
.sec--purple .label { color: var(--gold); }
.center { text-align: center; }
.sec h2.big { font-size: 34px; line-height: 44px; font-weight: 700; color: var(--opal-purple); margin-top: var(--space-4); max-width: 880px; }
.center h2.big, .center .intro { margin-left: auto; margin-right: auto; }
.sec--purple h2.big { color: var(--white); }
.intro { font-size: 19px; line-height: 30px; margin-top: var(--space-4); max-width: 720px; }
.sec--purple .intro { color: var(--lavender-tint); }
.prose { max-width: 720px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: var(--space-4); }
.prose ul { padding-left: 22px; margin: 0; }
.prose li + li { margin-top: 8px; }
.prose h2 { font-size: 26px; line-height: 34px; color: var(--opal-purple); margin: var(--space-7) 0 var(--space-3); }
.prose h3 { font-size: 20px; line-height: 28px; color: var(--opal-purple); margin: var(--space-5) 0 var(--space-2); }
.prose a:not(.oh-btn) { color: var(--opal-purple); font-weight: 700; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 720px) { .sec { padding: var(--space-8) 0; } .sec h2.big { font-size: 27px; line-height: 35px; } }

/* Three photo columns (the model) */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-7); text-align: left; }
.cols3 .ph { height: 300px; border-radius: var(--radius-lg); overflow: hidden; }
.cols3 .ph img { width: 100%; height: 100%; object-fit: cover; }
.cols3 .n { width: 44px; height: 44px; border-radius: 50%; background: var(--opal-purple); color: var(--white); font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; margin: var(--space-5) 0 var(--space-3); }
.cols3 h3 { font-size: 22px; line-height: 29px; color: var(--opal-purple); font-weight: 800; }
.cols3 p { margin-top: var(--space-2); }
@media (max-width: 860px) { .cols3 { grid-template-columns: 1fr; } .cols3 .ph { height: 240px; } }

/* Numbers row */
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-7); border-top: 1px solid rgba(217, 200, 224, .35); padding-top: var(--space-6); }
.nums b { display: block; font-size: 52px; line-height: 56px; font-weight: 700; color: var(--gold); }
.nums span { display: block; color: var(--lavender-tint); font-size: 16px; line-height: 23px; margin-top: var(--space-2); }
.nums i { display: block; color: var(--purple-soft); font-size: 13px; line-height: 18px; margin-top: 6px; }
@media (max-width: 860px) { .nums { grid-template-columns: 1fr 1fr; } .nums b { font-size: 40px; line-height: 44px; } }

/* Split text and photo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
.split--top { align-items: start; }
.split .ph img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.split figcaption { font-size: 14px; line-height: 20px; font-style: italic; color: var(--muted-text); margin-top: var(--space-2); }
.sec--purple .split figcaption { color: var(--purple-soft); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--space-5); } }

/* Partners */
.partners { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-7); align-items: start; }
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.partner { display: flex; flex-direction: column; border: 1px solid var(--lavender-line); border-radius: var(--radius-lg); padding: var(--space-5); background: var(--white); text-decoration: none; color: inherit; }
a.partner:hover { border-color: var(--opal-purple); }
a.partner:hover b { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.partner__logo { height: 64px; width: auto; max-width: 200px; object-fit: contain; object-position: left center; margin-bottom: var(--space-4); }
.partner__icon { width: 64px; height: 64px; margin-bottom: var(--space-4); }
.partner__icon .oh-icon { font-size: 30px; }
.partner b { display: block; color: var(--opal-purple); font-size: 18px; line-height: 25px; }
.partner > span:not(.partner__icon) { display: block; color: var(--muted-text); font-size: 15px; line-height: 22px; margin-top: 4px; }
@media (max-width: 860px) { .partners, .partner-grid { grid-template-columns: 1fr; } }

/* Quote on photo */
.quote-photo { position: relative; height: 520px; }
.quote-photo > img { width: 100%; height: 100%; object-fit: cover; }
.quote-photo .card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--white); border-radius: var(--radius-lg); padding: 36px 44px; width: min(560px, calc(100% - 32px)); text-align: center; box-sizing: border-box; }
.quote-photo blockquote { margin: 0; font-size: 22px; line-height: 33px; color: var(--ink); font-style: italic; }
.quote-photo .who { margin-top: 18px; font-weight: 800; color: var(--opal-purple); font-size: 15px; }
.quote-photo .when { color: var(--muted-text); font-size: 14px; }
@media (max-width: 720px) { .quote-photo { height: 440px; } .quote-photo .card { padding: 28px 24px; } }

/* Raise band */
.raise { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-7); align-items: center; }
.raise img { width: 96px; }
.raise h2 { font-size: 32px; line-height: 40px; font-weight: 700; color: var(--opal-purple); }
.raise p { margin-top: var(--space-2); }
@media (max-width: 860px) { .raise { grid-template-columns: 1fr; gap: var(--space-4); } .raise img { width: 72px; } }

/* Cards, team, posts */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.person { background: var(--white); border: 1px solid var(--lavender-line); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start; }
.person .av { width: 72px; height: 72px; border-radius: 50%; background: var(--opal-purple); color: var(--white); font-weight: 800; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.person h3 { font-size: 22px; line-height: 29px; color: var(--opal-purple); }
.person .role { font-weight: 700; color: var(--muted-text); font-size: 15px; margin-top: 2px; }
.person p { margin-top: var(--space-3); }
.adv { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.adv a { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--lavender-line); border-radius: var(--radius-md); padding: 14px 18px; color: var(--opal-purple); font-weight: 700; text-decoration: none; }
.adv a:hover { border-color: var(--opal-purple); }
.adv a span { color: var(--muted-text); font-size: 13px; font-weight: 700; }
@media (max-width: 860px) { .adv { grid-template-columns: 1fr; } }

/* Post */
.post-head { padding: var(--space-8) 0 var(--space-6); }
.post-head .meta { color: var(--muted-text); font-weight: 700; font-size: 15px; margin-top: var(--space-3); }
.post-head h1 { font-size: 42px; line-height: 50px; color: var(--opal-purple); max-width: 820px; margin-top: var(--space-3); }
.post-figure { margin: var(--space-6) 0; }
.post-figure img { width: 100%; border-radius: var(--radius-lg); }
.post-figure figcaption { font-size: 14px; line-height: 20px; font-style: italic; color: var(--muted-text); margin-top: var(--space-2); }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--opal-purple); font-weight: 700; text-decoration: none; font-size: 15px; }
.back:hover { text-decoration: underline; text-decoration-color: var(--gold); }
@media (max-width: 720px) { .post-head h1 { font-size: 30px; line-height: 38px; } }

/* Contact and donate */
.info { background: var(--white); border-radius: var(--radius-lg); padding: var(--space-6); border: 1px solid var(--lavender-line); display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.info h3 { font-size: 22px; line-height: 29px; color: var(--opal-purple); }
.info .addr { font-size: 19px; font-weight: 800; color: var(--ink); word-break: break-word; }
.checklist { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-3); }
.checklist li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.checklist .oh-icon { color: var(--green); font-size: 26px; }
.sec--purple .checklist .oh-icon { color: var(--gold); }

/* Footer extras */
.oh-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
.oh-footer img { width: 150px; }
.oh-footer .tag { color: var(--gold); font-style: italic; font-weight: 700; margin-top: var(--space-4); }
@media (max-width: 860px) { .oh-footer__grid { grid-template-columns: 1fr 1fr; } .oh-footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .oh-btn { white-space: normal; text-align: center; } }
@media (max-width: 480px) {
  .site-head__in { gap: 12px; }
  .site-head__logo img { width: 116px; min-width: 116px; }
  .menu-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .menu-btn__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-head__right { gap: 4px; }
}
@media (max-width: 360px) {
  .oh-wrap { padding: 0 12px; }
  .site-head__in { gap: 8px; }
  .site-head__logo img { width: 96px; min-width: 96px; }
  .site-head__right .oh-btn--sm { padding: 8px 14px; font-size: 15px !important; }
  .social { width: 40px; height: 40px; }
  .menu-btn { width: 40px; height: 40px; }
  .oh-btn { overflow-wrap: anywhere; }
}
