/*
Theme Name: JobsNearMe
Theme URI: https://www.jobsnearme.ca/
Description: Lightweight theme for JobsNearMe.ca. Built to pair with the JobsNearMe Core plugin.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: jnm-theme
*/

:root {
	--navy: #10233F;
	--navy-deep: #0B1930;
	--green: #0A6B49;
	--green-dark: #0A5239;
	--amber: #F5B83D;
	--tint: #F2F5F8;
	--line: #DCE3EA;
	--muted: #44546A;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.6; color: var(--navy); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: Sora, "Segoe UI", system-ui, sans-serif; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--navy); padding: 12px 18px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.site-brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--navy); font-family: Sora, "Segoe UI", system-ui, sans-serif; font-weight: 700; font-size: 20px; }
.site-brand__mark { width: 36px; height: 36px; border-radius: 8px; background: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.site-brand span span { color: var(--green); }
.site-brand img { max-height: 44px; width: auto; display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav a[aria-current] { color: var(--green); }
.site-actions { display: flex; align-items: center; gap: 12px; }
.site-actions a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; text-decoration: none; }
.site-actions .link { color: var(--navy); padding: 0 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--green); color: #fff; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); color: #fff; }

/* Page heads and content */
.page-head { background: var(--navy); color: #fff; padding: 40px 0; }
.page-head h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.page-head p { margin: 10px 0 0; color: #D5DDE8; }
.page-head a { color: #B8C6DA; }
.page-head .crumbs { font-size: 14px; color: #B8C6DA; margin: 0 0 10px; }
.site-main { padding: 40px 0 72px; }
.content { max-width: 1000px; margin: 0 auto; }
.content--narrow { max-width: 760px; }
.entry-content { font-size: 17px; line-height: 1.7; color: #2F3E52; }
.entry-content h2 { margin-top: 1.6em; color: var(--navy); font-size: 26px; }
.entry-content h3 { margin-top: 1.4em; color: var(--navy); }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--tint); }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 20px; background: var(--tint); border-radius: 10px; }
.entry-meta { font-size: 14px; color: #B8C6DA; margin: 12px 0 0; }

/* Blog list */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.post-card__tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #5A3D00; background: #FFF3D6; padding: 4px 10px; border-radius: 6px; }
.post-card h2, .post-card h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.post-card h2 a, .post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--green); text-decoration: underline; }
.post-card p { margin: 0; font-size: 15px; color: var(--muted); }
.post-card__more { margin-top: auto; font-weight: 600; font-size: 15px; }
.pagination .nav-links, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 28px; }
.page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Job call-to-action inside articles */
.job-cta { margin-top: 40px; padding: 28px; background: var(--navy); color: #fff; border-radius: 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.job-cta h2 { margin: 0; font-size: 22px; color: #fff; }
.job-cta p { margin: 4px 0 0; color: #D5DDE8; font-size: 15px; }

/* Home sections */
.home-section { padding: 64px 0; }
.home-section--tint { background: var(--tint); }
.home-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.home-section__head h2 { margin: 0; }
.home-section__head p { margin: 8px 0 0; color: var(--muted); max-width: 640px; }
.home-section__head > a { font-weight: 600; }
.employers { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.employers__copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.employers__copy p { margin: 0; color: var(--muted); }
.employers__copy h2 { margin: 0; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.steps { flex: 1 1 420px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.steps__n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: Sora, "Segoe UI", system-ui, sans-serif; font-weight: 700; }
.steps strong { display: block; font-family: Sora, "Segoe UI", system-ui, sans-serif; font-weight: 600; }
.steps span span { font-size: 15px; color: var(--muted); }
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq h2 { margin: 0 0 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-family: Sora, "Segoe UI", system-ui, sans-serif; font-weight: 600; font-size: 17px; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #D5DDE8; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 32px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
.footer-cols h2 { font-size: 16px; font-weight: 600; color: #fff; margin: 0 0 10px; letter-spacing: 0; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a { display: inline-block; padding: 6px 0; color: #D5DDE8; text-decoration: none; font-size: 15px; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-family: Sora, "Segoe UI", system-ui, sans-serif; font-weight: 700; font-size: 19px; color: #fff; }
.footer-cols p { margin: 10px 0 0; font-size: 14px; }
.footer-note { margin: 36px 0 0; padding-top: 24px; border-top: 1px solid #22355A; font-size: 14px; }

/* 404 */
.notfound { text-align: center; padding: 40px 0; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.notfound p { margin: 0; color: var(--muted); }
