/*
Theme Name: OH Med Comms
Theme URI: https://omnicomhealth.com/
Author: Omnicom Health Med Comms
Author URI: https://omnicomhealth.com/
Description: Custom starter theme for Omnicom Health Med Comms website.
Version: 0.1.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: oh-medcomms
*/

/* three variables for colors, fonts, and spacing could be added here for easier maintenance and consistency across the theme */
:root {
    --dark-gray: #373737;
    --medium-gray: #444;
    --light-gray: #f0f0f0;
}



html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Instrument Sans', sans-serif;
  line-height: 1.5;
  color: #1f2937;
}

.site-header {
    display: block;
    position: absolute;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    left: 0;
    width: 100%;
    z-index: 10;

  .site-branding {
    color: #fff;
    text-decoration: none;
    display: none;
  }

  .site-nav-toggle {
    display: flex;
    position: fixed;
    right: 4rem;
    top: 12vh;

    align-items: center;
    gap: 0.625rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem; /* 16px */
    font-weight: 600;
    color: #fff;
    font-variation-settings: 'wdth' 100;
    line-height: 1;
    z-index: 1;;
    transition: all 0.3s ease-in-out;

    &[aria-expanded="true"] .site-nav-toggle__icon {
        background-color: rgba(255, 255, 255, 0);
        &::before { top: 0; transform: rotate(45deg); }
        &::after { top: 0; transform: rotate(-45deg); }
    }

    &.dark {
      color: #000;

      .site-nav-toggle__icon {
        background-color: #000;
        &::before, &::after { background-color: #000; }
      }

      &[aria-expanded="true"] {
        color: #fff; 
        .site-nav-toggle__icon {
         background-color: rgba(255, 255, 255, 0);
          &::before, &::after { background-color: #fff; }
        }
      }
    }
  }

  .site-nav-toggle__icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    position: relative;
    transition: all 0.3s ease-in-out;
    &::before, &::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        left: 0;
        background-color: #fff;
        transition: all 0.3s ease-in-out;
    }
    &::before { top: -7px; }
    &::after { top: 7px; }
  }

  .site-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    overflow: hidden;
    background-color: var(--dark-gray);
    width: 0;
    height: 100vh;
    transition: width 0.3s ease-in-out;

    div {
      width: 50vw;
      max-width: 250px;
    }

    ul {
        list-style: none;
        padding: 0;
        margin: calc( 12vh + 3rem ) 0 0 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        height: 100%;
        gap: 2rem;

        li {
          border-bottom: 1px solid var(--medium-gray);
          width: 100%;
            a {
                display: block;
                color: #fff;
                text-decoration: none;
                font-family: 'Instrument Sans', sans-serif;
                font-size: 1rem; /* 24px */
                font-weight: 200;
                line-height: 1.2;
                padding: 0.25rem 1rem 0.5rem 1rem;
                min-height: 35px;

                &:hover { text-decoration: underline; }
            }
        }
    }

     &.is-open {
        width: 50vw;
        max-width: 250px;
     }
  }

}

.page-featured-image-wrap {
  background: #000 url(assets/img/footer-gradient.png) repeat-y center bottom;
  background-size: contain;
  position: relative;
  width: 100%;
  height: auto;
  padding-bottom: 5px;
}

.page-featured-image {
  background-color: #000;
  width: 100%;
  line-height: 0;
  position: relative;

  aspect-ratio: 16 / 9;
  
  img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: auto;
    z-index: -1;

    &.full {
      width: 100%;
      aspect-ratio: 16 / 9;
      position: relative;
      z-index: 1;
    }
  }
  
  iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    z-index: 1;
  }

  #page-featured-scroll-down {
    font-size: 1px;
    color: rgba(255, 255, 255, 0);
    position: absolute;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    background: transparent url(assets/img/box-down-arrow.svg) no-repeat center center;
    background-size: contain;
    width: 55px;
    height: 55px;
    z-index: 2;
  }
}

.site-main {
  .tint-wrap { background-color: var(--light-gray); }

  .container {
      max-width: 61rem;
      margin: 0 auto;
      padding: 2rem 2rem;

      h2 {
            font-size: 2rem; /* 32px */
            line-height: 2rem;
            color: #000;
        }

      div, p, li {
        color: var(--dark-gray);
      }

      blockquote {
        padding: 2rem 1rem 2rem 1rem;
        text-align: center;
        
        p {
          position: relative;
          display: inline;
          color: var(--Dark-Gray, #373737);
          text-align: center;
          font-family: "Cormorant Garamond";
          font-size: 2rem;
          line-height: 2.4rem;
          font-style: normal;
          font-weight: 400;
          /*
          &::before, &::after {
            position: absolute;
            font-size: 8rem; / * 128px * /
            font-weight: 800;
            line-height: 8rem;
          } 
          &::before {
            content: "“";
            left: -3.25rem;
            top: -3rem;
          } 
          &::after {
            content: "”";
            right: -3.75rem;
            bottom: -5.5rem;
          }
          */

        }
      }

  }
}

.button-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 10px;
}

.button-link {
    display: inline-block;
    padding: 0.85rem 2.5rem 0.7rem 2.5rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-family: 'Cormorant', serif;
    font-size: 1.4rem; /* 24px */
    font-style: italic;
    font-weight: 500;
    line-height: 1.4rem;
    border-radius: 40px;
    margin: 0;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;

    &:hover {
        background-color: #555;
    }
}

.tabbed-medcomms-col-1 {
    display: flex;
    align-items: center;
    border-right: 1px solid #000;
    height: 50%;
}

.wp-block-columns { margin-bottom: 0; }

.hero {
    margin-bottom: 2rem;
}

.privacy-policy {
    padding-top: 4rem;

  a {
    color: var(--dark-gray);
    text-decoration: underline;

    &:hover { text-decoration: none; }
  }

  a.back-to-home {
    background-color: var(--dark-gray);
    color: #fff;
    padding: 0.5rem 1rem;
    display: inline-block;
    margin-bottom: 2rem;
    text-decoration: none;
    border-radius: 40px;

    &:hover { background-color: #555; }
  }

  td { padding: 1rem; }
}

.site-footer {
  padding: 0;
  background: #000 url(assets/img/footer-gradient.png) no-repeat center top;
  background-size: contain;


  .footer-container {
    max-width: 61rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: block;

    }

  #footer-tagline {
    font-family: 'Cormorant', serif;
    font-size: 2.5rem; /* 40px */
    font-weight: 100;
    font-style: italic;
    text-transform: capitalize;
    text-align: center;
    color: #fff;
    letter-spacing: -0.8px;
    line-height: normal;
    padding-top: 65px;
    padding-bottom: 50px;

    
    span {
        display: block;
        text-align: center;
    }
  }

  #footer-brand {
    position: relative;

    span {
        color: #fff;
        display: block;
        text-align: center;
        font-weight: 100;
        padding: 1rem 0;

    }

    img {
        display: block;
        margin: 0 auto;
        width: 90%;
        max-width: 290px;
        height: auto;
    }

    a {
        color: #fff;
        text-decoration: none;
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.5rem; /* 24px */
        font-weight: 400;
        font-style: italic;

        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-25%);

        &:hover { text-decoration: underline; }

    }
  }
  
  #footer-notice-line {
    font-family: 'Instrument Sans', sans-serif;
    color: #c7c7c7;
    font-size: 0.75rem; /* 12px */
    font-weight: 400;
    line-height: 1.1; /* 13.2px */
    font-variation-settings: 'wdth' 100;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 114px;
    padding-bottom: 16px;

    a {
        color: #c7c7c7;
        text-decoration: none;

        &:hover { text-decoration: underline; }
    }

    div {
        display: flex;
        gap: 1rem;
      }
    ul {
      display: flex;
      gap: 1rem;

      li { list-style: none; }
    }
  }
}

/* Screen less than 768 width */
@media (max-width: 768px) {
  .site-header .site-nav-toggle {
      right: 1rem;
      top: 3vh;
  }
  .site-header .site-nav ul { margin: calc( 3vh + 3rem ) 0 0 0; }


  .page-featured-image  #page-featured-scroll-down { display: none; }
  
  .tabbed-medcomms-col-1 {
    display: block;
    border-right: none;
    height: auto;
  }

  .button-wrap {
    flex-wrap: wrap;
  }

  .site-header .site-nav-toggle {
    border: 1px solid rgba(0, 0, 0, 0);
    height: 40px;
    width: 40px;
    justify-content: center;
    
    &[aria-expanded="true"] {
      border: 1px solid rgba(0, 0, 0, 0) !important;
      background-color: rgba(255, 255, 255, 0) !important;
    }
    
    .site-nav-toggle__label { display: none; }

    &.dark { 
      border: 1px solid #000;
      background-color: rgba(255, 255, 255, 0.6);
      backdrop-filter: blur(3px);
    }
  }
}