﻿/*
    Landing pages assembled from alternating full-bleed bands
    (Pages/Shared/SectionContentDayEntry.cshtml).

    The band markup lives in the CMS "Content" field so the owner can edit the
    copy in the WYSIWYG; this file owns every visual decision. Typography comes
    from the theme variables only - never hardcode a family here.
*/
/* #region .content-day */
.content-day {
  margin-bottom: 0;
}

.content-day-body {
  margin-bottom: 0;
}

.content-day-band {
  padding: 80px 0;
  background: #fff;
}

.content-day-band-light {
  background: #fff;
}

.content-day-band-dark {
  background: #2A2A2A;
}

.content-day-band-dark,
.content-day-band-dark h1,
.content-day-band-dark h2,
.content-day-band-dark h3,
.content-day-band-dark h4,
.content-day-band-dark p,
.content-day-band-dark a,
.content-day-band-dark span {
  color: #fff;
}

.content-day-band-dark a:hover,
.content-day-band-dark a:focus {
  color: #D6141E;
}

/* #endregion */
/* #region head + intro */
/* Only this band takes the site background. The breadcrumbs strip above it has
   no background of its own, so against a white band it reads as a grey gap;
   matching it here makes the two blend the way they do on every other page,
   without overriding anything the theme owns. */
.content-day-band.content-day-head {
  padding-top: 0;
  padding-bottom: 0;
  background: #f4f4f4;
  text-align: center;
}

.content-day-head .entry-title {
  margin-bottom: 0;
  font-family: Anton, Tahoma, sans-serif;
}

.content-day-lead {
  max-width: 820px;
  margin: 0 auto;
  font: 15px/28px Poppins, "Open Sans", serif;
  color: #5E5E5E;
}

.content-day-intro {
  padding: 30px 0 80px;
  text-align: center;
}

.content-day-intro p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.content-day-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.content-day-logos > * {
  display: inline-block;
  margin: 15px 25px;
}

.content-day-logos img {
  display: block;
  max-width: 180px !important;
  height: auto;
}

/* #endregion */
/* #region brand blocks */
/* 16:9. The design's photos are 3:2, but a 3:2 box here only adds dead space:
   the Vimeo player letterboxes the 16:9 source rather than filling the frame. */
.content-day-video {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

/* Positioning lives here, not in an inline style on the iframe: TinyMCE's media
   plugin round-trips embeds and can drop the style attribute, and theme.scss's
   `.entry-content iframe` would then force a fixed 500px height. Same
   specificity (0,1,1) as that rule, but this file is linked after it. */
.content-day-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.content-day-brand-logo {
  display: block;
  max-width: 180px !important;
  height: auto;
  margin: 0 auto 25px;
}

.content-day-brand h2 {
  margin-bottom: 25px;
  font-family: Anton, Tahoma, sans-serif;
  text-align: center;
}

.content-day-brand p {
  font: 15px/28px Poppins, "Open Sans", serif;
}

.content-day-figure {
  margin: 0;
}

.content-day-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.content-day-band.content-day-band-flush {
  padding: 0;
  overflow: hidden;
}

.content-day-band-flush .content-day-brand {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* #endregion */
/* #region packages */
.content-day-packages-title {
  margin-bottom: 55px;
  font-family: Anton, Tahoma, sans-serif;
  text-align: center;
}

.content-day-package {
  margin-bottom: 30px;
  text-align: center;
}

.content-day-package h3 {
  margin-bottom: 10px;
  font-family: Anton, Tahoma, sans-serif;
}

.content-day-package-meta {
  display: block;
  margin-bottom: 20px;
  font: 15px/28px Poppins, "Open Sans", serif;
}

.content-day-package p {
  text-align: left;
  font: 15px/28px Poppins, "Open Sans", serif;
}

/* #endregion */
/* #region contact */
.content-day-contact h2 {
  margin-bottom: 30px;
  font-family: Anton, Tahoma, sans-serif;
  font-size: 54px;
  line-height: 65px;
}

.content-day-contact p {
  font: 15px/28px Poppins, "Open Sans", serif;
}

.content-day-contact-details {
  margin-bottom: 20px;
}

.content-day-contact-details a {
  text-decoration: underline;
}

/* #endregion */
/* #region responsive */
@media (max-width: 1200px) {
  .content-day-contact h2 {
    font-size: 40px;
    line-height: 50px;
  }
}
@media (max-width: 991px) {
  .content-day-band {
    padding: 55px 0;
  }
  .content-day-video {
    margin-bottom: 30px;
  }
  .content-day-brand {
    margin-bottom: 35px;
    text-align: center;
  }
  .content-day-package p {
    text-align: center;
  }
  .content-day-contact {
    margin-bottom: 35px;
    text-align: center;
  }
}
@media (min-width: 992px) {
  .content-day-col-flush {
    display: flex;
    padding-right: 0;
  }
  .content-day-figure-flush {
    display: flex;
    flex: 1 1 auto;
    min-height: 380px;
    /* Bootstrap .container is 960px wide here: pull the photo past the
       container gutter and out to the viewport edge. */
    margin-right: calc((960px - 100vw) / 2 - 15px);
  }
  .content-day-figure-flush img {
    height: auto;
  }
}
@media (min-width: 1200px) {
  /* theme.scss widens .container to 1380px from here up, but between 1200px
     and 1380px it is simply full width, so only the 15px gutter is in the way. */
  .content-day-figure-flush {
    margin-right: -15px;
  }
}
@media (min-width: 1381px) {
  .content-day-figure-flush {
    margin-right: calc((1380px - 100vw) / 2 - 15px);
  }
}
@media (max-width: 991px) {
  .content-day-band.content-day-band-flush {
    padding-top: 55px;
  }
  .content-day-band-flush .content-day-brand {
    padding-top: 0;
    padding-bottom: 35px;
  }
}
@media (max-width: 767px) {
  .content-day-band {
    padding: 40px 0;
  }
  .content-day-band.content-day-band-flush {
    padding-top: 40px;
  }
  .content-day-logos img {
    max-width: 140px;
  }
  .content-day-contact h2 {
    font-size: 32px;
    line-height: 42px;
  }
}
/* #endregion */
