/*
Theme Name: PowerFarmer
Theme URI: https://powerfarmer.com/
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: powerfarmer
*/

/* ---------- Tokens ---------- */
:root {
	--pf-accent: #dd3333;
	--pf-text: #666666;
	--pf-heading: #444444;
	--pf-page-bg: #eaeaea;
	--pf-header-bg: #f8f8f8;
	--pf-footer-bg: #27313d;
	--pf-footer-text: #aaaaaa;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	padding: 15px 0;
	background: var(--pf-page-bg);
	color: var(--pf-text);
	font: 300 16px/20px 'Roboto', Helvetica, Arial, sans-serif;
	word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	padding-bottom: 18px;
	color: var(--pf-heading);
	font-family: 'Roboto Slab', Georgia, serif;
	font-weight: 400;
}
h1 { font-size: 30px; line-height: 36px; }
h2 { font-size: 28px; line-height: 34px; }
h3 { font-size: 26px; line-height: 32px; }
h4 { font-size: 24px; line-height: 30px; }

p { margin: 0 0 15px; line-height: 24px; }
strong, b { font-weight: 700; }
img { max-width: 100%; height: auto; vertical-align: middle; }
figure { margin: 0; }

a { color: var(--pf-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--pf-accent); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 10px; left: 10px; z-index: 100000;
	padding: 12px 20px; background: #fff; color: var(--pf-heading);
}

.clearfix::after { content: ""; display: table; clear: both; }

/* ---------- Boxed page ---------- */
#page {
	width: 97%;
	max-width: 1180px;
	margin: 0 auto;
	background: #fff;
	border-top: 3px solid var(--pf-accent);
	box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
	overflow: hidden;
}

.inner-wrap {
	width: 94%;
	max-width: 1100px;
	margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header-inner {
	background: var(--pf-header-bg);
	border-bottom: 1px solid #f2f2f2;
}

.site-branding { padding: 70px 0 0; }

.site-logo { display: block; }
.site-logo img { display: block; width: 100%; height: auto; }

/* Main navigation */
.main-navigation { background: #fff; }
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-navigation li { float: left; position: relative; }
.main-navigation .menu::after { content: ""; display: table; clear: both; }
.main-navigation a {
	display: block;
	padding: 12px 16px;
	color: var(--pf-heading);
	font-size: 16px;
	font-weight: 300;
}
.main-navigation a:hover,
.main-navigation li:hover > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
	background: var(--pf-accent);
	color: #fff;
	text-decoration: none;
}

/* Dropdowns (not used by the original site, but supported) */
.main-navigation ul ul {
	position: absolute;
	top: 100%;
	left: -99999px;
	width: 200px;
	z-index: 9999;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { left: 0; }
.main-navigation ul ul li { float: none; border-bottom: 1px solid #f8f8f8; }
.main-navigation ul ul a { font-size: 14px; padding: 8px 14px; }

.menu-toggle {
	display: none;
	width: 100%;
	margin: 0;
	padding: 8px 22px;
	border: 0;
	background: #fff;
	color: var(--pf-heading);
	font: 300 20px/1.4 'Roboto', Helvetica, Arial, sans-serif;
	text-align: center;
	cursor: pointer;
}
.menu-toggle .bars {
	display: inline-block;
	width: 20px;
	height: 14px;
	margin-right: 10px;
	vertical-align: -1px;
	background:
		linear-gradient(var(--pf-accent), var(--pf-accent)) 0 0 / 100% 2px no-repeat,
		linear-gradient(var(--pf-accent), var(--pf-accent)) 0 6px / 100% 2px no-repeat,
		linear-gradient(var(--pf-accent), var(--pf-accent)) 0 12px / 100% 2px no-repeat;
}

/* Front-page banner */
.home-banner img { display: block; width: 100%; height: auto; }

/* ---------- Content ---------- */
#main { padding-top: 50px; }

.entry-title { font-size: 30px; line-height: 36px; }

#content .hentry { padding-bottom: 35px; }

.entry-content ul,
.entry-content ol { margin: 0 0 30px; padding: 0 0 0 35px; }
.entry-content ul { list-style: square; }
.entry-content li { line-height: 1.3; margin-bottom: 4px; }

.alignleft { float: left; margin: 0 30px 15px 0; }
.alignright { float: right; margin: 0 0 15px 30px; }
.aligncenter { display: block; margin: 0 auto 15px; }
.wp-block-image .alignleft, .wp-block-image.alignleft { float: left; margin: 0 30px 15px 0; }
.wp-block-image .alignright, .wp-block-image.alignright { float: right; margin: 0 0 15px 30px; }
.entry-content .wp-block-image { margin-bottom: 15px; }

/* Team cards on the Contact page: photo floated beside the details */
.entry-content .wp-block-column .wp-block-image .alignleft,
.entry-content .wp-block-column .wp-block-image.alignleft { margin: 0 15px 10px 0; }
.entry-content .wp-block-columns { margin-bottom: 20px; }
.entry-content .wp-block-column > .wp-block-image ~ p { overflow: hidden; }
.entry-content .wp-block-column::after { content: ""; display: table; clear: both; }

/* ---------- Footer ---------- */
.footer-widgets-wrapper {
	background: var(--pf-footer-bg);
	border-top: 1px solid #f2f2f2;
}
.footer-team {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 3.6364%;
	padding: 30px 0 10px;
	color: var(--pf-footer-text);
	font-size: 14px;
	line-height: 20px;
}
.team-member {
	display: grid;
	grid-template-columns: 98px 1fr;
	gap: 0 16px;
	align-items: center;
	padding-bottom: 25px;
}
.team-member img { display: block; width: 98px; height: 126px; object-fit: cover; }
.team-member p { margin: 0 0 8px; font-size: 14px; line-height: 20px; color: var(--pf-footer-text); }
.team-member .team-name { color: var(--pf-footer-text); }
.footer-team a { color: #fff; }
.footer-team a:hover { color: var(--pf-accent); text-decoration: none; }

.footer-socket-wrapper {
	padding: 10px 0;
	background: var(--pf-header-bg);
	border-top: 3px solid var(--pf-accent);
}
.copyright { color: var(--pf-text); font-size: 12px; }
.copyright a { color: var(--pf-text); }
.copyright a:hover { color: var(--pf-accent); }

/* Scroll-to-top */
#scroll-up {
	position: fixed;
	right: 20px;
	bottom: 20px;
	display: none;
	padding: 8px 14px;
	border-radius: 2px;
	background: var(--pf-accent);
	color: #fff;
	opacity: 0.5;
	font-size: 18px;
	line-height: 1;
}
#scroll-up.is-visible { display: block; }
#scroll-up:hover { opacity: 1; text-decoration: none; }

/* ---------- Responsive ---------- */
@media screen and (max-width: 1100px) {
	.footer-team { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
	.site-branding { padding-top: 30px; }
	.menu-toggle { display: block; }
	.main-navigation .menu-container { display: none; }
	.main-navigation.toggled .menu-container { display: block; }
	.main-navigation li { float: none; }
	.main-navigation a { padding: 10px 20px; border-bottom: 1px solid #f8f8f8; }
	.main-navigation ul ul { position: static; width: auto; box-shadow: none; }
	.main-navigation ul ul a { padding-left: 40px; }
	.footer-socket-wrapper .copyright { text-align: center; }
	.entry-content > .wp-block-image .alignleft,
	.entry-content > .wp-block-image.alignleft { float: none; margin-right: 0; }
}

@media screen and (max-width: 600px) {
	.footer-team { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
