/*
    Theme Name: Sperling Starter
    Theme URI: https://www.sperlinginteractive.com
    Description: Sperling Interactive WordPress Starter Theme
    Version: 1.0
    Author: Sperling Interactive
  Theme URI: https://www.sperlinginteractive.com
*/

/*------------------------------------*\
    Example of Using Root Variable 
    :root {
        --blue: #0000FF          
    }
    .test-element {
        color: var(--blue)
    }
\*------------------------------------*/

:root {
}

/* global box-sizing */
*,
*:after,
*:before {
    box-sizing: border-box;
    font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* html element 62.5% font-size for REM use */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    color: #000000;
    font: 400 17px/1.8 var(--body-font);
    font: 400 1.7rem/1.8 var(--body-font);
    padding: 30px 20px;
    background-color: var(--bg-color);
}

/* clear */
.clear:before,
.clear:after {
    content: " ";
    display: table;
}

.clear:after {
    clear: both;
}

.clear {
    zoom: 1;
}

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

/* Lightspeed Lazy load fade in */
img[data-lazyloaded] {
    opacity: 0;
}

img.litespeed-loaded {
    -webkit-transition: opacity 0.5s linear 0.2s;
    -moz-transition: opacity 0.5s linear 0.2s;
    transition: opacity 0.5s linear 0.2s;
    opacity: 1;
}

a {
    text-decoration: underline;
    color: inherit;
}

a:hover {
    opacity: 0.7;
}

a:focus {
    outline: 0;
}

a:hover,
a:active {
    outline: 0;
}

input:focus {
    border: 1px solid #04a4cc;
    outline: 0;
}

p,
ul,
ol {
    font-size: 1.7rem;
    line-height: 1.8;
}

h1 {
    font-size: 3.6rem;
    font-family: "custom_header_font", var(--body-font);
}

h2 {
    font-size: 3.2rem;
    font-family: "custom_header_font", var(--body-font);
}

h3 {
    font-size: 2.8rem;
    font-family: "custom_header_font", var(--body-font);
}

h4 {
    font-size: 2.4rem;
    font-family: "custom_header_font", var(--body-font);
}

h5 {
    font-size: 2rem;
    font-family: "custom_header_font", var(--body-font);
}

h6 {
    font-size: 1.6rem;
    font-family: "custom_header_font", var(--body-font);
}

blockquote {
    margin: 25px 0;
    padding: 25px 0 25px 5vw;
    font-style: italic;
    border-top: 1px solid;
    border-bottom: 1px solid;
    font-weight: 700;
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/
/* wrapper */
.wrapper {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
    position: relative;
    width: 100%;
    max-width: 1300px;
    border-radius: 20px;
    overflow: hidden;
    background-color: white;
}

main {
    flex: 1 auto;
    width: 100%;
    height: 100%;
}

.container {
    max-width: 1280px;
    align-self: center;
    flex: 1 auto;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    align-self: center;
    flex: 1 auto;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    padding: 0 20px;
}

.container-thin {
    max-width: 1100px;
    align-self: center;
    flex: 1 auto;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    padding: 0 20px;
}

/* header */
.header {
}

.logo-img {
    backface-visibility: hidden;
    max-height: 250px;
    width: auto;
}

.logo-container {
    padding-right: 50px;
}

.header .nav.desktop-nav {
    display: none;
}

.header .nav.mobile-nav {
    display: block;
}

.header .side-content form {
    padding: 5px 10px;
    border: solid 1px #dadada;
    border-radius: 30px;
}

.header .side-content form input {
    border: 0 !important;
}

.header .side-content form button {
    color: var(--accent-color);
    background-color: transparent;
    border: 0;
}

.header .side-content form button:hover {
    color: #0c8e80;
}

.header .side-content i {
    margin-left: 20px;
    font-size: 32px;
}

.header .side-content p,
.header .side-content ul {
    font-size: 26px;
}


/* nav */
.nav {
    background-color: var(--main-color);
}

.nav > .container > ul {
    display: flex;
    padding: 0;
    list-style: none;
    justify-content: space-between;
    margin-bottom: 0;
    margin: 0;
}

.nav.mobile-nav  > .container > ul {
    justify-content: center;
}

.nav > .container > ul li {
    margin: 0;
    display: inline-block;
    position: relative;
}

.nav > .container > ul > li {
    min-height: 60px;
}

/* animated lines */
.nav > .container > ul > li > a {
    font-size: 1.6rem;
    line-height: 1.6em;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    padding: 0px;
    /*padding: 10px 0px;*/
    margin: 0px 10px;
    margin: 0;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    opacity: 1;
}

.nav > .container > ul > li > a:hover {
    /* color: var(--accent-color); */
    color: white;
    opacity: 0.7;
}

.nav > .container > ul > li > a::before {
    transition: opacity 300ms ease-in-out;
    height: 5px;
    /*height: 100%;*/

    content: "";
    position: absolute;
    background-color: var(--accent-color);

    width: 100%; /* added this because client wanted them to show lines at all times */
    opacity: 0;
}

.nav > .container > ul > li > a::before {
    /* width: 0%;*/ /* removed this because client wanted them to show lines at all times */
    bottom: 0;
    left: 0;
}

.nav > .container > ul > li > a:hover::before {
    width: 100%;
    opacity: 1;
}

.nav li:hover ul.sub-menu {
    /* display: block; */
    /* animation */
    visibility: visible;
    opacity: 1;
    filter: alpha(opacity=100);
}

.nav li ul.sub-menu ul.sub-menu {
    /* display: none; */
    left: 149%;
    top: 0;
}

.nav li:hover ul.sub-menu ul.sub-menu {
    /* display: none; */
    left: 149%;
    top: 0;
    /* animation */
    position: absolute;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transition: 300ms ease;
    -moz-transition: 300ms ease;
    -o-transition: 300ms ease;
    transition: 300ms ease;
}

.nav ul.sub-menu li:hover ul.sub-menu {
    /* display: block; */
    left: 159%;
    top: -8px;
    /* animation */
    visibility: visible;
    opacity: 1;
    filter: alpha(opacity=100);
}

ul.sub-menu {
    background: #ffffff;
    border-radius: 4px;
    width: 225px;
    text-align: left;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    font-size: 1.4rem;
    /* display: none; */
    z-index: 100;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
    /*  border-bottom: solid 5px #243F70;*/
    /* animation */
    position: absolute;
    visibility: hidden;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transition: 300ms ease;
    -moz-transition: 300ms ease;
    -o-transition: 300ms ease;
    transition: 300ms ease;
    padding: 10px;
}

.nav > .container > ul > li:first-child > ul.sub-menu {
    left: 0;
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
}

.nav > .container > ul > li:last-child > ul.sub-menu {
    left: auto;
    right: 0;
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
}

.sub-menu li {
    padding: 0px;
}

.sub-menu a {
    font-size: 1.6rem;
    font-weight: normal;
    color: #707070;
}

.sub-menu a:hover {
    font-size: 1.6rem;
    font-weight: normal;
    /*color: #243F70;*/
}

ul.sub-menu a {
    display: block;
    padding: 5px 10px;
}

ul.sub-menu li {
    display: block !important;
}

ul.sub-menu > li.menu-item-has-children > a {
    position: relative;
}

ul.sub-menu > li.menu-item-has-children > a::after {
    font-family: "Font Awesome 5 Pro";
    content: "\f054";
    display: inline;
    margin-left: 10px;
    position: absolute;
}

/* current item handling */
.nav > .container > ul > .current-menu-item > a,
.nav > .container > ul > .current-menu-parent > a,
.nav > .container > ul > .current-menu-ancestor > a {
    /* color: var(--accent-color); */
    color: white;
}

.nav > .container > ul > .current-menu-item > a::before,
.nav > .container > ul > .current-menu-parent > a::before,
.nav > .container > ul > .current-menu-ancestor > a::before {
    width: 100%;
    bottom: 0;
    left: 0;
    /*    height: 100%;
  content: "";
  position: absolute;
  background-color: #d0f5f1;*/
    opacity: 1;
}

.sub-menu > .current-menu-item > a,
.sub-menu > .current-menu-parent > a,
.sub-menu a:hover {
    background-color: #d0f5f1;
}

/* sidebar */
.sidebar {
}

/* footer */
.footer {
    background: #eee;
    padding: 20px;
    margin-top: 60px;
}

.pagination {
    font-size: 1.6rem;
}

.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    height: auto;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/*------------------------------------*\
    PAGES
\*------------------------------------*/

/* Home */
/* .home-slider,
.home-slider .slick-list,
.home-slider .slick-track {
    height: 100%;
} */

.homepage-slider img {
    border-radius: 10px;
}

.homepage-info-box {
    border-radius: 10px;
    background-color: var(--accent-color);
    color: inherit;
    margin-bottom: 20px;
    padding: 20px;
}

.homepage-info-box p,
.homepage-info-box ul,
.homepage-info-box a {
    color: inherit;
}
.homepage-info-box a:not(.button) {
    font-weight: bold;
    text-decoration: underline;
}

.contact-info-box {
    background-color: var(--bg-color);
    color: white!important;
}

/*------------------------------------*\
    BUTTONS
\*------------------------------------*/
.button,
.frm_style_on-color .frm_submit button {
    padding: 10px 26px;
    font-size: 1.5rem;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    transition: all 0.5s ease;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)) top/100% 800%;
    background-color: var(--main-color);
    color: #ffffff!important;
    letter-spacing: 0.5px;
    border: 0;
    border-radius: 4px;
    text-decoration: none;
}

.button.btn-secondary {
    background-color: #074e54;
}

.button:hover {
    color: inherit;
    background-position: 200%;
    color: white;
}

.button.btn-gray {
    background-color: #454545;
    color: #fff;
}

.nav-button a {
    padding: 10px 25px;
    font-size: 1.7rem;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    transition: all 0.5s ease;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)) top/100% 800%;
    background-color: #183d6e;
    color: #ffffff;
    text-transform: uppercase;
    border-radius: 60px;
    border-bottom: 0 !important;
}

.full-btn {
    width: 100%;
}

.corner-btn {
    border-radius: 8px;
}

.large-btn {
    font-size: 20px;
    padding: 15px 50px;
}

.med-btn {
    font-size: 17px;
    padding: 12px 40px;
}

.tiny-btn-text {
    font-size: 1.2rem !important;
    padding: 21px 25px !important;
}

#frm-populate {
    display: none;
}

/*------------------------------------*\
    IMAGES
\*------------------------------------*/

/*------------------------------------*\
    ACF GOOGLE MAP
\*------------------------------------*/

.acf-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 600px;
    border: #ccc solid 1px;
    margin: 20px 0;
}

/* Fixes potential theme css conflict. */
.acf-map img {
    max-width: inherit !important;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/
@media only screen and (min-width: 320px) {
}

@media only screen and (min-width: 480px) {
}

@media only screen and (min-width: 769px) {
}

@media only screen and (min-width: 1024px) {
    .header .nav.desktop-nav {
        display: block;
    }
    .header .nav.mobile-nav {
        display: none;
    }
    .header .side-content {
        font-size: 20px;
        text-align: right;
    }
    .logo-container {
        padding-right: 0px;
    }
}

@media only screen and (min-width: 1140px) {
}

@media only screen and (min-width: 1280px) {
}

/*------------------------------------*\
    MISC
\*------------------------------------*/
::selection {
    background: #04a4cc;
    color: #fff;
    text-shadow: none;
}

::-webkit-selection {
    background: #04a4cc;
    color: #fff;
    text-shadow: none;
}

::-moz-selection {
    background: #04a4cc;
    color: #fff;
    text-shadow: none;
}

/*------------------------------------*\
    GENERIC FORMS
\*------------------------------------*/
#account-form,
#loginform {
    width: 100%;
}

#account-form label,
#loginform label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
#account-form input[type="text"],
#loginform  input[type="text"],
#loginform  input[type="password"]    {
    height: 40px;
    width: 350px;
    max-width: 100%;
    border-radius: 4px;
    border: solid 1px black;
    padding: 5px;
}

.login-box {
    padding: 30px; 
    margin: 20px 0; 
    height: 100%;
    border-radius: 20px;
}


/*------------------------------------*\
    FORMIDABLE
\*------------------------------------*/
.frm_html_container ul > br {
    display: none !important;
}

.frm_section_heading h3 {
    color: var(--main-color)!important;
}

.choice-form .with_frm_style .frm_form_field.frm_html_container,
.choice-form .with_frm_style .frm_form_field.frm_html_container p,
.choice-form .with_frm_style .frm_form_field.frm_html_container ul,
.choice-form .with_frm_style .frm_form_field.frm_html_container ol {
    font-size: 16px!important;
    line-height: 1.6!important;
}

.choice-form .frm_form_field .frm_checkbox, 
.choice-form .frm_form_field .frm_checkbox + .frm_checkbox, 
.choice-form .frm_form_field .frm_radio, 
.choice-form .frm_form_field .frm_radio + .frm_radio {
    margin-top: 5px;
}

.choice-form .choice-bg-block {
    background-color: var(--accent-color);
    box-shadow: inset 0 0 0 2000px rgba(255, 255, 255, 0.85);
    padding: 24px;
    border-radius: 20px;
    border: solid 1px var(--accent-color);
}

.choice-form .choice-bg-block h2,
.choice-form .choice-bg-block h3, 
.choice-form .choice-bg-block h4, 
.choice-form .choice-bg-block h5,
.choice-form .choice-bg-block h6 {
    border: 0!important;
    padding: 0!important;
    font-size: 19px!important;
    line-height: 1.3!important;
}

.choice-form .choice-bg-block img {
    margin: 0!important;
    border-radius: 20px;
}

.choice-form .frm_primary_label span {
    display: none!important;
}

.choice-form .frm_primary_label .frm_required {
    display: inline-block!important;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption .wp-caption-text,
.gallery-caption {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

.sticky {
}

.bypostauthor {
}

/*------------------------------------*\
    ACCENT COLORS and FONTS
\*------------------------------------*/

.main-color {
    color: var(--main-color);
}
.accent-color {
    color: var(--accent-color);
}
.main-background {
    background-color: var(--main-color);
}
.accent-background {
    background-color: var(--accent-color);
}

/*------------------------------------*\
    PRINT
\*------------------------------------*/
@media print {
    * {
        background: transparent !important;
        box-shadow: none !important;
        color: #000 !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }

    .nav,
    .sidebar,
    .home-slider,
    #respond {
        display: none;
    }

    @page {
        margin: 2cm;
    }
}

.itinenary-dates {
    text-align: center;
    margin: 0 0 40px;
    font-weight: 600;
}

.itinenary-content__title {
    text-transform: uppercase;
    margin: 40px 0 20px;
}

.slick-next:before, .slick-prev:before {
    color: #21a2d6;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  }
  
  /* Modal Content (image) */
  .modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
  }
  
  /* Caption of Modal Image */
  #caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
  }
  
  /* Add Animation */
  .modal-content {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
  }
  
  @-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)}
    to {-webkit-transform:scale(1)}
  }
  
  @keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
  }
  
  /* The Close Button */
  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .close:hover,
  .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }