/*! 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.
 */

/* ==========================================================================
    Icons from Icomoon
   ========================================================================== */

@font-face {
  font-family: "icomoon";
  src: url("../fonts/icomoon.eot?jn0eko");
  src: url("../fonts/icomoon.eot?jn0eko#iefix") format("embedded-opentype"),
    url("../fonts/icomoon.ttf?jn0eko") format("truetype"),
    url("../fonts/icomoon.woff?jn0eko") format("woff"),
    url("../fonts/icomoon.svg?jn0eko#icomoon") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="icon-"],
[class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: "icomoon" !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-envelope:before {
  content: "\e900";
}

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
html {
  color: rgba(36,34,43,.84);
  font-family: "Hind Madurai", sans-serif;
  font-size: 1em;
  line-height: 1.4;
}

h1 {
  font-weight: 600;
  color: #261f1f;
}

/*
 * 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: #d5d1d1;
  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
   ========================================================================== */
body {
  background-color: #171717;
}
.site-wrap {
  background-color: rgb(228 228 228);
}

/* ==========================================================================
  Mobile styles
   ========================================================================== */
ul {
  list-style-type: none;
  line-height: 1.7rem;
}

header {
  background-color: rgb(213, 117, 20);

  /* border-top: 2.2rem rgb(27, 25, 25);
  border-bottom: 1.8rem rgb(27, 25, 25); */
  border-top: 2.2rem rgb(38, 37, 37);
  border-bottom: 1.8rem rgb(38, 36, 36);
  border-style: solid none;
  width: 100%;
  height: auto;
  flex-direction: column;
  align-items: center;
}

.logo {
  margin-top: 1.35rem;
  padding: 0.5rem 0;
}

.email {
  background-color: #22174f;
  padding-bottom: 7%;
  padding-top: 6%;
}

.email a {
  text-decoration: none;
  color: #fff;
}

.email > a:nth-child(2) {
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.contact-text-link {
  display: block;
  flex-basis: 33%;
  font-size: 1.4rem;
  padding-bottom: 0.5rem;
}

a .icon-envelope {
  font-size: 4rem;
  padding: 1rem 0;
}

.skyline {
  min-width: 23.44rem;
  min-height: 17.5rem;
  background: url("../img/mobile-skyline.png") center top no-repeat;
  background-size: contain;
  position: relative;
  background-color: #f2f2f2;
}

.tagline h2 {
  margin-top: 0px;
  padding-top: 2.8rem;
}

.tagline h3 {
  margin-top: 0.3rem;
}

.tagline > h2:nth-child(2) {
  padding-top: 0px;
}

.tagline > h2:nth-child(1) {
  margin-bottom: 0px;
  padding-top: 2.9rem;
  display: block;
}

.tagline h2 {
  margin-top: -0.3rem;
}

.services {
  border-top-width: 1px;
  border-top-style: solid;
  padding-top: 1.3rem;
  background-color: #22174f;
  color: #f2f2f2;
}

.services-title {
  margin-top: 0;
  margin-bottom: 1.7rem;
  padding-top: 0.6rem;
  padding-bottom: 0.5rem;
  font-size: 1.8rem;
}

.services-title-wrap {
  display: block;
  /* width: 75%; */
  margin-left: auto;
  margin-right: auto;
  color: #24222bd1;
  background-color: #d5d1d1;
  border-radius: 5px;
}

.services-list {
  justify-content: space-evenly;
  flex-wrap: wrap;
  padding-bottom: 2.1rem;
}
.services ul {
  padding: 0;
}

.services-list li {
  font-size: 1.2rem;
  padding-bottom: 0.5rem;
  color: #c6c6c6;
}

/* --- Contact Form ---  */

.contact-title {
  margin-top: 0;
  margin-bottom: 3rem;
  padding: 1.5rem 0 1.1rem 0;
  font-size: 1.8rem;
  display: block;
  /* width: 75%; */
  margin-left: auto;
  margin-right: auto;
  color: #d2cbcb;
  background-color: rgb(53, 52, 52);
}

.form-title-instructions {
  margin-bottom: 4rem;
}

.form-group {
  padding-bottom: 1.9rem;
}

label {
  display: block;
  text-align: left;
  padding-left: 8%;
  font-size: 1.25em;
}

.privacy-note {
  color: #e6e3e3;
  width: 85%;
  padding-bottom: 2rem;
  margin: 0 auto;
}

input,
select,
textarea {
  font-size: 1.25rem;
  width: 85%;
  padding: 8px;
  border: 1px solid #838383;
}

.form-group input[type="submit"] {
  height: 3rem;
  background: rgba(3, 152, 3, 0.93);
  color: rgb(255, 255, 255);
  border: 1px solid rgb(0, 110, 0);
  font-size: 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 1.9rem;
}

input[type="submit"]:hover {
  border: 2px solid #5c5c5c;
}

.form-inner-wrap {
  border-radius: 3px;
  border: 1px solid #727070;
}

.form-required {
  font-style: italic;
  color: #e6e3e3;
  font-size: medium;
  margin-right: 8%;
  float: right;
}

.form-instructions {
  display: block;
  font-style: italic;
  color: #e6e3e3;
  margin: 0 0 0.2rem 0;
  padding-left: 8%;
  text-align: left;
}

.form-title-instructions {
  margin-bottom: 3rem;
}

.form-title-instructions > h3 {
  margin-bottom: 0.7rem;
  font-size: 1.6rem;
}

.form-title-instructions > p {
 font-size: 17px;
}


.form-title-instructions > p {
  margin-bottom: 3.5rem;
  margin-top: 0.3rem;
}

#contactForm {
  justify-content: center;
}

#contactForm .form-inner-wrap {
  width: 95%;
  box-shadow: 0px 0px 3px 2px rgba(9, 1, 44, 0.2);
  background-color: rgba(0, 24, 131, 0.69);
  margin-bottom: 4rem;
  color: #f9f7f7;
}

.form-wrap > p:nth-child(3) {
  margin-top: 0;
}
.form-wrap > h3:nth-child(2) {
  margin-bottom: 0.2rem;
}

.form-wrap {
  background-color: rgba(250, 252, 255, .1);
}

.form-group label[for="userName"] {
  margin-top: 2.5rem;
}
.form-group select {
  color: #312a2a;
}

.form-control {
  position: relative;
}

.form-group label {
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.form-group input,
select,
textarea {
  /* border: 1px solid #c8c8c8; */
  border-radius: 4px;
  background-color: #d5d1d1;
  box-shadow: -2px 3px 5px 0px rgba(9, 1, 44, 0.2);

  border-color: #f7f6f500;
}

.form-control input:focus {
  outline: 0;
}

.form-asterik {
  color: #f9f7f7;
}

.form-control.success input {
  border-width: 0.2rem;
  border-color: #2ecc71;
}

.form-control.error input {
  border-width: 0.2rem;
  border-color: #e74c3c;
}

.form-control i {
  visibility: hidden;
  position: absolute;
  top: 54px;
  right: 40px;
}

.form-control.success i.fa-check-circle {
  color: #2ecc71;
  visibility: visible;
}

.form-control.error i.fa-exclamation-triangle {
  color: #e74c3c;
  visibility: visible;
  position: absolute;
  bottom: 94px;
  left: 220px;
}

.form-control small {
  color: #e74c3c;
  position: absolute;
  bottom: 53px;
  left: 220px;
  visibility: hidden;
}

.form-control.error small {
  visibility: visible;
}

footer.fb {
  /* background-color: #434343; */
  background-color: rgb(38, 37, 37);
  padding-top: 1.3rem;
  justify-content: right;
  padding-right: .7rem;
  padding-bottom: .6rem;
}

.form-success-msg {
  background: #81da81;
  padding-top: 16px;
  border-bottom-style: solid;
  padding-bottom: 1rem;
  border-bottom-width: 30px;
  font-style: italic;
}

@media only screen and (min-width: 300px) and (max-width: 640px) {
  .mobile-submit input[type="submit"] {
    width: 45%;
  }
}

/* ==========================================================================
Tablet  styles
   ========================================================================== */

@media only screen and (min-width: 641px) and (max-width: 1080px) {
  .skyline {
    background: url("../img/tablet-skyline.png") center top no-repeat;
    background-size: contain;
    margin-top: 1.5rem;
    background-color: #e6e6e6;
  }

  .contact-text-link {
    align-self: center;
    flex-basis: 25%;
    font-size: 1.4rem;
  }

  .email {
    padding-top: 1.5%;
    padding-bottom: 1%;
  }

  .services-title-wrap {
    width: 34%;
  }

  .services-list {
    justify-content: space-evenly;
    flex-wrap: wrap;
    max-width: 56%;
    margin-left: auto;
    margin-right: auto;
  }

  ul {
    list-style-type: none;
    line-height: 1.8rem;
    font-size: 1.1rem;
  }

  .services-title {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    font-size: 1.7rem;
  }

  .tagline > h2:nth-child(1) {
    margin-top: 2rem;
  }

  .form-control i {
  top: 54px;
  right: 77px;
  }

  .form-control small {
    bottom: 54px;
    left: 620px;
  }

  .form-inner-wrap {
    width: 75%;
  }

  input[type="submit"] {
    width: 25%;
  }

}

/* ==========================================================================
Latptop/Desktop styles
   ========================================================================== */

@media only screen and (min-width: 1081px) {
  .skyline {
    background: url("../img/desk-skyline.png") center top no-repeat;
    background-size: contain;
    background-color: rgba(250, 252, 255, .1);
  }

  h1 {
    font-size: 3rem;
  }

  .contact-title {
    font-size: 2.5rem;
  }

  .contact-text-link {
    align-self: center;
    font-size: 1.6rem;
  }

  .contact-text-link {
    align-self: center;
    flex-basis: 12%;
    font-size: 1.6rem;
  }

  .site-wrap {
    width: 90%;
    max-width: 81.25rem;
    margin-right: auto;
    margin-left: auto;
  }
  .services-list {
    justify-content: space-evenly;
    flex-wrap: wrap;
    max-width: 56%;
    margin-left: auto;
    margin-right: auto;
  }

  .services-title-wrap {
    width: 34%;
  }

  .services-title {
    margin-top: 2.5rem;
  }

  label {
    text-align: left;
    padding-left: 25%;
  }

  input,
  select,
  textarea {
    width: 50%;
  }

  .privacy-note {
    width: 50%;
    margin: 0 auto;
    padding-top: 1rem;
    padding-bottom: 3rem;
  }

  #contactForm .form-inner-wrap {
    width: 50%;
  }

  input[type="submit"] {
    width: 25%;
  }

  .form-title-instructions h3 {
    margin-top: 1rem;
    font-size: 2rem;
  }

  .form-instructions {
    padding-left: 25%;
  }

  h3.text-center {
    margin-bottom: 0.9rem;
  }

  .form-title-instructions > p:nth-child(2) {
    font-size: 19px;  
  }


  .form-control i {
    top: 54px;
    right: 299px;
  }

  .form-control small {
    bottom: 54px;
    left: 742px;
  }
}

@media only screen and (min-width: 1300px) {
  .email {
    padding-bottom: 0.8%;
    padding-top: 0.8%;
  }

  .form-control i {
    top: 54px;
    right: 345px;
  }

  p.form-instructions {
    padding-right: 8.8rem;
  }

  .form-control small {
    bottom: 54px;
    left: 850px;
  }

  .form-required {
    margin-right: 34%;
  }
}

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

@media only screen and (max-width: 411px) {
  .dis-non-xs {
    display: none;
  }
}

.fb {
  display: flex;
}

.left {
  float: left;
}
.right {
  float: right;
}

.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}
/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}
.frmhid,
[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;
  }
}
