/* ==========================================================================
   Royal Manufacture — Base Theme Overrides & Typography
   ========================================================================== */

:root {
    --rm-accent: #f26c4f;
    --rm-accent-secondary: #606da6;
    --rm-dark: #000000;
    --rm-heading: #000000;
    --rm-text: #707070;
    --rm-muted: #a1a1a1;
    --rm-border: #ebebeb;
    --rm-bg-light: #f9f9f9;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: var(--rm-text);
    background-color: #ffffff;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6,
.main-menu,
.gf-heading .heading-title,
.gf-banner .banner-title {
    font-family: 'Montserrat', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

.accent-color {
    color: var(--rm-accent-secondary);
}

.fw-black {
    font-weight: 900;
}

.fw-bold {
    font-weight: 700;
}

.fw-normal {
    font-weight: 400;
}

.fs-11 { font-size: 11px; }
.fs-13 { font-size: 13px; }
.fs-15 { font-size: 15px; }
.fs-18 { font-size: 18px; }
.letter-spacing-200 { letter-spacing: 0.2em; }
.letter-spacing-300 { letter-spacing: 0.3em; }
.line-height-28 { line-height: 28px; }
.mg-bottom-20 { margin-bottom: 20px; }
.mg-bottom-25 { margin-bottom: 25px; }
.mg-bottom-30 { margin-bottom: 30px; }
.mg-bottom-45 { margin-bottom: 45px; }

/* Header-1 & Floating Home Header */
.main-header.header-1 {
    position: relative;
    z-index: 999;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--rm-border);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.main-header.header-1.header-float {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom-color: transparent;
}

.main-header.header-1 .header-full-width .container {
    max-width: 100%;
    padding-left: 100px;
    padding-right: 100px;
}

.main-header.header-1 .header-inner {
    min-height: 100px;
    justify-content: space-between;
}

.main-header.header-1.is-sticky .header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    animation: rmSlideDown 0.35s ease;
}

.main-header.header-1.is-sticky .header-inner {
    min-height: 76px;
}

.logo-header img {
    max-height: 54px;
    width: auto;
}

/* Primary Menu */
.primary-menu {
    margin-left: 45px;
    margin-right: auto;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #707070;
    text-decoration: none;
    padding: 12px 0;
    transition: color 0.25s ease;
}

.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a {
    color: #000000;
}

.main-menu > li.current-menu-item > a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background: var(--rm-accent);
}

.x-caret::after {
    content: "\f107";
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    font-size: 12px;
}

/* Mega Menu */
.x-menu-item-mega .x-sub-menu-mega {
    position: absolute;
    top: 100%;
    left: -140px;
    min-width: 720px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--rm-border);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    padding: 30px 35px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.28s ease;
    z-index: 1050;
}

.x-menu-item-mega:hover > .x-sub-menu-mega,
.x-menu-item-mega.open > .x-sub-menu-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rm-mega-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr 0.7fr;
    gap: 28px;
}

.rm-mega-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rm-border);
}

.rm-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rm-mega-list li {
    margin-bottom: 7px;
}

.rm-mega-list a {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #777777;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.rm-mega-list a:hover,
.rm-mega-list li.active a {
    color: var(--rm-accent);
    padding-left: 4px;
}

/* Header Search Button */
.header-customize {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-customize .search-popup-link {
    font-size: 18px;
    color: #000000;
    padding: 8px;
    display: inline-block;
    transition: color 0.2s ease;
}

.header-customize .search-popup-link:hover {
    color: var(--rm-accent);
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: relative;
    z-index: 999;
    background: #ffffff;
    border-bottom: 1px solid var(--rm-border);
}

.mobile-header.header-float {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom-color: transparent;
}

.mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.mobile-header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rm-mobile-toggle-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.rm-mobile-toggle-btn .toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.rm-mobile-toggle-btn .toggle-icon span {
    display: block;
    height: 2px;
    background: #000000;
    transition: transform 0.25s ease;
}

/* Mobile Drawer */
#mobile-navigation-wrapper {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 86vw;
    height: 100vh;
    background: #0e0e0e;
    color: #888888;
    z-index: 1200;
    overflow-y: auto;
    padding: 55px 24px 30px;
    transition: right 0.32s ease;
}

#mobile-navigation-wrapper.in {
    right: 0;
}

.rm-drawer-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

#mobile-navigation-wrapper .search-form {
    position: relative;
    margin-bottom: 24px;
}

#mobile-navigation-wrapper .search-field {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #2b2b2b;
    color: #ffffff;
    padding: 10px 42px 10px 14px;
    font-size: 14px;
}

#mobile-navigation-wrapper .search-submit {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    background: none;
    border: none;
    color: #ffffff;
    padding: 0 12px;
    font-size: 0;
    cursor: pointer;
}

#mobile-navigation-wrapper .search-submit i {
    font-size: 14px;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    position: relative;
    border-bottom: 1px solid #1f1f1f;
}

.mobile-menu li a {
    display: block;
    padding: 11px 28px 11px 0;
    color: #cccccc;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.mobile-menu li a:hover {
    color: #ffffff;
}

.mobile-menu .menu-caret {
    position: absolute;
    top: 4px;
    right: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888888;
}

.mobile-menu .menu-caret::before {
    content: "\f107";
    font-family: "Font Awesome 5 Pro";
    font-size: 13px;
}

.mobile-menu .sub-menu {
    display: none;
    list-style: none;
    padding-left: 14px;
    margin: 0;
}

.canvas-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1150;
}

.canvas-overlay.in {
    display: block;
}
