/*
Theme Name: Glitron Child
Description: Drive RV customisations for the Glitron theme.
Author: WhiteSpaceID
Template: glitron
Version: 1.0.2
Text Domain: glitron-child
*/

/* Shared typography tokens for redesigned Elementor and custom HTML pages. */
:root {
    --drv-font-family: "Raleway", Arial, sans-serif;
    --drv-hero-height: clamp(560px, 37vw, 700px);
    --drv-page-title-size: clamp(44px, 3.5vw, 60px);
    --drv-page-title-weight: 700;
    --drv-page-title-line-height: 1.1;
    --drv-intro-size: 18px;
    --drv-intro-weight: 700;
    --drv-intro-line-height: 1.5;
    --drv-ui-size: 18px;
    --drv-ui-weight: 500;
    --drv-ui-line-height: 1.4;
    --drv-supporting-size: 17px;
    --drv-supporting-weight: 500;
    --drv-supporting-line-height: 1.3;
    --drv-nav-size: 16px;
    --drv-nav-weight: 700;
    --drv-nav-line-height: 1;
    --drv-button-size: 16px;
    --drv-button-weight: 800;
    --drv-button-line-height: 1;
}

/* Keep the four mockup-led hero image bands consistent on desktop. */
@media (min-width: 761px) {
    body .drv-hero { min-height: var(--drv-hero-height) !important; }
    body .drv-resources__hero { height: var(--drv-hero-height) !important; }
    body .drv-hero h1 {
        font-size: var(--drv-page-title-size) !important;
        font-weight: var(--drv-page-title-weight);
        line-height: var(--drv-page-title-line-height);
    }
}

/* Match the redesigned navigation on regular theme pages. */
#masthead {
    width: 100%;
    max-width: none;
    padding: 0;
    background: #fff !important;
}
#masthead::before,
#masthead::after {
    display: none;
}
#masthead .drv-theme-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: min(calc(100% - 64px), 1280px);
    min-height: 112px;
    margin-inline: auto;
}
#masthead .drv-theme-header__brand img {
    display: block;
    width: clamp(190px, 16vw, 255px);
    height: auto;
}
#masthead .drv-theme-header__links {
    display: flex;
    align-items: center;
    gap: clamp(24px, 2.3vw, 42px);
    margin: 0;
    padding: 0;
    list-style: none;
}
#masthead .drv-theme-header__links a,
#masthead .drv-theme-header__mobile-links a {
    color: #111821;
    font-family: var(--drv-font-family);
    font-size: var(--drv-nav-size);
    font-weight: var(--drv-nav-weight);
    line-height: var(--drv-nav-line-height);
    text-decoration: none;
}
#masthead .drv-theme-header__links a {
    position: relative;
    display: block;
    padding: 9px 0 13px;
    white-space: nowrap;
}
#masthead .drv-theme-header__links a:hover,
#masthead .drv-theme-header__links a:focus-visible,
#masthead .drv-theme-header__mobile-links a:hover,
#masthead .drv-theme-header__mobile-links a:focus-visible {
    color: #d36228;
}
#masthead .drv-theme-header__links > .current-menu-item > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    background: #d36228;
}
#masthead .drv-theme-header__links .sub-menu .current-menu-item > a::after,
.drv-dropdown .drv-dropdown__menu a[aria-current="page"]::after { content: none !important; }
/* WordPress supplies nested menu markup; show it on hover and keyboard focus. */
#masthead .drv-theme-header__links > .menu-item-has-children { position: relative; }
#masthead .drv-theme-header__links .sub-menu,
.drv-dropdown__menu {
    display: none;
    position: absolute;
    z-index: 50;
    top: 100%;
    left: -18px;
    min-width: 210px;
    margin: 0;
    padding: 10px 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
#masthead .drv-theme-header__links .sub-menu { list-style: none; }
#masthead .drv-theme-header__links .menu-item-has-children:hover > .sub-menu,
#masthead .drv-theme-header__links .menu-item-has-children:focus-within > .sub-menu,
#masthead .drv-theme-header__links .menu-item-has-children.is-open > .sub-menu,
.drv-dropdown:hover > .drv-dropdown__menu,
.drv-dropdown:focus-within > .drv-dropdown__menu,
.drv-dropdown.is-open > .drv-dropdown__menu { display: block; }
#masthead .drv-theme-header__links .sub-menu a,
.drv-dropdown.drv-dropdown .drv-dropdown__menu a {
    display: block;
    padding: 11px 18px;
    color: #111821 !important;
    font: var(--drv-nav-weight) var(--drv-nav-size)/1.25 var(--drv-font-family);
    text-decoration: none;
    white-space: nowrap;
}
#masthead .drv-theme-header__links .sub-menu a:hover,
#masthead .drv-theme-header__links .sub-menu a:focus-visible,
.drv-dropdown.drv-dropdown .drv-dropdown__menu a:hover,
.drv-dropdown.drv-dropdown .drv-dropdown__menu a:focus-visible { color: #d36228 !important; }
#masthead .drv-theme-header__links .sub-menu .current-menu-item > a,
#masthead .drv-theme-header__mobile-links .sub-menu .current-menu-item > a,
.drv-dropdown.drv-dropdown .drv-dropdown__menu a[aria-current="page"] { color: #d36228 !important; }
.drv-dropdown { position: relative; }
#masthead .drv-theme-header__mobile {
    display: none;
}
#masthead + .site-breadcrumbs {
    display: none;
}
@media (max-width: 1100px) {
    #masthead .drv-theme-header__nav {
        display: none;
    }
    #masthead .drv-theme-header__mobile {
        position: relative;
        display: block;
        color: #111821;
        font-family: var(--drv-font-family);
        font-weight: 700;
    }
    #masthead .drv-theme-header__mobile summary {
        cursor: pointer;
    }
    #masthead .drv-theme-header__mobile-links {
        position: absolute;
        z-index: 10;
        top: 100%;
        right: 0;
        min-width: 190px;
        margin: 10px 0 0;
        padding: 12px 18px;
        background: #fff;
        list-style: none;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    }
    #masthead .drv-theme-header__mobile-links a {
        display: block;
        padding: 9px 0;
    }
    #masthead .drv-theme-header__mobile-links .sub-menu {
        position: static;
        display: block;
        margin: 0 0 5px 12px;
        padding: 0 0 0 12px;
        border-left: 1px solid #ddd;
        background: transparent;
        list-style: none;
        box-shadow: none;
    }
    body.drv-header-dark #masthead .drv-theme-header__mobile-links .sub-menu a { color: #fff !important; }
}
details nav[aria-label="Mobile navigation"] .drv-dropdown__menu {
    position: static;
    display: block;
    min-width: 0;
    margin: 0 0 6px 12px;
    padding: 0 0 0 10px;
    border-left: 1px solid #ddd;
    background: transparent;
    box-shadow: none;
}
details nav[aria-label="Mobile navigation"] .drv-dropdown__menu a { padding: 7px 4px; font-size: 14px; }
.drv-contact__mobile-menu .drv-dropdown.drv-dropdown .drv-dropdown__menu a,
.drv-events__mobile-menu .drv-dropdown.drv-dropdown .drv-dropdown__menu a { color: #fff !important; }
body.drv-header-dark #masthead .drv-theme-header__mobile-links .sub-menu .current-menu-item > a,
.drv-contact__mobile-menu .drv-dropdown.drv-dropdown .drv-dropdown__menu a[aria-current="page"],
.drv-events__mobile-menu .drv-dropdown.drv-dropdown .drv-dropdown__menu a[aria-current="page"] { color: #d36228 !important; }
@media (max-width: 760px) {
    #masthead .drv-theme-header__inner {
        width: min(calc(100% - 32px), 620px);
        min-height: 88px;
    }
}

@media (max-width: 760px) {
    :root {
        --drv-page-title-size: clamp(36px, 8vw, 44px);
        --drv-intro-size: 14px;
    }
}

/* Keep the transparent header content above the overlapping homepage hero. */
.home #masthead > .elementor > .elementor-section > .elementor-container {
	z-index: 1;
}

section.elementor-section.elementor-top-section.elementor-element.elementor-element-ba9343a.elementor-section-boxed.elementor-section-height-default.elementor-section-height-default {
    padding: 0;
    margin-top: 24px;
}

/* Use Raleway for headings across theme and Elementor content. */
body :is(h1, h2, h3, h4, h5, h6),
body .elementor-heading-title {
    font-family: var(--drv-font-family) !important;
}

/* Keep the redesigned headings at Raleway Bold; preserve the FAQ heading's regular text. */
body .drv-hero h1,
body .drv-intro h2,
body .drv-range-intro h2,
body .drv-faq-heading strong,
body .drv-about__story h1,
body .drv-resources__story h1,
body .drv-global-footer__heading {
    font-weight: 700;
}
