/**
 * HAWAS Marketing — Warm black + Gold attention theme
 * Tokens: dark (default) / light via html[data-theme]
 * Accent: gold #FFB800 · Coral #FF4757 · Surfaces #0A0A0D / #16161C / #1E1E26
 *
 * Light mode: ONE sitewide Elementor/Gencyo override layer.
 * Dark-surface islands keep light type via a single exception block.
 */

:root,
html[data-theme="dark"] {
  color-scheme: dark;

  --hawas-bg: #0A0A0D;
  --hawas-section: #16161C;
  --hawas-card: #1E1E26;
  --hawas-primary: #FFB800;
  --hawas-accent: #FFB800;
  --hawas-coral: #FF4757;
  --hawas-text: #F5F5F0;
  --hawas-text-secondary: #8B8B95;
  --hawas-on-primary: #0A0A0D;
  --hawas-on-accent: #0A0A0D;
  --hawas-border: rgba(245, 245, 240, 0.12);
  --hawas-glass: rgba(10, 10, 13, 0.78);
  --hawas-elevated: rgba(22, 22, 28, 0.94);
  --hawas-on-dark: #F5F5F0;
  --hawas-on-dark-muted: rgba(245, 245, 240, 0.78);

  --hawas-bg-rgb: 10, 10, 13;
  --hawas-section-rgb: 22, 22, 28;
  --hawas-card-rgb: 30, 30, 38;
  --hawas-primary-rgb: 255, 184, 0;
  --hawas-accent-rgb: 255, 184, 0;
  --hawas-coral-rgb: 255, 71, 87;
  --hawas-text-rgb: 245, 245, 240;

  /* Legacy kd-* aliases (lime → gold accent / primary CTAs) */
  --kd-lime: var(--hawas-accent);
  --kd-lime-soft: rgba(var(--hawas-accent-rgb), 0.18);
  --kd-ink: var(--hawas-bg);
  --kd-paper: var(--hawas-text);
  --kd-muted: rgba(var(--hawas-text-rgb), 0.72);
  --kd-fog: var(--hawas-text-secondary);
  --kd-line: var(--hawas-border);
  --kd-glass: var(--hawas-glass);
  --kd-cta-bg: var(--hawas-primary);
  --kd-cta-fg: var(--hawas-on-primary);
  --kd-section: var(--hawas-section);
  --kd-card: var(--hawas-card);

  /* Bridge Gencyo / Elementor tokens → HAWAS */
  --theme-color1: var(--hawas-accent);
  --theme-color1-rgb: var(--hawas-accent-rgb);
  --theme-color1-lighter: color-mix(in srgb, var(--hawas-accent) 72%, white);
  --theme-color1-darker: color-mix(in srgb, var(--hawas-accent) 82%, black);
  --theme-color1-text-color: var(--hawas-on-primary);
  --hover-theme-color: var(--hawas-accent);
  --theme-color2: #16161C;
  --theme-color2-rgb: 22, 22, 28;
  --theme-color2-text-color: var(--hawas-on-dark);
  --section-title-color: var(--hawas-text);
  --section-title-subtitle-color: var(--hawas-text-secondary);
  --headings-color: var(--hawas-text);
  --text-color: var(--hawas-text-secondary);
  --link-color: var(--hawas-text-secondary);
  --link-hover-color: var(--hawas-accent);
}

/*
 * Light tokens MUST beat Gencyo `[data-tm-layout=dark]:root` (0,2,0),
 * which otherwise keeps --headings-color / --section-title-color as #fff.
 * Selector specificity: html + 2 attrs = (0,2,1).
 */
html[data-tm-layout][data-theme="light"],
html[data-theme="light"] {
  color-scheme: light;

  --hawas-bg: #F7F5F0;
  --hawas-section: #FFFFFF;
  --hawas-card: #FFFFFF;
  /* Darker gold for readable accents on light surfaces */
  --hawas-primary: #C48F00;
  --hawas-accent: #C48F00;
  --hawas-coral: #E03A48;
  --hawas-text: #0A0A0D;
  /* ≥4.5:1 on warm light bg for body-size text */
  --hawas-text-secondary: #4A4A55;
  --hawas-on-primary: #0A0A0D;
  --hawas-on-accent: #0A0A0D;
  --hawas-border: rgba(10, 10, 13, 0.12);
  --hawas-glass: rgba(247, 245, 240, 0.94);
  --hawas-elevated: rgba(255, 255, 255, 0.98);
  --hawas-on-dark: #F5F5F0;
  --hawas-on-dark-muted: rgba(245, 245, 240, 0.82);

  --hawas-bg-rgb: 247, 245, 240;
  --hawas-section-rgb: 255, 255, 255;
  --hawas-card-rgb: 255, 255, 255;
  --hawas-primary-rgb: 196, 143, 0;
  --hawas-accent-rgb: 196, 143, 0;
  --hawas-coral-rgb: 224, 58, 72;
  --hawas-text-rgb: 10, 10, 13;

  --kd-lime: var(--hawas-accent);
  --kd-lime-soft: rgba(var(--hawas-accent-rgb), 0.14);
  --kd-ink: var(--hawas-bg);
  --kd-paper: var(--hawas-text);
  --kd-muted: var(--hawas-text-secondary);
  --kd-fog: var(--hawas-text-secondary);
  --kd-line: var(--hawas-border);
  --kd-glass: var(--hawas-glass);
  --kd-cta-bg: var(--hawas-primary);
  --kd-cta-fg: var(--hawas-on-primary);
  --kd-section: var(--hawas-section);
  --kd-card: var(--hawas-card);

  /* Kill Gencyo [data-tm-layout=dark] white-on-light leftovers sitewide */
  --theme-color1: var(--hawas-accent);
  --theme-color1-rgb: var(--hawas-accent-rgb);
  --theme-color1-lighter: color-mix(in srgb, var(--hawas-accent) 70%, white);
  --theme-color1-darker: color-mix(in srgb, var(--hawas-accent) 85%, black);
  --theme-color1-text-color: var(--hawas-on-primary);
  --hover-theme-color: var(--hawas-primary);
  --theme-color2: #16161C;
  --theme-color2-rgb: 22, 22, 28;
  --theme-color2-text-color: var(--hawas-on-dark);
  --theme-color-white: #ffffff;
  --theme-color-light: #F7F5F0;
  --theme-color-gray: #E8E6E0;
  --theme-color-silver: #D0CEC8;
  --theme-color-dark: #4A4A55;
  --theme-color-dark2: #1E1E26;
  --section-title-color: var(--hawas-text);
  --section-title-subtitle-color: var(--hawas-text-secondary);
  --headings-color: var(--hawas-text);
  --text-color: var(--hawas-text-secondary);
  --body-bg: var(--hawas-bg);
  --body-font-bold-color: var(--hawas-text);
  --link-color: var(--hawas-text-secondary);
  --link-hover-color: var(--hawas-primary);
  --default-header-menu-color: var(--hawas-text);
  --blockquote-text-color: var(--hawas-text-secondary);
  --sidebar_link_color: var(--hawas-text-secondary);
}

/* ==========================================================================
   Base surfaces
   ========================================================================== */
html[data-theme="dark"] body,
html[data-theme="light"] body {
  background-color: var(--hawas-bg);
  color: var(--hawas-text);
}

html[data-theme="light"] .elementor,
html[data-theme="light"] .elementor-section,
html[data-theme="light"] .e-con,
html[data-theme="light"] .elementor-widget-container,
html[data-theme="light"] #page,
html[data-theme="light"] .site-main {
  color: var(--hawas-text);
}

/* Soft card border in light mode */
html[data-theme="light"] .kd-card,
html[data-theme="light"] [class*="__card"],
html[data-theme="light"] .kd-svc__card,
html[data-theme="light"] .kd-ind__card,
html[data-theme="light"] .kd-hww__card,
html[data-theme="light"] .kd-show__card {
  border-color: var(--hawas-border);
  box-shadow: 0 1px 2px rgba(10, 10, 13, 0.04), 0 8px 24px rgba(10, 10, 13, 0.06);
}

/* Homepage custom sections — light surfaces (override hard-coded dark fills) */
html[data-theme="light"] .kd-pillars,
html[data-theme="light"] .kd-svcx,
html[data-theme="light"] .kd-sectors,
html[data-theme="light"] .kd-hww,
html[data-theme="light"] .kd-cta,
html[data-theme="light"] .kd-cta-spark,
html[data-theme="light"] .kd-about {
  background:
    radial-gradient(ellipse 55% 40% at 12% 0%, rgba(var(--hawas-accent-rgb), 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 90% 90%, rgba(var(--hawas-primary-rgb), 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--hawas-bg) 0%, var(--hawas-section) 50%, var(--hawas-bg) 100%) !important;
  color: var(--hawas-text) !important;
  border-color: var(--hawas-border) !important;
}

/* Contact + footer ending composition — continuous light canvas */
html[data-theme="light"] .kd-contact-strip {
  background:
    radial-gradient(ellipse 42% 38% at 8% 12%, rgba(var(--hawas-accent-rgb), 0.1) 0%, transparent 58%),
    radial-gradient(ellipse 36% 32% at 94% 28%, rgba(var(--hawas-primary-rgb), 0.08) 0%, transparent 52%),
    linear-gradient(180deg, var(--hawas-bg) 0%, var(--hawas-section) 72%, var(--hawas-section) 100%) !important;
  color: var(--hawas-text) !important;
  border-color: rgba(var(--hawas-accent-rgb), 0.22) !important;
}

html[data-theme="light"] .kd-foot {
  background:
    radial-gradient(ellipse 40% 28% at 88% 0%, rgba(var(--hawas-accent-rgb), 0.06) 0%, transparent 55%),
    linear-gradient(180deg, var(--hawas-section) 0%, var(--hawas-bg) 100%) !important;
  color: var(--hawas-text) !important;
  border-color: transparent !important;
}

html[data-theme="light"] .kd-svcx,
html[data-theme="light"] .kd-hww,
html[data-theme="light"] .kd-pillars,
html[data-theme="light"] .kd-sectors,
html[data-theme="light"] .kd-cta,
html[data-theme="light"] .kd-cta-spark,
html[data-theme="light"] .kd-contact-strip,
html[data-theme="light"] .kd-foot {
  --kd-ink: var(--hawas-bg);
  --kd-paper: var(--hawas-text);
  --kd-muted: var(--hawas-text-secondary);
  --kd-fog: var(--hawas-text-secondary);
  --kd-line: var(--hawas-border);
  --kd-panel: var(--hawas-card);
}

/* ==========================================================================
   GLOBAL light-mode typography — Elementor + Mascot + custom (sitewide)
   Beats Elementor #fff / #FFFFFF / #f8fafc / #f5f8f0 and Gencyo dark vars.
   Dark-island exception block below restores light type on dark/black fills.
   ========================================================================== */

/* Broad base — kill white/near-white type on light surfaces */
html[data-theme="light"] body,
html[data-theme="light"] #page,
html[data-theme="light"] #wrapper,
html[data-theme="light"] .site-main,
html[data-theme="light"] .elementor,
html[data-theme="light"] .elementor-4979,
html[data-theme="light"] .elementor-section,
html[data-theme="light"] .e-con,
html[data-theme="light"] .elementor-widget-container,
html[data-theme="light"] .elementor-widget,
html[data-theme="light"] .tm-sc-section-title,
html[data-theme="light"] .tm-sc-icon-box,
html[data-theme="light"] .tm-sc-list,
html[data-theme="light"] .tm-sc-funfact,
html[data-theme="light"] .tm-sc-projects,
html[data-theme="light"] .tm-sc-working-steps,
html[data-theme="light"] [class*="tm-sc-"] {
  color: var(--hawas-text);
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6,
html[data-theme="light"] .elementor-4979 h1,
html[data-theme="light"] .elementor-4979 h2,
html[data-theme="light"] .elementor-4979 h3,
html[data-theme="light"] .elementor-4979 h4,
html[data-theme="light"] .elementor-4979 h5,
html[data-theme="light"] .elementor-4979 h6,
html[data-theme="light"] .elementor-heading-title,
html[data-theme="light"] .elementor-icon-box-title,
html[data-theme="light"] .elementor-icon-list-text,
html[data-theme="light"] .title,
html[data-theme="light"] .title a,
html[data-theme="light"] .subtitle,
html[data-theme="light"] .title-part1,
html[data-theme="light"] .title-part2,
html[data-theme="light"] .tm-sc-section-title .title,
html[data-theme="light"] .tm-sc-section-title .title .split-line,
html[data-theme="light"] .tm-sc-section-title .title .split-line > div,
html[data-theme="light"] .tm-sc-section-title .title-part1,
html[data-theme="light"] .tm-sc-section-title .title-part2,
html[data-theme="light"] .elementor-4979 .title,
html[data-theme="light"] .elementor-4979 .title a,
html[data-theme="light"] .elementor-4979 .title-part1,
html[data-theme="light"] .elementor-4979 .title-part2,
html[data-theme="light"] .elementor-4979 .elementor-heading-title,
html[data-theme="light"] h1.title,
html[data-theme="light"] h2.title,
html[data-theme="light"] h3.title,
html[data-theme="light"] h4.title,
html[data-theme="light"] .working-title,
html[data-theme="light"] .working-title a,
html[data-theme="light"] .icon-box-title,
html[data-theme="light"] .icon-box-title a,
html[data-theme="light"] .projects-current-theme1 .content .title,
html[data-theme="light"] .projects-current-theme1 .content .title a,
html[data-theme="light"] .tm-sc-projects .title,
html[data-theme="light"] .tm-sc-projects .title a,
html[data-theme="light"] .tm-sc-funfact .title,
html[data-theme="light"] .funfact-inner .title,
html[data-theme="light"] .tm-sc-list li,
html[data-theme="light"] .tm-sc-list li span,
html[data-theme="light"] .elementor-4979 .tm-sc-list li,
html[data-theme="light"] .elementor-4979 .tm-sc-list li span,
html[data-theme="light"] .tm-accordion .card-header .title,
html[data-theme="light"] .tm-accordion .card-header .title a,
html[data-theme="light"] .kd-pillars__title,
html[data-theme="light"] .kd-pillars__name,
html[data-theme="light"] .kd-svc-row__title,
html[data-theme="light"] .kd-cta-spark__title,
html[data-theme="light"] .kd-cta-spark__line:not(.kd-cta-spark__line--lime),
html[data-theme="light"] .kd-svcx__title,
html[data-theme="light"] .kd-svcx__lead,
html[data-theme="light"] .kd-svcx__nav-item.is-active,
html[data-theme="light"] .kd-sectors__title,
html[data-theme="light"] .kd-sectors__panel-title,
html[data-theme="light"] .kd-hww__title,
html[data-theme="light"] .kd-articles__title,
html[data-theme="light"] .kd-cta__title,
html[data-theme="light"] .kd-cta__line:not(.kd-cta__line--accent),
html[data-theme="light"] .kd-foot__title,
html[data-theme="light"] .kd-foot__brand {
  color: var(--hawas-text) !important;
  -webkit-text-fill-color: var(--hawas-text) !important;
  opacity: 1 !important;
}

/* Accent / lime leftover spans inside section titles */
html[data-theme="light"] .tm-sc-section-title .subtitle,
html[data-theme="light"] .tm-sc-section-title [class*="elementor-repeater-item"],
html[data-theme="light"] .tm-sc-section-title .title > span:not(.title-part1):not(.title-part2):not(.split-line),
html[data-theme="light"] .elementor-4979 .tm-sc-section-title .subtitle,
html[data-theme="light"] .theme-color1,
html[data-theme="light"] .text-theme-colored1,
html[data-theme="light"] .kd-cta__line--accent,
html[data-theme="light"] .kd-cta__eyebrow {
  color: var(--hawas-accent) !important;
  -webkit-text-fill-color: var(--hawas-accent) !important;
}

html[data-theme="light"] .elementor-widget-text-editor,
html[data-theme="light"] .elementor-icon-box-description,
html[data-theme="light"] .tm-text-editor,
html[data-theme="light"] .tm-text-editor p,
html[data-theme="light"] .tm-text-editor *:not(.title):not(.title-part1):not(.title-part2):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6),
html[data-theme="light"] .elementor-4979 .tm-text-editor,
html[data-theme="light"] .elementor-4979 .tm-text-editor *:not(.title):not(.title-part1):not(.title-part2),
html[data-theme="light"] .working-details,
html[data-theme="light"] .icon-box .content,
html[data-theme="light"] .tm-sc-icon-box .content,
html[data-theme="light"] .projects-current-theme1 .content .cat-list li,
html[data-theme="light"] .tm-accordion .card-body,
html[data-theme="light"] .tm-accordion .card .card-body,
html[data-theme="light"] .kd-pillars__text,
html[data-theme="light"] .kd-pillars__desc,
html[data-theme="light"] .kd-svc-row__desc,
html[data-theme="light"] .kd-cta-spark__lead,
html[data-theme="light"] .kd-cta__lead,
html[data-theme="light"] .kd-svcx__tag,
html[data-theme="light"] .kd-svcx__lede,
html[data-theme="light"] .kd-svcx__body,
html[data-theme="light"] .kd-sectors__panel-body,
html[data-theme="light"] .kd-nav__drawer-contact a,
html[data-theme="light"] .kd-foot__text,
html[data-theme="light"] .kd-foot__copy {
  color: var(--hawas-text-secondary) !important;
  -webkit-text-fill-color: var(--hawas-text-secondary) !important;
}

/* Headings / titles / lists win over muted body copy */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6,
html[data-theme="light"] .title,
html[data-theme="light"] .title-part1,
html[data-theme="light"] .title-part2,
html[data-theme="light"] .elementor-heading-title,
html[data-theme="light"] .icon-box-title,
html[data-theme="light"] .working-title,
html[data-theme="light"] .tm-sc-list li,
html[data-theme="light"] .tm-sc-list li span,
html[data-theme="light"] .elementor-4979 .tm-sc-list li,
html[data-theme="light"] .elementor-4979 .tm-sc-list li span,
html[data-theme="light"] .kd-pillars__title,
html[data-theme="light"] .kd-pillars__name,
html[data-theme="light"] .kd-svc-row__title,
html[data-theme="light"] .kd-svcx__title,
html[data-theme="light"] .kd-svcx__lead,
html[data-theme="light"] .kd-sectors__title,
html[data-theme="light"] .kd-sectors__panel-title,
html[data-theme="light"] .kd-hww__title,
html[data-theme="light"] .kd-cta__title,
html[data-theme="light"] .kd-cta-spark__title {
  color: var(--hawas-text) !important;
  -webkit-text-fill-color: var(--hawas-text) !important;
}

html[data-theme="light"] .tm-sc-list li i,
html[data-theme="light"] .tm-sc-funfact .counter,
html[data-theme="light"] .tm-sc-funfact .counter .animate-number,
html[data-theme="light"] .tm-sc-funfact .counter-postfix,
html[data-theme="light"] .working-count {
  color: var(--hawas-accent) !important;
  -webkit-text-fill-color: var(--hawas-accent) !important;
}

html[data-theme="light"] .working-block-style1 .line {
  background: var(--hawas-border) !important;
}

html[data-theme="light"] .working-block-style1 .line::before {
  background-color: var(--hawas-accent) !important;
}

html[data-theme="light"] .kd-pillars__ghost {
  -webkit-text-stroke-color: rgba(var(--hawas-accent-rgb), 0.32);
}

html[data-theme="light"] .kd-pillars__item,
html[data-theme="light"] .kd-pillars__item:last-child,
html[data-theme="light"] .kd-svc-row,
html[data-theme="light"] .kd-svc-index .kd-svc-row:last-child {
  border-color: var(--hawas-border) !important;
}

html[data-theme="light"] .kd-svc-row:hover .kd-svc-row__title {
  color: var(--hawas-accent) !important;
}

/* Lime marquee ribbon → corporate accent fill (dark ribbon keeps light type via islands) */
html[data-theme="light"] .tm-marquee-repeater {
  --theme-color1: var(--hawas-accent);
}

/* ==========================================================================
   Buttons — white label on primary (sitewide)
   ========================================================================== */
.kd-mag__cta--primary,
.kd-nav__cta,
.kd-foot__cta,
.kd-cta__btn--primary,
.kd-cta-spark__btn--solid,
.kd-cta-signal__wa,
.kd-svcx__cta,
.kd-sectors__cta,
.kd-ai__send,
html[data-theme] .btn-theme-colored1,
html[data-theme] .theme-btn,
html[data-theme] .theme-btn.btn-style1,
html[data-theme] a.tm-btn.btn-theme-colored1,
html[data-theme] a.theme-btn {
  background-color: var(--hawas-primary) !important;
  border-color: var(--hawas-primary) !important;
  color: var(--hawas-on-primary) !important;
  box-shadow: 0 10px 28px rgba(var(--hawas-primary-rgb), 0.28);
}

html[data-theme] .theme-btn .btn-title,
html[data-theme] .theme-btn.btn-style1 .btn-title,
html[data-theme] a.tm-btn .btn-title,
html[data-theme] .theme-btn .icon,
html[data-theme] .theme-btn .icon i {
  color: var(--hawas-on-primary) !important;
  -webkit-text-fill-color: var(--hawas-on-primary) !important;
}

html[data-theme] .theme-btn .icon svg path {
  stroke: var(--hawas-on-primary) !important;
}

.kd-mag__cta--primary:hover,
.kd-mag__cta--primary:focus-visible,
.kd-nav__cta:hover,
.kd-nav__cta:focus-visible,
.kd-foot__cta:hover,
.kd-foot__cta:focus-visible,
.kd-cta__btn--primary:hover,
.kd-cta__btn--primary:focus-visible,
.kd-cta-spark__btn--solid:hover,
.kd-cta-spark__btn--solid:focus-visible,
.kd-cta-signal__wa:hover,
.kd-cta-signal__wa:focus-visible,
html[data-theme] .theme-btn:hover,
html[data-theme] .theme-btn:focus-visible,
html[data-theme] .theme-btn:hover .btn-title,
html[data-theme] .theme-btn:focus-visible .btn-title {
  color: var(--hawas-on-primary) !important;
  -webkit-text-fill-color: var(--hawas-on-primary) !important;
  box-shadow: 0 14px 34px rgba(var(--hawas-primary-rgb), 0.4);
}

html[data-theme] .theme-color1,
html[data-theme] .text-theme-colored1,
html[data-theme] .tm-sc-list li i {
  color: var(--hawas-accent) !important;
}

/* ==========================================================================
   Dark-surface islands — light type (Elementor #000–#212121 fills + hero/CTAs)
   Single exception layer; not per-section art.
   ========================================================================== */
html[data-theme="light"] :is(
  .elementor-element-7941f9b,
  .elementor-element-1d3dc4d,
  .elementor-element-60a33c4,
  .elementor-element-9edbcb2,
  .elementor-element-ac03e3e,
  .elementor-element-2dfbe8b,
  .elementor-element-3f12ad5,
  .elementor-element-a89756a,
  .elementor-element-e756194,
  .elementor-element-5bb2b79,
  .elementor-element-bbd2f8f,
  .elementor-element-328e166,
  .elementor-element-52a5e02,
  .elementor-element-0737782,
  .elementor-element-2776b0c,
  .elementor-element-5d11371,
  .elementor-element-6ae94a7,
  .elementor-element-6b843cb,
  .elementor-element-80b6029,
  .elementor-element-8520d4c,
  .elementor-element-a5f26d0,
  .elementor-element-a6f0380,
  .elementor-element-b038dde,
  .elementor-element-b16e1b2,
  .elementor-element-bb97664,
  .elementor-element-d3a6d76,
  .elementor-element-f1c25ed,
  .elementor-element-f1cd831,
  .elementor-element-737a924,
  .elementor-element-c3e67cf,
  .kd-beacon,
  .kd-mag,
  [class*="kd-hero"],
  .kd-cta__panel,
  .kd-cta-signal
),
html[data-theme="light"] :is(
  .elementor-element-7941f9b,
  .elementor-element-1d3dc4d,
  .elementor-element-60a33c4,
  .elementor-element-9edbcb2,
  .elementor-element-ac03e3e,
  .elementor-element-2dfbe8b,
  .elementor-element-3f12ad5,
  .elementor-element-a89756a,
  .elementor-element-e756194,
  .elementor-element-5bb2b79,
  .elementor-element-bbd2f8f,
  .elementor-element-328e166,
  .elementor-element-52a5e02,
  .elementor-element-0737782,
  .elementor-element-2776b0c,
  .elementor-element-5d11371,
  .elementor-element-6ae94a7,
  .elementor-element-6b843cb,
  .elementor-element-80b6029,
  .elementor-element-8520d4c,
  .elementor-element-a5f26d0,
  .elementor-element-a6f0380,
  .elementor-element-b038dde,
  .elementor-element-b16e1b2,
  .elementor-element-bb97664,
  .elementor-element-d3a6d76,
  .elementor-element-f1c25ed,
  .elementor-element-f1cd831,
  .elementor-element-737a924,
  .elementor-element-c3e67cf,
  .kd-beacon,
  .kd-mag,
  [class*="kd-hero"],
  .kd-cta__panel,
  .kd-cta-signal
) :is(
  h1, h2, h3, h4, h5, h6,
  p, span, li, a, strong, em, small,
  .title,
  .title a,
  .title-part1,
  .title-part2,
  .subtitle,
  .elementor-heading-title,
  .icon-box-title,
  .icon-box-title a,
  .content,
  .working-title,
  .working-details,
  .tm-text-editor,
  .tm-text-editor p,
  .tm-text-editor *,
  .tm-sc-list li,
  .tm-sc-list li span,
  .tm-accordion .card-header .title,
  .tm-accordion .card-body,
  .tm-accordion .card .card-body,
  .counter,
  .counter .animate-number,
  .counter-postfix,
  .tm-marquee-repeater .text,
  .kd-cta__panel-kicker,
  .kd-cta__panel-note,
  .kd-cta__panel-title
) {
  color: var(--hawas-on-dark) !important;
  -webkit-text-fill-color: var(--hawas-on-dark) !important;
}

html[data-theme="light"] :is(
  .elementor-element-ac03e3e,
  .elementor-element-2dfbe8b,
  .elementor-element-3f12ad5,
  .elementor-element-60a33c4,
  .elementor-element-9edbcb2,
  .kd-cta__panel
) :is(.content, .working-details, .tm-text-editor, .tm-text-editor p, .kd-cta__panel-note, .title:not(.counter)) {
  color: var(--hawas-on-dark-muted) !important;
  -webkit-text-fill-color: var(--hawas-on-dark-muted) !important;
}

/* Funfact / why-choose counters on dark cards stay bright */
html[data-theme="light"] :is(
  .elementor-element-60a33c4,
  .elementor-element-9edbcb2,
  .elementor-element-5bb2b79,
  .elementor-element-bbd2f8f
) :is(.counter, .counter .animate-number, .counter-postfix) {
  color: var(--hawas-on-dark) !important;
  -webkit-text-fill-color: var(--hawas-on-dark) !important;
}

/* Signal CTA — gold band accents (after dark-island light-type restore) */
html[data-theme="light"] .kd-cta-signal__kicker,
html[data-theme="light"] .kd-cta-signal__kicker .kd-cta-signal__live {
  color: var(--hawas-accent) !important;
  -webkit-text-fill-color: var(--hawas-accent) !important;
}

html[data-theme="light"] .kd-cta-signal__text,
html[data-theme="light"] .kd-cta-signal__meta,
html[data-theme="light"] .kd-cta-signal__panel-note {
  color: rgba(245, 245, 240, 0.72) !important;
  -webkit-text-fill-color: rgba(245, 245, 240, 0.72) !important;
}

html[data-theme="light"] .kd-cta-signal__form {
  color: #F5F5F0 !important;
  -webkit-text-fill-color: #F5F5F0 !important;
}

html[data-theme="light"] .kd-cta-signal__form:hover,
html[data-theme="light"] .kd-cta-signal__form:focus-visible {
  color: var(--hawas-accent) !important;
  -webkit-text-fill-color: var(--hawas-accent) !important;
}

/* Accent marquee (theme-color1 fill) — dark ink on gold ribbon */
html[data-theme="light"] .elementor-element-0aa7061 .tm-marquee-repeater .text,
html[data-theme="light"] .elementor-element-8ba87f7 .tm-marquee-repeater .text {
  color: #0A0A0D !important;
  -webkit-text-fill-color: #0A0A0D !important;
}

/* Re-assert white ONLY on solid primary / FAB fills after the global kill */
html[data-theme="light"] .kd-ai__fab,
html[data-theme="light"] .kd-whatsapp-fab,
html[data-theme="light"] .kd-whatsapp-fab:hover,
html[data-theme="light"] .kd-whatsapp-fab:focus-visible,
html[data-theme="light"] .kd-nav__cta,
html[data-theme="light"] .kd-foot__cta,
html[data-theme="light"] .kd-mag__cta--primary,
html[data-theme="light"] .kd-cta__btn--primary,
html[data-theme="light"] .kd-cta-spark__btn--solid,
html[data-theme="light"] .kd-cta-signal__wa,
html[data-theme="light"] .kd-cta-signal__wa strong,
html[data-theme="light"] .kd-cta-signal__wa small,
html[data-theme="light"] .kd-cta-signal__wa span,
html[data-theme="light"] .kd-svcx__cta,
html[data-theme="light"] .kd-sectors__cta,
html[data-theme="light"] .kd-ai__send,
html[data-theme="light"] .theme-btn,
html[data-theme="light"] .theme-btn .btn-title,
html[data-theme="light"] .theme-btn .icon,
html[data-theme="light"] .theme-btn .icon i,
html[data-theme="light"] a.tm-btn.btn-theme-colored1,
html[data-theme="light"] a.tm-btn.btn-theme-colored1 .btn-title,
html[data-theme="light"] .btn-theme-colored1,
html[data-theme="light"] .kd-theme-toggle__btn[aria-pressed="true"] {
  color: var(--hawas-on-primary) !important;
  -webkit-text-fill-color: var(--hawas-on-primary) !important;
}

/* ==========================================================================
   Header — solid chrome only (never paint flush hero nav dark)
   ========================================================================== */
html[data-theme="light"] .kd-header.is-solid .kd-topbar__link,
html[data-theme="light"] .kd-header--solid .kd-topbar__link {
  color: var(--hawas-text-secondary) !important;
}

html[data-theme="light"] .kd-header.is-solid .kd-topbar__ico,
html[data-theme="light"] .kd-header.is-solid .kd-topbar__link:hover,
html[data-theme="light"] .kd-header.is-solid .kd-topbar__link:focus-visible,
html[data-theme="light"] .kd-header--solid .kd-topbar__ico,
html[data-theme="light"] .kd-header--solid .kd-topbar__link:hover,
html[data-theme="light"] .kd-header--solid .kd-topbar__link:focus-visible {
  color: var(--hawas-accent) !important;
  opacity: 1;
}

html[data-theme="light"] .kd-header.is-solid .kd-topbar__social-link,
html[data-theme="light"] .kd-header--solid .kd-topbar__social-link {
  color: var(--hawas-text) !important;
}

html[data-theme="light"] .kd-header.is-solid .kd-nav__link,
html[data-theme="light"] .kd-header--solid .kd-nav__link {
  color: color-mix(in srgb, var(--hawas-text) 92%, transparent);
}

html[data-theme="light"] .kd-header.is-solid .kd-nav__link:hover,
html[data-theme="light"] .kd-header.is-solid .kd-nav__item.is-active .kd-nav__link,
html[data-theme="light"] .kd-header--solid .kd-nav__link:hover,
html[data-theme="light"] .kd-header--solid .kd-nav__item.is-active .kd-nav__link {
  color: var(--hawas-text);
}

html[data-theme="light"] .kd-header.is-solid .kd-nav__logo,
html[data-theme="light"] .kd-header--solid .kd-nav__logo {
  filter: brightness(0);
}

html[data-theme="light"] .kd-header.is-solid .kd-nav__wordmark,
html[data-theme="light"] .kd-header--solid .kd-nav__wordmark {
  color: var(--hawas-text);
}

/* ==========================================================================
   AI panel + fab
   ========================================================================== */
html[data-theme="light"] .kd-ai__panel {
  background: var(--hawas-section) !important;
  color: var(--hawas-text) !important;
  border-color: var(--hawas-border) !important;
  box-shadow: 0 24px 56px rgba(10, 10, 13, 0.12) !important;
}

html[data-theme="light"] .kd-ai__close,
html[data-theme="light"] .kd-ai__hint,
html[data-theme="light"] .kd-ai__bubble--bot {
  color: var(--hawas-text-secondary) !important;
}

html[data-theme="light"] .kd-ai__title,
html[data-theme="light"] .kd-ai__form input {
  color: var(--hawas-text) !important;
}

html[data-theme="light"] .kd-ai__suggestions button {
  color: var(--hawas-text) !important;
  border-color: var(--hawas-border) !important;
  background: rgba(var(--hawas-accent-rgb), 0.08) !important;
}

html[data-theme="light"] .kd-ai__form {
  border-top-color: var(--hawas-border) !important;
}

html[data-theme="light"] .kd-ai__form input {
  border-color: var(--hawas-border) !important;
  background: var(--hawas-bg) !important;
}

.kd-ai__fab {
  color: var(--hawas-on-primary) !important;
  background: linear-gradient(145deg, var(--hawas-primary) 0%, #E5A400 55%, var(--hawas-coral) 100%) !important;
  box-shadow: 0 12px 32px rgba(var(--hawas-primary-rgb), 0.4) !important;
}

/* Services showcase — inherit tokens (both themes) */
.kd-svcx__title,
.kd-svcx__lead,
.kd-svcx__nav-item.is-active {
  color: var(--hawas-text) !important;
}

.kd-svcx__tag,
.kd-svcx__lede,
.kd-svcx__body {
  color: var(--hawas-text-secondary) !important;
}

/* ==========================================================================
   Theme toggle
   ========================================================================== */
.kd-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--hawas-border);
  background: rgba(var(--hawas-section-rgb), 0.55);
  backdrop-filter: blur(8px);
}

.kd-theme-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hawas-text-secondary);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.kd-theme-toggle__btn:hover,
.kd-theme-toggle__btn:focus-visible {
  color: var(--hawas-text);
  outline: none;
}

.kd-theme-toggle__btn:focus-visible {
  box-shadow: 0 0 0 2px var(--hawas-bg), 0 0 0 4px var(--hawas-primary);
}

.kd-theme-toggle__btn[aria-pressed="true"] {
  background: var(--hawas-primary);
  color: var(--hawas-on-primary);
  box-shadow: 0 4px 14px rgba(var(--hawas-primary-rgb), 0.35);
}

.kd-theme-toggle__btn svg {
  display: block;
  width: 16px;
  height: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .kd-theme-toggle__btn {
    transition: none;
  }
}

/* ==========================================================================
   Scroll-to-top — HAWAS primary; opposite FABs via logical inset
   LTR: bottom-right · RTL: bottom-left (FABs use inset-inline-start)
   ========================================================================== */
.scroll-to-top {
  z-index: 9990;
}

.scroll-to-top a,
html[dir="rtl"] .scroll-to-top a,
html[lang="ar"] .scroll-to-top a,
body.rtl .scroll-to-top a {
  position: fixed !important;
  bottom: 28px !important;
  top: auto !important;
  /* Kill Gencyo physical right so RTL can flip */
  right: auto !important;
  left: auto !important;
  inset-inline-end: 22px !important;
  inset-inline-start: auto !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  padding: 0 !important;
  opacity: 1 !important;
  text-decoration: none !important;
  color: var(--hawas-on-primary) !important;
  background: var(--hawas-primary) !important;
  background-image: none !important;
  background-size: auto !important;
  box-shadow: 0 10px 28px rgba(var(--hawas-primary-rgb), 0.4) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  z-index: 9990;
}

.scroll-to-top a:hover,
.scroll-to-top a:focus-visible {
  opacity: 1 !important;
  color: var(--hawas-on-primary) !important;
  background: color-mix(in srgb, var(--hawas-primary) 88%, #E5A400) !important;
  background-image: none !important;
  background-position: center !important;
  box-shadow: 0 14px 34px rgba(var(--hawas-primary-rgb), 0.5) !important;
  transform: translateY(-3px);
  outline: none;
}

.scroll-to-top a i {
  color: var(--hawas-on-primary) !important;
  font-size: 22px !important;
  line-height: 1;
}

@media (max-width: 575px) {
  .scroll-to-top a,
  html[dir="rtl"] .scroll-to-top a,
  html[lang="ar"] .scroll-to-top a,
  body.rtl .scroll-to-top a {
    bottom: 20px !important;
    inset-inline-end: 14px !important;
    width: 46px !important;
    height: 46px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-to-top a {
    transition: none;
  }
  .scroll-to-top a:hover,
  .scroll-to-top a:focus-visible {
    transform: none;
  }
}

/* ==========================================================================
   Arabic / RTL — kill letter-spacing on section titles (connected glyphs)
   ========================================================================== */
html[dir="rtl"] .tm-sc-section-title .subtitle,
html[dir="rtl"] .tm-sc-section-title .title,
html[dir="rtl"] .tm-sc-section-title .title-part1,
html[dir="rtl"] .tm-sc-section-title .title-part2,
html[dir="rtl"] .tm-sc-section-title .title > span,
html[dir="rtl"] .tm-sc-section-title [class*="elementor-repeater-item"],
html[lang="ar"] .tm-sc-section-title .subtitle,
html[lang="ar"] .tm-sc-section-title .title,
html[lang="ar"] .tm-sc-section-title .title-part1,
html[lang="ar"] .tm-sc-section-title .title-part2,
html[lang="ar"] .tm-sc-section-title .title > span,
html[lang="ar"] .tm-sc-section-title [class*="elementor-repeater-item"] {
  letter-spacing: 0 !important;
  word-spacing: normal !important;
}

/* Preloader "LOADING" — keep LTR letter order on Arabic pages (html[dir=rtl]) */
#preloader .txt-loading,
#preloader .txt-loading .letters-loading {
  direction: ltr;
  unicode-bidi: isolate;
}

#preloader .txt-loading {
  text-align: center;
}

/* ==========================================================================
   Brand fonts + Attention Pulse (gold scroll progress, RTL-aware)
   ========================================================================== */
:root {
  --hawas-font-display-ar: "Almarai", "IBM Plex Sans Arabic", sans-serif;
  --hawas-font-display-lat: "Space Grotesk", Inter, system-ui, sans-serif;
  --hawas-font-body-ar: "IBM Plex Sans Arabic", "Almarai", sans-serif;
  --hawas-font-body-en: Inter, "Space Grotesk", system-ui, sans-serif;
  --hawas-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="ar"] body,
html[dir="rtl"] body {
  font-family: var(--hawas-font-body-ar);
}

html:not([dir="rtl"]) body {
  font-family: var(--hawas-font-body-en);
}

.kd-attention-pulse {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0%;
  z-index: 10050;
  background: linear-gradient(
    90deg,
    var(--hawas-accent),
    color-mix(in srgb, var(--hawas-accent) 50%, var(--hawas-coral))
  );
  box-shadow: 0 0 14px rgba(var(--hawas-accent-rgb), 0.55);
  pointer-events: none;
  transform-origin: left center;
}

html[dir="rtl"] .kd-attention-pulse {
  background: linear-gradient(
    270deg,
    var(--hawas-accent),
    color-mix(in srgb, var(--hawas-accent) 50%, var(--hawas-coral))
  );
  transform-origin: right center;
}

@keyframes hawas-attention-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(255, 184, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0); }
}

@keyframes hawas-ken-burns {
  from { transform: scale(1.08) translate(0, 0); }
  to { transform: scale(1.18) translate(-1.5%, -1%); }
}

html[dir="rtl"] {
  --hawas-ken-x: 1.5%;
}

@keyframes hawas-light-sweep {
  0%, 100% { background-position: 100% 0; opacity: 0.35; }
  50% { background-position: 0% 0; opacity: 0.85; }
}

@keyframes hawas-reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.kd-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--hawas-ease-out), transform 0.7s var(--hawas-ease-out);
}

.kd-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .kd-attention-pulse { display: none; }
  .kd-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
