/* ============================================================
   LACO NEW ENERGY - Layout 01 "Premium Dark"
   Compiled in-browser by less.min.js (rel="stylesheet/less")
   ============================================================ */
@red: #e60000;
@red-dark: #b80000;
@black: #0a0a0a;
@dark: #121212;
@gray: #f5f5f5;
@white: #ffffff;
@line: rgba(255,255,255,0.14);

@font-head: 'Oswald', sans-serif;
@font-body: 'Roboto', sans-serif;

/* ---------- container width: 1400px on desktop, notebook friendly ---------- */
@media (min-width: 1440px) {
  .container { max-width: 1400px; }
}
@media (min-width: 1281px) and (max-width: 1439.98px) {
  .container { max-width: 1240px; }
}

html { scroll-behavior: smooth; }
body {
  font-family: @font-body;
  color: #333;
  background: @white;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 { font-family: @font-head; text-transform: uppercase; }
a { transition: all .3s ease; }
img { max-width: 100%; }

/* ---------- buttons ---------- */
.btn-red {
  /*display: inline-block;*/
  cursor: pointer;
  font-size: inherit;
  background: @red;
  color: #fff;
  font-family: @font-head;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 34px;
  border: 2px solid @red;
  position: relative;
  overflow: hidden;
  z-index: 1;
  i { margin-left: 8px; transition: transform .3s; }
  &:hover {
    color: #fff; text-decoration: none;
    background: @red-dark; border-color: @red-dark;
    i { transform: translateX(6px); }
  }
  &.btn-sm { padding: 10px 22px; font-size: 13px; }
}
.btn-line {
  display: inline-block;
  color: #fff;
  font-family: @font-head;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 34px;
  border: 2px solid rgba(255,255,255,0.6);
  &:hover { color: #fff; border-color: @red; background: rgba(230,0,0,0.15); text-decoration: none; }
  &.dark { color: @black; border-color: rgba(0,0,0,0.35);
    &:hover { color: #fff; border-color: @red; background: @red; }
  }
  &.btn-sm { padding: 10px 22px; font-size: 13px; }
}
.btn-white {
  display: inline-block;
  background: #fff;
  color: @black;
  font-family: @font-head;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 34px;
  border: 2px solid #fff;
  i { margin-left: 8px; transition: transform .3s; }
  &:hover { color: @red; text-decoration: none; background: @black; border-color: #fff; i { transform: translateX(6px); } }
}
.btn-wa {
  display: inline-block;
  background: #25d366;
  color: #fff;
  font-family: @font-head;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 30px;
  border: 2px solid #25d366;
  i { margin-right: 8px; }
  &:hover { color: #fff; background: #1da851; border-color: #1da851; text-decoration: none; }
}

/* ---------- eyebrow / titles ---------- */
.sec-eyebrow {
  display: flex; align-items: center;
  color: @red;
  font-family: @font-head;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 18px;
  .eyebrow-line {
    display: inline-block; width: 44px; height: 2px; background: @red; margin-right: 14px;
  }
}
.sec-title {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.12;
  color: @black;
  margin-bottom: 0;
  span { color: @red; }
}
.sec-text { color: #555; font-size: 16px; line-height: 1.85; }
.sec-text.light { color: #aaa; }
.sec-head-center { text-align: center; margin-bottom: 56px;
  .sec-eyebrow { justify-content: center; .eyebrow-line { margin-right: 0; margin-left: 14px; order: 2; } }
  &.dark { .sec-title { color: #fff; } }
}
section { padding: 110px 0; }

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  padding: 0;
  min-height: 86px;
  background: rgba(10,10,10,0.82);
  border-bottom: 1px solid @line;
  transition: all .4s ease;
  .navbar-brand img { height: 52px; }
  .navbar-nav { align-items: center; }
  .nav-link {
    font-family: @font-head;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1.6px;
    color: #ccc;
    padding: 32px 17px !important;
    position: relative;
    &::after {
      content: ''; position: absolute; left: 17px; right: 17px; bottom: 22px;
      height: 2px; background: @red; transform: scaleX(0); transition: transform .3s;
    }
    &:hover { color: #fff; &::after { transform: scaleX(1); } }
    &.active { color: @red; &::after { transform: scaleX(1); } }
  }
  .nav-tools { display: flex; align-items: center; margin-left: 24px; }
  .lang-switch .lang-toggle {
    color: #ccc; font-family: @font-head; font-size: 13px; letter-spacing: 1px; padding: 10px 14px;
    &:hover { color: #fff; text-decoration: none; }
  }
  .lang-switch .dropdown-menu {
    background: @dark; border: 1px solid @line; border-radius: 0; min-width: 130px;
    .dropdown-item { color: #ccc; font-size: 13px; padding: 9px 16px;
      &:hover { color: #fff; background: @red; }
    }
  }
  .btn-inquire {
    display: inline-block;
    background: @red; color: #fff;
    font-family: @font-head; font-size: 13px; font-weight: 500; letter-spacing: 1.6px;
    padding: 12px 26px; margin-left: 8px;
    &:hover { background: @red-dark; color: #fff; text-decoration: none; }
  }
  .navbar-toggler { border: 1px solid #555; padding: 8px 10px; margin-right: 10px;
    span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; transition: all .3s; }
  }
}
#mainNav.scrolled { background: @black; min-height: 72px; }
@media (max-width: 991px) {
  #mainNav { min-height: 64px; padding: 0 15px;
    .navbar-nav .nav-link { padding: 13px 0 !important; &::after { display: none; } }
    .nav-tools { flex-direction: column; align-items: flex-end; margin: 14px 0 22px;
      .btn-inquire { margin-left: 0; margin-top: 12px; }
    }
    .navbar-collapse { background: @black; padding: 0 15px; margin: 0 -15px; border-top: 1px solid @line; }
    .lang-switch .dropdown-menu {
      position: static; min-width: 0; width: 100%; max-width: 240px;
      margin: 6px 0 10px; box-shadow: none;
    }
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero-carousel {
  height: 100vh; min-height: 620px;
  .carousel-inner, .carousel-item { height: 100%; }
  .hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.08);
  }
  .carousel-item.active .hero-bg { transform: scale(1); transition: transform 7s ease-out; }
  .hero-shade {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(5,5,5,0.88) 0%, rgba(5,5,5,0.55) 45%, rgba(5,5,5,0.25) 100%);
  }
  .container { position: relative; height: 100%; display: flex; align-items: center; }
  .hero-caption { max-width: 720px; padding-top: 60px; }
  .hero-eyebrow {
    color: @red; font-family: @font-head; font-size: 15px; letter-spacing: 5px;
    margin-bottom: 24px; display: flex; align-items: center;
    .eyebrow-line { width: 46px; height: 2px; background: @red; margin-right: 16px; }
  }
  .hero-title {
    color: #fff; font-size: 82px; font-weight: 700; line-height: 1.04; margin-bottom: 26px;
    text-transform: uppercase;
    span { color: @red; }
  }
  .hero-text { color: #ccc; font-size: 17px; line-height: 1.8; max-width: 560px; margin-bottom: 40px; }
  .hero-btns{
    display: flex; align-items: center;
  }
  .hero-btns a { margin-right: 14px; margin-bottom: 10px; }
  .carousel-control-prev, .carousel-control-next { width: 70px; opacity: 1; }
  .hero-arrow {
    display: flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; border: 1px solid rgba(255,255,255,0.4); color: #fff; font-size: 20px;
    &:hover { background: @red; border-color: @red; }
  }
  .hero-scroll {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    a { color: #aaa; font-family: @font-head; font-size: 11px; letter-spacing: 3px;
      i { display: block; text-align: center; font-size: 16px; animation: bounce 2s infinite; }
      &:hover { color: @red; text-decoration: none; }
    }
  }
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (max-width: 767px) {
  .hero-carousel {
    min-height: 560px;
    .hero-title { font-size: 42px; }
    .hero-text { font-size: 15px; }
    .carousel-control-prev, .carousel-control-next { display: none; }
  }
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stat-strip { background: @black; border-bottom: 1px solid @line; padding: 0; }
.stat-item { padding: 48px 10px; border-left: 1px solid @line; position: relative;
  &:first-child { border-left: none; }
  &::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: @red; transform: scaleX(0); transition: transform .4s; }
  &:hover::before { transform: scaleX(1); }
  .stat-num { font-family: @font-head; font-size: 58px; font-weight: 700; color: #fff; line-height: 1;
    &::after { content: '+'; color: @red; }
  }
  .stat-label { color: #888; font-family: @font-head; font-size: 12px; letter-spacing: 2.5px; margin-top: 10px; }
}
@media (max-width: 767px) {
  .stat-item { border-left: none; border-top: 1px solid @line; padding: 34px 10px;
    .stat-num { font-size: 38px; }
  }
}

/* ============================================================
   INTRO
   ============================================================ */
.sec-intro { background: @white; }
.sec-intro .col-lg-6:last-child .sec-text { margin-bottom: 16px; }
.sec-intro .btn-red { margin-top: 14px; }

/* About 单页后台内容 */
.story-content {
  color: #555; font-size: 16px; line-height: 1.85;
  p { margin-bottom: 16px; }
  h3 { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 600; color: @black; text-transform: uppercase; letter-spacing: 1px; margin: 26px 0 14px;
    &::before { content: ''; display: inline-block; width: 26px; height: 3px; background: @red; margin-right: 12px; vertical-align: middle; }
  }
  ul { list-style: none; padding: 0; margin: 0 0 16px;
    li { position: relative; padding-left: 26px; margin-bottom: 10px;
      &::before { content: '\f00c'; font-family: 'FontAwesome'; position: absolute; left: 0; top: 0; color: @red; font-size: 14px; }
    }
  }
  strong { color: @black; }
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.sec-products { background: @gray; }
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 320px;
  gap: 0;
  .prod-card {
    display: block; position: relative; overflow: hidden;
    img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
    .prod-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.25) 55%, rgba(10,10,10,0.05) 100%);
      padding: 30px; display: flex; flex-direction: column; justify-content: flex-end;
      &::before {
        content: ''; position: absolute; left: 30px; bottom: 0; width: 0; height: 3px; background: @red; transition: width .5s;
      }
      .prod-num { position: absolute; top: 24px; right: 30px; color: rgba(255,255,255,0.35); font-family: @font-head; font-size: 44px; font-weight: 700; }
      h3 { color: #fff; font-size: 26px; font-weight: 600; margin-bottom: 8px; }
      p { color: #ccc; font-size: 14px; line-height: 1.6; margin-bottom: 10px; display: none; }
      .prod-more { color: @red; font-family: @font-head; font-size: 12px; letter-spacing: 2px;
        i { margin-left: 6px; }
      }
    }
    &:hover {
      img { transform: scale(1.07); }
      .prod-overlay::before { width: ~"calc(100% - 60px)"; }
      .prod-overlay { background: linear-gradient(to top, rgba(0,0,0,0.94) 0%, rgba(10,10,10,0.45) 60%, rgba(10,10,10,0.1) 100%); }
    }
  }
  .prod-card-large {
    grid-column: span 2; grid-row: span 2;
    .prod-overlay { padding: 44px;
      h3 { font-size: 46px; }
      p { display: block; max-width: 420px; }
      &::before { left: 44px; }
      &:hover::before { width: ~"calc(100% - 88px)"; }
    }
  }
}
@media (max-width: 991px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
}
@media (max-width: 575px) {
  .prod-grid { grid-template-columns: 1fr;
    .prod-card-large { grid-column: auto; grid-row: auto; }
  }
}

/* ============================================================
   SOLUTIONS (dark)
   ============================================================ */
.sec-solutions { background: @black; }
.sec-solutions .sec-head-center { margin-bottom: 66px; }
.sol-row {
  display: flex; align-items: stretch; margin-bottom: 90px;
  &:last-child { margin-bottom: 0; }
  .sol-media {
    flex: 0 0 52%; position: relative; min-height: 380px; overflow: hidden;
    img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
    .sol-tag {
      position: absolute; left: 0; bottom: 0;
      background: @red; color: #fff; font-family: @font-head; font-size: 13px; letter-spacing: 2.5px;
      padding: 12px 26px;
    }
    &:hover img { transform: scale(1.05); }
  }
  .sol-body { flex: 1; padding: 56px 60px; background: @dark; border-bottom: 1px solid @line; }
  .sol-body h3 { color: #fff; font-size: 30px; font-weight: 600; margin-bottom: 18px; }
  .sol-body p { color: #aaa; font-size: 15px; line-height: 1.8; }
  .sol-list { list-style: none; margin: 22px 0 30px; padding: 0;
    li { color: #ccc; font-size: 14px; padding: 7px 0;
      i { color: @red; margin-right: 10px; }
    }
  }
}
.sol-row-reverse { flex-direction: row-reverse; }
@media (max-width: 991px) {
  .sol-row { flex-direction: column;
    .sol-media { min-height: 300px; }
    .sol-body { padding: 40px 30px; }
  }
}

/* ============================================================
   MARKETS
   ============================================================ */
.sec-markets {
  background: @dark url('../images/hero-1.png') center/cover fixed;
  position: relative;
  &::before { content: ''; position: absolute; inset: 0; background: rgba(10,10,10,0.88); }
  .container { position: relative; }
  .sec-head-center { margin-bottom: 56px; }
}
.market-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.market-item {
  width: 25%; padding: 30px 34px; text-align: center; border-left: 1px solid @line;
  &:first-child { border-left: none; }
  .market-dot {
    width: 12px; height: 12px; background: @red; border-radius: 50%;
    margin: 0 auto 16px; box-shadow: 0 0 0 6px rgba(230,0,0,0.18);
  }
  h4 { color: #fff; font-size: 24px; font-weight: 600; letter-spacing: 3px; margin-bottom: 10px; }
  p { color: #999; font-size: 13px; line-height: 1.7; margin: 0; }
}
@media (max-width: 991px) { .market-item { width: 50%; border-left: none; border-top: 1px solid @line; } }
@media (max-width: 575px) { .market-item { width: 100%; } }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: @red; padding: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; padding: 66px 0; }
.cta-left h2 { color: #fff; font-size: 34px; font-weight: 700; margin-bottom: 10px; line-height: 1.2;
  span { color: @black; }
}
.cta-left p { color: rgba(255,255,255,0.85); margin: 0; font-size: 15px; }
.cta-right { display: flex; flex-direction: column; gap: 12px; text-align: center; }
@media (max-width: 991px) {
  .cta-inner { flex-direction: column; text-align: center; gap: 26px; }
  .cta-left h2 { font-size: 26px; }
}

/* ============================================================
   PAGE HEAD (inner pages)
   ============================================================ */
.page-head {
  position: relative; padding: 190px 0 90px;
  background-size: cover; background-position: center;
  .page-head-shade { position: absolute; inset: 0; background: rgba(5,5,5,0.78); }
  .container { position: relative; }
  h1 { color: #fff; font-size: 60px; font-weight: 700; margin-bottom: 8px;
    span { color: @red; }
  }
  .breadcrumb { background: none; padding: 0; margin: 0;
    .breadcrumb-item { font-family: @font-head; font-size: 12px; letter-spacing: 2px; color: #999; }
    .breadcrumb-item a { color: #999; &:hover { color: @red; text-decoration: none; } }
    .breadcrumb-item.active { color: @red; }
    .breadcrumb-item+.breadcrumb-item::before { content: '/'; color: #666; }
  }
}
@media (max-width: 767px) { .page-head { padding: 140px 0 60px; h1 { font-size: 40px; } } }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.story-media { position: relative;
  img { width: 100%; }
  .story-badge {
    position: absolute; right: -14px; bottom: 34px;
    background: @red; color: #fff; padding: 22px 30px;
    display: flex; flex-direction: column;
    span { font-family: @font-head; font-size: 13px; letter-spacing: 3px; opacity: .85; }
    strong { font-family: @font-head; font-size: 20px; letter-spacing: 2px; }
  }
}
@media (max-width: 991px) { .story-media { margin-top: 40px; } }
.sec-capabilities { background: @black; }
.cap-card {
  background: @dark; border-bottom: 2px solid @red;
  padding: 40px 30px; height: 100%; margin-bottom: 26px;
  transition: all .4s;
  .cap-icon { width: 64px; height: 64px; background: rgba(230,0,0,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
    i { color: @red; font-size: 26px; }
  }
  h4 { color: #fff; font-size: 17px; font-weight: 600; letter-spacing: 1.5px; margin-bottom: 12px; }
  p { color: #999; font-size: 14px; line-height: 1.75; margin: 0; }
  &:hover { background: @red; transform: translateY(-8px);
    .cap-icon { background: rgba(0,0,0,0.25); i { color: #fff; } }
    h4 { color: #fff; } p { color: rgba(255,255,255,0.9); }
  }
}
.factory-band { position: relative; padding: 0; }
.factory-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.factory-band::before { content: ''; position: absolute; inset: 0; background: rgba(5,5,5,0.8); }
.factory-inner { position: relative; padding: 120px 0; max-width: 640px;
  h2 { color: #fff; font-size: 46px; font-weight: 700; line-height: 1.15; margin-bottom: 18px;
    span { color: @red; }
  }
  p { color: #ccc; font-size: 16px; line-height: 1.8; margin-bottom: 30px; }
}
.sec-mv { background: @gray; }
.mv-card {
  background: @black; color: #fff; padding: 56px 48px; height: 100%;
  position: relative; overflow: hidden;
  .mv-num { position: absolute; top: 20px; right: 30px; font-family: @font-head; font-size: 84px; font-weight: 700; color: rgba(255,255,255,0.06); line-height: 1; }
  h3 { color: #fff; font-size: 28px; font-weight: 600; margin-bottom: 16px; }
  p { color: #bbb; font-size: 15px; line-height: 1.85; margin: 0; }
}
.mv-card-red { background: @red;
  .mv-num { color: rgba(0,0,0,0.12); }
  p { color: rgba(255,255,255,0.92); }
}
@media (max-width: 991px) { .mv-card { margin-bottom: 24px; } }

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.sec-catalog { background: @gray; }
.side-cats {
  background: @black; padding: 34px 28px; position: sticky; top: 100px;
  h4 { color: #fff; font-size: 18px; letter-spacing: 2px; padding-bottom: 14px; border-bottom: 1px solid @line; margin-bottom: 0; }
  ul { list-style: none; margin: 0; padding: 0;
    li a {
      display: flex; justify-content: space-between; align-items: center;
      color: #bbb; font-size: 14px; padding: 15px 0; border-bottom: 1px solid @line;
      letter-spacing: .5px;
      span { color: #777; font-family: @font-head; font-size: 12px; }
      &:hover, &.active { color: @red; text-decoration: none; padding-left: 8px;
        span { color: @red; }
      }
    }
  }
  .side-help { margin-top: 26px; background: @red; padding: 24px;
    h5 { color: #fff; font-size: 15px; letter-spacing: 2px; margin-bottom: 10px; }
    p { color: rgba(255,255,255,0.9); font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
    .btn-red { background: @black; border-color: @black; padding: 10px 20px; font-size: 12px; }
  }
}
.catalog-body { padding-left: 10px; }
.cat-block { margin-bottom: 56px; }
.cat-head { display: flex; align-items: center; margin-bottom: 30px;
  h3 { color: @black; font-size: 26px; font-weight: 600; letter-spacing: 1px; margin: 0; white-space: nowrap; }
  .cat-line { flex: 1; height: 1px; background: #ddd; margin-left: 22px; }
}
.prod-row-item {
  display: flex; background: #fff; margin-bottom: 26px; border: 1px solid #eee;
  transition: box-shadow .35s;
  .pri-media { flex: 0 0 300px; overflow: hidden;
    img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
  }
  .pri-body { flex: 1; padding: 34px 36px; }
  .pri-body h4 { color: @black; font-size: 20px; font-weight: 600; letter-spacing: .5px; margin-bottom: 4px; }
  .pri-model { color: @red; font-family: @font-head; font-size: 12px; letter-spacing: 2px; margin-bottom: 16px; }
  .spec-table { width: 100%; margin-bottom: 20px;
    td { padding: 6px 0; border-bottom: 1px dashed #eee; font-size: 13.5px; }
    td:first-child { color: #888; width: 150px; }
    td:last-child { color: #333; font-weight: 500; }
  }
  .pri-actions{
    display: flex; align-items: center; gap: 8px;
    a { margin-right: 8px; }
  } 
  &:hover { box-shadow: 0 14px 34px rgba(0,0,0,0.1);
    .pri-media img { transform: scale(1.05); }
  }
}
/* btn-line is white-on-dark by design; on white product cards switch to dark outline */
.prod-row-item .pri-actions .btn-line {
  color: @black;
  border-color: #d9d9d9;
  &:hover { color: #fff; background: @red; border-color: @red; }
}
/* category tag on mixed 'all products' listing cards */
.pri-cat {
  color: #999; font-family: @font-head; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px;
}
@media (max-width: 991px) { .side-cats { position: static; margin-bottom: 30px; } }
@media (max-width: 767px) {
  .prod-row-item { flex-direction: column;
    .pri-media { height: 220px; }
    .pri-body { padding: 24px; }
  }
}

/* ============================================================
   SOLUTIONS PAGE
   ============================================================ */
.sec-solutions-page { background: @white; }
.sol-block {
  display: flex; align-items: center; margin-bottom: 110px;
  &:last-child { margin-bottom: 0; }
  .sol-block-media {
    flex: 0 0 48%; position: relative; min-height: 420px; overflow: hidden;
    img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
    .sol-tag {
      position: absolute; top: 24px; left: 24px; background: @red; color: #fff;
      font-family: @font-head; font-size: 16px; width: 56px; height: 56px;
      display: flex; align-items: center; justify-content: center;
    }
    &:hover img { transform: scale(1.05); }
  }
  .sol-block-body { flex: 1; padding: 0 64px;
    h2 { color: @black; font-size: 38px; font-weight: 600; margin-bottom: 18px; line-height: 1.15;
      span { color: @red; }
    }
    p { color: #555; font-size: 15px; line-height: 1.85; }
    .sol-list { list-style: none; margin: 20px 0 28px; padding: 0;
      li { padding: 6px 0; font-size: 14.5px; color: #444;
        i { color: @red; margin-right: 10px; }
      }
    }
  }
}
.sol-block-reverse { flex-direction: row-reverse;
  .sol-block-body { padding: 0 0 0 64px; }
}
@media (max-width: 991px) {
  .sol-block { flex-direction: column;
    .sol-block-media { min-height: 300px; width: 100%; margin-bottom: 34px; }
    .sol-block-body { padding: 0 8px; }
  }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.sec-contact { background: @gray; }
.c-card {
  background: @black; color: #fff; padding: 48px 56px;
  .c-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 18px 30px; margin-bottom: 14px;
    h4 { color: #fff; font-size: 22px; letter-spacing: 2px; margin-bottom: 8px; }
    .c-intro { color: #999; font-size: 14px; margin: 0; }
  }
  .c-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 56px;
    li { display: flex; padding: 17px 0; border-bottom: 1px solid @line;
      i { color: @red; font-size: 17px; margin-right: 16px; margin-top: 4px; width: 18px; }
      div strong { display: block; color: #fff; font-family: @font-head; font-size: 13px; letter-spacing: 1.5px; margin-bottom: 3px; }
      div span { color: #aaa; font-size: 13.5px; line-height: 1.6; }
    }
  }
  .c-btns { display: flex; gap: 12px; flex-wrap: wrap;
    .btn-wa, .btn-line { padding: 11px 20px; font-size: 12px; }
  }
}
.map-box { margin-top: 44px; border: 6px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  iframe { display: block; width: 100%; height: 420px; filter: grayscale(1) contrast(1.05); }
}
.form-card {
  margin-top: 44px;
  background: #fff; padding: 44px 52px; border-top: 4px solid @red;
  box-shadow: 0 14px 40px rgba(0,0,0,0.07);
  h4 { color: @black; font-size: 22px; letter-spacing: 2px; margin-bottom: 4px; }
  &>p { color: #888; font-size: 13.5px; margin-bottom: 26px; }
  .form-control {
    border-radius: 0; border: 1px solid #e2e2e2; padding: 12px 16px; font-size: 14px; height: auto;
    &:focus { border-color: @red; box-shadow: none; }
  }
  .btn-red { margin-top: 6px; }
}
@media (max-width: 991px) {
  .c-card { padding: 40px 32px; }
  .c-list { grid-template-columns: repeat(2, 1fr); }
  .form-card { margin-top: 34px; }
  .map-box { margin-top: 34px; }
}
@media (max-width: 767px) {
  .c-list { grid-template-columns: 1fr; }
  .map-box iframe { height: 300px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: @black; padding-top: 90px; color: #999; }
.footer-brand img { height: 54px; margin-bottom: 22px; }
.footer-about { font-size: 13.5px; line-height: 1.85; color: #999; }
.footer-social { margin-top: 20px;
  a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid #333; color: #ccc; margin-right: 8px; font-size: 15px;
    &:hover { background: @red; border-color: @red; color: #fff; }
  }
}
.footer-title {
  color: #fff; font-size: 15px; letter-spacing: 2.5px; margin-bottom: 24px; padding-bottom: 12px;
  position: relative;
  &::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: @red; }
}
.footer-links { list-style: none; margin: 0; padding: 0;
  li a { color: #999; font-size: 13.5px; display: block; padding: 6px 0;
    &::before { content: '\f105'; font-family: FontAwesome; color: @red; margin-right: 10px; font-size: 12px; }
    &:hover { color: @red; text-decoration: none; padding-left: 6px; }
  }
}
.footer-contact { list-style: none; margin: 0; padding: 0;
  li { display: flex; font-size: 13.5px; padding: 6px 0; line-height: 1.7;
    i { color: @red; margin-right: 12px; margin-top: 5px; width: 14px; }
  }
}
.footer-bottom { border-top: 1px solid @line; margin-top: 64px; padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #777; }
.footer-tag { color: @red; font-family: @font-head; letter-spacing: 2px; }
@media (max-width: 767px) {
  .footer { padding-top: 60px;
    .col-md-4, .col-lg-2, .col-lg-3, .col-lg-4 { margin-bottom: 34px; }
  }
  .footer-bottom { margin-top: 10px; }
}

/* ---------- floating whatsapp ---------- */
.float-wa {
  position: fixed; right: 22px; bottom: 24px; z-index: 999;
  width: 56px; height: 56px; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  border-radius: 50%; box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  &:hover { color: #fff; transform: scale(1.08); }
}

/* ============================================================
   NEWS LIST / DETAIL
   ============================================================ */
.sec-news { background: @gray; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: #fff; border: 1px solid #eee; display: flex; flex-direction: column;
  transition: box-shadow .35s, transform .35s;
  .news-media { height: 210px; overflow: hidden; background: @black;
    img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
  }
  .news-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1;
    .news-date { color: @red; font-family: @font-head; font-size: 12px; letter-spacing: 2px; margin-bottom: 10px;
      i { margin-right: 6px; }
    }
    h4 { font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 10px;
      a { color: @black; text-decoration: none; &:hover { color: @red; } }
    }
    p { color: #777; font-size: 13.5px; line-height: 1.7; margin-bottom: 16px; flex: 1; }
    .news-more { color: @red; font-family: @font-head; font-size: 12px; letter-spacing: 2px; text-decoration: none;
      &:hover { color: @black; }
    }
  }
  &:hover { box-shadow: 0 14px 34px rgba(0,0,0,0.1); transform: translateY(-6px);
    .news-media img { transform: scale(1.06); }
  }
}
@media (max-width: 991px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .news-grid { grid-template-columns: 1fr; } }

.page-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 56px;
  a, span {
    min-width: 42px; height: 42px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #e2e2e2; color: #555;
    font-family: @font-head; font-size: 13px; letter-spacing: 1px; text-decoration: none;
  }
  a:hover { background: @red; border-color: @red; color: #fff; }
  .cur { background: @red; border-color: @red; color: #fff; }
}

.sec-article { background: @gray; }
.article-wrap {
  background: #fff; border-top: 4px solid @red; box-shadow: 0 14px 40px rgba(0,0,0,0.07);
  padding: 56px 60px 48px;
  h1 { color: @black; font-size: 34px; font-weight: 600; line-height: 1.3; margin-bottom: 24px; }
}
.article-meta { color: #999; font-size: 13px; letter-spacing: 1px; margin-bottom: 18px;
  i { color: @red; margin-right: 6px; }
  span { margin-right: 22px; }
}
.article-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding-top: 26px; border-top: 1px solid #eee;
  a { color: #555; font-size: 14px; text-decoration: none;
    i { color: @red; }
    &:hover { color: @red; }
  }
}
@media (max-width: 767px) { .article-wrap { padding: 30px 22px; h1 { font-size: 24px; } } }

/* ============================================================
   RELATED CARDS / PRODUCT DETAIL
   ============================================================ */
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rel-card {
  background: #fff; border: 1px solid #eee; text-decoration: none; display: block;
  transition: box-shadow .35s, transform .35s;
  .rel-media { height: 190px; overflow: hidden; background: @gray;
    img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
  }
  .rel-body { padding: 20px 22px 24px;
    h5 { color: @black; font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
    span { color: @red; font-family: @font-head; font-size: 12px; letter-spacing: 2px; }
  }
  &:hover { box-shadow: 0 14px 34px rgba(0,0,0,0.1); transform: translateY(-6px);
    .rel-media img { transform: scale(1.06); }
    h5 { color: @red; }
  }
}
@media (max-width: 991px) { .rel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .rel-grid { grid-template-columns: 1fr; } }

.prod-detail .pri-media { flex: 0 0 46%; min-height: 380px; }
.prod-detail .pri-body { padding: 44px 48px; }
@media (max-width: 991px) { .prod-detail .pri-media { flex-basis: auto; } }

/* ============================================================
   RTL (ARABIC) OVERRIDES
   ============================================================ */
[dir="rtl"] {
  body { text-align: right; }

  /* Arabic is a connected script - never letter-space it */
  * { letter-spacing: normal !important; }

  /* Cairo typeface for Arabic (FontAwesome <i> icons keep their own font) */
  body, body :not(i):not(.fa) { font-family: 'Cairo', 'Oswald', 'Roboto', Tahoma, sans-serif !important; }

  /* mirror directional arrow icons */
  .fa-long-arrow-right, .fa-long-arrow-left { transform: scaleX(-1); }
  .btn-red:hover i.fa-long-arrow-right, .btn-white:hover i.fa-long-arrow-right { transform: translateX(-6px) scaleX(-1); }

  /* hero carousel controls swap sides in RTL */
  .carousel-control-prev { left: auto; right: 0; }
  .carousel-control-next { right: auto; left: 0; }

  /* navbar */
  #mainNav .nav-tools { margin-left: 0; margin-right: 24px; }
  #mainNav .btn-inquire { margin-left: 0; margin-right: 8px; }
  #mainNav .navbar-toggler { margin-right: 0; margin-left: 10px; }

  /* buttons: icon spacing follows the mirrored icon position */
  .btn-red i, .btn-white i { margin-left: 0; margin-right: 8px; }
  .btn-wa i { margin-right: 0; margin-left: 8px; }

  /* eyebrow lines */
  .sec-eyebrow .eyebrow-line { margin-right: 0; margin-left: 14px; }
  .sec-head-center .sec-eyebrow .eyebrow-line { margin-right: 14px; margin-left: 0; }
  .hero-eyebrow .eyebrow-line { margin-right: 0; margin-left: 16px; }
  .hero-btns a { margin-right: 0; margin-left: 14px; }

  /* stat / market dividers */
  .stat-item { border-left: none; border-right: 1px solid @line;
    &:first-child { border-right: none; }
  }
  .market-item { border-left: none; border-right: 1px solid @line;
    &:first-child { border-right: none; }
  }

  /* about story content */
  .story-content h3::before { margin-right: 0; margin-left: 12px; }
  .story-content ul li { padding-left: 0; padding-right: 26px;
    &::before { left: auto; right: 0; }
  }

  /* home product grid: keep the EN-style fill order (01 large card starts top-left),
     while each card's inner content stays RTL */
  .prod-grid { direction: ltr; }
  .prod-grid .prod-overlay { direction: rtl; }

  /* home product cards (keep specificity above the .prod-grid nesting) */
  .prod-grid .prod-card .prod-overlay::before { left: auto; right: 30px; }
  .prod-grid .prod-card-large .prod-overlay::before { left: auto; right: 44px; }
  .prod-grid .prod-card .prod-overlay .prod-num { right: auto; left: 30px; }
  .prod-grid .prod-card .prod-overlay .prod-more i { margin-left: 0; margin-right: 6px; }

  /* home solutions rows */
  .sol-media .sol-tag { left: auto; right: 0; }
  .sol-row .sol-list li i { margin-right: 0; margin-left: 10px; }

  /* solutions page */
  .sol-block-media .sol-tag { left: auto; right: 24px; }
  .sol-block-reverse .sol-block-body { padding: 0 64px 0 0; }

  /* about page media badge / vision-mission numbers */
  .story-badge { right: auto; left: -14px; }
  .mv-num { right: auto; left: 30px; }

  /* products page */
  .catalog-body { padding-left: 0; padding-right: 10px; }
  .cat-line { margin-left: 0; margin-right: 22px; }
  .side-cats ul li a:hover, .side-cats ul li a.active { padding-left: 0; padding-right: 8px; }
  .pri-actions a { margin-right: 0; margin-left: 8px; }

  /* contact */
  .c-list li i { margin-right: 0; margin-left: 16px; }

  /* footer */
  .footer-social a { margin-right: 0; margin-left: 8px; }
  .footer-title::after { left: auto; right: 0; }
  .footer-links li a::before { content: '\f104'; margin-right: 0; margin-left: 10px; }
  .footer-links li a:hover { padding-left: 0; padding-right: 6px; }
  .footer-contact li i { margin-right: 0; margin-left: 12px; }

  /* breadcrumb separator spacing */
  .breadcrumb-item+.breadcrumb-item::before { padding-right: 0; padding-left: .5rem; }

  /* news meta */
  .news-body .news-date i { margin-right: 0; margin-left: 6px; }

  /* article meta (news / product detail) */
  .article-meta i { margin-right: 0; margin-left: 6px; }
  .article-meta span { margin-right: 0; margin-left: 22px; }

  /* mobile */
  @media (max-width: 991px) {
    #mainNav .nav-tools .btn-inquire { margin-right: 0; }
    .market-item { border-right: none; }
  }
  @media (max-width: 767px) {
    .stat-item { border-right: none; }
  }
}
