/* McKenzie Mental Health — theme styles */

:root {
	--mk-forest: #0F3A2B;
	--mk-evergreen: #1A6B50;
	--mk-evergreen-dark: #124D3A;
	--mk-mint: #9FD8BE;
	--mk-ink: #14191A;
	--mk-slate: #45524D;
	--mk-muted: #55625D;
	--mk-mist: #E8F0EB;
	--mk-paper: #F6F8F6;
	--mk-line: #D5E2DA;
	--mk-line-strong: #C6D8CD;
	--mk-radius: 20px;
}

body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* ---------- Sections ---------- */
.mk-section { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); margin-block-start: 0 !important; }
.mk-section + .mk-section { margin-top: 0; }
.mk-bg-white { background: #fff; }
.mk-bg-paper { background: var(--mk-paper); }
.mk-bg-mist { background: var(--mk-mist); }
.mk-bg-hero { background: linear-gradient(180deg, #fff 0%, var(--mk-mist) 100%); }
.mk-bg-forest { background: var(--mk-forest); color: #fff; }
.mk-bg-forest h1, .mk-bg-forest h2, .mk-bg-forest h3 { color: #fff; }
.mk-bg-forest p { color: #D3E4DA; }
.mk-bg-forest a:not(.wp-element-button) { color: #fff; }
.wp-site-blocks > main, main.wp-block-group { margin-top: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

.mk-eyebrow { font-size: 0.9rem !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mk-evergreen); margin-bottom: 0; }
.mk-bg-forest .mk-eyebrow { color: var(--mk-mint); }
.mk-lead { font-size: 1.25rem; color: var(--mk-slate); }
.wp-block-column .mk-lead { max-width: 36em; }
.mk-muted { color: var(--mk-muted); }
.mk-intro { max-width: var(--wp--style--global--wide-size, 1200px) !important; }
.mk-intro > * { max-width: 720px; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: #fff; color: var(--mk-ink); border: 1.5px solid #B7CDC0; padding: 12.5px 26.5px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--mk-evergreen); color: var(--mk-evergreen); background: #fff; }
.mk-bg-forest .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: #fff; color: var(--mk-forest); }
.mk-bg-forest .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }

/* ---------- Banner & header ---------- */
.mk-banner { background: var(--mk-forest); color: #fff; padding-top: 10px; padding-bottom: 10px; text-align: center; }
.mk-banner p { margin: 0; font-size: 0.95rem; color: #fff; }
.mk-banner a { color: #fff; text-decoration: underline; }
.mk-header { background: #fff; border-bottom: 1px solid var(--mk-line); padding-top: 16px; padding-bottom: 16px; }
.mk-header-inner { gap: 16px 28px; }
.mk-brand { gap: 12px; flex-wrap: nowrap; }
.mk-brand .wp-block-image { margin: 0; }
.mk-brand .wp-block-image img { height: 50px; width: auto; display: block; }
.mk-wordmark { gap: 0 !important; line-height: 1; }
.mk-wordmark p { margin: 0 !important; }
.mk-wordmark a { text-decoration: none; color: var(--mk-ink); }
.mk-wordmark-name { font-family: Cinzel, Georgia, serif; font-size: 30px !important; font-weight: 500; line-height: 1 !important; }
.mk-wordmark-tag { font-family: Cinzel, Georgia, serif; font-size: 11px !important; letter-spacing: 0.44em; line-height: 1 !important; margin-top: 7px !important; }
.mk-nav { font-size: 1.05rem; font-weight: 500; gap: 26px; }
.mk-nav a { color: var(--mk-ink); text-decoration: none; }
.mk-nav a:hover, .mk-nav .current-menu-item > a { color: var(--mk-evergreen); }
.mk-header .wp-block-buttons { gap: 10px; }
.mk-header .wp-block-button__link { font-size: 0.95rem; padding: 11px 20px; }
.mk-header .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--mk-evergreen); border-color: var(--mk-evergreen); padding: 9.5px 18.5px; }

/* ---------- Hero ---------- */
.mk-hero h1 { margin-top: 0.4rem; }
.mk-hero-photo img { border-radius: 28px; box-shadow: 0 18px 40px rgba(15,58,43,0.18); width: 100%; aspect-ratio: 11 / 12; object-fit: cover; object-position: center 35%; }
.mk-checks { color: var(--mk-muted); font-size: 1rem; gap: 8px 22px; }
.mk-checks p { margin: 0; }

/* ---------- Cards ---------- */
.mk-card { background: #F1F6F3; border: 1px solid var(--mk-line); border-radius: var(--mk-radius); padding: 28px; position: relative; }
.mk-card::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--mk-evergreen); margin-bottom: 18px; }
.mk-bg-mist .mk-card { background: #fff; border-color: var(--mk-line-strong); }
.mk-card h3 { margin: 0 0 8px; }
.mk-card p { margin: 0; color: var(--mk-slate); font-size: 1.05rem; }
.mk-card p + p { margin-top: 10px; }

/* Chips */
.mk-chips { gap: 10px; }
.mk-chips p { margin: 0; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--mk-line-strong); font-size: 1rem; }

/* Approaches list */
.mk-two-col-list { columns: 2; column-gap: 24px; padding-left: 1.1em; color: var(--mk-ink); }
.mk-two-col-list li { break-inside: avoid; margin-bottom: 6px; }

/* ---------- Team ---------- */
.mk-team-card { gap: 10px !important; }
.mk-team-card .wp-block-image { margin: 0; }
.mk-team-card .wp-block-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 18px; background: var(--mk-mist); display: block; }
.mk-team-card .mk-name { font-weight: 700; font-size: 1.15rem; margin: 6px 0 0; }
.mk-team-card .mk-role { font-family: Cinzel, Georgia, serif; font-size: 0.85rem; letter-spacing: 0.12em; color: var(--mk-evergreen); margin: 0; }

/* ---------- Steps ---------- */
.mk-step { padding: 28px; border-radius: var(--mk-radius); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); }
.mk-step .mk-step-num { font-family: Cinzel, Georgia, serif; font-size: 2.4rem; font-weight: 600; color: var(--mk-mint); margin: 0; line-height: 1; }
.mk-step h3 { margin: 12px 0 6px; }
.mk-step p { margin: 0; font-size: 1.05rem; }
.mk-bg-white .mk-step, .mk-bg-paper .mk-step { background: var(--mk-paper); border: 0; border-top: 3px solid var(--mk-evergreen); border-radius: 0 0 16px 16px; }
.mk-bg-white .mk-step .mk-step-num, .mk-bg-paper .mk-step .mk-step-num { color: var(--mk-evergreen); }
.mk-bg-white .mk-step p, .mk-bg-paper .mk-step p { color: var(--mk-slate); }

/* ---------- Insurance ---------- */
.mk-plans { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mk-plans li { padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--mk-line-strong); font-weight: 700; }
.mk-bg-forest .mk-plans li { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: #fff; }
@media (max-width: 520px) { .mk-plans { grid-template-columns: 1fr; } }

/* ---------- Photos ---------- */
.mk-photo img { border-radius: 24px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.mk-photo-small img { border-radius: 16px; }
.mk-photo, .mk-photo-small { margin: 0; }

/* ---------- Embed + notices ---------- */
.mk-embed-slot { min-height: 420px; border-radius: 24px; background: #fff; border: 2px dashed #8FB09E; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--mk-muted); }
.mk-embed-slot strong { color: var(--mk-ink); font-size: 1.15rem; }
.mk-map-slot { min-height: 160px; border-radius: 16px; background: var(--mk-mist); border: 2px dashed #A9C6B5; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; color: var(--mk-muted); font-size: 0.95rem; }
.mk-notice { padding: 18px 22px; border-radius: 14px; background: #F0F5F2; border: 1px solid var(--mk-line-strong); font-size: 1rem; color: var(--mk-slate); }
.mk-notice strong { color: var(--mk-ink); }
.mk-tip { padding: 24px 28px; border-radius: 18px; background: var(--mk-mist); border: 1px solid var(--mk-line-strong); }
.mk-tip p { margin: 0; }

/* ---------- FAQ ---------- */
.mk-faq .wp-block-details { padding: 20px 24px; border-radius: 14px; background: var(--mk-paper); border: 1px solid var(--mk-line); margin: 0 0 12px; }
.mk-faq summary { font-weight: 700; cursor: pointer; }
.mk-faq .wp-block-details p { margin: 12px 0 0; color: var(--mk-slate); }

/* ---------- Job listing ---------- */
.mk-job { background: #fff; border: 1px solid var(--mk-line-strong); border-radius: 24px; padding: clamp(24px, 4vw, 36px); }
.mk-tags { gap: 8px; }
.mk-tags p { margin: 0; padding: 6px 14px; border-radius: 999px; background: #DDEFE5; font-size: 0.9rem; font-weight: 700; color: var(--mk-evergreen-dark); }

/* ---------- Blog ---------- */
.mk-post-grid .wp-block-post { background: #fff; border: 1px solid var(--mk-line); border-radius: var(--mk-radius); overflow: hidden; display: flex; flex-direction: column; }
.mk-post-grid .wp-block-post-featured-image { margin: 0; }
.mk-post-grid .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.mk-post-card-body { padding: 22px 24px 26px; }
.mk-post-card-body .wp-block-post-title { font-family: Lato, system-ui, sans-serif; font-weight: 700; font-size: 1.3rem; line-height: 1.3; margin: 6px 0 10px; }
.mk-post-card-body .wp-block-post-title a { color: var(--mk-ink); text-decoration: none; }
.mk-post-card-body .wp-block-post-title a:hover { color: var(--mk-evergreen); }
.mk-post-card-body .wp-block-post-terms { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.mk-post-card-body .wp-block-post-terms a { text-decoration: none; }
.mk-post-meta { font-size: 0.95rem; color: var(--mk-muted); gap: 6px; }
.mk-post-meta > * { margin: 0 !important; }
.mk-post-grid .wp-block-post-excerpt { color: var(--mk-slate); font-size: 1rem; }
.wp-block-query-pagination { margin-top: 32px; font-weight: 700; }

.mk-article { font-size: 1.15rem; line-height: 1.75; }
.mk-article h2 { font-size: 1.75rem; margin-top: 2rem; }
.mk-article .wp-block-post-featured-image img { border-radius: 24px; }
.mk-byline { gap: 14px; align-items: center; }
.mk-byline .wp-block-avatar img { border-radius: 50%; }
.mk-byline p, .mk-byline .wp-block-post-author-name, .mk-byline .wp-block-post-date { margin: 0; }
.mk-author-box { padding: 24px; border-radius: var(--mk-radius); background: var(--mk-paper); border: 1px solid var(--mk-line); }

/* ---------- Footer ---------- */
.mk-footer { background: var(--mk-ink); color: #C8D6CF; padding-top: 56px; padding-bottom: 32px; font-size: 1rem; }
.mk-footer a { color: #C8D6CF; text-decoration: none; }
.mk-footer a:hover { color: #fff; text-decoration: underline; }
.mk-footer h3, .mk-footer .mk-footer-head { color: #fff; font-family: Lato, system-ui, sans-serif; font-weight: 700; font-size: 1rem; margin: 0 0 8px; }
.mk-footer p { margin: 0 0 6px; }
.mk-footer .mk-wordmark a, .mk-footer .mk-wordmark p { color: #fff; }
.mk-footer .mk-brand .wp-block-image img { height: 44px; }
.mk-footer .mk-wordmark-name { font-size: 26px !important; }
.mk-footer .mk-wordmark-tag { font-size: 10px !important; margin-top: 6px !important; }
.mk-footer-bottom { border-top: 1px solid #2B3D35; margin-top: 32px; padding-top: 20px; font-size: 0.9rem; gap: 8px 24px; }
.mk-footer-bottom p { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.mk-two-col-list { columns: 1; }
	.mk-header .wp-block-buttons { width: 100%; }
	.mk-hero-photo img { aspect-ratio: 4 / 3; }
}

/* Lists styled as tiles on light sections */
.mk-bg-white .mk-plans li { background: #F1F6F3; border-color: var(--mk-line); font-weight: 400; }
