/*
Theme Name: Scurri

-------------------------------------------------------------- */
/* Reset
-------------------------------------------------------------- */

@font-face {
  font-family: CeraPro;  
  src: url(fonts/CeraPro-Regular.woff2);  
  font-weight: 400;  
}

@font-face {
  font-family: CeraPro;  
  src: url(fonts/CeraPro-Bold.woff2);  
  font-weight: 700;  
}

@font-face {
  font-family: CeraPro;  
  src: url(fonts/CeraPro-Medium.woff2);  
  font-weight: 500;  
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font-size: 100%;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
html {
  margin: 0;
  padding: 0;
  font-size: 62.5%;
  /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/348/#c790 */

  -webkit-text-size-adjust: 100%;
  /* Prevents iOS text size adjust after orientation change, without disabling user zoom */

  -ms-text-size-adjust: 100%;
  /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */

}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}
table {
  border-spacing: 0;
  border-collapse: collapse;
}
code,
kbd,
tt,
var {
  font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}
mark,
ins {
  background: #fff9c0;
  text-decoration: none;
}
sup,
sub {
  font-size: 75%;
  height: 0;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  bottom: 1ex;
}
sub {
  top: .5ex;
}
small {
  font-size: 75%;
}
big {
  font-size: 125%;
}
figure {
  margin: 0;
}
table {
  margin: 0 0 1.5em;
  width: 100%;
}
th {
  font-weight: bold;
}
button,
input,
select,
textarea {
  font-size: 100%;
  /* Corrects font size not being inherited in all browsers */

  margin: 0;
  /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */

  vertical-align: baseline;
  vertical-align: middle;
  /* Improves appearance and consistency in all browsers */

}
button,
input {
  line-height: normal;
  /* Addresses FF3/4 setting line-height using !important in the UA stylesheet */

  overflow: visible;
  /* Corrects inner spacing displayed oddly in IE6/7 */

}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: none;
  border-radius: 10px;
  background: #ccc;
  color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  /* Improves usability and consistency of cursor style between image-type 'input' and others */

  -webkit-appearance: button;
  /* Corrects inability to style clickable 'input' types in iOS */

  font-size: 12px;
  font-size: 1.4rem;
  line-height: 1;
  padding: 1.12em 1.5em 1em;
}
button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  -webkit-box-shadow: 0 0 3px rgba(0,0,0,0.5);
  -moz-box-shadow: 0 0 3px rgba(0,0,0,0.5);
  box-shadow: 0 0 3px rgba(0,0,0,0.5);
}
button:focus,
html input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
button:active,
html input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
  -webkit-box-shadow: 0 0 3px rgba(0,0,0,0.5);
  -moz-box-shadow: 0 0 3px rgba(0,0,0,0.5);
  box-shadow: 0 0 3px rgba(0,0,0,0.5);
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  /* Addresses box sizing set to content-box in IE8/9 */

  padding: 0;
  /* Addresses excess padding in IE8/9 */

}
input[type="search"] {
  -webkit-appearance: textfield;
  /* Addresses appearance set to searchfield in S5, Chrome */

  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */

  box-sizing: content-box;
}
input[type="search"]::-webkit-search-decoration {
  /* Corrects inner padding displayed oddly in S5, Chrome on OSX */

  -webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */

  border: 0;
  padding: 0;
}
input[type=text],
input[type=email],
textarea {
  color: #888888;
  border: 1px solid #dddddd;
  border-radius: 5px;
}
input[type=text]:focus,
input[type=email]:focus,
textarea:focus {
  color: #101010;
}
input[type=text],
input[type=email] {
  padding: 3px;
}
textarea {
  overflow: auto;
  /* Removes default vertical scrollbar in IE6/7/8/9 */

  padding: 10px;
  vertical-align: top;
  /* Improves readability and alignment in all browsers */

  width: 98%;
}

body {
  font-family: CeraPro;
  padding-top: 118px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

:root {
  --primary-green: #25D366;
  --primary-navy: #1F2A4E;
  --light-navy: #4B5471;
  --mid-navy: #2A3557;
}

*, *:before, *:after {
  box-sizing: border-box;
}

.body-overflow {
  overflow-y: hidden;
}

/* header */

.site-header {
  background-color: #fff;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
}
.header-wrapper {
  margin: 0 auto;
  max-width: 1440px;
  padding: 32px 75px;
  display: flex;
}

.nav-wrapper {
  display: flex;
  flex: auto;
}

.logo {
  max-width: 200px;
  margin-right: 30px;
}

.main-navigation {
  display: flex;
  align-items: flex-end;
}

.menu {
  display: flex;
}

.menu a {
  text-decoration: none;
  color: var(--primary-navy);
  font-weight: 500;
}

.menu a:hover {
  color: var(--primary-green);
}

.menu li {
  font-size: 15px;
  margin-right: 30px;
  position: relative;
}

.menu li:last-of-type {
  margin-right: 0;
}

.sub-menu-wrap {
  position: absolute;
  display: none;
  left: 50%;
  transform: translate(-50%, 0);
  width: 352px;
  z-index: 100;
  padding-top: 30px;
}

.sub-menu {
  box-shadow: 0px 3px 30px #1F2A4E33;
  border-radius: 4px;
  padding: 30px;
  position: relative;
  background-color: #fff;
}

.sub-menu:before {
  content: '';
  width: 0; 
  height: 0; 
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid white;
  position: absolute;
  top: -15px;
  left: calc(50% - 15px);
}

.menu-item:hover .sub-menu-wrap{
  display: block;
}

.sub-menu .menu-item {
  margin-bottom: 30px;
  margin-right: 0;
}

.sub-menu li:last-of-type {
  margin-bottom: 0;
}

.sub-menu .menu-item a{
  display: flex;
  flex-direction: column;
  padding-left: 60px;
  align-items: flex-start;
}

.sub-menu .menu-item img {
  width: 44px;
  vertical-align: top;
  margin-right: 16px;
  position: absolute;
  top: 0;
  left: 0;
}

.sub-menu .menu-item span {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
  padding-right: 18px;
}

.menu-item-description {
  font-weight: 400;
}

.main-navigation a[target="_blank"] span {
  background:
    url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAGaADAAQAAAABAAAAGQAAAAB7O7VkAAAA/UlEQVRIDWNkIBKoXk77T6RSDGVMGCI0EBg+ljCqXE49AAwheHjf0Z3tSEqIKV5OEWf5z3SQgZFBHZc+FkYGRntckoTEibEAZAbZcYLTgv8MN9EdR5Yl+Cz4w/gPI2RItoSQBfd157ykyCfkWEBSnJBrAdGWUGIBUZZQagFRlvxjZgImjv9sIMVwAEymoFSELZLhapAYBFPXQ61Zz3+x/XcG6nkO1keiBSA9jOhF+G3dWYxgw9AI1cspmv8ZGKf9ZfgfQawPYEawwBiE6Nu6c64D1ZBUrsHMJBhcMIWU0KOWkBR6GKmLJN1YFP9n+H8QWPE5IEuNxglyaBBkAwAQZHfwHQo5dgAAAABJRU5ErkJggg==)
    no-repeat
    right center/10px;
}


.menu-item-has-children {
  padding-right: 17px;
}

.menu-item-has-children > a::after {
  content: '';
  width: 0; 
  height: 0; 
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--primary-green);
  position: absolute;
  right: 0;
  bottom: 4px;
  transition: all 0.5s;
}

.menu-item-has-children > a:hover::after {
  transform: rotate(180deg);
}

.secondary-navigation{
  margin-left: auto;
  display: flex;
  align-items: flex-end;
}

.secondary-navigation ul {
  display: flex;
  align-items: flex-end;
  justify-content: end;
}


.primary-buttom a {
  display: inline-block;
  background-color: var(--primary-green);
  padding: 9px 30px 8px 30px;
  border-radius: 18px;
  color: #fff;
  border: 2px solid var(--primary-green);
  font-size: 14px;
  font-weight: 700 !important;
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: -7px;
  transition: background-color 0.3s;
}

.primary-buttom a:hover {
  background-color: #fff !important;
  color: var(--primary-green) !important;
}

.sign-in a {
  letter-spacing: 1px;
}

.current_page_item a{
  color: var(--primary-green);
}

.two-rows .sub-menu-wrap {
  width: 674px;
}

.two-rows .sub-menu {
  display: flex;
  flex-wrap: wrap;
  padding-right: 0;
}

.two-rows .sub-menu .menu-item {
  flex: 0 1 50%;
  padding-right: 30px;
}

.mobile-nav-buttons {
  display: none;
}



/* mobile */

@media (max-width: 1300px) {
  .mobile-nav-buttons {
    display: block;
  }
  .mobile-nav-buttons span{
    cursor: pointer;
  }
  .close-icon {
    display: none;
  }
  .nav-open .close-icon {
    display: block;
  }

  .nav-open .ham-icon {
    display: none;
  }

  .mobile-nav-buttons {
    display: block;
  }
  .header-wrapper {
    justify-content: space-between;
    align-items: center; 
  }
  .nav-wrapper {
    position: absolute;
    background-color: #fff;
    top: 100%;
    right: 0;
    left: 0;
    height: calc(100vh - 119px);
    flex-direction: column;
    display: none;
  }
  .nav-open .nav-wrapper {
    display: block;
  }
  .header-wrapper.nav-open  {
    border-bottom: 2px solid #F3F4F6;
  }
  
  .main-navigation {
    display: block;
    height: calc(100vh - 119px - 160px);
    overflow: auto;
  }
  .main-navigation .menu {
    flex-direction: column;
    padding: 45px 75px 0 75px;
  }

  .main-navigation .menu-item {
    margin-bottom: 45px;
  }

  .main-navigation .menu a {
    font-size: 22px;
    position: relative;
  }

  .menu-item-has-children > a::after {
    right: -20px;
  }

  .secondary-navigation {
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    margin-left: initial;
    padding: 23px;
    border-top: 2px solid #F3F4F6;
    height: 160px;
    background-color: #fff;
  }

  .secondary-navigation ul {
    align-items: center;
  }

  .secondary-navigation .menu {
    flex-direction: column;
  }

  .secondary-navigation .menu-item {
    margin-right: 0;
  }
  
  .secondary-navigation .menu-item a {
    display: inline-block;
    background-color: #fff;
    padding: 15px 30px;
    border-radius: 22px;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
    width: 328px;
    text-align: center;
  }

  .secondary-navigation .menu-item:last-of-type a {
    background-color: var(--primary-green); 
    color: #fff;
  }

  /* sub menu */

  .sub-menu-wrap {
    display: block;
    position: static;
    transform: none;
    width: auto;
    padding-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s;
  }
  
  .two-rows .sub-menu-wrap {
    width: auto;
  }
  
  .sub-menu {
    display: block;
    box-shadow: none;
    padding-bottom: 0;
    padding: 0 0 0 35px;
    border-left: 2px solid var(--light-navy);
    border-radius: 0;
    margin-top: 24px;
  }

  .sub-menu-open .sub-menu-wrap {
    max-height: 300px;
  }

  .sub-menu::before {
    display: none;
  }

  .sub-menu .menu-item{
    margin-bottom: 24px;
    margin-right: 0;
  }

  .sub-menu .menu-item a{
    padding-left: 0;
  }

  .two-rows .sub-menu {
    display: block;
  }

  .sub-menu .menu-item img,
  .sub-menu .menu-item-description {
    display: none;
  }
  .sub-menu .menu-item span {
    margin-bottom: 0;
    font-size: 18px;
  }

  .menu-item-has-children::after {
    top: 0;
    bottom: auto;
  }

  .menu-item-has-children > a:hover::after {
    transform: none;
  }

  .menu-item-has-children.sub-menu-open > a::after {
    transform: rotate(180deg);
  }

}

@media (max-width: 800px) {
  body {
    padding-top: 72px;
  }

  .header-wrapper {
    padding: 20px 23px;
  }

  .logo {
    max-width: 100px;
  }

  .nav-wrapper {
    height: calc(100vh - 72px);
  }
  .main-navigation {
    height: calc(100vh - 72px - 160px);
  }
  .main-navigation .menu {
    flex-direction: column;
    padding: 45px 23px 0 23px;
  }
}


/* footer */

.site-footer {
  background-color: var(--mid-navy);
}
.footer-wrapper {
  margin: 0 auto;
  max-width: 1440px;
  padding: 60px 75px 32px 185px;
  background-image: url('./img/footer-bgd.png');
  background-repeat: no-repeat;
  background-position: 75px 60px;
  background-size: 37px;
  position: relative;
}
.footer-row {
  display: flex;
  margin-bottom: 5px;
  justify-content: space-between;
}

.footer-col {
  color: #fff;
}

.footer-col .menu{
  flex-direction: column;
}

.footer-row-heading {
  color: #fff;
  font-size: 15px;
  margin-bottom: 15px;
  font-weight: 700;
}

.site-footer .menu li{
  margin-bottom: 15px;
}

.site-footer .menu a {
  color: #fff;
  font-size: 15px;
  font-weight: 400;
}

.site-footer .menu a:hover {
  color: var(--primary-green);
  text-decoration: none;
}

.site-footer a[target="_blank"] {
  padding-right: 18px;
  background:
    url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAGaADAAQAAAABAAAAGQAAAAB7O7VkAAAA/UlEQVRIDWNkIBKoXk77T6RSDGVMGCI0EBg+ljCqXE49AAwheHjf0Z3tSEqIKV5OEWf5z3SQgZFBHZc+FkYGRntckoTEibEAZAbZcYLTgv8MN9EdR5Yl+Cz4w/gPI2RItoSQBfd157ykyCfkWEBSnJBrAdGWUGIBUZZQagFRlvxjZgImjv9sIMVwAEymoFSELZLhapAYBFPXQ61Zz3+x/XcG6nkO1keiBSA9jOhF+G3dWYxgw9AI1cspmv8ZGKf9ZfgfQawPYEawwBiE6Nu6c64D1ZBUrsHMJBhcMIWU0KOWkBR6GKmLJN1YFP9n+H8QWPE5IEuNxglyaBBkAwAQZHfwHQo5dgAAAABJRU5ErkJggg==)
    no-repeat
    right center/10px;
}

.newsletter-heading {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 700;
}



/* bottom row */

.footer-row.bottom {
  justify-content: space-between;
}

.social, 
.policy,
.policy .menu,
.social .menu {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.social {
  align-items: center;
}

.social .footer-row-heading {
  margin-bottom: 0;
  margin-right: 15px;
}

.social .menu li,
.policy .menu li {
  margin-bottom: 0;
  margin-right: 15px;
}

.social a span {
  display: none;
}

.social a ._svg {
  width: 36px;
  height: 36px;
  transition: all 0.3s;
}

.social a:hover ._svg {
  transform: translateY(-8px);
}

.policy a[href] {
  text-decoration: underline;
}

@media (max-width: 1300px) {
  .footer-wrapper {
    background-image: none;
    padding-left: 75px;
  }
}

@media (max-width: 1150px) {
  .footer-wrapper {
    background-image: none;
    padding-left: 75px;
  }
}

@media (max-width: 1050px) {
  .footer-row.top {
    flex-wrap: wrap;
  }
  .top .footer-col.newsletter {
    order: -1;
    flex: 100%;
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .footer-wrapper {
    padding: 24px;
  } 
}

@media (max-width: 650px) {
  .footer-row {
    margin-bottom: 0;
  }
  .top .footer-col {
    flex: 40%;
    margin-bottom: 45px;
  }
  .footer-col.social {
    position: absolute;
    bottom: 90px;
    right: 24px;
  }
  .footer-col.social .footer-row-heading {
    display: none;
  }
  .footer-col.social ul{
    flex-direction: column;
  }
  .footer-col.social li{
    margin-bottom: 15px;
    margin-right: 0;
  }

  .policy .menu a {
    font-size: 14px;
    letter-spacing: 0px;
  }
  .policy .menu li {
    margin-right: 8px;
  }
}

