/* ==========================================================================
   Al Huwais client revisions: production UI fixes
   ========================================================================== */
:root {
    --primary-orange: var(--alh-orange, #FB8500);
    --primary-navy: var(--alh-navy, #1B263B);
    --steel-blue: var(--alh-steel, #415A77);
    --light-slate: var(--alh-light, #F8F9FA);
}

/* Services typography */
.services-bento .section-header h2,
.categories-section .section-header h2,
.alhuwais-services-grid h2,
.alhuwais-capabilities-page h2,
.alhuwais-capabilities-page h3,
.alhuwais-services-contact h3,
.bento-content h3 {
    font-size: clamp(1.55rem, 1.15rem + 1.9vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.services-bento .bento-content h3 {
    font-size: clamp(1.35rem, 1.05rem + 1.25vw, 2.35rem);
}

/* Realistic inline SVG pump/motor icon */
.alhuwais-real-motor-icon,
.ah-department-card__icon .alhuwais-real-motor-icon,
.alhuwais-services-contact .alhuwais-real-motor-icon {
    width: 40px;
    height: 40px;
    display: inline-block;
    fill: var(--primary-orange, #FB8500);
    flex: 0 0 40px;
}

.ah-department-card__icon svg,
.alhuwais-services-contact article span svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-orange, #FB8500);
    stroke: var(--primary-orange, #FB8500);
}

/* Field Power Services: keep a clean 3-column set and avoid duplicate downtime rows. */
.field-power-services,
.alhuwais-field-power-services,
.field-power-services .elementor-widget-wrap,
.alhuwais-field-power-services .elementor-widget-wrap {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.field-power-services .elementor-widget-icon-box,
.alhuwais-field-power-services .elementor-widget-icon-box {
    width: auto !important;
    margin: 0 !important;
}

.field-power-services .elementor-widget-icon-box.is-duplicate-downtime,
.alhuwais-field-power-services .elementor-widget-icon-box.is-duplicate-downtime,
.is-duplicate-downtime {
    display: none !important;
}

@media (max-width: 900px) {
    .field-power-services,
    .alhuwais-field-power-services,
    .field-power-services .elementor-widget-wrap,
    .alhuwais-field-power-services .elementor-widget-wrap {
        grid-template-columns: 1fr;
    }
}

/* Header and navigation cleanup */
#category-menu,
.category-menu,
.header-category-menu,
.sidebar-menu,
.site-header .dropdown-category,
.site-header .all-categories,
.site-header .departments-menu {
    display: none !important;
}

.site-header .site-brand img {
    width: auto;
    max-width: 58px !important;
    max-height: 58px !important;
    object-fit: contain;
}

.site-header .site-brand {
    flex: 0 0 auto;
}

.site-header .brand-text {
    font-size: 0 !important;
}

.site-header .brand-text::before {
    content: "Al Huwais";
    color: var(--primary-navy, #1B263B);
    font-size: 16px;
    font-weight: 800;
}

.alhuwais-products-menu-item > a {
    font-weight: 800;
}

/* Brand accordion shortcode */
.alhuwais-brand-accordion {
    display: grid;
    gap: 14px;
    margin: 32px 0;
}

.alhuwais-brand-panel {
    overflow: hidden;
    border: 1px solid rgba(65, 90, 119, 0.18);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(27, 38, 59, 0.08);
}

.alhuwais-brand-toggle {
    width: 100%;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border: 0;
    background: var(--light-slate, #F8F9FA);
    color: var(--primary-navy, #1B263B);
    cursor: pointer;
    text-align: start;
}

.alhuwais-brand-toggle span {
    font-size: clamp(1.15rem, 1rem + 0.8vw, 1.75rem);
    font-weight: 900;
}

.alhuwais-brand-toggle small {
    color: var(--steel-blue, #415A77);
    font-weight: 700;
}

.alhuwais-brand-toggle::after {
    content: "+";
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-orange, #FB8500);
    color: var(--primary-navy, #1B263B);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.alhuwais-brand-panel.is-open .alhuwais-brand-toggle::after {
    content: "-";
}

.alhuwais-brand-content {
    display: none;
    padding: 22px;
    background: #fff;
}

.alhuwais-brand-panel.is-open .alhuwais-brand-content {
    display: block;
}

.alhuwais-brand-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.alhuwais-brand-product {
    display: grid;
    grid-template-rows: 150px auto;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(65, 90, 119, 0.16);
    border-radius: 8px;
    color: var(--primary-navy, #1B263B);
    text-decoration: none;
    background: var(--light-slate, #F8F9FA);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.alhuwais-brand-product:hover {
    transform: translateY(-3px);
    border-color: rgba(251, 133, 0, 0.55);
    box-shadow: 0 14px 26px rgba(27, 38, 59, 0.12);
}

.alhuwais-brand-product__image {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.alhuwais-brand-product__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.alhuwais-brand-product__body {
    display: grid;
    gap: 6px;
}

.alhuwais-brand-product__body strong {
    color: var(--primary-navy, #1B263B);
    font-size: 15px;
    line-height: 1.35;
}

.alhuwais-brand-product__body em,
.alhuwais-accordion-empty {
    color: var(--steel-blue, #415A77);
    font-size: 13px;
    font-style: normal;
}
