
 strong {
     --bulma-strong-color: none;
 }

/* Make Bulma .title inherit text color from style variants */
.title {
    color: inherit;
}
 .box {
     box-shadow: none;
     border-radius: 0;
     color: inherit;
     --bulma-box-background-color: unset;
 }
 .ginput_complex.ginput_container_name .gform-field-label--type-sub {
	font-weight: 500;
 }

/* Override Gravity Forms inline color settings to inherit from section */
.has-white-color .gform-field-label,
.has-white-color .gform-field-label--type-sub,
.has-white-color .gfield_label {
    color: white !important;
}

.has-black-color .gform-field-label,
.has-black-color .gform-field-label--type-sub,
.has-black-color .gfield_label {
    color: black !important;
}

body.wp-theme-ironlight .gform_button.button {
    border-radius: 99px !important;
    font-family: 'Commissioner' !important;
    font-weight: 800 !important;
    font-size: 16px !important;
}
body.wp-theme-ironlight .gform_button.button:hover {
    color: black !important;
    background: #dbdb00 !important;
}

 /* ===================================
  * BULMA + WORDPRESS TYPOGRAPHY INTEGRATION
  * ===================================*/

/* Map element styles to WordPress typography system */
h1 {
    font-size: var(--wp--preset--font-size--xx-large);
}

h2 {
    font-size: var(--wp--preset--font-size--x-large);
}

h3 {
    font-size: var(--wp--preset--font-size--large);
}

h4 {
    font-size: var(--wp--preset--font-size--medium);
}

h5 {
    font-size: var(--wp--preset--font-size--small);
}

h6 {
    font-size: var(--wp--preset--font-size--x-small);
}

/* ===================================
 * NAVBAR POSITIONING & FIXED NAVBAR LOGIC
 * ===================================*/

:root {
    --bulma-navbar-height: var(--navbar-height, 80px);
    --wp--style--global--content-size: 100%;
}

/* Custom container width for narrow sections */
.container.is-max-desktop {
    max-width: 700px;
}

/* ===================================
 * LIGHT/DARK LOGO SWITCHING
 * ===================================*/

/* Hide dark logos by default */
.logo-dark {
    display: none;
}

/* Logo dark mode visibility is now handled per-block in render.php */
/* @media (prefers-color-scheme: dark) {
    .logo-light {
        display: none;
    }
    .logo-dark {
        display: block;
    }
} */

/* Fixed navbar - add top margin to first block to account for navbar height */
/*
.has-navbar-fixed-top .wp-site-blocks > *:first-child {
    margin-block-start: var(--bulma-navbar-height) !important;
}
*/

/* Navbar fixes */
@media screen and (min-width: 1024px) {
    .navbar-end-no-stretch {
        margin-inline-start: 0;
    }
    .navbar-dropdown {
        top: var(--bulma-navbar-height);
    }
}

.navbar {
    height: var(--navbar-height);
    min-height: var(--navbar-height);
}

/* Secondary navbar sizing and positioning */
.navbar-secondary {
    height: var(--navbar-secondary-height);
    min-height: var(--navbar-secondary-height);
}

.navbar-secondary .navbar-item {
    height: var(--navbar-secondary-height);
}

/* Align first item in secondary navbar-start with logo in primary navbar-brand */
.navbar-secondary .navbar-start > .navbar-item:first-child {
    padding-left: 0;
}

/* Secondary navbar positioning when fixed */
.navbar-secondary.is-fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
}

/* When primary navbar is fixed and secondary is above, position primary below secondary */
.navbar-secondary.is-fixed-top + nav.navbar.is-fixed-top {
    top: var(--navbar-secondary-height);
}

/* When primary navbar is fixed and secondary is below, position secondary below primary */
nav.navbar.is-fixed-top + .navbar-secondary.is-fixed-top {
    top: var(--navbar-height);
}

/* When admin bar is present and secondary is below primary */
.admin-bar nav.navbar.is-fixed-top + .navbar-secondary.is-fixed-top {
    top: calc(var(--navbar-height) + 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar nav.navbar.is-fixed-top + .navbar-secondary.is-fixed-top {
        top: calc(var(--navbar-height) + 46px);
    }
}

/* Admin bar adjustments for secondary navbar */
.admin-bar .navbar-secondary.is-fixed-top {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar-secondary.is-fixed-top {
        top: 46px;
    }
}

/* When admin bar is present and secondary is above primary */
.admin-bar .navbar-secondary.is-fixed-top + nav.navbar.is-fixed-top {
    top: calc(var(--navbar-secondary-height) + 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar-secondary.is-fixed-top + nav.navbar.is-fixed-top {
        top: calc(var(--navbar-secondary-height) + 46px);
    }
}

/* Position the navbar correctly when admin bar is present */
.admin-bar .navbar.is-fixed-top {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar.is-fixed-top {
        top: 46px;
    }
}

/* Body padding adjustments when secondary navbar is present and fixed */
/* The navbar 'top' positioning already accounts for admin bar, so body padding only needs navbar heights */
body.has-navbar-fixed-top.has-secondary-navbar-above,
body.has-navbar-fixed-top.has-secondary-navbar-below,
body.admin-bar.has-navbar-fixed-top.has-secondary-navbar-above,
body.admin-bar.has-navbar-fixed-top.has-secondary-navbar-below {
    padding-top: calc(var(--navbar-height) + var(--navbar-secondary-height)) !important;
}

/* Navbar burger color - applies to both mobile and desktop */
.navbar-burger {
    color: var(--color-secondary, #485fc7);
}

/* Desktop expanded navigation burger */
@media screen and (min-width: 1024px) {
    .navbar-burger-desktop {
        display: flex;
    }
}

/* Disable fixed navbar on mobile */
@media screen and (max-width: 768px) {
    .mb-0-mobile {
        margin-bottom: 0 !important;
    }
    .navbar.is-fixed-top {
        position: relative !important;
        top: auto !important;
    }

    /* Control navbar height on mobile */
    .navbar,
    .navbar .container {
        min-height: 80px !important;
        max-height: 80px !important;
    }

    .navbar-brand {
        min-height: 80px;
        max-height: 80px;
    }

    .navbar-brand .navbar-item {
        padding: 1rem 0.75rem;
        height: 80px;
        display: flex;
        align-items: center;
    }

    .navbar-brand .navbar-item img {
        max-height: 60px;
    }

    .navbar-burger {
        height: 80px;
        width: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Restore Bulma's default mobile navbar behavior */
    .navbar-menu {
        display: none;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        background-color: white;
        z-index: 20;
    }

    .navbar-menu.is-active {
        display: block !important;
    }
    a.navbar-item.is-active.navbar-burger {
        background: none !important;
    }

    /* Remove navbar padding on mobile since it's not fixed */
    body.has-navbar-fixed-top,
    html.has-navbar-fixed-top {
        padding-top: 0 !important;
    }

    /* Remove flex from navbar-start on mobile */
    .navbar-start {
        display: block !important;
    }
}

/* Apply scroll margin to all direct children of #root for anchor links */
body.has-navbar-fixed-top #root > * {
    scroll-margin-top: var(--bulma-navbar-height);
}

body.has-navbar-fixed-top.has-secondary-navbar #root > * {
    scroll-margin-top: calc(var(--bulma-navbar-height) + var(--navbar-secondary-height));
}

body.admin-bar.has-navbar-fixed-top #root > * {
    scroll-margin-top: calc(var(--bulma-navbar-height) + 32px);
}

body.admin-bar.has-navbar-fixed-top.has-secondary-navbar #root > * {
    scroll-margin-top: calc(var(--bulma-navbar-height) + var(--navbar-secondary-height) + 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar.has-navbar-fixed-top #root > * {
        scroll-margin-top: calc(var(--bulma-navbar-height) + 46px);
    }

    body.admin-bar.has-navbar-fixed-top.has-secondary-navbar #root > * {
        scroll-margin-top: calc(var(--bulma-navbar-height) + var(--navbar-secondary-height) + 46px);
    }
}

/* Anchor link scroll margin adjustments */
#root [id] {
    scroll-margin-top: 0; /* Default for when no fixed navbar */
}

body.has-navbar-fixed-top #root [id] {
    scroll-margin-top: var(--bulma-navbar-height);
}

body.has-navbar-fixed-top.has-secondary-navbar #root [id] {
    scroll-margin-top: calc(var(--bulma-navbar-height) + var(--navbar-secondary-height));
}

body.admin-bar.has-navbar-fixed-top #root [id] {
    scroll-margin-top: calc(var(--bulma-navbar-height) + 32px);
}

body.admin-bar.has-navbar-fixed-top.has-secondary-navbar #root [id] {
    scroll-margin-top: calc(var(--bulma-navbar-height) + var(--navbar-secondary-height) + 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar.has-navbar-fixed-top #root [id] {
        scroll-margin-top: calc(var(--bulma-navbar-height) + 46px);
    }

    body.admin-bar.has-navbar-fixed-top.has-secondary-navbar #root [id] {
        scroll-margin-top: calc(var(--bulma-navbar-height) + var(--navbar-secondary-height) + 46px);
    }
}

/* ===================================
 * HERO FULLHEIGHT ADJUSTMENTS FOR FIXED NAVBAR
 * Preparation for future hero block
 * ===================================*/

/* When only navbar is fixed (no secondary) */
body.has-navbar-fixed-top .hero.is-fullheight {
    min-height: calc(100vh - var(--bulma-navbar-height));
}

/* When navbar is fixed with secondary navbar */
body.has-navbar-fixed-top.has-secondary-navbar .hero.is-fullheight {
    min-height: calc(100vh - var(--bulma-navbar-height) - var(--navbar-secondary-height));
}

/* When only admin bar is present */
body.admin-bar .hero.is-fullheight {
    min-height: calc(100vh - 32px);
}

/* When admin bar and fixed navbar are present (no secondary) */
body.admin-bar.has-navbar-fixed-top .hero.is-fullheight {
    min-height: calc(100vh - var(--bulma-navbar-height) - 32px);
}

/* When admin bar, fixed navbar, AND secondary navbar are present */
body.admin-bar.has-navbar-fixed-top.has-secondary-navbar .hero.is-fullheight {
    min-height: calc(100vh - var(--bulma-navbar-height) - var(--navbar-secondary-height) - 32px);
}

/* Mobile admin bar adjustments */
@media screen and (max-width: 782px) {
    body.admin-bar .hero.is-fullheight {
        min-height: calc(100vh - 46px);
    }

    body.admin-bar.has-navbar-fixed-top .hero.is-fullheight {
        min-height: calc(100vh - var(--bulma-navbar-height) - 46px);
    }

    body.admin-bar.has-navbar-fixed-top.has-secondary-navbar .hero.is-fullheight {
        min-height: calc(100vh - var(--bulma-navbar-height) - var(--navbar-secondary-height) - 46px);
    }
}

/* Hero flat bottom border - uses CSS variable from Customizer */
.hero.is-flatbottomed {
    border-bottom: 15px solid var(--color-flatbottom, var(--color-primary));
    position: relative;
}

/* Hero body display adjustment for fullheight heroes */
.hero.is-fullheight .hero-body,
.hero.is-fullheight-with-navbar .hero-body,
.hero.is-halfheight .hero-body {
    display: block;
}

/* Expanded navbar modal social icons */
#expandedMenu .social-icons a {
    font-size: 30px;
}

/* Horizontal Card Flexbox Layout */
.card-box.is-flex-direction-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
}

.card-box.is-flex-direction-row .card-content,
.card-box.is-flex-direction-row .card-image {
    flex: 1;
}

.card-box.is-flex-direction-row .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--bulma-card-content-padding);
}

.card-box.is-flex-direction-row .card-image {
    max-width: 50%;
    display: flex;
}

.card-box.is-flex-direction-row .card-image figure {
    height: 100%;
    width: 100%;
    padding-bottom: 0 !important; /* Override Bulma aspect ratio */
    display: flex;
}

.card-box.is-flex-direction-row .card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: relative !important; /* Override Bulma absolute positioning */
}

/* Order control for image position */
.card-box.is-flex-direction-row .card-image.order-first {
    order: -1;
}

.card-box.is-flex-direction-row .card-footer {
    width: 100%;
}

/* Responsive: Stack on mobile */
@media screen and (max-width: 768px) {
    .card-box.is-flex-direction-row {
        flex-direction: column;
    }

    .card-box.is-flex-direction-row .card-image {
        max-width: 100%;
    }

    .card-box.is-flex-direction-row .card-image figure {
        padding-bottom: 56.25% !important; /* Restore 16:9 aspect ratio on mobile */
    }

    .card-box.is-flex-direction-row .card-image img {
        position: absolute !important; /* Restore Bulma positioning on mobile */
    }
}

/* ===================================
 * BOX SHADOW OVERRIDES
 * ===================================*/

/* Remove default Bulma box shadow */
.box {
    box-shadow: none;
}

/* Only add shadow when explicitly enabled */
.box.has-shadow {
    box-shadow: var(--bulma-box-shadow);
}

/* ===================================
 * DECORATIVE IMAGE POSITIONING
 * ===================================*/

/* Ensure section is positioned relatively when it contains a decorative image */
.section:has(.decorative-image) {
    position: relative;
}

/* Base class for positioned decorative images */
.decorative-image {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* Custom positioned images (no preset classes applied) */
.decorative-image.is-custom-positioned {
    /* Position handled via inline styles */
}

/* Overflow behavior */
.section:has(.decorative-image.is-overflow-clip) {
    overflow: hidden;
}

.section:has(.decorative-image.is-overflow-float) {
    overflow: visible;
}

/* Corner positions */
.is-positioned-top-left {
    top: 0;
    left: 0;
}

.is-positioned-top-right {
    top: 0;
    right: 0;
}

.is-positioned-bottom-left {
    bottom: 0;
    left: 0;
}

.is-positioned-bottom-right {
    bottom: 0;
    right: 0;
}

/* Edge center positions */
.is-positioned-top-center {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.is-positioned-bottom-center {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.is-positioned-center-left {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.is-positioned-center-right {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}
