/*
Theme Name: MecanoPro.io
Theme URI: https://mecanopro.io/
Machine Name: mecanopro-io
Author: MecanoPro.io
Author URI: https://mecanopro.io/
Description: Corporate and marketing website for MecanoPro.io, powered by Aduvio. Not the shop-facing product theme - see the mecanopro theme for that.
Version: 1.0
*/

/*
    Loaded by core's page-head.php before css/style.css, on every page.

    ? This file carries the header, the footer and the cookie banner - the furniture that is on every
    ? page and comes from core's own markup, so the selectors here are core's rather than ours. The
    ? design tokens and everything this site draws itself live in css/style.css.
*/

/*-------------------------------------------------------------------------------------------------
    Header
-------------------------------------------------------------------------------------------------*/

/*  Dark bar, matching the footer's steel. navbar-inverse is Bootstrap's dark navbar, so this is
    what the class was always for - it was being overridden to white.
    ? Front-end settings CSS is printed after this by core's page-head.php, so a header colour set
    ? in the website settings still wins over this. */
.site-header.navbar-inverse {
    background-color: #1f272f;
    border: none;
    border-bottom: 1px solid #2c3641;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/*  The header's accent colour.
    ?
    ? Core draws the underline under the active and hovered menu item itself, as an :after on the
    ? link filled with var(--header-accent) - which defaults to white. Retuning the variable is how
    ? core says to change it ("so a theme can retune the header without chasing every selector
    ? below"), and it is why there is no underline rule of our own here: adding one would have put a
    ? second bar under core's rather than recolouring it.
    ?
    ? The same variable also tints the hairline along the bottom of the bar, the cart badge and the
    ? utility-strip icons - all of which reading brand red is right. -ink is what sits ON the accent
    ? when it is used as a background, so it goes white rather than core's near-black default. */
.site-header {
    --header-accent: #fb172b;
    --header-accent-ink: #ffffff;
}

/*  The logo fills more of the bar's height. The padding comes off rather than the bar growing -
    ? the menu links are what set the header's height (24px + ~21px + 24px), so anything up to
    ? about 66px tall here costs nothing. */
.site-header .navbar-brand {
    height: auto;
    padding: 9px 15px;
}

.site-header .navbar-logo {
    height: 48px;
    width: auto;
    /*  No max-width: the wordmark is wider than it is tall and a cap here would letterbox it */
}

.site-header .site-header-menu > li > a,
.site-header #header-nav-right > li > a {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    padding: 24px 14px;
}

/*  Active and hover are the same treatment - the text goes red. No underline: the red is the
    ? signal, and a bar under it as well was saying the same thing twice. */
.site-header .site-header-menu > li > a:hover,
.site-header .site-header-menu > li > a:focus,
.site-header .site-header-menu > li.active > a {
    color: #fb172b;
    background-color: transparent;
}

/*  Unused while the nav stays flat - see the note on the demo button below - but kept coherent
    with the dark bar in case a row ever gains children. */
.site-header .dropdown-menu {
    background-color: #26303a;
    border: 1px solid #39434d;
    border-radius: 6px;
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
    padding: 6px;
}

.site-header .dropdown-menu > li > a {
    border-radius: 4px;
    padding: 9px 12px;
    color: #ffffff;
    font-size: 14.5px;
}

.site-header .dropdown-menu > li > a:hover {
    background-color: #1f272f;
    color: #fb172b;
}

/*  The demo link is the call to action, drawn as a button rather than a link.
    ?
    ? Targeted by the menu row's own itemid rather than by :last-child or by .header-cta. core
    ? prints itemid as the <li> id for every website-main row, so this is stable however the menu is
    ? reordered - and .header-cta belongs to the account links on the other side of the bar.
    ?
    ? !! A menu row with children is rendered by core as a dropdown toggle with href="#" and NO id
    ! ! at all, so nav-free-demo must stay a top-level row with no children under it. */
.site-header #nav-free-demo > a,
.site-header .header-cta {
    background-color: #fb172b;
    color: #ffffff !important;
    border-radius: 5px;
    margin: 15px 0 15px 8px;
    padding: 10px 18px !important;
    font-weight: 600;
}

.site-header #nav-free-demo > a:hover,
.site-header #nav-free-demo > a:focus,
.site-header .header-cta:hover,
.site-header .header-cta:focus {
    background-color: #d9101f;
    color: #ffffff !important;
}

.site-header .navbar-toggle {
    border-color: #45505c;
    margin-top: 15px;
}

.site-header .navbar-toggle .icon-bar {
    background-color: #ffffff;
}

/*  No padding-top on body here.
    ?
    ? Core already offsets the page below the fixed bar, in two steps: css/style.css starts
    ? `.site-header ~ .content` at 60px, and page-js.php then measures the rendered navbar and sets
    ? the real height on #top-content. Adding a body padding on top of that does not replace it, it
    ? stacks with it - which was pushing every page down by roughly a second header's worth. */

@media (max-width: 767px) {

    .site-header .navbar-brand {
        padding: 8px 15px;
    }

    .site-header .navbar-logo {
        height: 42px;
    }

    .site-header .site-header-menu > li > a {
        padding: 12px 15px;
    }

    .site-header #nav-free-demo > a,
    .site-header .header-cta {
        display: inline-block;
        margin: 10px 15px;
    }
}

/*-------------------------------------------------------------------------------------------------
    Footer
-------------------------------------------------------------------------------------------------*/

#footer-top {
    background-color: #1f272f;
    color: #c8d0d8;
}

.site-footer {
    padding: 56px 0 24px;
    font-size: 14.5px;
}

.site-footer a {
    color: #c8d0d8;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}

/*  Same treatment as the header's, and no filter on it.
    ? The inversion that used to be here assumed a logo drawn for a light ground. The logo already
    ? reads on the dark bar, so inverting it in the footer only made the two copies of the same mark
    ? look like two different marks. */
.site-footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}

.site-footer-wordmark {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
}

.site-footer-blurb {
    color: #98a4b0;
    max-width: 42ch;
    margin-bottom: 18px;
}

.site-footer-contact {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.site-footer-contact li {
    margin-bottom: 7px;
}

.site-footer-contact i {
    color: #fb172b;
    width: 18px;
    text-align: center;
    margin-right: 5px;
}

.site-footer-social {
    display: flex;
    gap: 9px;
}

.site-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #39434d;
    border-radius: 50%;
    color: #c8d0d8;
}

.site-footer-social a:hover {
    background-color: #fb172b;
    border-color: #fb172b;
    color: #ffffff;
    text-decoration: none;
}

.site-footer-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 14px;
}

.site-footer-heading a {
    color: #ffffff;
}

.site-footer-heading-spaced {
    margin-top: 28px;
}

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

.site-footer-links li {
    margin-bottom: 8px;
}

/*  Sixteen industries in one column is a very long footer, so they run in two or three */
.site-footer-links-split {
    column-count: 2;
    column-gap: 28px;
}

.site-footer-legal {
    border-top: 1px solid #39434d;
    margin-top: 36px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13.5px;
}

.site-footer-copyright {
    margin: 0;
    color: #8e9aa6;
}

.site-footer-legal-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 991px) {

    .site-footer-brand {
        margin-bottom: 32px;
    }

    .site-footer-col {
        margin-bottom: 26px;
    }
}

@media (max-width: 767px) {

    .site-footer {
        padding: 40px 0 20px;
    }

    .site-footer-links-split {
        column-count: 1;
    }
}

/*-------------------------------------------------------------------------------------------------
    Cookie consent (Loi 25)
-------------------------------------------------------------------------------------------------*/

#loi-25-overlay {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1040;
    background-color: #1f272f;
    color: #e8ecef;
    padding: 18px 0;
    box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.45);
}

#loi-25-overlay a {
    color: #ffffff;
    text-decoration: underline;
}
