/*
Theme Name: Thrively Light
Description: Lightweight theme for thrively.ca, a professional Q&A community for Canadian mental health practitioners. Works with AnsPress. No page builder, no web fonts.
Version: 1.0.0
Text Domain: thrively-light
*/
:root {
	--ink: #17262b; --muted: #55666b; --line: #dbe4e3; --brand: #0e5c63; --brand-2: #13757e; --accent: #c9762c;
	--tint: #f1f6f5; --sand: #fbf6ef; --r: 14px;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--brand-2); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }
.btn { display: inline-flex; align-items: center; gap: .4em; background: var(--brand); color: #fff !important; border: 2px solid var(--brand); border-radius: 999px; padding: .62em 1.25em; font: 650 .98rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-line { background: transparent; color: var(--brand) !important; }
.btn-line:hover { background: var(--brand); color: #fff !important; }
.btn-warm { background: var(--accent); border-color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { font: 800 1.35rem var(--sans); color: var(--brand); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; white-space: nowrap; padding: .5em .75em; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .97rem; }
.nav a:hover, .nav .current-menu-item > a { background: var(--tint); color: var(--brand); }
.nav .btn { margin-left: 6px; padding: .5em 1em; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .45em .7em; font-size: 1.1rem; }

/* hero and sections */
.hero { background: radial-gradient(circle at 85% 10%, rgba(201,118,44,.16), transparent 40%), radial-gradient(circle at 5% 90%, rgba(14,92,99,.14), transparent 45%), var(--sand); padding: 72px 0 60px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: center; }
.pill { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: .85rem; font-weight: 650; color: var(--brand); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 10px; }
.stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; }
.stats b { display: block; font-size: 1.7rem; color: var(--brand); line-height: 1.1; }
.stats span { font-size: .88rem; color: var(--muted); }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 50px rgba(23,38,43,.10); padding: 22px; }
.hero-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.qmini { display: block; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.qmini:first-of-type { border-top: 0; }
.qmini b { display: block; font-weight: 650; line-height: 1.35; }
.qmini small { color: var(--brand); font-weight: 650; }
.qmini:hover b { color: var(--brand); }
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head p { margin: 0; color: var(--muted); }
.eyebrow { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 750; color: var(--accent); margin-bottom: .4em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { border-color: var(--brand-2); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23,38,43,.07); color: var(--ink); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card .meta { margin-top: 10px; font-size: .85rem; font-weight: 650; color: var(--brand); }
.cat-card { display: flex; justify-content: space-between; align-items: center; }
.cat-card b { font-size: 1.02rem; }
.cat-card span { background: var(--tint); border-radius: 999px; padding: .15em .7em; font-size: .85rem; color: var(--brand); font-weight: 700; }
.steps { counter-reset: s; }
.steps .card::before { counter-increment: s; content: counter(s); display: grid; place-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px; }
.band { background: var(--brand); color: #e6f1f0; border-radius: 22px; padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.band h2 { color: #fff; }
.band ul { margin: 0; padding-left: 1.2em; }
.note { background: var(--sand); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; font-size: .95rem; }

/* content */
.pagehead { background: var(--tint); padding: 44px 0 34px; border-bottom: 1px solid var(--line); }
.pagehead h1 { margin: 0; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.crumb { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.content { padding: 36px 0 64px; }
.entry > * + * { margin-top: 1em; }
.entry h2 { margin-top: 1.6em; }
.post-list .card { margin-bottom: 14px; }
.pager { display: flex; gap: 8px; margin-top: 18px; }
.pager a, .pager span { padding: .4em .8em; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }

/* AnsPress */
#anspress { font-size: 1rem; }
#anspress .ap-questions-item, #anspress .ap-list-head { border-color: var(--line) !important; }
#anspress .ap-btn, #anspress .ap-btn-ask, #anspress button.ap-btn { border-radius: 999px !important; }
#anspress .ap-btn-ask, #anspress .ap-btn-submit { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
#anspress .ap-questions-title, #anspress .ap-questions-title a { color: var(--ink) !important; font-weight: 650; }
#anspress .ap-questions-title a:hover { color: var(--brand) !important; }
#anspress .ap-q-content, #anspress .ap-answer-content { font-size: 1.02rem; line-height: 1.7; }
#anspress input[type=text], #anspress textarea, #anspress select { border-radius: 8px; border: 1px solid #b7c4c2; }

/* footer */
.site-foot { background: #0d2a2e; color: #c9d8d6; padding: 48px 0 26px; font-size: .95rem; }
.site-foot a { color: #e8f2f1; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot .logo { color: #fff; }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: .85rem; }

@media (max-width: 900px) {
	.hero .wrap, .band, .foot-grid { grid-template-columns: 1fr; }
	.menu-toggle { display: block; }
	.nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; }
	.nav.open { display: flex; }
	.nav ul { flex-direction: column; }
	.nav .btn { margin: 8px 0 0; justify-content: center; }
	.band { padding: 28px; }
}
