/*
Theme Name: Sheer & Company
Description: The sheerandco.com design, rebuilt on WordPress from the 2015 Drupal theme (boxed layout, purple accent, light page title bar, dark footer).
Author: MonsterWeb
Version: 1.0.0
Requires PHP: 8.1
Text Domain: sheerco
*/

:root {
	--purple: #643693;
	--purple-dark: #4e2a73;
	--purple-light: #9f55e9;
	--text: #333;
	--muted: #666;
	--line: #e5e5e5;
	--bar: #f3f3f3;
	--footer: #444;
	--footer-bar: #3a3a3a;
	--page-bg: #ebebeb;
	--box: 1230px;
	--inner: 1170px;
	--font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

body {
	margin: 0;
	background: var(--page-bg);
	color: var(--text);
	font: 14px/1.6 var(--font);
	border-top: 3px solid var(--purple);
}

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

a { color: var(--purple); text-decoration: none; }
a:hover, a:focus { color: var(--purple-light); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

::selection { background: var(--purple); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 300; color: #222; line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: 26px; }
h3 { font-size: 21px; }
p { margin: 0 0 1.1em; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

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

/* The boxed page */
.site { max-width: var(--box); margin: 0 auto; background: #fff; }
.wrap { max-width: var(--inner); margin: 0 auto; padding: 0 30px; }

/* Top bar: phone and social */
.topbar { border-bottom: 1px solid var(--line); font-size: 13px; color: #333; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 26px; }
.topbar a { color: #333; }
.topbar .phone svg { width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; }
.social { display: flex; gap: 14px; }
.social a { color: #2d6ab4; display: inline-flex; }
.social a:hover { color: var(--purple); }
.social svg { width: 15px; height: 15px; }

/* Header: logo and menu */
.header { border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 70px; }
.logo img { display: block; width: 210px; height: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; }
.nav li { position: relative; }
.nav > ul > li > a {
	display: block;
	padding: 26px 11px 25px;
	border-top: 1px solid transparent;
	margin-top: -1px;
	color: #222;
	font-size: 15px;
	line-height: 15px;
}
.nav > ul > li > a:hover,
.nav > ul > li > a:focus { color: var(--purple-light); text-decoration: none; }
.nav > ul > li.current-menu-item > a,
.nav > ul > li.current-menu-ancestor > a,
.nav > ul > li.current-menu-parent > a,
.nav > ul > li.current_page_item > a,
.nav > ul > li.current_page_ancestor > a { color: var(--purple); border-top-color: var(--purple); }

.nav .sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 240px;
	background: #fff;
	border: 1px solid var(--line);
	border-top: 2px solid var(--purple);
	z-index: 20;
	display: none;
}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu { display: block; }
.nav .sub-menu a { display: block; padding: 9px 16px; color: #444; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.nav .sub-menu a:hover, .nav .sub-menu a:focus { color: var(--purple); background: #faf8fc; text-decoration: none; }
.nav .sub-menu .current-menu-item > a { color: var(--purple); }

.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 10px; cursor: pointer; color: #333; font: 14px var(--font); }
.menu-toggle svg { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }

/* Home page slider */
.slider { position: relative; overflow: hidden; background: #111; aspect-ratio: 990 / 380; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide .caption {
	position: absolute;
	left: 3.7%;
	bottom: 19%;
	margin: 0 20px 0 0;
	padding: 8px 15px;
	background: rgba(0, 0, 0, .75);
	color: #fff;
	font-size: 26px;
	line-height: 1.3;
	font-weight: 400;
	border-radius: 3px;
}
.slider-arrows { position: absolute; right: 24px; bottom: 30px; display: flex; gap: 4px; z-index: 3; }
.slider-arrows button, .slider-dots button { cursor: pointer; border: 0; }
.slider-arrows button { width: 32px; height: 32px; background: rgba(0, 0, 0, .75); color: #fff; display: grid; place-items: center; }
.slider-arrows svg { width: 14px; height: 14px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 2px; z-index: 3; }
.slider-dots button { width: 24px; height: 24px; background: none; padding: 0; display: grid; place-items: center; }
.slider-dots button::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.slider-dots button[aria-current="true"]::before { background: #fff; }

/* Service blocks */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 30px 0 50px; }
.service { display: block; color: var(--text); }
.service:hover, .service:focus { text-decoration: none; color: var(--text); }
.service-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.service-icon {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #666;
	color: #fff;
	display: grid;
	place-items: center;
	transition: background .4s;
	margin-top: 2px;
}
.service-icon svg { width: 15px; height: 15px; }
.service:hover .service-icon, .service:focus .service-icon { background: var(--purple); }
.service h2, .service h3 { font-size: 22px; line-height: 1.05; margin: 0; color: #222; }
.service p { color: #000; font-size: 13px; line-height: 1.6; }
.service .more { color: var(--purple); font-size: 13px; }
.service:hover .more { color: var(--purple-light); }

.services.six { grid-template-columns: repeat(3, 1fr); padding-bottom: 20px; }

/* Inner pages: title bar with breadcrumb */
.titlebar { background: var(--bar); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.titlebar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 93px; }
.titlebar h1 { font-size: 30px; line-height: 1.1; color: var(--muted); margin: 0; }
.crumbs { font-size: 13px; color: #595959; text-align: right; }
.crumbs ol { list-style: none; display: inline; margin: 0; padding: 0; }
.crumbs li { display: inline; }
.crumbs li + li::before { content: " / "; }
.crumbs a { color: #595959; }

.content { padding-bottom: 50px; }
.content::after { content: ""; display: block; clear: both; }
.content ul { padding-left: 1.3em; }

.portrait { float: left; margin: 4px 24px 12px 0; width: 195px; }

.docs { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; }
.docs a::before { content: ""; display: inline-block; width: 12px; height: 14px; margin-right: 7px; vertical-align: -2px; background: currentColor; -webkit-mask: url("assets/img/doc.svg") no-repeat center / contain; mask: url("assets/img/doc.svg") no-repeat center / contain; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.quote { margin: 0; padding: 24px 26px; background: var(--bar); border-left: 3px solid var(--purple); }
.quote p { font-size: 16px; line-height: 1.6; margin-bottom: 14px; }
.quote footer { color: var(--muted); font-size: 13px; }
.quote cite { font-style: normal; font-weight: 700; color: #222; display: block; }

/* Contact */
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin: 30px 0 40px; }
.office { border: 1px solid var(--line); padding: 22px 24px; }
.office h2 { font-size: 20px; margin-bottom: 8px; }
.office p { margin-bottom: 14px; }
.button, .cform button {
	display: inline-block;
	background: var(--purple);
	color: #fff;
	border: 0;
	padding: 11px 22px;
	font: 15px var(--font);
	cursor: pointer;
	border-radius: 2px;
}
.button:hover, .button:focus, .cform button:hover, .cform button:focus { background: var(--purple-dark); color: #fff; text-decoration: none; }

.cform { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 20px; max-width: 900px; scroll-margin-top: 20px; }
.cform label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 13px; }
.cform .full { grid-column: 1 / -1; }
.cform input, .cform textarea { font: 14px var(--font); padding: 9px 10px; border: 1px solid #ccc; border-radius: 2px; font-weight: 400; width: 100%; }
.cform textarea { min-height: 150px; resize: vertical; }
.cform .opt { font-weight: 400; color: #595959; }
.cform .hp { position: absolute; left: -9999px; }
.cform .fine { grid-column: 1 / -1; color: #595959; font-size: 12px; margin: 0; }
.cform .fine a { text-decoration: underline; }
.cform-msg { grid-column: 1 / -1; padding: 10px 14px; margin: 0; }
.cform-msg.ok { background: #eef7ee; color: #24572a; }
.cform-msg.err { background: #fbeeee; color: #8a1f1f; }

/* Footer */
.footer { background: var(--footer); color: #fff; padding: 40px 0 22px; font-size: 13px; }
.footer a { color: #fff; }
.footer a:hover, .footer a:focus { color: var(--purple-light); }
.footer-bar { background: var(--footer-bar); border-radius: 3px; padding: 10px 15px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; }
.footer-bar ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }

/* 404 */
.notfound { padding: 30px 0 60px; }

@media (max-width: 1000px) {
	.wrap { padding: 0 16px; }
	.menu-toggle { display: inline-block; }
	.header .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
	.nav { flex-basis: 100%; display: none; }
	.nav.open { display: block; }
	.nav > ul { flex-direction: column; padding: 10px 0; }
	.nav > ul > li > a { padding: 11px 0; border-top: 0; margin: 0; }
	.nav > ul > li.current-menu-item > a, .nav > ul > li.current-menu-ancestor > a { border: 0; }
	.nav .sub-menu { display: block; position: static; border: 0; min-width: 0; padding-left: 16px; }
	.nav .sub-menu a { border: 0; padding: 7px 0; }
	.services, .services.six { grid-template-columns: 1fr; gap: 24px; }
	.quotes, .offices { grid-template-columns: 1fr; }
	.cform { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.logo img { width: 170px; }
	.slider { aspect-ratio: 4 / 3; }
	.slide .caption { font-size: 18px; left: 16px; bottom: 56px; }
	.slider-arrows { right: 16px; bottom: 14px; }
	.titlebar .wrap { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding-top: 18px; padding-bottom: 18px; }
	.titlebar h1 { font-size: 26px; }
	.crumbs { text-align: left; }
	.portrait { float: none; display: block; margin: 0 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.slide, .service-icon { transition: none; }
}
