/*
 * Defines the starter theme's global design system and reusable layouts.
 */
:root {
	--starter-color-text: #17252b;
	--starter-color-muted: #52636a;
	--starter-color-border: #0000001a;
	--starter-color-accent: #164e63;
	--starter-color-surface: #f5f8f9;
	--starter-content-width: 72rem;
	--starter-radius-sm: 0.25rem;
	--starter-radius-md: 0.5rem;
	--starter-store-shadow: 0 8px 28px #17252b08;
	--starter-font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--starter-font-heading: "Poppins", "Inter", sans-serif;
	font-family: var(--starter-font-body);
	color: var(--starter-color-text);
	background: #fff;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--starter-font-body);
	font-size: 1rem;
	line-height: 1.65;
}

/* Default headings; component styles can override them. */
:where(h1, h2, h3, h4, h5, h6) {
	margin-block: 0 1rem;
	font-family: var(--starter-font-heading);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--starter-color-text);
	overflow-wrap: anywhere;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

:where(h1) { font-size: 3rem; }
:where(h2) { font-size: 2.5rem; }
:where(h3) { font-size: 2rem; }
:where(h4) { font-size: 1.5rem; }
:where(h5) { font-size: 1.25rem; }
:where(h6) { font-size: 1rem; }

/* Tablet headings. */
@media (max-width: 64rem) {
	:where(h1) { font-size: 2.5rem; }
	:where(h2) { font-size: 2rem; }
	:where(h3) { font-size: 1.75rem; }
	:where(h4) { font-size: 1.375rem; }
	:where(h5) { font-size: 1.125rem; }
	:where(h6) { font-size: 1rem; }
}

/* Mobile headings. */
@media (max-width: 48rem) {
	:where(h1) { font-size: 2rem; }
	:where(h2) { font-size: 1.75rem; }
	:where(h3) { font-size: 1.5rem; }
	:where(h4) { font-size: 1.25rem; }
	:where(h5) { font-size: 1.125rem; }
	:where(h6) { font-size: 1rem; }
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--starter-color-accent);
	text-decoration: none;
}

/* Default tables; component styles can override these rules. */
:where(table) {
	width: 100%;
	margin-block: 0 1.5rem;
	border-collapse: collapse;
	border-spacing: 0;
	border: 1px solid var(--starter-color-border);
	background: #fff;
	font-size: inherit;
	line-height: 1.5;
}

:where(caption) {
	padding-block: 0 0.75rem;
	color: var(--starter-color-muted);
	font-size: 0.9rem;
	text-align: start;
}

:where(th, td) {
	padding: 0.85rem 1rem;
	border: 1px solid var(--starter-color-border);
	text-align: start;
	vertical-align: top;
	overflow-wrap: anywhere;
}

:where(th) {
	font-weight: 600;
}

:where(thead, tfoot) {
	background: var(--starter-color-surface);
}

:where(tfoot) {
	font-weight: 600;
}

@media (max-width: 48rem) {
	:where(th, td) {
		padding: 0.65rem 0.75rem;
	}
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid #d97706;
	outline-offset: 3px;
}

.content-container {
	width: min(calc(100% - 2rem), var(--starter-content-width));
	margin-inline: auto;
}

.site-header {
	position: relative;
	z-index: 10;
	border-bottom: 1px solid var(--starter-color-border);
	background: #fff;
}

.site-header__inner {
	display: flex;
	min-height: 5rem;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.site-branding .custom-logo-link {
	display: inline-flex;
}

.site-branding .custom-logo {
	width: auto;
	max-height: 3.5rem;
}

.site-title {
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
}

.primary-navigation__list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-navigation a {
	text-decoration: none;
}

.primary-navigation li {
	position: relative;
	font-size: 0;
}

.primary-navigation li > a,
.primary-navigation li > button {
	font-size: 1rem;
}

.primary-navigation a,
.submenu-toggle {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
}

.primary-navigation .sub-menu {
	position: absolute;
	z-index: 20;
	inset-block-start: 100%;
	inset-inline-start: 0;
	display: none;
	width: 15rem;
	max-width: calc(100vw - 2rem);
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	border: 1px solid var(--starter-color-border);
	border-radius: var(--starter-radius-sm);
	background: #fff;
	box-shadow: 0 8px 24px #17252b18;
}

.primary-navigation .sub-menu .sub-menu {
	inset-block-start: -0.5rem;
	inset-inline-start: 100%;
}

.primary-navigation .sub-menu a {
	padding: 0.5rem 0.75rem;
	overflow-wrap: anywhere;
}

.primary-navigation .sub-menu li:has(> .submenu-toggle) > a {
	width: calc(100% - 1.5rem);
}

.primary-navigation a:hover,
.primary-navigation a[aria-current="page"] {
	text-decoration: underline;
}

.submenu-toggle {
	justify-content: center;
	width: 1.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--starter-color-accent);
	font: inherit;
	cursor: pointer;
}

.submenu-toggle i {
	font-size: 0.75rem;
	transition: transform 0.2s ease;
}

.submenu-toggle[aria-expanded="true"] i {
	transform: rotate(180deg);
}

@media (min-width: 48.001rem) {
	.primary-navigation .sub-menu .submenu-toggle i {
		transform: rotate(-90deg);
	}

	.primary-navigation .sub-menu .submenu-toggle[aria-expanded="true"] i {
		transform: rotate(90deg);
	}
}

.primary-navigation:not(.is-enhanced) li:hover > .sub-menu,
.primary-navigation:not(.is-enhanced) li:focus-within > .sub-menu,
.primary-navigation .submenu-open > .sub-menu {
	display: block;
}

.primary-navigation .sub-menu.opens-left {
	inset-inline-start: auto;
	inset-inline-end: 0;
}

.primary-navigation .sub-menu .sub-menu.opens-left {
	inset-inline-end: 100%;
}

.menu-toggle {
	display: none;
	min-width: 2.75rem;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	cursor: pointer;
	padding: 0.5rem;
	border: 1px solid var(--starter-color-border);
	border-radius: var(--starter-radius-sm);
	background: #fff;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
	display: block;
	width: 1.25rem;
	height: 2px;
	background: var(--starter-color-text);
}

.menu-toggle__icon {
	position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	position: absolute;
	left: 0;
	content: "";
}

.menu-toggle__icon::before {
	top: -0.4rem;
}

.menu-toggle__icon::after {
	top: 0.4rem;
}

.site-main {
	min-height: 60vh;
	padding-block: clamp(2rem, 6vw, 5rem);
}

.site-main--elementor-full-width {
	padding-block: 0;
}

.entry-title,
.archive-title {
	line-height: 1.15;
}

.entry-thumbnail {
	display: block;
	margin-block: 2rem;
}

.post-card {
	margin-block: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--starter-color-border);
}

.post-card__title a {
	text-decoration: none;
}

.site-footer {
	padding-block: 2rem;
	border-top: 1px solid var(--starter-color-border);
	background: var(--starter-color-surface);
}

.site-footer__copyright {
	margin: 0;
	color: var(--starter-color-muted);
}

.eyebrow {
	color: var(--starter-color-accent);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	z-index: 100;
	top: 0.5rem;
	left: 0.5rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: #fff;
}

@media (max-width: 48rem) {
	.site-branding {
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.navigation-ready .menu-toggle {
		display: inline-flex;
	}

	.primary-navigation {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: block;
		padding: 1rem;
		border-bottom: 1px solid var(--starter-color-border);
		background: #fff;
	}

	.primary-navigation.is-open {
		display: block;
	}

	.navigation-ready .primary-navigation:not(.is-open) {
		display: none;
	}

	.primary-navigation {
		max-height: 75vh;
		max-height: 75dvh;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.primary-navigation a {
		width: 100%;
		padding: 0.5rem 0.75rem;
		overflow-wrap: anywhere;
	}

	.primary-navigation li {
		width: 100%;
	}

	.primary-navigation li:has(> .submenu-toggle) > a {
		width: calc(100% - 1.5rem);
	}

	.primary-navigation .sub-menu,
	.primary-navigation .sub-menu .sub-menu {
		position: static;
		width: auto;
		max-width: none;
		margin-inline-start: 0.75rem;
		border: 0;
		border-inline-start: 1px solid var(--starter-color-border);
		box-shadow: none;
	}

	.primary-navigation__list {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
