/*
 Theme Name:   STRYDOM INC | ATTORNEY, NOTARY & CONVEYANCING
 Theme URI:    http://themes.radiantthemes.com/attorneypress/
 Description:  STRYDOM INC | ATTORNEY, NOTARY & CONVEYANCING Child Theme
 Author:       Yolk Media
 Author URI:   http://radiantthemes.com/
 Template:     attorneypress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 Text Domain:  attorneypress
*/

div#page > header {
  /* Hide the mobile nav if no menu items are rendered */
  &:has(div.responsive-nav + nav:empty) {
    div.responsive-nav {
      display: none !important;
    }
  }

  div.logo {
    a {
      position: relative;
      display: block;

      > img {
        opacity: 0; /* Important to keep it here to maintain the original header height */
      }

      > div {
        position: absolute;
        top: 0;
        left: 0;
        width: 130%;
        min-width: 300px;
        height: 100%;
        min-height: 70px;
        font-size: 15px;
        line-height: 1.3;
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        text-align: left;

        > div {
          margin: 0;

          &:first-child {
            font-size: 18px;
            font-weight: 410;
            margin-bottom: 0.3em;
          }

          &:not(:first-child) {
            font-size: 14px;
          }
        }
      }
    }
  }
}

/* Top slider tweaks */
/* background image */
#hero {
  [data-isactiveslide] > *:first-child {
    color: #fff;
    filter: brightness(0.8);
  }

  .rs-parallax-wrap {
    /* essential for flawless text transforms */
    > [id*="slide"] {
      will-change: transform;
      -webkit-font-smoothing: subpixel-antialiased !important;
    }

    /* second, smaller text block */
    &:nth-child(3) {
      text-shadow: rgba(0, 0, 0, 0.54) 1px 1px 8px;
      font-weight: 410;
    }
  }
  /* first, large text block */
  [data-isactiveslide="false"] .rs-parallax-wrap:nth-child(2) {
    opacity: 0;
    transition: opacity 1s;
  }
  [data-isactiveslide="true"] .rs-parallax-wrap:nth-child(2) {
    opacity: 1;
    transition: opacity 1s;
  }
}

div#about {
  --color-section: #fff;
  color: var(--color-section);

  h3 {
    text-align: center;
    color: var(--color-section);
    line-height: 1em;
    margin: 0 0 1rem !important;
  }
}

/* Privacy policy page */
body.terms-of-service {
  /* Main heading */
  h2 {
    text-transform: uppercase;
  }

  /* List items */
  ul:has(+ h3) {
    margin-bottom: 20px; /* Same as P tags */
  }
}

/* Mobile tweaks */
@media screen and (max-width: 767px) {
  div.pic {
    aspect-ratio: 1.2/1;
    overflow: hidden;
    width: 100%;

    > img {
      width: 100%;
    }
  }

  div.detailsAttorney {
    padding: 20px;
  }

  div.footer_main_item {
    padding: 20px 25px 20px 25px;
  }
}
