/*
 Theme Name:   Regla Theme
 Description:  Regla Theme
 Author:       Reykjavik Digital
 Template:     bricks
 Version:      1.0
 Text Domain:  regla
*/


/**
 * FONTS
**/

ul li, ol li {
    line-height: 32px;
}

.brxe-text ul {
    padding-left: 15px;
  }


@media screen and (max-width: 768px) {
    h1, h2 {
        font-size: 32px;
    }
    h3 {
        font-size: 26px;
    }
    h4 {
        font-size: 18px;
    }    
}

/**
 * HEADER
**/

header {
    z-index: 998;
}

/* Small desktop */
@media screen and (min-width: 991px) and (max-width: 1300px) {

    #brxe-mywmiy {
        margin-right: 5px;
    }

    header .bricks-button {
        font-size: 12px;
    }
    :where(.brxe-nav-menu) .bricks-nav-menu li {
        font-size: 14px;
    }

}

@media screen and (max-width: 1180px) {
    header .main-header-button {
        display: none;
    }
    
}

/* Bricks mobile menu toggle – remove blue focus ring */
.bricks-mobile-menu-toggle:focus,
.bricks-mobile-menu-toggle:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Notifcation bar */
.top-bar {
    background-color: #cfef50;
}
.top-bar .brxe-container {
    flex-direction: row;
    align-items: center;
    min-height: 72px;
}

.top-bar .top-bar-icon {
    margin-right: 24px;
}
.top-bar .top-bar-icon i, .top-bar .top-bar-close i {
    font-size: 24px;
}
.top-bar .top-bar-text {
    font-weight: 700;
    margin-right: 37px;
}
.top-bar .top-bar-button a {
    font-weight: 700;
    color: #04564c;
}

.top-bar .top-bar-close {
    flex-grow: 1;
    text-align: right;
}

@media screen and (max-width: 768px) {
    .top-bar .brxe-container {
        padding: 10px 15px;
    }
    .top-bar .top-bar-icon {
        margin-right: 8px;
    }
    .top-bar .top-bar-icon i, .top-bar .top-bar-close i {
        font-size: 18px;
    }
    .top-bar .top-bar-text {
        margin-right: 10px;
    }
    .top-bar .top-bar-text, .top-bar .top-bar-button a {
        font-size: 14px;
    }
    .top-bar-button > a {
        border: 0;
        padding: 0;
        border-radius: 0;
        border-bottom: 2px solid #04564c;
    }
    .top-bar-button > a > svg{
        display: none !important;
    }
}

/**
 * MAIN MENU
**/
.bricks-nav-menu > li > a {
  position: relative;
}

.bricks-nav-menu > li > a::after,
.bricks-nav-menu .brx-submenu-toggle:after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 5px;
  background: currentColor;
  transform: scaleY(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.bricks-nav-menu > li > a:hover::after,
.bricks-nav-menu > li.current-menu-item > a::after,
.bricks-nav-menu .brx-submenu-toggle:hover:after {
  transform: scaleY(1);
}

.bricks-button svg {
    position: relative;
    left: 0;
    transition: left 0.3s ease;
}

.bricks-button:hover svg {
    left: 5px;
}

/* Submenu */
@media screen and (min-width: 768px) {
	ul.brx-submenu-positioned {
		padding: 24px 24px;
		margin-top: 20px;
	}
    
    ul.brx-submenu-positioned li a {
        padding-bottom: 4px !important;
        color: #fff !important;
        font-size: 16px !important;
        justify-content: left !important;
        padding-left: 12px !important;
    }
}

.brx-nav-nested-items .brxe-dropdown {
    gap: 10px;
}

.brx-nav-nested-items .brxe-dropdown a {
    padding-left: 6px !important;
}


/* Megamenu inner container */
.brx-megamenu .brxe-container {
  position: relative;
}

/* Megamenu & dropdown element effect */
.brx-megamenu .brxe-text a,
.bricks-nav-menu .sub-menu > li.bricks-menu-item > a {
	text-decoration: none;
    transition: color 0.3s ease;
}

.brx-megamenu .brxe-text a:hover,
.bricks-nav-menu .sub-menu > li.bricks-menu-item.current_page_item > a,
.bricks-nav-menu .sub-menu > li.bricks-menu-item > a:hover {
  color: #cfef50 !important;
}

.custom-bricks-menu a:hover,
.custom-bricks-menu a[aria-current="page"] {
    color: #cfef50 !important;
}

.custom-bricks-menu a::after {
    height: 0px !important;
}

.custom-bricks-menu li {
    line-height: 36px;
}

/* Mobile hide */
@media (max-width: 991px) {
  .brx-megamenu .brxe-container::before {
    display: none;
  }
}


/* WPML Language Switcher */
.lsw {
    position: relative;
    display: inline-flex;
}

.lsw__trigger {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.lsw__icon {
    width: 24px;
    height: 24px;
    display: block;
    margin-top: 3px;
}

.lsw__dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 140px;
    padding: 8px;
    margin: 0;
    list-style: none;
    background: #06564c;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .15s ease;
    z-index: 9999;
    border: 1px solid #fff;
}

.lsw:hover .lsw__dropdown,
.lsw:focus-within .lsw__dropdown,
.lsw.is-open .lsw__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lsw__dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}

.lsw__link {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    color: #ECFBDB;
    font-weight: 700;
    text-align: center;
}

/* Mobile language switcher */
.wpml-ls-legacy-list-horizontal, .wpml-ls-legacy-list-horizontal a {
    padding-left: 0;
}
.wpml-ls-legacy-list-horizontal a {
    font-size: 22px;
    font-weight: 700;
    padding-top: 14px;
}

/**
 * GLOBALS
**/

/* Image radius */
.blogroll-br8 img {
    border-radius: 8px;
}

/* Image with background layer */
.image-offset-bg {
    position: relative;
    display: inline-block;
}
.image-offset-bg:after {
    content: "";
    position: absolute;
    top: 24px;
    left: 24px;
    width: 100%;
    height: 100%;
    background: #CFEF50;
    border-radius: 12px;
    z-index: 0;
}
.image-offset-bg img {
    display: block;
    position: relative;
    z-index: 1;
}

/* Word break */
.break-word {
    word-break: break-word;
}

.motion-slide .bricks-video-preview-image {
    transition: transform 0.3s ease-in-out;
}

/* Scale preview image when hovering over video overlay */
.brxe-video .bricks-video-preview-image {
    transition: transform 0.3s ease-in-out;
}

.brxe-video:hover .bricks-video-preview-image {
    transform: scale(1.05);
}

/**
 * TABLES
**/

 .tablepress>:where(thead,tfoot)>tr>th {
    background-color: unset;
    font-size: 20px;
    color: #04564C;
    padding-bottom: 24px;
    font-weight: 700;
}

.tablepress thead>tr>th:first-child .dt-column-header {
    padding-left: 28px;
}
.tablepress thead>tr>th:last-child .dt-column-header {
    padding-right: 32px;
}

.tablepress>:where(tbody.row-striping)>:nth-child(odd of :where(:not(.child,.dtrg-group)))>td {
    background-color: #ECFBDB;
}

.tablepress>:where(tbody.row-striping)>:nth-child(even of :where(:not(.child,.dtrg-group)))>td {
    background-color: unset;
}

.tablepress>:where(thead)+tbody>:where(:not(.child)) td, .tablepress>tbody>*~:where(:not(.child)) td {
    padding-top: 14px;
    padding-bottom: 14px;
}
.tablepress>:where(tbody.row-striping) td:first-child {
    padding-left: 32px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.tablepress>:where(tbody.row-striping) td:last-child {
    padding-right: 32px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.tablepress>:where(thead)+tbody>:where(:not(.child)) td,
.tablepress>tbody>*~:where(:not(.child)) td {
    border-top: none;
}

.tablepress>:where(thead)+tbody>:where(:not(.child)) td,
.tablepress>tbody>*~:where(:not(.child)) td {
    color: #04564C !important;
    font-weight: 700;
    font-size: 14px;
}
.tablepress>:where(thead)+tbody>:where(:not(.child)) td .subtext,
.tablepress>tbody>*~:where(:not(.child)) td .subtext {
    font-weight: 400;
}

.tablepress>.row-hover>tr:has(+.child:hover)>td,
.tablepress>.row-hover>tr:hover+:where(.child)>td,
.tablepress>.row-hover>tr:where(:not(.dtrg-group)):hover>td {
    background-color: inherit;
    color: unset;
}

/* Mobile wrapper */
.tablepress-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
}

/* @media screen and (max-width: 768px) {
    header > section > .brxe-container {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
} */

/**
Home
**/

.fp-h1 {
    font-size: 72px;
}
@media screen and (max-width: 1180px) {
    .fp-h1 {
        font-size: 64px;
        line-height: 1.2;
    }
}
@media screen and (max-width: 768px) {
    .fp-h1 {
        font-size: 48px;
        line-height: 1.1;
    }
}

@media screen and (max-width: 576px) {
    .fp-h1 {
        font-size: 38px;
    }
}





/**
 * PRICING TABLE
**/

/* Ribbon */
.pricing-card[data-ribbon]:not([data-ribbon=""])::before {
    content: attr(data-ribbon);
	position: absolute;
    top: 27px;
    right: -38px;
    width: 160px;
    text-align: center;
    transform: rotate(45deg);
    font-weight: 500;
    font-size: 16px;
    padding: 3px 0;
    z-index: 999;
    background: #004C3F;
    color: #ECFBDB;
}


/**
 * CF7
**/
.wpcf7 .input, .wpcf7 input:not([type=submit]), .wpcf7 select, .wpcf7 textarea {
    border-color: #06564c;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #06564c;
}

.wpcf7 input::placeholder, .wpcf7 textarea::placeholder {
  color: #8da19e;
}

.wpcf7 textarea {
    margin-bottom: 0;
}

.wpcf7 input[type=submit] {
    cursor: pointer;
    background-color: #cfef50;
    color: #04564c;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: none;
    border: none;
    padding: 8px 30px;
}