@font-face {
  font-family: "YIFAN Arabic";
  src: url("/assets/fonts/noto-sans-arabic-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --yifan-red: #d72227;
  --yifan-red-deep: #bd191f;
  --yifan-ink: #0c1217;
  --yifan-surface: #f7f7f5;
  --yifan-container: 1320px;
  --yifan-header-container: 1392px;
  --yifan-header-height: 104px;
  --yifan-header-row-height: 56px;
  --yifan-nav-size: 14px;
  --yifan-body-large: 18px;
  --yifan-display-large: clamp(42px, 4vw, 64px);
  --yifan-display-page: clamp(42px, 4.35vw, 68px);
  --yifan-display-section: clamp(34px, 3.55vw, 56px);
  --yifan-body-fluid: clamp(15px, .35vw + 13.5px, 18px);
  --yifan-space-section: clamp(72px, 6vw, 96px);
  --yifan-space-1: 8px;
  --yifan-space-2: 12px;
  --yifan-space-3: 18px;
  --yifan-space-4: 24px;
  --yifan-radius-button: 12px;
  --yifan-button-height: 48px;
  --yifan-button-size: 15px;
  --yifan-ease: cubic-bezier(.22, 1, .36, 1);
  --content: var(--yifan-container);
  --header-h: var(--yifan-header-height);
}

html.i18n-pending body { visibility: hidden; }

html.is-switching-locale *,
html.is-switching-locale *::before,
html.is-switching-locale *::after {
  animation: none !important;
  transition: none !important;
}

html.i18n-ready yifan-global-header .site-header,
html.i18n-ready .site-header {
  opacity: 1;
  transform: none;
  animation: none;
}

html.i18n-ready .headline-line {
  opacity: 1;
  transform: none;
  animation: none;
}

html.i18n-ready .hero .reveal-item,
html.i18n-ready .hero .pagination,
html.i18n-ready .hero .location {
  opacity: 1;
  animation: none;
}

yifan-global-header { display: contents; }
yifan-global-header [hidden] { display: none !important; }

yifan-global-header .whatsapp-float {
  position: fixed;
  inset-inline-end: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 56;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25d366;
  box-shadow: 0 12px 30px rgba(7, 40, 22, .25);
  text-decoration: none;
  isolation: isolate;
  transition: transform .25s var(--yifan-ease), background-color .25s ease, box-shadow .25s ease;
}

yifan-global-header .whatsapp-float:hover,
yifan-global-header .whatsapp-float:focus-visible {
  color: #fff;
  background: #1fba58;
  box-shadow: 0 15px 34px rgba(7, 40, 22, .32);
  transform: translateY(-3px) scale(1.03);
}

yifan-global-header .whatsapp-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

yifan-global-header .whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

yifan-global-header .whatsapp-float span {
  position: absolute;
  inset-inline-end: calc(100% + 10px);
  top: 50%;
  padding: 9px 13px;
  border-radius: 9px;
  color: #fff;
  background: #10251a;
  box-shadow: 0 7px 22px rgba(7, 25, 15, .2);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(5px);
  transition: opacity .2s ease, transform .2s ease;
}

yifan-global-header .whatsapp-float:hover span,
yifan-global-header .whatsapp-float:focus-visible span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 800px) {
  yifan-global-header .whatsapp-float {
    inset-inline-end: max(16px, env(safe-area-inset-right));
    bottom: max(80px, calc(env(safe-area-inset-bottom) + 74px));
    width: 54px;
    height: 54px;
  }

  yifan-global-header .whatsapp-float span { display: none; }
}

yifan-global-header .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 24px clamp(24px, 4.5vw, 72px);
  color: var(--yifan-ink);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transform: translateY(-10px);
  animation: yifan-header-in .8s var(--yifan-ease) .05s forwards;
  transition: padding .65s var(--yifan-ease), background-color .65s var(--yifan-ease), border-color .65s var(--yifan-ease), backdrop-filter .65s var(--yifan-ease), box-shadow .65s var(--yifan-ease);
}

yifan-global-header .site-header.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(248, 248, 246, .79);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  border-color: rgba(12, 18, 23, .08);
  box-shadow: 0 5px 24px rgba(12, 18, 23, .035);
}

yifan-global-header .header-inner {
  width: 100%;
  max-width: var(--yifan-header-container);
  min-height: var(--yifan-header-row-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  direction: ltr;
}

yifan-global-header .brand {
  grid-column: 1;
  order: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: inherit;
  text-decoration: none;
  direction: ltr;
}

yifan-global-header .brand-mark { width: 45px; height: auto; flex: none; }
yifan-global-header .mark-red { fill: var(--yifan-red); }
yifan-global-header .mark-gold { fill: #f59a27; }
yifan-global-header .brand-type { display: flex; flex-direction: column; line-height: 1; }
yifan-global-header .brand-type strong { font-size: 31px; letter-spacing: -.065em; font-weight: 760; }
yifan-global-header .brand-type small { margin-top: 5px; font-size: 5.2px; font-weight: 700; letter-spacing: .02em; }

yifan-global-header .desktop-nav {
  grid-column: 2;
  grid-row: 1;
  order: 2;
  justify-self: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(21px, 2vw, 34px);
  font-size: var(--yifan-nav-size);
  white-space: nowrap;
  direction: ltr;
}

yifan-global-header .desktop-nav a {
  position: relative;
  padding: 18px 0;
  color: inherit;
  text-decoration: none;
  transition: color .3s ease;
  unicode-bidi: plaintext;
}

yifan-global-header .desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yifan-red);
  opacity: 0;
  transform: translate(-50%, 4px) scale(0);
  transition: .35s var(--yifan-ease);
}

yifan-global-header .desktop-nav a:hover,
yifan-global-header .desktop-nav a:focus-visible,
yifan-global-header .desktop-nav a.active { color: #000; }
yifan-global-header .desktop-nav a.active { font-weight: 650; }
yifan-global-header .desktop-nav a.active::after { opacity: 1; transform: translate(-50%, 0) scale(1); }

yifan-global-header .header-actions {
  grid-column: 3;
  grid-row: 1;
  order: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  direction: ltr;
  position: relative;
}

yifan-global-header .icon-button,
yifan-global-header .language-button,
yifan-global-header .menu-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

yifan-global-header .icon-button {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(12, 18, 23, .12);
  padding: 0 0 0 19px;
}

yifan-global-header .icon-button svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }
yifan-global-header .language-button { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0; }
yifan-global-header .language-button > svg:first-child { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
yifan-global-header .language-button .chevron { width: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; }
yifan-global-header .language-button span { font-size: var(--yifan-nav-size); }

yifan-global-header .header-quote,
yifan-global-header .mobile-menu > .quote-button {
  min-height: var(--yifan-button-height);
  padding: 0 23px;
  border: 0;
  border-radius: var(--yifan-radius-button);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: var(--yifan-red);
  font-size: var(--yifan-button-size);
  font-weight: 540;
  text-decoration: none;
  transition: background .3s ease, padding .3s var(--yifan-ease), transform .3s var(--yifan-ease);
}

yifan-global-header .header-quote:hover,
yifan-global-header .header-quote:focus-visible,
yifan-global-header .mobile-menu > .quote-button:hover,
yifan-global-header .mobile-menu > .quote-button:focus-visible { background: var(--yifan-red-deep); padding-inline: 26px; }
yifan-global-header .header-quote .arrow,
yifan-global-header .mobile-menu .arrow { font-size: 22px; line-height: 1; }

yifan-global-header .menu-button { display: none; width: 44px; height: 44px; padding: 10px; }
yifan-global-header .menu-button span { display: block; height: 1.5px; margin: 6px 0; background: currentColor; transition: .35s var(--yifan-ease); }
yifan-global-header .mobile-menu { display: none; }

/* Decorative text arrows create inconsistent glyph shapes across fonts and
   locales. Keep functional carousel/gallery controls, but remove decoration. */
.arrow,
.card-arrow,
.final-cta-arrow,
.submit-arrow,
.region-copy > i[aria-hidden="true"],
.region-card-content > b[aria-hidden="true"],
.approach-card-content > b[aria-hidden="true"],
.quote-link > [aria-hidden="true"],
.mobile-quote-bar > [aria-hidden="true"],
.product-quote > [aria-hidden="true"],
.category-card i[aria-hidden="true"],
.cms-generic-copy b[aria-hidden="true"],
.cms-generic-item b[aria-hidden="true"],
.secondary-button > [aria-hidden="true"],
.story-link > b[aria-hidden="true"] {
  display: none !important;
}

html[dir="rtl"] yifan-global-header .header-inner {
  grid-template-columns: 236px minmax(0, 1fr) auto;
  direction: rtl;
}

html[dir="rtl"] yifan-global-header .brand {
  grid-column: 1;
  order: 1;
  justify-self: start;
}

html[dir="rtl"] yifan-global-header .desktop-nav {
  grid-column: 2;
  direction: rtl;
}

html[dir="rtl"] yifan-global-header .header-actions {
  grid-column: 3;
  order: 3;
  justify-self: end;
  direction: rtl;
}

html[dir="rtl"] yifan-global-header .icon-button {
  border-left: 0;
  border-right: 1px solid rgba(12, 18, 23, .12);
  padding: 0 19px 0 0;
}

html[dir="rtl"] yifan-global-header .header-quote .arrow,
html[dir="rtl"] yifan-global-header .mobile-menu .arrow { transform: scaleX(-1); }

@keyframes yifan-header-in { to { opacity: 1; transform: none; } }

@media (max-width: 1360px) and (min-width: 1181px) {
  yifan-global-header .site-header { padding-inline: 30px; }
  yifan-global-header .header-inner { grid-template-columns: 220px minmax(0, 1fr) auto; gap: 16px; }
  yifan-global-header .desktop-nav { gap: 18px; font-size: 13px; }
  yifan-global-header .header-actions { gap: 12px; }
  yifan-global-header .header-quote { padding-inline: 18px; }
  html[dir="rtl"] yifan-global-header .header-inner { grid-template-columns: 220px minmax(0, 1fr) auto; }
}

@media (max-width: 1180px) {
  yifan-global-header .site-header { padding-inline: 30px; }
  yifan-global-header .header-inner { grid-template-columns: 190px minmax(0, 1fr) auto; gap: 12px; }
  yifan-global-header .desktop-nav { gap: 17px; font-size: 13px; }
  yifan-global-header .header-actions { gap: 12px; }
  yifan-global-header .header-quote { display: none; }
  html[dir="rtl"] yifan-global-header .header-inner { grid-template-columns: 190px minmax(0, 1fr) auto; }
}

@media (max-width: 900px) {
  :root { --yifan-header-height: 88px; }
  yifan-global-header .site-header { padding: 18px 24px; }
  yifan-global-header .site-header.scrolled { padding: 10px 20px; }
  yifan-global-header .header-inner { display: flex; flex-direction: row; justify-content: space-between; min-height: 52px; }
  html[dir="rtl"] yifan-global-header .header-inner { display: flex; flex-direction: row; }
  yifan-global-header .brand { order: 1; }
  yifan-global-header .header-actions { order: 2; margin-left: auto; gap: 14px; }
  html[dir="rtl"] yifan-global-header .brand { order: 1; }
  html[dir="rtl"] yifan-global-header .header-actions { order: 2; margin: 0; }
  yifan-global-header .brand-mark { width: 38px; }
  yifan-global-header .brand-type strong { font-size: 27px; }
  yifan-global-header .desktop-nav,
  yifan-global-header .search-button,
  yifan-global-header .header-quote { display: none; }
  yifan-global-header .menu-button { display: block; }
  yifan-global-header .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  yifan-global-header .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  yifan-global-header .mobile-menu {
    position: static;
    inset: auto;
    width: auto;
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    background: rgba(248, 248, 246, .96);
    border: 0;
    border-top: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height .55s var(--yifan-ease), padding .55s var(--yifan-ease), border-color .55s ease;
  }
  yifan-global-header .mobile-menu nav { display: flex; flex-direction: column; gap: 0; overflow: hidden; }
  yifan-global-header .mobile-menu nav a { padding: 13px 0; border: 0; border-bottom: 1px solid rgba(12, 18, 23, .08); background: transparent; color: inherit; font-size: 18px; text-decoration: none; text-align: start; }
  yifan-global-header .mobile-menu nav a.active { color: var(--yifan-red); font-weight: 650; }
  yifan-global-header .mobile-menu > .quote-button { margin: 18px 0 10px; width: max-content; }
  yifan-global-header .mobile-menu.open { max-height: 620px; padding-top: 18px; padding-bottom: 20px; border-color: rgba(12, 18, 23, .08); }
  html[dir="rtl"] yifan-global-header .mobile-menu { direction: rtl; text-align: right; }
}

@media (max-width: 600px) {
  yifan-global-header .site-header { padding-inline: 17px; }
  yifan-global-header .site-header.scrolled { padding-inline: 14px; }
  yifan-global-header .brand { gap: 7px; }
  yifan-global-header .brand-mark { width: 34px; }
  yifan-global-header .brand-type strong { font-size: 23px; }
  yifan-global-header .brand-type small { margin-top: 3px; font-size: 4.2px; }
  yifan-global-header .language-button > svg:first-child,
  yifan-global-header .language-button .chevron { display: none; }
  yifan-global-header .language-button span { font-size: 13px; }
  yifan-global-header .header-actions { gap: 5px; }
  yifan-global-header .language-button { min-width: 44px; min-height: 44px; justify-content: center; }
}

:where(section[id], div[id]) { scroll-margin-top: calc(var(--yifan-header-height) + 16px); }

html, body { max-width: 100%; overflow-x: clip; }
main, section, article, nav, form, fieldset, yifan-global-header,
yifan-global-header .header-inner, yifan-global-header .header-actions { min-width: 0; }
img, video, svg { max-width: 100%; }

/* Shared responsive typography */
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea {
  font-family: "YIFAN Arabic", Tahoma, Arial, sans-serif;
}

html[lang="ar"] :where(h1, h2, h3, p, a, button, label, input, select, textarea) {
  letter-spacing: 0 !important;
}

:where(
  .hero h1,
  .products-hero h1,
  .services-hero h1,
  .network-hero h1,
  .about-hero h1,
  .contact-hero h1,
  .products-title-block h2,
  .why-content h2,
  .process-copy h2,
  .network-copy h2,
  .partners-content h2,
  .final-cta-content h2,
  .story-copy h2,
  .chapter-copy h2,
  .process-heading h2,
  .cta-content h2,
  .catalog-heading h2,
  .section-heading h2,
  .product-overview h2,
  .trust-content h2,
  .overview-copy h2,
  .regions-heading h2,
  .trade-copy h2,
  .china-copy h2,
  .cta-copy h2,
  .global-copy h2,
  .form-heading h2
) {
  max-inline-size: 100%;
  text-wrap: balance;
  overflow-wrap: normal;
}

:where(.hero-description, .hero-copy > p, .hero-content > p, main section p) {
  text-wrap: pretty;
}

@media (min-width: 1024px) {
  html[lang="ar"] .hero .hero-copy {
    width: min(860px, 70vw);
    max-width: none;
  }

  html[lang="ar"] .hero .hero-copy h1 {
    display: flex;
    align-items: baseline;
    gap: .22em;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(48px, 4.25vw, 64px);
    line-height: 1.08;
  }

  html[lang="ar"] .hero .hero-copy h1 .line-mask {
    display: inline-block;
    flex: none;
  }
}

@media (max-width: 1023px) {
  :where(
    .hero h1,
    .products-hero h1,
    .services-hero h1,
    .network-hero h1,
    .about-hero h1,
    .contact-hero h1
  ) {
    font-size: clamp(42px, 6.4vw, 56px) !important;
    line-height: 1.06 !important;
  }
}

@media (max-width: 600px) {
  :where(
    .hero h1,
    .products-hero h1,
    .services-hero h1,
    .network-hero h1,
    .about-hero h1,
    .contact-hero h1
  ) {
    font-size: clamp(35px, 10.4vw, 44px) !important;
    line-height: 1.1 !important;
  }

  :where(
    .products-title-block h2,
    .why-content h2,
    .process-copy h2,
    .network-copy h2,
    .partners-content h2,
    .final-cta-content h2,
    .story-copy h2,
    .chapter-copy h2,
    .process-heading h2,
    .cta-content h2,
    .catalog-heading h2,
    .section-heading h2,
    .product-overview h2,
    .trust-content h2,
    .overview-copy h2,
    .regions-heading h2,
    .trade-copy h2,
    .china-copy h2,
    .cta-copy h2,
    .global-copy h2,
    .form-heading h2
  ) {
    font-size: clamp(32px, 9.6vw, 42px) !important;
    line-height: 1.12 !important;
  }

  :where(.hero-description, .hero-copy > p, .hero-content > p, main section p) {
    overflow-wrap: anywhere;
  }
}

@media (max-height: 600px) and (min-width: 601px) {
  .hero,
  .products-hero,
  .services-hero,
  .network-hero,
  .about-hero,
  .contact-hero {
    height: max(420px, 100svh) !important;
    min-height: 420px !important;
  }

  .hero-grid { height: 100% !important; }

  .hero-copy,
  .hero-content,
  html[dir="rtl"] .hero-copy,
  html[dir="rtl"] .hero-content {
    top: 52% !important;
    transform: translateY(-44%) !important;
  }

  .hero h1,
  .products-hero h1,
  .services-hero h1,
  .network-hero h1,
  .about-hero h1,
  .contact-hero h1 {
    font-size: clamp(38px, 5.7vw, 50px) !important;
  }

  .hero-description,
  .hero-copy > p,
  .hero-content > p { margin-top: 14px !important; font-size: 14px !important; line-height: 1.4 !important; }
  .hero-actions { margin-top: 16px !important; }
  .pagination { bottom: 24px !important; }
  .location, .scroll-cue { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  yifan-global-header .site-header { opacity: 1; transform: none; animation: none; transition-duration: .01ms; }
}
