/**
 * Shared storefront base styles for the Mascom Global theme.
 *
 * Only rules that every page of the theme repeats live here (typography and the
 * scrolled state of the shared fixed header). Page templates still push their
 * own <style> block afterwards, so a page-level override keeps winning.
 */

body,
nav,
header,
button,
a {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Scrolled Header Styling: White Background & Black/Dark Text */
#main-header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08) !important;
}

#main-header.header-scrolled nav ul li a {
    color: #1e293b !important;
}

#main-header.header-scrolled nav ul li a:hover {
    color: #dc2626 !important;
}

#main-header.header-scrolled nav button.lg\:hidden {
    color: #0f172a !important;
}

#main-header.header-scrolled #top-bar a,
#main-header.header-scrolled #top-bar span {
    color: #475569 !important;
}

#main-header.header-scrolled #top-bar a:hover {
    color: #dc2626 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: 'Phudu', cursive, sans-serif;
    font-weight: 600 !important;
}

/*
 * Tailwind Preflight intentionally gives h1--h6 the inherited font size.
 * These classes are added only after an editor picks a heading level, so the
 * original theme typography remains unchanged until that explicit choice.
 */
.client-content-heading-h1,
.client-content-heading-h2,
.client-content-heading-h3,
.client-content-heading-h4,
.client-content-heading-h5,
.client-content-heading-h6 {
    font-family: 'Phudu', cursive, sans-serif !important;
}

.client-content-heading-h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
}

.client-content-heading-h2 {
    font-size: clamp(2.125rem, 4vw, 3.5rem) !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
}

.client-content-heading-h3 {
    font-size: clamp(1.875rem, 3vw, 2.75rem) !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
}

.client-content-heading-h4 {
    font-size: clamp(1.5rem, 2.4vw, 2.25rem) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.client-content-heading-h5 {
    font-size: clamp(1.25rem, 2vw, 1.75rem) !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
}

.client-content-heading-h6 {
    font-size: clamp(1.125rem, 1.6vw, 1.35rem) !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}

/* Prevent Native Video Black Flash */
video {
    background: url('../images/mascom_video_thumb.jpg') center/cover no-repeat !important;
}
