/* ==========================================================================
   SWPartner — static rebuild of swpartner.com
   Design tokens taken from the original CSSIgniter "Medi" theme (red scheme).
   ========================================================================== */

:root {
	--accent: #e74239;
	--accent-dark: #ce3b33;
	--ink: #282828;
	--body: #626262;
	--nav: #656565;
	--muted: #787878;
	--rule: #f2f1f1;
	--wash: #f7f6f6;
	--page: #fffefe;
	--row: 1280px;
	--gutter: 15px;
}

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

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

body {
	margin: 0;
	font-family: Oxygen, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--body);
	background: var(--page);
}

h1, h2, h3, h4, h5, h6 {
	font-weight: normal;
	color: var(--ink);
	word-wrap: break-word;
	margin: 0 0 20px;
}

h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--accent);
	text-decoration: none;
	transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
a:hover { color: var(--ink); }

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

hr { border: none; border-top: 1px solid var(--rule); margin: 0; }

.row {
	width: 100%;
	max-width: var(--row);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

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

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
#top-head {
	font-size: 14px;
	color: var(--muted);
	background: var(--ink);
	line-height: normal;
	padding: 11px 0;
}
#top-head .row { display: flex; justify-content: space-between; gap: 20px; }
#top-head a { color: #fff; }
#top-head a:hover { color: var(--accent); }

#main-head { padding: 25px 0 35px; }
#main-head .row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 30px;
}

#logo { max-width: 48%; }
#logo .logo-mark { margin: 0 0 8px; line-height: 0; }
#logo .logo-mark img { width: 424px; max-width: 100%; }
#logo .tagline {
	font-size: 14px;
	color: var(--body);
	line-height: normal;
	margin: 0;
	max-width: 34em;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#navigation {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
}
#navigation li { position: relative; }
#navigation a {
	display: block;
	color: var(--nav);
	line-height: normal;
	padding: 10px 8px;
}
#navigation a:hover { color: var(--ink); }
#navigation > li.current-menu-item > a,
#navigation > li.current-menu-ancestor > a { color: #000; }

/* dropdown */
#navigation .has-children > a { padding-right: 23px; }
#navigation .has-children > a::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 8px;
	margin-top: -2px;
	border: 4px solid transparent;
	border-top-color: #727272;
}
#navigation .has-children:hover > a::after,
#navigation .has-children:focus-within > a::after { border-top-color: #202020; }

#navigation .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 100%;
	left: 5px;
	min-width: 220px;
	background: #fff;
	box-shadow: 0 0 2px rgba(0, 0, 0, .1);
	border-radius: 2px;
	border-top: 3px solid var(--accent);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 40;
}
#navigation .has-children:hover > .sub-menu,
#navigation .has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
#navigation .sub-menu a { padding: 12px 15px; font-size: 13px; }
#navigation .sub-menu a:hover { background: rgba(0, 0, 0, .05); }

/* mobile bar */
#mobile-bar {
	display: none;
	background: var(--ink);
	padding: 12px 15px;
	align-items: center;
	gap: 14px;
}
#mobile-bar .mob-title {
	font-size: 13px;
	color: var(--muted);
	margin: 0;
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.menu-trigger {
	flex: none;
	width: 34px;
	height: 28px;
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	position: relative;
}
.menu-trigger span,
.menu-trigger span::before,
.menu-trigger span::after {
	position: absolute;
	left: 4px;
	width: 26px;
	height: 3px;
	background: #fff;
	content: "";
	border-radius: 1px;
}
.menu-trigger span { top: 13px; }
.menu-trigger span::before { top: -8px; left: 0; }
.menu-trigger span::after { top: 8px; left: 0; }

/* --------------------------------------------------------------------------
   Home slider
   -------------------------------------------------------------------------- */
#home-slider {
	position: relative;
	overflow: hidden;
	background: var(--ink);
}
#home-slider .slides { list-style: none; margin: 0; padding: 0; }
#home-slider .slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .8s ease;
	pointer-events: none;
}
#home-slider .slide.is-active { opacity: 1; pointer-events: auto; position: relative; }
#home-slider img {
	width: 100%;
	height: 550px;
	object-fit: cover;
	object-position: center;
}

.slide-content {
	position: absolute;
	width: 100%;
	top: 35%;
	left: 0;
	text-align: center;
	padding: 0 15px;
}
.slide-content h3 {
	color: #fff;
	letter-spacing: -.03em;
	font-size: 48px;
	line-height: 1.15;
	margin: 0 0 30px;
	text-shadow: 0 0 54px rgba(0, 0, 0, .5);
}

.controls {
	display: inline-flex;
	align-items: stretch;
	justify-content: center;
}
.sld-btn, .s-prev, .s-next {
	color: #fff;
	border: 3px solid #fff;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	font: inherit;
	line-height: normal;
	cursor: pointer;
}
.sld-btn { padding: 6px 50px; }
.s-prev, .s-next { width: 40px; padding: 0; }
.s-prev { margin-right: -3px; }
.s-next { margin-left: -3px; }
.sld-btn:hover, .s-prev:hover, .s-next:hover { color: var(--accent); border-color: var(--accent); }
.s-prev svg, .s-next svg { width: 13px; height: 13px; fill: currentColor; }

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */
main#content { border-top: 3px solid var(--accent); }
main#content.nopad { border-top: 0; }

.section { padding: 60px 0; }
.section.wash { background: var(--wash); }

.page-head { margin-bottom: 40px; }
.page-head h1 { margin-bottom: 10px; }
.page-head .lede { font-size: 18px; max-width: 46em; }

.widget-title {
	font-size: 30px;
	margin-bottom: 15px;
}
.widget-title span { text-transform: lowercase; }

/* two-column layout with sidebar */
.with-sidebar {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 50px;
	align-items: start;
}

#sidebar .item-list { list-style: none; margin: 0; padding: 0; }
#sidebar .item-list li { border-bottom: 1px solid var(--rule); }
#sidebar .item-list a {
	display: block;
	padding: 12px 0;
	color: var(--body);
}
#sidebar .item-list a:hover { color: var(--accent); }
#sidebar .item-list li.active > a { color: var(--accent); font-weight: 700; }

/* article */
.entry + .entry { margin-top: 50px; }
.entry-title { margin-bottom: 20px; }
.entry-thumb { margin: 0 0 25px; }
.entry-meta {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 12px;
}

/* card grids */
.grid {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
@media only screen and (min-width: 1000px) {
	.grid.three-up { grid-template-columns: repeat(3, 1fr); }
}

/* even two-column split (contact page) */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: start;
}
@media only screen and (max-width: 900px) {
	.split { grid-template-columns: 1fr; gap: 34px; }
}
.card {
	border: 1px solid var(--rule);
	padding: 28px;
	background: #fff;
}
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card .more { display: inline-block; margin-top: 16px; font-size: 14px; }

.person h3 { margin-bottom: 6px; }
.person .role { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.person dl { margin: 16px 0 0; font-size: 14px; }
.person dt { color: var(--ink); }
.person dd { margin: 0 0 10px; }

/* personnel listing (Our Team) */
.person-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: start;
}
@media only screen and (max-width: 700px) {
	.person-list { grid-template-columns: 1fr; }
}
.item-thumb { display: block; margin-bottom: 15px; }
.item-thumb h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
	padding: 20px 15px;
	color: #fff;
	background: rgba(231, 66, 57, .75);
}
.item-thumb:hover h3 { background: var(--accent); color: #fff; }

.btn {
	display: inline-block;
	background: var(--accent);
	border: 1px solid var(--accent-dark);
	color: #fff;
	padding: 10px 26px;
	line-height: normal;
}
.btn:hover { background: var(--accent-dark); color: #fff; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: 26px; }
.contact-list strong { display: block; color: var(--ink); font-weight: 400; font-size: 18px; }

.map-embed {
	border: 1px solid var(--rule);
	width: 100%;
	height: 380px;
	display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
#footer { margin-top: 60px; }
.credits {
	font-size: 14px;
	color: var(--muted);
	background: var(--ink);
	line-height: normal;
	padding: 11px 0;
}
.credits .row { display: flex; justify-content: space-between; gap: 30px; }
.credits a { color: #fff; }
.credits a:hover { color: var(--accent); }
.credits .addr { text-align: right; white-space: pre-line; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 900px) {
	.with-sidebar { grid-template-columns: 1fr; gap: 34px; }
	.slide-content h3 { font-size: 32px; }
	#home-slider img { height: 420px; }
}

@media only screen and (max-width: 768px) {
	#mobile-bar { display: flex; }
	#top-head { display: none; }
	#main-head { padding: 22px 0; }
	#main-head .row { display: block; }
	#logo { max-width: none; text-align: center; }
	#logo .logo-mark img { margin: 0 auto; }
	#logo .tagline { margin: 0 auto; }

	#nav { display: none; }
	#nav.is-open { display: block; margin-top: 22px; }
	#navigation { display: block; border-top: 1px solid var(--rule); }
	#navigation li { border-bottom: 1px solid var(--rule); }
	#navigation a { padding: 13px 4px; }
	#navigation .has-children > a::after { display: none; }
	#navigation .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border-top: 0;
		min-width: 0;
		padding-left: 16px;
	}
	#navigation .sub-menu a { font-size: 14px; }

	#home-slider img { height: 340px; }
	.slide-content { top: 28%; }
	.slide-content h3 { font-size: 26px; margin-bottom: 20px; }
	.sld-btn { padding: 6px 22px; font-size: 14px; }

	.section { padding: 40px 0; }
	.credits .row { display: block; }
	.credits .addr { text-align: left; margin-top: 10px; }
	#footer { margin-top: 40px; }
}

@media only screen and (max-width: 480px) {
	.slide-content h3 { font-size: 22px; }
	#home-slider img { height: 300px; }
	#logo .logo-mark img { width: 260px; }
}
