/**
 * HeliumWP – base, header, footer and core block styles.
 *
 * Colours, fonts and button styles come from theme.json. This file covers what
 * theme.json can't express, keeping the spacing of the original StorePlugin theme.
 */

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

html {
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	-webkit-font-smoothing: antialiased;
}

body {
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	border-style: none;
}

svg {
	overflow: hidden;
	vertical-align: middle;
}

a {
	transition: 0.3s ease-in-out;
}

blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, pre {
	margin: 0;
}

/* The old theme spaced content with bottom margins, not block gap. Restore that
   rhythm for blocks inside flow/constrained layouts (and plain HTML elsewhere). */
p {
	margin: 0 0 25px;
}
.is-layout-flow > p,
.is-layout-constrained > p {
	margin-block-end: 25px;
}
.is-layout-flow > :where(ul, ol),
.is-layout-constrained > :where(ul, ol) {
	margin-block: 1em;
}
.is-layout-flow > .wp-block-columns,
.is-layout-constrained > .wp-block-columns {
	margin-block-end: 1.75em;
}

h3 strong {
	font-weight: 600;
}
h3.wp-block-heading:not([class*=" "]) {
	margin-bottom: 20px;
}
ol.wp-block-list {
	list-style-position: inside;
	margin-bottom: 25px;
}
ol.wp-block-list li {
	margin-bottom: 10px;
}

h1.entry-title,
.wp-block-post-title.entry-title,
.page-title {
	font-size: 42px;
	font-weight: 700;
	margin-bottom: 25px;
}

table {
	border-collapse: separate;
	border-spacing: 0;
}
table, td, th {
	border: 1px solid #f2f2f2;
}
td, th {
	padding: 0.7em 1em;
	border-width: 0 1px 1px 0;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

@media screen and (max-width: 767.98px) {
	:root {
		--wp--style--root--padding-left: 15px;
		--wp--style--root--padding-right: 15px;
	}
}

/* ---------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------- */
.storeplugin-header {
	position: relative;
	width: 100%;
	z-index: 20;
	border-bottom: 1px solid #ccc;
	margin-bottom: 50px;
}

/* Home page: floating header over the hero. */
.home .storeplugin-header {
	position: absolute;
	left: 25px;
	top: 50px;
	width: calc(100% - 50px);
	margin: 0;
	border: 0;
}
.admin-bar.home .storeplugin-header {
	top: calc(50px + var(--wp-admin--admin-bar--height, 32px));
}

.wp-site-blocks .storeplugin-navbar {
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background-color: #fff;
	border-radius: 20px;
	padding: 25px 40px;
	margin: 0 25px;
}

.storeplugin-navbar .wp-block-site-logo img {
	max-width: 250px;
	height: auto;
}

.storeplugin-navbar-nav .wp-block-navigation__container {
	gap: 30px;
}
.storeplugin-navbar-nav .wp-block-navigation-item__content {
	color: #000;
}
.storeplugin-navbar-nav .wp-block-navigation-item__content:hover,
.storeplugin-navbar-nav .wp-block-navigation-item__content:focus-visible,
.storeplugin-navbar-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
}

.storeplugin-header-btn .wp-block-button__link {
	background-color: var(--wp--preset--color--accent-light);
	color: #000;
}
.storeplugin-header-btn .wp-block-button__link:hover,
.storeplugin-header-btn .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--primary);
	color: #fff;
}

.storeplugin-navbar-nav .wp-block-navigation-item.mobile-only-menu {
	display: none;
}

@media (min-width: 1440px) {
	.wp-site-blocks .storeplugin-navbar {
		margin: 0 50px;
	}
	.storeplugin-navbar-nav .wp-block-navigation__container {
		gap: 55px;
	}
}

/* Collapse to the hamburger below 1200px (core switches at 600px). */
@media (max-width: 1199.98px) {
	.storeplugin-navbar-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.storeplugin-navbar-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
	.storeplugin-navbar-nav .wp-block-navigation__responsive-container.is-menu-open {
		padding: 30px 25px;
	}
	.storeplugin-navbar-nav .is-menu-open .wp-block-navigation__responsive-container-content,
	.storeplugin-navbar-nav .is-menu-open .wp-block-navigation__container {
		align-items: flex-start;
		gap: 20px;
		font-size: 20px;
	}
	.storeplugin-navbar-nav .is-menu-open .wp-block-navigation__responsive-container-content {
		padding-top: 40px;
	}
	.storeplugin-navbar-nav .is-menu-open .wp-block-navigation-item.mobile-only-menu {
		display: flex;
	}
	.storeplugin-navbar-nav {
		margin-left: auto;
	}
	.storeplugin-navbar .storeplugin-header-btn {
		display: none;
	}
	.wp-site-blocks .storeplugin-navbar {
		border-radius: 15px;
		padding: 15px;
		margin: 0 15px;
	}
	.storeplugin-navbar .wp-block-site-logo img {
		max-width: 200px;
	}
	.home .storeplugin-header {
		left: 15px;
		top: 30px;
		width: calc(100% - 30px);
	}
}

@media (min-width: 768px) and (max-width: 1199.98px) {
	.home .storeplugin-header {
		left: 25px;
		top: 50px;
		width: calc(100% - 50px);
	}
	.wp-site-blocks .storeplugin-navbar {
		border-radius: 25px;
		padding: 25px;
		margin: 0 25px;
	}
}

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------- */
.storeplugin-footer {
	background-color: #00021A;
	border-radius: 25px;
	margin: 0 25px;
	padding: 120px 0;
}
.storeplugin-footer .storeplugin-container {
	margin-bottom: 0;
}

.footer__items {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.storeplugin-footer .footer__item p {
	color: #fff;
	max-width: 300px;
	margin-bottom: 0;
}

.storeplugin-footer .footer-logo {
	display: block;
	margin: 0 0 35px;
}
.storeplugin-footer .footer-logo img {
	max-width: 272px;
	height: auto;
}

.storeplugin-footer .footer__item h3 {
	font-size: 24px;
	font-weight: 600;
	line-height: 34px;
	color: #fff;
	margin: 0 0 35px;
}

.storeplugin-footer .footer_menu {
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}
.storeplugin-footer .footer_menu .wp-block-navigation__container {
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}
.footer__item li {
	max-width: 244px;
}
.footer__item li:not(:last-child) {
	margin-bottom: 18px;
}
.storeplugin-footer .footer_menu .wp-block-navigation-item__content {
	color: #999;
}
.storeplugin-footer .footer_menu .wp-block-navigation-item__content:hover {
	color: #fff;
}
.storeplugin-footer .footer__view-all .wp-block-navigation-item__content {
	font-weight: 600;
	line-height: 26px;
	color: #fff;
	text-decoration: underline;
}
.storeplugin-footer .footer__view-all .wp-block-navigation-item__content:hover {
	color: #999;
	letter-spacing: 0.5px;
}

.storeplugin-footer ul.footer__social-link {
	gap: 15px;
	margin: 30px 0;
	padding: 0;
}
.storeplugin-footer ul.footer__social-link li.wp-social-link {
	background-color: var(--wp--preset--color--primary);
	color: #fff;
	border-radius: 4px;
	margin: 0;
	transition: 0.3s ease-in-out;
}
.storeplugin-footer ul.footer__social-link li.wp-social-link:hover {
	background-color: var(--wp--preset--color--accent);
	color: #000;
	transform: none;
}
.storeplugin-footer ul.footer__social-link li.wp-social-link a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
}
.storeplugin-footer ul.footer__social-link li.wp-social-link svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

@media screen and (min-width: 1440px) {
	.storeplugin-footer .footer__item p {
		max-width: 418px;
	}
}

@media screen and (max-width: 767.98px) {
	.storeplugin-footer .footer__item h3 {
		font-size: 22px;
		margin-bottom: 25px;
	}
}

/* ---------------------------------------------------------------------------
 * Buttons & block styles
 * ------------------------------------------------------------------------- */
.wp-block-button.is-style-accent .wp-block-button__link {
	background-color: var(--wp--preset--color--accent-light);
	color: #000;
}
.wp-block-button.is-style-accent .wp-block-button__link:hover,
.wp-block-button.is-style-accent .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--primary);
	color: #fff;
}

.wp-block-button.is-style-light .wp-block-button__link {
	background-color: #fff;
	color: #000;
	border-radius: 6px;
	padding: 10px 24px;
	font-size: 16px;
	font-weight: 500;
}
.wp-block-button.is-style-light .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--primary);
	color: #fff;
}

.is-style-section-title,
.storeplugin-section-title {
	font-size: 42px;
	font-weight: 700;
	line-height: 1.2;
}

/* Highlight a word in a section title: select it and use Highlight > class, or
   wrap it in <span> inside Custom HTML. */
.storeplugin-section-title mark.heliumwp-highlight,
.is-style-section-title mark.heliumwp-highlight {
	background: none;
	color: inherit;
	display: inline-block;
	position: relative;
	z-index: 0;
}
.storeplugin-section-title mark.heliumwp-highlight::before,
.is-style-section-title mark.heliumwp-highlight::before {
	position: absolute;
	content: "";
	left: 0;
	bottom: 2px;
	width: calc(100% + 7px);
	height: 62%;
	background-color: #FFAE00;
	border-radius: 56px;
	opacity: 0.8;
	z-index: -1;
	transform: rotate(-1.3deg);
}

/* Native-block versions of the home page sections (patterns/). */
.heliumwp-hero {
	padding-bottom: 120px;
}
.heliumwp-hero .storeplugin-hero__text p {
	margin-left: auto;
	margin-right: auto;
}
.heliumwp-features {
	padding-top: 120px;
}
.storeplugin-process__icon img,
.storeplugin-chioce__icon img {
	width: auto;
}
.storeplugin-chioce__icon {
	margin: 0;
}
p.heliumwp-stars,
.storeplugin-testimonial__slide > .heliumwp-stars {
	color: #FF9900;
	font-size: 22px;
	letter-spacing: 2px;
	line-height: 1;
	margin: 0;
}

/* Search form */
.heliumwp-search .wp-block-search__input {
	border: 1px solid #d5d5d5;
	border-radius: 80px 0 0 80px;
	padding: 12px 20px;
	font: inherit;
}
.heliumwp-search .wp-block-search__button {
	margin-left: 0;
	border-radius: 0 80px 80px 0;
}

/* Post lists */
.storeplugin-posts__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.storeplugin-posts__item {
	padding-bottom: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid #eee;
}
.storeplugin-posts__item .entry-title {
	font-size: 30px;
	font-weight: 600;
	margin-bottom: 10px;
}
.storeplugin-posts__item .entry-title a {
	color: inherit;
}
.entry-meta a {
	color: inherit;
}

/* ---------------------------------------------------------------------------
 * Section margins. WordPress zeroes the top margin of a layout's first child and
 * the bottom margin of its last child; these sections relied on them.
 * ------------------------------------------------------------------------- */
.wp-site-blocks .storeplugin-hero {
	margin-top: 25px;
}
/* Let section margins collapse with the header's, as with the old home.php template. */
.site-main--canvas > .wp-block-post-content {
	display: block;
}
@media screen and (max-width: 767.98px) {
	.wp-site-blocks .storeplugin-hero {
		margin-top: 15px;
	}
}
