/*
Theme Name: Hlub Hmong Center
Theme URI: https://hlubhmongcenter.org
Description: Custom theme for Hlub Hmong Center, Merced CA. Content is hardcoded into page templates — assign slugs and the pages build themselves.
Version: 1.0
License: GNU GPL v2 or later
Text Domain: hlub-hmong
*/

:root {
  --bg: #f7f2e9;
  --fg: #232947;
  --card: #fbf8f0;
  --muted: #efe7d6;
  --muted-fg: #857263;
  --border: #e2d9c5;
  --primary: #1d5dab;
  --ink: #2e3d84;
  --ink-fg: #f7f3ea;
  --jade: #2e9e7c;
  --gold: #e0ac36;
  --royal: #4f63c8;
  --pink: #d94f52;
  --radius: 6px;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { margin: 0 !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; margin: 0; line-height: 1.1; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.section { padding-top: 72px; padding-bottom: 72px; }
.section-tint { background: rgba(239, 231, 214, 0.6); border-top: 1px solid var(--border); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark img { width: 44px; height: 44px; object-fit: contain; }
.wordmark .name { font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 1.1; display: block; }
.wordmark .sub { font-size: 10px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted-fg); display: block; }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--muted-fg); text-decoration: none; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 3px; padding: 12px 22px; font-size: 14px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--font-sans); transition: transform .15s ease, opacity .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fdfbf5; }
.btn-gold { background: var(--gold); color: var(--fg); }
.btn-outline { border-color: var(--border); background: transparent; color: inherit; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-light { border-color: rgba(247,243,234,.3); color: var(--ink-fg); }
.btn-outline-light:hover { background: rgba(247,243,234,.1); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 3px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; }

@media (max-width: 960px) {
  .main-nav { display: none; width: 100%; flex-direction: column; gap: 4px; padding: 8px 0 16px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 8px; font-size: 16px; }
  .menu-toggle { display: block; }
  .site-header .bar { flex-wrap: wrap; }
}

/* ---------- Hero (dark) ---------- */
.hero { background: var(--ink); color: var(--ink-fg); position: relative; overflow: hidden; }
.hero .frame { border: 1px solid rgba(224,172,54,.35); border-radius: 3px; padding: 32px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 14px; height: 14px; background: var(--gold); transform: rotate(45deg); display: inline-block; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); margin-top: 22px; max-width: 760px; }
.hero .intro { margin-top: 22px; max-width: 640px; font-size: 17px; line-height: 1.7; color: rgba(247,243,234,.8); }
.stitch { height: 6px; background-image: repeating-linear-gradient(90deg, var(--gold) 0 12px, transparent 12px 20px); opacity: .9; }
.stitch.primary { background-image: repeating-linear-gradient(90deg, var(--primary) 0 12px, transparent 12px 20px); }

/* ---------- Labels / cards ---------- */
.label { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted-fg); }
.label::before { content: ""; width: 12px; height: 12px; background: var(--primary); transform: rotate(45deg); display: inline-block; }
.h2 { font-size: clamp(28px, 4vw, 44px); margin-top: 18px; max-width: 640px; }
.grid { display: grid; gap: 16px; margin-top: 40px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 3px; padding: 26px; }
.card h3 { font-size: 20px; margin-top: 14px; }
.card p { margin-top: 12px; font-size: 14px; color: var(--muted-fg); line-height: 1.7; }
.card .num { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: rgba(35,41,71,.12); }
.card .bar-top { height: 6px; margin: -26px -26px 18px; border-radius: 3px 3px 0 0; }
.bar-primary { background: var(--primary); } .bar-jade { background: var(--jade); }
.bar-gold { background: var(--gold); } .bar-royal { background: var(--royal); }
.bar-pink { background: var(--pink); }
.dot { width: 10px; height: 10px; transform: rotate(45deg); display: inline-block; flex-shrink: 0; margin-top: 7px; }

.lead { font-size: 18px; line-height: 1.8; color: var(--fg); }
.body-text { font-size: 17px; line-height: 1.8; color: var(--muted-fg); }
.body-text p + p { margin-top: 18px; }

.photo-frame { border: 4px solid rgba(224,172,54,.7); border-radius: 3px; overflow: hidden; }
.photo-frame.jade { border-color: rgba(46,158,124,.6); }
.photo-frame.primary { border-color: rgba(29,93,171,.5); }
.photo-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.photo-band { position: relative; }
.photo-band img { width: 100%; height: 55vh; object-fit: cover; }
.photo-band .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(46,61,132,.9), rgba(46,61,132,.25), transparent); }
.photo-band .caption { position: absolute; bottom: 40px; left: 0; right: 0; }
.photo-band .caption .inner { display: inline-block; background: var(--ink); color: var(--ink-fg); border: 1px solid rgba(224,172,54,.35); padding: 24px 28px; border-radius: 3px; font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); }

/* tiles */
.tile { border-radius: 3px; padding: 26px; text-decoration: none; display: block; transition: transform .15s ease; }
.tile:hover { transform: translateY(-2px); }
.tile h3 { font-size: 24px; margin-top: 16px; }
.tile p { margin-top: 10px; font-size: 14px; opacity: .85; }
.tile-primary { background: var(--primary); color: #fdfbf5; }
.tile-jade { background: var(--jade); color: #fdfbf5; }
.tile-gold { background: var(--gold); color: var(--fg); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid rgba(247,243,234,.15); padding-top: 26px; margin-top: 44px; max-width: 480px; }
.stats .k { font-family: var(--font-display); font-size: 30px; color: var(--gold); }
.stats .v { font-size: 12px; color: rgba(247,243,234,.7); margin-top: 4px; }

/* quotes */
.quote .mark { color: var(--gold); font-size: 30px; font-family: var(--font-display); }
.quote blockquote { margin: 14px 0 0; font-size: 17px; line-height: 1.75; }
.quote figcaption, .quote footer { margin-top: 18px; font-size: 14px; }
.quote .who { font-weight: 700; }
.quote .role { color: var(--muted-fg); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* video embeds */
.video-card { background: var(--card); border: 1px solid var(--border); border-radius: 3px; padding: 16px; }
.video-embed { position: relative; aspect-ratio: 16/9; background: var(--ink); border-radius: 3px; overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card figcaption { margin-top: 14px; font-family: var(--font-display); font-size: 19px; }

/* forms */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 3px; padding: 28px; }
.field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-fg); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--border); background: var(--bg); border-radius: 3px;
  padding: 12px 14px; font-size: 15px; font-family: var(--font-sans); color: var(--fg);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.form-grid { display: grid; gap: 18px; margin-top: 24px; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid .two { grid-template-columns: 1fr; } }
.form-note { font-size: 12px; color: var(--muted-fg); margin-top: 12px; }
.thanks { border: 1px solid rgba(46,158,124,.4); background: rgba(46,158,124,.1); border-radius: 3px; padding: 32px; text-align: center; margin-top: 24px; }

/* donate */
.freq { display: inline-flex; border: 1px solid var(--border); border-radius: 3px; padding: 4px; gap: 4px; margin-top: 24px; }
.freq button { border: 0; background: transparent; padding: 10px 18px; font-weight: 700; font-size: 14px; border-radius: 2px; cursor: pointer; color: var(--muted-fg); font-family: var(--font-sans); }
.freq button.active { background: var(--primary); color: #fdfbf5; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.amounts button { border: 1px solid var(--border); background: transparent; border-radius: 3px; padding: 16px; font-size: 18px; font-weight: 700; cursor: pointer; font-family: var(--font-sans); color: var(--fg); }
.amounts button.active { border-color: var(--primary); background: rgba(29,93,171,.1); color: var(--primary); }

/* next step */
.next-step { border-top: 1px solid var(--border); background: rgba(239,231,214,.5); }
.next-step .inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-top: 56px; padding-bottom: 56px; }
.next-step h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 14px; }
.next-step p { margin-top: 10px; max-width: 520px; color: var(--muted-fg); }

/* two-col */
.cols { display: grid; gap: 44px; grid-template-columns: 1fr 1fr; align-items: start; }
.cols.wide-left { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 900px) { .cols, .cols.wide-left { grid-template-columns: 1fr; } }

/* events */
.event-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.event-list li { display: flex; gap: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
.event-list .name { font-weight: 600; display: block; }
.event-list .when { font-size: 14px; color: var(--muted-fg); }

/* highlight */
.callout { border-left: 4px solid var(--gold); background: var(--card); border-radius: 3px; padding: 24px; margin-top: 36px; }
.callout .date { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.callout .text { font-family: var(--font-display); font-size: 20px; margin-top: 10px; }

/* dark panel */
.dark-panel { position: relative; background: var(--ink); color: var(--ink-fg); border-radius: 3px; overflow: hidden; }
.dark-panel > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.dark-panel > .inner { position: relative; padding: 36px; }
.dark-panel h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 22px; }
.dark-panel p { margin-top: 14px; color: rgba(247,243,234,.8); max-width: 480px; }
.dark-panel .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* team */
.team-card .role { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--jade); margin-top: 4px; }

/* story cards */
.story-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; text-decoration: none; }
.story-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease; }
.story-card:hover img { transform: scale(1.04); }
.story-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.story-card h2 { font-size: 22px; }
.story-card .author { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--primary); }
.story-card .standfirst { margin-top: 10px; font-size: 14px; color: var(--muted-fg); }
.story-card .read { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--primary); }

/* footer */
.site-footer { background: var(--ink); color: var(--ink-fg); }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: 56px; align-items: flex-start; }
.site-footer p { font-size: 14px; color: rgba(247,243,234,.7); max-width: 320px; margin-top: 18px; }
.site-footer .f-label { font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 12px; }
.site-footer nav a { display: block; font-size: 14px; color: rgba(247,243,234,.75); text-decoration: none; padding: 3px 0; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer .social a { display: inline-flex; width: 40px; height: 40px; border: 1px solid rgba(247,243,234,.2); border-radius: 3px; align-items: center; justify-content: center; margin-right: 8px; text-decoration: none; font-weight: 700; font-size: 13px; }
.site-footer .social a:hover { background: var(--gold); color: var(--fg); }
.site-footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(247,243,234,.15); padding-top: 22px; padding-bottom: 28px; font-size: 12px; color: rgba(247,243,234,.6); }
.site-footer .legal p { margin: 0; max-width: none; }

/* contact list */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; font-size: 16px; }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover { color: var(--primary); }
.contact-list .icon { display: inline-block; width: 10px; height: 10px; background: var(--primary); transform: rotate(45deg); margin-right: 14px; }

/* article (story detail) */
.article { max-width: 720px; margin: 0 auto; }
.article .meta { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--primary); }
.article p.body { font-size: 18px; line-height: 1.85; color: #3d4457; margin-top: 24px; }
.back-link { font-size: 14px; font-weight: 700; color: var(--primary); text-decoration: none; }
