/*  
Theme Name: Shaw Collet Router Theme
Theme URI: http://sww.co.nz/
Description: Custom WordPress theme by Stellar Web Works
Version: 1.0
Author: Aidan Curran
Author URI: http://sww.co.nz/
*/

/* 
   Contents:
   0. Variables
   1. Basics
   2. Header
   3. Sticky Header
   4. Navigation Menus
   5. Dropdown Menu
   6. Lists
   7. Blockquotes
   8. Style classes for use in Editor
   9. Sections (Groups)
   10. Columns
   11. Cover Block
   12. Call to action

   14. Photo Layout
   15. Hero Video
   16. Breadcrumbs
   17. Buttons and more links
 
   20. Footer
   21. Gutenberg overrides and workarounds
   22. Other

   R. Responsive Elements
   R1. Defaults
   R2. MEDIUM-WIDE SCREEN (max-width: 1200px)
   R3. MEDIUM-SMALL SCREEN (max-width: 1000px)
   R4. SMALL SCREEN (max-width: 700px)

*/

/* -------------------------------------------------------------------------------------------------------------------- 
   0. Variables
*/
:root {
   /* colour shortcuts */
   --color1: var(--wp--preset--color--color-1);
   --color2: var(--wp--preset--color--color-2);
   --light-grey: var(--wp--preset--color--light-grey);
   --grey: var(--wp--preset--color--grey);
   --dark-grey: var(--wp--preset--color--dark-grey);
   --grey-tint: var(--wp--preset--color--grey-tint);
   --green-tint: var(--wp--preset--color--green-tint);
   --dark: var(--wp--preset--color--dark);

   /* font size shortcuts */
   --xs: var(--wp--preset--font-size--x-small); /* 15-17px */
   --sm: var(--wp--preset--font-size--small); /* 17-22px */
   --m: var(--wp--preset--font-size--medium); /* 18-24px */
   --l: var(--wp--preset--font-size--large); /* 24-32px */
   --xl: var(--wp--preset--font-size--x-large); /* 32-48px */
   --xx: var(--wp--preset--font-size--xx-large); /* 32-64px */
   --xxx: var(--wp--preset--font-size--xxx-large); /* 16-64px */

   /* spacing shortcuts */
   --sp1: var(--wp--preset--spacing--10); /* 8-16px */
   --sp2: var(--wp--preset--spacing--20); /* 16-32px */
   --sp3: var(--wp--preset--spacing--30); /* 24-48px */
   --sp4: var(--wp--preset--spacing--40); /* 32-64px */
   --sp5: var(--wp--preset--spacing--50); /* 48-96px */
   --sp6: var(--wp--preset--spacing--60); /* 70-140px */
   --sp7: var(--wp--preset--spacing--70); /* 80-160px */

   --header-height-full: 150px;
   --header-height-mobile-full: 100px;
   --sticky-height: 100px;
}


/* -------------------------------------------------------------------------------------------------------------------- 
   1. Basics
*/
/* set a reasonable absolute max width for the entire site (for massive screens) */
body {
   max-width: 3000px;
   margin-left: auto;
   margin-right: auto;
   min-width: 300px;
}
/* Set content width as percentage when max width is not in play (because styles > spacing > padding does not get applied to content inside a full width block ) */
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
   width: 90%;
}
/* cancel out above rule affecting image alignment block editor */
.block-editor-block-list__layout figure {
   width: auto;
}
h3 a {
   text-decoration: none;
   color: var(--dark);
}
h3 a:hover {
   color: var(--color2);
}


/* -------------------------------------------------------------------------------------------------------------------- 
   2. Header
*/
header.wp-block-group {
   background-color: transparent;
   padding: 0;
}
#header-container {
   height: var(--header-height-full);
   display: flex;
   justify-content: space-between;
   align-items: center;
}
#headerleft {
   flex-grow: 0;
   flex-shrink: 1;
   position: relative;
   flex-basis: 300px;
   display: flex;
   align-items: center;
}
#headerright {
   flex-grow: 1;
}
#logo-block {
   width: 20vw;
   max-width: 300px;
   min-width: 200px;
   height: fit-content;
}
header #logo {
   display: block;
   aspect-ratio: 3.2336;
}
header #logo figure {
   width: 100%;
   height: 100%;
   background: url(images/logo.svg) center center no-repeat;
   background-size: contain;
}
header #bycompakto {
   aspect-ratio: 12.138;
   background: url(images/by-Compakto.svg) center center no-repeat;
   background-size: contain;
   margin: 0;
}
.has-hero-vid header:not(.sticky) #logo figure {
   background-image: url(images/logo-wh.svg);
}
.has-hero-vid header:not(.sticky) #bycompakto {
   background-image: url(images/by-Compakto-wh.svg);
}
header #logo img:hover {
   /* Make black SVG coloured on hover. Generate filter @ https://angel-rs.github.io/css-color-filter-generator/ */
   /*filter: brightness(0) saturate(100%) invert(100%) sepia(96%) saturate(2%) hue-rotate(153deg) brightness(111%) contrast(101%); */
}
/* make header appear on top of hero video */
.has-hero-vid header {
   position: absolute;
   top: 0;
   width: 100%;
   z-index: 10;
   border-bottom: 1px solid rgba(255,255,255,0.18);
   background: linear-gradient(0deg,rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%) no-repeat;
}

/* --------------------------------------------------------------------------------------------------------------------
   3. Sticky Header
*/
/* The sticky class is added to the header with JS when it reaches its scroll position */
#header-sticky.sticky {
   position: fixed;
   top: 0;
   width: 100%;
   z-index: 10;
   /*height: var(--sticky-height);*/
   box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.1);
   background-color: rgba(255,255,255,0.9);
}
#header-sticky.sticky a {
   color: #000;
}
#header-sticky.mobile-menu-open {
   /*position: static;*/
   height: auto;
}
#header-sticky.sticky #header-container {
   max-height: var(--sticky-height);
}
#header-sticky.sticky #bycompakto {
   display: none;
}
#header-sticky.mobile-menu-open #header-container {
   max-height: var(--header-height-mobile-full);
}
.admin-bar #header-sticky,
.admin-bar.has-hero-vid #header-sww {
   top: 32px;
}
@media screen and (max-width: 782px) {
   .admin-bar #header-sticky {
      top: 46px;
   }
}
@media screen and (max-width: 600px) {
   .admin-bar #header-sticky {
      top: 0;
   }
}

#header-sticky.sticky #headertext {
   display: none;
}
/* Add some top padding to the page content to prevent sudden quick movement (as the header gets a new position at the top of the page (position:fixed and top:0) */
/* this should be equal to the initial header height */
#header-sticky.sticky + * {
   XXXpadding-top: var(--header-height-full);
}


/* --------------------------------------------------------------------------------------------------------------------
   4. Navigation Menus
*/
nav {
   text-align: center;
}
#topnav {
   float: right;
   clear: right;
   line-height: 30px;
}
nav a {
   margin: 0 var(--sp2);
   padding: 5px 0;
   text-decoration:none;
   font-weight: normal;
   font-size: var(--m);
   display: inline-block;
   color: var(--dark);
   transition: all 0.4s ease;
}
.has-hero-vid header:not(.sticky, .mobile-menu-open) #topnav a {
   color: white;
}
#topnav li.current_page_item > a,
#topnav li.current-page-ancestor > a {
   color: var(--color1);
}
#topnav a {
   position: relative;
}
#topnav a::before {
   height: 5px;
   position: absolute;
   content: '';
   transition: all 0.4s ease;
   background-color: var(--color1);
   width: 0;
   top: 0;
   left: 0;
}
#topnav a:hover::before,
#topnav .current_page_item > a::before,
#topnav .current-page-ancestor > a::before {
   width: 100%;
}
#topnav li:first-child a {
   padding-left: 0;
   margin-left: 0;
}
#topnav li:last-child a {
   padding-right: 0;
   margin-right: 0;
}
nav ul, #subnav ul, footer nav ul {
   list-style: none;
   margin: 0;
   padding: 0;
}
nav li, #subnav li, footer nav li {
   display: inline;
   list-style: none;
   margin: 0;
   padding: 0;
   background: none;
}


/* --------------------------------------------------------------------------------------------------------------------
   5. Dropdown Menu
*/
#topnav ul.sub-menu { 
	display: none; 
	position: absolute; 
	top: 30px;
   left: 0;
	min-width: 150px;
	z-index: 21;
   background-color: white;
   box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1);
   padding: 3px 20px;
}
.sticky #topnav ul.sub-menu { 
   background-color: rgba(250,250,250,0.9);
}
/* second sub level */
#topnav ul.sub-menu ul.sub-menu { 
   position: static;
   padding: 0 0 0 15px;
}
#topnav ul.sub-menu ul.sub-menu a { 
   padding: 0;
   margin: 0;
}
#topnav ul.sub-menu ul.sub-menu a::before { 
   content: " - ";
}
#topnav ul.sub-menu > li.menu-item-has-children > a {
   margin-bottom: 0;
}
#topnav ul.sub-menu li { 
   display: block;
   text-align: left;
}
#topnav ul.sub-menu.open {
	display: block;
}
#topnav ul.sub-menu a {
   opacity: 0.9;
}
#menu-main-menu > li {
	position: relative;
}
#menu-main-menu > li::before { /* to create hover buffer around menu item */
	position: absolute;
   content: '';
   width: 100%;
   height: 60px;
   top: -10px;
   left: 0;
   z-index: -1;
}
#topnav ul.sub-menu li { 
   margin:0;
}
#topnav ul.sub-menu a { 
   display: inline-block;
   padding: 2px 0;
   margin: 10px 0;
}
/*give the dropdowns an indicator arrow */
#topnav ul:not(.sub-menu) > li.menu-item-has-children > a:after {
   font-family: 'icomoon';
	content: '\e90e';
   font-size: 14px;
	display: inline-block;
	padding-left: 10px;
}
.sticky #topnav ul:not(.sub-menu) > li.menu-item-has-children > a:after {
   color: initial;
}
@media screen and (max-width: 700px) {
   #topnav ul:not(.sub-menu) > li.menu-item-has-children > a:after {
      color: initial;
   }
}

/* --------------------------------------------------------------------------------------------------------------------
   6. Lists
*/
ul.is-style-fancy,
ul.is-style-checkmark {
   list-style-type: none;
   padding-left: 20px;
}
ul.is-style-fancy li,
ul.is-style-checkmark li {
   margin: 15px 0;
   padding-left: 30px;
   position: relative;
}
ul.is-style-fancy li::before,
ul.is-style-checkmark li::before {
   font-family: 'icomoon';
   content: '\ea1e';
   color: var(--color1);
   padding-right: 10px;
   position: absolute;
   left: 0;
   top: 3px;
}
ul.is-style-fancy li a {
   text-decoration: none;
}
ul.is-style-fancy li a:hover {
   text-decoration: underline;
}
ul.is-style-checkmark li {
   padding-left: 2rem;
}
ul.is-style-checkmark li::before {
   content: '\ea52';
   top: 4px;
}

/* --------------------------------------------------------------------------------------------------------------------
   7. Blockquotes
*/
blockquote.is-style-fancy {
   position: relative;
}
blockquote.is-style-fancy::before {
   content: "";
   position: absolute;
   display: block;
   width: 100%;
   height: 100%;
   top: 0;
   left: 0;
   background: url(images/quotes.svg) left center no-repeat;
}
.has-dark-background-color blockquote.is-style-fancy {
   background-image: linear-gradient(to right, #191919, rgba(0,0,0,0), rgba(0,0,0,0), rgba(0,0,0,0));
   color: var(--light-grey);
}
.has-dark-background-color blockquote.is-style-fancy-dark::before {
   background: url(images/quotes-dk.svg) left center no-repeat;
}


/* --------------------------------------------------------------------------------------------------------------------
   8. Style classes for use in Editor
*/
/* icons */
.fb-icon::before {
   font-family: 'icomoon';
   content: '\e904';
   display: inline-block;
   padding-right: 6px;
}
.phone-icon::before {
   font-family: 'icomoon';
   content: '\e942';
   display: inline-block;
   padding-right: 6px;
}
.mobile-icon::before {
   font-family: 'icomoon';
   content: '\e91c';
   display: inline-block;
   padding-right: 6px;
}
.mail-icon::before {
   font-family: 'icomoon';
   content: '\e903';
   display: inline-block;
   padding-right: 6px;
}
/* .plain-links */
.plain-links a {
   text-decoration: none;
   color: black;
}
.plain-links a:hover {
   color: var(--color1);
}
/* .box */
.wp-block-group.box,
.wp-block-group.is-style-box {
   border: 1px solid var(--grey-tint);
   box-shadow: 0 0 30px rgba(0,0,0,0.1);
   padding: var(--sp2);
}
/* .hide-mobile */
@media (max-width: 450px) {
   .hide-mobile {
      display: none;
   }
}
/* .features used on Features columns */
.wp-block-group.features .wp-block-columns.has-background {
   padding: 0;
}
.wp-block-group.features .wp-block-columns.has-background .wp-block-column:last-child {
   padding-right: var(--sp5);
}
@media (max-width: 800px) {
   .wp-block-group.features .wp-block-columns:not(.is-not-stacked-on-mobile) {
      flex-wrap: nowrap !important;
   }
   .wp-block-group.features .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
      flex-basis: 50% !important;
      flex-grow: 1 !important;
   }
}
@media (max-width: 450px) {
   .wp-block-group.features .wp-block-columns {
      display: block;
      max-width: 250px;
      margin-left: auto;
      margin-right: auto;
   }
   .wp-block-group.features .wp-block-columns>.wp-block-column {
      width: fit-content;
      margin: auto;
      
   }
   .wp-block-group.features .wp-block-columns>.wp-block-column:last-child {
      padding: 20px !important;
   }
}

/* --------------------------------------------------------------------------------------------------------------------
   9. Sections (Groups)
*/

.wp-block-group.is-style-no-padding {
   padding: 0;
}


/* --------------------------------------------------------------------------------------------------------------------
   10. Columns
*/
@media (max-width: 781px) {
   .wp-block-columns.is-style-2col-image-right {
        flex-direction: column-reverse;
   }
   .wp-block-columns.is-style-2col-image-right .wp-block-column > figure,
   .wp-block-columns.is-style-2col-image-left .wp-block-column > figure {
      max-width: 400px;
      margin:auto;
   }
}


/* --------------------------------------------------------------------------------------------------------------------
   11. Cover Block
*/
.wp-block-cover.topheader {
   padding: 0;
   min-height: clamp(230px, 180px + 13vw, 430px);
}
.wp-block-cover.topheader h1 {
   font-size: var(--xxx);
   color: white;
   padding: 5px 15px;
   display: inline-block;
   text-transform: uppercase;
   text-shadow: 0px 0px 8px rgba(0,0,0,0.5);
}
.wp-block-cover.topheaderplain, .topheaderplain {
   min-height: 200px;
}

/* --------------------------------------------------------------------------------------------------------------------
   12. Call to action
*/
.cta {
   background-size: contain !important;
   background-repeat: no-repeat;
   background-position: 0% 50%;
}
.cta .contents-col {
   width: 75%;
}
.cta .contents {
   width:fit-content;
   margin: auto;
   padding: 15px;
}
@media screen and (max-width: 1600px) {
   .cta {
      background-position-x: -100px;
   }
}
@media screen and (max-width: 1200px) {
   .cta {
      background-position-x: -230px;
   }
}
@media screen and (max-width: 782px) {
   .cta {
      background-image: none !important;
   }
}


/* --------------------------------------------------------------------------------------------------------------------
   15. Hero Video
*/
#hero {
   padding: 0;
   position: relative;
   z-index: 1;
   background-color: var(--dark);
}
#hero .video-wrapper {
   position: relative;
   aspect-ratio: 16/9;
   min-height: 200px;
   max-height: 100vh;
   overflow: hidden;
   width: 100%;
}
#hero .video-wrapper iframe {
   width: 100vw;
   height: 56.25vw; /* Given a 16:9 aspect ratio, 9/16*100 = 56.25 */
   min-height: 100vh;
   min-width: 177.77vh; /* Given a 16:9 aspect ratio, 16/9*100 = 177.77 */
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   z-index: 0;
}
.video-controls {
   position: absolute;
   bottom: 5%;
   right: 5%;
   z-index: 3;
   color: white;
   font-size: 50px;
}
.video-controls div {
   color: white;
   text-decoration: none;
   background-color: rgba(255,255,255,0.3);
   border-radius: 999px;
   width: 100px;
   height: 100px;
   display: block;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   transition: all 0.2s;
}
.video-controls div:hover {
   background-color: rgba(255,255,255,0.4);
   transform: scale(1.2);
}
#vid-overlay-opacity,
#overlay-opacity,
#vid-static-placeholder {
   position: absolute;
   left: 0;
   right: 0;
   width: 100%;
   height: 100%;
   z-index: 1;
   background-color: rgba(0,0,0,0.1);
}
#vid-static-placeholder {
   /* alt image */
   background-repeat: no-repeat;
   background-size: cover;   
}
#header-overlay-text {
   position: absolute;
   left: 0;
   right: 0;
   margin:auto;
   width: 90%;
   max-width: 1200px;
   height: auto;
   bottom: 10%;
   color: white;
   z-index: 2;
   text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}
#header-overlay-text h1,
#header-overlay-text h2,
#header-overlay-text h3,
#header-overlay-text h4,
#header-overlay-text a {
   color: white;
}
#header-overlay-text h3 {
   font-size: var(--xl);
   font-weight: normal;
   letter-spacing: 4px;
}
#header-overlay-text h3 strong {
   background-color: var(--color1);
   color: white;
   padding: var(--sp1) var(--sp3);
   margin-right: var(--sp2);
   font-size: var(--l);
   display: inline-block;
}
#header-overlay-text h3 em {
   display: inline-block;
   font-style: normal;
}
#header-overlay-text h4 {
   font-size: var(--xxx);
   margin-top: 0;
   margin-bottom: 0;
   word-spacing: var(--sp1);
}

@media screen and (max-width: 900px) {
   .video-controls {
      font-size: 30px;
   }
   .video-controls div {
      width: 60px;
      height: 60px;
   }     
}
@media screen and (max-width: 700px) {
   .has-hero-vid header {
      position: static;
      background-color: var(--dark);
   }
   #hero .video-wrapper iframe {
      height: 100%;
      min-height: 200px;
   }
   #vid-overlay-opacity {
      display: none;
   }
   .video #header-overlay-text {
      position: static;
      width: 80%;
      padding-top: 20px;
      padding-bottom: 50px;
   }
}


/* --------------------------------------------------------------------------------------------------------------------
   16. Breadcrumbs
       Remove if not used
*/
.breadcrumbs {
   font-size: var(--xs);
   background-color: var(--grey-tint);
   padding: 7px 0;
}
.breadcrumbs a {
   text-decoration: none;
}


/* --------------------------------------------------------------------------------------------------------------------
   17. Buttons and more links
*/





/* --------------------------------------------------------------------------------------------------------------------
   20. Footer
*/
footer {
   background: var(--dark);
   color: #fff;
   overflow: hidden;
   font-size: var(--sm);
}
#footer-container {
   padding: 100px 0;
}
#footerlogo {
   text-align: center;
}
#footerlogo img {
   width: 350px;
   height: auto;   
   padding: 0; 
   z-index: 10;
}
footer h4 {
   color: #fff;
   margin-bottom: 5px;
}
footer a {
   color: #fff;
   text-decoration:none;
}
.footercols {
   display: flex;
}
.footercol {
   flex-basis: 33.33%;
}
.footercol .contact-menu {
   width: fit-content;
   float: right;
}
footer nav.nav ul {
   list-style-type: none;
   padding-left: 20px;
}
footer nav li {
   display: block;
   padding: 0 0 0 30px;
   margin: 5px 0;
   position: relative;
   text-align: left;
   line-height: 1.5em;
}
.footercol .contact-menu li {
   margin: 15px 0;
}
footer nav.nav li::before {
   font-family: 'icomoon';
   content: '\ea1e';
   color: white;
   padding-right: 10px;
   position: absolute;
   left: 0;
   top: 3px;
   opacity: 0.25;
}

footer nav li a {
   font-size: 20px;
   padding: 0;
   margin: 0;
   font-weight: normal;
}
footer nav li.current_page_item::before,
footer nav li:hover::before {
   opacity: 1;
}
footer .phone {
   font-size: 24px;
   font-weight: bold;
   margin: 1em 0;
}
footer .email {
   font-size: 20px;
   font-weight: bold;
   margin: 1em 0;
}
footer .social a {
   font-size: 30px;
   display: inline-block;
   margin-right: 15px;
}
#credits {
   text-align: center;
   font-size: 14px;
   color: #999;
   background-color: #000;
   padding: 10px 0;
   width: 100%;
}
#credits a {
   text-decoration: none;
   color: #999;
}
#credits a:hover {
   text-decoration: underline;
}
a.scrollup {
	width: 67px;
	height: 67px;
	position: fixed;
	bottom: 25px;
	right: 25px;
	display: none;
	text-indent: -9999px;
	background: url('images/top.png') no-repeat;
	opacity: 0.3;
}
@media screen and (max-width: 750px) {
   .footercols {
      flex-direction: column;
      text-align: center;
   }
   .footercols ul {
      width: fit-content;
      margin: auto;
   }
   .footercol .contact-menu {
      float: none;
   }
   #footerlogo {
      padding-top: 50px;
      padding-bottom: 50px;
   }
}

/* --------------------------------------------------------------------------------------------------------------------
   21. Gutenberg overrides and workarounds
*/
/* fix for fixed cover background issue on ipad */
@supports (-webkit-touch-callout: inherit) {
   .wp-block-cover .has-parallax {
      background-attachment: scroll !important;
   }
}
.wp-block-cover {
   overflow: hidden;
}
main .wp-block-cover .wp-block-cover__image-background {
   margin: auto;
}
.wp-block-spacer {
   margin: 0 !important;
}

/* --------------------------------------------------------------------------------------------------------------------
   22. Other
*/
/* hide Google recaptcha badge */
div.grecaptcha-badge {
    visibility: hidden; 
} 
p.recaptchanote {
    font-size: 14px;
    text-align: center; 
}
.pum-container strong {
   font-weight: 600;
}
/* --------------------------------------------------------------------------------------------------------------------
   R. Responsive Elements
*/

/* R1. Defaults: computer monitors, tablets in landscape, standard and large screens (typically wider than 1024px), old browsers */
#mobile-menu-btn { display: none; }
img {
   max-width: 100%; 
   height: auto; 
}
   
/* R2. MEDIUM-WIDE SCREEN */
/* width 900px - 1200px */
@media screen and (max-width: 1200px) {


}

/* R3. MEDIUM-SMALL SCREEN */
/* width 700px - 1000px */
@media screen and (max-width: 1000px) {	
   header #header-container {
      flex-direction: column;
      align-items: stretch;
      height: var(--header-height-mobile-full);
   }
   #headerleft {
      height: var(--header-height-mobile-full);
      width: 90%;
      margin-left: auto;
      margin-right: auto;
      flex-basis: auto;
      flex-shrink: 0;
      display: flex;
      align-items: center;
   }   
   #topnav {
      background-color: #fff;
   }
   #header-sticky.sticky #headerleft {
      height: var(--sticky-height);
   }
   #header-sticky.sticky + * {
      padding-top: var(--header-height-mobile-full);
   }
   #header-container {
      width: 100%;
   }
   #mobile-menu-btn { 
      display: inline-block;
      width: 32px;
      height: 32px;
      padding: 4px;
      cursor: pointer;
      position: absolute;
      top: -60px;
      right: 30px;
   }
   #mobile-menu-btn::after { 
      font-family: 'icomoon';
      content: '\e910';
      font-size: 36px;
      color: #000;
      display: inline-block;
   }
   .has-hero-vid header:not(.sticky) #mobile-menu-btn::after {
      color: white;
   }   
   header.mobile-menu-open #mobile-menu-btn::after {
      content: '\e911';
   }   
   #topnav { 
      float: none; 
      width: auto; 
      clear: both;
      position: relative;
      z-index: 9999;
   }
   #topnav a::before { 
      display: none;
   }   
   #header-sticky.sticky #topnav {
      padding-top: 0;
   }   
   #topnav .menu { 
      padding-bottom: 15px;
   }
   #topnav ul { display:none; }
   #topnav ul#menu-main-menu.open {  
     width: 100%;  
     display: block;  
     height: auto;  
     padding-top: 0;
     margin-top:0;
     box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.1);
   }  
   #topnav li {  
     width: auto;  
     float: none;  
     position: relative;  
   }  
   #topnav li a {  
     display: block;
     margin: 0;
     padding: 6px 0px;
     text-align: left;  
     width: 100%;  
     text-indent: 25px;  
     line-height: 30px;
     border-left: 15px solid rgba(250,250,250,0.05);
   }
   #topnav a:hover, #topnav li.current_page_item > a {
      border-left: 15px solid var(--color1);
   }
   #topnav ul.sub-menu { 
      display: block; 
      position: static; 
      background-color: transparent !important;
      padding: 3px 10px;
      box-shadow: none;
   }
   #topnav ul.sub-menu a {
      margin: 0 0 0 10px;
      padding: 0;
   }
   #topnav ul li.menu-item-has-children > a:after {
      content: '';
      padding: 0;
   }

}

/* R4. SMALL SCREEN */
/* width 320px - 700px */
@media screen and (max-width: 700px) {	

}
