/* =====================================================================
   home.css — only for fa/index.html (and en/index.html later)
   ===================================================================== */

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 920px;
  display: flex;
  flex-direction: column;
  background-color: var(--navy-900);
  overflow: hidden;
}

/* photo slider on the left half */
.hero__slides { position: absolute; top: 0; bottom: 0; left: 0; width: 52%; overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s linear;
}
.hero__slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 20, 48, .12), rgba(6, 20, 48, .6));
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__fade {
  position: absolute; top: 0; bottom: 0;
  left: calc(52% - 220px);
  width: 220px;
  background: linear-gradient(90deg, rgba(6, 20, 48, 0), var(--navy-900));
  pointer-events: none;
}

.hero__word {
  position: absolute;
  right: 40px; bottom: 120px;
  font-size: 300px; font-weight: 900; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(111, 196, 232, .16);
  pointer-events: none;
  user-select: none;
}

.hero__body {
  position: relative; z-index: 2;
  flex-grow: 1;
  display: flex; align-items: center;
  padding: 140px 0 150px;
}
.hero__text { width: 46%; min-width: 360px; display: flex; flex-direction: column; gap: 26px; }
.hero__title { font-size: clamp(42px, 5vw, 70px); font-weight: 900; line-height: 1.28; }
.hero__title span { color: var(--sky-light); }
.hero__lead { font-size: 18px; color: rgba(255, 255, 255, .72); max-width: 520px; }

/* slide counter */
.hero__counter {
  position: absolute; z-index: 3;
  left: 48px; bottom: 170px;
  display: flex; align-items: center; gap: 14px;
  direction: ltr;
  font-family: var(--font-en); font-weight: 700;
}
.hero__counter-now { font-size: 26px; }
.hero__counter-all { font-size: 14px; color: rgba(255, 255, 255, .55); }
.hero__bars { display: flex; gap: 6px; }
.hero__bar {
  position: relative;
  width: 30px; height: 2px;
  padding: 0; border: 0;
  background: rgba(255, 255, 255, .25);
  cursor: pointer;
  transition: width .4s;
}
.hero__bar.is-active { width: 70px; }
.hero__bar.is-active::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  background: #ffffff;
  animation: barFill 6s linear forwards;
}
@keyframes barFill { from { width: 0; } to { width: 100%; } }

/* stats band */
.stats {
  position: absolute; z-index: 4;
  left: 0; right: 0; bottom: 0;
  background: rgba(6, 20, 48, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(111, 196, 232, .2);
}
.stats .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; align-items: center; gap: 16px; padding: 28px 0; }
.stat + .stat { border-right: 1px solid rgba(111, 196, 232, .18); padding-right: 32px; }
.stat__num { font-size: 46px; font-weight: 900; line-height: 1; }
.stat__num em { font-style: normal; color: var(--red); }
.stat__label { font-size: 13.5px; color: rgba(255, 255, 255, .65); line-height: 1.5; }

/* ================= ABOUT ================= */
.about-grid { display: grid; grid-template-columns: 5fr 1fr 6fr; gap: 30px; align-items: center; }
.about-text { display: flex; flex-direction: column; gap: 22px; }
.about-actions { display: flex; align-items: center; gap: 22px; margin-top: 10px; flex-wrap: wrap; }
.about-actions span { display: flex; flex-direction: column; line-height: 1.5; }
.about-actions small { font-size: 13.5px; color: var(--muted-dark); }

.about-media { grid-column: 3; position: relative; height: 560px; }
.about-media__img {
  position: absolute;
  inset: 0 0 60px 120px;
  border-radius: 260px 260px 0 0;
  overflow: hidden;
  box-shadow: 0 40px 70px -30px rgba(10, 31, 68, .55);
}
.about-media__img img { width: 100%; height: 100%; object-fit: cover; }
.about-media__badge {
  position: absolute; left: 0; bottom: 0;
  width: 300px;
  padding: 30px;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--navy-800);
  color: #ffffff;
  border-top: 3px solid var(--red);
}
.about-media__badge b { font-size: 88px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--sky); }
.about-media__badge strong { font-size: 17px; }
.about-media__badge small { font-size: 13.5px; color: rgba(255, 255, 255, .65); }
.about-media__ring { position: absolute; top: 40px; left: 60px; width: 110px; height: 110px; border-radius: 50%; border: 1px dashed var(--sky); }

/* ================= PRODUCTS ================= */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head p { max-width: 380px; }

.products-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: stretch; }

.product-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.product-tab {
  position: relative;
  display: flex; align-items: center; gap: 20px;
  padding: 22px 18px;
  border: 0; border-bottom: 1px solid var(--line-dark);
  background: transparent;
  color: rgba(255, 255, 255, .62);
  text-align: right;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.product-tab:hover { background: rgba(111, 196, 232, .06); }
.product-tab__num { width: 28px; font-family: var(--font-en); font-size: 14px; font-weight: 700; color: rgba(111, 196, 232, .6); }
.product-tab__name { flex-grow: 1; font-size: 20px; font-weight: 600; }
.product-tab__arrow { opacity: 0; color: var(--sky-light); transition: opacity .3s; }

.product-tab.is-active { background: linear-gradient(270deg, rgba(32, 160, 210, .18), rgba(32, 160, 210, 0)); color: #ffffff; }
.product-tab.is-active::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--red); }
.product-tab.is-active .product-tab__num { color: var(--red); font-weight: 800; }
.product-tab.is-active .product-tab__name { font-size: 22px; font-weight: 800; }
.product-tab.is-active .product-tab__arrow { opacity: 1; }

.product-preview { position: relative; min-height: 560px; overflow: hidden; border-radius: 4px; background: var(--navy-800); }
.product-preview__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.product-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 20, 48, .05) 35%, rgba(6, 20, 48, .95)); }
.product-preview__num {
  position: absolute; z-index: 1; top: 24px; left: 24px;
  font-family: var(--font-en); font-size: 120px; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .45);
}
.product-preview__body { position: absolute; z-index: 2; right: 36px; left: 36px; bottom: 34px; display: flex; flex-direction: column; gap: 14px; }
.product-preview__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.product-preview__title { font-size: 38px; font-weight: 900; }
.product-preview__desc { font-size: 16.5px; color: rgba(255, 255, 255, .82); max-width: 560px; }
.product-preview__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* ================= INDUSTRIES (hub) ================= */
.industries { position: relative; overflow: hidden; }
.industries__glow {
  position: absolute; left: 18%; top: 50%;
  width: 900px; height: 900px; margin: -450px 0 0 -450px;
  background: radial-gradient(circle, rgba(32, 160, 210, .18), transparent 60%);
  pointer-events: none;
}
.industries-grid { position: relative; display: grid; grid-template-columns: 5fr 1fr 6fr; gap: 40px; align-items: center; }
.industries-info { display: flex; flex-direction: column; gap: 22px; }

.industry-card {
  margin-top: 10px;
  background: rgba(6, 20, 48, .75);
  border: 1px solid rgba(111, 196, 232, .22);
  border-top: 3px solid var(--red);
}
.industry-card__media { position: relative; height: 380px; overflow: hidden; }
.industry-card__media img { width: 100%; height: 100%; object-fit: cover; }
.industry-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 20, 48, 0) 40%, rgba(6, 20, 48, .9)); }
.industry-card__num {
  position: absolute; z-index: 1; bottom: 12px; left: 18px;
  font-family: var(--font-en); font-size: 72px; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .8);
}
.industry-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; }
.industry-card__body h3 { font-size: 28px; font-weight: 900; }
.industry-card__body p { font-size: 15.5px; color: rgba(255, 255, 255, .78); }
.industry-card__products { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.industry-card__products span {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(32, 160, 210, .22);
  border: 1px solid rgba(111, 196, 232, .5);
  font-size: 13px; font-weight: 700;
}

.hub-wrap { grid-column: 3; display: flex; justify-content: center; }
.hub { position: relative; width: 640px; height: 640px; flex-shrink: 0; }
.hub__lines, .hub__orbit { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub__orbit { animation: spin 26s linear infinite; }
.hub__active-line { stroke-dasharray: 6 8; animation: dash 2.4s linear infinite; }
.hub__center {
  position: absolute; left: 225px; top: 225px;
  width: 190px; height: 190px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #12306A, var(--navy-900) 70%);
  box-shadow: 0 0 0 1px rgba(111, 196, 232, .3), 0 0 80px rgba(32, 160, 210, .35);
}
.hub__center img { width: 132px; height: 132px; }

.hub__node {
  position: absolute;
  width: 96px; height: 96px;
  margin: -48px 0 0 -48px;
  padding: 0; border: 0;
  background: none;
  cursor: pointer;
}
.hub__node img {
  width: 78px; height: 78px;
  margin: 9px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(111, 196, 232, .55);
  filter: grayscale(.6) brightness(.8);
  transition: filter .3s, transform .3s;
}
.hub__node:hover img { filter: none; transform: scale(1.06); }
.hub__node span {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 14px; font-weight: 800;
  color: rgba(255, 255, 255, .65);
}
.hub__node.is-active { z-index: 2; }
.hub__node.is-active img { width: 96px; height: 96px; margin: 0; border: 3px solid #ffffff; filter: none; }
.hub__node.is-active::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--red); animation: pulse 2s infinite; }
.hub__node.is-active span { color: #ffffff; }

/* ================= EXPORT ROUTES ================= */
.export-grid { display: grid; grid-template-columns: 4fr 1fr 7fr; gap: 40px; align-items: center; }
.export-info { display: flex; flex-direction: column; gap: 18px; }
.export-legend { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; font-weight: 700; }
.export-legend span { display: flex; align-items: center; gap: 12px; }
.export-legend i { width: 12px; height: 12px; border-radius: 50%; }

.export-map {
  grid-column: 3;
  position: relative;
  height: 460px;
  border: 1px solid rgba(111, 196, 232, .18);
  background: radial-gradient(circle at 70% 60%, rgba(32, 160, 210, .16), transparent 55%);
  direction: ltr;
}
.export-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.export-map .route { stroke-dasharray: 6 8; animation: dash 2.4s linear infinite; }
.map-dot { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.map-label { position: absolute; transform: translate(-50%, 12px); font-size: 13px; color: rgba(255, 255, 255, .75); white-space: nowrap; }
.map-dot--home { width: 18px; height: 18px; background: var(--red); animation: pulse 2s infinite; }
.map-dot--office { width: 16px; height: 16px; background: #ffffff; border: 4px solid var(--sky); }
.map-dot--market { width: 11px; height: 11px; background: var(--sky-light); }
.map-label--strong { font-size: 15px; font-weight: 800; color: #ffffff; }
.export-map__tag { position: absolute; right: 18px; bottom: 14px; font-family: var(--font-en); font-size: 11px; letter-spacing: 3px; color: rgba(111, 196, 232, .45); }

/* ================= SLOGAN + PARTNERS ================= */
.slogan { max-width: 1000px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.slogan p { font-size: clamp(24px, 3vw, 36px); font-weight: 700; line-height: 1.75; }
.slogan strong { color: var(--blue); font-weight: 900; }

.partners { margin-top: 90px; padding-top: 50px; border-top: 1px solid rgba(10, 31, 68, .12); display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.partners__title { font-size: 15px; font-weight: 800; white-space: nowrap; }
.partners__logos { flex-grow: 1; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.partners__logos img { height: 60px; width: 130px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.partners__logos img:hover { filter: none; opacity: 1; }

/* ================= QUOTE FORM ================= */
.quote { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; background: var(--navy-800); }
.quote__intro {
  position: relative; overflow: hidden;
  padding: 100px 8%;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  background: linear-gradient(135deg, var(--blue), var(--navy-800));
}
.quote__intro > * { position: relative; }
.quote__deco { position: absolute !important; width: 460px; height: 460px; left: -120px; bottom: -170px; opacity: .22; }
.quote__intro p { font-size: 16.5px; color: rgba(255, 255, 255, .75); max-width: 440px; }
.quote__form { padding: 90px 8%; background: #ffffff; color: var(--navy-800); justify-content: center; }
.quote__form .btn { align-self: flex-start; }

/* ================= FACTORY MAP ================= */
.factory-map { position: relative; height: 520px; background: #0B2147; overflow: hidden; }
.factory-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  /* turns Google's light map dark to match the site */
  filter: invert(90%) hue-rotate(180deg) saturate(.6) brightness(.95);
}
.factory-map__shade {
  position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(6, 20, 48, .92) 0%, rgba(6, 20, 48, .55) 30%, rgba(6, 20, 48, 0) 55%);
  pointer-events: none;
}
.factory-map .container { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; pointer-events: none; }
.factory-map__card { width: 420px; display: flex; flex-direction: column; gap: 18px; pointer-events: auto; }
.factory-map__card h2 { font-size: 40px; font-weight: 900; }
.factory-map__addr { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; font-weight: 600; }
.factory-map__addr svg { color: var(--red); margin-top: 5px; flex-shrink: 0; }
.factory-map__card p { font-size: 15px; color: rgba(255, 255, 255, .65); }
.factory-map__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1180px) {
  .hub { transform: scale(.85); transform-origin: center; margin: -48px; }
}

@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero__slides { position: relative; width: 100%; height: 340px; order: 2; }
  .hero__fade, .hero__word, .hero__counter { display: none; }
  .hero__body { padding: 130px 0 40px; }
  .hero__text { width: 100%; min-width: 0; }
  .stats { position: relative; order: 3; }
  .stats .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-right: 0; padding-right: 0; }

  .about-grid, .industries-grid, .export-grid { grid-template-columns: 1fr; }
  .about-media, .hub-wrap, .export-map { grid-column: auto; }
  .about-media { height: 460px; }

  .products-grid { grid-template-columns: 1fr; }
  .product-preview { min-height: 460px; }

  .hub { transform: scale(.75); margin: -80px; }

  .quote { grid-template-columns: 1fr; }
  .quote__intro, .quote__form { padding: 70px 24px; }

  .factory-map { height: auto; display: flex; flex-direction: column-reverse; }
  .factory-map iframe { position: relative; height: 340px; }
  .factory-map__shade { display: none; }
  .factory-map .container { padding: 60px 0; }
  .factory-map__card { width: 100%; }
}

@media (max-width: 600px) {
  .stat { gap: 10px; padding: 20px 0; }
  .stat__num { font-size: 34px; }
  .stat + .stat { padding-right: 16px; }
  .about-media { height: 380px; }
  .about-media__img { inset: 0 0 60px 40px; }
  .about-media__badge { width: 240px; padding: 22px; }
  .about-media__badge b { font-size: 64px; }
  .product-tab__name, .product-tab.is-active .product-tab__name { font-size: 17px; }
  .product-preview__num { font-size: 80px; }
  .product-preview__title { font-size: 28px; }
  .hub { transform: scale(.52); margin: -150px; }
  .export-map { height: 320px; }
  .partners__logos { justify-content: center; }
}


/* ================= PRODUCTS ON WHITE ================= */
.products-section { position: relative; }
.products-section::before {            /* thin colour line under the hero */
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sky), var(--blue) 50%, var(--red));
}
.products-section .h2 { color: var(--navy-800); }

.products-section .product-list { border-top-color: var(--line-light); }
.products-section .product-tab { border-bottom-color: var(--line-light); color: var(--muted-dark); }
.products-section .product-tab:hover { background: var(--paper); }
.products-section .product-tab__num { color: var(--blue-mid); }
.products-section .product-tab.is-active {
  background: linear-gradient(270deg, rgba(32, 160, 210, .12), rgba(32, 160, 210, 0));
  color: var(--navy-800);
}
.products-section .product-tab__arrow { color: var(--red); }
.products-section .product-preview { box-shadow: 0 40px 70px -35px rgba(10, 31, 68, .55); }


/* product number: thin navy outline, quiet */
.products-section .product-preview__num {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(10, 31, 68, .45);
}
/* keep the title and text on the photo white */
.products-section .product-preview { color: #ffffff; }



/* ================= PARTNERS MARQUEE ================= */
.partners__marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  direction: ltr;   /* keeps the loop smooth on the RTL page */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.partners__track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  padding-right: 80px;
  animation: partnersScroll 35s linear infinite;
}
.partners__marquee:hover .partners__track { animation-play-state: paused; }
.partners__track img {
  height: 60px; width: 130px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .3s, opacity .3s;
}
.partners__track img:hover { filter: none; opacity: 1; }
@keyframes partnersScroll { to { transform: translateX(-50%); } }