/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

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

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

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

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

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

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ===== Initializr Styles ==================================================
   Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
   ========================================================================== */

body {
    font: 16px/32px Verdana, Geneva, sans-serif;
	color: #666;
}

.wrapper {
    width: 100%;
    _margin: 0 5%;
}

/* ===================
    ALL: Color Theme
   =================== */

.header-container {
}

.footer-container,
.main aside {
}

.header-container,
.footer-container,
.main aside {
    background: #fff;
}

.title {
    color: white;
}

/* ==============
    MOBILE: Menu
   ============== */

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

nav a {
    display: block;
    margin-bottom: 10px;
    padding: 15px 0;

    text-align: center;
    text-decoration: none;
	font-size: 19px;
	text-transform: lowercase;
    color: #333;
}

nav a:hover,
nav a:visited {
    color: #555;
}

nav a:hover {
    text-decoration: underline;
}

/* ==============
    MOBILE: Main
   ============== */

.main {
    padding: 30px 0;
}

.main article h1 {
    font-size: 2em;
}

.footer-container footer {
    padding: 20px 0;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}

/* ==========================================================================
   Styles
   ========================================================================== */

.page-container {
	max-width: 1140px;
	margin: 0 auto;
}

.header-container {
	position: relative;
	height: 190px;
}

.header-container header {
	_position: fixed;
	background-color: #fff;
	z-index: 800;
	text-align: center;
	height: 190px;
	transition: all 1s ease-in;
}

.header-container header .logo {
	margin-top: 40px;
	opacity: 0.3;
	_transition: all 1s ease-in;
}

.header-container header .logo img {
	_transform: translateY(40px);
}

.header-container header nav {
	_position: fixed;
	margin: -55px auto 0;
	opacity: 0.3;
	position: relative;
}

.header-container header nav li.spacer a {
	margin-right: 220px;
}

#splash {
	text-align: center;
	height: 457px;
	display: table;
	overflow: hidden;
}

#splash div {
	width: 100%;
	height: 100%;
	display: table-cell;
	vertical-align: middle;
	background-image: url("../img/bg-lightbulb.png");
	background-position: center center;
	background-size: cover;
}

#splash div > *{
	color: #280007;
	opacity: 0.8;
}

#splash header h1 {
	font-size: 68px;
	line-height: 100%;
	font-weight: normal;
	margin: 10px;
}

#splash section {	
	max-width: 320px;
	margin: 0 auto;
}

#splash section p {
	font-size: 26px;
	border: 2px solid #280007;
	border-radius: 20px;
	padding: 5px;
	_margin-top: 10px;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s;
}

#splash section p:hover {
  background: rgba(0, 0, 0, .3);
}

#splash a {
	text-decoration: none;
	color: #280007;
	padding: 10px;
}

#services section {
	position: relative;
	opacity: 1;
}

#services section div.service-title {
	float: left;
}
	
#services section div.service-title {
	width: 333px;
	height: 222px;
}

#services section#tax div.service-title {
	background-image: url("../img/bg-taxation.png");
}

#services section#acct div.service-title {
	background-image: url("../img/bg-accounting.png");
}

#services section#business div.service-title {
	background-image: url("../img/bg-business.png");
}

#services section.right div.service-title {
	float: right;
}

#services section div.service-description {
	position: absolute;
	left: 333px;
}

#services section.right div.service-description {
	left: 0;
	right: 333px;
}

#services h2 {
	font: 30px "Times New Roman", Times, serif;
	font-weight: normal;
	color: #fff;
	background: #4d4d4d;
	opacity: 0.8;
	text-align:center;
	text-transform: uppercase;
	transform: translate(0%, 200%);
}

#services p {
	font-size: 16px;
	line-height: 24px;
	margin: 50px 50px 0;
	display: block;
}

#process {
	position: relative;
	background-image: url("../img/bg-maze.png");
	background-position: center center;
}

#process header {
	width: 308px;
	right: 0;
	position: absolute;
	margin: 0 70px;
	top: 50%;
	margin-top: -96px;
}

#process header h1 {
	font: 48px/48px 'Arizonia', cursive;
	width: 228px;
	text-align: center;
	margin: 0 auto;
	padding: 0 40px;
	color: white;
	opacity: 0.8;
}

#process header h1::before,
#process header h1::after {
	content: "";
	display: block;
	border-left: 2px solid white;
	opacity: 0.8;
	height: 95px;
	position: absolute;
	top: 50%;
	margin-top: -47px;
}

#process header h1::before {
	left: 0px;
}

#process header h1::after {
	right: 0px;
}

#process section {
	_float: right;
}

#process section p {
	margin: 80px 420px 80px 80px;
	color: white;
	opacity: 0.8;
}

#about {
	position: relative;
	width: 100%;
}

#about header {
	width: 203px;
	background: #ccc;
	position: absolute;
	z-index: 100;
	text-align: center;
	height: 105%;
	margin-left: 56px;
	top: -20px;
}

#about header div {
	position: absolute;
	top: 50%;
	margin-top: -75px;
}

#about img#owl {
	max-width: 94px;
}

#about img#cpa {
	left: -11px;
	position: relative;
	margin-top: 39px;
}

#about section.content {
	background: #f2f2f2;
	z-index: 50;
	padding: 20px 50px 20px 309px;
}

#about section.content p {
	font-size: 90%;
	line-height: 150%;
}

div.footer-item {
	float: left;
	width: 33%;
	margin-bottom: 50px;
}

div.footer-item div {
	max-width: 300px;
	margin: 0 auto;
	text-align: center;
}

div.footer-item p {
	font-size: 16px;
	line-height: 1.75em;
	margin: 0;
}

div.footer-item div.text {
	margin-top: 30px;
}

div.footer-item a {
	text-decoration: none;
	color: #666;
}

div.footer-item a:hover {
	text-decoration: underline;
	color: #333;
}

#copyright p{
	text-align: center;
	color: #666;
}

/* ===========================
   popup
   =========================== */

.button {
  text-decoration: none;
  color: #666;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease-in-out;
}

.button:hover {
  border-color: #666;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
  z-index: 999;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 30% auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 80%;
  position: relative;
  transition: all 5s ease-in-out;
}

.popup h2 {
  margin-top: 0;
  color: #333;
  font-family: Tahoma, Arial, sans-serif;
}
.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  text-decoration: none;
  color: #666;
}
.popup .close:hover {
  color: #06D85F;
}
.popup .content {
  max-height: 30%;
  overflow: auto;
  font-size: 80%;
  line-height: 150%;
}

.popup .content a {
  color: #666;
  text-decoration: none;
}

.popup .content a:hover {
	text-decoration: underline;
}

/* ===========================
   Back to Top Button
   =========================== */

#myBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 888; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: #ffd161; /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 10px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  opacity: 0.8;
}

#myBtn:hover {
  background-color: #555; /* Add a dark-grey background on hover */
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (max-width: 768px) {
    .main article {
		margin: 0 auto 20px;
    }
	
	.header-container {
		position: static;
		height: auto;
	}
	
	.header-container header {
		height: auto;
	}
	
	.header-container header .logo {
		margin-top: 20px;
	}
	
	.header-container header .logo img {
		height: 50%;
		width: 50%;
		max-width: 146px;
	}
	
	.header-container header nav {
		margin: 20px 0 0;
		position: static;
	}
	
	nav li {		
		border-top: 1px solid white;
		background: #eee;
	}

	nav li:hover, li:active {		
		background: #aaa;
	}

	nav a {
		margin-bottom: 0;
		padding: 0;
		line-height: 50px;
		_padding: 10px;
		_display: initial;
	}
	
	.header-container header nav li.spacer a {
		margin-right: 0;
	}
	
	.main {
		padding: 0;
	}
	
	#splash {
		height: 300px;
		width: 100%;
	}
	
	#splash header h1 {
		font-size: 3em;
	}
	
	#process header {
		width: auto;
		position: static;
		margin: 1em;
		top: 0;
	}
	
	#process header h1 {
		width: auto;
		padding: initial;
		font-size: 2.5em;
		line-height: initial;
	}
	
	#process header h1::before, #process header h1::after {
		content: none;
	}
	
	#process section p {
		margin: 1em;
	}
	
	#services section div.service-title {
		float: none;
		background-position: center center;
		height: 3em;
		margin: 0 auto;
		max-width: 333px;
		width: auto;
	}
	#services section.right div.service-title {
		float: none;
	}
	#services section div.service-description {
		position: static;
		left: 0;
	}
	#services h2 {
		transform: translate(0%, 0%)
	}
	#services p {
		margin: 1em;
		line-height: 200%;
	}
	
	#about {
		display: table;
	}
	
	#about header {
		width: auto;
		position: static;
		height: auto;
		margin: initial;
		top: 0;
		display:table-footer-group;
	}
	
	#about header div {
		position: static;
		top: 0;
		margin: initial;
		padding: 15px;
		display: table-cell;
	}
	
	#about img#cpa {
		left: 0;
		position: static;
		margin: initial;
		margin: 48px 0 0 80px;
	}
	
	#about section.content {
		padding: 15px;
	}
	
	#about section.content h2 {
		margin-top: 0;
	}
	
	#about section.content p {
		font-size: 100%;
		line-height: 200%;
	}
	
	.footer-container footer {
		clear: both;
		width: 100%;
	}
	
	div.footer-item {
		float: none;
		width: auto;
		margin: 0 auto;
		clear: both;
		max-width: 350px;
		width: 100%;
	}
	
	div.footer-item div {
		max-width: none;
		text-align: initial;
		display: inline-block;
		vertical-align: middle;
	}
	
	div.footer-item div img {
		margin: 10px;
		width: 70px;
	}
	
	div.footer-item div.text {
		margin: initial;
	}
	
	div.footer-item p {
		margin: 5px 0;
	}
	
	#copyright p {
		font-size: 80%;
	}
}

@media only screen and (min-width: 769px) {

/* ====================
    INTERMEDIATE: Menu
   ==================== */

    nav a {
        float: left;
        width: 100px;
        margin: 0 1.7%;
        padding: 0 1%;
        margin-bottom: 0;
    }

    nav li:first-child a {
        margin-left: 0;
    }

    nav li:last-child a {
        margin-right: 0;
    }

/* ========================
    INTERMEDIATE: IE Fixes
   ======================== */

    nav ul li {
        display: inline;
    }

    .oldie nav a {
        margin: 0 0.7%;
    }

/* ====================
    WIDE: CSS3 Effects
   ==================== */
/*
    .header-container,
    .main aside {
        -webkit-box-shadow: 0 5px 10px #aaa;
           -moz-box-shadow: 0 5px 10px #aaa;
                box-shadow: 0 5px 10px #aaa;
    }
*/
/* ============
    WIDE: Menu
   ============ */

    .title {
        float: left;
    }

    nav {
        _float: left;
        width: 768px;
    }

/* ============
    WIDE: Main
   ============ */

    .main article {
        width: 95%;
		margin: 0 auto 45px;
    }

}

@media only screen and (min-width: 1160px) {

/* ===============
    Maximal Width
   =============== */

    .wrapper {
        width: 1140px;
        margin: 0 auto;
    }
}

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

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

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

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        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) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

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

    thead {
        display: table-header-group;
    }

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

    img {
        max-width: 100% !important;
    }

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

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