/* =========================
   Srewel & Hammoud - Unified CSS
   File: assets/css/style.css
   ========================= */

:root{
  --bg1:#0f172a;
  --bg2:#0f172af2;
  --card:rgba(255,255,255,.07);
  --line:rgba(255,255,255,.15);
  --text:#b4f436;
  --muted:#cbd5f5;
  --brand:#2b9dff26;

  --radius:18px;
}


/* ---- Reset ---- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:Tahoma, Arial, sans-serif;
  background:linear-gradient(180deg,var(--bg1),var(--bg2));
  color:var(--text);
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.container{ width:min(1120px,92%); margin:auto; }

/* Helpers */
.muted{ color:var(--muted); }
.dir-ltr{ direction:ltr; unicode-bidi:embed; }
.link{ text-decoration:underline; }

/* =========================
   Topbar / Navigation
   ========================= */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(11,18,32,.68);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.2px;
}
.brandLogo{
  width:40px;
  height:40px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:13px;
}
.logoImg{
  width:42px;
  height:42px;
  object-fit:contain;
}
.menu{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
}
.menu a{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  transition:.2s ease;
}
.menu a:hover{
  background:rgba(255,255,255,.06);
  color:var(--text);
}
.menu a.active{
  background:rgba(255,255,255,.08);
  color:var(--text);
}

/* Buttons */
.cta,
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.10);
  transition:.2s ease;
  white-space:nowrap;
}
.cta{
  background:var(--brand);
  color:#fff;
}
.cta:hover{ transform:translateY(-2px); }

.btn{
  background:rgba(255,255,255,.08);
  color:var(--text);
}
.btn:hover{ transform:translateY(-2px); }
.btn.primary{
  background:var(--brand);
  color:#fff;
}
.btn.ghost{
  background:rgba(255,255,255,.08);
}

/* =========================
   Page Layout Blocks
   ========================= */
.section{ padding:18px 0; }
.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.section h2{ margin:0; font-size:22px; }
.section small{ color:var(--muted); }

/* Grids */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

/* Panels */
.panel,
.heroPanel,
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.panel{ padding:22px; }
.heroPanel{ padding:22px; }
.card{ padding:26px; }

/* Centered card style (services/contact pages) */
.card--center{
  text-align:center;
}
.actions{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:16px;
}

/* =========================
   HERO (Home + Inner pages)
   ========================= */
.hero{
  padding:34px 0 16px;
}

/* Home hero (big) */
.page-home .hero{
  min-height:75vh;
  padding:120px 0 80px;
  display:flex;
  align-items:center;
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
}

/* Headings */
.hero h1{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.25;
}
.page-gallery .hero h1,
.page-products .hero h1{
  font-size:30px;
}
.hero p{
  margin:0;
  color:var(--muted);
  line-height:1.9;
  font-size:16px;
}
.lead{ color:var(--muted); line-height:1.9; }

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.badge{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:13px;
}

.heroActions{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Logo variants */
.heroLogo{
  width:350px;
  margin-bottom:28px;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,.6));
}
.logoBig{
  width:120px;
  height:120px;
  object-fit:contain;
  display:block;
  margin:0 auto 14px;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.45));
}
.logoBigWide{
  width:500px;
  height:120px;
  object-fit:contain;
  display:block;
  margin:0 auto 14px;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.45));
}

/* Stats (home right panel) */
.stats{ display:grid; gap:10px; }
.stat{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:14px;
  border-radius:16px;
  border:1px solid var(--line);
  background:var(--card2);
}
.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--brand);
  margin-top:6px;
  box-shadow:0 0 0 6px rgba(43,120,255,.15);
}
.stat b{ display:block; margin-bottom:4px; }
.stat span{ color:var(--muted); line-height:1.8; }

/* Lists */
.list{
  margin:0;
  padding:0 18px;
  color:var(--muted);
  line-height:1.9;
}

/* =========================
   Cards (two types)
   1) cardLink: for home/products category cards (background image)
   2) cardBox/card: for gallery cards (real <img>)
   ========================= */

/* 1) Home category cards (background image in .thumb + label) */
.cardLink{
  display:block;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor:pointer;
}
.cardLink:hover{
  transform: translateY(-10px);
  box-shadow:var(--shadowHover);
  border-color: rgba(255,255,255,.18);
}
.cardBody{ padding:14px 16px 16px; }
.cardBody h3{ margin:0 0 8px; font-size:18px; }
.cardBody p{ margin:0; color:var(--muted); line-height:1.85; }

.tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.tag{
  font-size:12px;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
}

/* Background-thumb used in category cards */
.thumb{
  height:180px;
  border-bottom:1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:flex-end;
  padding:14px;
  border-radius:18px 18px 0 0;
  background-position:center;
  background-size:cover;
  overflow:hidden;
  position:relative;
}
.thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.45));
  pointer-events:none;
}
.thumbTag{
  position:relative;
  z-index:1;
  font-weight:900;
  font-size:12px;
  color:#eaf1ff;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.14);
  padding:6px 10px;
  border-radius:999px;
}

/* Your category background images */
.thumb.laser{
  background:
    linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.45)),
    url("../img/laser.jpg") center/cover no-repeat;
}
.thumb.lathe{
  background:
    linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.45)),
    url("../img/lathe.jpg") center/cover no-repeat;
}
.thumb.milling{
  background:
    linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.45)),
    url("../img/milling.jpg") center/cover no-repeat;
}

/* 2) Gallery cards (real images) */
.cardBox,
.card{
  overflow:hidden;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:var(--card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cardBox{ cursor:pointer; padding:0; }
.cardBox:hover,
.card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadowHover);
  border-color: rgba(255,255,255,.18);
}

/* Gallery thumb for <img> cards */
.cardBox .thumb,
.card .thumb{
  height:190px;
  padding:0;
  border-radius:18px 18px 0 0;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.cardBox .thumb img,
.card .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Card content blocks used in laser/lathe/milling pages */
.p{ padding:14px 16px 16px; }
.cardBox h3,
.card h3{ margin:0 0 8px; font-size:18px; }
.cardBox p,
.card p{ margin:0; color:var(--muted); line-height:1.85; }

/* Optional file name badge on image (laser page had it) */
.fileName{
  position:absolute;
  left:10px;
  top:10px;
  z-index:2;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.15);
  color:#eaf1ff;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  direction:ltr;
}

/* =========================
   Split info section (laser page)
   ========================= */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.box{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
}
.box b{ display:block; margin-bottom:6px; }
.box span{ color:var(--muted); line-height:1.9; }

/* =========================
   Contact page blocks
   ========================= */
.contactGrid{ display:grid; gap:14px; margin-top:18px; }
.contactItem{
  background:var(--card2);
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  text-align:right;
}
.contactItem b{ display:block; margin-bottom:6px; }
.contactItem span{ color:var(--muted); }
/* ===== Contact page: bigger centered logo (like home) ===== */
.logo{
  width:350px;              /* مثل لوغو الرئيسية تقريباً */
  max-width:90%;
  display:block;
  margin:0 auto 20px;
  object-fit:contain;
  filter:drop-shadow(0 15px 30px rgba(0,0,0,.6));
}

/* ===== Big phone buttons ===== */
.phoneBtn{
  display:flex;
  align-items:center;
  justify-content:center;

  width:min(350px, 92%);    /* نفس فكرة عرض اللوغو تقريباً */
  margin:10px auto 0;

  padding:12px 16px;        /* ارتفاع طبيعي وواضح */
  border-radius:14px;

  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:var(--text);
  font-weight:900;
  gap:10px;
}

.phoneBtn:hover{
  background:rgba(255,255,255,.12);
}

.phoneBtn.primary{
  background:var(--brand);
  color:white;
  border-color:rgba(255,255,255,.10);
}

.phoneBtn.call{
  background:rgba(37,211,102,.12);
  border-color:rgba(37,211,102,.35);
}

/* رقم داخل الزر يكون LTR */
.phoneBtn .num{
  direction:ltr;
  unicode-bidi:embed;
  font-weight:900;
}

/* نخلي item ما يتغير شكله */
.itemActions{
  margin-top:10px;
  display:grid;
  gap:10px;
  justify-items:center;
}


/* =========================
   Footer & WhatsApp float
   ========================= */
.footer{
  margin-top:18px;
  border-top:1px solid var(--line);
  padding:18px 0;
  color:var(--muted);
  text-align:center;
}
.whatsappFloat{
  position:fixed;
  right:16px;
  bottom:16px;
  padding:12px 14px;
  border-radius:999px;
  background:#25D366;
  color:#0b1220;
  font-weight:900;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  z-index:60;
}

/* =========================
   Lightbox (laser/lathe pages)
   ========================= */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.86);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:18px;
}
.lightbox.open{ display:flex; }
.lightboxInner{
  width:min(1100px, 96vw);
  max-height:92vh;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 30px 90px rgba(0,0,0,.55);
  display:flex;
  flex-direction:column;
}
.lightboxTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.10);
  color:var(--muted);
  direction:ltr;
  font-size:13px;
}
.closeBtn{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:900;
}
.lightboxImgWrap{
  background:rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
}
.lightboxImg{
  max-width:100%;
  max-height:78vh;
  object-fit:contain;
  border-radius:12px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px){
  .menu{ display:none; }
  .heroGrid{ grid-template-columns:1fr; }
  .grid{ grid-template-columns:1fr; }
  .split{ grid-template-columns:1fr; }
  .page-home .hero{
    min-height:auto;
    padding:48px 0 22px;
    display:block;
  }
  .hero h1{ font-size:28px; }
}
/* ===== Page variations (Clients) ===== */

/* Hero with background image overlay */
.heroHero{
  padding:48px 0 22px;
}
.heroHero .heroBanner{
  position:relative;
  border-radius:var(--radius);
  border:1px solid var(--line);
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.70)),
    url("../img/clients-hero.jpg") center/cover no-repeat;
}
.heroHero .heroBannerInner{
  padding:28px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:center;
}
.heroHero h1{margin:0 0 8px; font-size:30px;}
.heroHero p{margin:0; color:var(--muted); line-height:1.9;}
.heroHero .heroMiniBox{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:16px;
}
/* ===== Page variations (Import / Export) ===== */

.heroShip{
  padding:48px 0 22px;
}
.shipBanner{
  position:relative;
  border-radius:var(--radius);
  border:1px solid var(--line);
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.75)),
    url("../img/shipping-hero.jpg") center/cover no-repeat;
}
.shipBannerInner{
  padding:26px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:center;
}
.shipBanner h1{margin:0 0 8px; font-size:30px;}
.shipBanner p{margin:0; color:var(--muted); line-height:1.9;}

.shipMini{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:16px;
}
.shipMini b{display:block; margin-bottom:6px;}
.shipMini span{color:var(--muted); line-height:1.9;}

/* Steps timeline */
.steps{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:12px;
}
.step{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  position:relative;
  overflow:hidden;
  transition:.25s;
}
.step:hover{
  transform:translateY(-6px);
  border-color:rgba(255,255,255,.18);
  box-shadow:0 18px 46px rgba(0,0,0,.28);
}
.stepNum{
  width:42px;height:42px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  font-weight:900;
  margin-bottom:10px;
  color:var(--text);
}
.step h3{margin:0 0 6px; font-size:15px;}
.step p{margin:0; color:var(--muted); line-height:1.8; font-size:13px;}

/* Service cards */
.shipGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.shipCard{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  transition:.25s;
}
.shipCard:hover{
  transform:translateY(-6px);
  border-color:rgba(255,255,255,.18);
  box-shadow:0 18px 46px rgba(0,0,0,.28);
}
.shipIcon{
  width:46px;height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  margin-bottom:10px;
  font-size:20px;
}
.shipCard h3{margin:0 0 6px; font-size:17px;}
.shipCard p{margin:0; color:var(--muted); line-height:1.85;}

/* CTA strip */
.ctaStrip{
  margin-top:16px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.ctaStrip b{font-size:16px;}
.ctaStrip span{color:var(--muted); line-height:1.8;}

@media (max-width: 900px){
  .shipBannerInner{grid-template-columns:1fr;}
  .steps{grid-template-columns:1fr;}
  .shipGrid{grid-template-columns:1fr;}
}


/* Cards grid (generic) */
.cardsGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.infoCard{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  transition:.25s;
}
.infoCard:hover{
  transform:translateY(-6px);
  border-color:rgba(255,255,255,.18);
  box-shadow:0 18px 46px rgba(0,0,0,.30);
}
.infoCard .icon{
  width:46px;height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  margin-bottom:10px;
  font-size:20px;
}
.infoCard h3{margin:0 0 6px; font-size:17px;}
.infoCard p{margin:0; color:var(--muted); line-height:1.85;}


/* CTA strip */
.ctaStrip{
  margin-top:16px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.ctaStrip b{font-size:16px;}
.ctaStrip span{color:var(--muted); line-height:1.8;}

@media (max-width: 900px){
  .heroHero .heroBannerInner{grid-template-columns:1fr;}
  .cardsGrid{grid-template-columns:1fr;}
}
/* ===== Trust bubbles (After Sales) ===== */
.trustGrid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:14px;
  margin-top:18px;
}

.trust{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:14px;
  text-align:center;
  transition:.25s ease;
}

.trust:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 30px rgba(0,0,0,.4);
  border-color:var(--brand);
}

.trust b{
  display:block;
  margin-bottom:6px;
  color:var(--text);
}

.trust span{
  font-size:13px;
  color:var(--muted);
  line-height:1.7;
}

/* Responsive */
@media(max-width:900px){
  .trustGrid{grid-template-columns:1fr;}
}


/* =========================
   Elegant Card Hover Effect
   ========================= */

/* كل أنواع الكروت */
.card,
.cardBox,
.cardLink,
.infoCard,
.shipCard,
.step,
.trust{
  position:relative;
  transition:
    transform .35s cubic-bezier(.22,.61,.36,1),
    box-shadow .35s ease,
    border-color .35s ease;
}

/* الحركة عند المرور */
.card:hover,
.cardBox:hover,
.cardLink:hover,
.infoCard:hover,
.shipCard:hover,
.step:hover,
.trust:hover{
  transform: translateY(-10px) scale(1.015);
  box-shadow:
    0 20px 60px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
}

/* لمسة لمعان خفيفة */
.card::after,
.cardBox::after,
.cardLink::after,
.infoCard::after,
.shipCard::after,
.step::after,
.trust::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:
    linear-gradient(135deg,
      transparent 0%,
      rgba(255,255,255,.06) 45%,
      rgba(255,255,255,.10) 50%,
      rgba(255,255,255,.06) 55%,
      transparent 100%);
  opacity:0;
  transition:.4s ease;
  pointer-events:none;
}

.card:hover::after,
.cardBox:hover::after,
.cardLink:hover::after,
.infoCard:hover::after,
.shipCard:hover::after,
.step:hover::after,
.trust:hover::after{
  opacity:1;
}
