/*
 * Theme Name: Basima Solutions LLC
 * Version: 2.2
 * Description: Custom wordpress theme configured for sites made with Site Builder by Corporate Tools
 * Author: Basima Solutions LLC
 */

/**
 * Custom Styling for the FluentForm Submission Button
 */
form.fluent_form_3 .wpf_has_custom_css.ff-btn-submit {
    background-color: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--background) !important;
    border-color: var(--wp--preset--color--primary) !important;
    transition: filter 0.2s ease !important;
}

form.fluent_form_3 .wpf_has_custom_css.ff-btn-submit:hover {
    filter: brightness(1.1) !important;
}

/*
 * When clicking links, make the scrolling behavior smooth to improve the user experience.
 */
html {
    scroll-behavior: smooth;
}

.wp-block-site-title a:hover {
    opacity: 80%;
}

.wp-block-navigation-item {
    color: var(--wp--preset--color--text);
}

.wp-block-navigation-item:hover {
    opacity: 80%;
}

.wp-block-button:hover {
    opacity: 80%;
}

/*
Get rid of the padding above/below the blocks wrapper,
which was leaving whitespace above/below the header/footer
*/
.wp-site-blocks {
    padding: 0;
}

/*
Get rid of the default margin-top around all of the outer blocks (example: hero section after header),
changing here instead of theme.json so that global blockGap is not changed for inner blocks and elements
 */
:where(.wp-site-blocks)>* {
    margin-block-start: 0;
}

/*
Adjust positioning of the "details" block summary when it is an H4
 */
summary h4 {
    display: inline;
    margin-left: 10px;
}

.header-block {
    position: relative;
    z-index: 1;
    border-bottom: 2px solid;
}

/*
Hide an info box/block from the frontend of the site (like the info box on the contact page block pattern.
 */
.hide-from-site-frontend {
    display: none;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
    text-decoration-thickness: 1px !important;
    text-underline-offset: 0.1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
    outline-width: 2px;
    outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
    margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
    text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
    display: block;
}

/*
 * Fix website header to always show at top of page and have colors from the theme
 */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgb(15 23 42 / 0.06);
    backdrop-filter: blur(12px);
}

.site-header .alignwide {
    width: 100%;
}

.site-header .basima-header-logo {
    width: 260px;
    height: auto;
    margin: 0;
    line-height: 0;
    overflow: visible;
    flex-shrink: 0;
}

.site-header .basima-header-logo img {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    transform: none;
}

.site-header .wp-block-navigation-item__content {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.site-header .wp-block-navigation-item__content:hover {
    color: #2563eb;
    opacity: 1;
}

.site-header .basima-header-cta a {
    font-weight: 700;
    text-decoration: none;
}

@media screen and (max-width: 782px) {
    .site-header {
        padding: 10px 14px !important;
    }

    .site-header .alignwide {
        gap: 10px;
    }

    .site-header .basima-header-logo {
        width: 160px;
        height: auto;
        flex: 0 1 160px;
    }

    .site-header .basima-header-logo img {
        display: block;
        width: 100%;
        max-width: 160px;
        height: auto;
        transform: none;
    }

    .site-header .alignwide > .wp-block-group {
        gap: 10px;
        flex-shrink: 0;
    }

    .site-header .wp-block-navigation {
        flex-shrink: 0;
    }

    .site-header .wp-block-button,
    .site-header .basima-header-cta {
        display: block;
        flex: 0 0 auto;
        margin: 0;
    }

    .site-header .wp-block-button__link {
        min-width: 0;
        padding: 10px 12px !important;
        font-size: 0.88rem;
        line-height: 1.15;
        white-space: nowrap;
        word-break: normal;
        overflow-wrap: normal;
    }

    .site-header .wp-block-navigation__responsive-container.is-menu-open {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        padding: 28px 24px 40px !important;
        overflow-y: auto;
        background: #ffffff !important;
        color: #0f172a !important;
        z-index: 100000;
    }

    .site-header .wp-block-navigation__responsive-container-close {
        top: 22px;
        right: 22px;
        color: #0f172a;
    }

    .site-header .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content {
        display: flex !important;
        width: 100%;
        padding-top: 70px !important;
        align-items: stretch !important;
    }

    .site-header .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        gap: 0 !important;
        align-items: stretch !important;
    }

    .site-header .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item {
        display: block !important;
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
    }

    .site-header .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content {
        display: block;
        width: 100%;
        padding: 18px 4px !important;
        color: #0f172a !important;
        font-size: 1.15rem;
        font-weight: 700;
        line-height: 1.3;
        text-align: left;
        white-space: normal;
    }

    .site-header .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content:hover,
    .site-header .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content:focus {
        color: #2563eb !important;
        opacity: 1;
    }
}

@media screen and (max-width: 360px) {
    .site-header {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .site-header .basima-header-logo {
        width: 145px;
        flex-basis: 145px;
    }

    .site-header .basima-header-logo img {
        max-width: 145px;
    }

    .site-header .wp-block-button__link {
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 0.82rem;
    }
}

/* Adjust for admin bar on desktop */
.admin-bar .site-header {
    top: 32px !important;
    /* WordPress admin bar height on desktop */
}

/* Adjust for admin bar on mobile devices */
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px !important;
        /* WordPress admin bar height on mobile */
    }
}

/* For very small screens where WP removes the admin bar */
@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        top: 0 !important;
    }
}

/*
 * Make the separator between the footer and content, not so thick
 */
.wp-block-separator {
    border: none !important;
    border-top: 1px solid !important;
}

#products .wp-block-column {
    transition: scale 0.15s ease-in-out;
}

#products .wp-block-column:hover {
    scale: 105%;
}

/*Fix overflow of some unsplash images in certain browsers  */
img {
    width: 100%;
}

.footer-contact-columns .wp-block-group {
    text-align: center;
}

.footer-contact-columns {
    align-items: center;
}

.basima-footer,
.basima-footer a {
    color: #cbd5e1;
}

.basima-footer a {
    text-decoration: none;
}

.basima-footer a:hover {
    color: #60a5fa;
}

.basima-footer .wp-block-site-title a {
    color: #ffffff;
}

.basima-footer-links {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.basima-footer-links li {
    margin-bottom: 10px;
}

@media screen and (max-width: 781px) {
    .basima-footer {
        text-align: center;
    }

    .basima-footer .wp-block-columns {
        gap: 28px;
    }

    .basima-footer-links {
        padding-left: 0;
    }

    .basima-footer .wp-block-group.is-layout-flex {
        justify-content: center;
    }
}

/*
 * Homepage UX/UI refinement
 */
.home .wp-block-bronkbuilderwp-hero-block .wp-block-cover {
    min-height: 620px !important;
    padding-top: 120px !important;
    padding-bottom: 120px !important;
}

.home .wp-block-bronkbuilderwp-hero-block h1 {
    max-width: 1100px;
    margin: 0 auto 22px;
    font-size: clamp(2.75rem, 5vw, 4.75rem) !important;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-shadow: 0 3px 24px rgb(0 0 0 / 0.28);
}

.home .wp-block-bronkbuilderwp-hero-block p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.05rem, 2vw, 1.3rem) !important;
    line-height: 1.55;
}

.home .wp-block-bronkbuilderwp-hero-block .wp-block-button__link {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgb(2 47 89 / 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home .wp-block-bronkbuilderwp-hero-block .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgb(2 47 89 / 0.35);
    opacity: 1;
}

.home #about {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.home #about .wp-block-columns {
    gap: clamp(40px, 6vw, 80px);
}

.home #about .wp-block-image img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 18px !important;
    box-shadow: 0 22px 50px rgb(15 23 42 / 0.14) !important;
}

.home #about h2,
.home #products > h2,
.home #contact > h2 {
    font-size: clamp(2rem, 3.5vw, 3rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em;
}

.home #about p {
    font-size: 1.05rem !important;
    line-height: 1.75;
}

.home #products {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
    background: linear-gradient(180deg, #effafa 0%, #e4f5f7 100%) !important;
}

.home #products > .wp-block-columns {
    align-items: stretch;
    gap: 24px;
    margin-top: 42px;
}

.home #products .wp-block-column {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgb(15 23 42 / 0.08);
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 34px rgb(15 23 42 / 0.08) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home #products .wp-block-column:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgb(15 23 42 / 0.14) !important;
}

.home #products .wp-block-image {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 24px !important;
}

.home #products .wp-block-image img {
    display: block;
    width: 100%;
    height: 220px !important;
    object-fit: cover;
}

.home #products h3 {
    margin: 0 24px 12px !important;
    font-size: 1.18rem;
    line-height: 1.35 !important;
    text-align: left;
}

.home #products p {
    flex: 1;
    margin: 0 24px 28px !important;
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
}

.home #contact {
    position: relative;
    z-index: 1;
    padding-top: 80px !important;
    padding-bottom: 90px !important;
    background: #f8fafc;
}

.home #contact > .wp-block-group {
    max-width: 760px;
    padding: 28px 34px 34px !important;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgb(15 23 42 / 0.08);
}

.home #contact .ff-el-form-control {
    min-height: 50px;
    border-color: #cbd5e1;
    border-radius: 9px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home #contact textarea.ff-el-form-control {
    min-height: 140px;
}

.home #contact .ff-el-form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgb(37 99 235 / 0.12);
}

.home #contact .ff-btn-submit {
    min-height: 52px;
    border: 0 !important;
    border-radius: 9px !important;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.home #about,
.home #products,
.home #contact {
    scroll-margin-top: 100px;
}

@media screen and (max-width: 781px) {
    .home .wp-block-bronkbuilderwp-hero-block .wp-block-cover {
        min-height: 560px !important;
        padding-top: 88px !important;
        padding-bottom: 88px !important;
    }

    .home .wp-block-bronkbuilderwp-hero-block h1 {
        font-size: clamp(2.2rem, 10vw, 3.25rem) !important;
        line-height: 1.1;
    }

    .home #about,
    .home #products,
    .home #contact {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .home #about .wp-block-columns {
        gap: 32px;
    }

    .home #about .wp-block-image img {
        height: 300px;
    }

    .home #products > .wp-block-columns {
        gap: 22px;
    }

    .home #products .wp-block-image img {
        height: 210px !important;
    }

    .home #contact > .wp-block-group {
        padding: 22px 18px 26px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home #products .wp-block-column,
    .home .wp-block-bronkbuilderwp-hero-block .wp-block-button__link {
        transition: none;
    }
}

/* Homepage — Government Contracting visual system */
.home {
    --basima-navy: #0f172a;
    --basima-blue: #2563eb;
    --basima-slate: #475569;
    --basima-border: #e2e8f0;
    --basima-surface: #f8fafc;
}

.home .wp-block-bronkbuilderwp-hero-block .wp-block-cover {
    min-height: 560px !important;
    padding: 100px 24px !important;
}

.home .wp-block-bronkbuilderwp-hero-block .wp-block-cover__background {
    opacity: 0.70 !important;
    background: var(--basima-navy) !important;
}

.home .wp-block-bronkbuilderwp-hero-block .wp-block-cover__inner-container {
    max-width: 900px;
    margin-inline: auto;
}

.home .wp-block-bronkbuilderwp-hero-block h1 {
    max-width: 860px;
    margin-inline: auto;
    color: #fff !important;
    font-size: clamp(2.4rem, 6vw, 4.5rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em;
}

.home .wp-block-bronkbuilderwp-hero-block p {
    max-width: 790px;
    margin: 24px auto 30px !important;
    color: #e2e8f0 !important;
    font-size: clamp(1rem, 2vw, 1.2rem) !important;
    line-height: 1.65;
}

.home .wp-block-bronkbuilderwp-hero-block .wp-block-button__link,
.home #contact .ff-btn-submit {
    background: var(--basima-blue) !important;
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.home .wp-block-bronkbuilderwp-hero-block .wp-block-button__link:hover,
.home #contact .ff-btn-submit:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px);
}

.home #about {
    background: var(--basima-surface);
    padding: 70px 24px !important;
}

.home #about .wp-block-columns {
    gap: clamp(38px, 6vw, 76px);
}

.home #about .wp-block-image img {
    border-radius: 14px !important;
    box-shadow: 0 18px 45px rgb(15 23 42 / 0.12) !important;
}

.home #about h1,
.home #about h2,
.home #products > h2,
.home #contact h2 {
    color: var(--basima-navy) !important;
    font-size: clamp(1.75rem, 4vw, 2.25rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
}

.home #about p,
.home #products p,
.home #contact p,
.home #contact label {
    color: var(--basima-slate) !important;
}

.home #products {
    background: #fff !important;
    padding: 80px 24px !important;
}

.home #products > .wp-block-columns {
    gap: 24px;
    margin-top: 40px;
}

.home #products .wp-block-column {
    border: 1px solid var(--basima-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 28px rgb(15 23 42 / 0.06) !important;
    overflow: hidden;
}

.home #products .wp-block-column:hover {
    border-color: #bfdbfe !important;
    box-shadow: 0 16px 38px rgb(15 23 42 / 0.11) !important;
}

.home #products h3 {
    color: var(--basima-blue) !important;
    line-height: 1.3 !important;
}

.home #contact {
    background: var(--basima-navy) !important;
    padding: 72px 24px !important;
}

.home #contact > .wp-block-group {
    border: 1px solid #334155;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgb(0 0 0 / 0.22);
}

@media screen and (max-width: 781px) {
    .home .wp-block-bronkbuilderwp-hero-block .wp-block-cover {
        min-height: 520px !important;
        padding: 80px 24px !important;
    }

    .home #about,
    .home #products,
    .home #contact {
        padding: 60px 20px !important;
    }
}
