/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

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

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

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

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

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

/*
 * A better looking default horizontal rule
 */

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

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
  resize: vertical;
}

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

.font-rubik{
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
}
.font-rubik-b{
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
}
.font-covered{
  font-family: 'Covered By Your Grace', cursive;
}
.font-titi{
  font-family: 'Titillium Web', sans-serif;
}
.font-titi-b{
  font-family: 'Titillium Web', sans-serif;
  font-weight: bold;
}
.txt-center{
  text-align: center;
}
.txt-left{
  text-align: left;
}
.txt-green{
  color: #118441;
}
.txt-yellow{
  color: yellow;
}
.icon{
  display: inline-block;
  vertical-align: middle;
}
.i-phone{
  background-image: url("../img/call.png");
  height: 20px;
  width: 20px;
  background-size: cover;
}
.i-envelope{
  background-image: url("../img/envelope.png");
  height: 20px;
  width: 20px;
  background-size: cover;
}
.i-phone-g{
  background-image: url("../img/call-g.png");
  height: 20px;
  width: 20px;
  background-size: cover;
}
.i-envelope-g{
  background-image: url("../img/envelope-g.png");
  height: 20px;
  width: 20px;
  background-size: cover;
}
nav{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
    transition: all 200ms cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
  transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
}
nav.navtop{
  background-color: #fff;
  position: fixed;
  border-bottom: 1px solid #ddd;
}
nav ul{
  margin: 0;
  padding: 0;
  display: inline-block;
  width: 100%;
  text-align: right;
}
nav ul li{
  display: inline-block;
  list-style: none;
}
nav ul li a {
    text-decoration: none;
    color: #fff;
    margin: 0 20px;
    border-bottom: 2px solid transparent;
}
nav.navtop ul li a{
  color: #000;
}
nav.navtop ul li a:hover{
  border-bottom:2px solid #118441;
}
#slide-main {
    width: 100%;
    background-image: url(../img/bg-main1.jpg);
    background-size: cover;
    background-position: center center;
    position: relative;
}
#slide-main big, #slide-main small{
  line-height: 1em;
}
#slide-main big{
  font-size: 2em;
}
#slide-main small{
  font-size: 1em;
}
.logo {
  width: 40%;
  padding: 30px 0;
}
.navtop #logo-white{
  display: none;
}
#logo-color{
  display: none;
}
.navtop #logo-color{ 
  display: inline-block;
}
nav.navtop .logo {
    width: 25%;
    padding: 10px 0;
}
.text-main {
    color: #fff;
    font-size: 4em;
    text-align: left;
    display: inline-block;
    top: 50%;
    left: 0;
    position: absolute;
    width: 100%;
    transform: translate(0,-50%);
}
.text-main * {
    display: block;
}
#about {
    background-color: #118441;
    border-top: 8px solid #df6c0c;
    color: #fff;
    text-align: center;
}
.about-item{
  padding-top: 30px;
  padding-bottom: 30px;
}
.about-item.orange{
  background-color: #df6c0c;
}
#accreditation{
  padding: 120px 0;
}
#accreditation img{
  width: 100%;
}
#accreditation h2 {
    margin: 0 0 40px 0;
    font-size: 3em;
    line-height: 1em;
}
.accreditation-content{
  padding: 0 50px;
}
.accreditation-content h3 {
    font-size: 1.5em;
    margin-top: 0;
}
#service {
    padding: 120px 0;
    background-color: #ddd;
}
#service h2 {
  font-size: 4em;
  line-height: 1em;
  margin: 0;
}
#service img{
  margin-bottom: -500px;
  margin-top: -60px;
  width: 100%;
}
.calltoaction {
    font-size: 2.3em;
    padding: 40px 40px 40px 150px;
    background-color: #118441;
    margin-top: 50px;
    color: #fff;
}
#form-contact{
    padding: 150px 0;
    margin-top: 35px;
}
#form-contact form *{
  display: inline-block;
  width: 100%;
  border: none ;
  background-color: #f5f5f5;
  margin-top: 30px;
  padding: 20px 15px;
  box-sizing: border-box;
  font-weight: 100;
}
#form-contact form textarea{
  height: 10em;
}
#form-contact form input[type="submit"]{
  background-color: #009f4f;
  color: #fff;
}
footer{
  background-color: #141414;
  color: #fff;
  padding: 50px 0 10px 0;
}
footer .logo-f{
  width: 40%;
}
small.txt-green{
  font-size: 1.7em;
}
footer p {
    font-size: .85em;
    line-height: 1.5em;
}
.btn-orange {
    text-decoration: none;
    color: #fff;
    background-color: #df6c0c;
    text-align: center;
    font-size: .4em;
    margin-top: 30px;
    display: block;
    width: 200px;
    padding: 10px 0;
    border-radius: 5px;
}
ul.contact li{
  margin-bottom: 5px;
}
ul{
  padding: 0;
  margin: 0;
}
ul li{
  list-style: none;
}
#accreditation ul li{
  list-style: disc;
  margin-bottom: 5px;
  margin-left: 30px;
}
#page-content{
  padding: 50px 0 100px 0;
}
#page-content ul li{
  list-style: upper-alpha;
  margin-left: 30px;
  margin-bottom: 5px;
}
footer ul li a {
    color: #fff;
    margin-bottom: 5px;
    display: inline-block;
}
#newsletter input[type="text"] {
    border: none;
    margin-bottom: 10px;
    padding: 10px 10px;
    border-radius: 2px;
    width: 76%;
    font-weight: 300;
    font-size: .85em;
}
#newsletter input[type="submit"] {
    background-color: #009f4f;
    color: #fff;
    padding: 8px 5px;
    border-radius: 2px;
    width: 80%;
    border: none;
    box-sizing: content-box;
}
@media (max-width: 768px){
  #slide-main big {
      font-size: 1em;
      text-align: center;
  }
  #slide-main small {
      font-size: .5em;
      text-align: center;
  }
  #slide-main .btn-orange {
      font-size: .4em;
      display: block;
      width: 180px;
      padding: 5px 0;
      margin: 0 auto;
      margin-top: 15px;
  }
  #slide-main {
      background-position: 77% center;
      position: relative;
  }
  div#slide-main:before {
      content: "";
      height: 100%;
      width: 100%;
      background-color: rgba(0,0,0,.5);
      position: absolute;
  }
  .logo {
      width: 40%;
      padding: 30px 0;
      margin: 0 auto;
      display: block;
  }
  nav ul {
      border: 1px solid #fff;
      border-left: none;
      border-right: none;
      width: 100%;
      text-align: center;
      padding: 10px 0;
  }
  .about-item {
      padding-top: 0;
      padding-bottom: 0;
  }
  #accreditation {
      padding: 50px 0;
  }
  #service {
      padding: 50px 0;
      background-color: #ddd;
  }
  .accreditation-content {
      padding: 0;
  }
  small.txt-green {
      font-size: 1.7em;
      text-align: center;
      width: 100%;
      display: inline-block;
  }
  #service h2 {
      text-align: center;
      font-size: 3em;
  }
  #service img {
      margin-bottom: 0;
      margin-top: 0;
      width: 100%;
  }
  .calltoaction {
      font-size: 1.3em;
      padding: 10px;
      background-color: #118441;
      margin-top: 10px;
      color: #fff;
      text-align: center;
  }
  .calltoaction span{
    display: block;
  }
  #form-contact {
      padding: 50px 0;
      margin-top: 35px;
  }
  #form-contact form * {
      margin-top: 10px;
      padding: 15px 15px;
  }
  .accreditation-content h3 {
      font-size: 1.5em;
      margin-top: 10px;
      margin-bottom: 10px;
      text-align: center;
  }
  .navtop #logo-color {
      display: block;
  }
}
@media (max-width: 520px){
  nav ul {
      border: 1px solid #fff;
      border-left: none;
      border-right: none;
      width: 550px;
      text-align: left;
      padding: 10px 0;
  }
  nav .col-lg-7{
    overflow-y: scroll;
  }
  #newsletter input[type="text"] {
      margin-bottom: 10px;
      padding: 10px 10px;
      border-radius: 2px;
      width: 100%;
      box-sizing: border-box;
  }
  #newsletter input[type="submit"] {
      width: 100%;
      box-sizing: border-box;
  }
}
/* final */
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

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

.clearfix::after {
  clear: both;
}

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

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

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    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 that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

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

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

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

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

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

