:root{
  --bg:#f6f7f9;
  --soft:#f9fafb;
  --panel:#ffffff;
  --card:#ffffff;

  --text:#1f2937;
  --muted:#6b7280;

  --brand:#c2410c;
  --brand2:#f97316;

  --line: rgba(0,0,0,.08);
  --shadow: 0 8px 20px rgba(0,0,0,.08);
  --shadow2: 0 14px 34px rgba(0,0,0,.12);

  --radius:18px;
  --radius2:14px;
  --max:1120px;

  --ease: cubic-bezier(.2,.8,.2,1);
  --header-h: 72px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background: linear-gradient(180deg, #ffffff, #f3f4f6 100%);
  line-height:1.6;
  overflow-x:hidden;
}

header, section, footer, main{ position:relative; z-index:1; }
section[id]{ scroll-margin-top: calc(var(--header-h) + 14px); }

a{ color:inherit; text-decoration:none; }
.container{ width:min(var(--max), calc(100% - 40px)); margin-inline:auto; }

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  height:var(--header-h);
  display:flex;
  align-items:center;
  background: rgba(255,255,255,.92);
  border-bottom:1px solid var(--line);
}
.header__inner{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

/* Brand (logo + name together) */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  padding-left: 14px; /* move together slightly right */
  min-width: 260px;
}
.brand__logo{
  width:64px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: transparent;
  border-radius: 10px;
}
.brand__logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.brand__text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1.1;
}
.brand__text strong{
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .2px;
}
.brand__text small{
  font-size: .92rem;
  font-weight: 700;
  color: var(--muted);
}

/* Language buttons */
.lang{
  display:flex;
  gap:8px;
  align-items:center;
}
.lang__btn{
  border:1px solid var(--line);
  background:#fff;
  color: var(--text);
  font-weight: 900;
  padding:8px 10px;
  border-radius: 12px;
  cursor:pointer;
  transition:.2s var(--ease);
}
.lang__btn:hover{ background: rgba(0,0,0,.04); transform: translateY(-1px); }
.lang__btn.isActive{
  border-color: rgba(249,115,22,.35);
  box-shadow: 0 10px 18px rgba(249,115,22,.10);
  background: #fff7ed;
  color: #9a3412;
}

/* Nav */
.nav{ display:flex; gap:10px; align-items:center; }
.nav a{
  color: var(--muted);
  font-weight: 850;
  padding:10px 12px;
  border-radius: 12px;
  transition:.22s var(--ease);
  position:relative;
  white-space: nowrap;
}
.nav a:hover{ color: var(--text); background: rgba(0,0,0,.04); }
.nav a.active{
  color: var(--text);
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
}
.nav a.active::after{
  content:"";
  position:absolute;
  left:12px; right:12px; bottom:6px;
  height:2px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  opacity:.95;
}

.navToggle{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:10px;
  cursor:pointer;
}
.navToggle span{
  display:block;
  width:22px;
  height:2px;
  background: var(--text);
  margin:5px 0;
  border-radius:99px;
}

/* Hero */
.section{ padding:56px 0; }
.section--soft{
  background: var(--soft);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.hero{
  padding:56px 0 36px;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(249,115,22,.18), transparent 60%),
    radial-gradient(900px 420px at 90% 10%, rgba(194,65,12,.12), transparent 65%);
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:22px;
  align-items:start;
}
.pill{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(194,65,12,.08);
  border:1px solid rgba(194,65,12,.16);
  color:#9a3412;
  font-weight:900;
}
h1{
  font-size: clamp(30px, 3.6vw, 54px);
  line-height:1.08;
  margin:14px 0 12px;
  letter-spacing:-.02em;
}
.accent{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.lead{
  color: var(--muted);
  font-size:1.05rem;
  max-width: 62ch;
}
.hero__actions{ display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  font-weight:900;
  cursor:pointer;
  transition:.22s var(--ease);
  user-select:none;
  gap:10px;
}
.btn--primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff;
  border:none;
  box-shadow: 0 18px 40px rgba(194,65,12,.16);
}
.btn--primary:hover{ filter: brightness(1.03); transform: translateY(-2px); }
.btn--ghost{
  background:#fff;
  color: var(--text);
}
.btn--ghost:hover{ background: rgba(0,0,0,.04); transform: translateY(-2px); }

/* Stats */
.stats{ display:flex; gap:12px; margin-top:22px; flex-wrap:wrap; }
.stat{
  flex:1; min-width:160px;
  padding:14px 16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}
.stat__num{ font-size: 22px; font-weight: 950; }
.stat__label{ color: var(--muted); font-weight: 800; }

/* Cards */
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero__card{
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.hero__cardTop{ padding:18px 18px 8px; }
.hero__badges{ display:flex; gap:10px; flex-wrap:wrap; padding:12px 18px 10px; }
.badge{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color: var(--muted);
  font-weight:900;
}
.hero__note{ padding: 0 18px 18px; }

.section__head{ margin-bottom:18px; }
.section__head h2{ font-size: clamp(22px, 2.4vw, 34px); margin:0 0 6px; }
.muted{ color: var(--muted); }
.small{ font-size:.92rem; }

.grid{ display:grid; gap:14px; }
.products{ grid-template-columns: repeat(5, 1fr); }
.testimonials{ grid-template-columns: repeat(3, 1fr); }

/* Product cards */
.product{
  text-align:left;
  display:flex;
  gap:12px;
  padding:16px;
  cursor:pointer;
  transition:.22s var(--ease);
  background:#fff;
}
.product:hover{ transform: translateY(-2px); box-shadow: var(--shadow2); }
.product.isActive{
  border-color: rgba(249,115,22,.40);
  box-shadow: 0 18px 52px rgba(249,115,22,.10), var(--shadow);
}
.card__icon{
  width:44px; height:44px;
  border-radius:14px;
  background: rgba(249,115,22,.12);
  border:1px solid rgba(249,115,22,.22);
  display:grid; place-items:center;
  font-size:20px;
}
.card__body h3{ margin:0 0 6px; }
.card__body p{ margin:0 0 10px; color: var(--muted); }
.chip{
  display:inline-block;
  font-weight:950;
  color:#9a3412;
  background:#fff7ed;
  border:1px solid #fed7aa;
  padding:7px 10px;
  border-radius: 999px;
}

/* Details */
.details{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap:14px;
  align-items:start;
}
.details__sidebar{
  padding:18px;
}
.details__uses h4{ margin:16px 0 8px; }
.details__uses ul{ margin:0; padding-left:18px; color: var(--muted); font-weight:800; }
.details__cta{ display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }

.details__panel{ padding:18px; overflow:hidden; }
.details__panel.isUpdating{ animation: pop .35s var(--ease); }
@keyframes pop{
  0%{ transform: translateY(6px); opacity:.80; }
  100%{ transform: translateY(0); opacity:1; }
}
.tableWrap{ overflow:auto; border-radius:14px; }
.specs{ width:100%; border-collapse:collapse; min-width:520px; }
.specs th, .specs td{
  text-align:left;
  padding:12px 12px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.specs th{ color: var(--muted); width:42%; font-weight:950; }

.notice{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px dashed rgba(0,0,0,.16);
  background:#fafafa;
  color: var(--muted);
  font-weight:800;
}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
  align-items:start;
}
.form{ padding:18px; }
.form label{ display:block; font-weight:900; margin-bottom:12px; }
.form input, .form select, .form textarea{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color: var(--text);
  outline:none;
}
.form input:focus, .form select:focus, .form textarea:focus{
  border-color: rgba(249,115,22,.45);
  box-shadow: 0 0 0 4px rgba(249,115,22,.12);
}
.form__row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form__actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.fieldError{
  border-color: rgba(194,65,12,.55) !important;
  box-shadow: 0 0 0 4px rgba(194,65,12,.12) !important;
}
.contact__info{ padding:18px; }
.info{ padding-left:18px; margin:10px 0 0; color: var(--muted); font-weight:800; }

/* Location */
.location{
  display:grid;
  grid-template-columns: .75fr 1.25fr;
  gap:14px;
  align-items:stretch;
}
.location__card{ padding:18px; }
.map{ overflow:hidden; }
.map iframe{ width:100%; height:360px; border:0; display:block; }

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:24px 0;
  background:#fff;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color: var(--muted);
  font-weight:900;
}
.toTop{
  width:40px; height:40px;
  display:grid; place-items:center;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
}

/* Reveal animation */
.reveal{ opacity:0; transform: translateY(14px); transition: .7s var(--ease); }
.reveal.isVisible{ opacity:1; transform: translateY(0); }

/* Toast */
.toast{
  position:fixed;
  bottom:18px;
  left:50%;
  transform: translateX(-50%) translateY(18px);
  background: rgba(255,255,255,.96);
  border:1px solid var(--line);
  padding:12px 14px;
  border-radius:14px;
  box-shadow: var(--shadow2);
  color: var(--text);
  font-weight: 900;
  opacity:0;
  pointer-events:none;
  transition:.35s var(--ease);
  z-index:1000;
}
.toast.show{
  opacity:1;
  transform: translateX(-50%) translateY(0);
}

/* Mouse blur blob */
.mouse-blur{
  position: fixed;
  top: 0; left: 0;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events:none;
  z-index:0;

  background: radial-gradient(circle at center,
    rgba(249,115,22,.18),
    rgba(194,65,12,.10),
    rgba(255,255,255,0) 60%);

  filter: blur(18px);
  opacity: .75;
  transition: opacity .25s ease;
}
@media (max-width: 768px){ .mouse-blur{ display:none; } }

/* RTL (Arabic) */
html[dir="rtl"] body{
  font-family: "Tahoma", "Arial", system-ui, sans-serif;
}
html[dir="rtl"] .brand{ padding-left:0; padding-right:14px; }
html[dir="rtl"] .details__uses ul{ padding-left:0; padding-right:18px; }
html[dir="rtl"] .info{ padding-left:0; padding-right:18px; }
html[dir="rtl"] .specs th, html[dir="rtl"] .specs td{ text-align:right; }
html[dir="rtl"] .product{ text-align:right; }

/* Responsive */
@media (max-width: 1020px){
  .products{ grid-template-columns: repeat(2, 1fr); }
  .hero__grid{ grid-template-columns: 1fr; }
  .details{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .location{ grid-template-columns: 1fr; }
  .testimonials{ grid-template-columns: 1fr; }
  .brand{ min-width: 0; }
}

@media (max-width: 860px){
  .navToggle{ display:block; }
  .nav{
    position:absolute;
    top: calc(var(--header-h) - 6px);
    right: 12px;
    left: 12px;
    display:none;
    flex-direction:column;
    gap:6px;
    padding:10px;
    border-radius: 16px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow2);
  }
  .nav a{ padding:12px; }
  .nav.isOpen{ display:flex; }
  .form__row{ grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; scroll-behavior:auto !important; }
  .reveal{ opacity:1 !important; transform:none !important; }
}

/* =========================
   Product images
   ========================= */

.product{
  padding: 0; /* image touches card edge */
  overflow: hidden;
}

.product__img{
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.product__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

/* Hover zoom effect */
.product:hover .product__img img{
  transform: scale(1.08);
}

/* Adjust body padding */
.product .card__body{
  padding: 16px;
}


.form > div{ margin-bottom: 12px; }
.form__row > div{ width:100%; }

.form label{
  display:block;
  font-weight: 900;
  margin-bottom: 6px;
}

.form input, .form select, .form textarea{
  width:100%;
}

/* Better select height on some browsers */
.form select{ height: 46px; }

/* RTL form polish (Arabic) */
html[dir="rtl"] .form label{ text-align:right; }
html[dir="rtl"] .form__actions{ justify-content:flex-start; }

/* =========================
   Modern Testimonials
========================= */

.testGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.tCard{
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.80));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.tCard::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(500px 180px at 20% 0%, rgba(249,115,22,.18), transparent 60%),
    radial-gradient(420px 180px at 80% 10%, rgba(194,65,12,.12), transparent 65%);
  filter: blur(18px);
  opacity: .7;
  z-index: 0;
}

.tCard > *{
  position: relative;
  z-index: 1;
}

.tCard:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow2);
  border-color: rgba(249,115,22,.25);
}

.tTop{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 12px;
}

.tAvatar{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight: 950;
  color: #9a3412;
  background: rgba(249,115,22,.14);
  border: 1px solid rgba(249,115,22,.22);
}

.tMeta{
  display:flex;
  flex-direction:column;
  gap: 4px;
  line-height: 1.1;
}

.tName{
  font-weight: 950;
  color: var(--text);
}

.tStars{
  font-size: 14px;
  letter-spacing: 1px;
  color: rgba(249,115,22,.95);
  user-select:none;
}

.tText{
  margin: 0;
  color: rgba(31,41,55,.92);
  font-weight: 750;
  line-height: 1.55;
}

/* RTL */
html[dir="rtl"] .tTop{ flex-direction: row-reverse; }
html[dir="rtl"] .tMeta{ align-items: flex-end; }
html[dir="rtl"] .tText{ text-align: right; }

/* Responsive */
@media (max-width: 1020px){
  .testGrid{ grid-template-columns: 1fr; }
  .tCard{ padding: 16px; }
}
