/* FamousParenting theme styles */
:root {
	--fp-primary: #ff7a6b;
	--fp-secondary: #2bb5a0;
	--fp-accent: #ffc857;
	--fp-text: #1f2a44;
	--fp-bg: #fff9f3;
	--fp-card: #ffffff;
	--fp-border: #f0e4d8;
	--fp-radius: 14px;
	--fp-font-head: "Poppins", sans-serif;
	--fp-font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--fp-font-body);
	color: var(--fp-text);
	background: var(--fp-bg);
	line-height: 1.65;
}

h1, h2, h3, h4 {
	font-family: var(--fp-font-head);
	line-height: 1.25;
	margin: 0 0 0.5em;
}

a { color: var(--fp-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.fp-container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}
.skip-link:focus {
	position: fixed;
	top: 10px; left: 10px;
	width: auto; height: auto;
	clip: auto;
	background: var(--fp-text);
	color: #fff;
	padding: 10px 16px;
	z-index: 999;
	border-radius: 8px;
}

/* Header */
.site-header {
	background: var(--fp-card);
	border-bottom: 1px solid var(--fp-border);
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 14px;
	padding-bottom: 14px;
}
.site-title {
	font-family: var(--fp-font-head);
	font-weight: 700;
	font-size: 1.35rem;
	color: var(--fp-text);
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.site-title:hover { text-decoration: none; }
.site-title-mark {
	background: var(--fp-primary);
	color: #fff;
	border-radius: 10px;
	width: 38px; height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
}
.main-navigation ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	gap: 22px;
}
.main-navigation a {
	color: var(--fp-text);
	font-weight: 500;
}
.main-navigation a:hover { color: var(--fp-primary); text-decoration: none; }

.fp-nav-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}
.fp-nav-toggle-bar {
	display: block;
	width: 24px; height: 2px;
	background: var(--fp-text);
	margin: 5px 0;
}

/* Hero */
.fp-hero {
	background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-secondary) 100%);
	color: #fff;
	padding: 84px 0;
	text-align: center;
}
.fp-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 800px; margin-left: auto; margin-right: auto; }
.fp-hero-sub { font-size: 1.15rem; max-width: 640px; margin: 0 auto 28px; opacity: 0.95; }
.fp-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.fp-btn {
	display: inline-block;
	background: var(--fp-primary);
	color: #fff;
	font-family: var(--fp-font-head);
	font-weight: 600;
	padding: 12px 26px;
	border-radius: 999px;
	border: 2px solid var(--fp-primary);
	cursor: pointer;
	font-size: 1rem;
}
.fp-btn:hover { background: var(--fp-text); border-color: var(--fp-text); color: #fff; text-decoration: none; }
.fp-btn-outline { background: transparent; border-color: #fff; }
.fp-btn-outline:hover { background: #fff; color: var(--fp-text); border-color: #fff; }

/* Sections */
.fp-section { padding: 64px 0; }
.fp-section-alt { background: #fff; }
.fp-section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.fp-section-head h2 { font-size: 2rem; }

/* Tools grid */
.fp-tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}
.fp-tool-card {
	background: var(--fp-card);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--fp-text);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fp-tool-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(31, 42, 68, 0.1);
	text-decoration: none;
}
.fp-tool-card strong { font-family: var(--fp-font-head); font-size: 1.05rem; }
.fp-tool-card span:last-child { font-size: 0.9rem; opacity: 0.8; }
.fp-tool-icon { font-size: 1.8rem; }

/* Tool widget */
.fp-tool {
	background: var(--fp-card);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	padding: 28px;
	margin: 24px 0;
}
.fp-tool-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.fp-tool-title { margin: 0; font-size: 1.4rem; }
.fp-tool-desc { margin: 4px 0 0; opacity: 0.8; }
.fp-tool-body { display: grid; gap: 16px; max-width: 460px; }
.fp-field { display: grid; gap: 6px; font-weight: 500; }
.fp-field input, .fp-field select {
	padding: 11px 14px;
	border: 1px solid var(--fp-border);
	border-radius: 10px;
	font: inherit;
	background: #fff;
	color: var(--fp-text);
}
.fp-field input:focus, .fp-field select:focus {
	outline: 2px solid var(--fp-secondary);
	border-color: var(--fp-secondary);
}
.fp-tool-calc { justify-self: start; }
.fp-tool-result {
	display: none;
	background: var(--fp-bg);
	border-left: 4px solid var(--fp-secondary);
	border-radius: 10px;
	padding: 16px 18px;
}
.fp-tool-result.is-visible { display: block; }
.fp-tool-result h3 { margin: 0 0 6px; font-size: 1.1rem; }
.fp-tool-result ul { margin: 6px 0 0; padding-left: 20px; }
.fp-disclaimer { font-size: 0.85rem; opacity: 0.7; max-width: 640px; }
.fp-breadcrumb { margin: 24px 0 8px; font-size: 0.9rem; }

/* Layout */
.fp-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
	padding-top: 48px;
	padding-bottom: 48px;
}
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 2rem; }

/* Post cards */
.fp-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}
.fp-card {
	background: var(--fp-card);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.fp-card-thumb img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.fp-card-body { padding: 20px; display: grid; gap: 8px; }
.fp-card-title { font-size: 1.15rem; margin: 0; }
.fp-card-title a { color: var(--fp-text); }
.fp-card-excerpt { margin: 0; font-size: 0.92rem; opacity: 0.85; }
.fp-meta { font-size: 0.82rem; opacity: 0.65; margin: 0; }
.post-categories { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.post-categories a {
	background: var(--fp-accent);
	color: var(--fp-text);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
}

/* Single */
.fp-single { max-width: 780px; }
.fp-single-head { margin-bottom: 20px; }
.fp-single-head h1 { font-size: 2.2rem; }
.fp-single-thumb { margin: 0 0 24px; border-radius: var(--fp-radius); overflow: hidden; }
.fp-entry > * { margin-bottom: 1.2em; }
.fp-entry h2 { margin-top: 1.6em; }
.fp-tags a {
	background: var(--fp-bg);
	border: 1px solid var(--fp-border);
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.8rem;
	margin-right: 6px;
}

/* Sidebar */
.fp-sidebar .widget {
	background: var(--fp-card);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	padding: 22px;
	margin-bottom: 22px;
}
.fp-sidebar .widget ul { margin: 0; padding-left: 18px; }
.widget-title { font-size: 1.05rem; }

/* Search form */
.fp-search-form { display: flex; gap: 8px; }
.fp-search-field {
	flex: 1;
	padding: 11px 14px;
	border: 1px solid var(--fp-border);
	border-radius: 10px;
	font: inherit;
}
.fp-search-submit { padding: 11px 18px; }

/* Comments */
.fp-comments { margin-top: 40px; }
.fp-comment-list { list-style: none; padding: 0; }
.fp-comment-list .comment-body {
	background: var(--fp-card);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	padding: 18px;
	margin-bottom: 14px;
}

/* 404 */
.fp-404 { text-align: center; padding: 80px 20px; }
.fp-404 .fp-search-form { max-width: 420px; margin: 24px auto; }

/* Features */
.fp-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}
.fp-feature {
	background: var(--fp-card);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	padding: 26px;
	text-align: center;
}
.fp-feature-icon { font-size: 2rem; }

/* Pagination */
.pagination { margin-top: 36px; text-align: center; }
.pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--fp-border);
	border-radius: 8px;
	margin: 0 3px;
	background: var(--fp-card);
	color: var(--fp-text);
}
.pagination .current { background: var(--fp-primary); color: #fff; border-color: var(--fp-primary); }

/* Footer */
.site-footer { background: var(--fp-text); color: #fff; margin-top: 64px; }
.site-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 40px;
}
.site-footer a { color: var(--fp-accent); }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding: 18px 0;
	font-size: 0.85rem;
	opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
	.fp-layout { grid-template-columns: 1fr; }
	.site-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.fp-nav-toggle { display: block; }
	.main-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		background: var(--fp-card);
		border-bottom: 1px solid var(--fp-border);
		padding: 12px 20px;
	}
	.main-navigation.is-open { display: block; }
	.main-navigation ul { flex-direction: column; gap: 12px; }
	.site-header { position: relative; }
}
