/**
  Theme Name: Fillybrook House
  Version: 1
  Author: Dental Design
  Author URI: http://www.dental-design.co.uk
*/

body {
  font-family: 'Alegreya Sans', sans-serif;
  color: #0a0d1a;
  font-weight: 300;
}

a {
  color: #008dd5;
  text-decoration: none;
}

a:hover {
  color: #006da3;
}

strong {
  font-weight: 500;
}

h1, h2, h3, h4 {
  font-weight: 500;
}

p, ul, ol {
  line-height: 1.7;
}

.fa-li {
  top: 0.4em;
}

hr {
  border: 0;
  background: #e1e1e1;
  height: 1px;
  margin: 15px 0;
  clear: both;
}

hr.trans {
  background: none;
}

.center-text {
  text-align: center;
}

.larger {
  font-size:1.2em;
}

.phone-large {
  font-size:1.3em;
  line-height: 1;
}

.dark-blue {
  color: #242F5D;
}

.blue-button {
  background: #242f5d;
  margin: 10px;
  padding: 10px 20px;
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  border-radius: 5px;
  -webkit-border-radius:5px;
}

.blue-button:hover {
  color: #fff;
  background: #3c425c;
}

.light-blue-button {
  background: #9dbae9;
  padding: 10px 20px;
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  border-radius: 5px;
  -webkit-border-radius:5px;
}

.light-blue-button:hover {
  color: #fff;
  background: #729CDF;
}

/*Navigation*/

nav {
  position: fixed;
  top: 0;
  width: 100%;
  text-align: center;
  background: #242f5d;
  height: 49px;
  z-index: 400;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-block;
  white-space: nowrap;
}

nav ul li {
  float: left;
  margin: 0 10px;
  padding: 0;
  position: relative;
  border-bottom:3px solid #242f5d;
}

nav a {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  padding: 12px 20px 9px;
  color: #fff;
  font-size: 0.95em;
}

nav li:hover {
  border-bottom:3px solid #9dbae9;
}

nav a:hover {
  color: #9dbae9;
}

nav ul li ul {
  padding: 0;
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.3s ease-in-out;
          transition: all 0.3s ease-in-out;
}

nav ul li ul li {
  margin: 0;
  display: block; 
  float:none;
  border-top:1px solid #fff;
}

nav ul li ul li a {
  background: #394575;
  padding: 8px 25px;
  text-align: left;
  white-space: nowrap;
  display: block;
  font-size: 0.8em;
  letter-spacing: 0.02em
}

nav ul li ul li,
nav ul li ul li:hover {
  border-bottom: none;
}

nav ul li ul li a:hover {
  background: #242f5d;
  color: #fff;
}

nav ul li:hover>ul {
  opacity: 1;
  visibility: visible;
}

nav ul li ul li ul {
  position: absolute;
  top: -1px;
  left: calc(100% + 1px);
  opacity: 0;
  visibility: hidden;
}

nav ul li ul li:hover ul {
  opacity: 1;
  visibility: visible;
}

nav ul li ul li ul li a {
  background: #6371a8;
}

nav ul li ul li ul li a:hover {
  color: #fff;
  background: #394575;
}

.sub-menu-btn {
    display: none;
}

.menu-button {
    display: none;
}

/* Top Image */

.top-image {
    background: none;
    background-size: cover;
}
  width: 100%;
  /* height: 600px; */
  padding-top: 1px;
  background-attachment: scroll;
  position: relative;
  background-repeat: no-repeat;
}

.inner-image {
  /* height: 460px; */
}

/* Header */

#header-curve {
  position: absolute;
  top: 48px;
  width: 100%;
  height: 205px;
  text-align: center;
  background: url(images/header-curve.png) center top no-repeat;
  background-size: 100% 100%;
  z-index: 100;
}

.logo {
  display: inline-block;
  width: 250px;
  margin: 30px 0 10px;
}

.logo img {
  width:100%;
  height: auto;
}

/* Strapline */

.strapline {
  margin-top: 477px;
  z-index: 100;
  position: relative;
  text-align: center;
}

.strapline p {
  margin:0;
  font-family: 'Dancing Script', cursive;
  font-size:4.5em;
  color: #fff;
}

/* Page Title */

.strapline.page-title {
  margin-top: 300px;
  margin-bottom: 0;
  color: #fff;
  font-size: 1.75em;
  padding: 100px 0 20px;
  background: url(images/title-gradient.png) bottom repeat-x;
}

.page-title h1 {
  margin: 0;
  font-weight: 300;
}

/* Right Icons */

.icons-right-wrap {
  position: fixed;
  top:65px;
  right: 0;
  z-index: 300;
  width: 40px;
}

.icons-right-wrap a {
  position: absolute;
  right: 0;
  width: 45px;
  height: 45px;
  display: block;
  overflow: hidden;
  background: #3c425c;
  color: #fff;
  margin-bottom:1px;
  font-size: 1.2em
}

.icons-right-wrap .lighter-icon {
  top:47px;
  background: #9dbae9;
}

.icons-right-wrap .fa {
  padding: 12px 10px;
}

.icons-right-wrap a:hover {
  width: 200px;
}

.content-wrap {
  padding: 5px 0;
  position: relative;
  background: #fff;
  z-index: 200;
}

.inner-content {
  margin: 0 auto;
  padding: 25px 0;
  width: 96%;
  max-width: 1180px;
  font-size:1.05em;
}

.left-text {
  float: left;
  width: calc(100% - 370px);
}

.highlight-box {
  padding: 20px 30px;
  background: #E9F2FF;
}

.testimonial-box {
  font-style: italic;
  font-size: 1.15em;
}

.testimonial-box:before {
  content: "\f10d";
  font-family: FontAwesome;
  font-style: normal;
  font-size: 2em;
  float: left;
  margin: 10px 10px 10px -10px;
  color: #242f5d;
}

.testimonial-box p {
  padding-left:40px;
}

/* Team Boxes */

.team-box {
  width: 47%;
  margin: 1.5%;
  float: left;
  background: #f6f6f6;
  padding: 30px;
  box-sizing: border-box;
}

.team-box h2 {
  margin-top: 0;
}

/* Packages */

.package-box {
  padding: 0 30px 20px;
  margin: 20px 0;
  background: #F6F6F6;
}

.package-title {
  width: 100%;
  padding: 10px 0;
  margin: 0 -30px 20px;
  text-align: center;
}

.platinum-title {
  background: #E5E4E2;
}

.gold-title {
  background: #D4AF37;
  color: #fff;
}

.silver-title {
  background: #C0C0C0;
  color: #fff;
}

.bronze-title {
  background: #CD7F32;
  color: #fff;
}

/* Terms */

.dental-terms h2 {
  background: #242f5d;
  color: #fff;
  padding: 8px 0;
}

/* Fees */

.fees {
  width: 100%;
  font-size: 1.1em;
}

.fees td, .fees th {
  padding: 8px 12px;
  text-align: left;
  font
}

.fees th {
  background: #242f5d;
  color: #fff;
  font-weight: 500;
  font-size:1.2em;
}

.fees tr:nth-child(odd) {
  background: #f6f6f6;
}

.fees tr.spacer {
  height: 50px;
  background: none!important;
}

/* Testimonial page */

blockquote {
  width: 30%;
  margin: 1.5%;
  font-size: 1.15em;
  font-style: italic;
  float: left;
  background: #f6f6f6;
  padding: 30px;
  box-sizing: border-box;
}

blockquote p {
  margin: 0;
}

blockquote:before {
  content: '\f10d';
  font:normal normal normal 14px/1 FontAwesome;
  color: #9DBAE9;
  font-size:1.8em;
  margin: -10px .3em 0 0;
  float: left;
}

/* Sidebar */

.sidebar {
  float: right;
  width: 335px;
  margin: 1em 0;
  box-sizing: border-box;
  text-align: center; 
}

.sidebar-blue {
  padding: 20px;
  background: #242F5D;
  color: #fff;
}

.sidebar h2 {
  margin-top:0;
}

.sidebar-video {
  width: 100%;
  height: 0;
  position: relative;
  padding-bottom: 73%;
  margin-bottom: 1em;
}

.sidebar-video iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* Sidebar Treatments */

ul.sidebar-treatment {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-treatment li a {
  display: block;
  padding: 8px 0;
  margin: 3px 0;
  background: #9DBAE9;
  color: #fff;
  border: 2px solid #9DBAE9;
  font-size:1.1em;
}

.sidebar-treatment li a:hover {
  background:#394575;
}

/*Accordion*/

.accordion {
  position: relative;
  margin: 10px 0;
}

.accordion h3 {
  font-size: 1.1em;
  padding: 10px;
  background: #394575;
  color: #FFF;
  margin: 9px 0 0;
}

.accordion h3:before {
  content: '\f067  ';
  font:normal normal normal 14px/1 FontAwesome;
  margin-right:5px;
}

.accordion h3.ui-accordion-header-active:before {
  content: '\f068  ';
  font:normal normal normal 14px/1 FontAwesome;
}

.accordion h3:hover, .accordion h3.ui.accordion-header-active {
  background: #6371a8;
  color: #fff;
  cursor:pointer;
  outline: none;
}

.accordion>div {
  overflow: auto;
  position: relative;
  padding: 5px 10px;

}

/* Quicklinks */

.quicklinks {
  margin-top:-5px;
  text-align: center;
  padding: 40px 0;
  background: #f6f6f6;
}

.quicklinks figure {
  width: 180px;
  height: 180px;
  position: relative;
  display: inline-block;
  margin: 0 7px;
  border-radius:50%;
  -webkit-border-radius:50%;
  overflow: hidden;
  background-size:cover;
}

.quicklinks figcaption {
  width: 100%;
  padding: 10px 0;
  text-align: center;
  position: absolute;
  bottom: 25px;
}

.quicklinks a {
  color: #fff;
  text-transform: uppercase;
  display: block;
  height: 100%
}

.ql1 {background-image: url(images/quicklinks/ql1.jpg);}
.ql2 {background-image: url(images/quicklinks/ql2.jpg);}
.ql3 {background-image: url(images/quicklinks/ql3.jpg);}
.ql4 {background-image: url(images/quicklinks/ql4.jpg);}
.ql5 {background-image: url(images/quicklinks/ql5.jpg);}
.ql6 {background-image: url(images/quicklinks/ql6.jpg);}

.ql1 span, .ql1 figcaption {background: #242f5d;}
.ql2 span, .ql2 figcaption {background: #09814a;}
.ql3 span, .ql3 figcaption {background: #008dd5;}
.ql4 span, .ql4 figcaption {background: #dfbbb1;}
.ql5 span, .ql5 figcaption {background: #880d1e;}
.ql6 span, .ql6 figcaption {background: #88cb51;}

.quicklinks span {
  position: relative;
  z-index: 2;
  opacity: 0;
  display: block;
  width:100%;
  height: 100%;
  font-size: 2em;
  padding-top:14px;

  border-radius:50%;
  -webkit-border-radius:50%;
  
  box-sizing:border-box;
  -moz-box-sizing:border-box;
  -webkit-box-sizing:border-box;
  
  border: 60px solid rgba(255,255,255,0.4);
  
  -moz-transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  transform: rotate(-90deg);
  
  -webkit-transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease-in-out;
  -moz-transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease-in-out;
  -ms-transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease-in-out;
  -o-transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease-in-out;
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease-in-out;
}

.quicklinks figure:hover span {
  opacity: 0.8;
  -moz-transform: rotate(0deg);
  -webkit-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  transform: rotate(0deg);
}

/* Home Content */

.home-content-wrap {
  background: #fff;
  padding: 40px 0;
}

.home-content {
  width: 94%;
  max-width: 1200px;
  padding: 25px 0;
  margin: 0 auto;
  text-align: center;
  color: #242f5d;
  background: url(images/horse-watermark.png) 730px 0 no-repeat;
}

.home-content h1 {
  font-size: 3em;
  font-weight: 300;
  margin: 0;
}

.home-content p {
  font-size: 1.3em;
}

p.blue-strapline {
  color: #7598d1;
  font-size: 1.9em;
  margin: -10px 0 0;
}



/* Contact Section */

.contact-section-wrap {
  padding: 40px 0;
  background: url(images/contact-bg.jpg) center 100%;
  background-size: cover;
  background-attachment: fixed;
}

.contact-section {
  width: 96%;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-third {
  width: 31%;
  margin-right:3.5%;
  float: left;
}

.contact-third:last-of-type {
  margin-right:0;
}

.contact-third h2 {
  color: #fff;
  font-size: 2em;
  margin-top:0;
  margin-left:10px;
}

/* Contact Form */

.contact-form {
}

.contact-form ul {
  margin: 20px 0 0 0;
  padding: 0;
  list-style: none;
}

.contact-form input,
.contact-form textarea {
  width:100%;
  height:43px;
  margin-bottom: 10px;
  padding:7px 10px 7px 38px;
  border:none;
  font-size:1em;
  font-weight: 500;
  color: #583e2c;
  outline: none;
  border:2px solid #fff;
  border-radius:0;
  -webkit-border-radius:0;
  box-sizing:border-box;
  -moz-box-sizing:border-box;
  -webkit-box-sizing:border-box;
}

.contact-form textarea {
  height: 158px;
  overflow: auto;
  vertical-align: top;
}

.contact-form li {
  position: relative;
  overflow: hidden;
}

.contact-form li label {
  position: absolute;
  font-size: 1em;
  font-weight: 500;
  top: 10px;
  left: 11px;
  color: #a6a6a6;
  pointer-events: none;
}

.contact-form label .fa {
  -moz-transform: translateX(-100px);
  -webkit-transform: translateX(-100px);
  -o-transform: translateX(-100px);
  -ms-transform: translateX(-100px);
  transform: translateX(-100px);
  opacity: 0;
  color: #242f5d;

  -webkit-transition: all 0.2s ease-in;
     -moz-transition: all 0.2s ease-in;
      -ms-transition: all 0.2s ease-in;
       -o-transition: all 0.2s ease-in;
          transition: all 0.2s ease-in;
}

.contact-form label span {
  display: inline-block;
  -moz-transform: translateX(-20px);
  -webkit-transform: translateX(-20px);
  -o-transform: translateX(-20px);
  -ms-transform: translateX(-20px);
  transform: translateX(-20px);

  -webkit-transition: all 0.2s ease-in;
     -moz-transition: all 0.2s ease-in;
      -ms-transition: all 0.2s ease-in;
       -o-transition: all 0.2s ease-in;
          transition: all 0.2s ease-in;
}

.contact-form input:focus + label .fa,
.contact-form textarea:focus + label .fa,
.contact-form .input--filled label .fa {
  opacity: 1;
  -moz-transform: translateX(0px);
  -webkit-transform: translateX(0px);
  -o-transform: translateX(0px);
  -ms-transform: translateX(0px);
  transform: translateX(0px);
}

.contact-form input:focus + label span,
.contact-form textarea:focus + label span,
.input--filled span {
  opacity: 0;
  -moz-transform: translateX(100px);
  -webkit-transform: translateX(100px);
  -o-transform: translateX(100px);
  -ms-transform: translateX(100px);
  transform: translateX(100px);
}

.contact-form .submit {
  background: #242f5d;
  color: #FFF;
  text-transform: uppercase;
  font-size:1em;
  font-weight: 300;
  width: 140px;
  height: 40px;
  margin: 0;
  border: none;
  padding: 10px 0 12px;
  letter-spacing: 0.04em;
  border-radius: 5px;
  -webkit-border-radius: 5px;
}

.contact-form .submit:hover {
  background: #9dbae9;
}

.map-holder {
  border:5px solid #fff;
  background: #fff;
}

.map-holder p {
  text-align: center;
  margin: 0;
}

.fb_iframe_widget {
  border:5px solid #fff;
}

/* Logos */

.logos-bar {
  background: #f6f6f6;
  padding: 30px;
  text-align: center;
}

.logos-bar img {
  height: 38px;
  margin: 0 25px;
  vertical-align: baseline;
}


/* Copyright */

.copyright {
  text-align: center;
  padding: 1%;
}


/*Misc*/

.alignright, .alignleft {
  padding: 8px;
  background:#FFF;
  border:1px solid #ececec;
}

.alignright {
  float: right;
  margin: 0 0 10px 20px
}

.alignleft {
  float: left;
  margin: 0 20px 10px 0;
}


/* Transitions */

a, .submit, nav ul li, .accordion h3, blockquote {
  -webkit-transition: all 0.25s ease-in-out;
          transition: all 0.25s ease-in-out;
}

#masonry.team {
  height: auto!important;
}

.clearfix:after, #masonry:after {
  content: "";
  display: table;
  clear: both;
}


.video-right {
    float: right;
    margin: 0 0 10px 10px;
    padding: 5px;
    border: 1px solid #464444;
}

.treatment-video {
    margin-top: 20px;
}


/* Responsive styles */


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

  nav a {
    padding: 12px 15px 9px;
  }

}

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

  nav a {
    padding: 12px 10px 9px;
  }

}

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

  .strapline p {
    font-size: 60px;
    line-height: normal;
  }

.strapline {
    padding-bottom: 20px;
}

  .top-image {
      background-position: 25%;
  }

}

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

  nav a {
    padding: 12px 5px 9px;
  }

}

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

  .facebook-feed {
    display: none;
  }

  .contact-third {
    width: 46%;
    margin: 1% 2%;
    text-align: center;
  }

}

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

  nav {
    height: auto;
    /* min-height: 49px; */
    /* padding-top: 48px; */
    position: relative;
  }

  nav ul {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    width: 100%;
    display: block;
  }

  .menu-button {
    display: block;
    text-align: center;
    color: #fff;
    font-size: 20px;
    text-transform: uppercase;
    padding: 12px;
    cursor: pointer;
    /* position: fixed; */
    background: #242f5d;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-sizing: border-box;
  }

  nav ul.open {
    height: auto;
    opacity: 1;
  }

  nav ul li {
    float: none;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.31);
  }

  nav a {
    float: none;
    text-align: center;
    text-transform: uppercase;
    display: block;
  }

  nav ul > li:hover > ul.sub-menu {
    height: 0;
    overflow: hidden;
  }

  nav ul > li ul.sub-menu.open {
    width: 100%;
    position: relative;
    top: 0;
    display: block;
    height: auto !important;
  }

  nav ul.sub-menu li:hover > ul {
    left: 0;
    height: 0;
    overflow: hidden;
  }

  .sub-menu-btn {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 16px;
    height: 15px;
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    cursor: pointer;
  }

  .sub-menu li a {
    height: 45px;
    line-height: 45px;
    text-align: center;
  }

  nav ul.sub-menu li {
    background: #e3e3e3;
  }

  nav ul.sub-menu li ul li {
    background: #ccc;
  }

  nav ul.sub-menu li ul ul li {
    background: #aaa;
  }

  nav ul.sub-menu li ul ul li a {
    color: #555;
  }

  #header-curve {
    top: 0;
  }

  .top-image {
    background-position-y: 0px !important;
  }

}

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

  .strapline {
      margin-top: 400px;
      /* margin-bottom: 20px; */
  }

}

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

  .contact-third {
    width: 96%;
    margin: 2%;
    float: none;
  }

  .three_fifth {
    width: 100%;
  }

  .two_fifth {
    width: 100%;
  }

  .left-text {
    float: none;
    width: 100%;
  }

  .sidebar {
    float: none;
    width: 100%;
  }

  blockquote {
    width: 47%;
  }

}

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

  .team-box {
    width: 97%;
    float: none;
  }

}

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

  blockquote {
    width: 97%;
  }

}

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

  body {
    padding-bottom: 40px;
  }

  .strapline p {
    font-size: 40px;
    background: rgba(36, 47, 93, 0.5);
    padding: 5px;
  }

  .top-image {
    /* height: 535px; */
    background-position: 35%;
  }

  .quicklinks figure {
    width: 47%;
    margin: 1%;
    height: 0;
    padding-top: 47%;
  }

  .quicklinks span {
    position: absolute;
    top: 0;
    text-align: center;
  }

  .icons-right-wrap {
    top: initial;
    bottom: 0;
    width: 100%;
  }

  .icons-right-wrap a {
    position: static;
    width: 50%;
    float: left;
    text-align: center;
    margin-bottom: 0;
  }

  .icons-right-wrap a:hover {
    width: 50%;
  }

  .logos-bar {
    padding: 3%;
  }

  .logos-bar img {
    height: 28px;
    margin: 10px;
  }

}

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

  .home-content h1 {
    font-size: 45px;
    margin-bottom: 15px;
  }

  .logo {
    width: 200px;
    margin-top: 15px;
  }

  #header-curve {
    height: 160px;
  }

}

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

  .icons-right-wrap a span {
    display: none;
  }

}