/* ======================================================
   1. GLOBAL OVERFLOW & STICKY SETTINGS
====================================================== */
#masthead {
    position: sticky !important;
    top: 0 !important;
    z-index: 9998 !important;
    overflow: visible !important;
}

/* Strip hidden overflow clipping across all Astra header containers */
#masthead,
#masthead *,
.site-header,
.site-header *,
.ast-primary-header-bar,
.ast-above-header-bar,
.ast-below-header-bar,
.ast-builder-grid-row-container,
.ast-builder-grid-row,
.site-header-section,
.ast-builder-layout-element,
.ast-builder-menu {
    overflow: visible !important;
    clip-path: none !important;
}

.site-content {
    padding-top: 0px !important;
}

/* ======================================================
   2. ROW 1: ANNOUNCEMENT BANNER (FULL VIEWPORT CENTERING)
====================================================== */
#masthead .ast-above-header-bar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.15) 100%), #d4fd42 !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    clear: both !important;
}

/* Neutralize Astra's left/center/right column split so text spans 100% screen width */
#masthead .ast-above-header-bar .ast-builder-grid-row-container,
#masthead .ast-above-header-bar .ast-container,
#masthead .ast-above-header-bar .ast-builder-grid-row,
#masthead .ast-above-header-bar .site-header-section,
#masthead .ast-above-header-bar .site-header-section-left,
#masthead .ast-above-header-bar .site-header-section-center,
#masthead .ast-above-header-bar .site-header-section-right,
#masthead .ast-above-header-bar .ast-grid-col,
#masthead .ast-above-header-bar .ast-builder-layout-element {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    float: none !important;
}

/* Force the text itself to align dead center horizontally */
.occ-top-banner,
#masthead .ast-above-header-bar *,
#masthead .ast-above-header-bar p,
#masthead .ast-above-header-bar span,
#masthead .ast-above-header-bar div {
    color: #0b1f3a !important;          /* Dark Blue Font */
    text-align: center !important;
    line-height: 1.3 !important;
    margin: 0 auto !important;
    width: 100% !important;
    white-space: nowrap !important;     /* Keeps text strictly on one single line */
    display: block !important;

    /* Font Settings */
    font-family: inherit !important;     
    font-size: 14px !important;          
    font-weight: 700 !important;         
    letter-spacing: 0.4px !important;
    text-transform: none !important;
}

/* ======================================================
   3. ROW 2 & 3: NAVIGATION & SOCIAL ROWS (PREVENT OVERLAP)
====================================================== */
/* Primary Header Row */
#masthead .ast-primary-header-bar {
    background-color: #000000 !important;
    background: #000000 !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    min-height: 0 !important;
    position: relative !important;
    z-index: 20 !important;
    margin-top: 0 !important;           /* Stops black bar from pulling up into top banner */
    top: 0 !important;
    clear: both !important;
}

/* Below Header Row (Social Icons) */
#masthead .ast-below-header-bar {
    background-color: #000000 !important;
    background: #000000 !important;
    padding-top: 0px !important;
    padding-bottom: 6px !important;
    min-height: 0 !important;
    position: relative !important;
    z-index: 5 !important;
    margin-top: 0 !important;
}

/* Clear inner grid backgrounds */
#masthead .ast-primary-header-bar *,
#masthead .ast-below-header-bar *,
#masthead .ast-builder-grid-row,
#masthead .site-header-section,
#masthead .ast-builder-menu,
#masthead .main-navigation,
#masthead .ast-grid-col {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    min-height: 0 !important;
}

/* ======================================================
   4. SYMMETRIC LEFT / RIGHT MENU ALIGNMENT & CLEARANCE
====================================================== */
#masthead .ast-primary-header-bar .site-header-section-left,
#masthead .ast-primary-header-bar .site-header-section-right {
    flex: 1 1 50% !important;
    display: flex !important;
    align-items: center !important;
}

/* Left Column clearance */
#masthead .ast-primary-header-bar .site-header-section-left {
    justify-content: flex-end !important;
    padding-right: 128px !important; 
}

/* Right Column clearance */
#masthead .ast-primary-header-bar .site-header-section-right {
    justify-content: flex-start !important;
    padding-left: 128px !important;  
}

/* Force menu containers horizontal */
#masthead .main-header-menu,
#masthead .ast-builder-menu .main-header-menu,
#masthead .site-navigation ul,
#masthead .ast-builder-menu-1 ul,
#masthead .ast-builder-menu-2 ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: auto !important;
}

#masthead .main-header-menu > .menu-item,
#masthead .ast-builder-menu .menu-item {
    display: inline-block !important;
    white-space: nowrap !important;
}

#masthead .main-header-menu > .menu-item > .menu-link,
#masthead .ast-builder-menu .menu-item > .menu-link {
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    padding-top: 12px !important;
    padding-bottom: 2px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

/* ======================================================
   5. RIGHT-JUSTIFY SOCIAL ICONS
====================================================== */
#masthead .ast-below-header-bar .ast-builder-grid-row,
#masthead .ast-below-header-bar .site-header-section,
#masthead .ast-below-header-bar .ast-grid-col {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
}

#masthead .ast-header-social-wrap,
#masthead .ast-header-social-1,
#masthead .ast-social-stack-desktop {
    margin-left: auto !important;
    margin-right: 20px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

#masthead .ast-header-social-wrap *,
#masthead .ast-below-header-bar * {
    color: #ffffff !important;
}

#masthead .ast-builder-grid-row *,
#masthead .site-header-section * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ======================================================
   6. LOGO (EXACT 225px DISPLAY & POSITIONING)
====================================================== */
#masthead .ast-primary-header-bar .site-branding,
#masthead .ast-primary-header-bar .ast-site-identity,
#masthead .site-branding,
#masthead .ast-site-identity {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -15%) !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 180px !important;
    max-width: 180px !important;
    height: auto !important;
    display: block !important;
}

#masthead .site-branding a,
#masthead .ast-site-identity a,
#masthead .site-branding img,
#masthead .ast-site-identity img,
#masthead .custom-logo-link img {
    position: relative !important;
    z-index: 99999 !important;
    width: 180px !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
    background: transparent !important;
}

/* 1. Constrain form container & align input + button side-by-side */
.site-footer form,
#colophon form,
.site-footer .mc4wp-form-fields,
.site-footer .wpforms-container {
    max-width: 380px !important;         /* Controls maximum form width */
    margin-left: auto !important;        /* Pulls form to the right */
    display: flex !important;
    flex-direction: row !important;      /* Places field and button side-by-side */
    gap: 8px !important;                 /* Space between input and button */
    align-items: center !important;
}

/* 2. Email Input Field */
.site-footer input[type="email"],
.site-footer input[type="text"],
#colophon input[type="email"],
#colophon input[type="text"] {
    flex: 1 !important;                  /* Fills remaining available width */
    height: 40px !important;             /* Slimmer height */
    padding: 0 12px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    border: 1px solid #333333 !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;                /* Strips default margins */
}

/* 3. Subscribe Button (Styled with Lime Accent) */
.site-footer input[type="submit"],
.site-footer button[type="submit"],
#colophon input[type="submit"],
#colophon button[type="submit"] {
    height: 40px !important;             /* Matches input field height exactly */
    padding: 0 18px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    background-color: #d4fd42 !important; /* Uses your lime banner accent color */
    color: #0b1f3a !important;           /* Dark blue text */
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    margin: 0 !important;                /* Strips default margins */
    transition: all 0.2s ease !important;
}

/* Button Hover State */
.site-footer input[type="submit"]:hover,
.site-footer button[type="submit"]:hover,
#colophon input[type="submit"]:hover,
#colophon button[type="submit"]:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}
/* ======================================================
   FOOTER MENU EVEN SPACING & ALIGNMENT
====================================================== */

/* 1. Stretch menu list across 100% width with equal spacing */
.site-footer .footer-navigation ul,
.site-footer .ast-builder-menu ul,
.site-footer .widget_nav_menu ul,
#colophon .main-header-menu {
    display: flex !important;
    justify-content: space-between !important; /* Pushes first item left, last item right, spaces rest evenly */
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 2. Clear default item margins so flexbox controls the layout */
.site-footer .footer-navigation li,
.site-footer .ast-builder-menu li,
.site-footer .widget_nav_menu li {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

/* 3. Strip link padding for exact edge-to-edge alignment */
.site-footer .footer-navigation a,
.site-footer .ast-builder-menu a,
.site-footer .widget_nav_menu a {
    padding-left: 0 !important;
    padding-right: 0 !important;
 padding-top: 10 !important;

	white-space: nowrap !important;
}
/* ======================================================
   MOVE FOOTER MENU DOWN
====================================================== */
.site-footer .footer-navigation ul,
.site-footer .ast-builder-menu ul,
.site-footer .widget_nav_menu ul {
    margin-top: 18px !important; /* Adjust this number to nudge it higher or lower */
}
/* ======================================================
   FOOTER MENU FONT STYLING (Cormorant Garamond)
====================================================== */
.site-footer .footer-navigation a,
.site-footer .ast-builder-menu a,
.site-footer .widget_nav_menu a {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 20px !important;       /* Adjust size if needed (e.g., 15px - 18px) */
    font-weight: 600 !important;      /* Options: 400 (Regular), 600 (Semi-Bold), 700 (Bold) */
    letter-spacing: 0.5px !important;  /* Gives serif fonts subtle breathing room */
}
/* ======================================================
   ALIGN SOCIAL ICONS & SUBSCRIBE BOX TO FAR RIGHT
====================================================== */

/* 1. Force the right-hand footer column to align all items to the right */
.site-footer .site-footer-section-2,
.site-footer .site-footer-section-3,
.site-footer .ast-footer-widget-2,
.site-footer .ast-footer-widget-3,
.site-footer .ast-builder-grid-row-cell:last-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;   /* Pushes all stacked items inside to the right */
    text-align: right !important;
}

/* 2. Push social icons to the far right edge */
.site-footer .ast-header-social-wrap,
.site-footer .ast-footer-social-wrap,
.site-footer .ast-footer-social-1,
.site-footer .ast-social-stack-desktop {
    margin-left: auto !important;
    margin-right: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
}

/* 3. Ensure subscribe form sits flush against the right edge */
.site-footer form,
#colophon form,
.site-footer .mc4wp-form-fields,
.site-footer .wpforms-container {
    margin-left: auto !important;
    margin-right: 0 !important;
}
/* ======================================================
   PULL SUBSCRIBE FORM UPWARD & TRIM VERTICAL SPACING
====================================================== */

/* 1. Pull the form up (adjust negative margin as needed) */
.site-footer form,
#colophon form,
.site-footer .mc4wp-form-fields,
.site-footer .wpforms-container {
    margin-top: -90px !important;  /* Make more negative (e.g., -20px) to pull HIGHER */
    margin-bottom: 0 !important;
}

/* 2. Strip default top margins & padding from Astra footer widgets */
.site-footer .ast-footer-widget-2,
.site-footer .ast-footer-widget-3,
.site-footer .widget,
.site-footer .ast-builder-layout-element {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* 1. Prevent horizontal scrollbars */
html, body {
    overflow-x: hidden;
}

/* 2. FULL-WIDTH BREAKOUT + HEIGHT CONTROL (Eliminates side gaps & limits height) */
.ast-single-entry-banner,
.ast-page-header-wrap {
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    max-width: 100vw !important;
    
    /* Height Control */
    max-height: 280px !important; /* Change this number to adjust height */
    min-height: auto !important;
    overflow: hidden !important;
    
    /* Forces CSS Background Images to pin to the top edge */
    background-position: top center !important;
    background-size: cover !important;
}

/* 3. REMOVE INNER PADDING & STRETCH CONTAINERS */
.ast-single-entry-banner .ast-container,
.ast-page-header-wrap .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

/* 4. PIN IMAGE TAGS TO THE TOP (Trims strictly off the bottom) */
.ast-single-entry-banner img,
.ast-page-header-wrap img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 280px !important; /* Match your height above */
    object-fit: cover !important;
    object-position: top center !important; /* Anchors top edge, clips bottom */
    display: block !important;
}

/* 1. Prevent horizontal scrolling without breaking sticky elements */
html, body {
    overflow-x: clip !important;
}

/* 2. STICKY HEADER (Desktop Only) - Preserves layout height & announcement bar */
@media (min-width: 922px) {
    .site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
    }
}

/* 3. FULL-WIDTH BREAKOUT & HEIGHT CONTROL FOR BANNER */
.ast-single-entry-banner,
.ast-page-header-wrap {
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 280px !important;
    min-height: auto !important;
    overflow: hidden !important;
    background-position: top center !important;
    background-size: cover !important;
}

/* 4. REMOVE INNER PADDING */
.ast-single-entry-banner .ast-container,
.ast-page-header-wrap .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 5. BANNER IMAGE CROPPING (Pins to top, trims off bottom) */
.ast-single-entry-banner img,
.ast-page-header-wrap img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 280px !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
}