/* ==============================================================
   GLOBAL TYPOGRAPHY — unified, easy to adjust
   ============================================================== */

/* Base font for all text elements */
body,
button,
input,
select,
textarea {
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
                 sans-serif !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
    font-weight: 300 !important;
}

/* Headings — global hierarchy */
h1 {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 700 !important;
    font-size: 48px !important;
    line-height: 1.2 !important;
}

h2 {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 600 !important;  /* premium, stronger H2 */
    font-size: 36px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.5px !important;
}

/* GLOBAL H3 — tuned to sit correctly under the stronger H2 */
h3 {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 550 !important;   /* stronger, but not competing with H2 */
    font-size: 24px !important;    /* slight bump for clarity */
    line-height: 1.32 !important;  /* tighter, more premium geometry */
    letter-spacing: 0.3px !important;
}


h4 {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    line-height: 1.4 !important;
}

h5 {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 500 !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
}

h6 {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
}


/* Paragraphs and list items */
p,
li {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 300 !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
}

/* Strong/emphasis still respect hierarchy */
strong, b {
    font-weight: 600 !important;
}

em, i {
    font-style: italic !important;
}

/* /* ==============================================================
   UPPER FOOTER (footer-widgets) — charcoal premium finish
   ============================================================== */

.footer-widgets,
.footer-widgets .wrap,
.footer-widgets .widget {
    background-color: #111111 !important;   /* charcoal */
    color: #ffffff !important;
}

/* Footer widget headings */
.footer-widgets h2,
.footer-widgets h3,
.footer-widgets h4 {
    color: #ffffff !important;
}

/* Footer links */
.footer-widgets a {
    color: #ffffff !important;
    font-weight: 500 !important;
}

.footer-widgets a:hover {
    color: #d0e6ff !important;   /* soft blue hover */
}

/* ==============================================================
   FP1 HERO — remove ALL extra top padding on mobile
   ============================================================== */

@media (max-width: 768px) {

    /* Remove theme padding */
    .front-page-1,
    .front-page-1 .image-section,
    .front-page-1 .widget-area {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Remove Genesis widget padding */
    .front-page-1 .widget {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Remove pseudo-element padding */
    .front-page-1 .image-section::before {
        padding-top: 0 !important;
        margin-top: 0 !important;
        height: auto !important;
    }

    /* Force the hero to start immediately */
    .front-page-1 .image-section {
        padding-top: 32px !important;   /* controlled, minimal */
        padding-bottom: 48px !important;
    }
}

/* ==============================================================
   FP2 — Force H2 to match global weight (600)
   ============================================================== */

.front-page-2 h2 {
    font-weight: 600 !important;
}
.front-page-2 h3 {
    font-weight: 550 !important;
}

/* ==============================================================
   EXISTING WORKING CUSTOM CSS (LAYOUT, CARDS, FP SECTIONS)
   ============================================================== */

/*
==============================================================
GLOBAL / LEGACY CUSTOMISATIONS (KEPT)
==============================================================
*/

@media only screen and (max-width: 800px) {
    .one-third-center {
        margin: 0;
        width: 100%;
    }
}

.team-content {
    padding: 0 0 25px !important;
}

.entry-header::after {
    padding-bottom: 10px !important;
}

/* Background boxes for FP4 */
#text-86 { background: rgba(2,116,189,0.8); }
#text-88 { background: rgba(127,28,106,0.8); }
#text-87 { background: rgba(204,202,201,0.8); }
#text-85 { background: rgba(86,143,15,0.8); }

/* Blog styling */
.display-posts-listing .listing-item { clear: both; }
.display-posts-listing img {
    float: left;
    margin: 0 10px 10px 0;
    padding: 10px;
}

.pt-cv-title a { font-weight: 600; }
.pt-cv-title { font-size: 20px; }
.pt-cv-content, .pt-cv-content * { font-size: 16px; }

.btn-success {
    color: #ffffff;
    background-color: #0274bd;
    border-color: #0274bd;
}

/* Footer */
.footer-widgets .wrap {
    padding-bottom: 25px;
    padding-top: 25px;
}

.footer-widgets .widget { margin-bottom: 0; }

/* Popup */
.popmake.theme-2557 > .popmake-close { display: none; }
.popmake.theme-2557 p { margin: 5px; }
.popmake.theme-2557 input { padding: 5px; }
.popmake.theme-2557 { max-height: 100%; }

/*
==============================================================
FRONT PAGE 2 — LAYOUT ONLY (NO TYPOGRAPHY, NO EXTRA PADDING)
==============================================================
*/

/* Left align FP2 content */
.front-page-2 .fp2-why-optimal {
    text-align: left !important;
}

.front-page-2 .fp2-grid,
.front-page-6 .fp2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px !important;
    max-width: 1100px;
    margin: 0 auto;
}


/* Responsive */
@media (max-width: 900px) {
    .front-page-2 .fp2-grid,
    .front-page-6 .fp2-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .front-page-2 .fp2-grid,
    .front-page-6 .fp2-grid {
        grid-template-columns: 1fr;
    }
}

/*
==============================================================
FRONT PAGE 3 — LAYOUT ONLY (NO TYPOGRAPHY, NO EXTRA PADDING)
==============================================================
*/

/* Remove table layout */
#front-page-3 .image-section {
    display: block !important;
    height: auto !important;
}

#front-page-3 .image-section .widget-area {
    display: block !important;
    text-align: left !important;
    vertical-align: top !important;
    padding: 0 !important;
}

/* FP3 cards */
#front-page-3 .widget {
    background: rgba(0,0,0,0.35) !important;
    padding: 16px !important;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    backdrop-filter: blur(2px);
    text-align: left !important;
    margin-bottom: 24px;
}

/* FP3 grid */
#front-page-3 .widget-area {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    padding: 0 !important;
}

/*
==============================================================
FRONT PAGE 7 — LAYOUT ONLY (NO TYPOGRAPHY, NO EXTRA PADDING)
==============================================================
*/

/* Neutralise theme floats */
#front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text,
#front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text > .widget-wrap {
    float: none !important;
    width: 100% !important;
    clear: none !important;
    margin: 0 !important;
    display: block !important;
    box-sizing: border-box;
}

/* Flex layout */
#front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
}

/* Header full width */
#front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text:nth-of-type(1) {
    flex: 0 0 100% !important;
}

/* Three equal columns */
#front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text:nth-of-type(2),
#front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text:nth-of-type(3),
#front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text:nth-of-type(4) {
    flex: 0 0 calc(33.333% - 24px) !important;
}

/* FP7 cards */
#front-page-7 .widget {
    background: rgba(0,0,0,0.35) !important;
    padding: 16px !important;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    backdrop-filter: blur(2px);
}

/* FP7 text stays white */
#front-page-7,
#front-page-7 .widget,
#front-page-7 .widget * {
    color: #ffffff !important;
}

/* ==========================================================
   REMOVE TABLE LAYOUT FROM ALL FRONT-PAGE IMAGE SECTIONS
   (This restores automatic height behaviour)
   ========================================================== */

.front-page-1 .image-section,
.front-page-3 .image-section,
.front-page-5 .image-section,
.front-page-7 .image-section {
    display: block !important;
    table-layout: auto !important;
}

.front-page-1 .image-section .widget-area,
.front-page-3 .image-section .widget-area,
.front-page-5 .image-section .widget-area,
.front-page-7 .image-section .widget-area {
    display: block !important;
    vertical-align: top !important;
    text-align: left !important;
}

/* ==========================================================
   FORCE-REMOVE TABLE LAYOUT FROM ALL IMAGE-SECTIONS
   (This restores automatic height behaviour)
   ========================================================== */

.front-page-1 .image-section,
.front-page-5 .image-section,
.front-page-7 .image-section {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}

.front-page-1 .image-section .widget-area,
.front-page-5 .image-section .widget-area,
.front-page-7 .image-section .widget-area {
    display: block !important;
    vertical-align: top !important;
    text-align: left !important;
}

/* Unified vertical padding for all image sections on the front page */

.front-page-1 .image-section,
.front-page-3 .image-section,
.front-page-5 .image-section,
.front-page-7 .image-section {
    padding-top: 62px !important;
    padding-bottom: 62px !important;
}

.front-page-5 .image-section,
.front-page-7 .image-section {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

/* FP5 – header full width, three boxes in thirds */
.front-page-5 .flexible-widgets.widget-thirds .widget:first-child {
    float: none;
    width: 100%;
    clear: both;
}

/* All widgets after the header = thirds */
.front-page-5 .flexible-widgets.widget-thirds .widget:nth-of-type(n+2) {
    float: left;
    width: 31.6239%;
    margin-left: 2.564%;
}

.front-page-5 .flexible-widgets.widget-thirds .widget:nth-of-type(2) {
    margin-left: 0;
}

/* FP5 — Shading for ALL widgets including header */
.front-page-5 .flexible-widgets.widget-thirds .widget {
    background: rgba(0,0,0,0.35) !important;
    padding: 24px !important;
    border-radius: 12px !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25) !important;
    box-sizing: border-box !important;
}

==============================================================
   MOBILE FIX — stack FP3, FP5, FP6, FP7 cards vertically
   ============================================================== */

@media (max-width: 768px) {

    /* FP3 grid collapses to 1 column */
    #front-page-3 .widget-area {
        grid-template-columns: 1fr !important;
    }

    /* FP5, FP6, FP7 — remove floats and forced widths */
    .front-page-5 .flexible-widgets.widget-thirds .widget,
    
    .front-page-7 .flexible-widgets.widget-thirds .widget {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* FP7 flex layout collapses cleanly */
    #front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap {
        flex-direction: column !important;
    }

    #front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text {
        flex: 0 0 100% !important;
    }
}
/* ==============================================================
   GLOBAL MOBILE SYSTEM — typography, spacing, cards, FP1 hero
   ============================================================== */

@media (max-width: 768px) {

    /* -----------------------------------------
       MOBILE TYPOGRAPHY — H1 / H2 / H3
       ----------------------------------------- */

    h1 {
        font-size: 32px !important;
        line-height: 1.25 !important;
    }

    h2 {
        font-size: 28px !important;
        line-height: 1.28 !important;
    }

    h3 {
        font-size: 20px !important;
        line-height: 1.32 !important;
    }

    p, li {
        font-size: 16px !important;
        line-height: 1.55 !important;
    }


    /* -----------------------------------------
       MOBILE CARD PADDING — FP3 / FP5 / FP6 / FP7
       ----------------------------------------- */

    #front-page-3 .widget,
    .front-page-5 .flexible-widgets.widget-thirds .widget,
    #front-page-7 .widget {
        padding: 18px !important;
        border-radius: 12px !important;
    }


    /* -----------------------------------------
       MOBILE STACKING — FP3 / FP5 / FP6 / FP7
       ----------------------------------------- */

    /* FP3 grid → 1 column */
    #front-page-3 .widget-area {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

   

    /* FP7 flex → column */
    #front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap {
        flex-direction: column !important;
        gap: 18px !important;
    }

    #front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text {
        flex: 0 0 100% !important;
    }


    /* -----------------------------------------
       UNIFIED MOBILE SPACING — FP3 / FP5 / FP6 / FP7
       ----------------------------------------- */

    #front-page-3 .widget,
    .front-page-5 .flexible-widgets.widget-thirds .widget,
   
    #front-page-7 .widget {
        margin-bottom: 24px !important;
    }

    .front-page-5,

    #front-page-7,
    #front-page-3 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }


    /* -----------------------------------------
       FP1 HERO — mobile layout fix
       ----------------------------------------- */

    .front-page-1 .image-section {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
        text-align: left !important;
    }

    .front-page-1 h1 {
        font-size: 34px !important;
        line-height: 1.25 !important;
        margin-bottom: 16px !important;
    }

    .front-page-1 p {
        font-size: 18px !important;
        line-height: 1.55 !important;
        margin-bottom: 24px !important;
    }

    /* FP1 hero button spacing */
    .front-page-1 .button,
    .front-page-1 a.button {
        margin-top: 12px !important;
        padding: 14px 24px !important;
        font-size: 16px !important;
    }
}
/* ==============================================================
   FP1 HERO — reduced top padding on mobile
   ============================================================== */

@media (max-width: 768px) {
    .front-page-1 .image-section {
        padding-top: 32px !important;   /* reduced from 80px */
        padding-bottom: 48px !important; /* still balanced */
    }
}
/* ==============================================================
   FP1 HERO — remove ALL extra top padding on mobile
   ============================================================== */

@media (max-width: 768px) {

    /* Remove theme padding */
    .front-page-1,
    .front-page-1 .image-section,
    .front-page-1 .widget-area {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Remove Genesis widget padding */
    .front-page-1 .widget {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Remove pseudo-element padding */
    .front-page-1 .image-section::before {
        padding-top: 0 !important;
        margin-top: 0 !important;
        height: auto !important;
    }

    /* Force the hero to start immediately */
    .front-page-1 .image-section {
        padding-top: 32px !important;   /* controlled, minimal */
        padding-bottom: 48px !important;
    }
}
/* ==============================================================
   UNIFIED OVERLAY — FP1, FP3, FP5, FP7
   Lightened charcoal gradient overlay above background images
   ============================================================== */

.front-page-1 .image-section::before,
.front-page-3 .image-section::before,
.front-page-5 .image-section::before,
.front-page-7 .image-section::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1 !important;

    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.32) 0%,   /* lighter top */
        rgba(0,0,0,0.18) 100%  /* lighter bottom */
    ) !important;

    pointer-events: none !important;
}



/* Ensure FP7 text sits above the overlay */
.front-page-1 .image-section .widget-area,
.front-page-3 .image-section .widget-area,
.front-page-5 .image-section .widget-area,
.front-page-7 .image-section .widget-area {
    position: relative !important;
    z-index: 2 !important;
}

/* FP6 — MATCH FP2 GRID & CLEAN LAYOUT */

}

/* Remove all legacy FP6 styling */
.front-page-6 .widget,
.front-page-6 .widget * {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove FP6 overlay */
.front-page-6 .image-section::before {
    background: none !important;
}

/* FP6 spacing (match FP2 rhythm) */
.front-page-6 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* MOBILE — collapse to 1 column */
@media (max-width: 768px) {
    .front-page-6 .fp6-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
/* ==============================================================
   FP6 — REMOVE ALL THEME WIDGET SPACING & WRAPPERS
   ============================================================== */

/* Remove Genesis widget padding inside FP6 */
.front-page-6 .widget,
.front-page-6 .widget-wrap {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove Altitude Pro flexible-widgets spacing */
.front-page-6 .flexible-widgets.widget-thirds {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove spacing applied to the wrap container */
.front-page-6 .flexible-widgets.widget-thirds .wrap {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove spacing between widgets (even though there is only one) */
.front-page-6 .flexible-widgets.widget-thirds .widget {
    margin: 0 !important;
}

/* Ensure FP6 section matches FP2 vertical rhythm */
.front-page-6 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}
/* ==============================================================
   FP6 — HARD ALIGN TO FP2 STRUCTURE
   ============================================================== */

/* Kill all wrapper spacing inside FP6 */
.front-page-6 .flexible-widgets.widget-thirds,
.front-page-6 .flexible-widgets.widget-thirds .wrap,
.front-page-6 .widget,
.front-page-6 .widget-wrap,
.front-page-6 .textwidget {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* Make the inner content behave like FP2 */
.front-page-6 .textwidget {
    max-width: 1100px;
    margin: 0 auto;
}

/* FP6 grid — identical to FP2, but anchored to the actual HTML */
.front-page-6 .textwidget .fp6-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

/* Items left-aligned, like FP2 */
.front-page-6 .textwidget .fp6-item {
    text-align: left;
}

/* Section padding to match FP2 rhythm */
.front-page-6 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .front-page-6 .textwidget .fp6-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
/* ==============================================================
   FINAL FIX — FP6 + FP5 MOBILE
   ============================================================== */

/* FP6 — kill all theme layout wrappers */
.front-page-6 .flexible-widgets.widget-thirds,
.front-page-6 .flexible-widgets.widget-thirds .wrap,
.front-page-6 .widget_text,
.front-page-6 .widget-wrap,
.front-page-6 .textwidget {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* FP6 — force grid to apply no matter what wrappers exist */
.front-page-6 .textwidget .fp6-grid,
.front-page-6 .widget_text .fp6-grid,
.front-page-6 .widget-wrap .fp6-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    max-width: 1100px !important;
    margin: 32px auto 0 auto !important;
}

/* FP6 items */
.front-page-6 .fp6-item {
    text-align: left !important;
}

/* FP6 section spacing */
.front-page-6 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* FP6 mobile — collapse to 1 column */
@media (max-width: 768px) {
    .front-page-6 .fp6-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

/* ==============================================================
   FP5 — RESTORE MOBILE STACKING (critical)
   ============================================================== */

@media (max-width: 768px) {

    /* Kill floats and widths */
    .front-page-5 .flexible-widgets.widget-thirds .widget {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: block !important;
    }

    /* Ensure spacing is clean */
    .front-page-5 .flexible-widgets.widget-thirds .widget {
        margin-bottom: 24px !important;
    }
}
/* FP6 — match FP2 breakpoints for grid behaviour */
@media (max-width: 900px) {
    .front-page-6 .fp6-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .front-page-6 .fp6-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==============================================================
   FP6 — FINAL FIX: MATCH FP2 SPACING + FIX MOBILE STACKING
   ============================================================== */

/* 1. Kill the theme's thirds layout at the container level */
.front-page-6 .flexible-widgets.widget-thirds,
.front-page-6 .flexible-widgets.widget-thirds .wrap {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Remove widget spacing that FP2 does not have */
.front-page-6 .widget_text,
.front-page-6 .widget-wrap,
.front-page-6 .textwidget {
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. FP6 grid — identical to FP2 */
.front-page-6 .fp6-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    max-width: 1100px !important;
    margin: 32px auto 0 auto !important; /* FP2 spacing */
}

/* 4. FP6 items */
.front-page-6 .fp6-item {
    text-align: left !important;
}

/* 5. FP6 section spacing (match FP2 rhythm) */
.front-page-6 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* 6. FP6 MOBILE — force stacking */
@media (max-width: 768px) {

    /* Kill the theme's thirds layout completely */
    .front-page-6 .flexible-widgets.widget-thirds .widget,
    .front-page-6 .flexible-widgets.widget-thirds .wrap > * {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
    }

    /* Force grid to 1 column */
    .front-page-6 .fp6-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}
/* FP6 — clamp spacing to match FP2 */
.front-page-6 .flexible-widgets.widget-thirds,
.front-page-6 .flexible-widgets.widget-thirds .wrap,
.front-page-6 .widget_text,
.front-page-6 .widget-wrap,
.front-page-6 .textwidget {
    margin: 0 !important;
    padding: 0 !important;
}

.front-page-6 .fp6-grid {
    margin-top: 32px !important;   /* same as FP2 */
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.front-page-6 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}
/* FP2 — remove left indent so grid aligns with H2 */
.front-page-2 .fp2-grid {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
/* ==============================================================
   FP1 — Modern Hero Layout
   ============================================================== */

/* Subtitle under H1 */
.front-page-1 .fp1-subtitle {
    font-size: 22px;
    font-weight: 300;
    margin: 16px 0 28px 0;
    max-width: 700px;
}

/* Three highlight points */
.front-page-1 .fp1-highlights {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    max-width: 900px;
}

.front-page-1 .fp1-point {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

/* Supporting paragraph */
.front-page-1 .fp1-support {
    font-size: 20px;
    line-height: 1.55;
    margin-bottom: 32px;
    max-width: 700px;
}

/* Credibility footer */
.front-page-1 .fp1-credibility {
    font-size: 16px;
    opacity: 0.85;
    margin-top: 24px;
}

/* ==============================================================
   FP1 — Mobile Layout
   ============================================================== */

@media (max-width: 768px) {

    .front-page-1 .fp1-subtitle {
        font-size: 18px;
        line-height: 1.45;
        margin-bottom: 20px;
    }

    .front-page-1 .fp1-highlights {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .front-page-1 .fp1-point {
        font-size: 17px;
        line-height: 1.45;
    }

    .front-page-1 .fp1-support {
        font-size: 17px;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .front-page-1 .fp1-credibility {
        font-size: 15px;
        margin-top: 20px;
    }
}
/* FP1 — Icon container */
.front-page-1 .fp1-icon-svg {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.front-page-1 .fp1-icon-svg svg {
    width: 100%;
    height: 100%;
}

/* FP1 — Highlight row layout */
.front-page-1 .fp1-highlights {
    display: flex;
    gap: 28px;
    margin: 28px 0;
    max-width: 900px;
}

.front-page-1 .fp1-point {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
}

/* FP1 — Mobile layout */
@media (max-width: 768px) {

    .front-page-1 .fp1-highlights {
        flex-direction: column;
        gap: 18px;
        margin: 24px 0;
    }

    .front-page-1 .fp1-icon-svg {
        width: 34px;
        height: 34px;
    }

    .front-page-1 .fp1-point {
        font-size: 17px;
        line-height: 1.45;
    }
}
/* ==============================================================
   FOOTER — Campaign Monitor Inline Form (Premium Styling)
   ============================================================== */

/* Style the submit button */
.site-footer .js-cm-form button[type="submit"] {
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    padding: 14px 28px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    display: inline-block !important;
    margin-top: 12px !important;
}

/* Hover effect */
.site-footer .js-cm-form button[type="submit"]:hover {
    background: rgba(255,255,255,0.85) !important;
    color: #000000 !important;
}

/* Style the input fields */
.site-footer .js-cm-form input[type="text"],
.site-footer .js-cm-form input[type="email"] {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    background: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    margin-bottom: 10px !important;
}

/* Style labels */
.site-footer .js-cm-form label {
    font-size: 15px !important;
    color: #ffffff !important;
    margin-bottom: 4px !important;
    display: block !important;
}
/* Force footer subscribe button styling */
.footer-subscribe-button {
    display: inline-block;
    background-color: #000000 !important;   /* black background */
    color: #ffffff !important;              /* white text */
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid #000000 !important;
}

/* Hover state */
.footer-subscribe-button:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* Match FP1 transparent button inside footer widgets */
.footer-widgets .footer-subscribe-button {
    display: inline-block;
    background-color: transparent !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    border-radius: 6px !important;
    border: 1px solid #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

/* Hover state — FP1 style */
.footer-widgets .footer-subscribe-button:hover {
    background-color: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}
.fp4-button-black {
  background-color: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
}

.fp4-button-black:hover,
.fp4-button-black:focus {
  background-color: #222222 !important;
  border-color: #222222 !important;
  color: #ffffff !important;
}
/* ----------------------------------------------------------
   GLOBAL BUTTON SYSTEM — Optimal Advisory
   All buttons default: black background, white text
----------------------------------------------------------- */

.button,
.button-primary,
a.button,
a.button-primary,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.more-link,
.site-inner a.button,
.widget-area .button,
.footer-widgets .button {
    background-color: #000000 !important;
    border: 1px solid #000000 !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: inline-block !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

.button:hover,
.button-primary:hover,
a.button:hover,
a.button-primary:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.more-link:hover,
.site-inner a.button:hover,
.widget-area .button:hover,
.footer-widgets .button:hover,
.button:focus,
.button-primary:focus {
    background-color: #222222 !important;
    border-color: #222222 !important;
    color: #ffffff !important;
}

/* ----------------------------------------------------------
   FP1 HERO BUTTON — transparent white style
   Altitude Pro front-page 1 section
----------------------------------------------------------- */

.front-page-1 .button,
.front-page-1 a.button,
.front-page-1 .button-primary {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

/* FP1 hover */
.front-page-1 .button:hover,
.front-page-1 a.button:hover,
.front-page-1 .button-primary:hover {
    background-color: rgba(255,255,255,0.15) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}
/* Overlay */
.oa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

/* Modal */
.oa-modal {
  background: #fff;
  max-width: 540px;
  width: 100%;
  border-radius: 8px;
  padding: 32px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: oaFadeIn 0.25s ease-out;
}

@keyframes oaFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Close button */
.oa-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

/* Typography */
.oa-modal-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
}

.oa-modal-intro {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.5;
}

/* Form layout */
.oa-grid {
  display: flex;
  gap: 16px;
}

.oa-grid .oa-field {
  flex: 1;
}

.oa-field {
  margin-bottom: 18px;
}

.oa-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.oa-field input {
  width: 100%;
  padding: 10px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
}

/* Checkbox group */
.oa-checkbox-group > div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

/* Submit button */
.oa-submit {
  background: #003366;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
}

.oa-submit:hover {
  background: #00264d;
}
/* Footer Subscribe Button — Base */
.footer-widgets .footer-subscribe-button {
    display: inline-block;
    background-color: transparent !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    border-radius: 6px !important;
    border: 1px solid #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

/* Hover */
.footer-widgets .footer-subscribe-button:hover {
    background-color: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}
/* ==============================================================
   MODAL — visual styling only (no click / JS changes)
   ============================================================== */

/* Center overlay and give it a soft dim background */
.oa-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;              /* stays controlled by your onclick */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  padding: 20px;
}

/* Modal card */
.oa-modal {
  background: #ffffff;
  max-width: 520px;
  width: 100%;
  border-radius: 10px;
  padding: 32px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

/* Close “×” button */
.oa-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  color: #333;
}

/* Title + intro */
.oa-modal-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
  color: #222;
}

.oa-modal-intro {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.5;
  color: #444;
}

/* Two-column grid for first/last name */
.oa-grid {
  display: flex;
  gap: 16px;
}

.oa-grid .oa-field {
  flex: 1;
}

/* Fields */
.oa-field {
  margin-bottom: 18px;
}

.oa-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

.oa-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background: #fafafa;
}

.oa-field input:focus {
  border-color: #003366;
  outline: none;
  background: #ffffff;
}

/* Checkbox group */
.oa-checkbox-group > div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

/* Submit button */
.oa-submit {
  background: #003366;
  color: #ffffff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
}

.oa-submit:hover {
  background: #00264d;
}

/* Mobile: stack grid */
@media (max-width: 480px) {
  .oa-grid {
    flex-direction: column;
  }
}
/* ==============================================================
   FP6 — FINAL MOBILE STACKING FIX
   ============================================================== */
@media (max-width: 768px) {
  .front-page-6 .fp6-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .front-page-6 .fp6-item {
    width: 100% !important;
    margin: 0 !important;
  }
}
/* ==============================================================
   FP6 — ABSOLUTE FINAL MOBILE STACKING FIX
   ============================================================== */
@media (max-width: 768px) {
  .front-page-6 .fp6-grid {
    display: block !important;
  }

  .front-page-6 .fp6-item {
    width: 100% !important;
    margin-bottom: 24px !important;
    display: block !important;
  }
}
/* ==============================================================
   MODAL — MOBILE HEIGHT + SCROLL FIX
   ============================================================== */

.oa-modal-overlay {
  align-items: flex-start !important;
  overflow-y: auto !important;
}

.oa-modal {
  max-height: 90vh !important;
  overflow-y: auto !important;
  margin: 40px auto !important;
}

@media (max-width: 480px) {
  .oa-modal {
    padding: 20px !important;
  }
}
/* ==============================================================
   FP6 — hard mobile stacking fix
   ============================================================== */
@media (max-width: 768px) {
  .front-page-6 .fp6-grid {
    display: block !important;              /* stop acting like a grid */
  }

  .front-page-6 .fp6-grid > .fp6-item {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 24px !important;
  }
}
/* ==============================================================
   Modal — mobile width + scroll
   ============================================================== */

/* Let the overlay scroll if needed */
.oa-modal-overlay {
  align-items: flex-start !important;
  overflow-y: auto !important;
}

/* Constrain height and allow internal scroll */
.oa-modal {
  max-height: 90vh !important;
  overflow-y: auto !important;
}

/* On small phones, shrink width to viewport */
@media (max-width: 480px) {
  .oa-modal {
    width: 90vw !important;
    max-width: 90vw !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    margin: 40px auto !important;
  }
}
/* ==============================================================
   FP6 — responsive grid pinned to this section only
   ============================================================== */

/* Desktop stays 3 columns via existing rules */

/* ≤ 900px: 2 columns */
@media (max-width: 900px) {
  .fp-section-acquisition-searches .fp6-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}

/* ≤ 600px: 1 column, full-width cards */
@media (max-width: 600px) {
  .fp-section-acquisition-searches .fp6-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .fp-section-acquisition-searches .fp6-grid > .fp6-item {
    width: 100% !important;
    margin: 0 0 24px 0 !important;
    float: none !important;
    display: block !important;
  }
}
/* ==============================================================
   Modal — compress + fit on mobile, allow scroll
   ============================================================== */

/* Base constraint so it never overflows viewport height */
.oa-modal {
  max-height: 90vh !important;
  overflow-y: auto !important;
}

/* Mobile: narrower, less padding, smaller typography */
@media (max-width: 768px) {
  .oa-modal-overlay {
    align-items: flex-start !important;
    padding: 10px !important;
  }

  .oa-modal {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 20px auto !important;
    padding: 16px !important;
  }

  .oa-modal-title {
    font-size: 18px !important;
  }

  .oa-modal-intro {
    font-size: 14px !important;
  }

  .oa-modal input {
    font-size: 14px !important;
    padding: 8px 10px !important;
  }
}

/* Very small phones: extra compression */
@media (max-width: 480px) {
  .oa-modal {
    padding: 14px !important;
  }
}
/* ==============================================================
   FINAL FIX — FP2, FP4, FP6 = SINGLE COLUMN SECTIONS
   ============================================================== */

/* FP2 and FP4 already behave as single-column — no change needed */

/* FP6 — force single-column layout on ALL screen sizes */
.front-page-6 .fp6-grid {
    display: block !important;
}

.front-page-6 .fp6-grid > .fp6-item {
    width: 100% !important;
    display: block !important;
    float: none !important;
    margin: 0 0 32px 0 !important;
}

/* ==============================================================
   MODAL — MOBILE WIDTH + SCROLL FIX
   ============================================================== */

.oa-modal-overlay {
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding: 10px !important;
}

.oa-modal {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 20px auto !important;
    padding: 20px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

@media (max-width: 480px) {
    .oa-modal {
        padding: 16px !important;
    }
}
/* ==============================================================
   FP6 — FINAL: NO COLUMNS, SIMPLE VERTICAL STACK
   ============================================================== */

/* Kill grid on FP6 and stack items */
.front-page-6 .fp6-grid {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    max-width: 1100px !important;
    margin: 32px auto 0 auto !important;
}

.front-page-6 .fp6-item {
    width: 100% !important;
    margin: 0 0 24px 0 !important;
}

/* Make sure any theme thirds layout can't interfere */
.front-page-6 .flexible-widgets.widget-thirds,
.front-page-6 .flexible-widgets.widget-thirds .wrap,
.front-page-6 .flexible-widgets.widget-thirds .widget {
    float: none !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* ==============================================================
   FP6 — SINGLE-COLUMN, NO GRID, MATCH FP2/FP4 FEEL
   ============================================================== */

/* Kill grid layout on FP6 completely */
.front-page-6 .fp6-grid {
    display: block !important;          /* no CSS grid */
    max-width: 1100px !important;
    margin: 32px auto 0 auto !important;
    padding: 0 !important;
}

/* Ensure any fp-grid / fp-grid-3 helpers do nothing in FP6 */
.front-page-6 .fp6-grid.fp-grid.fp-grid-3 {
    display: block !important;
    grid-template-columns: none !important;
}

/* Each FP6 item is full-width, stacked */
.front-page-6 .fp6-item {
    width: 100% !important;
    margin: 0 0 24px 0 !important;
    text-align: left !important;
}

/* Last item: no extra bottom gap if you want it tighter */
.front-page-6 .fp6-item:last-child {
    margin-bottom: 0 !important;
}

/* Mobile: just tighten spacing a little */
@media (max-width: 768px) {
    .front-page-6 .fp6-grid {
        margin-top: 24px !important;
    }
}
/* ==============================================================
   MODAL FORM — ALIGNMENT + MOBILE FIT
   ============================================================== */

/* Checkbox group layout */
.oa-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

/* Each checkbox row */
.oa-checkbox-group > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Checkbox input */
.oa-checkbox-group input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
}

/* Checkbox label */
.oa-checkbox-group label {
  font-size: 15px;
  line-height: 1.4;
  color: #222;
  margin: 0;
}

/* Modal container */
#oa-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
}

/* Modal inner box */
#oa-modal-overlay .oa-modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  margin: 40px auto;
  padding: 24px;
  border-radius: 8px;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

/* Form fields */
#oa-modal-overlay input,
#oa-modal-overlay select,
#oa-modal-overlay textarea {
  width: 100%;
  box-sizing: border-box;
  font-size: 15px;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Labels */
#oa-modal-overlay label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

/* Submit button */
#oa-modal-overlay button[type="submit"] {
  background: #003366;
  color: #fff;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  #oa-modal-overlay .oa-modal {
    padding: 20px;
    margin: 20px auto;
    width: 94%;
    max-width: 94%;
  }

  .oa-checkbox-group label {
    font-size: 14px;
  }

  #oa-modal-overlay input,
  #oa-modal-overlay select,
  #oa-modal-overlay textarea {
    font-size: 14px;
    padding: 8px 10px;
  }

  #oa-modal-overlay button[type="submit"] {
    font-size: 14px;
    padding: 10px 16px;
  }
}
