/*
Theme Name: Tucker & Nankivell (Mobile First)
Theme URI: http://www.almostanything.com.au
Description: A generic starting point. Mobile-first, fully responsive. Home page has 3 Calls to Action. Main content with right sidebar. Horizontal Nav, requiring WP built-in menu management. Inbuilt homepage CTA management.
Version: 2012.2
Author: The Almost Anything Web and Graphic Design Crew
Author URI: http://www.almostanything.com.au
*/

/*
 * RELATIVE EMS: target/context=result
 * So if you want a 24px heading, and the parent element is 15px, you need to specify 1.6ems
 * ie 24/15=1.6
 * Got it yet Stu?
 * Similarly with widths. Elements will be a %age or their parent.
 *
 * THIS IS A MOBILE-FIRST STYLESHEET
 * If you're styling for the desktop you are editing the WRONG FILE
 * Go back, do not pass Go, do not collect $200
 */

/* Resets, Globals */

/* {
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    box-sizing:border-box;
}*/

div,dl,dt,dd,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,table,blockquote,th,td {
    margin:0;
    padding:0;
    line-height:inherit;
}

    dl,ul,ol,h1,h2,h3,h4,h5,h6,form,fieldset,p,blockquote,table {
        margin:1em 0;
    }

        h1,h2,h3,h4,h5,h6 {
            margin:1em 0 .5em;
        }

            h1 {
                margin:0 0 .5em;
            }

table {
    border-collapse:collapse;
    border-spacing:0;
}

address,caption,cite,code,dfn,var {
    font-style:normal;
    font-weight:normal;
}
 
caption,th {
    text-align:left;
}

sup {
    vertical-align:text-top;
}

sub {
    vertical-align:text-bottom;
}

input,textarea,select {
    font-family:inherit;
    font-size:inherit;
    font-weight:inherit;
    padding:0 .4em;
}

/* Clearfix */
    
.clearfix:after, header>nav:after {
    content:"";
    display:block;
    clear:both;
}

/* End Clearfix */

/***************************************************************
 *
 * Let's play Tetris!
 * This is basic grid, we're layout out the main semantic blocks
 *
 ***************************************************************/

html, body {
    margin:0;
    padding:0;
    line-height:1.5;
	min-height:100%;
}

    html {
        font-family: Calibri, Tahoma, Arial, sans-serif;
		background: #FFF url(images/bg.jpg) repeat;
		height:auto;
		min-height:100%;
    }

    body {
        color: #3c3c3b;
        font-size: 100%; /* Baseline: this means that 1em = 16px */
		font-family: "pragmatica-web",sans-serif;
		font-weight:200;
		background: transparent url(images/bg-logo-fade.png) no-repeat;
		background-position:top right -400px;
		min-height:100%;
    }
	

.contentbox {
    width: 100%;
    margin: auto;
    font-size: 1.25em; /* 20px for normal paragraph text */
}

article, .contentbox .sidebar {
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    box-sizing:border-box;
}
    
@media only screen and (max-width: 999px) {    
	article {
        padding:1em 3%;
    }
}

/***************************************************************
 *
 * Header
 *
 ***************************************************************/

.site_info {
    padding:1.5em 3%;
	max-width:960px;
	margin:0 auto;
}

.site_title {
        float:left;
		margin:2.1em 0em 0em 2em;
		text-transform:lowercase;
        text-align: center;
		font-family: "trajan-pro-3",sans-serif;
		color:#0077a3;
		font-weight:100;
		line-height:1.3em;
    }

    .site_logo, .site_logo:hover, .site_logo img {
        background:none;
        position:relative;
        border:none;
		width:150px;
		height:150px;
    }
	
	a.site_logo {width:150px; height:150px; overflow:hidden; float:left;}

/* Skip links */
#skiplinks {
    position: absolute;
    left: -9999px;
}

.CompanyName {font-size:2.5em;}
.CompanyDescription {font-size:1.2em;}
.ampasand {font-size:1.4em}

.site_title a {text-decoration:none; color:#0077a3;}

@media only screen and (max-width: 700px) {
	
	.site_info {text-align:center;}
	
	a.site_logo {float:none; margin:0 auto;}
	
	.site_title {float:none; margin:0 auto; text-align:center; margin-top:1em;}
	
	.CompanyName {font-size:1.4em;}
	
	.ampasand {font-size:1.3em}
	
	 .site_logo, .site_logo:hover, .site_logo img {margin:0 auto;}
	
}


/***************************************************************
 *
 * Navigation
 *
 ***************************************************************/
/* Basic list reformatting */
.nav li {position:relative;}
.nav ul {position:absolute;top:-9999px;left:0;}
.nav ul, .nav ul li {display:block;}
.nav li:hover ul, .nav li.sfHover ul {top:2em;z-index:100;display:block;}
.nav li li:hover ul, .nav li li.sfHover ul {top:0; left:-250px;}
ul#menu-main-nav{width:100%; max-width:960px; margin:0 auto}

/* main item width */
nav ul li ul, nav ul li li {width: 250px;}

/* Basic list reformatting */
.nav, nav ul, nav li {margin:0;padding:0;list-style:none;}
.nav li { float:left; }
	
	 .nav, .nav ul {max-width:960px; margin:0 auto;}

/* Customise from here... */
header>nav {
    background:#0077a3;
    line-height:2em;
    padding:0 3%;
	margin-bottom: 1em;
}

.nav a {
    color: #FFF;
    padding:0 0.6em;
    border:none;
    display:block;
    text-decoration: none;
	font-family: "trajan-pro-3",sans-serif;
	text-transform:lowercase;
	font-weight:100;
}

.nav a:focus, .nav a:hover, .nav a:active, nav a:hover, nav .sfHover>a {
    background:#5ab5d4;
    color: #fff;
}

nav .current_page_item>a, .single-post nav .current_page_parent>a, nav .current_page_ancestor>a, nav .current-menu-item>a, nav .current-menu-ancestor>a/*, .single-aacommerce_product nav .menu-item-151>a */ {
    background:#a7cbd7;
    color:#fff;
    font-weight:bold;
}

.nav li ul {
    display: none;
}

ul.sub-menu {background:url(images/bg.jpg); border:1px solid #0077a3;}

ul.sub-menu li a {font-family: "pragmatica-web",sans-serif; font-weight:200; text-transform:none; color:#3c3c3b; font-size:0.9em;}

/* Displays a sub nav immediately after the main (if exists). Here for ease of use on mobile. Hide for desktop and add dropdowns if required */
.mobile_sub_menu {
    width:94%;
    padding:1em 3%;
    margin:0 auto;
    overflow:hidden;
    background: #eee;
}

/* This is for the mobile nav icon */
#menu-icon {
    display: none;
}

/* Squish menu down into a button */
@media only screen and (max-width: 750px) {
	
	header>nav {
	background:transparent;
	}

    #menu-icon {
        width: 100%;
        line-height: 3em;
        cursor: pointer;
        /*border: 1px solid #333;*/
        display: block;
        text-align: center;
		color:#FFF;
	   background: #0077a3; /* Old browsers */
    }

    #menu-icon:after{
        content: " \2193"; /* down arrow */
    }

        #menu-icon.active:after {
            content: " \2191"; /* down arrow */
        }

    .mobile_sub_menu{
        border-top: 1px solid #333; /* Hacky - bottom border gets cut off menu :( */
    }

    header nav {
        margin:0 0 1em;
    }

    header nav>ul {
        clear: both;
        position: relative;
        z-index: 10000;
        border-top:none;
    }

    .nav { margin:0 0 1em; }

    nav ul li {width:100%;}

    .nav li:hover ul, .nav li.sfHover ul {display:none;}

    header nav>ul {width:100%;}
	
	.nav a {color:#3c3c3b;}

}

/***************************************************************
 *
 * Main Content - <article>
 *
 ***************************************************************/
#content {font-size: 0.9em;margin-bottom: 2em;}

article h1 {
    font-size: 1.8em;
	color:#0077a3;
	font-family: "trajan-pro-3",sans-serif;
	font-weight:100;
	text-transform:uppercase;
}

article h2 {
    font-size: 1.6em;
	color:#0077a3;
	font-family: "trajan-pro-3",sans-serif;
	font-weight:100;
}

article h3{
    font-size: 1.2em;
}

article h4, article h5, article h6{
    font-size: 1em;
}

article a {
   color:#0077a3;
   text-decoration:none;
}

article a:hover {
    color:#3c3c3b;
    border-bottom:1px dotted #3c3c3b;
    text-decoration:none;
}

/* the next 3 rules are for the way WP sets its image floats. On skinny screens we'll just centre them all */
article .alignleft, article .alignright, article .aligncenter {
    text-align:center;
    margin:1.5em auto;
    display:block;
}

img {

}

a img {
    border:none;
}

article strong {color:#0077a3;}

/* These 2 will make image captions look a bit like polaroids */
.wp-caption {
    background:#0077a3;
    overflow:hidden;
    max-width:100%;
	color:#FFF;
}

    body.attachment .wp-caption {
        background:none;
        overflow: visible;
    }

    .wp-caption.alignnone {
        margin:1.5em 0;
    }

    .wp-caption>a, .wp-caption img {
        display:block;
    }

        .wp-caption img {
            width:100%;
        }

    .wp-caption-text {
        padding:0;
        margin:.75em 1em;
        line-height:1.3em;
    }

        body.attachment .wp-caption-text {
            margin:.75em 0;
            font-weight:bold;
        }

        .gallery .wp-caption-text {
            margin:.25em 1em 0 0;
            font-size:.9em;
        }

.gallery .gallery-item {
    float: left;
    margin:0 0 3%;
}

.gallery a, .gallery img {
    display:block;
}

    .gallery img {
        max-width:95%;
        width:auto;
        height:auto;
    }

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

    .gallery dl.gallery-item {
        float: none;
        margin: 0 0 1em;
        width:auto;
        text-align:center;
    }

        .gallery a {
            display:inline-block;
        }

    .gallery .wp-caption-text {
        text-align: center;
        font-size:inherit;
    }

    .gallery br {
        display:none;
    }

}

/*
Image sizes depending on the number of columns
Based on Hybrid theme
*/

.gallery-columns-0 .gallery-item {
    width: 100%;
}
.gallery-columns-1 .gallery-item {
    width: 100%;
}
.gallery-columns-2 .gallery-item {
    width: 50%;
}
.gallery-columns-3 .gallery-item {
    width: 33.33%;
}
.gallery-columns-4 .gallery-item {
    width: 25%;
}
.gallery-columns-5 .gallery-item {
    width: 20%;
}
.gallery-columns-6 .gallery-item {
    width: 16.66%;
}
.gallery-columns-7 .gallery-item {
    width: 14.28%;
}

/* Callouts, pullquotes */
blockquote {
    position:relative;
    padding:0 0 0 2.3em;
    margin:1.5em 0;
}

blockquote:before, blockquote:after {
    content: "“";
    font-size: 5em;
    position: absolute;
    left: 0;
    top: .27em;
    color:#333;
}

blockquote:after {
    line-height:0;
    right:0;
    left:auto;
    top:auto;
    bottom:-.1em;
    color:#ddd;
    content:"”";
}

/* Tables */

table, th, td {
    border:none;
    border:1px solid #ddd;
    text-align:left;
    border-collapse:collapse;
}

    table {
        margin:1em 0;
    }

    td, th {
        line-height:1.3em;
        padding:.4em .6em;
    }

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

        article table {
            border:none;
        }

        article tr, article td, article th {
            display:block;
            border:none;
        }

            article tr {
                margin:0 0 1em;
            }
            
    }

/* CTA Buttons */

.button {
    color: #fff;
    background: #0077a3;
    border:none;
    cursor:pointer;
    font-weight:100;
    -moz-border-radius:3px;
    -webkit-border-radius:3px;
    border-radius:3px;
    padding: .5em .75em;
    text-decoration: none;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    box-sizing:border-box;
}

    .button:hover {
        background:#a7cbd7;
    }

/* Gravity Forms Style fixes */ 

article .gform_wrapper textarea, article .gform_wrapper input[type=text], article .gform_wrapper input[type=url], article .gform_wrapper input[type=email], article .gform_wrapper input[type=tel], article .gform_wrapper input[type=number], article .gform_wrapper input[type=password], article .gform_wrapper .ginput_complex label, article .gform_wrapper .gfield_time_hour label, article .gform_wrapper .gfield_time_minute label, article .gform_wrapper .gfield_date_month label, article .gform_wrapper .gfield_date_day label, article .gform_wrapper .gfield_date_year label, article .gform_wrapper .instruction {
    font-size:1em;
}

    article .gform_wrapper textarea, article .gform_wrapper input[type=text], article .gform_wrapper input[type=url], article .gform_wrapper input[type=email], article .gform_wrapper input[type=tel], article .gform_wrapper input[type=number], article .gform_wrapper input[type=password] {
        padding:.5em;
        max-width:100%;
        -moz-box-sizing:border-box;
        -webkit-box-sizing:border-box;
        box-sizing:border-box;
    }

article .gform_wrapper .gform_footer {
    padding:0;
}


/***************************************************************
 *
 * Sidebar
 *
 ***************************************************************/

.sidebar {
    background:transparent;
	padding:1em;
}

.sidebar, .sidebar ul, .sidebar li {
    margin: 0;
    list-style: none;
    clear: both;
}

.sidebar li ul { /* a nested list, so this should actually be displayed as a list */
    padding-left: 7.142857142857%; /* 20/280=0.07142857142857 */
}

.sidebar li ul li {
    list-style: disc;
}

.sidebar strong, .sidebar h2, .mobile_sub_menu strong {color:#0077a3; font-family: "trajan-pro-3",sans-serif; font-weight:100;}

ul.child_pages li {padding:0.3em 0; border-bottom:1px solid #aaa;}

ul.child_pages li a {color:#3c3c3b; text-decoration:none;}

ul.child_pages li a:hover {color:#0077a3; background:transparent;}

ul.child_pages li.current_page_item a {color:#0077a3; background:transparent;}

.sidebar .gform_body li label {color:#0077a3;}

/***************************************************************
 *
 * News and/or blog
 *
 ***************************************************************/
.postdate, .postmetadata {
    font-size:0.8em;
    font-style:italic;
    margin:0;
}

.pagination {
    margin:1em 0;
}

    .page-numbers,
    .page-numbers:hover {
        display: inline-block;
        border: 1px solid #a7cbd7;
        padding: .1em .4em 0;
    }

        a.page-numbers:hover {
            background:#a7cbd7;
            color:#fff;
        }

        .page-numbers.current {
            font-weight:bold;
            background:#0077a3;
            border-color:#0077a3;
            color:#fff;
        }

/***************************************************************
 *
 * Homepage
 *
 ***************************************************************/

/* Funeral notices */

.funeral-notices__title {
    margin: 1.5em 0 1em;
    text-align: center;
}

.funeral-notices__funeral-title {
    margin:0;
    font-size:1.25em;
}

.funeral-notices {
    display:-ms-flexbox;
    display:-webkit-flex;
    display:flex;
    -ms-flex-flow:row wrap;
    flex-flow:row wrap;
    margin:0 -1.5%;
}

    .funeral-notices__notice {
        -ms-flex:1 1 auto;
        -webkit-flex:1 1 auto;
        flex:1 1 auto;
        margin:0 1.5%;
        width:30.333%;
        text-align:left;
    }

#column1, #column3 {width:14%; text-align:center; vertical-align:bottom;}

#column2 {width:70%; margin:0 auto 0 14.4%;}

#column1 {float:left;}

#column3 {float:right;}

.cta {background:#0077a3;}
.cta:hover {background:#a7cbd7;}

.cta {width:100%; height:140px;}

#cta1, #cta4 {margin-bottom:10px}

#cta3 {width:100%; height:300px; margin:0 1%; background:#0077a3 url(images/Front-Page.jpg) no-repeat top center; box-shadow: inset 0 0 0 5px #0077a3;}

#cta3:hover {box-shadow: inset 0 0 0 5px #a7cbd7;}

.cta p {display:inline;}

.cta a {display:block; padding-bottom:10px; text-decoration:none; border-bottom:none; color:#FFF; font-family: "trajan-pro-3",sans-serif; text-transform:lowercase; font-size:0.75em}

.cta a:hover {border-bottom:none; color:#FFF;}

#cta3 a {padding:250px 20px 10px; text-align:right; font-size:1.6em; text-shadow:2px 2px #3c3c3b;}

.cta img {display:block; padding:10px 0; margin:0 auto;}

@media only screen and (max-width:800px) {
	
	#column1, #column2, #column3 {float:none; width:100%; margin:0 auto;}

    .cta {
        width: 40%;
        margin: 0 1% 1em 8%;
        float: left;
    }
	
	#cta3 {width:100%;}

}

/***************************************************************
 *
 * Contact Page
 *
 ***************************************************************/

#google_map { /* The outer div */
    margin: 1.5em 0;
}

#google_map #map_canvas { /* the inner container that defines the actual map size */
    width: 95%;
    height: 300px;
    margin: auto;
}

/***************************************************************
 *
 * Footer
 *
 ***************************************************************/

footer {
    background:#0077a3;
	padding:1em 0;
    font-size:.8em; /* footer has been set to 12.8px */
    clear: both;
	font-family: "trajan-pro-3",sans-serif; text-transform:lowercase;
	color:#FFF;
}

.widthlimiter {max-width:960px; margin:0 auto;}

footer .widgetarea {
    width:40%;
    margin: 0 1.5% 1em 1.5%;
    float: left;
}

.widgetarea.secondary {display:none;}

footer .widgetarea>ul, footer .widgetarea>ul>li {
    list-style:none;
    margin:0;
    padding:0;
}

footer .widgetarea.tertiary img {margin-bottom:0.7em;}

footer .widgetarea.tertiary {text-align:center; font-size:1.2em; line-height:1em; float:right}

footer .widgetarea.tertiary .small {font-size:0.6em;}

footer .widgetarea.primary {margin-top:1em}

footer .widgetarea.primary h2 {font-weight:100; padding:0; margin-bottom:0; margin-left:18px;}

footer .widgetarea.primary .small {font-size:1em;}

footer .widgetarea.primary img {position: absolute; margin-top:-10px;}

footer .widgetarea.primary a {color:#FFF; text-decoration:none;}

footer .widgetarea.primary a:hover {color:#FFF; text-decoration:underline;}


section.credits {
    clear:both;
    color:#3c3c3b;
    padding:1.5em 0 1.5em;
    text-align:center;
	font-size:0.7em;	
	background:url(images/bg.jpg);
}

section.credits a {color:#3c3c3b; text-decoration:none;}

section.credits a:hover {color:#0077a3; text-decoration:underline;}

/* Rich Contact Widget */

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

    .widget_rc_widget>ul>li {
        margin:0 0 .5em;
    }

    .widget_rc_widget .email {
        font-size:.8em;
    }

    .widget_rc_widget .tel:before {
        content: "Phone: ";
        font-weight:bold;
    }

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

    footer .widgetarea {
        width:100%;
        padding:0;
        margin:1em 0;
    }

    footer>nav, footer .vcard, section.credits {
        width: auto;
        float: none;
    }
	
	footer .widgetarea.primary {text-align:center}
	
	footer .widgetarea.primary img {display:none;}
	
	footer .widgetarea.primary h2 {margin-left:0px;}

}

.NewsContainer {
    margin-bottom: 3em;
}

/** salvattor **/

@media screen and (max-width: 749px) {
    .post-archive[data-columns]::before {
        content: '1 .column.size-1of1';
    }  
}

@media screen and (min-width: 750px) and (max-width: 1347px) {
    .post-archive[data-columns]::before {
        content: '2 .column.size-1of2';    
    }

    .column.size-1of2:nth-child(1) {
        margin-right: 1.5em;
    }   
}

@media screen and (min-width: 1348px) {
    .post-archive[data-columns]::before {
        content: '3 .column.size-1of3';    
    }

    .column.size-1of3:nth-child(2) {
        margin: 0 1.5em;
        margin-bottom: 2em;
    }  
}

.column {float: left;margin-bottom: 2em;}

.size-1of3 {width: 31%;}
.size-1of2 {width: 47.5%;}
.size-1of1 { width: 100% } 

.post-box {
    background: #fff;
    padding: 1em;
    margin-bottom: 1em;
    -webkit-box-shadow: 0px 0px 75px -30px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 75px -30px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 75px -30px rgba(0,0,0,0.75);
}

h2.post-box__title {
    font-size: 1.3em;
    margin-top: 0;
}

.ServiceDetails {
    margin-bottom: 2em;
}

.acf-map {
	width: 100%;
	height: 400px;
	border: #ccc solid 1px;
	margin: 20px 0;
}

/* fixes potential theme css conflict */
.acf-map img {
   max-width: inherit !important;
}

.button_container {
    display: block;
    width: 100%;
}

a.button.button_home {
    float: right;
}