/*
Theme Name: YMHM
Theme URI: https://ymhm.online/
Author: YMHM
Description: A lightweight, accessible WordPress theme for Your Mental Health Matters.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: ymhm
*/

:root {
  --bg: #0a0a0c;
  --surface: #111114;
  --surface-2: #18181d;
  --text: #f5f5f7;
  --muted: #a6a6b0;
  --line: #292930;
  --accent: #b78cff;
  --accent-2: #8d5cf6;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,12,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-inner {
  min-height: 76px; display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand { display:flex; align-items:center; gap:11px; text-decoration:none; font-weight:800; letter-spacing:-.03em; }
.brand-mark {
  width:34px; height:34px; border-radius:10px;
  display:grid; place-items:center; background:var(--text); color:var(--bg); font-weight:900;
}
.brand-name { font-size:1.08rem; }
.nav { display:flex; align-items:center; gap:24px; }
.nav a { color:var(--muted); text-decoration:none; font-size:.95rem; font-weight:600; }
.nav a:hover, .nav a:focus { color:var(--text); }
.nav .cta { color:var(--bg); background:var(--text); padding:10px 15px; border-radius:999px; }
.menu-toggle { display:none; background:none; color:var(--text); border:1px solid var(--line); border-radius:10px; padding:9px 11px; }

.hero { padding:110px 0 90px; }
.hero-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:60px; align-items:center; }
.eyebrow { color:var(--accent); font-weight:800; text-transform:uppercase; letter-spacing:.14em; font-size:.78rem; }
h1,h2,h3 { line-height:1.08; letter-spacing:-.045em; margin:0 0 18px; }
h1 { font-size:clamp(3rem,7vw,6.4rem); max-width:850px; }
h2 { font-size:clamp(2rem,4vw,3.5rem); }
h3 { font-size:1.35rem; }
.lead { color:var(--muted); font-size:clamp(1.08rem,2vw,1.3rem); max-width:680px; }
.actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.button {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  text-decoration:none; border-radius:999px; padding:13px 20px;
  font-weight:800; border:1px solid var(--line); background:var(--surface); color:var(--text);
}
.button.primary { background:var(--text); color:var(--bg); border-color:var(--text); }
.button.accent { background:var(--accent); color:#100c17; border-color:var(--accent); }
.button:hover { transform:translateY(-1px); }

.hero-card {
  min-height:390px; padding:28px; border:1px solid var(--line);
  border-radius:28px; background:
  radial-gradient(circle at 80% 20%, rgba(183,140,255,.22), transparent 35%),
  linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow:var(--shadow); display:flex; flex-direction:column; justify-content:flex-end;
}
.hero-card .quote { font-size:1.8rem; line-height:1.2; font-weight:800; letter-spacing:-.035em; }

.section { padding:90px 0; }
.section.alt { background:#0e0e11; border-block:1px solid rgba(255,255,255,.05); }
.section-head { display:flex; justify-content:space-between; gap:30px; align-items:end; margin-bottom:34px; }
.section-head p { color:var(--muted); max-width:560px; margin:0; }

.cards { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.card {
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px; text-decoration:none; transition:.2s ease;
}
.card:hover { transform:translateY(-3px); border-color:#44444d; box-shadow:var(--shadow); }
.card-icon { font-size:1.5rem; margin-bottom:25px; }
.card p { color:var(--muted); margin-bottom:0; }

.notice {
  border:1px solid rgba(183,140,255,.28); background:rgba(183,140,255,.08);
  border-radius:var(--radius); padding:26px; display:flex; gap:20px; align-items:center;
}
.notice strong { display:block; font-size:1.15rem; }
.notice p { margin:4px 0 0; color:var(--muted); }

.content { padding:70px 0; }
.content-inner { width:min(100%, 820px); margin:auto; }
.content h1 { font-size:clamp(2.5rem,5vw,4.5rem); }
.content p, .content li { color:#c8c8d0; }
.content a { color:var(--accent); }
.wp-block-image img { border-radius:var(--radius); }
.wp-block-quote { border-left:3px solid var(--accent); padding-left:24px; margin-left:0; }

.site-footer { border-top:1px solid var(--line); padding:50px 0 30px; }
.footer-grid { display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; }
.footer-title { font-weight:800; margin-bottom:12px; }
.footer-links { display:grid; gap:8px; }
.footer-links a { color:var(--muted); text-decoration:none; }
.footer-links a:hover { color:var(--text); }
.footer-bottom { margin-top:45px; padding-top:20px; border-top:1px solid var(--line); color:var(--muted); font-size:.9rem; }

.screen-reader-text { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }

@media (max-width: 800px) {
  .container { width:min(calc(100% - 28px), var(--max)); }
  .hero { padding:75px 0 60px; }
  .hero-grid, .footer-grid { grid-template-columns:1fr; }
  .cards { grid-template-columns:1fr; }
  .section { padding:65px 0; }
  .section-head { display:block; }
  .section-head p { margin-top:12px; }
  .nav { display:none; position:absolute; left:14px; right:14px; top:68px; padding:15px; background:var(--surface); border:1px solid var(--line); border-radius:16px; flex-direction:column; align-items:stretch; }
  .nav.open { display:flex; }
  .nav .cta { text-align:center; }
  .menu-toggle { display:block; }
}


/* YMHM v2 additions */
.custom-logo { max-height: 42px; width: auto; }
.logo-placeholder { display:flex; align-items:center; gap:11px; }
.page-hero { padding:85px 0 55px; border-bottom:1px solid var(--line); }
.page-hero .lead { max-width:760px; }
.resource-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.resource-list { display:grid; gap:12px; }
.resource-list a { display:flex; justify-content:space-between; gap:20px; padding:18px 20px; background:var(--surface); border:1px solid var(--line); border-radius:14px; text-decoration:none; }
.resource-list a span:last-child { color:var(--accent); }
.pill { display:inline-flex; padding:6px 10px; border-radius:999px; background:var(--surface-2); color:var(--muted); font-size:.82rem; font-weight:700; }
.callout { padding:24px; border-radius:var(--radius); background:var(--surface-2); border:1px solid var(--line); margin:28px 0; }
.callout.warning { border-color:rgba(255,180,80,.35); }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.faq { border-top:1px solid var(--line); }
.faq details { padding:18px 0; border-bottom:1px solid var(--line); }
.faq summary { cursor:pointer; font-weight:800; }
@media (max-width:800px) { .resource-grid,.two-col { grid-template-columns:1fr; } }
