/*
Theme Name: Restful RV
Description: Editorial news-style child theme for Restful RV, built on Astra. Deep navy + rust color scheme, Merriweather headlines over Inter body text, bold top nav bar, and a card-based article grid.
Author: Restful RV
Template: astra
Version: 1.0
Text Domain: restful-rv
*/

:root {
	--rrv-navy: #103b3a;
	--rrv-navy-dark: #0a2827;
	--rrv-rust: #d98a1f;
	--rrv-rust-dark: #b06f14;
	--rrv-cream: #faf7f2;
	--rrv-paper: #ffffff;
	--rrv-ink: #1f2421;
	--rrv-ink-soft: #4a4f4c;
	--rrv-line: #e4ddd0;
	--rrv-product: #0a2827;
	--rrv-product-bg: #fbf1de;
}

body {
	background-color: var(--rrv-cream);
	color: var(--rrv-ink);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 19px;
	line-height: 1.7;
}

/* Larger, easier-to-read body copy and headings for a 55+ audience. */
.entry-content p,
.entry-content li {
	font-size: 1.05em;
	line-height: 1.75;
}
.entry-content h2 {
	font-size: 1.7rem;
	margin-top: 2.5rem;
}
.entry-content h3 {
	font-size: 1.35rem;
}
.entry-title {
	font-size: 2.1rem;
	line-height: 1.3;
}
/* Comparison tables and FAQ text should never render smaller than body copy. */
.entry-content table,
.entry-content table th,
.entry-content table td {
	font-size: 1em;
	line-height: 1.5;
	padding: 0.85rem 1rem;
}
.entry-content table th {
	font-size: 1.05em;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .site-title {
	font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
	color: var(--rrv-navy);
	font-weight: 700;
	letter-spacing: -0.01em;
}

a {
	color: var(--rrv-rust);
}
a:hover {
	color: var(--rrv-rust-dark);
}

/* ---------- Top nav bar: bold navy, all-caps links, rust underline on hover ---------- */
.ast-primary-header-bar,
.main-header-bar {
	background-color: var(--rrv-navy) !important;
	border-bottom: 3px solid var(--rrv-rust);
}
/* Site title text is hidden now that a custom logo image is in place — showing both duplicated the
   branding (the logo already contains "Restful RV" as part of its design). */
.ast-primary-header-bar .site-title,
.main-header-bar .site-title,
.site-branding .site-title,
.site-title {
	display: none !important;
}
.main-header-menu .menu-item a,
.main-header-menu > .menu-item > a {
	color: #f4efe6 !important;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 15.5px;
	letter-spacing: 0.05em;
	padding-top: 22px !important;
	padding-bottom: 22px !important;
	border-bottom: 3px solid transparent;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.main-header-menu .menu-item a:hover,
.main-header-menu .current-menu-item > a {
	color: #ffffff !important;
	border-bottom-color: var(--rrv-rust);
}

/* ---------- Hero / page intro ---------- */
.hero-block,
.entry-content > .wp-block-image:first-child {
	border-radius: 2px;
}
.entry-content > .wp-block-image:first-child img {
	border-radius: 2px;
}

/* ---------- Card-style grid for archives, hub link lists, and query loops ---------- */
.ast-article-post,
article.type-post {
	background: var(--rrv-paper);
	border: 1px solid var(--rrv-line);
	border-radius: 3px;
	padding: 1.75rem;
	box-shadow: 0 1px 3px rgba(20, 39, 63, 0.06);
}
.ast-article-post .entry-title a,
article.type-post .entry-title a {
	color: var(--rrv-navy);
}
.ast-article-post .entry-title a:hover {
	color: var(--rrv-rust);
}

/* wp:list used on hub pages to link out to guides — style as a clean article index */
.entry-content ul.wp-block-list {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
	border-top: 1px solid var(--rrv-line);
}
.entry-content ul.wp-block-list li {
	border-bottom: 1px solid var(--rrv-line);
	padding: 0.85rem 0;
	font-family: 'Merriweather', Georgia, serif;
	font-size: 1.05rem;
}
.entry-content ul.wp-block-list li a {
	color: var(--rrv-navy);
	text-decoration: none;
}
.entry-content ul.wp-block-list li a:hover {
	color: var(--rrv-rust);
	text-decoration: underline;
}

/* Homepage "Popular Guides" list — product/article names stand out with the amber accent */
.rrv-popular-guides {
	border-top: none !important;
}
.rrv-popular-guides li {
	padding: 1rem 1.25rem !important;
	background: var(--rrv-product-bg);
	border: none !important;
	border-left: 4px solid var(--rrv-rust) !important;
	border-radius: 0 3px 3px 0;
	margin-bottom: 0.75rem;
}
.rrv-popular-guides li a {
	color: var(--rrv-product) !important;
	font-weight: 700;
	font-size: 1.1rem;
}
.rrv-popular-guides li a:hover {
	color: var(--rrv-rust) !important;
}

/* Buttons (hub explore CTAs on the homepage) */
.wp-block-button__link {
	background-color: var(--rrv-rust) !important;
	color: #ffffff !important;
	border-radius: 2px !important;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.05em;
	padding: 0.85rem 1.5rem !important;
}
.wp-block-button__link:hover {
	background-color: var(--rrv-rust-dark) !important;
}

/* Two-column hub layout on the homepage */
.wp-block-columns {
	gap: 2.5rem;
}
.wp-block-column {
	background: var(--rrv-paper);
	border-top: 4px solid var(--rrv-navy);
	padding: 1.75rem;
	box-shadow: 0 1px 3px rgba(20, 39, 63, 0.06);
}

/* ---------- Product names standing out in "5 Best" article sections ---------- */
/* Every H3 inside article body copy is a product entry heading — give it a highlighted
   treatment so product names are immediately scannable while skimming. */
.entry-content h3 {
	display: inline-block;
	background: var(--rrv-product-bg);
	color: var(--rrv-product);
	border-left: 4px solid var(--rrv-rust);
	padding: 0.4rem 1rem;
	margin-top: 2.25rem;
	margin-bottom: 0.9rem;
	border-radius: 0 3px 3px 0;
	font-size: 1.2rem;
}
/* Pros/Cons lead-ins within product paragraphs */
.entry-content p strong {
	color: var(--rrv-navy);
}

/* ---------- Pros/Cons split cards ---------- */
/* Two adjacent core/paragraph blocks (className rrv-pros / rrv-cons) styled as side-by-side cards
   using inline-block + vertical-align, since core blocks render as plain sibling <p> tags with no
   wrapping <div> available (no core/group/columns allowed per the site's block rules). The two
   paragraphs must be placed back-to-back with no other block between them. */
/* Side by side using an explicit flex wrapper div (matches the original mockup exactly). */
.entry-content .rrv-procon {
	display: flex;
	gap: 1rem;
	margin: 1.25rem 0 0.5rem;
	flex-wrap: wrap;
}
.entry-content .rrv-procon p.rrv-pros,
.entry-content .rrv-procon p.rrv-cons {
	flex: 1 1 220px;
	box-sizing: border-box;
	border-radius: 6px;
	padding: 1rem 1.25rem;
	margin: 0 !important;
	font-size: 0.95em;
	line-height: 1.55;
}
.entry-content .rrv-procon p.rrv-pros {
	background: #eef7ee;
	border-left: 4px solid #3f8f4f;
}
.entry-content .rrv-procon p.rrv-cons {
	background: #fdeeee;
	border-left: 4px solid var(--rrv-rust);
}
@media (max-width: 600px) {
	.entry-content .rrv-procon {
		flex-direction: column;
	}
}
.entry-content p.rrv-pros strong,
.entry-content p.rrv-cons strong {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.entry-content p.rrv-pros strong {
	color: #2d6b3a;
}
.entry-content p.rrv-cons strong {
	color: #a83a10;
}

/* ---------- Match single-post width to page width ---------- */
/* Astra's "Blog Single" layout uses a boxed content width narrower than the "Page" layout, on top
   of a right-sidebar column. Force both to the same explicit container width so posts and pages
   read identically wide, regardless of which Astra layout setting is driving each template. */
:root {
	--ast-content-width-size: 1440px;
}
.single-post #secondary,
.single-post .sidebar-main,
.single-post div[class*="sidebar"] {
	display: none !important;
}
body.single-post .ast-container {
	display: block !important;
	grid-template-columns: 1fr !important;
	max-width: var(--ast-content-width-size) !important;
	width: 100% !important;
}
body.single-post #primary,
body.single-post #primary.content-area,
body.single-post .site-content #primary,
body.single-post .ast-right-sidebar #primary,
body.single-post .ast-left-sidebar #primary,
body.single-post article.type-post {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
}
body.single-post .entry-content,
body.single-post .entry-content.clear,
body.single-post .entry-content > *,
body.single-post .entry-content p,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content .wp-block-table,
body.single-post .entry-content .wp-block-image {
	max-width: 100% !important;
	width: 100% !important;
}
body.single-post article.type-post,
body.single-post .ast-article-post {
	padding-left: 2.5rem !important;
	padding-right: 2.5rem !important;
}
/* Pages/archives: pin to the same container width so posts don't end up wider or narrower than
   the hub pages and homepage. */
body.page .ast-container,
body.archive .ast-container,
body.home .ast-container {
	max-width: var(--ast-content-width-size) !important;
}

/* ---------- Mobile phone readability & usability ---------- */
@media (max-width: 768px) {
	body {
		font-size: 18px;
	}
	.entry-content p,
	.entry-content li {
		font-size: 1.02em;
	}
	.entry-title {
		font-size: 1.7rem;
	}
	.entry-content h2 {
		font-size: 1.4rem;
	}
	.entry-content h3 {
		font-size: 1.2rem;
		display: block;
	}
	/* Nav links get more breathing room and bigger tap targets on phones. */
	.main-header-menu .menu-item a,
	.main-header-menu > .menu-item > a {
		font-size: 16px;
		padding-top: 16px !important;
		padding-bottom: 16px !important;
	}
	/* Comparison tables scroll horizontally instead of squeezing/wrapping into unreadable cells. */
	.entry-content .wp-block-table {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.entry-content table {
		font-size: 0.95em;
		white-space: nowrap;
	}
	/* Homepage two-column hub layout stacks on phones. */
	.wp-block-columns {
		flex-direction: column;
	}
	.wp-block-column {
		width: 100% !important;
		margin-bottom: 1.5rem;
	}
	/* Buttons and popular-guide links get bigger tap targets. */
	.wp-block-button__link {
		display: block;
		text-align: center;
		padding: 1rem 1.5rem !important;
	}
	.rrv-popular-guides li a {
		display: block;
		padding: 0.25rem 0;
	}
	/* Images never overflow the viewport on narrow screens. */
	.entry-content img {
		height: auto;
		max-width: 100%;
	}
}

/* Footer */
.site-footer,
.ast-small-footer {
	background-color: var(--rrv-navy-dark) !important;
	color: #cbd2da !important;
}
.site-footer a,
.ast-small-footer a {
	color: #f4efe6 !important;
}
