/* ===GLOBAL=== */
*, *:before, *:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

html {
	color: #222;
	font-size: 1em;
	line-height: 1.4;
	font-family: proxima-nova, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	height: 100vh;
	width: 100%;
	overflow-x: hidden;
}

body {
	height: 100%;
	display: flex;
	flex-direction: column;
	color: #222;
	justify-content: space-between;
	width: 100%;
	/*TODO: uncomment this when you're sure nothing is overflowing*/
	/*overflow-x: hidden;*/
}

body::-webkit-scrollbar {
	width: 0;
}

body.fixed {
	position: fixed;
}

a {
	text-decoration: none;
	color: #222222;
}

ul {
	padding-left: 0;
}

li {
	list-style: none;
}

.page-title {
	display: inline-block;
	font-variant: small-caps;
	font-size: 2.5rem;
}

.hidden {
	display: none;
}

/* ===FLEX=== */
.flex {
	display: flex;
}

.fx-col {
	flex-direction: column;
}

.fx-row {
	flex-direction: row;
}

.gap-2 {
	gap: 2rem;
}

.gap-3 {
	gap: 3rem;
}

.fx-center {
	justify-content: center;
	align-items: center;
	text-align: center;
}

.fx-start-center {
	justify-content: start;
	align-items: center;
}

/* ===BUTTONS=== */
button {
	all: unset;
	color: #222222;
	font-weight: 500;
	font-size: 16px;
	cursor: pointer;
}

button[disabled] {
	background-color: #0000001f;
	color: #00000042;
}

.btn {
	display: inline-block;
	position: relative;
	background-color: transparent;
	padding: 14px 28px;
	cursor: pointer;
	text-align: center;
	align-self: center;
}

.btn-flat {
	display: inline-block;
	background-color: #d5dddb;
}

.btn-outline-wht {
	color: #ffffff;
	border-top: 2px solid white;
	border-bottom: 2px solid white;
}

.btn-outline-blk::before, .btn-outline-blk::after {
	content: "";
	position: absolute;
	display: block;
	width: 100%;
	height: 1px;
	left: 0;
	background-color: #222;
	transition: transform 0.3s ease;
}

.btn-outline-blk::before {
	top: 0;
	transform: translateY(-1px);
}

.btn-outline-blk::after {
	bottom: 0;
	transform: translateY(1px);
}

.btn-outline-blk {
	color: #222222;
	border-top: 1px solid #222222;
	border-bottom: 1px solid #222222;
}

.btn-outline-wht:hover::before {
	transform: translateY(0px);
}

.btn-outline-blk:hover::before, .btn-outline-blk:hover::after {
	transform: translateY(0px);
}

/* ===CARDS=== */
.card {
	display: flex;
	flex-direction: column;
	padding: 40px;
	margin: 0 auto 40px auto;
	background: #fff;
	border-radius: 8px;
	position: relative;
	box-shadow: 5px 7px 17px 5px rgba(0,0,0,0.4);
	transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

dialog {
	border: none;
	border-radius: 8px;
	width: 40vw;
	max-width: 700px;
	padding: 30px;
}

dialog button {
	font-family: tablet-gothic-wide, sans-serif;
}

dialog::backdrop {
	background-color: #222222;
	opacity: .4;
}

.dialog-content {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.dialog-text h3 {
	font-variant: small-caps;
	font-size: 1.5rem;
}

.dialog-text p {
	font-family: tablet-gothic-wide, sans-serif;
	font-size: 1.2rem;
}

.dialog-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 30px;
}

select {
	-webkit-appearance: none;
	-moz-appearance: none;
}

textarea {
	resize: vertical;
}

/* ===NAV=== */
#mobile-nav {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100vw;
	background-color: #ffffff;
	color: #222222;
	padding: 6rem 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	opacity: 0.99;
	z-index: 1;
	transform: translateY(-110vh);
	transition: 500ms transform;
	overflow: hidden;
	gap: 2rem;
}

#mobile-nav-links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .3rem;
}

.mobile-nav-li a {
	font-size: 2rem;
	font-family: garamond-premier-pro-display, serif;
}

.mobile-nav-li:hover {
	cursor: pointer;
	transform: scale(1.02);
}

#mobile-nav-logo {
	width: 7rem;
}

#mobile-nav-contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

#mobile-nav-contact p {
	font-size: 1.6rem;
}

#mobile-nav-contact a {
	font-size: 1.4rem;
}

#menu-btn {
	display: none;
	position: absolute;
	left: 30px;
	background: url(/assets/img/menu-icons.png) no-repeat -50px 0;
	width: 50px;
	height: 50px;
	cursor: pointer;
}

#menu-btn.open {
	background-position-x: 0;
	background-position-y: 0;
}

#top-nav:hover a {
	opacity: .5;
}

#top-nav:hover a:hover {
	opacity: 1.0;
}

#top-nav {
	display: flex;
	flex-direction: row;
	gap: 30px;
	justify-content: center;
	align-items: center;
	padding: 30px 30px;
}

#top-nav:only-child {
	align-self: end;
}

#top-nav-container {
	display: flex;
	flex-direction: row;
	justify-content: left;
	align-items: center;
	align-content: center;
	width: 100%;
	max-width: 70rem;
}

#top-nav-container :only-child {
	margin: auto;
}

.top-nav-links {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 30px;
	font-size: 1.2em;
	transition: opacity 150ms ease-in;
}

.top-nav-links a {
	transition: opacity 100ms ease-in;
}

#top-logo {
	height: 2.5rem;
}

/* ===FOOTER=== */
footer {
	background-color: #d5dddb;
	display: flex;
	justify-content: center;
	padding: 3rem 0;
	font-size: 1.1rem;
}

#footer-contact {
	text-align: center;
	font-variant: small-caps;
	font-size: 1.3rem;
}

#footer-content {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	align-items: center;
}

#footer-hours {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: center;
	text-align: center;
	justify-content: center;
	font-variant: small-caps;
	font-size: 1.3rem;
}

#footer-hours p {
	margin: 0;
}

#footer-links {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: center;
}

#footer-links a {
	text-decoration: none;
	color: #222222;
	transition: opacity 150ms ease-in;
}

#footer-links:hover a {
	opacity: .5;
}

#footer-links:hover a:hover {
	opacity: 1.0;
}

#footer-logo {
	width: 5rem;
}

/* ===MEDIA=== */
/*Small devices*/
@media only screen and (max-width: 767.98px) {
	.fx-row {
		flex-direction: column;
		gap: 0;
	}

	#mobile-nav.open {
		transform: translateY(0);
	}

	.nav-items > li {
		list-style-type: none;
		margin-bottom: 10px;
		text-align: center;
	}

	nav > #menu-btn {
		display: inline-block;
		z-index: 2;
	}

	dialog {
		width: 90vw;
	}

	#top-nav {
		justify-content: center;
	}

	.lg-only {
		display: none;
	}

	#footer {
		grid-template-columns: none;
		grid-template-rows: 1fr 1px 1fr;
	}
}

::-moz-selection {
	background: #b3d4fc;
	text-shadow: none;
}

::selection {
	background: #b3d4fc;
	text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
	vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
	resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
	display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
	clip: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	position: static;
	white-space: inherit;
	width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
	visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
	content: " ";
	display: table;
}

.clearfix::after {
	clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
	/* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
	/* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
	*,
	*::before,
	*::after {
		background: #fff !important;
		color: #000 !important;
		/* Black prints faster */
		box-shadow: none !important;
		text-shadow: none !important;
	}

	a,
	a:visited {
		text-decoration: underline;
	}

	a[href]::after {
		content: " (" attr(href) ")";
	}

	abbr[title]::after {
		content: " (" attr(title) ")";
	}

	/*
	 * Don't show links that are fragment identifiers,
	 * or use the `javascript:` pseudo protocol
	 */
	a[href^="#"]::after,
	a[href^="javascript:"]::after {
		content: "";
	}

	pre {
		white-space: pre-wrap !important;
	}

	pre,
	blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}

	/*
	 * Printing Tables:
	 * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
	 */
	thead {
		display: table-header-group;
	}

	tr,
	img {
		page-break-inside: avoid;
	}

	p,
	h2,
	h3 {
		orphans: 3;
		widows: 3;
	}

	h2,
	h3 {
		page-break-after: avoid;
	}
}

