/*
Theme Name: Cross Creek Golf & Country Club
Theme URI: https://dev.snworks.com/whatsnew/wp-content/themes/whatsnew
Author: Synergy Web Design and Marketing - Jisele Tiburcio
Author URI: https://snwebdm.com/
Description: This theme works best with Elementor, although you can also use blocks with it (remove bottom section from functions.php to enable block editor). Recommended plugins: Elementor, Yoast, Contact7, woocommerce, ultimate member
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, block-styles, wide-blocks
Version: 1:012422
Requires at least: 5.0
Tested up to: 5.8.3
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crosscreekgolfandcountryclub
This theme, like WordPress, is licensed under the GPL.
Tested up to: 5.8
Requires PHP: 7.0
*/


h1, h2, h3, {

    font-family: "Montserrat", sans-serif;

}


p {

    font-family: "Montserrat", sans-serif;


}


/*HEADER CSS*/


.site-header {

  background-color:#f7f6f2;




}



.btn-subscribers {
    padding: 10px 15px;
    background-color: #fff;
    color: #0b3f9b;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    text-decoration: none;
    border: 2px solid #000;
    border-radius: 4px;
    font-weight: 500;
}



.btn-subscribers:hover {

    background-color: #00a28e;
    color: #fff;

}




#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {

    font-family: 'Montserrat';
    font-size: 18px;
    font-weight: 500 !important;
}


a.mega-menu-link:hover {

    font-weight: 500 !important;
  }




/* Desktop: logo item sits centered inside the single menu */
@media (min-width: 993px) {
  #mega-menu-wrap-primary #mega-menu-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 172px; /* Compensates for wider text on the right 4 items */
  }

  #mega-menu-wrap-primary #mega-menu-primary > li.cc-logo-item > a.mega-menu-link,
  #mega-menu-wrap-primary #mega-menu-primary > li.mega-cc-logo-item > a.mega-menu-link {
    height: auto;
    line-height: 1;
    padding: 0 40px;
    background: transparent;
  }

  .cc-menu-logo {
    display: block;
    width: 220px;
    max-width: none;
    height: auto;
  }
}


/* Mobile / tablet: hide the in-menu logo, the header logo takes over */
@media (max-width: 992px) {
  #mega-menu-wrap-primary #mega-menu-primary > li.cc-logo-item,
  #mega-menu-wrap-primary #mega-menu-primary > li.mega-cc-logo-item {
    display: none;
  }

  #mega-menu-wrap-primary .mega-menu-toggle {
    justify-content: center;
  }
}


#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
    background-color: #f7f6f2;
    color: #0b3f9b;
    font-family: "Montserrat", sans-serif;
    font-weight: 500 !important;
    padding: 0px 2px;

}

#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator {

    margin: 0 0 0 0px;

}





/**HOVER EFFECT**/



/* Desktop Max Mega Menu - animated centered underline */
@media (min-width: 993px) {

    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        position: relative !important;

        /* Underline */
        background-image: linear-gradient(#3FC387, #3FC387) !important;
        background-repeat: no-repeat !important;
        background-position: center bottom 3px !important;
        background-size: 0% 2px !important;

        transition: background-size 0.3s ease !important;
    }

    /* Hover */
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item:hover > a.mega-menu-link  {
        background-size: calc(100% - 22px) 2px !important;
    }



    /* Logo itself - no hover effect */
    #mega-menu-wrap-primary #mega-menu-primary > li.cc-logo-item:hover > a.mega-menu-link {
        background-image: none !important;
        background-size: auto !important;
    }


 /* Submenu links */
    #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-flyout ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
        position: relative !important;

        background-image: linear-gradient(#3FC387, #3FC387) !important;
        background-repeat: no-repeat !important;
        background-position: center bottom 3px !important;
        background-size: 0% 2px !important;
        padding: 4px 2px;
        transition: background-size 0.3s ease !important;
    }

    /* Submenu hover */
    #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-flyout ul.mega-sub-menu > li.mega-menu-item:hover > a.mega-menu-link {
        background-size: calc(100% - 7px) 2px !important;
    }



}


/*General golf information page - Member golf information section, above golf rules section*/


.cc-handicap-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
}

.cc-handicap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    text-align: left;
}

.cc-handicap-table th {
    background: #2f5d46;
    color: #ffffff;
    font-weight: 600;
    padding: 15px 18px;
}

.cc-handicap-table td {
    padding: 14px 18px;
    color: #0B3F9B;
    font-weight: 500;
    border-bottom: 1px solid #0B3F9B;
}

.cc-handicap-table tbody tr:nth-child(even) {
    background: #transparent;
}


@media (max-width: 600px) {
    .cc-handicap-table {
        font-size: 14px;
        min-width: 420px;
    }
}









   
/*AMENTIIES SECTIONS - HOVER ANIMATION AND APPEARANCE CSS*/




.cc-reveal-wrap {
  margin-top: 16px;
}

.cc-reveal-tile {
  color: #fff;
  transition: transform .3s ease;
}

/* Fallback dark overlay if you skipped Elementor's Overlay tab */
.cc-reveal-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .55;
  transition: opacity .3s ease;
  pointer-events: none;
}

/* Keep all real content above the overlay */
.cc-reveal-tile > * {
  position: relative;
  z-index: 1;
}

.cc-reveal-tag {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8FE3CF;
  margin-bottom: 6px !important;
  transition: transform .3s ease;
}

.cc-reveal-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #fff;
  margin: 0 !important;
  transition: transform .3s ease;
}

/* Move the tag + title up to make room when the description appears */
.cc-reveal-tile:hover .cc-reveal-tag,
.cc-reveal-tile:hover .cc-reveal-title,
.cc-reveal-tile:focus-within .cc-reveal-tag,
.cc-reveal-tile:focus-within .cc-reveal-title {
  transform: translateY(-14px); /*ORIGINAL: -64px*/
}

.cc-reveal-desc {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  margin: 10px 0 0 !important;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.cc-reveal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px !important;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease .05s, transform .3s ease .05s;
  pointer-events: none;
}

.cc-reveal-tile:hover .cc-reveal-desc,
.cc-reveal-tile:hover .cc-reveal-actions,
.cc-reveal-tile:focus-within .cc-reveal-desc,
.cc-reveal-tile:focus-within .cc-reveal-actions {
  transform: translateY(0);
  pointer-events: auto;
}

.cc-btn--sm {
  /*padding: 9px 16px !important; ---not needed*/
  font-size: 13px !important;
}

/* Mobile: hover doesn't exist on touch, so show everything by default */
@media (max-width: 600px) {
  .cc-reveal-tile { min-height: auto !important; }
  .cc-reveal-tile::before { opacity: .78; }
  .cc-reveal-tag,
  .cc-reveal-title { transform: none !important; }
  .cc-reveal-desc,
  .cc-reveal-actions {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}


/****When user hovers on the amentieis card, the description and buttons stay visible.*/








.cc-reveal-tile--pinned .cc-reveal-tag,
.cc-reveal-tile--pinned .cc-reveal-title,
.cc-reveal-tile:hover .cc-reveal-tag,
.cc-reveal-tile:hover .cc-reveal-title,
.cc-reveal-tile:focus-within .cc-reveal-tag,
.cc-reveal-tile:focus-within .cc-reveal-title {
  transform: translateY(-14px);
}

.cc-reveal-tile--pinned .cc-reveal-desc,
.cc-reveal-tile--pinned .cc-reveal-actions,
.cc-reveal-tile:hover .cc-reveal-desc,
.cc-reveal-tile:hover .cc-reveal-actions,
.cc-reveal-tile:focus-within .cc-reveal-desc,
.cc-reveal-tile:focus-within .cc-reveal-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}









/*FOOTER CSS*/


.site-footer {

    background-color: #052761;
    color: #fff;

}

#footer-text {

  color: #fff;




}

/* Text "Home" link: mobile menu only */
@media (min-width: 993px) {
  #mega-menu-wrap-primary #mega-menu-primary > li.cc-home-mobile,
  #mega-menu-wrap-primary #mega-menu-primary > li.mega-cc-home-mobile {
    display: none;
  }
}





/*footer logo*/

.image.wp-image-11.attachment-300x174.size-300x174 {
	max-width: 85% !important;
}




/*social media links*/

.cc-social {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* wpautop injects <br> tags between the links; remove them from layout */
.cc-social br {
  display: none !important;
}

.cc-social a {
  display: inline-flex !important;
  width: auto !important;
  line-height: 0;
}

.cc-social svg {
  display: block;
  width: 36px;
  height: 36px;
  fill: #f7f6f2;
  transition: opacity .2s ease, transform .2s ease;
}

.cc-social a:hover svg,
.cc-social a:focus-visible svg {
  opacity: .8;
  transform: translateY(-2px);
}


/*Nav on Mobile */


/* Cross Creek: Full-width mobile header */
@media screen and (max-width: 991px) {

    header.site-header {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        max-width: 100vw;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        background-color: #f7f6f2;
    }

    header.site-header > .container-fluid {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    header.site-header .row {
        width: 100%;
        margin: 0;
        --bs-gutter-x: 0;
    }

    header.site-header .row > [class*="col-"] {
        padding-right: 0;
        padding-left: 0;
    }

    header.site-header .cc-logo-mobile {
        width: 100%;
        margin: 0;
        padding: 8px 12px 10px;
        box-sizing: border-box;
        text-align: center;
    }

    header.site-header .cc-logo-mobile img {
        display: block;
        width: 180px;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    header.site-header .cc-nav-wrap,
    header.site-header #mega-menu-wrap-primary,
    header.site-header #mega-menu-wrap-primary
    .mega-menu-toggle {
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        border-radius: 0;
        box-sizing: border-box;
    }
}



/* Cross Creek: Fix mobile header overlapping the hero video */
@media screen and (max-width: 991px) {

    header.site-header {
        position: relative;
        left: auto !important;
        top: auto !important;
        transform: none !important;

        width: 100vw;
        max-width: 100vw;
        margin: 0 0 0 calc(50% - 50vw) !important;

        z-index: 10;
        box-sizing: border-box;
    }

}





/* VIDEO PLAYBACK HOMEPAGE - DRONE VIDEO & GOLF COURSE */


/* Cross Creek: Responsive homepage hero video */
.cross-creek-hero-video {
    position: relative;
    overflow: hidden;
}

/* Elementor background video container */
.cross-creek-hero-video > .elementor-background-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* YouTube background iframe */
.cross-creek-hero-video
.elementor-background-video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    transform: translate(-50%, -50%);
    border: 0;
}

/* Tablet sizing */
@media (min-width: 768px) and (max-width: 1024px) {
    .cross-creek-hero-video {
        width: 100%;
        max-width: 100%;
        min-height: 60vh;
    }
}




/* Support self-hosted MP4 background videos */
.cross-creek-hero-video
.elementor-background-video-container
.elementor-background-video-hosted {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate(-50%, -50%);
}








/* Footer social icons */
@media (min-width: 993px) {
    .cc-social {
        gap: 16px;
    }
}



/* Tablet */
@media (min-width: 768px) and (max-width: 992px) {
    .btn-subscribers {
        font-size: 17px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .btn-subscribers {
        font-size: 14px;
        padding: 12px 10px;
    }

  
}
