/* WordPress layer: menus, admin bar, inner pages. The homepage design itself is in main.css. */

/* Typography: the design names Inter, now served with the theme */
@font-face {
	font-family: Inter;
	src: url("../fonts/inter-variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

body {
	font-size: 16px;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	font-feature-settings: "cv11", "ss03";
}

h1,
h2,
h3,
.section-title h2,
.product-head h2,
.setup-copy h2,
.spotlight-copy h2,
.contact h2,
.page-hero h1 {
	font-weight: 700;
	letter-spacing: -.035em;
}

h1,
.page-hero h1,
.contact h2 {
	line-height: 1.04;
}

.section-title h2,
.product-head h2,
.setup-copy h2,
.spotlight-copy h2 {
	line-height: 1.06;
}

h3,
.product-copy h3,
.setup-step h3,
.support-card h3 {
	font-weight: 650;
	letter-spacing: -.015em;
}

.kicker,
.card-copy > span,
.product-copy > span {
	font-weight: 700;
	letter-spacing: .1em;
}

.product-tag {
	padding: 6px 10px;
	font-weight: 700;
	letter-spacing: .05em;
}

.marquee-track span {
	font-weight: 600;
	letter-spacing: .14em;
}

.feature-line {
	letter-spacing: .05em;
}

.section-title p,
.setup-copy > p,
.spotlight-copy > p,
.support-card p,
.setup-step p,
.card-copy p,
.product-copy > p,
.footer-brand p,
.footer-grid a,
.footer-grid > div > p {
	line-height: 1.6;
	font-weight: 400;
}

.section-title p,
.setup-copy > p,
.spotlight-copy > p {
	font-size: 16px;
}

.btn,
.hero-cta,
.text-link,
.product-add,
.filters button,
.card-copy b,
.contact-form button {
	font-weight: 650;
	letter-spacing: 0;
}

.product-copy strong,
.cart-link,
.cart-count {
	font-weight: 700;
}

.footer-grid h3 {
	font-weight: 700;
	letter-spacing: .08em;
}

/* Slide-out cart */
.side-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 300;
	background: rgba(9, 24, 39, .5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}

.side-cart {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 301;
	display: flex;
	flex-direction: column;
	width: min(420px, 100%);
	background: #fff;
	box-shadow: -20px 0 60px rgba(9, 24, 39, .2);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility .35s;
}

.side-cart-open {
	overflow: hidden;
}

.side-cart-open .side-cart-overlay {
	opacity: 1;
	visibility: visible;
}

.side-cart-open .side-cart {
	transform: none;
	visibility: visible;
}

.admin-bar .side-cart {
	top: 32px;
}

.side-cart-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 22px 24px;
	background: linear-gradient(120deg, #10263f, #203e62);
	color: #fff;
}

.side-cart-head h2 {
	margin: 0;
	font-size: 22px;
}

.side-cart-head button {
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.side-cart-head button:hover {
	background: #fff;
	color: var(--ink);
}

.side-cart .widget_shopping_cart_content {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	font-size: 15px;
}

.side-cart .woocommerce-mini-cart {
	flex: 1;
	margin: 0;
	padding: 0 24px;
	overflow-y: auto;
	list-style: none;
}

.side-cart .woocommerce-mini-cart-item {
	position: relative;
	min-height: 104px;
	padding: 18px 30px 18px 0;
	border-bottom: 1px solid var(--line);
}

.side-cart .woocommerce-mini-cart-item a:not(.remove) {
	display: block;
	font-weight: 650;
	line-height: 1.35;
}

.side-cart .woocommerce-mini-cart-item a:not(.remove):hover {
	color: var(--blue);
}

.side-cart .woocommerce-mini-cart-item img {
	float: left;
	width: 68px;
	height: 68px;
	margin-right: 14px;
	padding: 6px;
	object-fit: contain;
	background: linear-gradient(145deg, #f7f9fb, #edf3f8);
}

.side-cart .quantity {
	display: block;
	margin-top: 6px;
	color: var(--muted);
	font-size: 14px;
}

.side-cart a.remove {
	position: absolute;
	top: 16px;
	right: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	color: var(--muted);
	font-size: 18px;
	line-height: 22px;
	text-align: center;
}

.side-cart a.remove:hover {
	background: #c72e2e;
	color: #fff;
}

.side-cart .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 18px 24px;
	font-size: 18px;
	font-weight: 700;
}

.side-cart .woocommerce-mini-cart__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0;
	padding: 0 24px 18px;
}

.side-cart .woocommerce-mini-cart__buttons a {
	padding: 14px 10px;
	background: var(--ink);
	color: #fff;
	font-size: 14px;
	font-weight: 650;
	text-align: center;
	transition: background .25s;
}

.side-cart .woocommerce-mini-cart__buttons a.checkout {
	background: var(--blue);
}

.side-cart .woocommerce-mini-cart__buttons a:hover {
	background: #0756d0;
}

.side-cart .woocommerce-mini-cart__empty-message {
	flex: 1;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 40px 24px;
	color: var(--muted);
	text-align: center;
}

.side-cart-help {
	margin: 0;
	padding: 14px 24px;
	background: var(--cream);
	color: var(--muted);
	font-size: 14px;
	text-align: center;
}

.side-cart-help a {
	color: var(--blue);
	font-weight: 650;
}

@media (max-width: 782px) {
	.admin-bar .side-cart {
		top: 46px;
	}
}

:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

/* Site-wide minimum text size */
small,
small a,
select,
textarea {
	font-size: 14px;
}

/* An inset of 0 would cut heading descenders and card hover shadows once revealed */
.js .motion.in {
	clip-path: inset(-100px);
}

/* Top bar */
.topbar {
	background: var(--ink);
	color: #c9d6e4;
	font-size: 14px;
}

.topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	width: min(1220px, calc(100% - 48px));
	min-height: 40px;
	margin: auto;
}

.topbar-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar-contact li,
.topbar-contact a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.topbar-contact a:hover {
	color: #fff;
}

.topbar svg {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	fill: none;
	stroke: #79b4ff;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.topbar-note {
	flex: 0 0 auto;
	margin: 0;
	color: #fff;
	font-weight: 700;
}

/* Header: stays in the page flow, so pages need no offset for it */
.site-header,
.site-header.scrolled {
	position: sticky;
	top: 0;
	background: #fff;
	border-bottom: 1px solid var(--line);
	backdrop-filter: none;
	transition: box-shadow .3s;
}

.site-header.scrolled {
	box-shadow: 0 10px 30px rgba(23, 54, 89, .09);
}

.nav-shell {
	width: min(1220px, calc(100% - 48px));
	height: 82px;
}

.nav-links {
	margin: 0 auto;
}

.nav-links .nav-list {
	gap: 30px;
}

.nav-links a {
	display: block;
	padding: 6px 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
}

.nav-links a:after {
	bottom: 0;
	height: 2px;
}

.nav-links a:hover,
.nav-links .current-menu-item > a {
	color: var(--blue);
}

.nav-links .current-menu-item > a:after {
	transform: scaleX(1);
}

/* Header dropdown */
.nav-links .nav-list > li {
	position: relative;
}

.nav-links .nav-list > li > a {
	padding: 29px 0;
}

.nav-links .nav-list > li > a:after {
	bottom: 20px;
}

.nav-links .menu-item-has-children > a {
	display: flex;
	align-items: center;
	gap: 7px;
}

.nav-links .menu-item-has-children > a:before {
	content: "";
	order: 2;
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .25s, margin .25s;
}

.nav-links .menu-item-has-children:hover > a:before,
.nav-links .menu-item-has-children:focus-within > a:before {
	margin-top: 3px;
	transform: rotate(225deg);
}

.nav-links .sub-menu {
	position: absolute;
	top: 100%;
	left: -24px;
	z-index: 20;
	display: grid;
	grid-template-columns: repeat(2, 300px);
	gap: 4px;
	margin: 0;
	padding: 14px;
	list-style: none;
	background: #fff;
	border-top: 2px solid var(--blue);
	box-shadow: 0 26px 60px rgba(23, 54, 89, .18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .22s, transform .22s, visibility .22s;
}

.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nav-links .sub-menu a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	color: var(--ink);
	font-weight: 400;
	transition: background .2s;
}

.nav-links .sub-menu a:after {
	display: none;
}

.nav-links .sub-menu a:hover,
.nav-links .sub-menu .current-menu-item > a {
	background: var(--ice);
	color: var(--ink);
}

.nav-links .sub-menu img {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	padding: 5px;
	object-fit: contain;
	background: linear-gradient(145deg, #f7f9fb, #edf3f8);
}

.submenu-text {
	display: grid;
	gap: 2px;
}

.submenu-text b {
	font-size: 15px;
	font-weight: 650;
}

.submenu-text small {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.4;
}

.nav-links .sub-menu a:hover b {
	color: var(--blue);
}

/* Mobile submenu */
.mobile-nav {
	max-height: calc(100vh - 120px);
	overflow-y: auto;
}

.mobile-nav .nav-list li {
	position: relative;
}

.mobile-nav .sub-menu {
	display: none;
	margin: 0;
	padding: 0 0 0 16px;
	list-style: none;
	border-bottom: 1px solid var(--line);
}

.mobile-nav .is-open > .sub-menu {
	display: block;
}

.mobile-nav .sub-menu a {
	font-weight: 500;
}

.mobile-nav .sub-menu li:last-child a {
	border-bottom: 0;
}

.submenu-toggle {
	position: absolute;
	top: 4px;
	right: 0;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.submenu-toggle:before {
	content: "";
	display: block;
	width: 9px;
	height: 9px;
	margin: 0 auto;
	border-right: 2px solid var(--ink);
	border-bottom: 2px solid var(--ink);
	transform: rotate(45deg);
	transition: transform .25s;
}

.is-open > .submenu-toggle:before {
	transform: rotate(225deg);
}

.nav-tools {
	flex: 0 0 auto;
	margin-left: 0;
	gap: 8px;
}

.round {
	width: 44px;
	height: 44px;
	background: #fff;
	border-color: var(--line);
	transition: border-color .25s, color .25s;
}

.round:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.round svg,
.cart-link svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cart-link {
	display: flex;
	align-items: center;
	gap: 9px;
	height: 44px;
	margin-left: 4px;
	padding: 0 7px 0 16px;
	background: var(--ink);
	border: 0;
	border-radius: 30px;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	transition: background .25s;
}

.cart-link:hover {
	background: var(--blue);
}

.cart-link:hover .cart-count {
	background: #fff;
	color: var(--blue);
}

.cart-count {
	min-width: 30px;
	height: 30px;
}

.search-drawer,
.mobile-nav {
	top: 100%;
}

.search-drawer {
	box-shadow: 0 16px 30px rgba(23, 54, 89, .1);
}

.mobile-nav {
	background: #fff;
}

.mobile-nav a {
	display: block;
	padding: 13px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
	font-weight: 700;
}

.mobile-nav > a:last-child {
	border-bottom: 0;
}

/* Sections reached by menu links clear the sticky header */
main [id] {
	scroll-margin-top: 90px;
}

/* Admin bar */
.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

@media (max-width: 1000px) {
	.topbar-contact .topbar-address {
		display: none;
	}

	.nav-tools {
		margin-left: auto;
	}
}

@media (max-width: 760px) {
	.topbar-note {
		display: none;
	}
}

/* Smaller laptops: six menu items, the logo and four controls share one row */
@media (min-width: 1001px) and (max-width: 1240px) {
	.brand {
		width: 170px;
	}

	.brand img {
		width: 165px;
	}

	.nav-links .nav-list {
		gap: 18px;
	}

	.nav-tools {
		gap: 5px;
	}
}

@media (min-width: 1001px) and (max-width: 1120px) {
	.nav-links .nav-list {
		gap: 14px;
	}

	.nav-links a {
		font-size: 14px;
	}
}

/* Menus: WordPress prints lists where the design had bare links */
.nav-list,
.footer-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-links .nav-list {
	display: flex;
	gap: 35px;
}

.mobile-nav .nav-list a {
	display: block;
}

/* Header controls that became links or forms */
.cart-link {
	display: flex;
}

.search-drawer {
	visibility: hidden;
	transition: max-height .35s, visibility .35s;
}

.search-drawer.open {
	visibility: visible;
}

.search-drawer form {
	display: contents;
}

/* Stops cards waiting to slide in from widening the page on phones */
#main {
	overflow-x: clip;
}

@media (max-width: 680px) {
	.topbar-inner {
		width: calc(100% - 28px);
		justify-content: center;
	}

	.topbar-contact {
		flex-wrap: nowrap;
		justify-content: center;
		gap: 14px;
	}

	.topbar-contact svg {
		display: none;
	}

	.nav-shell {
		width: calc(100% - 24px);
		height: 70px;
	}

	.nav-icon {
		display: none;
	}

	.round {
		display: grid;
		width: 40px;
		height: 40px;
	}

	.nav-tools .search-open {
		display: grid;
	}

	.nav-tools .nav-icon {
		display: none;
	}

	.cart-link {
		height: 40px;
		margin-left: 0;
		padding: 0 5px 0 11px;
		gap: 6px;
	}

	.cart-link span {
		display: none;
	}

	.cart-count {
		min-width: 28px;
		height: 28px;
	}

	.brand {
		width: 150px;
	}

	.brand img {
		width: 145px;
	}
}

/* Carousel moves by arrows and swipe, with no visible scrollbars */
.product-grid {
	overflow-y: hidden;
	scrollbar-width: none;
}

.product-grid::-webkit-scrollbar {
	display: none;
}

.filters {
	scrollbar-width: none;
}

.filters::-webkit-scrollbar {
	display: none;
}

@media (max-width: 680px) {
	.product-tools {
		flex-wrap: wrap;
	}

	.product-tools .filters {
		width: 100%;
	}

	.product-tools .filters button {
		flex: 1;
	}
}

/* Product card links */
.product-visual a {
	display: block;
	width: 100%;
	position: relative;
	z-index: 2;
}

.product-copy h3 a:hover {
	color: var(--blue);
}

.product-add {
	display: inline-block;
}

.product-add.loading {
	opacity: .55;
	pointer-events: none;
}

.product-copy .added_to_cart {
	display: none;
}

.price-soon {
	color: var(--blue);
	font-weight: 800;
}

.product-copy del {
	color: var(--muted);
	font-weight: 500;
	margin-right: 5px;
}

.product-copy ins {
	text-decoration: none;
}

.product-copy strong {
	padding-right: 10px;
}

.product-card[hidden] {
	display: none;
}

/* Contact form additions */
.contact-hp {
	position: absolute;
	left: -9999px;
}

.contact .contact-inner > .contact-status {
	margin-top: 16px;
	font-weight: 700;
}

/* Footer: one more menu column than the original design */
.site-footer .footer-grid {
	grid-template-columns: 1.4fr repeat(4, 1fr);
	gap: 40px;
}

.footer-list a {
	display: block;
}

@media (max-width: 1000px) {
	.site-footer .footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-footer .footer-brand {
		grid-column: 1 / -1;
	}

	.site-footer .footer-grid > div:last-child {
		grid-column: auto;
	}
}

/* Inner pages */
.page-main {
	min-height: 60vh;
	padding: 56px 0 100px;
	background: var(--cream);
}

.page-head {
	margin-bottom: 40px;
}

.page-head h1,
.woocommerce-products-header__title {
	margin: 0;
	font-size: clamp(38px, 5vw, 60px);
	line-height: 1;
	letter-spacing: -.05em;
}

.page-lead {
	color: var(--muted);
	font-size: 16px;
	line-height: 1.7;
}

.entry-content {
	font-size: 16px;
	line-height: 1.75;
}

.entry-content a:not(.button) {
	color: var(--blue);
	text-decoration: underline;
}

.entry-narrow {
	max-width: 760px;
	margin: auto;
}

.entry-image {
	width: 100%;
	height: auto;
	margin-bottom: 30px;
}

.post-row {
	padding: 30px 0;
	border-top: 1px solid var(--line);
}

.post-row h2 {
	margin: 0 0 8px;
	font-size: 28px;
	letter-spacing: -.03em;
}

.post-row h2 a:hover {
	color: var(--blue);
}

.post-row p {
	margin: 0;
	color: var(--muted);
	line-height: 1.7;
}

.page-search {
	display: flex;
	gap: 10px;
	max-width: 560px;
	margin: 25px 0 35px;
}

.page-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 13px 15px;
	border: 1px solid #c9d2dc;
	background: #fff;
}

.page-search button {
	border: 0;
	padding: 0 22px;
	background: var(--ink);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}

.page-search button:hover {
	background: var(--blue);
}

@media (max-width: 680px) {
	.page-main {
		padding: 36px 0 70px;
	}
}
