/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.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.
 */
/* CSS Resources
 * Optimistic Web: https://www.youtube.com/@OptimisticWeb/featured,
 */

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

html {
  color: dimgray;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  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
   ========================================================================== */

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

.visually-hidden {
  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 .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.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
 *
 * 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 */
}

/*For slides */
@media (prefers-reduced-motion: reduce) {
  .slide .slide-text {
    animation: none;
    position: static;
    opacity: 1;
    transform: none;
  }
}
/* ==========================================================================
   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;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/** Styling Navigation Bars -
Remove default list styles (bullets and underlines).
*/
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  padding-right: 1rem;
  color: #fff;
}

/** Centre the image and add a caption */
img {
  display: block;
  margin: 0 auto;
}

/** Style Buttons */
button {
  background-color: #70104d;
  color: #eaba13;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
}
/* === Website Theme === **/
/* Clean creative website: https://colorlib.com/wp/creative-agency-wordpress-themes/ 
(Litho, Sway and Brunn) **/
/* Keep entire website centred on large screens */
body {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  background-color: #2a091e;
  box-sizing: border-box;
}

/** ==== Base Layout ==== */
.container {
  min-height: 100vh;
}
.site-notification {
  background-color: #2a091e;
  color: #fff;
  text-align: center;
  padding: 0.5rem;
}
.header-hero {
  background-color: #13ecbb;
}
.site-header {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-content: space-evenly;
  text-align: center;
  padding: clamp(0.2rem, 0.5vw, 0.25rem);
}

.logo {
  width: clamp(70px, 10vw, 120px);
  height: auto;
}

.nav-list {
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

/* ----------------------------------------
   Mobile menu button
---------------------------------------- */

/*
   Hidden by default because desktop uses
   the normal horizontal navigation.
*/
.mobile-menu {
  display: none;
}

/** Hamburger button */

.mobile-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  margin: 0;
  padding: 0;

  cursor: pointer;
  list-style: none;
}

/*
   Remove the default disclosure triangle.
*/

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

/* ----------------------------------------
   Hamburger Icon
---------------------------------------- */

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  width: 28px;
  height: 22px;
}

/*
   The three hamburger lines.
*/

.hamburger span {
  display: block;

  width: 100%;
  height: 3px;

  border-radius: 2px;

  background: currentColor;

  transform-origin: center;

  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

/* ----------------------------------------
    Hamburger from ☰ → ×
---------------------------------------- */

/* Top bar */
.mobile-menu[open] .hamburger span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

/* Middle bar disappears */
.mobile-menu[open] .hamburger span:nth-child(2) {
  opacity: 0;
}

/* Bottom bar */
.mobile-menu[open] .hamburger span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

.mobile-menu {
  color: #eaba13;
}
.mobile-menu a {
  color: #f4de90;
}
/* ----------------------------------------
   Mobile navigation
---------------------------------------- */

.mobile-nav {
  display: block;
  width: 100%;
  margin-top: 1rem;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav li {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 1rem;

  text-decoration: none;
}

/* ----------------------------------------
   Mobile / Tablet
---------------------------------------- */

@media (max-width: 768px) {
  /*
       Hide desktop navigation.
    */
  .primary-nav {
    display: none;
  }
  /*
       Show hamburger menu.
    */
  .mobile-menu {
    display: block;
    width: 100%;
  }
  .mobile-menu summary {
    margin-left: auto;
  }
  .mobile-nav {
    padding: 0 1rem 1rem;
  }
}

/** Desktop / Laptop */
@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }

  .mobile-menu {
    display: none;
  }
}

/** ==== Main Content ==== */
.main-content {
  padding: 0;
}

.hero {
  padding: 1rem;
}

.hero-image {
  padding-bottom: 1rem;
}

.hero-text {
  padding: 1rem;
}
.hero-tagline {
  margin: 0;
  padding: 0.05rem;
  opacity: 1;
  color: #70104d;
}
.hero-headline {
  margin: 0;
  padding-top: 0.05rem;
  padding-bottom: 1.5rem;
  color: #4d7010;
}
.deco-color {
  color: #fff;
  font-style: italic;
}

.hero-paragraph {
  margin: 0;
  padding: 0.05rem;
  color: #fff;
}

.main-aside {
  justify-content: center;
  padding: 1rem 0;
}
.main-article {
  padding: 1rem;
  background-color: #fff;
  color: #000;
}
/** Supporting Content */
.supporting-content {
  padding: 0;
}

.supporting-content--extended {
  background-color: #4d7010;
}
.supporting-content--card {
  background-image: url("../images/IMG_4527_communtyResearchers_480.jpg");
}
.supporting-content--card h3,
h6 {
  color: #70104d;
}

.supporting-content--article {
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  color: #fff;
}

.supporting-content--aside {
  padding: 1rem;
}

.supplementary-content {
  padding: 0;
  background-color: #2A091E;
}
.supplementary-content h3 {
  padding: 1rem;
  color: #70104d;
}
.supplementary-content--text {
  padding: 1rem;
  color: #fff;
}
/** === Footer styles === */
.site-footer {
  height: auto;
  padding: 0.5rem 0;
  text-align: center;
  background-color: #fff;
}
.footer-nav a {
  color: #000;
}
.L_push {
  justify-content: left;
}

.footer-cta {
  padding: 0;
}
.cta-client--one {
  background-color: #eaba13;
  color: #080808;
  padding: 1rem;
}
.cta-client--two {
  background-color: #70104d;
  color: whitesmoke;
  padding: 1rem;
}
.cta-client--three {
  background-color: #13ecbb;
  color: white;
  padding: 1rem;
}
#copy {
  color: #13ecbb;
}
/** ==== Responsive Layout ==== */
@media screen and (min-width: 320px) {
}
@media screen and (min-width: 550px) {
  body {
    background-color: #2a091e;
  }
}
@media screen and (min-width: 768px) {
  body {
    background-color: #fff;
  }
  .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .site-notification {
    grid-column: 1/-1;
    background-color: #000;
    color: white;
  }
  .header-hero {
    grid-column: 1/-1;
  }
  .site-header {
    grid-column: 1/-1;
  }
  .primary-nav {
    grid-column: 1/-1;
  }

  /** Main Content */
  .main-content {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: subgrid;
  }
  .hero {
    grid-column: 1/-1;
  }
  .hero-banner {
    display: grid;
    grid-template-columns: subgrid;
  }
  .hero-image {
    clip-path: polygon(48% 0%, 100% 50%, 50% 100%, 0% 50%);
    grid-column: 1/2;
  }
  .hero-text {
    grid-column: 2/4;
    padding: 2rem;
    align-items: end;
  }
  .main-article {
    display: grid;
    grid-column: 1/-1;
    grid-template-columns: subgrid;
    color: #000;
  }

  /** Supporting Content */
  .supporting-content {
    grid-column: 1/-1;
  }
  .supporting-content--card {
    background-image: url("../images/IMG_4527_communtyResearchers_800.jpg");
  }

  /** Supplementary Content */
  .supplementary-content {
    display: grid;
    grid-column: 1/-1;
    grid-template-columns: subgrid;
  }
  .supplementary-content h3 {
    grid-column: 1/-1;
  }
  .supplementary-content--text {
    grid-column: 1/-1;
  }

  /** Footer styles */
  .site-footer {
    display: grid;
    grid-column: 1/-1;
    grid-template-columns: subgrid;
    gap: 0;
  }
  .footer-nav {
    grid-column: 1/-1;
  }
  .footer-cta {
    display: grid;
    grid-column: 1/-1;
    grid-template-columns: subgrid;
  }

  @media screen and (min-width: 960px) {
    body {
      background-color: #fff;
    }
    .hero {
      grid-column: 1/-1;
    }
    .supporting-content--card {
      background-image: url("../images/IMG_4527_communtyResearchers_1200.jpg");
    }
  }
}
