/*
Theme Name: RenterFit
Theme URI: https://renterfit.com
Author: RenterFit
Author URI: https://renterfit.com
Description: Child theme of Blocksy for RenterFit — a home-organization affiliate blog for US renters and homeowners. Clean editorial design, measurement-first guides, deposit-safe checklists. Built for speed: no builders, minimal CSS/JS.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: blocksy
Text Domain: renterfit
Tags: blog, affiliate, home-organization, renters, guides, accessibility-ready, custom-colors, featured-images, grid-layout, one-column, two-columns
*/

/* ============================================================
   RenterFit design system — v1.0.0
   Palette: deep pine/slate + warm amber on soft cream.
   Type: Fraunces (display) + Inter (body), loaded in functions.php.
   All layout is additive CSS on top of Blocksy; no core
   Blocksy templates are overridden except the homepage
   page template (template-home.php).
   ============================================================ */

:root {
	/* Brand */
	--rf-pine: #14453d;          /* deep teal-green, headers/hero */
	--rf-pine-deep: #0e332d;     /* darker pine, footer */
	--rf-ink: #1b2a2e;           /* body text */
	--rf-ink-soft: #43565a;      /* muted text */
	--rf-amber: #e8a33d;         /* accent: CTAs, markers, rules */
	--rf-amber-deep: #c98424;    /* hover state */
	--rf-sage: #7fa99b;          /* secondary accent */
	--rf-sage-soft: #e3ede8;     /* sage tint backgrounds */
	--rf-cream: #faf6ef;         /* page background tint */
	--rf-card: #ffffff;
	--rf-line: #e5ded2;          /* hairlines */
	--rf-line-strong: #d3c9b8;

	/* Type */
	--rf-font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--rf-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	/* Shape + space */
	--rf-radius: 14px;
	--rf-radius-sm: 9px;
	--rf-shadow: 0 1px 2px rgba(20, 69, 61, 0.06), 0 8px 24px rgba(20, 69, 61, 0.07);
	--rf-shadow-hover: 0 2px 4px rgba(20, 69, 61, 0.08), 0 14px 32px rgba(20, 69, 61, 0.12);
	--rf-max: 1180px;
	--rf-measure: 720px;
}

/* ---------- Base: warm paper background, editorial type ---------- */

body {
	background: var(--rf-cream);
	color: var(--rf-ink);
	font-family: var(--rf-font-body);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.ct-post-title {
	font-family: var(--rf-font-display);
	color: var(--rf-pine-deep);
	letter-spacing: -0.01em;
}

a { color: var(--rf-pine); }
a:hover { color: var(--rf-amber-deep); }

/* Measure-first rule: short amber rule above section titles */
.rf-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rf-amber-deep);
}
.rf-kicker::before {
	content: "";
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background: var(--rf-amber);
}

/* ---------- Header: pine bar, amber underline on hover ---------- */

[data-header*="header"] .site-title,
.site-title a {
	font-family: var(--rf-font-display);
	font-weight: 700;
	color: var(--rf-pine-deep);
}

/* Wordmark lockup: "Renter" in pine, "Fit" in amber */
.rf-wordmark { font-family: var(--rf-font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--rf-pine-deep); letter-spacing: -0.01em; }
.rf-wordmark em { font-style: normal; color: var(--rf-amber-deep); }
.rf-wordmark small { display: block; font-family: var(--rf-font-body); font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rf-ink-soft); margin-top: 3px; }

/* ---------- Buttons ---------- */

.rf-btn {
	display: inline-block;
	padding: 13px 24px;
	border-radius: 999px;
	background: var(--rf-amber);
	color: #221a08;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	border: 2px solid var(--rf-amber);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.rf-btn:hover { background: var(--rf-amber-deep); border-color: var(--rf-amber-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--rf-shadow-hover); }
.rf-btn--ghost {
	background: transparent;
	color: var(--rf-pine);
	border-color: var(--rf-pine);
}
.rf-btn--ghost:hover { background: var(--rf-pine); border-color: var(--rf-pine); color: #fff; }

/* ---------- Hero (homepage pattern + template) ---------- */

.rf-hero {
	background: var(--rf-pine);
	color: #f2ede3;
	border-radius: var(--rf-radius);
	padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 56px);
	position: relative;
	overflow: hidden;
}
.rf-hero::after {
	content: "";
	position: absolute;
	right: -70px;
	top: -70px;
	width: 260px;
	height: 260px;
	border: 26px solid rgba(232, 163, 61, 0.22);
	border-radius: 50%;
	pointer-events: none;
}
.rf-hero h1, .rf-hero .rf-hero-title {
	font-family: var(--rf-font-display);
	font-size: clamp(34px, 5.4vw, 56px);
	line-height: 1.05;
	color: #fff;
	margin: 0 0 16px;
	max-width: 640px;
}
.rf-hero h1 em, .rf-hero .rf-hero-title em { font-style: normal; color: var(--rf-amber); }
.rf-hero p { font-size: clamp(16px, 2vw, 19px); line-height: 1.6; color: #d8e2dd; max-width: 560px; margin: 0 0 24px; }
.rf-hero .rf-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.rf-hero .rf-hero-note { margin-top: 18px; font-size: 13px; color: #a9bdb4; }
.rf-hero .rf-hero-note strong { color: var(--rf-amber); }

/* Tape-measure motif strip under the hero */
.rf-tape {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	align-items: center;
	justify-content: space-between;
	background: #fff;
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius-sm);
	padding: 14px 20px;
	margin-top: 16px;
	font-size: 14px;
	color: var(--rf-ink-soft);
}
.rf-tape strong { color: var(--rf-pine); font-family: var(--rf-font-display); font-size: 17px; margin-right: 4px; }

/* ---------- Article cards (grid) ---------- */

.rf-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.rf-card {
	background: var(--rf-card);
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius);
	overflow: hidden;
	box-shadow: var(--rf-shadow);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	display: flex;
	flex-direction: column;
}
.rf-card:hover { transform: translateY(-3px); box-shadow: var(--rf-shadow-hover); }
.rf-card-thumb {
	aspect-ratio: 16 / 9;
	background: var(--rf-sage-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--rf-font-display);
	font-size: 44px;
	color: var(--rf-pine);
	border-bottom: 1px solid var(--rf-line);
}
.rf-card-thumb span { opacity: 0.85; }
.rf-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.rf-card-cat {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rf-amber-deep);
	margin-bottom: 8px;
}
.rf-card h3, .rf-card .rf-card-title {
	font-size: 21px;
	line-height: 1.25;
	margin: 0 0 10px;
}
.rf-card h3 a { color: var(--rf-pine-deep); text-decoration: none; }
.rf-card h3 a:hover { color: var(--rf-amber-deep); }
.rf-card p { font-size: 14.5px; line-height: 1.6; color: var(--rf-ink-soft); margin: 0 0 16px; flex: 1; }
.rf-card-meta { font-size: 12.5px; color: var(--rf-ink-soft); border-top: 1px solid var(--rf-line); padding-top: 12px; display: flex; justify-content: space-between; gap: 10px; }
.rf-card-meta .rf-fit-tag { color: var(--rf-pine); font-weight: 700; }

/* Featured card: spans two columns on desktop */
.rf-card--featured { grid-column: span 2; flex-direction: row; }
.rf-card--featured .rf-card-thumb { flex: 0 0 44%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--rf-line); min-height: 100%; }
.rf-card--featured .rf-card-body { padding: 28px 30px; }

/* ---------- Measure-first strip ---------- */

.rf-measure-strip {
	background: #fff;
	border: 1px solid var(--rf-line);
	border-left: 5px solid var(--rf-amber);
	border-radius: var(--rf-radius-sm);
	padding: 26px 28px;
}
.rf-measure-strip h2, .rf-measure-strip h3 { margin-top: 0; }
.rf-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: rf-step;
}
.rf-steps li { position: relative; padding-top: 44px; font-size: 14.5px; line-height: 1.6; color: var(--rf-ink-soft); }
.rf-steps li::before {
	counter-increment: rf-step;
	content: counter(rf-step, decimal-leading-zero);
	position: absolute;
	top: 0; left: 0;
	font-family: var(--rf-font-display);
	font-size: 28px;
	font-weight: 700;
	color: var(--rf-amber-deep);
}
.rf-steps li strong { display: block; color: var(--rf-pine-deep); font-size: 16px; margin-bottom: 4px; }

/* ---------- Single article: typography ---------- */

.single .entry-content, .rf-article-body { font-size: 17.5px; line-height: 1.75; }
.single .entry-content h2, .rf-article-body h2 {
	font-size: 29px;
	margin: 44px 0 14px;
	padding-top: 8px;
	border-top: 3px solid var(--rf-amber);
}
.single .entry-content h3, .rf-article-body h3 { font-size: 22px; margin: 32px 0 10px; }
.single .entry-content p, .rf-article-body p { margin-bottom: 1.25em; }
.single .entry-content li, .rf-article-body li { margin-bottom: 6px; }
.single .entry-content blockquote, .rf-article-body blockquote {
	border-left: 4px solid var(--rf-amber);
	background: #fff;
	padding: 16px 20px;
	border-radius: 0 var(--rf-radius-sm) var(--rf-radius-sm) 0;
	font-family: var(--rf-font-display);
	font-size: 20px;
	color: var(--rf-pine-deep);
}
.single .entry-content img, .rf-article-body img { border-radius: var(--rf-radius-sm); }

/* Table of contents box (JS-built from h2s; pattern provides the shell) */
.rf-toc {
	background: #fff;
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius);
	padding: 20px 24px;
	margin: 0 0 28px;
}
.rf-toc-title { font-family: var(--rf-font-display); font-size: 17px; color: var(--rf-pine-deep); margin: 0 0 10px; }
.rf-toc ol { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.9; }
.rf-toc a { color: var(--rf-pine); text-decoration: none; }
.rf-toc a:hover, .rf-toc a.rf-toc-active { color: var(--rf-amber-deep); font-weight: 700; }

/* ---------- Callout boxes (patterns) ---------- */

.rf-callout {
	border-radius: var(--rf-radius-sm);
	padding: 20px 22px;
	margin: 28px 0;
	font-size: 15.5px;
	line-height: 1.65;
}
.rf-callout h3, .rf-callout h4 { margin-top: 0; font-size: 18px; }
.rf-callout p:last-child { margin-bottom: 0; }

/* Pros / cons — two columns, green checks vs amber crosses */
.rf-pros-cons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 28px 0;
}
.rf-pros, .rf-cons {
	border-radius: var(--rf-radius-sm);
	padding: 20px 22px;
}
.rf-pros { background: var(--rf-sage-soft); border: 1px solid #c8d8cf; }
.rf-cons { background: #fdf3e3; border: 1px solid #f0d9a8; }
.rf-pros h4, .rf-cons h4 { margin: 0 0 10px; font-size: 16px; }
.rf-pros ul, .rf-cons ul { margin: 0; padding-left: 4px; list-style: none; font-size: 14.5px; line-height: 1.65; }
.rf-pros li, .rf-cons li { padding-left: 24px; position: relative; margin-bottom: 8px; }
.rf-pros li::before { content: "✓"; position: absolute; left: 0; color: var(--rf-pine); font-weight: 800; }
.rf-cons li::before { content: "✕"; position: absolute; left: 0; color: var(--rf-amber-deep); font-weight: 800; }

/* Deposit-risk checklist — the renter spine of the site */
.rf-checklist {
	background: var(--rf-pine);
	color: #eef3ef;
	border-radius: var(--rf-radius);
	padding: 24px 26px;
	margin: 28px 0;
}
.rf-checklist h3, .rf-checklist h4 { color: #fff; margin-top: 0; }
.rf-checklist ul { margin: 0; padding-left: 4px; list-style: none; font-size: 15px; line-height: 1.7; }
.rf-checklist li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.rf-checklist li::before {
	content: "";
	position: absolute;
	left: 0; top: 5px;
	width: 16px; height: 16px;
	border: 2px solid var(--rf-amber);
	border-radius: 4px;
}
.rf-checklist li::after {
	content: "✓";
	position: absolute;
	left: 3.5px; top: 1px;
	font-size: 12px;
	color: var(--rf-amber);
	font-weight: 800;
}
.rf-checklist p:last-child { margin-bottom: 0; }

/* Fit note — measurement callout inside articles */
.rf-fit-note {
	background: #fff;
	border: 1px dashed var(--rf-amber-deep);
	border-radius: var(--rf-radius-sm);
	padding: 18px 20px;
	margin: 28px 0;
	font-size: 15px;
	line-height: 1.65;
}
.rf-fit-note strong:first-child { color: var(--rf-amber-deep); }

/* ---------- Tables (TablePress-compatible) ---------- */

.tablepress, .rf-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 14.5px;
	line-height: 1.55;
	background: #fff;
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius-sm);
	overflow: hidden;
	margin: 24px 0;
}
.tablepress th, .rf-table th {
	background: var(--rf-pine);
	color: #fff;
	font-family: var(--rf-font-display);
	font-weight: 600;
	text-align: left;
	padding: 12px 14px;
}
.tablepress td, .rf-table td { padding: 11px 14px; border-top: 1px solid var(--rf-line); vertical-align: top; }
.tablepress tbody tr:nth-child(even) td, .rf-table tbody tr:nth-child(even) td { background: #f7f2e9; }
.tablepress .rf-best, .rf-table .rf-best { color: var(--rf-amber-deep); font-weight: 800; }
.rf-table-wrap { overflow-x: auto; margin: 24px 0; }
.rf-table-wrap .rf-table, .rf-table-wrap .tablepress { margin: 0; }
.rf-table-caption { font-size: 13px; color: var(--rf-ink-soft); margin: -14px 0 24px; }

/* ---------- Affiliate disclosure + author box (injected by functions.php) ---------- */

.rf-disclosure {
	background: #fdf6e7;
	border: 1px solid #f0d9a8;
	border-radius: var(--rf-radius-sm);
	padding: 14px 18px;
	font-size: 13.5px;
	line-height: 1.6;
	color: #6b5a33;
	margin: 28px 0;
}
.rf-disclosure strong { color: var(--rf-amber-deep); }
.rf-author-box {
	display: flex;
	gap: 18px;
	background: #fff;
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius);
	padding: 22px 24px;
	margin: 36px 0;
	align-items: flex-start;
}
.rf-author-box .rf-avatar {
	flex: 0 0 64px;
	width: 64px; height: 64px;
	border-radius: 50%;
	background: var(--rf-pine);
	color: var(--rf-amber);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--rf-font-display);
	font-size: 26px; font-weight: 700;
}
.rf-author-box h4 { margin: 0 0 6px; font-size: 17px; }
.rf-author-box p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--rf-ink-soft); }

/* Related guides */
.rf-related { margin: 40px 0 8px; }
.rf-related h3 { font-size: 23px; margin-bottom: 18px; }

/* ---------- Category / archive ---------- */

.rf-archive-intro {
	background: #fff;
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius);
	padding: 28px 32px;
	margin-bottom: 28px;
}
.rf-archive-intro h1 { margin: 0 0 8px; font-size: 34px; }
.rf-archive-intro p { margin: 0; color: var(--rf-ink-soft); font-size: 16px; line-height: 1.65; max-width: var(--rf-measure); }

/* ---------- Footer ---------- */

[data-footer*="footer"], .site-footer { background: var(--rf-pine-deep); color: #b9c9c2; }
.site-footer a { color: #e8e2d4; }
.site-footer a:hover { color: var(--rf-amber); }

/* ---------- Ad slots: reserved space, never filled by the theme ---------- */

.rf-ad-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90px;
	border: 1px dashed var(--rf-line-strong);
	border-radius: var(--rf-radius-sm);
	color: var(--rf-ink-soft);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 28px 0;
	background: rgba(255, 255, 255, 0.5);
}
/* Real ads arrive via Blocksy Content Blocks (see INSTALL.md).
   The theme never injects ad code itself. */

/* ---------- Sticky header shadow (JS toggles .rf-scrolled) ---------- */

.rf-scrolled[data-header*="header"] { box-shadow: 0 4px 18px rgba(20, 69, 61, 0.12); }

/* ---------- Responsive: mobile-first ---------- */

@media (max-width: 1020px) {
	.rf-grid { grid-template-columns: repeat(2, 1fr); }
	.rf-card--featured { grid-column: span 2; }
	.rf-steps { grid-template-columns: 1fr; gap: 14px; }
	.rf-steps li { padding-top: 38px; }
}

@media (max-width: 640px) {
	.rf-grid { grid-template-columns: 1fr; }
	.rf-card--featured { grid-column: span 1; flex-direction: column; }
	.rf-card--featured .rf-card-thumb { border-right: 0; border-bottom: 1px solid var(--rf-line); min-height: 150px; }
	.rf-pros-cons { grid-template-columns: 1fr; }
	.rf-hero { padding: 28px 22px; }
	.rf-author-box { flex-direction: column; }
	.single .entry-content, .rf-article-body { font-size: 16.5px; }
	.rf-table-wrap { margin-left: -16px; margin-right: -16px; }
	.rf-table-wrap .rf-table, .rf-table-wrap .tablepress { border-radius: 0; border-left: 0; border-right: 0; }
}

/* ---------- Accessibility ---------- */

.rf-btn:focus-visible, a:focus-visible, button:focus-visible {
	outline: 3px solid var(--rf-amber);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
