/* ================================================
   TOP LEVEL MENU - RED
================================================ */
/* Default nav color */
.main-navigation ul > li > a.menu-link .text-wrap {
    color: #9B2335 !important;
}

/* Hover — black */
.main-navigation ul > li > a.menu-link:hover .text-wrap {
    color: #000000 !important;
}

/* Active page — black */
.main-navigation ul > li.current-menu-item > a.menu-link .text-wrap,
.main-navigation ul > li.current-menu-ancestor > a.menu-link .text-wrap {
    color: #000000 !important;
}

/* ================================================
   MEGA MENU CONTAINER
================================================ */
ul.megamenu.col-5 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding: 25px 40px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border-top: 3px solid #F0A500 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    top: 100% !important;
}

/* Show on hover */
.main-navigation ul li:hover > ul.megamenu.col-5,
.main-navigation ul li.sfHover > ul.megamenu.col-5 {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ================================================
   EACH COLUMN
================================================ */
ul.megamenu.col-5 > li {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    border-right: 1px solid #f0f0f0 !important;
    overflow: visible !important;
}

ul.megamenu.col-5 > li:last-child {
    border-right: none !important;
}

/* ================================================
   COLUMN HEADINGS - RED UPPERCASE
================================================ */
ul.megamenu.col-5 > li > a.menu-link {
    display: block !important;
    padding-bottom: 10px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid #F0A500 !important;
}

ul.megamenu.col-5 > li > a.menu-link .text-wrap {
    color: #9B2335 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: normal !important;
    word-break: break-word !important;
}

ul.megamenu.col-5 > li > a.menu-link .nav-arrow {
    display: none !important;
}

/* ================================================
   SUB MENU STATIC
================================================ */
ul.megamenu.col-5 > li > ul.sub-menu {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
}

ul.megamenu.col-5 > li.dropdown:hover > ul.sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ================================================
   SUB ITEMS
================================================ */
ul.megamenu.col-5 > li > ul.sub-menu > li > a.menu-link {
    display: flex !important;
    align-items: center !important;
    padding: 4px 0 !important;
    background: transparent !important;
}

ul.megamenu.col-5 > li > ul.sub-menu > li > a.menu-link .text-wrap {
    color: #1a1a1a !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
}

ul.megamenu.col-5 > li > ul.sub-menu > li > a.menu-link .text-wrap::before {
    content: "› " !important;
    color: #9B2335 !important;
    font-size: 16px !important;
    margin-right: 4px !important;
    flex-shrink: 0 !important;
}

ul.megamenu.col-5 > li > ul.sub-menu > li > a.menu-link:hover .text-wrap {
    color: #9B2335 !important;
}

/* ================================================
   REMOVE BORDERS FROM NESTED MENUS
================================================ */
.main-navigation ul ul {
    border-top: none !important;
}

/* ================================================
   PREVENT OVERFLOW
================================================ */
body {
    overflow-x: hidden !important;
}

/* ================================================
  

/* ================================================
   MEGA MENU SHOW/HIDE
================================================ */
.main-navigation ul li ul.megamenu.col-5 {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.main-navigation ul li.mega-open > ul.megamenu.col-5 {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.main-navigation ul li:hover > ul.megamenu.col-5,
.main-navigation ul li.sfHover > ul.megamenu.col-5 {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.main-navigation ul li.mega-open > ul.megamenu.col-5 {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ================================================
   MOBILE HAMBURGER & SEARCH - MOBILE ONLY
================================================ */
@media (max-width: 992px) {
    /* Make hamburger bigger and red */
    .mobile-menu i.fa-bars {
        font-size: 26px !important;
        color: #9B2335 !important;
    }

    /* Make search icon bigger and red */
    .search-icon-dropdown i.icon-magnifier {
        font-size: 22px !important;
        color: #9B2335 !important;
    }

    /* Remove backgrounds */
    .mobile-menu,
    .search-icon-dropdown {
        background: transparent !important;
        border: none !important;
        padding: 5px !important;
    }

    /* Space between icons */
    .oceanwp-mobile-menu-icon {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
    }

    /* Logo size on mobile */
    #site-logo img {
        max-width: 130px !important;
        height: auto !important;
    }

    /* Header padding on mobile */
    #site-header-inner {
        padding: 10px 15px !important;
    }
}

/* Hide hamburger on desktop */
@media (min-width: 993px) {
    .oceanwp-mobile-menu-icon {
        display: none !important;
    }
}
/* ================================================
   HEADER DIVIDER
================================================ */
.header-divider {
    color: #e0e0e0 !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
}

/* ================================================
   HEADER PHONE
================================================ */
a.header-phone {
    color: #1a1a1a !important;
    font-size: 13px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

a.header-phone i {
    color: #9B2335 !important;
}

a.header-phone:hover {
    color: #9B2335 !important;
}

/* ================================================
   HEADER BUTTON
================================================ */
/* Fix button height and alignment */
a.header-btn {
    background-color: #9B2335 !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    font-family: Arial, sans-serif !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: 3px solid #F0A500 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border-radius: 5px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    align-self: center !important;
    height: auto !important;
    line-height: normal !important;
    transition: all 0.3s ease !important;
}

/* Fix after header content alignment */
.after-header-content {
    align-self: center !important;
    height: auto !important;
}

.after-header-content-inner {
    height: auto !important;
    align-items: center !important;
}
/* ================================================
   HEADER RIGHT WRAPPER
================================================ */
.header-custom-right {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    white-space: nowrap !important;
    width: auto !important;
    flex: 0 0 auto !important;
}

/* ================================================
   AFTER HEADER CONTENT
================================================ */
.after-header-content,
.after-header-content-inner {
    width: auto !important;
    flex: 0 0 auto !important;
}

/* ================================================
   HIDE ON MOBILE
================================================ */
@media (max-width: 992px) {
    .header-custom-right {
        display: none !important;
    }
}


/* ── WPFORMS MATCH CONTACT SECTION ── */

/* Form title */
.wpforms-container .wpforms-head-container {
    margin-bottom: 24px !important;
}

/* Labels */
.wpforms-field-label {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    color: #1a1a1a !important;
    margin-bottom: 6px !important;
}

/* All inputs, select, textarea */
.wpforms-field input,
.wpforms-field select,
.wpforms-field textarea {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 5px !important;
    padding: 11px 14px !important;
    color: #1a1a1a !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition: border-color 0.25s, box-shadow 0.25s !important;
}

/* Focus */
.wpforms-field input:focus,
.wpforms-field select:focus,
.wpforms-field textarea:focus {
    border-color: #C5972A !important;
    box-shadow: 0 0 0 3px rgba(197,151,42,0.12) !important;
    outline: none !important;
}

/* Textarea height */
.wpforms-field textarea {
    min-height: 130px !important;
    resize: vertical !important;
}

/* Submit button */
.wpforms-submit-container .wpforms-submit {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.8px !important;
    text-transform: uppercase !important;
    background: #9B2335 !important;
    color: #ffffff !important;
    border: 2px solid #9B2335 !important;
    border-bottom: 3px solid #C5972A !important;
    border-radius: 5px !important;
    padding: 13px 32px !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background 0.25s, transform 0.2s !important;
}
.wpforms-submit-container .wpforms-submit:hover {
    background: #7d1b29 !important;
    transform: translateY(-2px) !important;
}

/* Required asterisk gold */
.wpforms-required-label {
    color: #C5972A !important;
}

/* Error messages */
.wpforms-error {
    color: #9B2335 !important;
    font-size: 11px !important;
    font-family: 'Montserrat', sans-serif !important;
    margin-top: 4px !important;
}

/* Success confirmation */
.wpforms-confirmation-container-full {
    background: #fdf3e0 !important;
    border-left: 4px solid #C5972A !important;
    border-radius: 5px !important;
    padding: 16px 20px !important;
    font-family: 'Montserrat', sans-serif !important;
    color: #1a1a1a !important;
    font-size: 13px !important;
}
.elementor-button {
    border-bottom: 3px solid #C5972A !important;
}

/* KEEP header bottom gold border */
#site-header {
    border-bottom: 3px solid #C5972A !important;
}

/* Active menu item gold underline */
.main-navigation ul > li.current-menu-item > a,
.main-navigation ul > li.current-menu-ancestor > a {
    color: #9B2335 !important;
}

.main-navigation ul > li.current-menu-item,
.main-navigation ul > li.current-menu-ancestor {
    position: relative;
}

.main-navigation ul > li.current-menu-item::after,
.main-navigation ul > li.current-menu-ancestor::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #C5972A;
    border-radius: 2px;
}

/* Allow custom fonts to override — exclude icon fonts */
.elementor-widget-text-editor *:not([class*="fa-"]):not([class*="icon"]) {
    font-family: inherit;
}

/* Protect Font Awesome icons */
.fa, .fas, .far, .fal, .fab,
[class*=" fa-"], [class^="fa-"],
.simple-line-icons,
[class*=" icon-"], [class^="icon-"] {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'Simple-Line-Icons' !important;
}
/* Remove OceanWP default dropdown arrow from Services */
.main-navigation ul > li > a.menu-link .nav-arrow {
    display: none !important;
}

/* Remove underline from sub menu items */
.main-navigation ul ul li::after,
.main-navigation ul ul li > a::after,
ul.megamenu.col-5 li::after,
ul.megamenu.col-5 > li::after,
ul.megamenu.col-5 ul li::after {
    display: none !important;
    content: none !important;
}

/* Only show underline on TOP level items */
.main-navigation ul > li.current-menu-ancestor::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #C5972A;
    border-radius: 2px;
}

/* ── CUSTOM ESC TOPBAR STYLES ── */
.esc-topbar {
    background: #9B2335;
    padding: 8px 0;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
}
.esc-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ── SOCIAL ICONS ── */
.esc-topbar-social { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.esc-topbar-social a {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none;
    transition: background 0.2s;
}
.esc-topbar-social a:hover { background: #C5972A; }
.esc-topbar-social a svg { width: 15px; height: 15px; }
.esc-topbar-social a.ig svg {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── MARQUEE — desktop only ── */
.esc-topbar-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.esc-topbar-marquee::before,
.esc-topbar-marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}
.esc-topbar-marquee::before {
    left: 0;
    background: linear-gradient(to right, #9B2335, transparent);
}
.esc-topbar-marquee::after {
    right: 0;
    background: linear-gradient(to left, #9B2335, transparent);
}
.esc-topbar-marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}
.esc-topbar-marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.esc-topbar-marquee-track span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.esc-topbar-marquee-track span::before {
    content: '•';
    color: #C5972A;
    font-size: 16px;
}

/* ── LANGUAGE ── */
.esc-topbar-lang { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.esc-topbar-lang a {
    font-size: 13px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
    padding: 2px 6px;
    border-radius: 3px;
}
.esc-topbar-lang a:hover,
.esc-topbar-lang a.active { color: #C5972A; }
.esc-topbar-lang span { color: rgba(255,255,255,0.3); font-size: 13px; }

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
    .esc-topbar-marquee { display: none !important; }
    .esc-topbar-inner { padding: 0 24px; }
}
@media (max-width: 640px) {
    .esc-topbar-marquee { display: none !important; }
    .esc-topbar-inner { padding: 0 16px; }
    .esc-topbar-social a { width: 26px; height: 26px; }
    .esc-topbar-social a svg { width: 13px; height: 13px; }
    .esc-topbar-lang a { font-size: 11px; }
}
/* Force SVGs to display properly inside the top bar links */
.esc-topbar-social a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.esc-topbar-social a svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    overflow: visible !important;
}

#scroll-top.scroll-top-right {
    right: auto !important;
    left: 20px !important;
}
#scroll-top.scroll-top-right {
    right: auto !important;
    left: 20px !important;
    background-color: #9B2335 !important;
    border-color: #9B2335 !important;
    color: #fff !important;
}

#scroll-top.scroll-top-right:hover {
    background-color: #C5972A !important;
    border-color: #C5972A !important;
    color: #fff !important;
}
#escDropdownTrigger:hover #escDropdownLabel {
  color: #ffffff !important;
}

#escDropdownTrigger:hover {
  background: #9B2335 !important;
  border-color: #9B2335 !important;
}

/* ================================================
   ARABIC RTL MENU STYLES
================================================ */

/* RTL body direction */
[lang="ar"] body,
[lang="ar"] .main-navigation {
    direction: rtl !important;
}

/* Top level menu items - flip order */
[lang="ar"] .main-navigation ul {
    direction: rtl !important;
}

/* Nav link text - same red color */
[lang="ar"] .main-navigation ul > li > a.menu-link .text-wrap {
    color: #9B2335 !important;
    font-family: 'Tajawal', sans-serif !important;
    letter-spacing: 0 !important;
}

/* ================================================
   ARABIC MEGA MENU CONTAINER
================================================ */
[lang="ar"] ul.megamenu.col-5 {
    direction: rtl !important;
    right: 0 !important;
    left: auto !important;
}

/* ================================================
   ARABIC MEGA MENU COLUMNS
================================================ */
[lang="ar"] ul.megamenu.col-5 > li {
    border-right: none !important;
    border-left: 1px solid #f0f0f0 !important;
}

[lang="ar"] ul.megamenu.col-5 > li:last-child {
    border-left: none !important;
}

/* ================================================
   ARABIC COLUMN HEADINGS
================================================ */
[lang="ar"] ul.megamenu.col-5 > li > a.menu-link .text-wrap {
    font-family: 'Tajawal', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #9B2335 !important;
}

/* ================================================
   ARABIC SUB ITEMS
================================================ */
[lang="ar"] ul.megamenu.col-5 > li > ul.sub-menu > li > a.menu-link .text-wrap {
    font-family: 'Tajawal', sans-serif !important;
    font-size: 13.5px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Flip the › arrow to face left for RTL */
[lang="ar"] ul.megamenu.col-5 > li > ul.sub-menu > li > a.menu-link .text-wrap::before {
    content: "‹ " !important;
    margin-right: 0 !important;
    margin-left: 4px !important;
}

/* ================================================
   ARABIC HEADER BUTTON
================================================ */
[lang="ar"] a.header-btn {
    font-family: 'Tajawal', sans-serif !important;
    letter-spacing: 0 !important;
    font-size: 13px !important;
    border-bottom: 3px solid #F0A500 !important;
}

/* ================================================
   ARABIC HEADER PHONE
================================================ */
[lang="ar"] a.header-phone {
    font-family: 'Tajawal', sans-serif !important;
    direction: ltr !important; /* keep phone number LTR */
}

/* ================================================
   ARABIC HEADER RIGHT - FLIP TO LEFT
================================================ */
[lang="ar"] .header-custom-right {
    flex-direction: row-reverse !important;
}

/* ================================================
   ARABIC MOBILE MENU
================================================ */
@media (max-width: 992px) {
    [lang="ar"] #site-header-inner {
        flex-direction: row-reverse !important;
    }

    [lang="ar"] .oceanwp-mobile-menu-icon {
        flex-direction: row-reverse !important;
    }
}

/* ================================================
   ARABIC WPFORMS
================================================ */
[lang="ar"] .wpforms-field-label {
    font-family: 'Tajawal', sans-serif !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 13px !important;
    text-align: right !important;
}

[lang="ar"] .wpforms-field input,
[lang="ar"] .wpforms-field select,
[lang="ar"] .wpforms-field textarea {
    font-family: 'Tajawal', sans-serif !important;
    text-align: right !important;
    direction: rtl !important;
}

[lang="ar"] .wpforms-submit-container .wpforms-submit {
    font-family: 'Tajawal', sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-size: 14px !important;
}

/* ================================================
   ARABIC CARET ICON - FLIP
================================================ */
[lang="ar"] .mega-menu-caret {
    margin-left: 0 !important;
    margin-right: 4px !important;
}

/* ================================================
   ARABIC TOPBAR
================================================ */
[lang="ar"] .esc-topbar-lang {
    order: -1 !important; /* move to left side */
}

[lang="ar"] .esc-topbar-social {
    order: 1 !important; /* move to right side */
}

[lang="ar"] .esc-topbar-inner {
    flex-direction: row-reverse !important;
}