/**
 * KM Site Skin v1.5 — alive Delta blue (aligned with landing).
 * Scoped: body:not(.km-landing)
 */

body:not(.km-landing) {
  --km-blue: #0090e0;
  --km-blue-deep: #0070b8;
  --km-blue-dark: #0070b8;
  --km-blue-hover: #00a8f0;
  --km-blue-soft: rgba(0, 144, 224, 0.14);
  --km-navy: #2c3548;
  --km-ink: #2c3548;
  --km-muted: #556278;
  --km-line: #dce4ee;
  --km-bg: #f2f6fa;
  --km-white: #ffffff;
  --km-accent: #f59e0b;
  --km-accent-hover: #d97706;
  --km-radius: 12px;
  --km-shadow: 0 10px 32px rgba(0, 90, 158, 0.14);
  --km-font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;

  /* Beat Theme Options tokens */
  --color-content-link: var(--km-blue) !important;
  --color-content-link-hover: var(--km-blue-deep) !important;
  --font-family: var(--km-font) !important;
  --h1-font-family: var(--km-font) !important;
  --h2-font-family: var(--km-font) !important;
  --h3-font-family: var(--km-font) !important;
  --h4-font-family: var(--km-font) !important;
  --h5-font-family: var(--km-font) !important;
  --h6-font-family: var(--km-font) !important;
  --color-content-primary-faded: var(--km-muted) !important;
  --color-content-secondary-faded: #8b95a5 !important;

  font-family: var(--km-font) !important;
  color: var(--km-ink);
  background: var(--km-bg) !important;
  letter-spacing: 0 !important;
  -webkit-font-smoothing: antialiased;
}

body:not(.km-landing) *,
body:not(.km-landing) *::before,
body:not(.km-landing) *::after {
  letter-spacing: 0 !important;
}

body:not(.km-landing) h1,
body:not(.km-landing) h2,
body:not(.km-landing) h3,
body:not(.km-landing) h4,
body:not(.km-landing) h5,
body:not(.km-landing) h6,
body:not(.km-landing) .w-nav-item,
body:not(.km-landing) .menu-item,
body:not(.km-landing) .woocommerce,
body:not(.km-landing) button,
body:not(.km-landing) input,
body:not(.km-landing) select,
body:not(.km-landing) textarea {
  font-family: var(--km-font) !important;
}

body:not(.km-landing) a {
  color: var(--km-blue);
}

body:not(.km-landing) a:hover {
  color: var(--km-blue-deep);
}

/* Header markup/CSS: see assets/header.css (real landing header) */

/* ------------------------------------------------------------------ */
/* Landing shell — content area                                       */
/* ------------------------------------------------------------------ */

body.km-landing-shell .w-header-show,
body.km-landing-shell .w-header-overlay,
body.km-landing-shell .w-toplink {
  display: none !important;
}

body.km-landing-shell .l-canvas {
  background: var(--km-bg);
}

body:not(.km-landing) #page-content.l-main,
body:not(.km-landing) .l-main {
  background: var(--km-bg);
}

body.km-landing-shell .l-section.for_sidebar.at_left,
body.km-landing-shell .l-section.for_sidebar.at_right {
  background: transparent;
}

body.km-landing-shell .l-sidebar .widget,
body.km-landing-shell .widget {
  background: var(--km-white);
  border: 1px solid var(--km-line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 16px rgba(0, 90, 158, 0.06);
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

body.km-landing-shell .l-sidebar .widget:hover,
body.km-landing-shell .widget:hover {
  border-color: rgba(0, 144, 224, 0.35);
  box-shadow: 0 8px 24px rgba(0, 90, 158, 0.1);
}

body.km-landing-shell .widgettitle,
body.km-landing-shell .widget .widgettitle {
  font-family: var(--km-font) !important;
  font-weight: 800 !important;
  color: var(--km-navy) !important;
  border: none !important;
}

body.km-landing-shell .woocommerce-breadcrumb,
body.km-landing-shell .woocommerce .woocommerce-breadcrumb {
  font-size: 0.82rem;
  color: var(--km-muted) !important;
}

body.km-landing-shell .woocommerce div.product,
body.km-landing-shell .woocommerce-page .woocommerce,
body.km-landing-shell .l-section-h > .woocommerce {
  background: transparent;
}

body.km-landing-shell .woocommerce div.product .summary,
body.km-landing-shell .woocommerce-Tabs-panel,
body.km-landing-shell .woocommerce-cart-form,
body.km-landing-shell .cart-collaterals,
body.km-landing-shell .woocommerce-checkout,
body.km-landing-shell .woocommerce-MyAccount-content,
body.km-landing-shell .woocommerce-MyAccount-navigation {
  background: var(--km-white);
  border: 1px solid var(--km-line);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 90, 158, 0.06);
}

body.km-landing-shell .woocommerce-MyAccount-navigation {
  padding: 0.75rem;
}

body.km-landing-shell .woocommerce-MyAccount-navigation a {
  border-radius: 8px !important;
}

body:not(.km-landing) .l-titlebar {
  background:
    radial-gradient(ellipse 80% 120% at 10% 0%, rgba(0, 168, 240, 0.45) 0%, transparent 55%),
    linear-gradient(135deg, #0090e0 0%, #0070b8 50%, #2c3548 100%) !important;
  color: #eef5ff !important;
  border: none !important;
  margin-bottom: 0 !important;
  box-shadow: 0 8px 28px rgba(0, 90, 158, 0.18);
}

body:not(.km-landing) .l-titlebar h1,
body:not(.km-landing) .l-titlebar .entry-title,
body:not(.km-landing) .l-titlebar a {
  color: #fff !important;
  font-family: var(--km-font) !important;
  font-weight: 800 !important;
}

body:not(.km-landing) .l-titlebar .g-breadcrumbs,
body:not(.km-landing) .l-titlebar .g-breadcrumbs a,
body:not(.km-landing) .l-titlebar .g-breadcrumbs span {
  color: rgba(255, 255, 255, 0.88) !important;
}

body:not(.km-landing) .w-btn.color_primary,
body:not(.km-landing) .w-btn.style_solid.color_primary,
body:not(.km-landing) a.w-btn.color_primary,
body:not(.km-landing) .button,
body:not(.km-landing) button.button,
body:not(.km-landing) .woocommerce a.button,
body:not(.km-landing) .woocommerce button.button,
body:not(.km-landing) .woocommerce input.button,
body:not(.km-landing) .woocommerce #respond input#submit {
  background: var(--km-blue) !important;
  border-color: var(--km-blue) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-family: var(--km-font) !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(0, 144, 224, 0.28) !important;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

body:not(.km-landing) .w-btn.color_primary:hover,
body:not(.km-landing) .button:hover,
body:not(.km-landing) .woocommerce a.button:hover,
body:not(.km-landing) .woocommerce button.button:hover {
  background: var(--km-blue-hover) !important;
  border-color: var(--km-blue-hover) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 144, 224, 0.36) !important;
}

body:not(.km-landing) .w-btn.color_secondary,
body:not(.km-landing) .w-btn.style_solid.color_secondary,
body:not(.km-landing) a.checkout-button,
body:not(.km-landing) .woocommerce a.checkout-button {
  background: var(--km-accent) !important;
  border-color: var(--km-accent) !important;
  color: #1a1206 !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.32) !important;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

body:not(.km-landing) .w-btn.color_secondary:hover,
body:not(.km-landing) a.checkout-button:hover {
  background: var(--km-accent-hover) !important;
  border-color: var(--km-accent-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.4) !important;
}

body:not(.km-landing) .woocommerce ul.products li.product,
body:not(.km-landing) .w-grid-item-h,
body:not(.km-landing) .product-item {
  border-radius: 14px !important;
  background: var(--km-white);
  border: 1px solid var(--km-line);
  box-shadow: 0 4px 16px rgba(0, 90, 158, 0.06);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body:not(.km-landing) .woocommerce ul.products li.product:hover,
body:not(.km-landing) .w-grid-item:hover .w-grid-item-h,
body:not(.km-landing) .product-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 144, 224, 0.45);
  box-shadow: 0 12px 28px rgba(0, 90, 158, 0.14);
}

body:not(.km-landing) .woocommerce ul.products li.product .woocommerce-loop-product__title,
body:not(.km-landing) .woocommerce ul.products li.product h2,
body:not(.km-landing) .woocommerce ul.products li.product h3 {
  font-family: var(--km-font) !important;
  font-weight: 700 !important;
  color: var(--km-ink) !important;
}

body:not(.km-landing) .woocommerce .price,
body:not(.km-landing) .woocommerce-Price-amount {
  color: var(--km-blue) !important;
  font-weight: 800 !important;
}

body:not(.km-landing) .woocommerce-pagination .page-numbers.current,
body:not(.km-landing) .woocommerce nav.woocommerce-pagination ul li a:focus,
body:not(.km-landing) .woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--km-blue) !important;
  border-color: var(--km-blue) !important;
  color: #fff !important;
}

/* Soft reveal (JS adds .is-visible) */
body:not(.km-landing) .km-skin-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  transition-delay: var(--km-reveal-delay, 0s);
}

body:not(.km-landing) .km-skin-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer markup/CSS: see assets/footer.css (real landing footer) */

/* ------------------------------------------------------------------ */
/* Forms / misc                                                       */
/* ------------------------------------------------------------------ */

body:not(.km-landing) input[type="text"],
body:not(.km-landing) input[type="email"],
body:not(.km-landing) input[type="tel"],
body:not(.km-landing) input[type="password"],
body:not(.km-landing) select,
body:not(.km-landing) textarea {
  border-radius: 10px !important;
  border-color: var(--km-line) !important;
  font-family: var(--km-font) !important;
}

/* Never restyle the shared header search field */
body:not(.km-landing) .km-header input[type="search"],
body:not(.km-landing) #kmHeader input[type="search"] {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

body:not(.km-landing) input[type="search"]:not(#kmHeader input):not(.km-header input) {
  border-radius: 10px !important;
  border-color: var(--km-line) !important;
  font-family: var(--km-font) !important;
}

body:not(.km-landing) input:focus,
body:not(.km-landing) select:focus,
body:not(.km-landing) textarea:focus {
  border-color: var(--km-blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 144, 224, 0.18) !important;
  outline: none !important;
}

/* Representatives page — repair icon after city name */
body:not(.km-landing) .company_city .w-post-elm-value {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
}

body:not(.km-landing) .company_city .w-post-elm-value::after {
  content: "";
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  max-width: 14px;
  max-height: 14px;
  flex-shrink: 0;
  vertical-align: middle;
  background-color: var(--km-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 900px) {
  body:not(.km-landing) #page-header .w-nav-list.level_1 > .menu-item > a {
    font-size: 0.9rem !important;
  }
}

/* Representatives page — phone numbers LTR; addresses stay RTL */
body:not(.km-landing) .office_phone .w-post-elm-value,
body:not(.km-landing) .representative_mobile .w-post-elm-value,
body:not(.km-landing) .office_phone,
body:not(.km-landing) .representative_mobile {
  direction: ltr !important;
  unicode-bidi: isolate;
  white-space: pre-line !important;
  text-align: left !important;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body:not(.km-landing) .representative_address,
body:not(.km-landing) .representative_address .w-post-elm-value,
body:not(.km-landing) .representative_address p {
  direction: rtl !important;
  unicode-bidi: isolate;
  text-align: right !important;
}

/* Industry activists page (page-id-548) — mobile card overflow */
@media (max-width: 900px) {
  body.page-id-548 #page-content .w-grid-item-h {
    padding: 0.85rem 0.9rem !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.page-id-548 #page-content .w-vwrapper,
  body.page-id-548 #page-content .w-hwrapper {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body.page-id-548 #page-content .w-hwrapper.align_justify {
    gap: 0.55rem 0.75rem;
    align-items: flex-start;
  }

  body.page-id-548 #page-content .office_phone,
  body.page-id-548 #page-content .representative_mobile,
  body.page-id-548 #page-content .office_phone .w-post-elm-value,
  body.page-id-548 #page-content .representative_mobile .w-post-elm-value,
  body.page-id-548 #page-content .office_phone p,
  body.page-id-548 #page-content .representative_mobile p {
    direction: ltr !important;
    unicode-bidi: isolate;
    text-align: right !important;
    padding-left: 0.5rem !important;
    padding-right: 0.15rem !important;
    margin: 0 !important;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-line !important;
  }

  body.page-id-548 #page-content .representative_address,
  body.page-id-548 #page-content .representative_address .w-post-elm-value,
  body.page-id-548 #page-content .representative_address p {
    direction: rtl !important;
    unicode-bidi: isolate;
    text-align: right !important;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 1 1 auto;
  }

  /* Wide admin table — scroll instead of breaking the page */
  body.page-id-548 #page-content table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 560px) {
  body.page-id-548 #page-content .w-hwrapper.usg_hwrapper_2,
  body.page-id-548 #page-content .w-hwrapper.usg_hwrapper_3,
  body.page-id-548 #page-content .w-hwrapper.usg_hwrapper_5 {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.2rem !important;
  }

  body.page-id-548 #page-content .w-hwrapper.usg_hwrapper_2 .w-text,
  body.page-id-548 #page-content .w-hwrapper.usg_hwrapper_3 .w-text,
  body.page-id-548 #page-content .w-hwrapper.usg_hwrapper_5 .w-text {
    width: auto !important;
    max-width: 100%;
  }

  body.page-id-548 #page-content .office_phone,
  body.page-id-548 #page-content .representative_mobile,
  body.page-id-548 #page-content .representative_address {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0.5rem !important;
    padding-right: 0.25rem !important;
    box-sizing: border-box;
  }

  body.page-id-548 #page-content .office_phone,
  body.page-id-548 #page-content .representative_mobile,
  body.page-id-548 #page-content .office_phone .w-post-elm-value,
  body.page-id-548 #page-content .representative_mobile .w-post-elm-value,
  body.page-id-548 #page-content .office_phone p,
  body.page-id-548 #page-content .representative_mobile p {
    text-align: right !important;
  }

  body.page-id-548 #page-content .representative_address,
  body.page-id-548 #page-content .representative_address .w-post-elm-value,
  body.page-id-548 #page-content .representative_address p {
    direction: rtl !important;
    text-align: right !important;
    padding-left: 0.25rem !important;
    padding-right: 0.15rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.km-landing) .woocommerce ul.products li.product,
  body:not(.km-landing) .w-grid-item-h,
  body:not(.km-landing) .product-item,
  body:not(.km-landing) .w-btn.color_primary,
  body:not(.km-landing) .button,
  body:not(.km-landing) .woocommerce a.button,
  body:not(.km-landing) .km-skin-reveal {
    transition: none !important;
    transform: none !important;
  }

  body:not(.km-landing) .km-skin-reveal {
    opacity: 1 !important;
  }

  body:not(.km-landing) .woocommerce ul.products li.product:hover,
  body:not(.km-landing) .w-grid-item:hover .w-grid-item-h,
  body:not(.km-landing) .product-item:hover,
  body:not(.km-landing) .w-btn.color_primary:hover,
  body:not(.km-landing) .button:hover {
    transform: none !important;
  }
}
