/*
Theme Name: Babyflow
Theme URI: https://bistababyflow.com
Author: Bistra BabyFlow
Description: Custom FSE theme for Bistra BabyFlow — holistic baby wellness and parenting support.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.1
License: Proprietary
Text Domain: babyflow
*/

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--body);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--wp--preset--font-family--gabriola);
	font-weight: 400;
	color: var(--wp--preset--color--dark);
	line-height: 1.2;
}

p {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	cursor: pointer;
	border: none;
	background: none;
	font-family: inherit;
}

/* ── Global page/post content prose ── */

.bf-page-content .wp-block-post-content,
.bf-single-post .wp-block-post-content {
	padding-block: 30px;
}

.bf-page-content .wp-block-post-content > *,
.bf-single-post .wp-block-post-content > * {
	margin-bottom: 1.5em;
}

/* ── Single post (article) ── */

.bf-single-post {
	padding-block: 112px 80px;
	background-color: #FAF6EA;
}

.bf-single-post__meta {
	margin-top: 20px;
	margin-bottom: 32px;
}

.bf-single-post__meta .wp-block-post-terms {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #C88E84;
}

.bf-single-post__meta .wp-block-post-terms a { color: inherit; text-decoration: none; }

.bf-single-post .wp-block-post-content img {
	border-radius: 16px;
}

/* ── Contact Form ── */

.bf-contact-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.bf-contact-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bf-contact-form__field label {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #3A3A3A;
}

.bf-contact-form__field input,
.bf-contact-form__field textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid rgba(58, 58, 58, 0.2);
	border-radius: 4px;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 15px;
	color: #3A3A3A;
	background: #FFFFFF;
	transition: border-color 0.2s ease;
	outline: none;
}

.bf-contact-form__field input:focus,
.bf-contact-form__field textarea:focus {
	border-color: #C88E84;
}

.bf-contact-form__field textarea { resize: vertical; }

.bf-contact-form__submit {
	align-self: flex-start;
	padding: 13px 36px;
	background-color: #C88E84;
	color: #FFFFFF;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 18px;
	font-weight: 600;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.bf-contact-form__submit:hover { background-color: #b57a70; }

/* ── Generic archive card fallback (templates/archive.html) ── */

.bf-blog-grid__card { overflow: hidden; }
.bf-blog-grid__card-img-wrap { aspect-ratio: 3/2; }

/* ── WP Core pagination styling ── */

.wp-block-query-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 56px;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1.5px solid rgba(58, 58, 58, 0.2);
	border-radius: 4px;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 14px;
	color: #3A3A3A;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wp-block-query-pagination a:hover,
.wp-block-query-pagination .current {
	border-color: #C88E84;
	background-color: #C88E84;
	color: #FFFFFF;
}

/* ── Blog page (archive-style post listing) ── */

.bf-blog-page { padding-block: 80px; }

.bf-blog-page__inner {
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: 120px;
}

.bf-blog-page__header {
	text-align: center;
	margin-bottom: 48px;
}

.bf-blog-page__header p {
	margin-top: 16px;
	color: #606060;
}

.bf-blog-page__grid.wp-block-post-template {
	gap: 32px;
}

.bf-blog-page__card {
	background: #FFFFFF;
	border-radius: 24px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 16px rgba(58, 58, 58, 0.06);
	transition: box-shadow 0.2s ease;
}

.bf-blog-page__card:hover { box-shadow: 0 4px 24px rgba(58, 58, 58, 0.12); }

.bf-blog-page__card .wp-block-post-featured-image {
	margin: 0 0 20px;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4/3;
}

.bf-blog-page__card .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.bf-blog-page__card:hover .wp-block-post-featured-image img { transform: scale(1.03); }

.bf-blog-page__card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.bf-blog-page__card .wp-block-post-title {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: #3A3A3A;
	margin: 0;
	line-height: 1.35;
}

.bf-blog-page__card .wp-block-post-title a { color: inherit; text-decoration: none; }
.bf-blog-page__card .wp-block-post-title a:hover { color: #C88E84; }

.bf-blog-page__card .wp-block-post-terms {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #C88E84;
	margin: 0;
}

.bf-blog-page__card .wp-block-post-terms a { color: inherit; text-decoration: none; }

.bf-blog-page__card .wp-block-post-excerpt {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 14px;
	color: #606060;
	line-height: 1.6;
	margin: 0;
	flex: 1;
}

.bf-blog-page__card .wp-block-post-excerpt p { margin: 0; }

.bf-blog-page__card .wp-block-read-more {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
	padding: 10px 22px;
	background-color: #C88E84;
	color: #FFFFFF;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
	border-radius: 999px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.bf-blog-page__card .wp-block-read-more:hover { background-color: #b57a70; color: #FFFFFF; }

.bf-blog-page__pagination.wp-block-query-pagination {
	gap: 12px;
	margin-top: 56px;
}

.bf-blog-page__pagination .wp-block-query-pagination-previous,
.bf-blog-page__pagination .wp-block-query-pagination-next {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: #3A3A3A;
	font-size: 18px;
}

.bf-blog-page__pagination .wp-block-query-pagination-previous:hover,
.bf-blog-page__pagination .wp-block-query-pagination-next:hover {
	background-color: #F6DCCE;
	border-color: transparent;
	color: #3A3A3A;
}

.bf-blog-page__pagination .page-numbers {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	background-color: #F6DCCE;
	color: #816555;
	font-size: 12px;
}

.bf-blog-page__pagination .page-numbers.current,
.bf-blog-page__pagination a.page-numbers:hover {
	background-color: #C88E84;
	border-color: transparent;
	color: #FFFFFF;
}

.bf-blog-page__pagination .page-numbers.dots {
	background: transparent;
	width: auto;
}

@media (max-width: 1200px) { .bf-blog-page__inner { padding-inline: 40px; } }
@media (max-width: 900px)  { .bf-blog-page__grid.wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 640px)  {
	.bf-blog-page { padding-block: 56px; }
	.bf-blog-page__inner { padding-inline: 20px; }
	.bf-blog-page__grid.wp-block-post-template { grid-template-columns: 1fr !important; }
}
