/*
Theme Name: PotsAndRoots
Theme URI: https://potsandroots.site/
Author: PotsAndRoots
Author URI: https://potsandroots.site/
Description: A lightweight custom block theme for PotsAndRoots — Indoor Houseplant Care. Green-family design only, system fonts, no external requests, no ad code, no popups.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: potsandroots
Tags: blog, custom-colors, featured-images, full-site-editing, one-column, threaded-comments, translation-ready
*/

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

html { scroll-behavior: auto; }

body {
	margin: 0;
	background: #F8F7F2;
	color: #1E2A24;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1.05rem;
	line-height: 1.7;
	overflow-x: clip;
}

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

/* ============ Links: green tones only, underline on hover only ============ */
a {
	color: #0B3D2E;
	text-decoration: none;
}

a:hover,
a:focus {
	color: #15803d;
	text-decoration: underline;
}

/* ============ Headings: sensible sizes, deep green, never giant ============ */
h1, h2, h3, h4, h5, h6 {
	color: #0B3D2E;
	line-height: 1.25;
	margin-top: 1.4em;
	margin-bottom: 0.5em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }

/* ============ Care Guide circles (v5 preview parity) ============ */
.pr-circle img {
	width: 190px !important;
	height: 190px !important;
	object-fit: cover;
	border-radius: 50% !important;
	border: 4px solid #22c55e;
}

/* ============ Breadcrumb strip on front page (v5 preview parity) ============ */
.pr-crumb {
	background: #16402e;
	color: #bcd2c2;
	font-size: 13px;
	padding: 9px 20px;
}

.pr-crumb p {
	margin: 0;
}

/* ============ Typography: Georgia serif headings (v5 preview parity) ============ */
h1, h2, h3, h4, h5, h6 {
	font-family: Georgia, 'Times New Roman', serif;
}

/* ============ Main content container ============ */
.pr-main {
	padding: 32px 20px 48px;
}

/* ============ Header (v5 preview exact geometry) ============ */
.pr-header {
	padding: 0;
	border-bottom: 3px solid #22c55e;
	border-radius: 0 !important;
}

.pr-header-row {
	max-width: 1180px;
	margin: 0 auto;
	padding: 14px 4%;
	flex-wrap: nowrap;
	gap: 12px;
}

.pr-brand {
	line-height: 1.1;
	gap: 10px;
}

/* Logo mark: monstera badge (theme asset) left of the site-name text, header + footer.
   The badge file is square with white corners, so it is shown circle-cropped. */
.pr-brand-mark {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 50%;
	background: url('assets/logo-mark.png') center/cover no-repeat;
}

.pr-logo {
	margin: 0;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 1px;
	line-height: 1;
}

.pr-logo a {
	text-decoration: none;
}

.pr-logo a:hover {
	text-decoration: none;
}

.pr-logo-pots { color: #01D537; }
.pr-logo-rest { color: #ffffff; }

.pr-tagline {
	margin: 4px 0 0;
	color: #dce8dd;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 3px;
}

/* Navigation: exact v5 preview size/weight/spacing, white links on dark green.
   The !important white rules stay: WP core + theme.json link colours beat plain nav
   rules on some templates (the 2026-10-27 faint-nav bug). */
.pr-header a,
.pr-header .wp-block-navigation-item__content,
.pr-header .wp-block-navigation-item__content:visited,
.pr-header .wp-block-navigation__responsive-container a,
.pr-header .wp-block-navigation__responsive-container-content a {
	color: #ffffff !important;
	text-decoration: none;
}

.pr-nav .wp-block-navigation-item {
	margin: 0 10px;
}

.pr-nav .wp-block-navigation-item__content {
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.pr-nav .wp-block-navigation-item__content:hover {
	color: #ffffff;
	text-decoration: underline;
}

.pr-nav .wp-block-navigation__responsive-container-open {
	color: #ffffff;
}

/* Header search: exact v5 preview pill (dark pill, transparent input, green button).
   The button-inside variant wraps input+button in .wp-block-search__inside-wrapper,
   which WP core paints white — that wrapper MUST be dark too, or the pill looks
   white even though the outer form is dark (2026-10-27 v1.0.4 verification catch). */
.pr-search {
	background: #123f2f;
	border: 1px solid #2c5a44;
	border-radius: 30px !important;
	overflow: hidden;
	max-width: none;
}

.pr-search .wp-block-search__inside-wrapper {
	background: #123f2f;
	border: 0;
	border-radius: 30px;
	padding: 0;
	align-items: stretch;
}

.pr-search .wp-block-search__input {
	background: transparent !important;
	border: 0;
	color: #ffffff;
	width: 150px;
	padding: 8px 12px;
	font-size: 13px;
	outline: none;
	border-radius: 0;
}

.pr-search .wp-block-search__input::placeholder {
	color: #9db8a6;
}

/* Search button must fill the pill edge-to-edge (#11): full wrapper height, flush
   with the top, bottom and right border lines — no dark gap around the green. */
.pr-search .wp-block-search__button {
	background: #22c55e;
	border: 0;
	color: #06281a;
	font-weight: bold;
	padding: 9px 16px;
	margin: 0;
	border-radius: 0 30px 30px 0;
	align-self: stretch;
	display: flex;
	align-items: center;
}

/* ============ Buttons: bright green, white text ============ */
.wp-block-button__link,
.wp-block-search__button,
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
	background: #22c55e;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-weight: 700;
	text-decoration: none;
}

.wp-block-button__link:hover,
.wp-block-search__button:hover,
.wp-block-query-pagination-next:hover,
.wp-block-query-pagination-previous:hover {
	background: #15803d;
	color: #ffffff;
	text-decoration: none;
}

/* ============ Breadcrumbs (Rank Math shortcode) ============ */
.pr-breadcrumbs {
	font-size: 0.9rem;
	margin-bottom: 16px;
}

.pr-breadcrumbs a,
.pr-breadcrumbs a:visited {
	color: #0B3D2E;
	text-decoration: none;
}

.pr-breadcrumbs a:hover {
	color: #15803d;
	text-decoration: underline;
}

/* WPForms submit button: theme green, not plugin blue (2026-10-27 fix) */
.wpforms-submit,
input[type="submit"].wpforms-submit,
button[type="submit"].wpforms-submit {
	background: #22c55e !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
}

.wpforms-submit:hover,
input[type="submit"].wpforms-submit:hover {
	background: #15803d !important;
	color: #ffffff !important;
}

/* ============ Archive header: dark green area ============ */
.pr-archive-header {
	padding: 40px 20px;
}

.pr-archive-header h1,
.pr-archive-title {
	color: #ffffff;
	margin: 0;
}

.pr-archive-desc {
	color: rgba(255, 255, 255, 0.85);
	margin: 12px 0 0;
}

/* ============ Cards: white, soft shadow, rounded corners ============ */
.pr-card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(11, 61, 46, 0.08);
	overflow: hidden;
	padding-bottom: 16px;
}

.pr-card .wp-block-post-featured-image img {
	border-radius: 0;
}

.pr-card-label,
.pr-card-title,
.pr-card-excerpt {
	padding-left: 18px;
	padding-right: 18px;
}

.pr-card-label {
	margin: 14px 0 4px;
}

.pr-card-label a {
	color: #15803d;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.pr-card-title {
	margin-top: 0;
	font-size: 1.25rem;
}

.pr-card-title a {
	color: #0B3D2E;
}

.pr-card-excerpt {
	color: #1E2A24;
	font-size: 0.98rem;
}

/* Pagination row */
.pr-pagination {
	margin-top: 32px;
}

.pr-pagination .page-numbers {
	color: #0B3D2E;
	font-weight: 600;
	padding: 6px 10px;
}

/* ============ Single post ============ */
.pr-single .wp-block-post-title {
	color: #0B3D2E;
	margin-top: 0.2em;
}

.pr-single .wp-block-post-featured-image img {
	border-radius: 12px;
}

.pr-post-nav {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #d8e2dc;
}

/* ============ Homepage block content (existing static page blocks, styled not replaced) ============ */
.wp-block-cover {
	border-radius: 12px;
	overflow: hidden;
}

.wp-block-group.has-background {
	border-radius: 12px;
}

/* ============ Footer (v5 preview parity) ============ */
.pr-footer {
	padding: 40px 20px 0;
	color: #ffffff;
	border-top: 3px solid #22c55e;
	border-radius: 0 !important;
}

.pr-footer a {
	color: #cfe0d2;
}

.pr-footer a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.pr-footer-heading {
	color: #22c55e;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-top: 0;
}

.pr-footer-about {
	color: rgba(255, 255, 255, 0.85);
}

/* Footer brand: site name + tagline above the about column (preview parity, #9) */
.pr-footer-brand {
	margin-bottom: 14px;
	gap: 10px;
}

.pr-footer-cols {
	margin-bottom: 32px;
}

.pr-footer-cols ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.pr-footer-cols li {
	margin-bottom: 8px;
}

.pr-footer-bar {
	border-top: 1px solid #1d4a34;
	padding: 16px 0 28px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	text-align: left;
}

.pr-footer-bar p {
	margin: 6px 0;
}

.pr-footer-legal a {
	margin-left: 16px;
}

.pr-copyright {
	color: #ffffff;
	font-size: 0.95rem;
}

.pr-footer-legal {
	font-size: 0.9rem;
}

/* ============ 404 / search helpers ============ */
.pr-notfound {
	text-align: center;
	padding: 48px 20px;
}

.pr-notfound h1 {
	color: #0B3D2E;
}

/* ============ Learn panel (B1 caveat fix: editor has no Dimensions/Border) ============ */
.pr-learn {
	background: #EFF5EE;
	border-radius: 14px;
	padding: 28px;
}

.pr-learn a {
	text-decoration: none !important;
}

/* ============ Hero slider (#3: 4 VIP images, fade every 5s) ============ */
.pr-hero-slider {
	position: relative;
	height: 560px;
	overflow: hidden;
}

.pr-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.pr-hero-slide.active {
	opacity: 1;
}

.pr-hero-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Static text overlay: stays left, never over the woman (subjects are right-side) */
.pr-hero-content {
	position: absolute;
	left: 4%;
	top: 50%;
	transform: translateY(-50%);
	max-width: 520px;
	z-index: 2;
}

.pr-hero-content h1 {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 46px;
	line-height: 1.15;
	color: #ffffff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
	margin: 0 0 12px;
}

.pr-hero-content .pr-hero-subtitle {
	color: #ffffff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
	margin: 0 0 16px;
}

.pr-hero-content .pr-hero-button {
	display: inline-block;
	background: #16a34a;
	color: #06281a;
	font-weight: 700;
	padding: 12px 22px;
	border-radius: 6px;
	text-decoration: none;
}

.pr-hero-content .pr-hero-trust {
	color: #ffffff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
	font-size: 0.9rem;
	margin: 14px 0 0;
}

.pr-hero-dots {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 18px;
	z-index: 3;
	display: flex;
	gap: 8px;
	align-items: center;
}

.pr-hero-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: 0;
	padding: 0;
	cursor: pointer;
}

.pr-hero-dot.active {
	background: #ffffff;
}

.pr-hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	background: rgba(0, 0, 0, 0.35);
	color: #ffffff;
	border: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.pr-hero-prev { left: 14px; }
.pr-hero-next { right: 14px; }

@media (max-width: 800px) {
	.pr-hero-slider { height: 340px; }
	.pr-hero-content h1 { font-size: 30px; }
	.pr-hero-content { max-width: 86%; }
}

/* ============ Responsive: ~390px mobile ============ */
@media (max-width: 768px) {
	h1 { font-size: 1.7rem; }
	h2 { font-size: 1.4rem; }

	.pr-header {
		flex-wrap: wrap;
		gap: 12px;
	}

	/* MOBILE FIX v1.0.9: the header ROW itself was nowrap, so brand + hamburger
	   + search pill squeezed/overflowed on phones even though .pr-header wrapped.
	   Let the row wrap: brand + hamburger stay on line 1, the search (already
	   flex-basis 100% below) drops to its own full-width line. */
	.pr-header-row {
		flex-wrap: wrap;
	}

	.pr-brand {
		flex-shrink: 1;
		min-width: 0;
	}

	.pr-tagline {
		letter-spacing: 2px;
	}

	/* MOBILE FIX v1.0.9: keep hero text off the woman on phones. Cover-cropping
	   centers landscape slides on narrow screens, pulling the right-side woman
	   under the left text; favouring the left/plant side keeps text clean. */
	.pr-hero-slide img {
		object-position: 30% center;
	}

	/* MOBILE FIX v1.0.9: safety net — every column group stacks to one column
	   on phones, even where "Stack on mobile" was left off in the editor. */
	.wp-block-columns {
		flex-wrap: wrap !important;
	}

	.wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	/* MOBILE FIX v1.0.9: same safety net for grid-layout groups. */
	.wp-block-group.is-layout-grid {
		grid-template-columns: 1fr !important;
	}

	.pr-logo { font-size: 1.35rem; }

	.pr-search {
		max-width: none;
		flex-basis: 100%;
	}

	/* Query grids stack to one column */
	.wp-block-post-template.is-flex-container {
		flex-direction: column;
	}

	.wp-block-post-template.is-flex-container > li {
		width: 100%;
	}

	.pr-main {
		padding: 24px 16px 40px;
	}

	.pr-archive-header {
		padding: 28px 16px;
	}
}
