/*
Theme Name: YAW — You Are Of Worth
Theme URI: https://youareofworth.org
Author: YAW (You Are Of Worth) Inc.
Author URI: https://youareofworth.org
Description: Official theme for YAW (You Are Of Worth) Inc., a student-led 501(c)(3) non-profit. Brand system: maroon #8B1E22, royal blue #3834D0, bright cyan #00A3E0 on white/off-white with halftone dot-matrix corner textures, kinetic reveals, editorial marquee, video library, startup fund tracker and bylaws transparency sections.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yaw
Tags: non-profit, education, custom-colors, custom-menu, featured-images
*/

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap');

:root {
  --maroon: #8B1E22;
  --blue: #3834D0;
  --cyan: #00A3E0;
  --ink: #334155;
  --mist: #F8FAFC;
  --white: #FFFFFF;
  --night: #0D0F1E;
  --radius: 12px;
  --shadow-soft: 0 8px 30px rgb(0 0 0 / 0.04);
  --shadow-blue: 0 10px 25px rgb(56 52 208 / 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4, .font-display {
  font-family: 'Clash Display', sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
::selection { background: var(--blue); color: #fff; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; overflow: hidden; }
.section-mist { background: var(--mist); }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--cyan); margin: 0 0 12px;
}
.lede { color: #64748B; font-size: 17px; line-height: 1.7; }

/* Halftone dot-matrix corners (maroon top-left, blue bottom-right) */
.halftone { position: relative; }
.halftone::before,
.halftone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-size: 18px 18px; z-index: 0;
}
.halftone::before {
  background-image: radial-gradient(circle, rgb(139 30 34 / 0.22) 1.4px, transparent 1.5px);
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 0% 0%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 50% at 0% 0%, #000 15%, transparent 70%);
}
.halftone::after {
  background-image: radial-gradient(circle, rgb(56 52 208 / 0.20) 1.4px, transparent 1.5px);
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 100% 100%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 50% at 100% 100%, #000 15%, transparent 70%);
}
.halftone > * { position: relative; z-index: 1; }

/* Sticky frosted-glass navbar */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgb(255 255 255 / 0.8);
  border-bottom: 1px solid #F1F5F9;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.site-logo img { height: 48px; width: auto; display: block; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--ink);
  transition: color .2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--cyan); }
.header-ctas { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; font-weight: 600; font-size: 14px;
  padding: 14px 28px; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-blue { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-blue:hover { transform: scale(1.05); color: #fff; }
.btn-outline-maroon { background: #fff; border-color: var(--maroon); color: var(--maroon); }
.btn-outline-maroon:hover { background: var(--maroon); color: #fff; }
.btn-outline-cyan { background: transparent; border-color: var(--cyan); color: var(--cyan); }
.btn-outline-cyan:hover { background: var(--cyan); color: #fff; }
.btn-outline-blue { background: #fff; border-color: var(--blue); color: var(--blue); box-shadow: none; }
.btn-outline-blue:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { transform: scale(1.05); }
.btn-sm { padding: 9px 20px; }

/* Hero */
.hero { min-height: 88vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; width: 100%; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.08; font-weight: 600; }
.hero h1 .accent { color: var(--maroon); display: block; margin-top: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgb(0 163 224 / 0.3); background: rgb(0 163 224 / 0.05);
  color: var(--cyan); border-radius: 999px; padding: 6px 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-visual { position: relative; }
.hero-visual img.hero-photo { border-radius: 16px; box-shadow: 0 25px 60px rgb(56 52 208 / 0.18); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero-visual::after {
  content: ""; position: absolute; inset: auto auto -20px -20px; width: 100%; height: 100%;
  border: 2px solid rgb(0 163 224 / 0.3); border-radius: 16px; z-index: -1;
}
.hero-chips { position: absolute; top: 24px; right: -16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: rgb(255 255 255 / 0.92); backdrop-filter: blur(8px);
  border: 1px solid #F1F5F9; border-radius: 12px; padding: 10px 14px;
  font-size: 12px; font-weight: 600; box-shadow: 0 10px 30px rgb(0 0 0 / 0.08);
}

/* Kinetic masked line reveal */
.mask-line { display: block; overflow: hidden; }
.mask-line > span { display: block; transform: translateY(110%); animation: lineUp .9s cubic-bezier(.33,1,.68,1) forwards; }
.mask-line:nth-child(2) > span { animation-delay: .12s; }
.mask-line:nth-child(3) > span { animation-delay: .24s; }
.mask-line:nth-child(4) > span { animation-delay: .4s; }
@keyframes lineUp { to { transform: translateY(0); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s cubic-bezier(.33,1,.68,1), transform .7s cubic-bezier(.33,1,.68,1); }
.reveal.in-view { opacity: 1; transform: none; }

/* Editorial marquee */
.marquee-band { border-top: 1px solid #F1F5F9; border-bottom: 1px solid #F1F5F9; background: var(--mist); padding: 24px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 80px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: 'Clash Display', sans-serif; font-size: 26px; font-weight: 500; text-transform: uppercase; color: rgb(51 65 85 / 0.8); white-space: nowrap; display: flex; align-items: center; gap: 80px; }
.marquee-track span::after { content: "↗"; color: var(--blue); font-size: 24px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stat + card grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.card {
  background: #fff; border-radius: var(--radius); border-top: 4px solid var(--blue);
  padding: 32px; box-shadow: var(--shadow-soft);
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-8px); }
.card.mist { background: var(--mist); box-shadow: none; }
.card.accent-cyan { border-top-color: var(--cyan); }
.card.accent-blue { border-top-color: var(--blue); }
.card.accent-maroon { border-top-color: var(--maroon); }
.stat-num { font-family: 'Clash Display', sans-serif; font-size: 42px; font-weight: 600; color: var(--maroon); }
.chapter-num { font-family: 'Clash Display', sans-serif; font-size: 52px; font-weight: 600; color: rgb(0 163 224 / 0.25); }
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; background: rgb(0 163 224 / 0.1);
  color: var(--cyan); font-size: 22px;
}

/* Video library */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.filter-btn {
  border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 600;
  border: 1px solid #E2E8F0; background: #fff; color: var(--ink); cursor: pointer;
  transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 16px rgb(56 52 208 / 0.35); }
.video-card { padding: 0; overflow: hidden; border-top: 0; border: 1px solid #F1F5F9; }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
}
.play-overlay span {
  width: 56px; height: 56px; border-radius: 50%; background: rgb(255 255 255 / 0.9);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
  font-size: 20px; box-shadow: 0 8px 20px rgb(0 0 0 / 0.15); transition: transform .3s ease;
}
.video-card:hover .play-overlay span { transform: scale(1.1); }
.tag-cyan { position: absolute; left: 12px; top: 12px; background: var(--cyan); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 12px; }
.tag-duration { position: absolute; right: 12px; bottom: 12px; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 12px; border-radius: 999px; padding: 4px 10px; }
.video-body { padding: 20px; }
.video-body h3 { font-size: 18px; }
.watch-link { background: none; border: 0; padding: 0; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--blue); cursor: pointer; }
.watch-link:hover { color: var(--maroon); }

/* Challenge generator */
.challenge-box {
  border: 1px solid #F1F5F9; border-radius: 16px; background: #fff;
  box-shadow: var(--shadow-soft); padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}

/* Team */
.team-card { padding: 0; overflow: hidden; }
.team-card img { aspect-ratio: 4/5; object-fit: cover; object-position: top; width: 100%; }
.team-role { display: inline-block; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 14px; }
.team-body { padding: 28px; }

/* Fund */
.progress-shell { height: 16px; border-radius: 999px; background: #F1F5F9; overflow: hidden; margin-top: 16px; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--blue)); width: 0; transition: width 1.4s cubic-bezier(.33,1,.68,1); }
.fund-raised { font-family: 'Clash Display', sans-serif; font-size: 48px; font-weight: 600; }
.give-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.give-btn {
  border: 2px solid #E2E8F0; background: #fff; border-radius: 12px; padding: 16px;
  font-family: 'Clash Display', sans-serif; font-size: 18px; font-weight: 600; color: var(--ink); cursor: pointer;
  transition: all .2s ease;
}
.give-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.panel-blue { background: var(--blue); color: #fff; border-radius: 16px; padding: 40px; }
.panel-blue h3, .panel-blue h4 { color: #fff; }

/* Bylaws accordion (native details/summary) */
details.bylaw { border: 1px solid #F1F5F9; background: var(--mist); border-radius: 12px; padding: 0 24px; margin-bottom: 12px; }
details.bylaw summary {
  cursor: pointer; list-style: none; padding: 20px 0;
  font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
details.bylaw summary::-webkit-details-marker { display: none; }
details.bylaw summary::after { content: "⌄"; font-size: 20px; color: var(--blue); transition: transform .2s ease; }
details.bylaw[open] summary::after { transform: rotate(180deg); }
details.bylaw .bylaw-body { padding-bottom: 24px; }
details.bylaw h4 { color: var(--blue); font-size: 14px; margin: 16px 0 6px; }
details.bylaw p { font-size: 14px; line-height: 1.7; color: #475569; margin: 0 0 8px; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgb(13 15 30 / 0.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: #fff; border-radius: 16px; max-width: 560px; width: 100%;
  padding: 32px; max-height: 90vh; overflow: auto; position: relative;
}
.modal-card.wide { max-width: 720px; }
.modal-close { position: absolute; top: 16px; right: 16px; border: 0; background: #F1F5F9; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; font-size: 16px; color: var(--ink); }
.modal-card video { width: 100%; aspect-ratio: 16/9; border-radius: 12px; background: #000; }
.modal-card input[type="text"], .modal-card input[type="email"], .modal-card input[type="number"] {
  width: 100%; border: 1px solid #E2E8F0; border-radius: 10px; padding: 11px 14px; font-size: 14px;
  font-family: 'DM Sans', sans-serif; outline: none; transition: border-color .2s ease;
}
.modal-card input:focus { border-color: var(--cyan); }

/* Impact wall */
.wall-track { display: flex; gap: 24px; width: max-content; animation: marquee 32s linear infinite; }
.wall-chip {
  display: flex; align-items: center; gap: 12px; background: var(--mist);
  border: 1px solid #F1F5F9; border-radius: 999px; padding: 10px 22px 10px 12px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.04); white-space: nowrap;
}
.wall-chip .heart { width: 34px; height: 34px; border-radius: 50%; background: rgb(139 30 34 / 0.1); color: var(--maroon); display: flex; align-items: center; justify-content: center; }
.wall-chip .amt { background: var(--blue); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 600; padding: 3px 12px; }

/* Newsletter + footer */
.newsletter-form { display: flex; gap: 12px; max-width: 460px; margin: 32px auto 0; }
.newsletter-form input {
  flex: 1; height: 48px; border-radius: 999px; border: 1px solid #E2E8F0;
  padding: 0 20px; font-size: 14px; outline: none; font-family: 'DM Sans', sans-serif;
}
.newsletter-form input:focus { border-color: var(--cyan); }
.site-footer { background: var(--night); color: #CBD5E1; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; padding: 64px 0; }
.footer-grid h3 { color: #fff; font-size: 13px; letter-spacing: .25em; text-transform: uppercase; margin-bottom: 20px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a { color: #94A3B8; font-size: 14px; transition: color .2s ease; }
.footer-grid a:hover { color: var(--cyan); }
.footer-tagline { color: var(--cyan); font-family: 'Clash Display', sans-serif; font-weight: 600; letter-spacing: .35em; text-transform: uppercase; font-size: 13px; margin-top: 16px; }
.footer-legal { border-top: 1px solid rgb(255 255 255 / 0.1); text-align: center; padding: 24px 0; font-size: 12px; color: #64748B; }
.footer-logo-wrap { display: inline-block; background: #fff; border-radius: 12px; padding: 12px; }
.footer-logo-wrap img { height: 64px; width: auto; display: block; }

.toast {
  position: fixed; top: 20px; left: 50%; transform: translate(-50%, -80px); z-index: 200;
  background: var(--blue); color: #fff; border-radius: 12px; padding: 14px 24px;
  font-size: 14px; font-weight: 500; box-shadow: 0 12px 30px rgb(0 0 0 / 0.2);
  transition: transform .35s cubic-bezier(.33,1,.68,1);
}
.toast.show { transform: translate(-50%, 0); }

/* CTA band */
.cta-band { background: var(--blue); border-radius: 16px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / 0.7); }

/* Page hero (interior pages) */
.page-hero { padding: 96px 0; }
.page-hero h1 { font-size: clamp(36px, 4.5vw, 58px); line-height: 1.08; }
.page-hero h1 .accent { display: block; }
.accent-maroon { color: var(--maroon); }
.accent-blue { color: var(--blue); }
.accent-cyan { color: var(--cyan); }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-chips { right: 0; }
}
@media (max-width: 768px) {
  .main-nav, .header-ctas { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #F1F5F9; padding: 16px 24px; gap: 16px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .newsletter-form { flex-direction: column; }
  .give-grid { grid-template-columns: repeat(2, 1fr); }
}
