/*
 * Theme Name: 3A IT Consulting
 * Version: 2.0
 * Description: Custom wordpress theme configured for sites made with Site Builder by Corporate Tools
 * Author: 3A IT Consulting
 */

/**
 * 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;
}

/* 3A polished corporate presentation */
body {
    line-height: 1.65;
}

.site-header {
    background: rgba(255,255,255,.96);
    box-shadow: 0 2px 18px rgba(15, 35, 60, .08);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.site-header .wp-block-image img {
    max-height: 64px;
    width: auto;
}

.wp-block-post-content h1 {
    letter-spacing: -.025em;
    line-height: 1.08;
}

.wp-block-post-content h2 {
    letter-spacing: -.015em;
}

.wp-block-button__link {
    border-radius: 8px;
    font-weight: 700;
    padding: .85rem 1.35rem;
    transition: transform .18s ease, box-shadow .18s ease;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 35, 60, .15);
}

.wp-block-columns > .wp-block-column {
    border-radius: 14px;
}

/* 3A homepage redesign */
.threea-home { margin-top: 0 !important; }
.threea-hero .wp-block-cover__inner-container { padding: 72px 28px; }
.threea-hero h1 { max-width: 760px; font-size: clamp(3rem,6vw,5.4rem) !important; }
.threea-hero p { max-width: 760px; }
.threea-eyebrow, .threea-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.threea-eyebrow { color: #fff; opacity: .9; }
.threea-kicker { text-align:center; color: var(--wp--preset--color--primary); }
.threea-valuebar { padding: 26px 28px; background: #f2f5f8; border-bottom: 1px solid #dce3e9; }
.threea-valuebar .wp-block-column { text-align:center; font-size:.88rem; }
.threea-valuebar strong { color: var(--wp--preset--color--primary); letter-spacing:.12em; }
.threea-valuebar span { color:#56616b; }
.threea-section { padding: 88px 28px; }
.threea-section > h2 { max-width:800px; margin-left:auto; margin-right:auto; font-size:clamp(2rem,4vw,3.25rem); }
.threea-cards { margin-top:48px; gap:20px; }
.threea-cards > .wp-block-column { background:#fff; border:1px solid #e1e7ec; padding:30px; box-shadow:0 12px 34px rgba(20,43,68,.07); }
.threea-cards h3 { color:var(--wp--preset--color--primary); }
.threea-why .wp-block-cover__inner-container { padding:72px 28px; }
.threea-why h2 { font-size:clamp(2.5rem,5vw,4rem); }
.threea-why .wp-block-column { padding:18px; border-left:2px solid rgba(255,255,255,.45); }
.threea-cta { padding:88px 28px; background:#f5f7f9; }
.threea-cta h2 { font-size:clamp(2rem,4vw,3.3rem); }

@media (max-width: 781px) {
    .site-header {
        position: relative !important;
    }
    .site-header .wp-block-image img {
        max-height: 52px;
    }
}

.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: fixed;
    width: 100%;
    background-color: var(--wp--preset--color--background);
    z-index: 1000;
    border-bottom: 1px solid;
    box-shadow:
        0 1px 3px 0 rgb(0 0 0 / 0.1),
        0 1px 2px -1px rgb(0 0 0 / 0.1);
    /* Add a bottom box shadow to the header block */
}

.site-header img {
    height: auto;
    width: calc(var(--wp--preset--spacing--40) * 2);
}

/* 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;
}
