/* ═══════════════════════════════════════════════════
   YOMIN ELECTRIC — MAIN.CSS (Shared styles)
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Noto+Sans+Arabic:wght@400;500;600&display=swap');

:root {
  --bg: #0d0d0d;
  --bgs: #141414;
  --bgc: #181818;
  --bgc2: #1f1f1f;
  --sur: #242424;
  --bdr: rgba(255,255,255,0.08);
  --bds: rgba(255,255,255,0.04);
  --tx: #f0ede8;
  --mt: #888;
  --dm: #555;
  --ac: #c8a96e;
  --ac2: #e8d5a3;
  --sf: 'DM Serif Display', Georgia, serif;
  --ss: 'DM Sans', system-ui, sans-serif;
  --r: 16px;
  --tr: 0.4s cubic-bezier(.25,.46,.45,.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--tx); font-family: var(--ss); font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.ar { font-family: 'Noto Sans Arabic', var(--ss), sans-serif; }
a { text-decoration: none; color: inherit; }

/* ─── CURSOR ─── */
.cur { width: 10px; height: 10px; background: var(--ac); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; mix-blend-mode: difference; }
.cur-r { width: 36px; height: 36px; border: 1px solid rgba(200,169,110,.5); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; transition: transform .18s ease, width .3s, height .3s, opacity .3s; }

/* ─── NAV ─── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; height: 68px; background: rgba(13,13,13,.88); backdrop-filter: blur(20px); border-bottom: 1px solid var(--bds); transition: background var(--tr); }
nav.sc { background: rgba(13,13,13,.99); }
.n-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.n-logo img { height: 44px; width: auto; object-fit: contain; filter: brightness(1.1); }
.n-logo-fb { font-family: var(--sf); font-size: 17px; color: var(--tx); }
.n-ctr { position: absolute; left: 48%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; list-style: none; }
.n-ctr a { text-decoration: none; color: var(--mt); font-size: 13px; font-weight: 500; letter-spacing: .3px; padding: 8px 14px; border-radius: 8px; transition: color .2s, background .2s; }
.n-ctr a:hover, .n-ctr a.active { color: var(--tx); background: rgba(255,255,255,.05); }
.n-ctr a.active { color: var(--ac); }
.n-rt { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lsw { position: relative; }
.lbtn { background: rgba(255,255,255,.06); border: 1px solid var(--bdr); color: var(--mt); padding: 7px 13px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; letter-spacing: .5px; transition: all .2s; display: flex; align-items: center; gap: 6px; }
.lbtn:hover { background: rgba(255,255,255,.1); color: var(--tx); }
.lbtn svg { width: 11px; height: 11px; }
.ldrop { position: absolute; top: calc(100% + 8px); right: 0; background: #1e1e1e; border: 1px solid var(--bdr); border-radius: 10px; overflow: hidden; min-width: 140px; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.ldrop.op { opacity: 1; pointer-events: all; transform: none; }
.lopt { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 13px; color: var(--mt); cursor: pointer; transition: background .15s, color .15s; border: none; background: none; width: 100%; text-align: left; }
.lopt:hover { background: rgba(255,255,255,.06); color: var(--tx); }
.lopt.act { color: var(--ac); }
.ncta { background: var(--ac); color: #000; border: none; padding: 9px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; text-decoration: none; white-space: nowrap; }
.ncta:hover { background: var(--ac2); transform: translateY(-1px); }
.ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.ham span { width: 22px; height: 1.5px; background: var(--tx); display: block; transition: all .3s; }
.mob { position: fixed; inset: 0; z-index: 300; background: rgba(13,13,13,.98); backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mob.op { opacity: 1; pointer-events: all; }
.mob a { font-family: var(--sf); font-size: 32px; color: var(--tx); text-decoration: none; transition: color .2s; }
.mob a:hover { color: var(--ac); }
.mob-x { position: absolute; top: 22px; right: 24px; background: none; border: none; color: var(--mt); font-size: 26px; cursor: pointer; }
.mob-lngs { display: flex; gap: 10px; margin-top: 6px; }
.mlb { background: rgba(255,255,255,.08); border: 1px solid var(--bdr); color: var(--mt); padding: 7px 18px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: all .2s; }
.mlb.act { background: rgba(200,169,110,.15); color: var(--ac); border-color: rgba(200,169,110,.3); }

/* ─── REVEAL ─── */
.rv { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.rv.vis { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; } .d5 { transition-delay: .5s; } .d6 { transition-delay: .6s; }

/* ─── SHARED SECTION ─── */
.slbl { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--ac); margin-bottom: 12px; display: block; }
h2.stitle { font-family: var(--sf); font-size: clamp(28px, 4.5vw, 52px); line-height: 1.1; letter-spacing: -1px; color: var(--tx); margin-bottom: 16px; }
.sdesc { color: var(--mt); font-size: 14px; line-height: 1.8; max-width: 560px; margin-bottom: 44px; }

/* ─── BUTTONS ─── */
.bpri { background: var(--ac); color: #000; border: none; padding: 14px 28px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .25s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.bpri:hover { background: var(--ac2); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,169,110,.25); }
.bsec { background: transparent; color: var(--mt); border: 1px solid var(--bdr); padding: 13px 24px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .25s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.bsec:hover { border-color: rgba(255,255,255,.22); color: var(--tx); }

/* ─── PAGE HERO ─── */
.page-hero { padding: 140px 60px 80px; background: var(--bgs); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(200,169,110,.05) 0%, transparent 70%); pointer-events: none; }
.page-hero-in { position: relative; z-index: 1; max-width: 700px; }
.ph-eyebrow { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--ac); margin-bottom: 16px; display: block; }
.ph-title { font-family: var(--sf); font-size: clamp(36px, 5vw, 72px); line-height: .95; letter-spacing: -2px; color: var(--tx); margin-bottom: 20px; }
.ph-title em { font-style: italic; color: var(--ac); }
.ph-desc { color: var(--mt); font-size: 15px; line-height: 1.8; max-width: 520px; }

/* ─── FOOTER ─── */
footer { background: var(--bgs); border-top: 1px solid var(--bds); padding: 60px 60px 36px; }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.ft-brand p { color: var(--mt); font-size: 13px; line-height: 1.75; margin-top: 14px; max-width: 260px; }
.ft-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--dm); margin-bottom: 16px; }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ft-col ul li a { font-size: 13px; color: var(--mt); transition: color .2s; }
.ft-col ul li a:hover { color: var(--ac); }
.ft-bot { border-top: 1px solid var(--bds); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ft-bot p { font-size: 12px; color: var(--dm); }
.ft-soc { display: flex; gap: 12px; }
.ft-soc a { width: 34px; height: 34px; border: 1px solid var(--bdr); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--mt); font-size: 14px; transition: all .2s; text-decoration: none; }
.ft-soc a:hover { border-color: rgba(200,169,110,.3); color: var(--ac); }

/* ─── NOISE ─── */
.noise { position: absolute; inset: 0; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 256px; pointer-events: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .ft-grid { grid-template-columns: 1fr 1fr; }
  nav { padding: 0 24px; }
}
@media (max-width: 768px) {
  /* Nav */
  .n-ctr, .n-rt .lsw, .n-rt .ncta { display: none; }
  .ham { display: flex; }
  nav { padding: 0 16px; height: 60px; gap: 0; }
  .n-logo { gap: 6px; }
  .n-logo img { height: 36px; }
  .n-logo-fb { font-size: 14px; }
  .n-rt { gap: 6px; }
  .tpbtn { width: 30px; height: 30px; font-size: 14px; }
  .theme-pair { gap: 3px; }
  /* Hero */
  .page-hero { padding: 90px 20px 48px; }
  .ph-title { font-size: clamp(28px, 7vw, 48px); letter-spacing: -1px; }
  .ph-desc { font-size: 14px; }
  h2.stitle { font-size: clamp(24px, 6vw, 40px); }
  .sdesc { font-size: 13px; margin-bottom: 28px; }
  /* Footer */
  footer { padding: 40px 20px 24px; }
  .ft-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .ft-bot { flex-direction: column; align-items: flex-start; gap: 10px; }
  /* Buttons */
  .bpri, .bsec { padding: 12px 22px; font-size: 13px; }
  /* Mobile menu */
  .mob a { font-size: 26px; }
  .mob-lngs { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 480px) {
  nav { padding: 0 14px; height: 56px; }
  .n-logo img { height: 32px; }
  .n-logo-fb { font-size: 13px; }
  .tpbtn { width: 28px; height: 28px; font-size: 13px; }
  .ham span { width: 20px; }
  .page-hero { padding: 80px 16px 40px; }
  h2.stitle { font-size: clamp(22px, 6.5vw, 36px); letter-spacing: -.5px; }
  .ph-title { font-size: clamp(24px, 8vw, 40px); letter-spacing: -1px; }
  footer { padding: 32px 16px 20px; }
  .ft-grid { gap: 22px; }
  .bpri, .bsec { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════
   DARK / LIGHT MODE
   ═══════════════════════════════════════════════════ */
body.light {
  --bg: #f8f7f4; --bgs: #efefeb; --bgc: #ffffff; --bgc2: #f2f0ec;
  --sur: #e5e3de; --bdr: rgba(0,0,0,0.1); --bds: rgba(0,0,0,0.07);
  --tx: #1a1a1a; --mt: #555; --dm: #888; --ac: #b8941a; --ac2: #d4a820;
}
body.light nav { background: rgba(248,247,244,.92); border-bottom-color: rgba(0,0,0,.1); }
body.light nav.sc { background: rgba(248,247,244,.99); }
body.light .mob { background: rgba(248,247,244,.98); }
body.light .mob a { color: #1a1a1a; }
body.light .lbtn { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.12); color: #555; }
body.light .ldrop { background: #fff; border-color: rgba(0,0,0,.1); }
body.light .lopt:hover { background: rgba(0,0,0,.04); color: #1a1a1a; }
body.light .n-ctr a { color: #555; }
body.light .n-ctr a:hover, body.light .n-ctr a.active { color: #1a1a1a; background: rgba(0,0,0,.05); }
body.light .n-ctr a.active { color: var(--ac); }
body.light footer { background: #eeece8; border-color: rgba(0,0,0,.08); }
body.light .theme-toggle { background: rgba(0,0,0,.07); border-color: rgba(0,0,0,.12); color: #555; }
body.light .theme-toggle:hover { background: rgba(0,0,0,.12); color: #1a1a1a; }

/* Theme pair buttons (dark/light side by side — matches index.html) */
.theme-pair { display: flex; gap: 4px; flex-shrink: 0; }
.tpbtn { background: rgba(255,255,255,.06); border: 1px solid var(--bdr); color: var(--mt); width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; font-size: 16px; line-height: 1; padding: 0; }
.tpbtn:hover { background: rgba(255,255,255,.12); color: var(--tx); }
.tpbtn-act { background: rgba(200,169,110,.18) !important; border-color: rgba(200,169,110,.45) !important; color: var(--ac) !important; }
body.light .tpbtn { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.12); color: #666; }
body.light .tpbtn:hover { background: rgba(0,0,0,.1); color: #1a1a1a; }
body.light .tpbtn-act { background: rgba(184,148,26,.15) !important; border-color: rgba(184,148,26,.4) !important; color: #b8941a !important; }
body.light .n-logo-fb { color: #1a1a1a; }

/* Theme toggle button */
.theme-toggle {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--bdr);
  color: var(--mt);
  width: 34px; height: 34px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,.1); color: var(--tx); }

/* ═══════════════════════════════════════════════════
   WHATSAPP / WECHAT FLOATING BUTTONS
   ═══════════════════════════════════════════════════ */
.float-btns {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.float-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  position: relative;
}
.float-btn:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 12px 36px rgba(0,0,0,.6); }
.float-btn-wa { background: #25D366; }
.float-btn-wc { background: #07C160; }
.float-btn svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); }
.float-btn-label {
  position: absolute;
  right: 60px;
  background: rgba(20,20,20,.9);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
body.light .float-btn-label { background: rgba(30,30,30,.88); }
.float-btn:hover .float-btn-label { opacity: 1; }

/* WeChat QR Modal */
.wc-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  z-index: 800;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.wc-modal-overlay.op { opacity: 1; pointer-events: all; }
.wc-modal {
  background: var(--bgc);
  border: 1px solid var(--bdr);
  border-radius: 20px;
  padding: 36px 32px 28px;
  text-align: center;
  max-width: 340px;
  width: calc(100% - 48px);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  transform: scale(.94) translateY(10px);
  transition: transform .25s;
}
body.light .wc-modal { background: #fff; }
.wc-modal-overlay.op .wc-modal { transform: none; }
.wc-modal-icon { margin-bottom: 12px; }
.wc-modal-title { font-family: var(--sf); font-size: 24px; color: var(--tx); margin-bottom: 6px; }
.wc-modal-sub { font-size: 13px; color: var(--mt); margin-bottom: 20px; line-height: 1.5; }
.wc-qr-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.wc-qr-img { 
  width: 200px; height: 200px;
  display: block;
  border-radius: 6px;
  object-fit: contain;
}
.wc-modal-close {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--bdr);
  color: var(--mt);
  padding: 9px 28px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--ss);
  display: inline-flex; align-items: center; gap: 6px;
}
body.light .wc-modal-close { background: rgba(0,0,0,.06); }
.wc-modal-close:hover { color: var(--tx); background: rgba(255,255,255,.12); }

/* ═══════════════════════════════════════════════════
   LANGUAGE DROPDOWN (shared)
   ═══════════════════════════════════════════════════ */
.ldrop { position: absolute; top: calc(100% + 8px); right: 0; background: #1e1e1e; border: 1px solid var(--bdr); border-radius: 10px; overflow: hidden; min-width: 140px; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s; box-shadow: 0 12px 40px rgba(0,0,0,.5); z-index: 300; }
.ldrop.op { opacity: 1; pointer-events: all; transform: none; }
.lopt { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 13px; color: var(--mt); cursor: pointer; transition: background .15s, color .15s; border: none; background: none; width: 100%; text-align: left; font-family: var(--ss); }
.lopt:hover { background: rgba(255,255,255,.06); color: var(--tx); }
.lopt.act { color: var(--ac); }
body.light .ldrop { background: #fff; }
body.light .lopt:hover { background: rgba(0,0,0,.05); }

/* Mobile menu language buttons */
.mob-lngs { display: flex; gap: 10px; margin-top: 6px; }
.mlb { background: rgba(255,255,255,.08); border: 1px solid var(--bdr); color: var(--mt); padding: 6px 12px; border-radius: 16px; font-size: 12px; cursor: pointer; transition: all .2s; font-family: var(--ss); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.mlb.act { background: rgba(200,169,110,.15); color: var(--ac); border-color: rgba(200,169,110,.3); }
body.light .mlb { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.12); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  /* Mobile header layout - logo left, buttons right */
  nav { 
    padding: 0 16px !important; 
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .n-logo { 
    display: flex !important; 
    align-items: center !important; 
    flex-shrink: 0;
  }
  .n-logo img { 
    height: 36px !important; 
    width: auto !important;
    display: block !important;
    visibility: visible !important;
  }
  .n-logo-fb {
    display: none !important;
  }
  .n-rt { 
    display: flex !important; 
    align-items: center !important; 
    gap: 10px !important;
    flex-shrink: 0;
    margin-left: auto;
  }
  .n-ctr, .n-rt .ncta { 
    display: none !important; 
  }
  
  /* Translation button - small and rounded */
  .n-rt .lsw {
    display: flex !important;
  }
  .n-rt .lbtn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    min-width: unset !important;
  }
  .n-rt .lbtn span:not(:first-child) {
    display: none !important;
  }
  
  /* Theme buttons positioned next to translation */
  .n-rt .theme-pair {
    display: flex !important;
    gap: 4px !important;
  }
  .n-rt .tpbtn {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    border-radius: 50% !important;
  }
  
  .ham { 
    display: flex !important; 
    margin-left: 0 !important;
  }
  
  /* Floating buttons - smaller and closer */
  .float-btns { 
    bottom: 16px !important; 
    right: 14px !important; 
    gap: 8px !important; 
    z-index: 100 !important;
  }
  .float-btn { 
    width: 44px !important; 
    height: 44px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.4) !important;
  }
  .float-btn svg { 
    width: 22px !important; 
    height: 22px !important; 
  }
  .float-btn-label { 
    display: none !important; 
  }
}

@media (max-width: 480px) {
  nav { 
    padding: 0 12px !important; 
    height: 56px !important;
  }
  .n-logo img { 
    height: 32px !important; 
  }
  .tpbtn { 
    width: 32px !important; 
    height: 32px !important; 
    font-size: 14px !important;
  }
  .n-rt .lbtn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* ─── RTL OVERRIDES — keep nav/logo LTR ─── */
[dir="rtl"] nav,
[dir="rtl"] .n-logo,
[dir="rtl"] .n-ctr,
[dir="rtl"] .n-rt {
  direction: ltr;
}
[dir="rtl"] .n-ctr a,
[dir="rtl"] .n-rt .lbtn,
[dir="rtl"] .n-rt .ncta {
  direction: rtl;
}
[dir="rtl"] .mob {
  direction: rtl;
}
[dir="rtl"] footer .ft-grid,
[dir="rtl"] footer .ft-bot {
  direction: ltr;
}
[dir="rtl"] footer .ft-brand p,
[dir="rtl"] footer .ft-col h4,
[dir="rtl"] footer .ft-col ul a,
[dir="rtl"] footer .ft-bot p {
  direction: rtl;
  text-align: right;
}
