/*
Theme Name: Skoko Renovation
Theme URI: https://www.skokomortgages.ca/
Author: Skoko Mortgages
Description: Temporary renovation landing page for Skoko Mortgages.
Version: 1.2.2
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: skoko-renovation
*/

:root {
	--skoko-ink: #171a17;
	--skoko-ivory: #f5f1e8;
	--skoko-sage: #c8d8bf;
	--skoko-green: #38533c;
	--skoko-line: rgba(23, 26, 23, 0.14);
}

* { box-sizing: border-box; }

body.skoko-learning-centre {
	margin: 0;
	background: var(--skoko-ivory);
	color: var(--skoko-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.65;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	max-width: 1180px;
	margin: 0 auto;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--skoko-line);
}

.site-logo img { display: block; width: min(280px, 46vw); height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a { color: var(--skoko-ink); font-weight: 700; text-decoration: none; }
.site-nav .nav-cta { padding: .7rem 1rem; border: 1px solid var(--skoko-ink); border-radius: 999px; }

.learning-main { width: min(1120px, calc(100% - 3rem)); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 0; }
.archive-intro { max-width: 780px; margin-bottom: 3rem; }
.eyebrow { margin: 0 0 .65rem; color: var(--skoko-green); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.archive-intro h1, .article-header h1 { margin: 0; font-size: clamp(2.45rem, 7vw, 5.25rem); line-height: .98; letter-spacing: -.055em; }
.archive-intro > p:last-child { max-width: 690px; margin: 1.35rem 0 0; font-size: 1.15rem; }

.update-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.update-card { overflow: hidden; background: #fffdf8; border: 1px solid var(--skoko-line); border-radius: 22px; }
.card-image { display: grid; min-height: 260px; place-items: center; overflow: hidden; background: var(--skoko-sage); color: var(--skoko-green); font-weight: 800; text-decoration: none; }
.card-image img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; transition: transform .35s ease; }
.update-card:hover .card-image img { transform: scale(1.025); }
.card-copy { padding: 1.5rem; }
.card-copy time, .article-meta { color: #5e655e; font-size: .9rem; }
.card-copy h2 { margin: .55rem 0 .75rem; font-size: 1.45rem; line-height: 1.18; letter-spacing: -.025em; }
.card-copy h2 a, .read-more, .article-back a { color: var(--skoko-ink); font-weight: 780; text-decoration: none; }
.read-more { display: inline-block; margin-top: .5rem; }

.single-update { max-width: 920px; }
.article-header { text-align: center; }
.article-header h1 { max-width: 900px; margin-inline: auto; font-size: clamp(2.35rem, 6vw, 4.6rem); }
.article-meta { margin-top: 1.1rem; }
.article-featured { margin: 2.25rem auto 0; }
.article-featured img { width: min(720px, 100%); height: auto; border-radius: 24px; }
.market-update-content { max-width: 760px; margin: 3rem auto 0; font-size: 1.08rem; }
.market-update-content > header.hero { margin: 0 0 2rem; padding: 2rem; background: var(--skoko-sage); border-radius: 20px; }
.market-update-content > header.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; }
.market-update-content nav.nav { display: flex; flex-wrap: wrap; gap: .7rem 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--skoko-line); }
.market-update-content nav.nav a { color: var(--skoko-green); font-weight: 760; }
.market-update-content section { margin: 2.5rem 0; }
.market-update-content h2 { margin-top: 2.4rem; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.15; letter-spacing: -.03em; }
.market-update-content h3 { margin-top: 1.8rem; font-size: 1.3rem; }
.market-update-content a { color: var(--skoko-green); }
.market-update-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.market-update-content th, .market-update-content td { padding: .75rem; border: 1px solid var(--skoko-line); }

.article-cta { margin: 4rem 0 2rem; padding: clamp(2rem, 5vw, 3.5rem); background: var(--skoko-sage); border-radius: 24px; text-align: center; }
.article-cta h2 { margin: 0 auto 1.5rem; max-width: 650px; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.08; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.primary-button, .secondary-button { display: inline-block; padding: .9rem 1.2rem; border: 1px solid var(--skoko-ink); border-radius: 999px; font-weight: 800; text-decoration: none; }
.primary-button { background: var(--skoko-ink); color: white; }
.secondary-button { color: var(--skoko-ink); }
.article-back { margin-top: 2rem; text-align: center; }

.learning-footer { padding: 2.5rem 1.5rem; border-top: 1px solid var(--skoko-line); text-align: center; }
.learning-footer img { width: min(300px, 75vw); height: auto; }
.learning-footer p { margin: .4rem 0; }
.learning-footer a { color: var(--skoko-ink); }

@media (max-width: 760px) {
	.site-header { align-items: flex-start; }
	.site-nav > a:first-child { display: none; }
	.site-nav .nav-cta { padding: .55rem .75rem; font-size: .82rem; text-align: center; }
	.update-grid { grid-template-columns: 1fr; }
	.learning-main { width: min(100% - 2rem, 1120px); }
	.card-image, .card-image img { min-height: 210px; }
}
