/* ==========================================================================
   MASCOM GLOBAL STOREFRONT CORE STYLESHEET
   ========================================================================== */

/* 1. LOCAL GILROY TYPOGRAPHY DEFINITIONS (with font-display: swap) */
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy/SVN-Gilroy-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy/SVN-Gilroy-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy/SVN-Gilroy-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy/SVN-Gilroy-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy/SVN-Gilroy-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy/SVN-Gilroy-Heavy.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* 2. BASE ROOT & TYPOGRAPHY */
:root {
    --primary-red: #dc2626;
    --primary-dark: #0f172a;
    --accent-red: #ef4444;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100%;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Phudu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: -0.01em;
}

/* 3. HEADER SCROLLED STATE */
#main-header {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#main-header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-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,
#main-header.header-scrolled nav .nav-link {
    color: #1e293b !important;
}

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

#main-header.header-scrolled nav button.mobile-menu-btn,
#main-header.header-scrolled #mobile-menu-icon {
    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;
}

/* 4. UTILITIES & SCROLLBAR */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 5. RESPONSIVE BLOG & POST CONTENT FIXES */
.post-content {
    word-break: break-word;
    overflow-wrap: break-word;
}

.post-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.75rem;
    margin: 1.5rem auto;
}

.post-content table {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content iframe {
    max-width: 100% !important;
    border-radius: 0.75rem;
}

/* 6. MOBILE FLOATING ACTION MENU */
@media (max-width: 767px) {
    .floating-fab-menu {
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    }
    
    .floating-fab-item {
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    }
}

/* 7. GTRANSLATE LANGUAGE SWITCHER STYLING */
.gtranslate_wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 130px;
    height: 32px;
    z-index: 9999;
}

#gt_float_wrapper {
    position: relative !important;
    width: 100% !important;
}

.gt_float_switcher {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 130px !important;
    font-family: 'Gilroy', -apple-system, sans-serif !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    z-index: 99999 !important;
}

#main-header.header-scrolled .gt_float_switcher {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.gt_float_switcher .gt-selected {
    background: transparent !important;
    cursor: pointer !important;
}

.gt_float_switcher .gt-selected .gt-current-lang {
    padding: 5px 8px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#main-header.header-scrolled .gt_float_switcher .gt-selected .gt-current-lang {
    color: #0f172a !important;
}

.gt_float_switcher img {
    width: 18px !important;
    height: 13px !important;
    border-radius: 2px !important;
    margin: 0 !important;
}

.gt_float_switcher .gt_options {
    background: rgba(15, 23, 42, 0.98) !important;
    max-height: 240px !important;
    overflow-y: auto !important;
}

#main-header.header-scrolled .gt_float_switcher .gt_options {
    background: #ffffff !important;
}

.gt_float_switcher .gt_options a {
    padding: 6px 10px !important;
    color: #cbd5e1 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
}

#main-header.header-scrolled .gt_float_switcher .gt_options a {
    color: #334155 !important;
}

.gt_float_switcher .gt_options a:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
}


/* 8. SAFETY OVERRIDE: Ensure all content is 100% visible and never stuck invisible */
[data-sr-id],
.sr-reveal,
.sr-hero-title,
.sr-hero-sub,
.sr-section-header,
.product-item,
.product-panel,
.gallery-card {
    visibility: visible !important;
    opacity: 1 !important;
}


