/* -----------------------------------------------------------------
Title: Density.io CSS
Purpose: Desnity UI overrides for umarketing site
Owner: Robert Grazioli
Dependencies: Density UI
-----------------------------------------------------------------*/

/* Variables
------------------------------------*/
:root {

  /* Colors */
  --gray-darker: #222A2E;
  --gray-dark: #4E5457;
  --gray: #8E9299;
  --gray-light: #EFEFEF;
  --gray-lighter: #FAFAFA;

  --brand-primary: #4198FF;
  --brand-success: #14BB83;
  --brand-danger: #FE5657;

  /* Nav */
  --navbar-height: 60px;
  --navbar-nav-item-height: 59px; /* subtract 2px border */
}

/* Density UI Addtions
------------------------------------*/
/* TO-DO:
/* - Cards should not be used as strucural entities
/* - Things like margin should be on the Section
/* - The way we're using cards here is to create sections
/* - These should be section styles
*/
.card {
  margin-bottom: 40px;
}
.card:last-child { margin-bottom: 40px; }

/* TO-DO: Why is this nested?
*/
.card .card-body {
  padding-top: 16px;
  padding-left: 16px;
  padding-right: 16px;
}

.card-muted {
  background-color: var(--gray-lighter);
  border-color: var(--gray-light);
}
.card-danger {
  background-color: var(--brand-danger);
  color: #fff;
}

/* TO-DO:
/* - Buttons shouldn't be block level by default
/* - Buttons should be applyable to links
/* - Remove underline styling
/* - Center vertically
*/
button,
a.button {
  display: inline-block;
  width: auto;
  padding-left: 20px;
  padding-right: 20px;
  text-decoration: none;
  line-height: 45px;
}
button:hover,
a.button:hover {
  text-decoration: none;
}

.button-marketing {
  border-radius: 40px;
}

/* Navbar hacks for subtitle—navbar needs fixing up
*/
.navbar { height: var(--navbar-height); }
.navbar-container {
  display: flex;
  justify-content: space-between;
  height: var(--navbar-height);
}

.navbar-start,
.navbar-end {
  display: flex;
  align-items: center;
}

.navbar-brand {
  align-items: center;
  position: relative;
  height: var(--navbar-height);
}

.navbar-brand img {
  top: 20px;
}

.navbar-subtitle {
  display: inline-block;
  height: var(--navbar-height);
  padding-left: 16px;
  color: var(--gray);
}

.navbar-nav {
  display: none;
  padding-left: 40px;
}

.navbar-nav-item {
  display: inline-block;
  padding-left: 16px;
  padding-right: 16px;
}
.navbar-nav-item a {
  display: inline-block;
  box-sizing: border-box;
  height: var(--navbar-nav-item-height);
  border-bottom: 2px solid transparent;
  font-size: 14px;
  line-height: var(--navbar-height);
  color: #abb2c0;
  text-decoration: none;
}
.navbar-nav-item a:hover {
  border-bottom-color: var(--gray-light);
  text-decoration: none;
}
.navbar-nav-item.active a {
  border-bottom-color: var(--brand-primary);
  color: var(--gray-dark);
  font-weight: 500;
}

.navbar-nav-button,
a.navbar-nav-button {
  align-self: center;
  height: 36px;
  border-radius: 36px;
  line-height: 39px;
}

.navbar-tip {
  display: none;
  margin-right: 16px;
  font-size: 14px;
}

/* Base Typography
------------------------------------*/
body { font-family: var(--font-sans-serif); }

a:hover { text-decoration: underline; }

p {
  margin-bottom: 1.2em;
}
p:last-child { margin-bottom: 0;}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-sans-serif);
  color: var(--gray-darker);
  line-height: 1.6;
}

h1,
.h1 {
  font-size: 36px;
}

h2,
.h2 {
  font-size: 30px;
  font-weight: bold;
}

h3,
.h3 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 500;
}
h3:first-child { margin-top: 16px; }

ol:last-child,
ul:last-child,
dl:last-child {
  margin-bottom: 0;
}

ol {
  margin-left: 6px;
  list-style-type: decimal-leading-zero;
}

ol li {
  padding-left: 8px;
  line-height: 1.6;
}

ul {
  list-style-type: square;
  padding-left: 1em;
}

dt, dd {
  margin-left: 0;
  padding-top: 2px;
  padding-bottom: 2px;
}

.dl-horizontal dt {
  float: left;
  width: 140px;
  overflow: hidden;
  clear: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-horizontal dd {
  margin-left: 160px;
}

/* Semantic styling */
.danger {
  color: var(--brand-danger);
}
.highlight {
  color: var(--brand-primary);
}

strong { color: var(--gray-dark); }


/* Forms
------------------------------------*/
.form-control {
  width: 100%;
  display: inline-block;
}

.form-control-half {
  width: 100%;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
}

input[type="text"],
textarea {
  /* Reset Shit */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  resize: none;

  /* Then Style */
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 32px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  background: transparent;
  border-radius: 4px;
  outline: none;
  font-size: 14px;
  line-height: 1.4;
}
input[type="text"]:focus,
textarea:focus {
  border-color: var(--brand-primary);
}
input[type="text"].danger,
textarea.danger {
  border-color: var(--brand-danger);
}
::-webkit-input-placeholder {
  font-style: italic;
  color: rgba(0,0,0,0.15);
}
:-moz-placeholder {
  font-style: italic;
  color: rgba(0,0,0,0.15);
}
::-moz-placeholder {
  font-style: italic;
  color: rgba(0,0,0,0.15);
}
:-ms-input-placeholder {
  font-style: italic;
  color: rgba(0,0,0,0.15);
}

/* Scaffolding
------------------------------------*/
html {
  min-height: 100%;
  background-color: var(--gray-lighter);
}

.content-section {
  padding-top: 60px;
  padding-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
}

.content-container {
  max-width: 960px;
  margin: 0 auto;
}

.content-section-banner-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 60px;
}

/* Section Typography */
.content-section-heading {
  align-self: center;
  margin-top: 0;
  margin-bottom: 20px;
}

.content-section-subheading {
  align-self: center;
  font-size: 20px;
  line-height: 1.6;
  color: var(--gray);
}


/* Footer
---------------- */
.footer {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: var(--gray-darker);
  color: var(--gray);
}

.footer-top {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
}

.footer-nav {
  padding-right: 40px;
}

.footer-nav-heading {
  color: #fff;
}

.footer-nav-item {
  font-size: 14px;
}
.footer-nav-item a {
  color: var(--gray);
  text-decoration: none;
}
.footer-nav-item a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid var(--gray-dark);
}

.footer-logo {
  height: 20px;
}

/* Desktop
------------------------------------*/
@media (min-width: 580px) {
  .navbar-nav {
    display: inline-block;
  }
}

@media (min-width: 769px) {
  h1,
  .h1 {
    font-size: 42px;
  }

  h2,
  .h2 {
    font-size: 36px;
  }

  .content-section {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .content-section-heading {
    width: 50%;
  }

  .content-section-subheading {
    width: 50%;
  }

  .form-control-half {
    width: 47%;
  }
}

@media (min-width: 961px) {
  .content-section {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 1025px) {
  .navbar-tip {
    display: inline-block;
  }
}
