/*
 * Theme Name: Robertson Gilroy
 * Version: 1.0.3
 * Description: Custom wordpress theme configured for sites made with Site Builder by Corporate Tools
 * Author: Robertson Gilroy
 */

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


/* Robertson Gilroy blue + silver brand refresh */
.site-header { border-bottom-color: #B8C0C5; }
.site-header img { width: min(250px, 36vw); max-height: 86px; object-fit: contain; }
.wp-block-button__link { border: 1px solid #8A959C; }
#products .wp-block-column { border: 1px solid #D7DCDF; }
#products h2::after { content: ""; display:block; width:72px; height:2px; background:#8A959C; margin:14px auto 0; }

/* Robertson Gilroy final brand refinement: navy + silver */
:root { --rg-navy:#0B2347; --rg-silver:#8A959C; --rg-light-silver:#D7DCE0; }
.site-header { background:#fff; border-bottom:1px solid var(--rg-light-silver); z-index:1000; }
.site-header .wp-block-image img { width:180px !important; height:auto !important; }
.wp-block-bronkbuilderwp-hero-block h1 { max-width:850px; line-height:1.06; text-shadow:0 2px 12px rgba(0,0,0,.35); }
.wp-block-bronkbuilderwp-hero-block p { max-width:720px; text-shadow:0 1px 8px rgba(0,0,0,.4); }
.wp-block-bronkbuilderwp-hero-block .wp-block-cover__inner-container { width:min(90%,1500px); margin:auto; }
.wp-block-bronkbuilderwp-hero-block .wp-block-button__link { border:1px solid #fff !important; border-radius:6px; padding:14px 24px; }
#about { padding-top:3.5rem !important; padding-bottom:3.5rem !important; }
#products { border-top:1px solid var(--rg-light-silver); }
#contact { padding-top:3.5rem !important; padding-bottom:3.5rem !important; }
footer.wp-block-template-part > .wp-block-group, .wp-site-blocks > footer .wp-block-group.is-style-section-1 { background:var(--rg-navy); color:#fff; }
footer.wp-block-template-part a, footer.wp-block-template-part p, .wp-site-blocks > footer a, .wp-site-blocks > footer p { color:#fff !important; }
footer.wp-block-template-part hr, .wp-site-blocks > footer hr { border-color:var(--rg-silver); opacity:.65; }
@media (max-width:782px){
 .site-header .wp-block-image img { width:135px !important; }
 .wp-block-bronkbuilderwp-hero-block .wp-block-cover { min-height:520px !important; padding-top:100px !important; padding-bottom:100px !important; }
 .wp-block-bronkbuilderwp-hero-block h1 { font-size:2.6rem !important; }
}

/* 2026-09-29 hero positioning correction */
.wp-block-bronkbuilderwp-hero-block .wp-block-cover__inner-container {
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    text-align:right;
}
.wp-block-bronkbuilderwp-hero-block h1,
.wp-block-bronkbuilderwp-hero-block p {
    width:min(42%, 620px);
    max-width:620px;
    text-align:right !important;
}
.wp-block-bronkbuilderwp-hero-block .wp-block-buttons {
    width:min(42%, 620px);
    justify-content:flex-end !important;
}
@media (max-width:782px){
 .wp-block-bronkbuilderwp-hero-block .wp-block-cover__inner-container { align-items:center; text-align:center; }
 .wp-block-bronkbuilderwp-hero-block h1,
 .wp-block-bronkbuilderwp-hero-block p,
 .wp-block-bronkbuilderwp-hero-block .wp-block-buttons { width:100%; max-width:100%; text-align:center !important; justify-content:center !important; }
}

/* 2026-09-29 V3 hero composition correction */
.wp-block-bronkbuilderwp-hero-block .wp-block-cover {
    min-height: 500px !important;
}
.wp-block-bronkbuilderwp-hero-block .wp-block-cover__image-background {
    object-position: center center !important;
}
.wp-block-bronkbuilderwp-hero-block .wp-block-cover__inner-container {
    width: 100% !important;
    padding: 0 5vw !important;
    box-sizing: border-box;
    align-items: flex-end !important;
}
.wp-block-bronkbuilderwp-hero-block h1 {
    width: auto !important;
    max-width: none !important;
    white-space: nowrap;
    font-size: clamp(3rem, 4vw, 4.6rem) !important;
    line-height: 1 !important;
    margin-right: 0 !important;
}
.wp-block-bronkbuilderwp-hero-block p,
.wp-block-bronkbuilderwp-hero-block .wp-block-buttons {
    width: min(36vw, 620px) !important;
    max-width: 620px !important;
}
@media (max-width: 900px){
 .wp-block-bronkbuilderwp-hero-block h1 { white-space: normal; font-size:2.8rem !important; }
 .wp-block-bronkbuilderwp-hero-block p,
 .wp-block-bronkbuilderwp-hero-block .wp-block-buttons { width:100% !important; }
}
