/*
Theme Name:   GeneratePress Child
Description:  Lightweight, mobile-first GeneratePress child theme for ReVolt Battery Exchange.
Author:       ReVolt Battery Exchange
Template:     generatepress
Version:      1.0.3
Requires at least: 6.5
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:  generatepress-child
*/

/* System fonts only: nothing is downloaded. */
body,
button,
input,
select,
textarea {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
	font-size: 17px;
	line-height: 1.65;
}

h1,
h2,
h3,
h4 {
	line-height: 1.25;
	color: var(--contrast);
}

h1 {
	font-size: 1.75rem;
	font-weight: 700;
}

h2 {
	font-size: 1.5rem;
	font-weight: 700;
}

h3 {
	font-size: 1.25rem;
	font-weight: 700;
}

h4 {
	font-size: 1.1rem;
	font-weight: 700;
}

/* Header: site name and tap-to-call button. Stacked on phones. */
.inside-header {
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	padding: 14px 16px;
}

.main-title {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}

.main-title a,
.main-title a:hover {
	color: #fff;
	text-decoration: none;
}

.revolt-call {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 999px;
	background: #fff;
	color: var(--brand-red-dark);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.site-header .revolt-call,
.site-header .revolt-call:visited {
	color: var(--brand-red-dark);
}

.site-header .revolt-call:hover,
.site-header .revolt-call:focus {
	background: var(--contrast);
	color: #fff;
}

.revolt-call__icon {
	flex: none;
}

/* Menu bar below the header. */
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle {
	font-weight: 600;
}

.main-navigation .menu-toggle {
	min-height: 44px;
}

/* Submenu links at least 44px tall for touch. */
.main-navigation .main-nav ul ul li a {
	padding-top: 14px;
	padding-bottom: 14px;
	font-size: 15px;
}

.main-navigation a:focus-visible,
.main-navigation .menu-toggle:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -3px;
}

/* Visible keyboard focus on every link and control. */
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid var(--contrast);
	outline-offset: 2px;
}

.site-header a:focus-visible,
.sidebar a:focus-visible,
.site-footer a:focus-visible {
	outline-color: #fff;
}

/* Content boxes: full width on phones with a 16px gutter. */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation {
	padding: 24px 16px;
}

.entry-content img,
.wp-caption {
	max-width: 100%;
	height: auto;
}

.wp-caption-text {
	font-size: 0.875rem;
	color: var(--contrast-2);
}

/* Rank Math breadcrumbs. */
.rank-math-breadcrumb {
	font-size: 0.9rem;
	color: var(--contrast-2);
}

.rank-math-breadcrumb p {
	margin-bottom: 1em;
}

/* Sidebar: white text on the brand red background. */
.sidebar .widget {
	padding: 0 16px;
}

.sidebar .widget-title {
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.sidebar .widget a {
	text-decoration: underline;
}

.sidebar .widget hr {
	background-color: #fff;
}

.sidebar .search-field {
	width: 100%;
	border-color: #fff;
	background: #fff;
	color: var(--contrast);
}

/* Footer menu in the copyright bar. */
.copyright-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
}

.revolt-footer-menu ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.revolt-footer-menu a {
	color: #fff;
	text-decoration: underline;
}

/* Breadcrumbs above category archive titles. */
.page-header .rank-math-breadcrumb {
	margin-bottom: 0.75em;
}

/* Store details on the Stores page. */
.entry-content .revolt-address,
.entry-content .revolt-phone {
	margin-bottom: 1.5em;
	font-style: normal;
}

.entry-content .revolt-hours {
	margin-bottom: 1.5em;
}

/* Footer: address, phone and hours. */
.revolt-footer {
	background: var(--contrast);
	color: #fff;
}

.revolt-footer__inner {
	display: grid;
	gap: 24px;
	padding: 32px 16px;
}

.revolt-footer__heading {
	margin-bottom: 8px;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.revolt-footer address,
.revolt-footer p {
	margin: 0;
	font-style: normal;
}

.revolt-footer a {
	color: #fff;
	text-decoration: underline;
}

.revolt-hours {
	margin: 0;
}

.revolt-hours__row {
	display: flex;
	gap: 12px;
}

.revolt-hours dt {
	min-width: 6.5em;
	font-weight: 600;
}

.revolt-hours dd {
	margin: 0;
}

.site-info {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 0.875rem;
}

.inside-site-info {
	padding: 16px;
}

/* Small tablets and up. */
@media (min-width: 600px) {
	.inside-header {
		justify-content: space-between;
	}

	.main-title {
		text-align: left;
	}

	.revolt-footer__inner {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Tablets and up: more breathing room. */
@media (min-width: 769px) {
	h1 {
		font-size: 2.25rem;
	}

	h2 {
		font-size: 1.75rem;
	}

	h3 {
		font-size: 1.35rem;
	}

	/* Line the site name up with the menu and content text. */
	.inside-header {
		padding: 20px 40px;
	}

	.main-title {
		font-size: 1.75rem;
	}

	.separate-containers .inside-article,
	.separate-containers .comments-area,
	.separate-containers .page-header,
	.separate-containers .paging-navigation {
		padding: 40px;
	}

	.sidebar .widget {
		padding: 0;
	}

	.revolt-footer__inner {
		padding: 40px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
