/*==============================================================================
 * General
 *============================================================================*/

* {
	box-sizing: border-box;
	letter-spacing: 0.1rem;
	outline: none !important;
	text-decoration: none;
	transition-duration: 0.2s;
	white-space: normal;
	word-wrap: break-word;
}

::selection {
  background: var(--accent);
  color: var(--background);
}

html {
	/*overflow-x: hidden !important;*/
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 400;
}

html,
body {
	background: none;
	margin: 0;
    max-width: 100%;
    overflow-x: hidden;
	padding: 0;
}

img {
	max-width: 100%;
}

p {
	line-height: 1.7;
	margin: 0 0 1em;
}

ol {
	line-height: 1.5;
	padding-inline-start: 1rem;
}

p strong,
ol strong,
ul strong {
	font-weight: 600;
}

.clearfix:after {
	content: "";
	display: block;
	clear: both;
}

.screen-reader-text {
	position: static;
}

[class*=grid-][class*=-noGutter] {
	margin: 0 auto;
}

.wrapper {
	max-width: 1200px;
	margin: 0 auto;
}


/*==============================================================================
 * Theming
 *============================================================================*/


/* Dark foreground on light background */
.bright {
	--background: rgba(255, 255, 255, 1);
	--foreground: rgba(120, 120, 117, 1);
/*	--foreground: rgba(38, 38, 38, 1);*/
	--highlight: rgba(20, 32, 59, 1);
	--accent: rgba(178, 144, 99, 1);
	--border: rgba(233, 233, 233, 1);
}

/* Light foreground on dark background */
.dim {
	--background: rgba(20, 32, 59, 1);
	--foreground: rgba(183, 194, 190, 1);
	--highlight: rgba(255, 255, 255, 1);
	--accent: rgba(178, 144, 99, 1);
	--border: rgba(58, 58, 58, 1);
}

/* Ebony */
.ebony {
	--background: rgba(251, 249, 249, 1);
/*	--background: rgba(228, 218, 204, 1);*/
/*	--background: rgba(229, 213, 192, 1);*/
	--foreground: rgba(120, 120, 117, 1);
/*	--foreground: rgba(38, 38, 38, 1);*/
	--highlight: rgba(20, 32, 59, 1);
	--accent: rgba(178, 144, 99, 1);
	--border: rgba(233, 233, 233, 1);
}

.section {
	background: var(--background);
	border-right: 0.1rem solid var(--border);
	border-bottom: 0.1rem solid var(--border);
	border-left: 0.1rem solid var(--border);
	color: var(--foreground);
}

.section a {
	color: var(--accent);
	font-weight: 400;
}

.section a.active,
.section a:hover {
	color: var(--highlight);
}


/*==============================================================================
 * Typography
 *============================================================================*/


h1 { font-size: 2.5rem }
h2 { font-size: 2.0rem }
h3 { font-size: 1.5rem }
h4 { font-size: 1.3rem }
h5 { font-size: 1.1rem }
h6 { font-size: 1.0rem }

h1, h2, h3, h4, h5, h6,
.title {
	color: var(--highlight);
	font-family: "Vera Humana 95", "Playfair Display", serif;
	font-weight: 400;
	letter-spacing: 0.1rem;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0.1rem 0 0;
	line-height: 1.2;
}

.title {
	margin: 0.5em 0 0;
}

.title,
.subtitle {
	margin: 0;
/*	line-height: 1.2;*/
}

.subtitle {
	color: var(--accent);
	text-transform: uppercase;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.35rem;
}




/*==============================================================================
 * Header
 *============================================================================*/


/* Code */




/*==============================================================================
 * Navigation
 *============================================================================*/


nav li {
	display: inline-block;
}

nav li li {
	display: block;
}


nav.primary a {
	display: block;
	padding: 1rem 1.8rem;
	text-transform: uppercase;
	font-weight: 400;
}

nav.primary a.cta {
	background: var(--accent);
	vertical-align: bottom;
	width: auto;
}




/*==============================================================================
 * Footer
 *============================================================================*/


/* Code */




/*==============================================================================
 * Sidebar
 *============================================================================*/


/* Code */




/*==============================================================================
 * Pages
 *============================================================================*/


/*
 * Common
 */

main .wrapper,
footer .wrapper {
	padding: 2.5rem 0 1rem;
}

.texture {
	background: url("../themes/tomica/assets/images/bg-texture.png");
}

a.cta {
	background: none;
	border: none;
	color: var(--background);
	display: inline-block;
    overflow: hidden;
	padding: 1rem;
	position: relative;
	text-align: center;
	text-transform: uppercase;
	width: 100%;
	z-index: 0;
}

a.cta:hover {
	color: var(--background);
	background: none;
}

a.cta::before {
	position: absolute;
	width: 100%;
	height: 100%;
	content: "";
	background-color: var(--accent);
	top: 0;
	left: 0;
	z-index: -1;
}

a.cta::after {
    position: absolute;
    content: "";
    width: 140%;
    height: 100%;
    left: -20%;
    top: 0;
    background-color: var(--highlight);
    z-index: -1;
    transform: translate(-110%, 0) skew(45deg);
    animation: outHover .5s ease 1 forwards;
    border-radius: 0 !important;
    box-sizing: border-box
}

a.cta:hover::after {
    animation-name: onHover
}

@keyframes onHover {
    from {transform: translate(-110%, 0) skew(45deg)}
    to {transform: translate(0, 0) skew(45deg)}
}

@keyframes outHover {
    from {transform: translate(0, 0) skew(45deg)}
    to {transform: translate(110%, 0) skew(45deg)}
}

.page-title {
	padding: 4em 0 3rem;
}

.page-title h2 {
/*	font-size: 2.8rem;*/
	line-height: 1.3;
}

/*
 * Home Page
 */

.jumbo .subtitle {
	margin: 0 0 2rem;
}

.avatar {
	position: relative;
}

.avatar img {
	max-height: 20rem;
	display: block;
	float: right;
}

.avatar::after {
	position: absolute;
	display: block;
	content: "";
/*	width: 100%;
	height: 100%;*/
	width: 100%;
	height: 37%;
	left: 0;
	bottom: 0;
	background-image: linear-gradient(180deg, transparent 50%, white 80%);
	z-index: 10;
}

#client-logos img {
	display: block;
	margin: 0 auto;
	max-width: 70%;
	max-height: 2.5rem;
	filter: grayscale(100%);
}

#client-logos img:hover {
	filter: initial;
}

.latest-blog img {
	border: 1px solid var(--border);
	max-height: 12rem;
	object-fit: cover;
	width: 100%;
}

.latest-blog h3 {
	font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.35rem;
    margin: 1rem 1rem 1rem 0;
    text-transform: uppercase;
    line-height: 1.7;
}

.post-banner {
	display: block;
	height: 12rem;
}


/*
 * Blog
 */

.post-content {
/*	padding-top: 1rem;*/
}

.post-content .card img {
	max-height: 28rem;
	object-fit: cover;
	width: 100%;
}



/*==============================================================================
 *								 THE END
 *==============================================================================