/* ==========================================================================
   MMD RUSSIA STEEL - MAIN STYLESHEET
   Design System, Header, Navbar, Megamenu, Mobile Drawer, and Footer
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
    /* Brand Colors matching MMD Russia Steel Logo (Metallic Silver + Royal Blue) */
    --rs-primary: #005bb5;
    --rs-primary-hover: #004892;
    --rs-primary-light: #e6f0fa;
    --rs-primary-glow: rgba(0, 91, 181, 0.25);
    
    --rs-accent-blue: #0284c7;
    --rs-accent-cyan: #0ea5e9;
    --rs-accent-green: #10b981;
    
    /* Dark / Industrial Slate Palette */
    --rs-dark-bg: #070d18;
    --rs-dark-surface: #0b1526;
    --rs-dark-card: #101c33;
    --rs-dark-border: #1e293b;
    --rs-dark-muted: #94a3b8;
    
    /* Light Theme & Neutrals */
    --rs-light-bg: #f8fafc;
    --rs-light-surface: #ffffff;
    --rs-text-primary: #0f172a;
    --rs-text-secondary: #475569;
    --rs-text-muted: #64748b;
    --rs-border-light: #e2e8f0;
    --rs-border-subtle: #f1f5f9;
    
    /* Typography */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    
    /* Layout & Spacing */
    --max-width: 1320px;
    --header-height: 76px;
    --topbar-height: 40px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Transitions & Shadows */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-dropdown: 0 20px 40px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.8);
}

/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--rs-text-primary);
    background-color: var(--rs-light-bg);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

#header-placeholder {
    display: contents;
}

main {
    flex: 1;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    background: transparent;
}

/* ==========================================================================
   TOP INFO BAR
   ========================================================================== */
.topbar {
    background-color: var(--rs-dark-surface);
    color: #cbd5e1;
    font-size: 0.8125rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    z-index: 1001;
}

.topbar-marquee-clone {
    display: none;
}

.topbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 7px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.topbar-item i {
    color: #38bdf8;
    font-size: 0.85rem;
}

.topbar-item a {
    color: #cbd5e1;
}

.topbar-item a:hover {
    color: #ffffff;
}

.topbar-divider {
    width: 1px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.15);
}

.topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 91, 181, 0.25);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.topbar-badge i {
    color: #38bdf8;
}

.topbar-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    cursor: pointer;
}

.topbar-lang:hover {
    color: #ffffff;
}

/* ==========================================================================
   MAIN STICKY HEADER & NAVBAR
   ========================================================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--rs-border-light);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 25px rgba(15, 23, 42, 0.1);
    border-bottom-color: rgba(203, 213, 225, 0.8);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Brand Logo - Big & Sharp */
.brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 4px 0;
    text-decoration: none;
}

.brand-logo-img {
    height: 46px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(0, 91, 181, 0.25));
}

/* Desktop Nav Menu */
.desktop-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #1e293b;
    border-radius: 8px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link span {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 14px;
    right: 14px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--rs-primary), var(--rs-accent-cyan));
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--rs-primary);
    background-color: rgba(0, 91, 181, 0.04);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--rs-primary);
    background-color: rgba(0, 91, 181, 0.07);
}

.nav-link.active::after {
    transform: scaleX(1);
}

.nav-arrow {
    font-size: 0.65rem;
    color: #94a3b8;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
    color: var(--rs-primary);
}

.nav-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    margin-left: 2px;
}

.brochure-icon {
    color: #e11d48;
    font-size: 0.85rem;
}

/* ==========================================================================
   DROPDOWN MENUS (Desktop)
   ========================================================================== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background-color: var(--rs-light-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dropdown);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1010;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Mega Dropdown (Products) */
.mega-dropdown {
    width: 680px;
    left: -120px;
    transform: translateY(12px);
}

.nav-item:hover .mega-dropdown {
    transform: translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dropdown-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background-color: #ffffff;
    border: 1px solid var(--rs-border-subtle);
    transition: var(--transition-fast);
}

.dropdown-card:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 91, 181, 0.08);
}

.dropdown-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--rs-primary-light), #e0f2fe);
    color: var(--rs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.dropdown-card:hover .dropdown-icon {
    background: var(--rs-primary);
    color: #ffffff;
}

.dropdown-info h4 {
    font-size: 0.885rem;
    font-weight: 700;
    color: var(--rs-text-primary);
    margin-bottom: 2px;
}

.dropdown-info p {
    font-size: 0.775rem;
    color: var(--rs-text-muted);
    line-height: 1.35;
}

.dropdown-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--rs-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--rs-text-secondary);
}

.dropdown-footer i {
    color: var(--rs-primary);
    margin-right: 4px;
}

.dropdown-view-all {
    font-weight: 700;
    color: var(--rs-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-view-all:hover {
    color: var(--rs-primary-hover);
    text-decoration: underline;
}

/* Simple Dropdown (Careers) */
.simple-dropdown {
    min-width: 260px;
    padding: 10px;
}

.simple-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rs-text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.simple-dropdown-link i {
    color: var(--rs-primary);
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}

.simple-dropdown-link:hover {
    background-color: #f1f5f9;
    color: var(--rs-primary);
    transform: translateX(4px);
}

/* ==========================================================================
   HEADER ACTIONS & CTA BUTTONS
   ========================================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.btn-quote,
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--rs-primary) 0%, #004282 100%);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 11px 24px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px var(--rs-primary-glow);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.btn-quote i,
.btn-contact i {
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}

.btn-quote:hover,
.btn-contact:hover {
    background: linear-gradient(135deg, #006adc 0%, #004c99 100%);
    box-shadow: 0 6px 22px rgba(0, 91, 181, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-quote:hover i,
.btn-contact:hover i {
    transform: translateX(4px);
}

/* Mobile Toggle Hamburger */
.mobile-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 38px;
    height: 38px;
    padding: 9px 7px;
    border-radius: var(--radius-sm);
    background-color: #f1f5f9;
    border: 1px solid var(--rs-border-light);
    transition: var(--transition-fast);
}

.mobile-toggle-btn .bar {
    width: 100%;
    height: 2.5px;
    background-color: #1e293b;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.mobile-toggle-btn:hover {
    background-color: #e2e8f0;
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER
   ========================================================================== */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background-color: #ffffff;
    z-index: 2001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--rs-border-light);
    background-color: #f8fafc;
}

.mobile-logo-img {
    height: 56px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.mobile-close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: #ffffff;
    border: 1px solid var(--rs-border-light);
    color: #475569;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.mobile-close-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.mobile-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    color: var(--rs-primary);
    font-size: 1rem;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background-color: var(--rs-primary-light);
    color: var(--rs-primary);
}

.mobile-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-dropdown-header:hover {
    background-color: #f1f5f9;
}

.mobile-arrow {
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform var(--transition-fast);
}

.mobile-dropdown-item.open .mobile-arrow {
    transform: rotate(180deg);
    color: var(--rs-primary);
}

.mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0 10px 36px;
}

.mobile-dropdown-item.open .mobile-submenu {
    display: flex;
}

.mobile-sublink {
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.mobile-sublink:hover {
    color: var(--rs-primary);
    background-color: #f8fafc;
}

.btn-quote-block {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
}

.mobile-drawer-contact {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--rs-border-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.825rem;
    color: var(--rs-text-secondary);
}

.mobile-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-contact-row i {
    color: var(--rs-primary);
    font-size: 0.9rem;
}

/* ==========================================================================
   PRE-FOOTER CTA BANNER
   ========================================================================== */
.pre-footer-cta {
    background: linear-gradient(135deg, #0c1829 0%, #061122 100%);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 24px;
    overflow: hidden;
}

.pre-footer-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 91, 181, 0.2) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.pre-footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.pre-footer-tag {
    display: inline-block;
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.pre-footer-text h3 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.pre-footer-text p {
    color: #94a3b8;
    font-size: 0.95rem;
    max-width: 650px;
}

.pre-footer-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--rs-primary) 0%, #004c99 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 91, 181, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-fast);
}

.btn-cta-primary:hover {
    background: linear-gradient(135deg, #006adc 0%, #005bb5 100%);
    box-shadow: 0 6px 22px rgba(0, 91, 181, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    transition: var(--transition-fast);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   MAIN SITE FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--rs-dark-bg);
    color: #cbd5e1;
    position: relative;
    padding-top: 60px;
    border-top: 1px solid #111e33;
}

.footer-top-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #005bb5 0%, #38bdf8 50%, #94a3b8 100%);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.35fr 1.1fr;
    gap: 45px;
    padding-bottom: 50px;
}

/* Footer Brand Column */
.footer-logo-link {
    display: inline-block;
    margin-bottom: 18px;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transition: transform var(--transition-fast);
}

.footer-logo-img:hover {
    transform: scale(1.02);
}

.footer-bio {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.cert-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.725rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.cert-pill i {
    color: #38bdf8;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: var(--rs-primary);
    color: #ffffff;
    border-color: var(--rs-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--rs-primary-glow);
}

/* Footer Heading */
.footer-heading {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: var(--rs-primary);
    border-radius: 2px;
}

/* Footer Lists */
.footer-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 12px;
}

.footer-links li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    transition: var(--transition-fast);
}

.footer-links li a i {
    font-size: 0.65rem;
    color: #64748b;
    transition: transform var(--transition-fast);
}

.footer-links li a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-links li a:hover i {
    color: #38bdf8;
}

/* Footer Contact List */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.835rem;
}

.contact-icon {
    color: #38bdf8;
    font-size: 0.95rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-item p, .contact-item a {
    color: #94a3b8;
    line-height: 1.4;
}

.contact-item a:hover {
    color: #38bdf8;
}

/* Footer Newsletter */
.newsletter-desc {
    font-size: 0.835rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 16px;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.newsletter-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.newsletter-input-group .input-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 0.9rem;
    pointer-events: none;
}

.newsletter-input-group input {
    width: 100%;
    padding: 12px 46px 12px 40px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast);
}

.newsletter-input-group input:focus {
    border-color: #38bdf8;
    background-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.newsletter-input-group input::placeholder {
    color: #64748b;
}

.btn-newsletter {
    position: absolute;
    right: 6px;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--rs-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.btn-newsletter:hover {
    background: #006adc;
    transform: scale(1.05);
}

.newsletter-message {
    font-size: 0.775rem;
    min-height: 16px;
}

.newsletter-message.success {
    color: #34d399;
}

.newsletter-message.error {
    color: #f87171;
}

.newsletter-trust {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.735rem;
    color: #64748b;
}

.newsletter-trust i {
    color: #10b981;
}

/* ==========================================================================
   FOOTER BOTTOM BAR
   ========================================================================== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8125rem;
    color: #64748b;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #94a3b8;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.dot-sep {
    color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   BACK TO TOP FLOATING BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--rs-primary) 0%, #004282 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 16px var(--rs-primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #006adc 0%, #005bb5 100%);
    box-shadow: 0 6px 20px rgba(0, 91, 181, 0.5);
    transform: translateY(-3px);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
    .mega-dropdown {
        width: 580px;
        left: -80px;
    }
    
    .footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    }
    
    .footer-newsletter-col {
        grid-column: span 4;
        max-width: 520px;
    }
}

@media (max-width: 992px) {
    :root {
        --header-height: 72px;
    }

    .desktop-nav {
        display: none;
    }
    
    .mobile-toggle-btn {
        display: flex;
    }

    .brand-logo-img {
        height: 42px;
    }
    
    .pre-footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
    
    .footer-brand-col {
        grid-column: span 2;
    }
    
    .footer-newsletter-col {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Mobile Topbar Moving Horizontal Marquee */
    .topbar {
        overflow: hidden !important;
        white-space: nowrap !important;
        position: relative;
        width: 100%;
        max-width: 100vw;
        font-size: 0.775rem;
    }

    .topbar-container {
        display: flex !important;
        align-items: center;
        width: max-content !important;
        max-width: none !important;
        padding: 7px 0 !important;
        margin: 0 !important;
        gap: 24px;
        animation: topbarMarqueeScroll 28s linear infinite;
        will-change: transform;
    }

    .topbar:hover .topbar-container,
    .topbar:active .topbar-container,
    .topbar-container:hover,
    .topbar-container:active {
        animation-play-state: paused;
    }

    .topbar-left,
    .topbar-right {
        display: inline-flex !important;
        align-items: center;
        flex-shrink: 0;
        flex-wrap: nowrap !important;
        gap: 14px;
    }

    .topbar-marquee-clone {
        display: inline-flex !important;
        align-items: center;
        gap: 24px;
        flex-shrink: 0;
    }

    .topbar-marquee-clone .topbar-left,
    .topbar-marquee-clone .topbar-right {
        display: inline-flex !important;
        align-items: center;
        flex-shrink: 0;
        flex-wrap: nowrap !important;
        gap: 14px;
    }

    .topbar-divider {
        display: inline-block !important;
        width: 1px;
        height: 12px;
        background-color: rgba(255, 255, 255, 0.25);
        margin: 0 4px;
        vertical-align: middle;
    }

    .topbar-item {
        display: inline-flex !important;
        align-items: center;
        white-space: nowrap !important;
        gap: 7px;
        flex-shrink: 0;
        font-size: 0.775rem;
    }

    .topbar-item a {
        display: inline !important;
        white-space: nowrap !important;
    }

    .topbar-item a + span,
    .topbar-item a + span + a {
        display: inline !important;
    }

    .topbar-badge {
        display: inline-flex !important;
        flex-shrink: 0;
        white-space: nowrap !important;
    }

    /* In mobile topbar ticker, show all items */
    .topbar .hide-mobile,
    .topbar [class*="hide-mobile"] {
        display: inline-flex !important;
    }
    .topbar a.hide-mobile,
    .topbar span.hide-mobile {
        display: inline !important;
    }

    .hide-mobile {
        display: none !important;
    }
    
    /* Header & Logo on mobile */
    .header-container {
        padding: 0 14px;
        gap: 10px;
    }

    .header-actions {
        gap: 10px;
    }

    .brand-logo-img {
        height: 36px;
        max-width: 160px;
    }
    
    .btn-quote,
    .btn-contact {
        padding: 7px 14px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .pre-footer-cta {
        padding: 36px 18px;
    }
    
    .pre-footer-text h3 {
        font-size: 1.35rem;
    }
    
    .pre-footer-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cta-primary, .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand-col, .footer-newsletter-col {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
        gap: 8px;
    }

    .brand-logo-img {
        height: 32px;
        max-width: 140px;
    }

    .header-actions {
        gap: 8px;
    }

    .btn-quote,
    .btn-contact {
        padding: 6px 11px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .mobile-toggle-btn {
        width: 35px;
        height: 35px;
        padding: 7px 5px;
    }
}

/* Ticker Keyframes for Mobile Infinite Marquee */
@keyframes topbarMarqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}


