/* MAH Publishing – based on the RocketTheme "Nebulae" (style 8) look of the original site */

:root {
	--pink: #b96c97;
	--pink-light: #da90b9;
	--pink-pale: #ffa9d9;
	--plum: #875471;
	--plum-dark: #5e2447;
	--ink: #151515;
	--panel: rgba(0, 0, 0, 0.28);
	--line-dark: rgba(0, 0, 0, 0.35);
	--line-light: rgba(255, 255, 255, 0.18);
	--radius: 8px;
	--font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

body {
	margin: 0;
	font: 15px/1.65 var(--font);
	color: var(--ink);
	background: #fff url(../img/bg.jpg) 50% 0 no-repeat;
}

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

a { color: var(--plum-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: #fff; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100; top: 8px; left: 8px;
	padding: 8px 14px; background: #fff; color: var(--ink);
}

/* ---------- layout ---------- */

.site { max-width: 1000px; margin: 0 auto; padding: 0 16px 24px; }

.topbar { display: flex; justify-content: flex-end; padding: 12px 4px 8px; min-height: 38px; }

.lang-switch { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.lang-switch a { display: block; padding: 3px; border-radius: 3px; line-height: 0; opacity: .75; transition: opacity .2s, background .2s; }
.lang-switch a:hover, .lang-switch a:focus, .lang-switch .current a { opacity: 1; background: rgba(255, 255, 255, .7); }
.lang-switch img { width: 18px; height: auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }

.panel {
	background: var(--panel);
	border-radius: var(--radius);
	box-shadow: 0 10px 40px rgba(90, 20, 60, .12);
}

.band { padding: 26px 30px; border-top: 1px solid var(--line-dark); box-shadow: inset 0 1px 0 var(--line-light); }

/* ---------- header & menu ---------- */

.site-header { display: flex; align-items: stretch; min-height: 100px; position: relative; z-index: 20; }

.logo {
	display: flex; align-items: center; padding: 0 22px 0 14px;
	border-right: 1px solid var(--line-dark); box-shadow: 1px 0 0 var(--line-light);
}
.logo img { display: block; width: 225px; }

.site-nav { flex: 1; display: flex; justify-content: flex-end; }
.site-nav .menu { display: flex; list-style: none; margin: 0; padding: 0 12px 0 0; }
.site-nav li { position: relative; }
.site-nav .menu > li > a {
	display: flex; align-items: center; height: 100%; padding: 0 12px;
	color: #fff; text-decoration: none; text-transform: uppercase; font-size: 13px; letter-spacing: .02em;
	text-shadow: -1px -1px 0 rgba(0, 0, 0, .35); cursor: pointer; transition: background .2s;
}
.site-nav .menu > li:first-child > a { border-top-left-radius: 0; }
.site-nav .menu > li > a:hover,
.site-nav .menu > li:focus-within > a,
.site-nav .menu > li:hover > a { background: linear-gradient(rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)); }
.site-nav .menu > .current-menu-item > a,
.site-nav .menu > .current-menu-ancestor > a,
.site-nav .menu > .current_page_parent > a {
	background: linear-gradient(var(--pink-light), var(--pink));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.site-nav .menu-item-has-children > a::after {
	content: ""; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; opacity: .8;
}

.site-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 6px 0; list-style: none;
	background: linear-gradient(var(--pink), var(--plum)); border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu, .site-nav li.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .menu > li:last-child .sub-menu { left: auto; right: 0; }
.site-nav .sub-menu a { display: block; padding: 8px 18px; color: #fff; text-decoration: none; font-size: 14px; }
.site-nav .sub-menu a:hover, .site-nav .sub-menu a:focus, .site-nav .sub-menu .current-menu-item > a { background: rgba(0, 0, 0, .2); }

.nav-toggle { display: none; }

/* ---------- slider ---------- */

.showcase { padding: 20px; }
.slider { position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, .3); background: #333; }
.slides { position: relative; aspect-ratio: 960 / 335; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slider-arrow {
	position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .35); cursor: pointer; opacity: 0; transition: opacity .2s, background .2s;
}
.slider:hover .slider-arrow, .slider-arrow:focus { opacity: 1; }
.slider-arrow:hover { background: var(--pink); }
.slider-arrow::before { content: ""; position: absolute; top: 14px; width: 10px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; }
.slider-arrow.prev { left: 12px; } .slider-arrow.prev::before { left: 16px; transform: rotate(135deg); }
.slider-arrow.next { right: 12px; } .slider-arrow.next::before { left: 12px; transform: rotate(-45deg); }
.slider-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.slider-dots button { width: 10px; height: 10px; padding: 0; border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%; background: transparent; cursor: pointer; }
.slider-dots button[aria-current="true"] { background: var(--pink-light); border-color: var(--pink-light); }

/* ---------- services strip ---------- */

.services { padding: 0 20px; background: rgba(0, 0, 0, .1); }
.services ul { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.services li + li { border-left: 1px solid var(--line-dark); box-shadow: inset 1px 0 0 var(--line-light); }
.services a { display: block; padding: 16px 18px 16px 34px; position: relative; text-decoration: none; transition: background .2s; }
.services a::before {
	content: ""; position: absolute; left: 16px; top: 22px; border: 5px solid transparent; border-left-color: var(--pink-pale);
}
.services strong { display: block; color: #ffd0ea; font-size: 16px; font-weight: 500; text-shadow: -1px -1px 0 rgba(0, 0, 0, .4); }
.services span { display: block; font-size: 13px; color: #222; }
.services a:hover, .services .current a { background: rgba(255, 255, 255, .12); }
.services .current strong { color: #fff; }

/* ---------- content ---------- */

.entry-title, .box-title { font-weight: 400; line-height: 1.2; color: #111; margin: 0 0 18px; }
.entry-title { font-size: 30px; }
.t-light { color: #fff; font-weight: 300; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }

.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { font-size: 24px; font-weight: 400; margin: 1.4em 0 .5em; }
.entry-content h3 { font-size: 19px; font-weight: 500; }
.entry-content img { border-radius: 3px; }
.entry-content ol, .entry-content ul { padding-left: 1.4em; }
.entry-content blockquote { margin: 1.2em 0; padding: .4em 1.2em; border-left: 3px solid var(--pink); font-style: italic; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-date { display: block; font-size: 13px; color: #333; margin-bottom: 4px; }

.home-content h2 { font-size: 24px; margin: 0 0 12px; }
.home-content h2 + p a, .button, .wpcf7-submit {
	display: inline-block; padding: 9px 20px; border: 0; border-radius: 30px;
	background: linear-gradient(var(--pink-light), var(--pink)); color: #fff; font: 600 14px/1.3 var(--font);
	text-decoration: none; text-shadow: -1px -1px 0 rgba(0, 0, 0, .25); box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	cursor: pointer; transition: filter .2s, transform .2s;
}
.home-content h2 + p a:hover, .button:hover, .wpcf7-submit:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }

.back { margin-top: 28px; }

/* ---------- news ---------- */

.cards { display: grid; gap: 18px; }
.card {
	display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start;
	padding: 16px; border-radius: 6px; background: rgba(255, 255, 255, .14); box-shadow: 0 1px 0 var(--line-light) inset;
}
.card:not(.has-post-thumbnail) { grid-template-columns: 1fr; }
.card-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.card time { font-size: 13px; color: #333; }
.card h2 { font-size: 19px; font-weight: 500; margin: 2px 0 6px; line-height: 1.3; }
.card h2 a { color: #111; text-decoration: none; }
.card h2 a:hover { color: #fff; }
.card p { margin: 0 0 8px; }
.card .more { font-weight: 600; font-size: 14px; }
.pager { display: flex; justify-content: space-between; margin-top: 22px; font-weight: 600; }

/* ---------- contact form ---------- */

.wpcf7 { max-width: 560px; margin-top: 18px; }
.wpcf7 label { display: block; font-size: 14px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea {
	width: 100%; margin-top: 4px; padding: 10px 12px; font: 15px var(--font); color: #fff;
	background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .15); border-radius: 5px;
	box-shadow: inset 0 2px 10px rgba(0, 0, 0, .25);
}
.wpcf7 textarea { height: 160px; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--pink-light); outline-offset: 1px; }
.wpcf7-not-valid-tip { color: #6b0f3f; font-size: 13px; }
.wpcf7 form .wpcf7-response-output { margin: 12px 0 0; border-radius: 5px; }

/* ---------- bottom & footer ---------- */

.bottom { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.box-title { font-size: 21px; padding-bottom: 8px; margin-bottom: 12px; background-repeat: no-repeat; background-position: 0 100%; background-size: 200px 3px; }
.box-title.pink { background-image: linear-gradient(90deg, var(--pink-light), rgba(218, 144, 185, 0)); }
.box-title.grey { background-image: linear-gradient(90deg, #555, rgba(85, 85, 85, 0)); }
.bottom p { margin: 0 0 12px; font-size: 14px; }
.social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { display: block; transition: transform .2s; }
.social a:hover { transform: translateY(-2px); }
.social img { display: block; border-radius: 8px; }

.site-footer { text-align: center; font-size: 12px; color: #777; padding: 18px 0 0; }
.site-footer p { margin: 0; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
	.site-header { flex-wrap: wrap; min-height: 0; }
	.logo { border: 0; box-shadow: none; padding: 12px 14px; }
	.logo img { width: 190px; }
	.nav-toggle {
		display: flex; align-items: center; gap: 8px; margin: auto 16px auto auto; padding: 8px 14px;
		color: #fff; font: 600 13px var(--font); text-transform: uppercase;
		background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .25); border-radius: 5px; cursor: pointer;
	}
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
	.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
	.site-nav { display: none; flex-basis: 100%; border-top: 1px solid var(--line-dark); }
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; padding: 6px 0; }
	.site-nav .menu > li > a { padding: 12px 20px; }
	.site-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; display: none;
		background: rgba(0, 0, 0, .15); box-shadow: none; border-radius: 0; min-width: 0;
	}
	.site-nav li.open > .sub-menu { display: block; }
	.site-nav .sub-menu a { padding-left: 36px; }
	.band { padding: 22px 18px; }
	.showcase { padding: 12px; }
	.services { padding: 0; }
	.services ul { grid-template-columns: 1fr; }
	.services li + li { border-left: 0; border-top: 1px solid var(--line-dark); }
	.bottom { grid-template-columns: 1fr; gap: 20px; }
	.card { grid-template-columns: 1fr; }
	.entry-title { font-size: 25px; }
	.entry-content img[style*="float"] { float: none !important; display: block; margin: 0 auto 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}
