/* MEG base styles. Layout and components are built in Elementor. */
:root {
	--meg-plum: #902577;
	--meg-bronze: #75634a;
	--meg-sand: #c1a988;
	--meg-cream: #faf3e9;
	--meg-paper: #fbf9f6;
	--meg-ink: #333333;
	--meg-font-heading-stack: 'Parabolica', 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
	--meg-font-body-stack: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
	margin: 0;
	background: var(--meg-paper);
	color: var(--meg-ink);
	font-family: var(--meg-font-body-stack);
	font-size: 18px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--meg-font-heading-stack);
	font-weight: 400;
	line-height: 1.1;
	color: var(--meg-bronze);
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--meg-plum);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

:focus-visible {
	outline: 2px solid var(--meg-plum);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 20px;
	clip: auto;
	background: var(--meg-plum);
	color: var(--meg-cream);
	border-radius: 60px;
}

/* Fallback header/footer (only used when no Elementor site part is assigned). */
.meg-site-header,
.meg-site-footer {
	padding: 16px clamp(20px, 11vw, 210px);
	background: var(--meg-paper);
}

.meg-site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #e4e4e4;
}

.meg-site-header ul {
	display: flex;
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.meg-site-header a {
	color: var(--meg-bronze);
	text-decoration: none;
}

.meg-site-footer {
	border-top: 1px solid #e4e4e4;
	font-size: 16px;
}

/* Default content area for non-Elementor pages and posts. */
.meg-content {
	max-width: 860px;
	margin: 0 auto;
	padding: 80px 20px;
}

.meg-content--wide {
	max-width: none;
	padding: 0;
}

/* Accordion: highlight the open item (Elementor has no "open" style state yet). */
.e-accordion-item-header-base.e--selected {
	color: var(--meg-bronze) !important;
	border-top-color: var(--meg-bronze) !important;
}

/* Accordion: arrow on the left of the title, as in the design. */
.elementor .e-accordion-item-header-base {
	grid-template-columns: 29px minmax(0, 1fr) !important;
}
.elementor .e-accordion-item-header-base > .e-accordion-item-title-base {
	grid-column: 2 !important;
	grid-row: 1 !important;
}
.elementor .e-accordion-item-header-base > .e-accordion-item-icon-base,
.elementor .e-accordion-item-header-base > .e-accordion-item-icon-open-base {
	grid-column: 1 !important;
	grid-row: 1 !important;
	justify-content: flex-start !important;
	margin-top: 4px;
}
