/**
 * Light visual polish — keeps existing brand colors, layout and components.
 * Accent remains #c93232 / #ca3232.
 */

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	background: #f7f7f7;
	color: #444;
	line-height: 1.55;
}

#bodychild {
	background: #fcfcfc;
	min-height: 100%;
}

/* Typography */
h1, h2, h3 {
	letter-spacing: 0.2px;
	color: #2a2a2a;
}

#maincontent > h1,
#maincontent > h2 {
	position: relative;
	padding-bottom: 6px;
}

#maincontent > h1:after,
#maincontent > h2:after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 10px;
	background: #ca3232;
}

#maincontent h5 {
	line-height: 1.65;
	color: #555;
}

a {
	transition: color 0.2s ease, opacity 0.2s ease;
}

/* Header / nav */
#outerheader {
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

#topnav.sf-menu > li > a {
	transition: background-color 0.2s ease, color 0.2s ease;
}

.sf-menu li li a {
	transition: background-color 0.15s ease, padding-left 0.15s ease;
}

.sf-menu li li a:hover {
	padding-left: 30px !important;
}

#outerafterheader {
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

#aftertheheader {
	color: #888;
	letter-spacing: 0.3px;
}

/* Slider */
.slide-text h1 {
	letter-spacing: 0.5px;
}

.slide-text h4 {
	line-height: 1.55;
	color: #e8e8e8;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.buttoncolor {
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.buttoncolor:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

/* Before content band */
#outerbeforecontent {
	background: #f2f2f2;
}

#beforethecontent-colleft h2,
#beforethecontent-colright h2 {
	color: #2a2a2a;
	margin-bottom: 12px;
}

#beforethecontent-colleft p,
#beforethecontent-colright p {
	line-height: 1.7;
	color: #555;
}

#beforethecontent a {
	display: inline-block;
	margin-top: 4px;
	font-weight: bold;
}

/* Main content */
#outermain {
	padding: 44px 20px 70px;
}

/* Homepage project cards */
#outermain .card {
	border: 1px solid #e8e8e8;
	border-radius: 0;
	box-shadow: 1px 1px 0 #f0f0f0;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
	background: #fff;
}

#outermain .card:hover {
	border-color: #ddd;
	box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-3px);
}

#outermain .card-img-top {
	transition: transform 0.45s ease;
}

#outermain .card:hover .card-img-top {
	transform: scale(1.03);
}

#outermain .card-body {
	padding: 1.1rem 1.15rem 1.25rem;
}

#outermain .card-title {
	color: #c93232;
	font-size: 16px;
	line-height: 1.4;
	margin-bottom: 10px;
	font-family: Arial, "Microsoft YaHei", sans-serif;
}

#outermain .card-text {
	color: #666;
	font-size: 13px;
	line-height: 1.65;
	margin-bottom: 0;
}

/* Product / content posts */
.post {
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.post:hover {
	border-color: #e2e2e2;
	box-shadow: 2px 3px 0 #eee;
}

.postimg img {
	transition: opacity 0.25s ease;
}

.post:hover .postimg img {
	opacity: 0.92;
}

.entry-content h5 {
	line-height: 1.7;
}

/* Section subtitles on products page */
#maincontent #products,
#maincontent #services {
	margin: 10px 0 0;
	padding-left: 12px;
	border-left: 3px solid #ca3232;
	font-size: 20px;
	line-height: 1.3;
	color: #2a2a2a;
}

#maincontent #products:after,
#maincontent #services:after {
	display: none;
}

#maincontent #services {
	margin-top: 20px;
}

/* Forms */
input[type="text"],
input[type="password"],
textarea,
select {
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
	border-color: #ca3232;
	outline: none;
	box-shadow: 0 0 0 2px rgba(202, 50, 50, 0.12);
}

.button,
input[type="submit"],
input[type="reset"],
button {
	transition: background-position 0.2s ease, color 0.2s ease;
}

/* Footer */
#outerfootersidebar {
	border-top: solid 1px #2a2a2a;
}

#footersidebar .widget-title {
	letter-spacing: 0.4px;
}

#outerfooter {
	border-top: solid 1px #0a0a0a;
}

#footer p {
	color: #999;
	line-height: 1.7;
}

#footer a {
	color: #ccc;
}

#footer a:hover {
	color: #fff;
	text-decoration: none;
}

/* About / general images */
#maincontent .one_third img,
#maincontent .two_third img {
	outline: 1px solid #e8e8e8;
	background: #fff;
	padding: 3px;
}

/* Soft separators */
.separator.line {
	margin-bottom: 24px;
	opacity: 0.95;
}

/* Broken / missing images */
img[data-broken-hidden="1"],
img.is-broken {
	display: none !important;
}

.post .postcontent:not(.withimage) {
	margin-left: 0;
}
