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

:root {
  --contrast: #000000;
  --contrast-2: #575760;
  --contrast-3: #b2b2be;
  --base: #ffffff;
  --base-2: #f7f8f9;
  --base-3: #f0f0f0;
  --accent: #e77f1e;
  --accent-2: #09a2a8;
  --container-width: 1250px;
  --grid-col-margin: 15px;
  --grid-row-margin: 15px;
  --grid-col-margin-md: 8px;
  --grid-row-margin-md: 8px;
  --grid-cell-width: 238px;
}

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

html {
  color: var(--contrast);
  background-color: var(--base-3);
  font-size: 16px;
  line-height: 1.4;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

/*
 * 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: var(--base);
  text-shadow: none;
}

::selection {
  background: var(--base-3);
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid var(--contrast-3);
  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;
}

/*
  Anchor tag css
  */

  a {
    color: #112344;
  }

  a:visited, a:hover {
      color: #234323;
  }

  a:active {
      color: #332234;
  }


/* ==========================================================================
   CSS Grid
   ========================================================================== */

.container {
  margin: 0 auto;
  width: 100%;
}

.grid-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 100%;
}

.col {
  margin: 0;
}

.col-1, .col-2, .col-3, .col-4, .col-5,
.col-1.no-margins, .col-2.no-margins, .col-3.no-margins, .col-4.no-margins, .col-5.no-margins  {
  width: 100%;
}

/* landscape phones */
@media only screen and (min-width: 576px) {}

/* portrait tablets */
@media only screen and (min-width: 768px) {
  .col {
    margin-top: var(--grid-row-margin-md);
    margin-right: var(--grid-col-margin-md);
  }

  .col:last-child {
    margin-right: 0;
  }

  .col-1 {
    width: calc(20% - (var(--grid-col-margin-md)*4/5));
  }

  .col-2 {
    width: calc(40% - (var(--grid-col-margin-md)*4/5));
  }

  .col-3 {
    width: calc(60% - (var(--grid-col-margin-md)*4/5));
  }

  .col-4 {
    width: calc(80% - (var(--grid-col-margin-md)*4/5));
  }

  .col-5 {
    width: 100%;
  }

  .col-1.no-margins {
    width: 20%;
  }
  
  .col-2.no-margins {
    width: 40%;
  }
  
  .col-3.no-margins {
    width: 60%;
  }
  
  .col-4.no-margins {
    width: 80%;
  }
  
  .col-5.no-margins {
    width: 100%;
  }
}

/* laptops */
@media only screen and (min-width: 922px) {}

/* Large screens */
@media only screen and (min-width: 1200px) {
  .container {
    margin: 0 auto;
    width: var(--container-width);
  }
  
  .grid-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: var(--container-width);
  }

  .col {
    margin-top: var(--grid-row-margin);
    margin-right: var(--grid-col-margin);
  }

  .col:last-child {
    margin-right: 0;
  }

  .col-1 {
    width: var(--grid-cell-width);
  }

  .col-2 {
    width: calc((var(--grid-cell-width)*2) + var(--grid-col-margin));
  }

  .col-3 {
    width: calc((var(--grid-cell-width)*3) + (var(--grid-col-margin)*2));
  }

  .col-4 {
    width: calc((var(--grid-cell-width)*4) + (var(--grid-col-margin)*3));
  }

  .col-5 {
    width: 100%;
  }
}


/* ==========================================================================
   Styles
   ========================================================================== */
.header-content {
  background-color: var(--contrast);
  color: var(--base);
}

.header-content {
  max-height: 225px;
}

.header-content img {
  width: 70%;
  margin-top: 12px;
}

nav {  
  z-index: 100;
  position: relative;
  background-color: var(--base-3);
}

header nav ul {
  display: none !important;
}

header nav ul.active {
  display: flex !important;
}

header nav .icon {
  position: absolute;
  color: var(--base);
  right: 10px;
  top: -60px;
  font-size: 2em;
  text-align: right;
}

.instagram-media[style] {
  max-width: 100% !important;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  transition: 0.25s ease all;
  padding: 12px 0;
  background-color: var(--contrast);
  color: var(--base);
  text-transform: uppercase;
  text-align: center;
}

nav ul li a {
  display: inline-block;
  width: 100%;
  transition: 0.25s ease all;
  color: var(--base);
  font-weight: 600;
  text-decoration: none;
}

nav ul li.active,
nav ul li:hover {
  background-color: var(--accent);
}

nav ul li.active a,
nav ul li:hover a {
  color: var(--contrast);
}

nav ul li a:visited {
  color: var(--base);
}

.introduction {
  background-color: var(--accent);
  color: var(--base);
}

.testimonials {
  background-color: var(--accent-2);
}

.copyright {
  margin-top: 0;
  padding: 8px 0;
  background-color: var(--contrast);
  color: var(--base);
}

/* landscape phones */
@media only screen and (min-width: 576px) {}

/* portait tablets */
@media only screen and (min-width: 768px) {
  header nav .icon {
    display: none;
  }
  
  header nav ul {
    display: flex !important;
  }

  header nav ul.active {
    display: flex !important;
  }

  .instagram-media[style] {
    max-width: var(--grid-cell-width) !important;
  }

  .copyright {
    margin-top: var(--grid-row-margin);
  }
}

/* laptops */
@media only screen and (min-width: 922px) {
}

/* Large screens */
@media only screen and (min-width: 1200px) {}


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


img.responsive {
  max-width: 100%;
}


img.cover {
  width: 100%;
}

img.fill {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.no-margins {
  margin: 0;
}

.content-pad {
  padding: 12px;
}

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

.align-content-right {
  text-align: right;
}

.flex-align-items-center {
  align-items: center;
}

.pt-0 { padding-top: 0 }
.pb-0 { padding-bottom: 0 }
.pl-0 { padding-left: 0 }
.pr-0 { padding-right: 0 }

.pt-5 { padding-top: 5px; }
.pb-5 { padding-bottom: 5px; }
.pl-5 { padding-left: 5px; }
.pr-5 { padding-right: 5px; }

.pt-10 { padding-top: 10px; }
.pb-10 { padding-bottom: 10px; }
.pl-10 { padding-left: 10px; }
.pr-10 { padding-right: 10px; }

.pt-15 { padding-top: 15px; }
.pb-15 { padding-bottom: 15px; }
.pl-15 { padding-left: 15px; }
.pr-15 { padding-right: 15px; }

.mt-0 { margin-top: 0 }
.mb-0 { margin-bottom: 0 }
.ml-0 { margin-left: 0 }
.mr-0 { margin-right: 0 }

.mt-5 { margin-top: 5px; }
.mb-5 { margin-bottom: 5px; }
.ml-5 { margin-left: 5px; }
.mr-5 { margin-right: 5px; }

.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.ml-10 { margin-left: 10px; }
.mr-10 { margin-right: 10px; }

.mt-15 { margin-top: 15px; }
.mb-15 { margin-bottom: 15px; }
.ml-15 { margin-left: 15px; }
.mr-15 { margin-right: 15px; }

.hidden-xs, .hidden-xs-ib, .hidden-xs-flx {
  display: none;
}


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

/* landscape phones */
@media only screen and (min-width: 576px) {}

/* tablets portrait */
@media only screen and (min-width: 768px) {
  .hidden-xs {
    display: block;
  }
  .hidden-xs-ib {
    display: inline-block;
  }
  .hidden-xs-flx {
    display: flex;
  }

  .hidden-sm {
    display: block;
  }
  .hidden-sm-ib {
    display: inline-block;
  }
  .hidden-sm-flx {
    display: flex;
  }
}

/* laptops */
@media only screen and (min-width: 922px) {
  .copyright {
    margin-top: var(--grid-row-margin);
  }
}

/* Large screens */
@media only screen and (min-width: 1200px) {}

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