/*
Theme Name:     GOTB Child Theme
Theme URI:      https://geeksonthebeach.ca
Description:    GOTB Master
Author:         Geeks On The Beach
Author URI:     https://geeksonthebeach.ca
Template: Divi
Version:        4.1
*/
/* This file was modified 2020-05-06 by Aspen Grove Studios to customize metadata in header comment */

/* =Theme customization starts here
------------------------------------------------------- */

/*** Responsive Styles Large Desktop And Above ***/
@media all and (min-width: 1405px) {
}
/*** Responsive Styles Standard Desktop Only ***/
@media all and (min-width: 1100px) and (max-width: 1405px) {
}
/*** Responsive Styles Tablet And Below ***/
@media all and (max-width: 980px) {
}
/*** Responsive Styles Tablet Only ***/
@media all and (min-width: 768px) and (max-width: 980px) {
}
/*** Responsive Styles Smartphone Only ***/
@media all and (max-width: 767px) {
}
/*** Responsive Styles Smartphone Portrait ***/
@media all and (max-width: 479px) {
}

/* ------------- 1. general styles ------------- */

h1, h2, h3, h4, h5, h6 {overflow-wrap: normal;}

:focus-visible {
    outline: 2px solid #ad2a43;
    outline-offset: 2px;
} 

sup {
    position: relative;
    top: -0.5em;
    font-size: 12px;
    margin-right: 2px;
}

/* ------------- a. Gravity contact form ------------- */

.gform_wrapper ul.gform_fields li {
    list-style: none;
}
.gform_wrapper ul.gform_fields {
    padding-left: 0 !important;
}
.gform_wrapper .hidden_label label {
    display: none;
}
.gform_wrapper input[type=text],
.gform_wrapper input[type=email],
.gform_wrapper input[type=tel],
.gform_wrapper textarea,
.gform_wrapper select {
    border-radius: 0px !important;
    background-color: #fff;
    color: inherit;
    font-family: sans-serif;
    border: 0;
    padding: 10px !important;
    border: 1px solid #eeeeee;
}
.gform_wrapper.gravity-theme .gfield_label {
    display: inline-block;
    font-size: 15px;
    font-weight: normal;
    margin-bottom: 3px;
    padding: 0;
}
.gform_wrapper input[type=email]:focus {
    border: 1px solid #eeeeee;
}
.gform_wrapper input[type=text]::placeholder,
.gform_wrapper input[type=email]::placeholder,
.gform_wrapper input[type=tel]::placeholder,
.gform_wrapper textarea::placeholder,
.gform_wrapper select::placeholder {
    color: inherit;
    font-family: inherit;
}
.gform_wrapper .gform_footer {
    text-align: right;
}
.gform_wrapper input[type=submit] {
	border: 0;
    background-color: #333333;
    color: #ffffff;
    font-family: inherit;
    text-transform: uppercase;
    font-weight: inherit;
    font-size: inherit;
    transition-duration: .3s;
    border-radius: 0px;
    padding: 8px 28px;
    cursor:pointer;
}
.gform_wrapper input[type=submit]:hover {
    transition-duration: .3s;
    opacity:0.9;
}
.gform_legacy_markup_wrapper .gform_footer {
    margin: 0px 0 0;
}
/* grow icons effect */
.mp_m_blurb_grow:hover .et_pb_image_wrap {
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}
.mp_m_blurb_grow:hover .et_pb_image_wrap {
    -webkit-transform: scale(1.3) translateZ(0);
    transform: scale(1.3) translateZ(0);
}
/* ------------- 3. Nav Menu ------------- */
/** #####  CALL TO ACTION BUTTON in the menu item  ##### 
/* Desktop & tablet, call to action menu */
.menu_cta {
    background-color: #fff;
    color: #212121;
    border: 1px solid #212121;
    padding: 0 !important;
    border-radius: 25px;
}
.menu_cta a {
    color: #212121 !important;
    padding: 11px 20px 13px 20px !important;
}
/* Mobile call to action menu */
@media (max-width: 980px) {
    .menu_cta {
        margin: 20px 40px 20px;
    }
    .menu_cta a {
        text-align: center;
}}

/* ##### DROPDOWN MENU WIDTH ##### */
.nav li ul {
    width: 300px !important; /* Width of the dropdown menu */
}
.nav li li ul {
    left: 300px !important; /* Use the same size as above */
}
#top-menu li li a {
    width: 260px; /* Make this 40 less then the width of the dropdown menu */
}
/* remove the hover grey when current on dropdown-menu */
.nav ul li a:hover {opacity: 1; background-color: rgba(0, 0, 0, 0);}

.et-menu li li a {
    padding: 6px 15px;
    width: 260px;
}
.et_pb_menu .et-menu-nav>ul ul {
padding: 10px 0;} 


/* ------------- 4. Events Calendar mobile fixes ------------- */

@media (max-width: 767px) {
    /* Day numbers — all dates */
    .tribe-events-calendar-month__day-date,
    .tribe-events-calendar-month__day-date-daynum {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }
    /* Day cells — reduce padding so numbers aren't clipped */
    .tribe-events-calendar-month__day-cell {
        padding: 4px !important;
    }
    /* Column headers */
    .tribe-events-calendar-month__header-column-title {
        font-size: 11px !important;
    }
}

/* ------------- 4b. Breadcrumbs ------------- */

.fnrg-breadcrumbs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888888;
    text-decoration: none;
}

.fnrg-breadcrumbs a:hover {
    color: #ad2a43;
}

.fnrg-bc-arrow {
    font-size: 15px;
    line-height: 1;
}

/* ------------- 4c. Funder logo gallery ------------- */

.et_pb_gallery_0 .et_pb_gallery_image {
    overflow: visible !important;
    padding-bottom: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.et_pb_gallery_0 .et_pb_gallery_image a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
}

.et_pb_gallery_0 .et_pb_gallery_image img {
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 140px !important;
}

/* ------------- 4d. Content ------------- */

/* Vertically Center Text in 2 columns - Make equal heights check */

.et_pb_equal_columns >.et_pb_column {
margin-top:auto;
margin-bottom:auto;
}
li {padding-bottom: 0.4em;}

a {text-underline-offset: 2px;}

/* ------------- 5. Header scaling ------------- */

@media (max-width: 1463px) {
    .et_pb_row.custom-auto-row {
        gap: 0 !important;
        justify-content: flex-start !important;
    }

    .et_pb_row.custom-auto-row > .et_pb_column {
        flex-shrink: 1 !important;
    }

    /* Scale logo down as viewport shrinks */
    .dsm_mega_menu_0_tb_header .dsm-logo-link,
    .dsm_mega_menu_0_tb_header .dsm-logo-wrap {
        width: clamp(160px, 18vw, 300px) !important;
    }

@media (min-width: 981px) and (max-width: 1166px) {
    .dsm_mega_menu_0_tb_header .dsm-logo-link,
    .dsm_mega_menu_0_tb_header .dsm-logo-wrap {
        width: clamp(120px, 12vw, 180px) !important;
    }

    .et_pb_row.custom-auto-row .et_pb_button {
        font-size: clamp(10px, 0.9vw, 13px) !important;
        padding: 6px clamp(10px, 1.2vw, 20px) !important;
    }

}

    .dsm_mega_menu_0_tb_header .dsm-logo-wrap img {
        width: 100% !important;
        height: auto !important;
    }

    /* Pull menu left, remove padding between logo and menu items */
    .dsm_mega_menu_0_tb_header .dsm-mega-menu-container {
        justify-content: flex-start !important;
    }

    .dsm_mega_menu_0_tb_header .dsm-root-menu {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    /* Shrink menu item font size and padding */
    .dsm_mega_menu_0_tb_header .dsm-root-menu .dsm-mega-menu-item > a {
        font-size: clamp(11px, 1.55vw, 18px) !important;
        letter-spacing: 0 !important;
        padding-left: clamp(4px, 0.6vw, 16px) !important;
        padding-right: clamp(4px, 0.6vw, 16px) !important;
    }

    .dsm_mega_menu_0_tb_header .dsm-root-menu .dsm-mega-menu-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Pull donate button left, shrink it */
    .et_pb_row.custom-auto-row .et_pb_button_module_wrapper {
        text-align: left !important;
    }

    .et_pb_row.custom-auto-row .et_pb_button {
        font-size: clamp(12px, 1vw, 16px) !important;
        padding: 8px clamp(16px, 2vw, 47px) !important;
        text-align: center !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .et_pb_row.custom-auto-row .et_pb_button::after {
        display: none !important;
    }
}

/* ------------- 6. Mobile menu dots button ------------- */

/* Teal pill button — fixed size, never changes shape */
.dsm-mobile-menu-open-button-container .dsm-mega-menu-open-button {
    background: #226171 !important;
    border-radius: 40px !important;
    padding: 13px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border: none !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 10002 !important;
    overflow: visible !important;
}

/* Hide any DSM-injected icon content */
.dsm-mobile-menu-open-button-container .dsm-mega-menu-open-button > *:not(.fnrg-dots-btn) {
    display: none !important;
}

/* Dots wrapper — 20×20px fixed, never changes size */
/* 4px dots, 4px gap: 4+4+4+4+4 = 20px wide/tall */
.fnrg-dots-btn {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* All dots: absolutely positioned white circles */
.fnrg-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Closed: 3 horizontal dots centred vertically at top = (20-4)/2 = 8px */
.fnrg-dot:nth-child(1) { left: 0px;  top: 8px; opacity: 1; }
.fnrg-dot:nth-child(2) { left: 8px;  top: 8px; opacity: 1; }
.fnrg-dot:nth-child(3) { left: 16px; top: 8px; opacity: 1; }
/* Dots 4 + 6: hidden, stacked on dots 1 + 3 */
.fnrg-dot:nth-child(4) { left: 0px;  top: 8px; opacity: 0; }
.fnrg-dot:nth-child(5) { left: 8px;  top: 8px; opacity: 0; } /* unused */
.fnrg-dot:nth-child(6) { left: 16px; top: 8px; opacity: 0; }

/* Open: 5-dot X pattern
     (0,0)    (16,0)
          (8,8)
     (0,16)   (16,16)  */
.fnrg-is-open .fnrg-dot:nth-child(1) { transform: translateY(-8px); }
/* dot 2 stays at centre */
.fnrg-is-open .fnrg-dot:nth-child(3) { transform: translateY(-8px); }
.fnrg-is-open .fnrg-dot:nth-child(4) { transform: translateY(8px); opacity: 1; }
/* dot 5 stays hidden */
.fnrg-is-open .fnrg-dot:nth-child(6) { transform: translateY(8px); opacity: 1; }

/* Circular spin — container rotates while dots transition */
@keyframes fnrg-spin-open {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes fnrg-spin-close {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}
.fnrg-dots-btn.fnrg-spin-open  { animation: fnrg-spin-open  0.4s ease; }
.fnrg-dots-btn.fnrg-spin-close { animation: fnrg-spin-close 0.4s ease; }

/* Hide DSM's own X close button — we handle close via the hamburger */
.dsm-mega-menu-close-button {
    display: none !important;
}

/* Extra padding above the menu list */
.dsm-mega-menu-container.mobile-menu .dsm-root-menu {
    padding-top: 20px !important;
}

/* Left-align mobile menu nav links */
.dsm-mega-menu-container.mobile-menu .dsm-root-menu,
.dsm-mega-menu-container.mobile-menu .dsm-mega-menu-item,
.dsm-mega-menu-container.mobile-menu .dsm-mega-menu-link {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Mobile submenu: hidden by default, shown when parent has fnrg-open */
.dsm-mega-menu-container.mobile-menu .dsm-submenu-container {
    display: none !important;
}
.dsm-mega-menu-container.mobile-menu .dsm-mega-menu-item-root.fnrg-open > .dsm-submenu-container {
    display: block !important;
}

/* Menu panel: starts shifted up + invisible, slides down on open */
.dsm-mega-menu-container.mobile-menu {
    transform: translateY(-20px) !important;
    opacity: 0 !important;
    transition: transform 0.35s ease, opacity 0.35s ease !important;
    background: #ffffff !important;
    pointer-events: none !important;
}
.dsm-mega-menu-container.mobile-menu.fnrg-slide-in {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Mobile layout (≤ 980px) */
@media (max-width: 980px) {
    /* Hide donate button column */
    .et_pb_column_12_tb_header {
        display: none !important;
    }

    /* Fixed header bar — logo left, hamburger right, always on top */
    .dsm-mobile-menu-open-button-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 20px !important;
        box-sizing: border-box !important;
        z-index: 10001 !important;
    }
    /* Logo sizing in mobile header */
    .dsm-mobile-menu-open-button-container .dsm-logo-link,
    .dsm-mobile-menu-open-button-container .dsm-logo-wrap {
        width: clamp(100px, 28vw, 160px) !important;
    }
    .dsm-mobile-menu-open-button-container .dsm-logo-wrap img {
        width: 100% !important;
        height: auto !important;
    }

    /* Offset skip-link jump target so it isn't hidden under the fixed header bar */
    #main-content {
        scroll-margin-top: 70px;
    }

    /* Full-viewport menu panel, below the fixed header bar */
    .dsm-mega-menu-container.mobile-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-height: 100vh !important;
        padding-top: 70px !important;
        box-sizing: border-box !important;
        z-index: 9999 !important;
    }
}

/* ------------- 7. Event social share buttons ------------- */

.fnrg-share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid #eeeeee;
}

.fnrg-share-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666666;
    margin-right: 4px;
}

.fnrg-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    text-decoration: none !important;
    color: #ffffff !important;
    background: #ad2a43;
    transition: opacity 0.2s ease;
}

.fnrg-share-btn:hover {
    opacity: 0.85;
}

.fnrg-share-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    flex-shrink: 0;
}

.fnrg-share-btn span {
    display: none;
}

.fnrg-share-facebook,
.fnrg-share-x,
.fnrg-share-whatsapp,
.fnrg-share-linkedin { background: #ad2a43; }

/* ------------- 8. Event venue map ------------- */

.fnrg-event-map {
    margin-top: 32px;
    margin-bottom: 8px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eeeeee;
}

.fnrg-event-map iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

/* ------------- 9. Skip to main content link ------------- */

.fnrg-skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    z-index: 100000;
    padding: 12px 20px;
    background: #ad2a43;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 4px;
    transition: top 0.15s ease-in-out;
}

.fnrg-skip-link:focus,
.fnrg-skip-link:focus-visible {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: -4px;
}

/* ------------- 10. Hero video pause/play toggle ------------- */

.et_pb_section_video {
    position: relative;
}

.fnrg-video-toggle {
    position: absolute;
    bottom: 28px;
    right: 28px;
    z-index: 20;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fnrg-video-toggle:hover {
    background: rgba(0, 0, 0, 0.38);
    transform: scale(1.06);
}

.fnrg-video-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.fnrg-video-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

@media all and (max-width: 767px) {
    .fnrg-video-toggle {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
    }

    .fnrg-video-toggle svg {
        width: 14px;
        height: 14px;
    }
}