/*
Theme Name: STR Capital Partners
Author: Addedlovely
Author URI: https://addedlovely.com
Version: 1.1
*/

:root {
  --container-width: 1228px;
  --content-width: 1000px;
  --grid-gap:30px;
  --margin: 70px;
  --negative-margin: -70px;
  --margin-s: 35px;
  --padding:100px;
  --green: #2bb573;
  --blue: #015278;
  --light-blue: #e8eef2;
  --placeholder: red;
  --swiper-navigation-color: #FFF;
  --swiper-theme-color: #FFF;
}

.blue { color: #015278; }
.green, .has-green-color { color:var(--green); }
.white { color: #FFF; }
.light-blue { color:var(--light-blue); }
.accent { color: var(--green); }
.bg-light-blue { background:var(--light-blue); }
.bg-green { background: rgba(43,181,115,0.9); }
.bg-blue { background: var(--blue); }
.bg-white { background: var(--white); }


/* ACF Inner Blocks - make it work with grid on the parent element */
.acf-innerblocks-container { display: contents; }

/* Structure */
.container { margin-left: auto; margin-right: auto; max-width: var(--container-width); /* width: 100%; */ padding: 0 var(--grid-gap); }
.narrow { max-width: var(--content-width); margin-left: auto; margin-right: auto; width: 100%; }
.grid { grid-gap:var(--grid-gap); }
.image { overflow: hidden; position: relative; }
.image img { position: absolute; top:0; left: 0;}

/* Typography */
html, body { color:var(--blue); font-family: "seravek-web", sans-serif; line-height: 1.333333333333333; font-size: 18px;  }
.f-32 { font-size: 32px; }
.f-28 { font-size: 28px; }
.f-24 { font-size: 24px; }
.f-22 { font-size: 22px; }
.f-20 { font-size: 20px; }
.f-18 { font-size: 18px; }
h2 { font-weight: 600; margin-bottom: 40px; }
h2.has-large-font-size { margin-bottom: 30px; }
h3 { font-weight: 600; margin-bottom: 10px; font-size: 20px; }
p { margin-bottom: 20px; }

/* Icons */
.icon-right { width: 7px; height: 12px; margin: auto 6px; transform: translateY(1px); }

/* Default blocks */
/* .is-root-container matches editor class name and main site container */
.is-root-container > p, .is-root-container > ul { margin-left: auto; margin-right: auto; max-width: 900px !important; width: 100%; padding: 0 var(--grid-gap); }
.is-root-container .wp-block-columns { margin-left: auto; margin-right: auto; max-width: 1100px; width: 100%; }
.is-root-container .wp-block-column { padding: 0 var(--grid-gap); }
.is-root-container li { margin-bottom: 5px; list-style-type: none; padding-left: 14px; position: relative; }
.is-root-container li::before { content:'– '; color: var(--green); position: absolute; top:0; left: 0;  }
.is-root-container > .has-bg:last-of-type { margin-bottom: 0; }
.editor-styles-wrapper .wp-block-list-item { display: flex; }
.block-case-studies .wp-block-post-template.is-flex-container { display: contents; }

/* Header */
.header { height: 194px; }
.header .container { height: 100%; }
.header-menu { line-height: 52px; margin-top: 100px; }
.header-menu-item { padding: 0 15px; }
.header-menu-item::after { content:''; width: 32px; height: 4px; top:0; left:15px; position: absolute; background: var(--green); opacity: 0; visibility: hidden; }
.header-menu-item.is-active::after { opacity: 1; visibility: visible; }
.header-logo { width: 308px; height: 69px; margin: 70px auto auto 0; }
.header-menu-item-linkedin { display: flex; }
.header .icon-linkedin { width: 20px; height: 20px; margin: 17px 0 0 0; }
.button-close-menu, .button-open-menu { display: none;  }
.button-menu-mask { position: fixed; top:0; left: 0; right: 0; bottom: 0; z-index: 1; background: var(--blue); opacity: 0; visibility: hidden; transition: 0.3s opacity cubic-bezier(0.4, 0, 1, 1), 0.3s visibility cubic-bezier(0.4, 0, 1, 1); }

/* Case Study Slideshows */
.case-study-slideshow-caption { left:50px; right:50px; bottom: 28px; padding: 16px; z-index: 1; }
.case-study-slideshow-excerpt { max-height:0; overflow: hidden; transition: max-height 0.5s ease-in-out; }
.case-study-slideshow-excerpt.is-open { max-height: 300px; }
.case-study-slideshow-excerpt p { margin-bottom: 20px; }
.case-study-slideshow-link .icon-right { width:7px; height:12px; margin-top:6px;  } 
.case-study-slideshow-link .icon-close { visibility: hidden; right:0; top:1px; bottom: 0; width: 20px; height: 20px; }
.case-study-slideshow-link.is-open .icon-close { visibility: visible; }
.case-study-slideshow-link.is-open .icon-right { visibility: hidden; }

/* Footer */
.footer { padding: var(--margin-s); }
.footer-menu-item { padding: 0 12px; }

/* Media Queries */
@media screen and ( max-width: 1080px ) {
  
  /* Type Reduction : 10% */
  html, body { font-size: 16px;  }
  .f-32 { font-size: 28px; }
  .f-28 { font-size: 25px; }
  .f-24 { font-size: 21px; }
  .f-20 { font-size: 18px; }
  .f-18 { font-size: 16px; }
  
  /* Header */
  .header { height: 155px; }
  .header-logo { width: 246px; height: 55px; margin: 56px auto auto 0; }
  
  /* Menu */
  .header-menu { position: fixed; max-width: 375px; top:0; right:0; bottom:0; background: var(--blue); color:#FFF; z-index: 2; padding: var(--grid-gap); margin-top: 0; flex-direction: column; width: 100%; transform: translateX(100%); transition: 0.3s transform cubic-bezier(0.4, 0, 1, 1); font-size: 18px; justify-content: center; }
  .header-menu-item { font-size: 22px; line-height: 2.1; padding-left: 100px; }
  .header-menu-item.is-active { color:var(--green); }
  .header-menu-item.is-active::after { display: none; }
  .header-menu-item-linkedin { margin-top: 8px; }
  .header .icon-linkedin { margin-left: 0; }
  .button-close-menu, .button-open-menu { display: block; position: absolute; top:54px; right: 20px; width: 44px; height: 44px; padding: 6px; color: currentcolor; }
  .button-close-menu { color: var(--green); padding: 0; }
  .show-menu .header-menu { transform: translateX(0%); }
  .show-menu .button-menu-mask { opacity: 0.4; visibility: visible; }
  
}

@media screen and ( max-width: 640px ) {
  
  :root {
    --padding: 40px;
    --margin: 40px;
    --grid-gap:20px;
    --margin-s: 20px;
  }
  
  body {
   --wp--preset--font-size--small: 14px !important;
   --wp--preset--font-size--medium: 16px !important;
   --wp--preset--font-size--large: 19px !important;
   --wp--preset--font-size--x-large: 29px !important;
  }
  
  /* Type Reduction : 30% */
  html, body { font-size: 14px; }
  .f-32 { font-size: 22px; }
  .f-28 { font-size: 19px; }
  .f-24 { font-size: 16px; }
  .f-22 { font-size: 15px; }
  .f-20 { font-size: 14px; }
  .f-18 { font-size: 14px; }
  h2.has-large-font-size { margin-bottom: 20px; }
    
  /* Header */
  .header { height: 116px; }
  .header-logo { width: 185px; height: 41px; margin: 42px auto auto 0; }
  .button-close-menu, .button-open-menu { top:36px; }
  
  /* Case Study Slideshow */
  .case-study-slideshow-caption  { position: static; margin-top: -1px;}
  .block-case-study-slideshow .swiper-button-next, 
  .block-case-study-slideshow .swiper-button-prev,
  .layout-case-study-slideshow .swiper-button-next,
  .layout-case-study-slideshow .swiper-button-prev { display:none; }
  .case-study-slideshow-link .icon-right,
  .block-case-study-slideshow .case-study-slideshow-link .icon-right { margin-top:2.5px !important; }
  .case-study-slideshow-link .icon-close,
  .block-case-study-slideshow .case-study-slideshow-link .icon-close { top:-1px !important; }

  /* Footer */
  .footer-menu { flex-direction: column; line-height: 2; }
}