/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    background: #fff;
}

body {
	font-family: 'Source Sans 3', sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 18px;
	line-height: 1.2em;
	width:100%;
	color: #000;
}

html, body {
	scroll-behavior: smooth;
}

iframe {
	border: none;
	width: 100%;
}

/*
 * A better looking default horizontal rule
 */

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


/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
    max-width: 100%;
}

/*
 * Remove default fieldset styles.
 */

form {
    margin: 80px 0 0;
}

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

input, textarea {
    outline: none;
    width: 90%;
    display: block;
    border: 1px solid #000;
    font-family: 'Source Sans 3', sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 18px;
	line-height: 1.2em;
	color: #000;
	margin: 0 0 1.5em;
	padding: 0.5em;
}

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

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


/* Grid */

article, section, .stack, footer {
	display: block;
	clear:both;
	overflow: visible;
}

article {
	margin:0;
	padding:120px 0;
}

section {
	width: 90%;
	margin: 0 auto;
	overflow: auto;
}

.flex {
	display: flex;
}

.column {
	float:left;
	margin: 0;
}

.full {
	width: 100%;
}

.two-thirds {
	width: 66.7%;
	margin: 0;
}

.half {
	width: 45%;
	margin: 0 5% 0 0;
}

.one-fourth {
	width: 25%;
}

.one-third {
	width: 33.3%;
}

ul, li {
	list-style: none;
	margin: 0;
	padding: 0;
}

ul {
	margin: 0 0 1.8em;
}

li {
	margin: 0 0 0.3em;
}

.right {
	float: right;
}

.left {
	float: left;
}


/* Typography */

h1, h2, h3, h4, h5 {
	font-family: 'Roboto Condensed', sans-serif;
	text-transform: uppercase;
	line-height: normal;
	font-weight: 600;
}

h1 {
	font-size: 3.6em;
    line-height: 1em;
    margin: 0 0 0.3em;
}

h2 {
    font-size: 2.4em;
    margin: 0 0 0.6em;
}

h3 {
    font-size: 1.6em;
    margin: 0 0 0.5em;
}

h4 {
	margin: 0 0 0.3em;
}

p {
	margin: 0 0 1.5em;
	line-height: 1.35em;
}

.bold {
	font-weight: 600;
}

a, a:visited {
    font-weight: 500;
}

a.button, a.button:visited, button {
	font-family: 'Roboto Condensed', sans-serif;
	text-transform: uppercase;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.2em;
	color: #fff;
	background: #881202;
	border: none;
	padding: 0.6em 1.2em;
	display: inline-block;
}

nav {
	width:100%;
	position: fixed;
	color: #fff;
	background: #000;
	transition: background 0.4s ease-out;
	z-index: 100;
}

nav .logo {
    display: inline-block;
    float: left;
    margin: 0px 20px;
    height: 60px;
    width: 220px;
    background: url(../img/logo-white.svg) left center no-repeat;
    background-size: contain;
}

nav a {
	color: #fff;
	text-transform: uppercase;
	text-decoration: none;
	font-weight: 400;
}

.contact-bar {
	background: #881202;
	padding: 10px 20px;
}

.contact-bar a {
	margin: 0 20px 0 0;
}

.nav-desktop {
	margin: 0;
	padding: 20px 0;
	height: 60px;
}

.nav-desktop ul {
    margin: 17px 30px;
    float: right;
    padding: 0;
}

.nav-desktop ul li {
    float: left;
    margin: 0 0 0 20px;
}

.nav-desktop ul li:last-of-type {
	
}

.nav-desktop ul li a, .nav-mobile ul li a {
	padding: 0;
}

.nav-desktop ul li a.current, .nav-mobile ul li a.current {
	border-bottom: 4px solid #881202;
	font-weight: 700;
}

.nav-desktop ul li a {
	font-size: 0.8em;
	letter-spacing: 0.025em;
}

.nav-desktop ul li a:hover {
	border-bottom: 1px solid #fff;
}

.nav-mobile ul li a {
	font-size: 1.3em;
}

.nav-desktop ul li a:hover {
	
}

.nav-mobile {
	display: none;
}

.menu-mobile {
	display: none;
}


/* Content */

#hero {
	background: url('../img/warm-and-cozy-fireplace2.png') left 50px no-repeat;
	background-size: cover;
	height: 400px;
	overflow: hidden;
	color: #fff;
}

#hero div {
    margin: 5em 0px;
}

#hero a {
	margin: 1.8em 0 0;
}

.content-page {
	padding: 180px 0 120px;
}

.home-page {
	padding: 80px 0 0
}

.content-page .stack {
	display: inline-block;
	margin: 4em 0;
    width: 100%;
}

.content-page .stack:first-of-type {
	margin: 0;
}

.content-page .text-block {
	margin: 0;
}

.content-page a {
	color: #881202;
	text-decoration: none;
    border-bottom: 1px solid #881202;
    display: inline-block;
    line-height: 1em;
}

.content-page a.button {
	margin: 1em 0 0;
	color: #fff;
}

.content-page ul li {
    margin: 0 0 0.5em 1.5em;
    padding: 0 0 0 0.5em;
    list-style: square;
}

.content-page p {
    font-size: 1.1em;
}

.content-page p.intro-paragraph {
	font-size: 1.3em;
	line-height: 1.4em;
	margin: 0;
} 

.services {
    height: fit-content;
    clear: both;
    margin: 0 0 1em;
    display: inline-block;
}

.service-block {
    padding: 2em;
    height: 360px;
    width: 14.5%;
    background: #eee;
    margin: 0 1.2em 0 0;
    color: #fff;
}

.service-block:last-of-type {
    margin: 0;
}

.inspections {
	background: url('../img/professional-inspecting-a-chimney.png') center center no-repeat;
	background-size: cover;
}

.repairs {
	background: url('../img/chimney-inspection.png') center center no-repeat;
	background-size: cover;
}

.boiler {
	background: url('../img/professional-inspecting-a-gas-boiler-chimney.png') center center no-repeat;
	background-size: cover;
}

.gutter-cleaning {
	background: url('../img/professional-cleaning-gutters-of-a-house.png') center center no-repeat;
	background-size: cover;
}

.service-block h3 {
    margin: 6em 0 0.5em;
    line-height: 1.3em;
}

.service-block p {
	font-size: 1em;
}

.service-block a {
	text-decoration: none;
	color: #fff;
	font-weight: 600;
	display: inline;
}

.service-block a:hover {
	border-bottom: 1px solid #fff;
}

.service-cta a.button, .service-cta a.button:visited {
	font-family: 'Roboto Condensed', sans-serif;
	text-transform: uppercase;
	text-decoration: none;
	font-weight: 600;
	text-align: center;
	color: #fff;
	background: #881202;
	display: block;
	margin:0 2em 0 0;
}


a.button:hover, button:hover, .service-cta a.button:hover {
	opacity: 90%;
}

.bottom-content {
	background: #eee;
	padding: 120px 0;
}

.bottom-content a {
	color: #881202;
}

footer {
	background: #881202;
	color: #fff;
	padding: 40px 30px 40px;
	overflow: hidden;
}

footer p {
	font-size: 0.8em;
	line-height: 1.5em;
	text-align: left;
	margin:0;
	display: block;
	float: left;
}

footer a {
	color: #fff;
}



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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

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

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

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

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   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 */

}


/* Mobile & Tablet - Media Queries for Screens less than 768 */

@media only screen and (max-width: 1023px) {

	article, section {
		overflow: hidden;
	}
	
	article {
		padding: 80px 40px;
		margin: 0;
	}
	
	section {
		width: 100%;
	}
	
	.column {
		float: none;
	}

	.two-thirds, .half, .one-third, .one-fourth {
		width: 100%;
	    margin: 0 0 1em;
	}
	
	.right {
		float: none;
	}
	
	.flex {
		display: block;
	}
	
	h1 {
		margin: 0 0 0.5em;
		font-size: 3em;
	}
	
	h2 {
	    font-size: 2em;
	}
	
	h3 {
		margin: 0 0 0.5em;
	}
	
	h4 {
		line-height: 1.3em;
		margin: 0 0 0.5em;
	}
	
	p {
		margin: 0 0 1.5em;
	}
	
	.nav-desktop {
		display: none;
		-webkit-transition: all .2s ease-in-out;
		-moz-transition: all .2s ease-in-out;
		-o-transition: all .2s ease-in-out;
		-ms-transition: all .2s ease-in-out;
	}
	
	.nav-mobile {
	    display: block;
	    -webkit-transition: all .2s ease-in-out;
		-moz-transition: all .2s ease-in-out;
		-o-transition: all .2s ease-in-out;
		-ms-transition: all .2s ease-in-out;
	}
	
	nav .logo {
		background: url(../img/logo-white.svg) 6px 17px no-repeat;
		background-size: 90%;
	}
	
	.menu-mobile {
		display: inline-block;
		float: right;
		height: 42px;
		width: 42px;
		background: url(../img/icon-menu.svg) no-repeat;
		margin: 15px 20px;
		-webkit-transition: all .2s ease-in-out;
		-moz-transition: all .2s ease-in-out;
		-o-transition: all .2s ease-in-out;
		-ms-transition: all .2s ease-in-out;
	}
	
	#close-menu {
		display: none;
		float: right;
		height: 42px;
		width: 42px;
		background: url(../img/icon-close.svg) no-repeat;
		margin: 15px 20px;
		-webkit-transition: all .2s ease-in-out;
		-moz-transition: all .2s ease-in-out;
		-o-transition: all .2s ease-in-out;
		-ms-transition: all .2s ease-in-out;
	}
	
	#menu-links {
		display: none;
		clear: both;
		text-align: center;
		padding: 2em 0;
		-webkit-transition: all .2s ease-in-out;
		-moz-transition: all .2s ease-in-out;
		-o-transition: all .2s ease-in-out;
		-ms-transition: all .2s ease-in-out;
	}
	
	#menu-links li {
		margin: 0 0 1.5em;
	}
	
	.content {
		width: 100%;
	}
	
	#hero {
		background: url('../img/warm-and-cozy-fireplace2.png') center top no-repeat;
		background-size: cover;
		height: 400px;
	}
	
	#hero div {
	    margin: 100px 0 220px;
	}
	
	#hero p {
		margin: 0;
	}
	
	.content-page {
		padding: 120px 40px 80px;
	}
	
	.content-page .stack {
	    margin: 2em 0;
	}
	
	.content-page .text-block {
	    margin: 2em 0;
	}

	.content-page p.intro-paragraph {
	    margin: 0 0 1em;
	}
	
	.content-page a.button {
	    margin: 0;
	}
	
	.home-page {
		padding: 60px 40px 80px;
	}
	
	.bottom-content {
		padding: 80px 40px;
	}
	
	.services {
	    
	}
	
	.service-block {
	    padding: 1.5em;
        overflow-wrap: anywhere;
		inline-size: auto;
	}
	
	.service-block h3 {
	    margin: 6em 0 0.5em;
	}
	
	.service-block:last-of-type {
	    margin: 0;
	}
	
	.service-cta a.button, .service-cta a.button:visited {
	    margin: 0;
	}
		
	footer {
		padding: 40px 40px;
		margin: 0;
	}

	footer p {
		margin: 0 0 1em;
		text-align: left;
	}

}


/* Tablets - Media Queries for Screens between 768 and 1024 */

@media (min-width: 768px) and (max-width: 1023px) {
	
	#hero {
		height: 400px;
	}

}


/* Medium Desktop - Media Queries for Screens between 1024 and 1440 */

@media (min-width: 1024px) and (max-width: 1439px){
	
	nav .logo {
	    background: url(../img/logo-white.svg) left 14px no-repeat;
	    background-size: 100%;
	    width: 160px;
	    margin: 0 0 0 20px;
	}
		
	.nav-desktop {
	    padding: 10px 0;
	}

	.nav-desktop ul {
	    margin: 17px 15px;
	}

	.nav-desktop ul li {
	    margin: 0 0 0 10px;
	}
	
	.nav-desktop ul li a {
	    font-size: 0.75em;
	}
		
	article {	
		padding:60px 0;
	}
	
	.two-thirds {
		width: 100%;
	}
	
	.one-third {
		width: 100%;
	}
	
	#hero {
		height: 420px;
	}

	#hero div {
	    margin: 8em 0px;
	}
	
	.service-block {
		width: 39%;
	    margin: 0 0 1.2em 0;
	    display: inline-block;
	}
	
	.service-block:first-of-type {
	    margin: 0 1.2em 1.2em 0;
	}
	
	.service-block:last-of-type {
	    margin: 0 0 1em 1.2em;
	}
		
	.service-cta a.button, .service-cta a.button:visited {
	    margin: 0 1em 0 0;
	    font-size: 15px;
	}
	
	.content-page .text-block {
	    margin: 0 0 2em 0;
	}

}

/* All Desktops - Media Queries for Screens between 1024 and 1200 */

@media (min-width: 1024px) and (max-width: 1199px) {

	nav .logo {
	    background: url(../img/logo-white.svg) left center no-repeat;
	    background-size: 200px;
	    width: 100%;
	}
	
	.nav-desktop ul {
	    float: left;
	    width: 100%;
	}
	
	.nav-desktop ul li {
	    margin: 0 15px 0 0;
	}
	
	.nav-desktop ul li:first-of-type {
	    margin: 0 25px 0 10px;
	}
}


/* Medium Desktop - Media Queries for Screens between 1200 and 1440 */

@media (min-width: 1200px) and (max-width: 1439px){
	
	.service-block {
		width: 39.5%;
	}

}

/* Large Desktop - Media Queries for Screens between 1440 and 1600 */

@media (min-width: 1440px) and (max-width: 1599px){
	
	h3 {
		font-size: 1.4em;
	}
	
	.service-block {
		width: 15.5%;
	}

}

/* Large Desktop - Media Queries for Screens larger than 1600 */

@media (min-width: 1600px) {
	
	.service-block {
		width: 16.5%;
	}

}


/* Large Desktop - Media Queries for Screens larger than 1200 */

@media (min-width: 1200px) {

	section {
		width: 80%;
	}

}


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

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

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

    pre,
    blockquote {
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

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

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

    @page {
        margin: 0.5cm;
    }

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

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