/* =========================================================
   ETMAM — Design Tokens
   ========================================================= */
:root{
  --ink:        #0d0d0d;   /* primary background */
  --ink-2:      #161410;   /* panel background, warm dark */
  --ink-3:      #1f1c16;   /* raised card background */
  --gold:       #f5b800;   /* primary brand accent */
  --gold-deep:  #b9860a;   /* deep amber, gradients / pressed states */
  --gold-soft:  #f7cd4d;   /* lighter gold for hovers */
  --steel:      #8a8a86;   /* secondary neutral text */
  --steel-line: rgba(245,184,0,.14);
  --paper:      #f4f1ea;   /* warm off-white text */
  --paper-dim:  #c9c6bc;
  --danger:     #e2533c;

  --font-display: "Cairo", "Tajawal", sans-serif;
  --font-body:    "Cairo", "Tajawal", sans-serif;
  --font-mono:    "JetBrains Mono", monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(.22,.9,.32,1);
}

/* =========================================================
   Base
   ========================================================= */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  background:var(--ink);
  color:var(--paper);
  font-family:var(--font-body);
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
[dir="rtl"] body{ letter-spacing:0; }

h1,h2,h3,h4,.display{
  font-family:var(--font-display);
  font-weight:800;
  letter-spacing:-.01em;
  color:var(--paper);
}
a{ text-decoration:none; color:inherit; }
::selection{ background:var(--gold); color:#0d0d0d; }

.text-gold{ color:var(--gold) !important; }
.text-steel{ color:var(--steel) !important; }
.bg-ink2{ background:var(--ink-2); }
.bg-ink3{ background:var(--ink-3); }
.mono{ font-family:var(--font-mono); letter-spacing:.02em; }
.ltr, .mono{ direction:ltr; unicode-bidi:isolate; }
a.flink.mono, .contact-card span.mono, .stat span.mono{ display:inline-block; }

/* language visibility -------------------------------------------------- */
body:not(.lang-en) .en{ display:none !important; }
body.lang-en .ar{ display:none !important; }
body.lang-en{ direction:ltr; }
body:not(.lang-en){ direction:rtl; }

/* container width tweak */
.container-xl{ max-width:1280px; }

/* =========================================================
   Texture: blueprint grid + diagonal hazard seam (signature)
   ========================================================= */
.blueprint-grid{
  position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image:
    linear-gradient(var(--steel-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel-line) 1px, transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(180deg, transparent, rgba(0,0,0,.9) 35%, rgba(0,0,0,.9) 80%, transparent);
}

/* the signature diagonal seam — echoes the checkmark / I-beam motif */
.seam{
  position:relative;
  height:64px;
  overflow:hidden;
  background:var(--ink);
}
.seam::before{
  content:"";
  position:absolute;
  inset:-20px -10% auto -10%;
  height:46px;
  background:repeating-linear-gradient(-35deg,
    var(--gold) 0 26px,
    var(--ink) 26px 52px);
  transform:rotate(-2.2deg);
  box-shadow:0 6px 30px rgba(245,184,0,.18);
}
.seam.flip::before{ top:auto; bottom:-20px; }

/* =========================================================
   Navbar
   ========================================================= */
.navbar-etmam{
  position:fixed; top:0; inset-inline:0; z-index:1000;
  padding:.55rem 0;
  background:rgba(13,13,13,.7);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--steel-line);
  transition:background .3s var(--ease);
}
.navbar-etmam.scrolled{ background:rgba(13,13,13,.92); }

.brand-mark{ display:flex; align-items:center; gap:.6rem; }
.brand-mark svg{ width:34px; height:34px; flex-shrink:0; }
.brand-word{ font-family:var(--font-display); font-weight:800; font-size:1.25rem; line-height:1; }
.brand-word small{ display:block; font-family:var(--font-body); font-weight:500; font-size:.6rem; letter-spacing:.1em; color:var(--steel); margin-top:2px; }

.nav-link-etmam{
  font-weight:600; font-size:.95rem; color:var(--paper-dim);
  padding:.5rem 1rem !important; position:relative;
  transition:color .25s var(--ease);
}
.nav-link-etmam::after{
  content:""; position:absolute; left:1rem; right:1rem; bottom:.25rem; height:2px;
  background:var(--gold); transform:scaleX(0); transform-origin:center;
  transition:transform .25s var(--ease);
}
.nav-link-etmam:hover, .nav-link-etmam.active{ color:var(--paper); }
.nav-link-etmam:hover::after, .nav-link-etmam.active::after{ transform:scaleX(1); }

.lang-switch{
  width:44px; height:44px; border-radius:50%;
  background:var(--gold); color:#0d0d0d; font-family:var(--font-mono); font-weight:700; font-size:.72rem;
  display:flex; align-items:center; justify-content:center;
  border:none; cursor:pointer; flex-shrink:0;
  box-shadow:0 4px 14px rgba(245,184,0,.35);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.lang-switch:hover{ transform:translateY(-2px) rotate(8deg); box-shadow:0 8px 20px rgba(245,184,0,.45); }

.btn-gold{
  background:linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  color:#171200; font-weight:700; border:none; border-radius:999px;
  padding:.7rem 1.6rem; box-shadow:0 8px 22px rgba(245,184,0,.25);
  transition:transform .22s var(--ease), box-shadow .22s var(--ease);
}
.btn-gold:hover{ transform:translateY(-3px); box-shadow:0 14px 28px rgba(245,184,0,.38); color:#171200; }
.btn-outline-gold{
  background:transparent; color:var(--gold); font-weight:700; border:1.5px solid var(--gold);
  border-radius:999px; padding:.66rem 1.55rem;
  transition:all .22s var(--ease);
}
.btn-outline-gold:hover{ background:var(--gold); color:#171200; transform:translateY(-3px); }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative;
  padding:9.5rem 0 5rem;
  background:
    radial-gradient(circle at 18% 20%, rgba(245,184,0,.12), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(245,184,0,.08), transparent 40%),
    var(--ink);
  overflow:hidden;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:.5rem;
  font-family:var(--font-body); font-weight:700; font-size:.78rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--gold); border:1px solid var(--steel-line); border-radius:999px; padding:.35rem .9rem;
  background:rgba(245,184,0,.06);
}
.eyebrow::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 4px rgba(245,184,0,.18); }

.hero h1{ font-size:clamp(2.3rem, 4.4vw, 3.6rem); line-height:1.08; margin:1.1rem 0 1.2rem; }
.hero h1 .underline{
  position:relative; display:inline-block; color:var(--gold);
}
.hero h1 .underline::after{
  content:""; position:absolute; left:0; right:0; bottom:-.08em; height:.22em;
  background:linear-gradient(90deg, var(--gold), transparent);
  border-radius:3px;
}
.hero p.lead{ color:var(--paper-dim); font-size:1.08rem; max-width:520px; }

.store-row{ display:flex; gap:.85rem; flex-wrap:wrap; margin-top:1.8rem; }
.store-badge{
  display:flex; align-items:center; gap:.6rem;
  background:var(--ink-3); border:1px solid var(--steel-line); border-radius:14px;
  padding:.55rem 1.05rem; color:var(--paper); transition:all .22s var(--ease);
}
.store-badge:hover{ border-color:var(--gold); transform:translateY(-3px); background:#241f15; }
.store-badge svg{ width:24px; height:24px; color:var(--gold); }
.store-badge .lines{ line-height:1.1; }
.store-badge .lines .small{ font-size:.62rem; color:var(--steel); display:block; }
.store-badge .lines .big{ font-weight:700; font-size:.92rem; }

.hero-stats{ display:flex; gap:1.8rem; margin-top:2.4rem; flex-wrap:wrap; }
.hero-stats .stat b{ display:block; font-family:var(--font-mono); color:var(--gold); font-size:1.3rem; }
.hero-stats .stat span{ font-size:.78rem; color:var(--steel); }

.hero-visual{ position:relative; }
.hero-visual .frame-glow{
  position:absolute; inset:6% 10%; border-radius:50%;
  background:radial-gradient(circle, rgba(245,184,0,.32), transparent 70%);
  filter:blur(30px);
}
.hero-visual img{
  position:relative; z-index:2; border-radius:var(--radius-lg);
  box-shadow:0 30px 60px rgba(0,0,0,.55), 0 0 0 1px var(--steel-line);
  width:100%;
}
.seam-chip{
  position:absolute; z-index:3; bottom:-18px; inset-inline-start:-18px;
  background:var(--gold); color:#171200; border-radius:16px; padding:.7rem 1.1rem;
  font-weight:800; font-size:.85rem; box-shadow:0 14px 28px rgba(245,184,0,.4);
  display:flex; align-items:center; gap:.5rem;
  animation:floaty 4.5s ease-in-out infinite;
}
@keyframes floaty{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-8px); } }

/* welding sparks particles in hero */
.sparks{ position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:1; }
.spark{
  position:absolute; bottom:-10px; width:3px; height:3px; border-radius:50%;
  background:var(--gold); box-shadow:0 0 6px 2px rgba(245,184,0,.7);
  animation:rise linear infinite;
}
@keyframes rise{
  0%{ transform:translateY(0) translateX(0); opacity:0; }
  10%{ opacity:1; }
  100%{ transform:translateY(-360px) translateX(var(--drift,20px)); opacity:0; }
}

/* =========================================================
   Services ticker (materials marquee)
   ========================================================= */
.ticker-wrap{
  background:var(--ink-2); border-top:1px solid var(--steel-line); border-bottom:1px solid var(--steel-line);
  overflow:hidden; padding:1.1rem 0;
}
.ticker{ display:flex; gap:3rem; white-space:nowrap; width:max-content; animation:scroll-x 26s linear infinite; }
.ticker:hover{ animation-play-state:paused; }
@keyframes scroll-x{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
.ticker-item{ display:flex; align-items:center; gap:.6rem; font-family:var(--font-body); font-weight:600; font-size:.95rem; color:var(--paper-dim); }
.ticker-item svg{ width:20px; height:20px; color:var(--gold); }
.ticker-dot{ color:var(--steel); }
[dir="rtl"] .ticker{ animation-direction:reverse; }

/* =========================================================
   Section scaffolding
   ========================================================= */
.section{ padding:5.5rem 0; position:relative; }
.section-head{ max-width:680px; margin-bottom:3rem; }
.section-head .eyebrow{ margin-bottom:1rem; }
.section-head h2{ font-size:clamp(1.8rem, 3vw, 2.5rem); }
.section-head p{ color:var(--steel); margin-top:.8rem; }
.center{ margin-inline:auto; text-align:center; }

/* category cards */
.cat-card{
  position:relative; border-radius:var(--radius-md); overflow:hidden; height:280px;
  background:var(--ink-3); border:1px solid var(--steel-line);
  transition:transform .35s var(--ease), border-color .35s var(--ease);
}
.cat-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.45; transition:opacity .35s var(--ease), transform .6s var(--ease); }
.cat-card::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 20%, rgba(13,13,13,.95) 88%);
}
.cat-card .cat-body{ position:absolute; inset-inline:0; bottom:0; padding:1.4rem; z-index:2; }
.cat-card .cat-icon{
  width:46px; height:46px; border-radius:12px; background:var(--gold); color:#171200;
  display:flex; align-items:center; justify-content:center; margin-bottom:.8rem;
}
.cat-card h3{ font-size:1.15rem; margin-bottom:.2rem; }
.cat-card p{ color:var(--paper-dim); font-size:.85rem; margin:0; }
.cat-card:hover{ transform:translateY(-6px); border-color:var(--gold); }
.cat-card:hover img{ opacity:.65; transform:scale(1.06); }

/* numbered steps */
.step{ position:relative; padding-inline-start:0; }
.step-num{
  font-family:var(--font-mono); font-size:2.6rem; font-weight:700; color:transparent;
  -webkit-text-stroke:1.5px var(--gold); display:block; line-height:1; margin-bottom:.6rem;
}
.step h3{ font-size:1.1rem; margin-bottom:.5rem; }
.step p{ color:var(--steel); font-size:.92rem; }
.step-divider{ width:100%; height:1px; background:var(--steel-line); margin:0 0 1.4rem; }

/* phone showcase */
.phone-frame{
  border-radius:30px; border:6px solid #0a0a0a; background:#0a0a0a;
  box-shadow:0 30px 50px rgba(0,0,0,.5), 0 0 0 1px var(--steel-line);
  overflow:hidden; max-width:240px; margin-inline:auto;
  transition:transform .4s var(--ease);
}
.phone-frame img{ width:100%; display:block; }
.phone-frame:hover{ transform:translateY(-8px) rotate(-1deg); }
.showcase-caption{ text-align:center; margin-top:1rem; }
.showcase-caption b{ display:block; font-size:.95rem; }
.showcase-caption span{ color:var(--steel); font-size:.8rem; }

/* pricing */
.price-card{
  background:var(--ink-3); border:1px solid var(--steel-line); border-radius:var(--radius-md);
  padding:2rem 1.7rem; height:100%; position:relative; transition:transform .3s var(--ease), border-color .3s var(--ease);
}
.price-card:hover{ transform:translateY(-6px); border-color:var(--gold); }
.price-card.featured{
  background:linear-gradient(165deg, #221c0c, var(--ink-3) 60%);
  border:1px solid var(--gold);
  box-shadow:0 20px 50px rgba(245,184,0,.16);
}
.price-badge{
  position:absolute; top:-13px; inset-inline-start:50%; transform:translateX(-50%);
  background:var(--gold); color:#171200; font-size:.7rem; font-weight:800; letter-spacing:.06em;
  padding:.35rem 1rem; border-radius:999px; white-space:nowrap;
}
[dir="rtl"] .price-badge{ transform:translateX(50%); }
.price-card .tier-icon{ width:44px; height:44px; border-radius:12px; background:var(--ink-2); display:flex; align-items:center; justify-content:center; color:var(--gold); margin-bottom:1rem; }
.price-card.featured .tier-icon{ background:var(--gold); color:#171200; }
.price-card h3{ font-size:1.2rem; margin-bottom:.3rem; }
.price-card .tier-tag{ color:var(--steel); font-size:.85rem; margin-bottom:1.2rem; display:block; }
.price-card .price{ font-family:var(--font-body); font-size:1.3rem; color:var(--paper-dim); font-weight:600; }
.price-card .price .num{ font-family:var(--font-mono); font-size:2.1rem; color:var(--gold); font-weight:700; direction:ltr; unicode-bidi:isolate; display:inline-block; }
.price-card .price small{ font-size:.85rem; color:var(--steel); font-weight:400; }
.price-card ul{ list-style:none; padding:0; margin:1.4rem 0 1.8rem; }
.price-card ul li{ display:flex; align-items:flex-start; gap:.55rem; font-size:.9rem; color:var(--paper-dim); margin-bottom:.6rem; }
.price-card ul li svg{ width:16px; height:16px; color:var(--gold); flex-shrink:0; margin-top:.2rem; }

.trust-row{ display:flex; flex-wrap:wrap; justify-content:center; gap:2.4rem; margin-top:3.5rem; }
.trust-item{ display:flex; align-items:center; gap:.6rem; color:var(--steel); font-size:.88rem; }
.trust-item svg{ width:20px; height:20px; color:var(--gold); }

/* CTA banner */
.cta-banner{
  position:relative; border-radius:var(--radius-lg); overflow:hidden;
  background:linear-gradient(120deg, #1c1707, var(--ink-2) 60%);
  border:1px solid var(--steel-line);
  padding:3.2rem 2.4rem;
}
.cta-banner .blueprint-grid{ opacity:.35; }
.cta-banner h2{ font-size:clamp(1.6rem,2.6vw,2.2rem); margin-bottom:.6rem; }
.cta-banner p{ color:var(--paper-dim); max-width:480px; }

/* footer */
.footer{ background:var(--ink-2); border-top:1px solid var(--steel-line); padding:3.5rem 0 1.6rem; }
.footer h5{ font-size:.95rem; color:var(--paper); margin-bottom:1rem; }
.footer a.flink{ color:var(--steel); display:block; margin-bottom:.55rem; font-size:.9rem; transition:color .2s; }
.footer a.flink:hover{ color:var(--gold); }
.social-row{ display:flex; gap:.7rem; margin-top:1rem; }
.social-row a{
  width:38px; height:38px; border-radius:10px; border:1px solid var(--steel-line);
  display:flex; align-items:center; justify-content:center; color:var(--paper-dim);
  transition:all .22s var(--ease);
}
.social-row a:hover{ background:var(--gold); color:#171200; border-color:var(--gold); transform:translateY(-3px); }
.footer-bottom{ border-top:1px solid var(--steel-line); margin-top:2.6rem; padding-top:1.4rem; font-size:.82rem; color:var(--steel); display:flex; flex-wrap:wrap; justify-content:space-between; gap:.6rem; }

/* =========================================================
   Page header (about/contact)
   ========================================================= */
.page-header{
  position:relative; padding:9rem 0 4rem; background:var(--ink); overflow:hidden;
  background:radial-gradient(circle at 80% 0%, rgba(245,184,0,.1), transparent 50%), var(--ink);
}
.page-header h1{ font-size:clamp(2rem,4vw,2.9rem); }
.page-header .crumbs{ font-family:var(--font-body); font-weight:600; font-size:.78rem; color:var(--steel); margin-bottom:1rem; }
.page-header .crumbs .gold{ color:var(--gold); }

/* goal cards */
.goal-card{
  background:var(--ink-3); border:1px solid var(--steel-line); border-radius:var(--radius-md);
  padding:1.8rem; height:100%; transition:transform .3s var(--ease), border-color .3s;
}
.goal-card:hover{ transform:translateY(-5px); border-color:var(--gold); }
.goal-card .num{ font-family:var(--font-mono); color:var(--gold); font-size:.85rem; letter-spacing:.1em; }
.goal-card h3{ font-size:1.1rem; margin:.6rem 0; }
.goal-card p{ color:var(--steel); font-size:.9rem; margin:0; }

/* stat counters */
.stat-block{ text-align:center; padding:1.2rem; }
.stat-block b{ display:block; font-family:var(--font-mono); font-size:2.2rem; color:var(--gold); }
.stat-block span{ color:var(--steel); font-size:.85rem; }

/* terms accordion */
.terms-panel{
  background:var(--ink-3); border:1px solid var(--steel-line); border-radius:var(--radius-md);
  padding:1rem 1.6rem; margin-bottom:1rem;
}
.terms-panel .t-head{
  display:flex; align-items:center; justify-content:space-between; cursor:pointer;
  padding:1rem 0; font-weight:700;
}
.terms-panel .t-head svg{ width:20px; height:20px; color:var(--gold); transition:transform .3s var(--ease); flex-shrink:0; }
.terms-panel.open .t-head svg{ transform:rotate(45deg); }
.terms-panel .t-body{ max-height:0; overflow:hidden; transition:max-height .35s var(--ease); }
.terms-panel.open .t-body{ max-height:600px; }
.terms-panel .t-body p{ color:var(--steel); padding-bottom:1.1rem; line-height:1.85; margin:0; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-card{
  background:var(--ink-3); border:1px solid var(--steel-line); border-radius:var(--radius-md);
  padding:1.5rem; display:flex; align-items:center; gap:1rem; transition:border-color .25s, transform .25s var(--ease);
}
.contact-card:hover{ border-color:var(--gold); transform:translateY(-4px); }
.contact-card .ic{
  width:50px; height:50px; border-radius:12px; background:var(--gold); color:#171200;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-card .ic svg{ width:24px; height:24px; }
.contact-card b{ display:block; font-size:.78rem; color:var(--steel); font-weight:600; }
.contact-card span{ font-weight:700; }

.form-control-etmam, textarea.form-control-etmam, select.form-control-etmam{
  background:var(--ink-2); border:1px solid var(--steel-line); color:var(--paper);
  border-radius:12px; padding:.8rem 1.1rem; width:100%; font-family:var(--font-body);
  transition:border-color .2s;
}
.form-control-etmam:focus{ outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(245,184,0,.15); }
.form-control-etmam::placeholder{ color:var(--steel); }
label.form-label-etmam{ font-size:.85rem; color:var(--paper-dim); margin-bottom:.4rem; display:block; font-weight:600; }

.toggle-pill-group{ display:flex; gap:.6rem; }
.toggle-pill{
  flex:1; text-align:center; padding:.65rem; border-radius:999px; border:1px solid var(--steel-line);
  cursor:pointer; font-weight:700; font-size:.88rem; color:var(--paper-dim); transition:all .2s;
}
.toggle-pill.active{ background:var(--gold); color:#171200; border-color:var(--gold); }

#formToast{
  position:fixed; bottom:1.6rem; inset-inline-end:1.6rem; z-index:2000;
  background:var(--gold); color:#171200; font-weight:700; padding:.9rem 1.4rem; border-radius:14px;
  box-shadow:0 16px 32px rgba(0,0,0,.4); transform:translateY(140%); transition:transform .4s var(--ease);
}
#formToast.show{ transform:translateY(0); }

.map-frame{
  border-radius:var(--radius-md); border:1px solid var(--steel-line); overflow:hidden; height:100%;
  min-height:280px; position:relative;
}

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal{ transition:opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal{ opacity:0; transform:translateY(26px); }
html.js .reveal.in{ opacity:1; transform:translateY(0); }
.reveal-delay-1{ transition-delay:.08s; }
.reveal-delay-2{ transition-delay:.16s; }
.reveal-delay-3{ transition-delay:.24s; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* =========================================================
   Responsive tuning
   ========================================================= */
@media (max-width: 991px){
  .hero{ padding:8rem 0 3.5rem; text-align:center; }
  .hero .lead{ margin-inline:auto; }
  .hero-stats{ justify-content:center; }
  .store-row{ justify-content:center; }
  .hero-visual{ margin-top:3rem; max-width:320px; margin-inline:auto; }
}
@media (max-width: 575px){
  .section{ padding:3.6rem 0; }
  .price-card{ padding:1.6rem 1.3rem; }
}

:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }
