/* FIXME:

- remove legacy code
- clean up and aggregate responsive sections (e.g. max-width: 1280px, etc...)
- fine tune font sizes and make them consistent across different sections and
  screen sizes
- ...
–––––––––––––––––––––––––––––––––––––––––––––––––– */


/* Global
–––––––––––––––––––––––––––––––––––––––––––––––––– */
body {
    font-weight: 300;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    color: rgba(65, 65, 65, 1);
    font-size: 24px;
    line-height: 38px;
}
body, html {
    height: 100%;
}
h1 {
    color: rgba(65, 65, 65, 1);
    font-weight: 700;
    font-size: 42px;
    margin-bottom: 2rem;
}
h2 {
    color: rgba(65, 65, 65, 1);
    font-weight: 700;
    font-size: 32px;
}
h3 {
    color: rgba(65, 65, 65, 1);
    font-weight: 700;
}
section {
    padding: 60px 0;
}
.bg-gray {
    background-color: rgba(238, 238, 238, 1);
}
.container {
    margin-right: auto;
    margin-left: auto;
    max-width: 1460px;
    padding: 0 20px;
}
.h1-small {
    font-size: 32px;
}
strong {
    font-weight: 900;
}

/* Misc
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.row.no-gutters {
  padding: 0;
  margin: 0;
}
.row.no-gutters > [class^="col-"],
.row.no-gutters > [class*=" col-"] {
  padding: 0;
  margin: 0;
}
.container-fluid.no-gutters {
  padding: 0;
  margin: 0;
}

.intro {
    margin-top: 30px;
    margin-bottom: 30px;
}
.intro h2 {
    font-weight: 700;
    font-size: 32px;
}
.intro p {
    font-size: 24px;
    line-height: 36px;
    padding: 0;
}
.intro span {
    color: rgba(208, 43, 30, 1);
}
a.call-to-action {
    border-radius: 0;
    border: none;
    padding: 6px 24px;
    margin: 0;
    border: 1px solid rgba(57, 103, 147, .5);
    text-align: right;
    background: rgba(57, 103, 147, 1);
    color: rgba(255, 255, 255, 1);
}
a.call-to-action:hover {
    background: transparent;
    color: rgba(57, 103, 147, 1);
}
.text-center {
    margin: 16px auto;
}

/* Navbar
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.navbar {
    background-attachment: fixed;
    background-image: url("../img/background_header.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.navbar img.logo {
    width: 140px;
}
.navbar ul li a {
    font-weight: bold;
    font-size: 18px;
    color: rgba(255, 255, 255, 1);
}
.navbar ul li a:hover {
    text-decoration: none;
    color: rgba(200, 40, 40, 1);
}
.navbar ul li a:hover, .navbar ul li.active a {
    text-decoration: none;
    color: rgba(200, 40, 40, 1);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

/* Banner
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#banner {
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-image: url("../img/background_header.jpg");
    background-size: cover;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    color: rgba(255, 255, 255, 1);
}
.banner-full {
    height: 100%;
    padding: 18em 0;
    text-align: center;
    min-height: 768px;
}
.banner-mini {
    min-height: 45%;
    text-align: center;
    padding: 9em 0;
}

#banner #title {
    color: rgba(255, 255, 255, 1);
    font-weight: 900;
    font-size: 4em;
    line-height: 1.5em;
}
#banner #subtitle {
    color: rgba(255, 255, 255, 1);
    font-weight: 300;
    font-size: 1em;
    line-height: 1.5em;
    text-transform: uppercase;
}
#banner a, #banner i {
    color: rgba(255, 255, 255, 1);
    font-size: 1em;
    line-height: 1em;
}
#banner a:hover {
    text-decoration: none;
}
#banner a i {
    margin-right: .6em;
}

@media screen and (max-width: 1280px) {
    .banner-mini {
        padding: 9em 0 7em 0;
    }
    #banner h2 {
        font-size: 2em;
    }
}

@media screen and (max-width: 991px) {
    #banner #title {
        font-size: 2.5em;
    }
    #banner #subtitle {
        font-size: .6em;
        margin-top: 1em;
    }
}

@media screen and (max-width: 480px) {
    .banner-mini {
        padding: 5em 2em 3em 2em;
    }
}

/* Home
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#home-what-we-do h2 {
    padding-top: 0;
    margin-top: 0;
    font-size: 26px;
    font-weight: bold;
    color: rgba(65, 65, 65, 1);
}
#home-jumbo p {
    padding: 20px 0 40px 0;
    margin: 20px 0 40px 0;
    font-size: 46px;
    line-height: 66px;
    font-weight: 300;
    color: rgba(65, 65, 65, 1);
    width: 85%;
}
ion-icon.activity {
    --ionicon-stroke-width: 16px;
    font-size: 100px;
    color: rgba(65, 65, 65, 1);
}

/* Testimonials
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.testimonial {
    padding: 40px;
}
.testimonial blockquote p::before {
    content: open-quote;
    font-size: 1.4em;
}
.testimonial blockquote p::after {
    content: close-quote;
    font-size: 1.4em;
}
.testimonial blockquote {
    margin: 0;
}
.testimonial blockquote p {
    font-size: 24px;
    line-height: 36px;
    font-style: italic;
    padding: 15px;
    background: rgba(238, 238, 238, 1);
    border-radius: 5px;
}
.testimonial footer {
    font-size: 18px;
    font-weight: bold;
    line-height: 24px;
}
img.testimonial-logo {
    padding-top: 20px;
    width: 160px;
}

/* Clients
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#home-clients img {
    opacity: 0.7;
    filter: alpha(opacity=70);
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
    max-width: 90%;
}
#home-clients img:hover {
    opacity: 1;
    filter: alpha(opacity=100);
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
    filter: grayscale(0%);
    max-width: 90%;
}

/* Services
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#services-consulting h2, #services-software-development h2 {
    padding-top: 0;
    margin-top: 0;
    font-size: 26px;
    font-weight: bold;
    color: rgba(65, 65, 65, 1);
}
.bg-research {
    background-image: url("../img/research.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: -60px;
    margin-bottom: -60px;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Technologies
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#services-technologies img {
    max-width: 75%;
    margin: 0 auto;
    display: block;
}
#services-technologies img.technologies {
    opacity: 0.7;
    filter: alpha(opacity=70);
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
    max-width: 75%;
    max-height: 75%;
}
#services-technologies img.technologies:hover {
    opacity: 1;
    filter: alpha(opacity=100);
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
    filter: grayscale(0%);
    max-width: 75%;
    max-height: 75%;
}

/* Company
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#company-directors h4, #company-senior-team h4 {
    font-style: italic;
    font-size: .9em;
    line-height: 1em;
}

/* Job entry
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#careers h2 {
    margin-top: 6px;
}
#careers h3 {
    font-weight: 700;
    text-transform: uppercase;
}
#careers h4 {
    font-weight: 700;
    font-style: italic;
}
#careers h4:after {
    display: block;
    content: '';
    clear: both;
    margin: 8px 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
    padding-bottom: 10px;
}
#careers ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}
#careers li {
    padding-left: 1em;
    text-indent: -1em;
}
#careers li:before {
    content: "-";
    padding-right: 5px;
}

/* Projects
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#projects {
    padding: 40px 0;
    background: rgba(238, 238, 238, 1);
}
#projects p.summary {
    color: rgba(57, 103, 147, 1);
    font-style: italic;
    line-height: 20px;
}
#projects .consulting {
    font-weight: 700;
    color: rgba(23, 159, 47, 1);
}
#projects .development {
    font-weight: 700;
    color: rgba(208, 135, 30, 1);
}
#projects h3 {
    margin: 2px 0 4px 0;
}
#projects h2 {
    color: rgba(57, 103, 147, 1);
    display: inline-block;
    padding: 2px 6px;
    margin-left: -6px;
}
#projects img.project {
    margin: 0 auto;
    width: 260px;
    padding-bottom: 0;
    opacity: 0.5;
    filter: alpha(opacity=50); /* For IE8 and earlier */
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
}
#projects img.project:hover {
    opacity: 0.6;
    filter: alpha(opacity=60); /* For IE8 and earlier */
}
#projects img.client {
    margin: 30px 0;
    opacity: 0.5;
    filter: alpha(opacity=50); /* For IE8 and earlier */
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
}
#projects img.client:hover {
    opacity: 0.6;
    filter: alpha(opacity=60); /* For IE8 and earlier */
}
#projects .projects {
    margin-bottom: 60px;
}

#outro {
    padding: 60px 0;
    background: rgba(238, 238, 238, 1);
}

#contact {
    padding: 60px 0;
    background: rgba(238, 238, 238, 1);
}
#contact .stats {
    padding-bottom: 50px;
}
#contact .stat {
    text-align: center;
}
#contact .stat p, #news .stat p a {
    font-style: italic;
    line-height: 20px;
}
#contact .stat img {
    margin: 24px auto 12px auto;
    padding: 0;
    float: none;
    width: 80px;
    display: inline-block;
    clear: both;
}

/* Footer
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#footer {
    background: rgba(57, 103, 147, 1) url(../img/background_footer.jpg) repeat;
    padding: 50px 0;
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    line-height: 28px;
}
#footer h2 {
    color: rgba(255, 255, 255, 1);
    font-weight: 700;
    font-size: 30px;
    line-height: 42px;
}
#footer a {
    color: rgba(255, 255, 255, 1);
}
#footer a i {
    margin-right: .6em;
}

/* Misc
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.jobs-call-to-action {
    padding: 20px 0;
    text-align: center;
}
a.back-to-top {
    background: rgba(208, 43, 30, 1);
    padding: 8px 32px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 1);
    font-weight: 400;
}
a.back-to-top:hover {
    text-decoration: none;
    background: rgba(167, 20, 8, 1);
}
/* To offset the navbar when opening internal anchors, see
   https://stackoverflow.com/a/28824157 */
:target::before {
  content: "";
  display: block;
  height: 30px;
}

/* Bigger than 550 */
@media screen and (max-width: 991px) {
    #banner p {
	font-size: 32px;
	line-height: 42px;
    }
    .banner-full {
        padding: 14em 0;
    }
    #home-jumbo p {
        padding: 0 0 20px 0;
        margin: 0 0 20px 0;
        font-size: 36px;
        line-height: 46px;
        width: 100%;
    }
    #projects img.project {
	margin: 32px auto 0 auto;
	width: 260px;
    }
    #projects .project:after {
	content: '';
	display: block;
	padding-bottom: 20px;
	border-bottom: rgba(0, 0, 0, .1) 1px solid;
    }
    #news .bio img {
	margin: 0 10px 10px 0;
	width: 120px;
    }
    #footer .legal p, #footer .legal a {
	font-size: 14px;
    }
}

@media screen and (max-width: 767px) {
    .intro h2 {
	font-size: 26px;
    }
    .intro p {
	font-size: 26px;
	line-height: 40px;
    }
    #header {
	text-align: center;
    }
    #header .logo img {
	float: none;
	margin: 0 auto;
	padding: 8px 0;
	height: 80px;
    }
    #projects, #news {
	padding: 30px 0;
    }
    #banner .banner-full {
        padding: 8em 0;
    }
    #banner ul {
	float: none;
	clear: both;
	display: inline-table;
    }
}
