/*
 * Transteceg - Elementor Overrides & Inner Pages
 * Applies design system to Elementor-built pages
 * Scoped to avoid conflicts with Elementor layout
 */

/* ============================================
   HEADER OVERRIDES
   ============================================ */

/* Top bar - dark navy background */
.whb-top-bar,
.whb-top-bar-inner,
.whb-top-bar .container {
    background-color: #0A1628 !important;
}

/* Hide icons in top bar - match homepage style */
.whb-top-bar .wd-info-box-icon {
    display: none !important;
}

/* Style info boxes like homepage */
.whb-top-bar .wd-info-box {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    color: #FFFFFF !important;
}

.whb-top-bar .wd-info-box-title {
    display: none !important;
}

.whb-top-bar .wd-info-box-text {
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Top bar text */
.whb-top-bar .wd-header-text {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14px !important;
}

.whb-top-bar .wd-header-text a {
    color: #FFFFFF !important;
}

/* Main header */
.whb-general-header {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #E8EDF5 !important;
}

/* ============================================
   FIX: Prevent design system from breaking Elementor layout
   ============================================ */

/* Reset h1-h6 margins that may conflict with Elementor */
.elementor h1, .elementor h2, .elementor h3, .elementor h4, .elementor h5, .elementor h6 {
    margin-bottom: 0 !important;
}

/* Reset p margins that may conflict with Elementor */
.elementor p {
    margin-bottom: 0 !important;
}

/* Ensure Elementor sections work properly */
.elementor-section {
    padding: 0;
}

/* Ensure Elementor columns work properly */
.elementor-column {
    width: 100%;
}

/* Ensure Elementor widgets don't get extra margins */
.elementor-widget {
    margin: 0;
}

/* ============================================
   ELEMENTOR GLOBAL OVERRIDES
   ============================================ */

/* Typography overrides - scoped to avoid layout conflicts */
.elementor-widget-heading .elementor-heading-title {
    font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', sans-serif !important;
    color: #0A1628 !important;
}

.elementor-widget-text-editor {
    font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', sans-serif !important;
    color: #5A6478 !important;
    line-height: 1.75 !important;
}

/* Button overrides */
.elementor-button,
.elementor-widget-button .elementor-button {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    border-radius: 8px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

.elementor-button:hover,
.elementor-widget-button .elementor-button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(30, 93, 171, 0.35) !important;
}

/* ============================================
   PAGE BREADCRUMBS
   ============================================ */

.woodmart-breadcrumbs {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    font-size: 0.875rem !important;
    color: #5A6478 !important;
    padding: 16px 0 !important;
}

.woodmart-breadcrumbs a {
    color: #1E5DAB !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.woodmart-breadcrumbs a:hover {
    color: #164A8A !important;
}

/* ============================================
   INNER PAGE HERO HEADERS
   ============================================ */

.wd-page-title-section {
    background: #FFFFFF !important;
    padding: 40px 0 !important;
    position: relative;
    border-bottom: 1px solid #E8EDF5;
}

.wd-page-title-section::before {
    display: none !important;
}

.wd-page-title-section .page-title {
    color: #0A1628 !important;
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    position: relative;
    z-index: 2;
    opacity: 1 !important;
    text-shadow: none !important;
}

.wd-page-title-section .wd-page-title-before {
    color: #5A6478 !important;
    font-size: 0.875rem !important;
}

.wd-page-title-section .wd-breadcrumbs {
    color: #5A6478 !important;
}

.wd-page-title-section .wd-breadcrumbs a {
    color: #1E5DAB !important;
}

/* Remove any gradient overlay on page title */
.wd-page-title-section::after {
    display: none !important;
}

/* Ensure page title container has proper background */
.wd-page-title-section .container,
.wd-page-title-section .wd-page-title-wrap {
    background: transparent !important;
}

/* ============================================
   CONTACT PAGE OVERRIDES
   ============================================ */

/* Contact info cards - scoped to page content so the header icon
   boxes (whatsapp/clock) are NOT affected and match the homepage. */
.wd-page-content .elementor-icon-box-wrapper {
    background: #F8F9FC !important;
    border: 1px solid #E8EDF5 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    transition: all 0.25s ease !important;
}

.wd-page-content .elementor-icon-box-wrapper:hover {
    box-shadow: 0 4px 16px rgba(10, 22, 40, 0.08) !important;
    border-color: #D1D5DB !important;
}

/* Icon container - light blue background (brand) */
.wd-page-content .elementor-icon-box-icon {
    background: #E8F0FE !important;
    border-radius: 12px !important;
    width: 56px !important;
    height: 56px !important;
    opacity: 1 !important;
}

/* Icon - brand blue, fully opaque */
.wd-page-content .elementor-icon-box-icon i,
.wd-page-content .elementor-icon-box-icon svg,
.wd-page-content .elementor-icon-box-icon .e-font-icon-svg {
    color: #1E5DAB !important;
    fill: #1E5DAB !important;
    font-size: 24px !important;
    opacity: 1 !important;
}

/* Remove any opacity from contact section icons */
.elementor-element .elementor-icon-box-icon,
.elementor-element .elementor-icon,
.elementor-element i[class*="fa-"],
.elementor-element i[class*="eicon-"],
.elementor-element svg {
    opacity: 1 !important;
}

/* Icon box title (page content only, not header) */
.wd-page-content .elementor-icon-box-title {
    color: #0A1628 !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
}

/* Icon box description (page content only, not header) */
.wd-page-content .elementor-icon-box-description {
    color: #5A6478 !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
}

/* Section label - orange text */
.elementor-widget-heading .elementor-heading-title.elementor-size-default {
    color: #C8A951 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Section title - dark text */
.elementor-widget-heading h2,
.elementor-widget-heading h3 {
    color: #0A1628 !important;
}

/* Form fields */
.elementor-field-group .elementor-field,
.elementor-field-textual {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    border-radius: 8px !important;
    border: 1px solid #D1D5DB !important;
    padding: 14px 16px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    background: #FFFFFF !important;
}

.elementor-field-group .elementor-field:focus,
.elementor-field-textual:focus {
    border-color: #1E5DAB !important;
    box-shadow: 0 0 0 3px rgba(30, 93, 171, 0.1) !important;
    outline: none !important;
}

/* Submit button */
.elementor-button-wrapper .elementor-button {
    background: #1E5DAB !important;
    border-radius: 8px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
    color: #FFFFFF !important;
}

.elementor-button-wrapper .elementor-button:hover {
    background: #164A8A !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(30, 93, 171, 0.35) !important;
}

/* Social icons */
.elementor-widget-social-icons .elementor-social-icons-wrapper {
    gap: 12px !important;
}

.elementor-social-icon {
    border: none !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    transition: all 0.25s ease !important;
}

.elementor-social-icon:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(10, 22, 40, 0.25) !important;
}

/* White glyph on the brand-colored circle (SVGs paint via fill) */
.elementor-social-icon svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

/* Official brand colors per network */
.elementor-social-icon-facebook  { background: #1877F2 !important; }
.elementor-social-icon-x-twitter { background: #14171A !important; }
.elementor-social-icon-linkedin  { background: #0A66C2 !important; }
.elementor-social-icon-instagram {
    background: radial-gradient(circle at 30% 110%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%) !important;
}
.elementor-social-icon-youtube   { background: #FF0000 !important; }
.elementor-social-icon-whatsapp  { background: #25D366 !important; }

/* ============================================
   RESPONSIVE - ELEMENTOR OVERRIDES
   ============================================ */

@media (max-width: 768px) {
    .wd-page-title-section {
        padding: 24px 0 !important;
    }

    .wd-page-title-section .page-title {
        font-size: 1.75rem !important;
    }

    .elementor-icon-box-wrapper {
        padding: 20px !important;
    }

    .elementor-icon-box-icon {
        width: 48px !important;
        height: 48px !important;
    }
}
