@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');

@font-face {
    font-family: 'body';
    src: url('fonts/roboto-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'bodybold';
    src: url('fonts/roboto-bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    src: url(fonts/Balqis.ttf);
    font-family: headings;
}
:root {
    --neutralLight: #fff;
    --neutralDark: #000;
    --mainDark: #C1772E;
    --mainLight: #E29343;
    --comp: #7AA6C9;
}
* {
	box-sizing: border-box;
	font-family: body;
}
html {
    height: 100%;
    overflow-y: scroll; /*FORCE VERTICAL SCROLL BAR FOR SHORT PAGES*/
}
body {
    font-family: body;
    height: 100%;
    margin: 0;
    padding: 0;
}
section {
    width: 80%;
    margin: 0 auto;
}
h1 {
    font-size: 1.5rem;
}
main h1,
main h2 {
    color: var(--comp);
    font-family: 'headings';
    font-size: 3rem;
}
main h2 {
    font-size: 2rem;
}
header ul,
nav ul,
footer ul {
	list-style-type: none;
	padding: 0;
    margin: 0;
}
header a,
nav a,
footer a {
	text-decoration: none;
	color: inherit;
}
.grid {
    display: grid;
    grid-template-rows: auto auto 1fr auto; /*nav, header, main, footer*/
    grid-template-areas:
           "nav" 
           "header"
           "main"
           "footer";

    min-height: 100%;
}
main {
    grid-area: main;
    margin: 0 auto;
    padding: 1em 1em 15em 1em;
    width: 100%;
}
section {
    margin: 0 auto;
    padding: 0 1rem;
    width: 70%;
}
section p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 1em 0;
}
section ul {
    padding: 0;
    margin: 0;
}
header,
footer {
    padding: .5em 0;
}

#contact header {
    background-image: url(images/hero4.jpg);
    background-position: 0 -300px;
}
#credits header {
    background-image: url(images/hero7.jpg);
}
[id*="email"] header {
    background-image: url(images/hero3.jpg);
}
#bookings header {
    background-image: url(images/hero2.jpg);
}
#greycottage header {
    background-image: url(images/hero1.jpg);
}
#doublestoreycottage header {
    background-image: url(images/hero5.jpg);
}
#videos header {
    background-image: url(images/hero6.jpg);
    background-position: 0 -340px;
}
.hiddenbreak {
    display: none;
}
footer {
    grid-area: footer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    background-color: var(--mainDark);
    color: var(--neutralLight);
    bottom: 0;
    width: 100%;
    max-height: 100px;
    transition: .1s;
    z-index: 1;
}
footer a {
    display: inline-block;
    width: 50px;
    margin-right: 1em;
}
.social {
    display: flex;
    width: 30%;
    justify-content: center;
}
.social img {
    display: none;
}
.social a {
    width: 40px;
    height: 40px;
    display: block;
    margin-right: 1em;
    margin-top: .5em;
    font: normal normal normal 14px/1 FontAwesome;
    color: var(--neutralLight);
    text-decoration: none;
    font-size: 1.5rem;
    transition: .3s;
}
.social a:hover {
    color: var(--comp);
}
.social a[href*="facebook"]::before {
    content:"\f09a";
}
.social a[href*="twitter"]::before {
    content:"\f099";
}
.phone {
    padding-right: 2em;
    display: flex;
    align-items: center;
}
.phone a {
    text-decoration: none;
    color: inherit;
}
#menubutton {
    display: none;
}
nav,
nav ul {
    color: var(--neutralLight);
}
nav {
    background-color: var(--mainLight);
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 1;/*WAS 2*/
    grid-area: nav;    
}
nav ul {
    display: flex;
    justify-content: space-evenly;
    list-style-type: none;
    padding: 0;
    margin: 0;
}
nav ul ul {
    /*margin-left: -9999px;*/
    display: none;
    position: absolute; /*WITHOUT THIS, THE MENU ITEMS "JUMP" ON HOVER*/
    flex-direction: column;
    padding: .5em;
    width: 100%;
    box-shadow: 3px 3px 4px 4px rgba(0, 0, 0, .5);
    top: 100%;
    background-color: rgba(0, 0, 0, .3);
}
/*nav li:hover ul,
.nav li.sfHover ul {
    margin-left: 0;
}*/
nav li:hover ul,
.nav li.sfHover ul {
    display: block;
}
nav ul a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 1em 1em 1.5em 1em;
    transition: .3s;
    min-height: 100%;
    display: flex;
    align-items: center;
}
#contact nav ul a {
    min-height: auto;
}
nav ul a:hover:not(li.current a) {
    opacity: .7;
}
nav .current a {
    background-color: var(--mainDark);
    cursor: context-menu;
}
a[href*="parent-"]:not(ul ul a):not(.largeGallery a) {
    cursor: pointer;
    pointer-events: none;
}
nav li {
    position: relative;
    min-width: 7em;
    text-align: center;
    text-transform: uppercase;
    font-size: .9em;
    letter-spacing: 3px;
}
nav .credits {
    /*display: none;*/
}

