/* BEGIN CORFU_JOOMLA_APPEARANCE */
/* Keep Joomla's two artwork layers fixed while the separate menu scrolls away. */
@font-face {
    font-family: 'PFHighwaySansPro';
    src: url('../uploads/joomla/templates/shaper_helix3/css/PFHighwaySansPro-Regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* The Joomla logo is an image; the WordPress site title remains accessible. */
.site-header {
    --joomla-header-height: 130px;
    position: relative;
    z-index: 10;
    padding: 0 !important;
    background: transparent !important;
}

.site-header::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 172px;
    pointer-events: none;
    background-image:
        linear-gradient(
            to bottom,
            rgba(120, 0, 56, 0.8) 0 var(--joomla-header-height),
            transparent var(--joomla-header-height)
        ),
        url('../themes/hello-elementor/assets/images/joomla/top-background.jpg');
    background-position: center top, center top;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, 1170px 172px;
}

body.admin-bar .site-header::before,
body.admin-bar .site-header .site-branding {
    top: 32px;
}

.site-header .header-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    max-width: 1140px !important;
    padding: var(--joomla-header-height) 0 0 !important;
}

.site-header .site-branding {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 1;
    width: min(100%, 1140px);
    height: var(--joomla-header-height);
    margin: 0 !important;
    transform: translateX(-50%);
}

.site-header .site-title {
    display: block !important;
    width: 100%;
    height: var(--joomla-header-height);
    margin: 0 !important;
}

.site-header .site-title a {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 165px;
    overflow: hidden;
    font-size: 0 !important;
    background: url('../uploads/joomla/images/logo.png') left top / auto 165px no-repeat;
}

.site-header .site-navigation {
    display: flex !important;
    justify-content: flex-end !important;
    position: relative;
    z-index: 20;
    width: 100%;
    min-height: 42px;
}

.site-header .site-navigation ul.menu {
    display: flex;
    justify-content: flex-end;
    margin: 0 !important;
    padding: 0 !important;
}

.site-header .site-navigation ul.menu li {
    border-right: 1px solid #333;
}

.site-header .site-navigation ul.menu li:last-child {
    border-right: 0;
}

.site-header .site-navigation ul.menu li a {
    padding: 10px 20px !important;
    color: #000 !important;
    font-family: 'PFHighwaySansPro', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 22px;
    text-decoration: none;
}

.site-header .site-navigation ul.menu li a:hover,
.site-header .site-navigation ul.menu li a:focus {
    color: #7b0e38 !important;
}

.site-header .site-navigation-toggle-holder,
.site-header .site-navigation-dropdown {
    display: none !important;
}

.site-header.menu-dropdown-tablet:not(.menu-layout-dropdown) .site-navigation {
    display: flex !important;
}

/* Joomla article headings use Open Sans, with distinct sizes and weights. */
body.single-post .site-main .entry-title,
body.single-post .site-main .page-content :is(h1, h2, h3, h4, h5, h6) {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.2;
}

body.single-post .site-main .entry-title,
body.single-post .site-main .page-content h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 30px;
}

body.single-post .site-main .page-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
}

body.single-post .site-main .page-content h3 {
    font-size: 1.8rem;
    font-weight: 500;
}

body.single-post .site-main .page-content h4 {
    font-size: 1.6rem;
    font-weight: 500;
}

body.single-post .site-main .page-content h5 {
    font-size: 1.4rem;
    font-weight: 500;
}

body.single-post .site-main .page-content h6 {
    font-size: 1rem;
    font-weight: 500;
}

/* Contain the floated opening illustration so the next paragraph starts below it. */
body.single-post .page-content > h2:has(> img[src*="timiKmnimi1-02.jpg"]) {
    display: flow-root;
}

/* Match Joomla's spacing for the seven empty paragraphs after this illustration. */
body.single-post .page-content > h2:has(> img[src*="timiKmnimi1-02.jpg"]) ~ p:nth-of-type(-n+7) {
    line-height: 17px;
    margin: 0;
}

/* K2 category pages start with the article list, without a separate page title. */
body.page-id-392 .site-main .page-header,
body.page-id-393 .site-main .page-header,
body.page-id-394 .site-main .page-header {
    display: none;
}

body.page-id-392 .site-main,
body.page-id-393 .site-main,
body.page-id-394 .site-main {
    min-height: calc(100vh - 226px);
    padding-top: 50px;
    padding-bottom: 50px;
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 10px 0;
    background: #7b0e38;
    color: #fff;
}

.site-footer a,
.site-footer .copyright {
    color: #fff !important;
}

/* Keep the imported contact details centered above the form. */
.corfu-joomla-contact {
    width: min(100%, 620px);
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.corfu-joomla-contact h4,
.corfu-joomla-contact p {
    text-align: center;
}

/* Contact Form 7 below the imported Joomla contact details. */
.corfu-contact-form {
    width: min(100%, 620px);
    margin: 50px auto 70px;
}

.corfu-contact-form h2 {
    margin-bottom: 12px;
}

.corfu-contact-form label {
    display: block;
    margin-bottom: 18px;
}

.corfu-contact-form input:not([type='submit']),
.corfu-contact-form textarea {
    width: 100%;
    margin-top: 6px;
}

.corfu-contact-form input[type='submit'] {
    padding: 12px 24px;
    border: 1px solid #7b0e38;
    background: #7b0e38;
    color: #fff;
    cursor: pointer;
}

/* Joomla uses the shorter mobile logo and a vertical menu. */
@media (min-width: 769px) and (max-width: 1023px) {
    .site-header {
        --joomla-header-height: 90px;
    }

    .site-header .site-title a {
        height: 130px;
        background-image: url('../uploads/joomla/images/logo_mob.png');
        background-size: 100% auto;
    }
}

@media (max-width: 768px) {
    .site-header {
        --joomla-header-height: 60px;
    }

    .site-header::before {
        z-index: 2;
        height: var(--joomla-header-height);
        background: rgba(120, 0, 56, 0.8);
    }

    .site-header .header-inner {
        max-width: 100% !important;
        padding: var(--joomla-header-height) 15px 0 !important;
    }

    .site-header .site-branding {
        z-index: 3;
        width: 100%;
        padding: 0 15px;
    }

    .site-header .site-title a {
        height: var(--joomla-header-height);
        background-image: url('../uploads/joomla/images/logo_mob.png');
        background-position: left 20px;
        background-size: 100% auto;
    }

    .site-header .site-navigation {
        justify-content: center !important;
        z-index: 1;
        min-height: 170px;
        /* Decorative artwork scrolls away with the mobile menu. */
        background-image: url('../themes/hello-elementor/assets/images/joomla/top-background.jpg');
        background-position: center -60px;
        background-repeat: no-repeat;
        background-size: 100% 230px;
    }

    .site-header .site-navigation ul.menu {
        flex-direction: column;
        width: min(280px, calc(100% - 70px));
        margin: 0 auto !important;
    }

    .site-header .site-navigation ul.menu li {
        display: block;
        width: 100%;
        border: 0;
        text-align: center;
    }

    .site-header .site-navigation ul.menu li a {
        padding: 10px 0 !important;
    }

    body.page-id-392 .site-main,
    body.page-id-393 .site-main,
    body.page-id-394 .site-main {
        min-height: calc(100vh - 308px);
    }

    .corfu-contact-form {
        padding: 0 15px;
    }
}

@media (max-width: 782px) {
    body.admin-bar .site-header::before,
    body.admin-bar .site-header .site-branding {
        top: 46px;
    }
}

/* Follow the scrolling WordPress admin bar on logged-in phones only. */
@media (max-width: 600px) {
    body.admin-bar .site-header::before,
    body.admin-bar .site-header .site-branding {
        top: 46px;
    }

    @supports ((animation-timeline: scroll()) and (animation-range: 0px 46px)) {
        body.admin-bar .site-header::before,
        body.admin-bar .site-header .site-branding {
            animation: corfu-mobile-admin-bar-offset linear both;
            animation-timeline: scroll(root block);
            animation-range: 0px 46px;
        }
    }

    @keyframes corfu-mobile-admin-bar-offset {
        from { top: 46px; }
        to { top: 0; }
    }
}
/* END CORFU_JOOMLA_APPEARANCE */
