/* =============================================================
   Doolike — Copper Busbar Epoxy Powder Coating
   Design system: modern industrial + brand red + copper accent
   Self-contained (no external fonts/CDN). RTL-ready.
   ============================================================= */

:root {
  /* Brand */
  --brand: #C1272D;
  --brand-2: #E23B3B;
  --brand-dark: #971a20;
  --brand-darker: #6d1015;
  --copper: #B87333;
  --copper-2: #D9A066;

  /* Neutrals */
  --ink: #16191d;
  --ink-2: #21262d;
  --ink-3: #2c333c;
  --text: #262b31;
  --muted: #6a7480;
  --muted-2: #8a929c;
  --line: #e6e9ee;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --bg-dark: #14171b;

  /* Effects */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(20,25,35,.06);
  --shadow: 0 10px 30px rgba(20,25,35,.10);
  --shadow-lg: 0 24px 60px rgba(20,25,35,.16);
  --ring: 0 0 0 4px rgba(193,39,45,.16);
  --container: 1200px;
  --header-h: 72px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans", "Hiragino Sans GB", "Microsoft YaHei",
    "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans", "Noto Sans Arabic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }

::selection { background: rgba(193,39,45,.18); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 12px 24px; border: none; border-radius: 999px;
  font: 600 15px/1 var(--font); color: #fff; background: var(--btn-bg);
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 8px 20px rgba(193,39,45,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(193,39,45,.38); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1.5px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20,25,35,.08); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 42px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a {
  position: relative; padding: 8px 14px; font-weight: 600; font-size: 15px; color: var(--ink-2);
  border-radius: 8px; transition: color .2s, background .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--brand); }
.main-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: 8px; }

/* Language switch */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line);
  background: #fff; border-radius: 999px; font: 600 14px var(--font); color: var(--ink-2); cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.lang-btn:hover { border-color: var(--brand); }
.lang-btn svg { width: 16px; height: 16px; opacity: .8; }
.lang-btn .chev { transition: transform .2s; }
.lang-switch.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: 190px; max-height: 66vh; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s; z-index: 50;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  font-size: 14.5px; color: var(--ink-2); transition: background .15s;
}
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a.active { color: var(--brand); font-weight: 700; background: rgba(193,39,45,.06); }
.lang-menu a .flag { font-size: 17px; line-height: 1; }

/* mobile nav toggle */
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; padding: calc(var(--header-h) + 64px) 0 72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(226,59,59,.42), transparent 60%),
    radial-gradient(900px 500px at 8% 110%, rgba(184,115,51,.30), transparent 55%),
    linear-gradient(160deg, #1b1e24 0%, #14171b 55%, #0f1216 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 80%);
  opacity: .5;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #ffd9d9; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(226,59,59,.25); }
.hero-title { font-size: clamp(2rem, 4.4vw, 3.35rem); color: #fff; letter-spacing: -.02em; }
.hero-title b { color: transparent; background: linear-gradient(120deg, #ff6a6a, var(--copper-2)); -webkit-background-clip: text; background-clip: text; }
.hero-sub { margin: 18px 0 28px; font-size: clamp(1rem, 1.4vw, 1.16rem); color: rgba(255,255,255,.82); max-width: 44ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 30px; margin-top: 44px; }
.hero-stats li { position: relative; padding-inline-start: 18px; }
.hero-stats li::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(var(--brand-2), var(--copper)); }
.hero-stats .num { display: block; font-size: 1.85rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero-stats .num i { font-style: normal; color: var(--copper-2); }
.hero-stats .lbl { font-size: 13px; color: rgba(255,255,255,.66); }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; }
.hero-media-badge {
  position: absolute; inset-inline-start: -18px; bottom: 26px; background: #fff; color: var(--ink);
  padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; max-width: 240px;
}
.hero-media-badge .ic { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); display: grid; place-items: center; flex-shrink: 0; }
.hero-media-badge .ic svg { width: 22px; height: 22px; color: #fff; }
.hero-media-badge b { display: block; font-size: 15px; }
.hero-media-badge span { font-size: 12.5px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section.alt { background: var(--bg-soft); }
.section.dark { background: var(--bg-dark); color: #fff; }
.section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section.dark .kicker { color: var(--copper-2); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.section.dark .section-head p { color: rgba(255,255,255,.7); }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .28s, box-shadow .28s, border-color .28s; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f0f0f2; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-media img { transform: scale(1.07); }
.product-media .tag-float { position: absolute; inset-inline-start: 12px; top: 12px; background: rgba(20,23,27,.72); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.product-body p { font-size: .92rem; color: var(--muted); margin-bottom: 14px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.chip { font-size: 12px; font-weight: 600; color: var(--brand-dark); background: rgba(193,39,45,.08); padding: 4px 10px; border-radius: 999px; }
.product-inquire { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--brand); }
.product-inquire svg { width: 16px; height: 16px; transition: transform .2s; }
.product-card:hover .product-inquire svg { transform: translateX(4px); }

/* ---------- Benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .25s, box-shadow .25s; }
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.benefit .ic { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, rgba(193,39,45,.12), rgba(184,115,51,.12)); display: grid; place-items: center; margin-bottom: 18px; }
.benefit .ic svg { width: 27px; height: 27px; color: var(--brand); }
.benefit h3 { font-size: 1.12rem; margin-bottom: 8px; }
.benefit p { font-size: .93rem; color: var(--muted); }

/* ---------- Process (dark) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 30px 24px; }
.step .no { font-size: 2.4rem; font-weight: 800; line-height: 1; color: transparent; background: linear-gradient(120deg, var(--brand-2), var(--copper-2)); -webkit-background-clip: text; background-clip: text; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; color: #fff; }
.step p { font-size: .92rem; color: rgba(255,255,255,.66); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 46px; inset-inline-end: -13px; width: 26px; height: 2px; background: rgba(255,255,255,.2); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 18px; }
.about-copy .lead { font-size: 1.1rem; color: var(--ink-2); margin-bottom: 14px; font-weight: 500; }
.about-copy p { color: var(--muted); margin-bottom: 14px; }
.about-highlights { display: grid; gap: 16px; margin-top: 26px; }
.about-highlights li { display: flex; gap: 14px; align-items: flex-start; }
.about-highlights .ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: rgba(193,39,45,.09); display: grid; place-items: center; }
.about-highlights .ic svg { width: 22px; height: 22px; color: var(--brand); }
.about-highlights h4 { font-size: 1.02rem; margin-bottom: 2px; }
.about-highlights p { font-size: .9rem; color: var(--muted); margin: 0; }
.about-visual { position: relative; }
.about-visual > img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.about-badge { position: absolute; inset-inline-end: -16px; top: -16px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-lg); text-align: center; }
.about-badge b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.about-badge span { font-size: 12px; opacity: .9; }

/* advantages strip */
.adv-strip { margin-top: 60px; }
.adv-strip h3 { text-align: center; font-size: 1.3rem; margin-bottom: 26px; }
.adv-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.adv { text-align: center; padding: 24px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .25s, box-shadow .25s; }
.section.alt .adv { background: #fff; }
.adv:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.adv .ic { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); display: grid; place-items: center; }
.adv .ic svg { width: 23px; height: 23px; color: #fff; }
.adv h4 { font-size: 1rem; margin-bottom: 5px; }
.adv p { font-size: .84rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; aspect-ratio: 3/2; box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 16px 14px; color: #fff; font-size: .9rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(15,17,20,.82)); transform: translateY(6px); opacity: 0; transition: .3s; }
.gallery-grid figure:hover figcaption { transform: translateY(0); opacity: 1; }
.gallery-grid figure::after { content: ""; position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C1272D' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3m8 0h3a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center/17px no-repeat;
  opacity: 0; transform: scale(.8); transition: .3s; }
.gallery-grid figure:hover::after { opacity: 1; transform: scale(1); }

/* ---------- Applications ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app { position: relative; padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.app::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--brand), var(--copper)); transform: scaleY(0); transform-origin: top; transition: transform .3s; }
.app:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.app:hover::before { transform: scaleY(1); }
.app .ic { width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(135deg, rgba(193,39,45,.10), rgba(184,115,51,.12)); display: grid; place-items: center; margin-bottom: 16px; }
.app .ic svg { width: 26px; height: 26px; color: var(--brand); }
.app h3 { font-size: 1.1rem; margin-bottom: 8px; }
.app p { font-size: .92rem; color: var(--muted); }

/* ---------- Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cert { text-align: center; padding: 30px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.cert:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cert .badge { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(193,39,45,.24); }
.cert .badge svg { width: 30px; height: 30px; color: #fff; }
.cert h4 { font-size: 1.05rem; margin-bottom: 5px; }
.cert p { font-size: .85rem; color: var(--muted); }

/* ---------- Contact (dark) ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 12px; }
.contact-info .row { display: flex; gap: 15px; align-items: flex-start; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: 16px 18px; border-radius: 12px; }
.contact-info .ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); display: grid; place-items: center; }
.contact-info .ic svg { width: 21px; height: 21px; color: #fff; }
.contact-info h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--copper-2); margin-bottom: 3px; }
.contact-info p, .contact-info a { color: rgba(255,255,255,.86); font-size: .96rem; word-break: break-word; }
.contact-info a:hover { color: #fff; text-decoration: underline; }
.contact-form { background: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.contact-form h3 { color: var(--ink); font-size: 1.3rem; margin-bottom: 6px; }
.contact-form .fine { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px; font: 400 15px var(--font);
  color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.form-note { font-size: 12px; color: var(--muted-2); margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1216; color: rgba(255,255,255,.72); padding: 62px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-brand img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { font-size: .92rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.66); font-size: .92rem; margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--copper-2); }
.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; margin: 0; }
.footer-social a:hover { background: var(--brand); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: rgba(255,255,255,.5); }

/* ---------- Floating & to-top ---------- */
.floating { position: fixed; inset-inline-end: 20px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; gap: 11px; }
.fab { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; position: relative; }
.fab svg { width: 25px; height: 25px; }
.fab:hover { transform: translateY(-3px) scale(1.06); box-shadow: var(--shadow-lg); }
.fab.wa { background: #25D366; } .fab.we { background: #09B83E; } .fab.tel { background: var(--brand); } .fab.mail { background: #2b6fdb; }
.fab-launcher { display: none; border: none; cursor: pointer; }
.fab-launcher .ic-close { display: none; }
.fab .tip { position: absolute; inset-inline-end: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 12.5px; padding: 6px 11px; border-radius: 8px; opacity: 0; visibility: hidden; transition: .2s; pointer-events: none; }
.fab:hover .tip { opacity: 1; visibility: visible; }
.fab .qr { position: absolute; inset-inline-end: calc(100% + 12px); top: 50%; transform: translateY(-50%) scale(.9); trans-origin: right;
  background: #fff; padding: 8px; border-radius: 10px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .2s; }
.fab .qr img { width: 128px; height: 128px; }
.fab.we:hover .qr { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
.to-top { position: fixed; inset-inline-end: 20px; bottom: 22px; z-index: 899; width: 46px; height: 46px; border: none; border-radius: 50%;
  background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(14px); transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; }
.floating.lift { bottom: 84px; }

/* Mobile: collapse the 4 contact buttons into one expandable launcher */
@media (max-width: 620px) {
  .floating { inset-inline-end: 16px; bottom: 16px; width: 54px; height: 54px; display: block; gap: 0; }
  .fab-launcher {
    display: grid; place-items: center; position: relative; z-index: 2;
    width: 54px; height: 54px; border-radius: 50%; color: #fff;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    box-shadow: var(--shadow-lg);
  }
  .fab-launcher > span { display: grid; place-items: center; }
  .fab-launcher svg { width: 26px; height: 26px; }
  .floating.open .fab-launcher .ic-open { display: none; }
  .floating.open .fab-launcher .ic-close { display: grid; }
  .floating .fab {
    position: absolute; inset-inline-end: 3px; bottom: 3px; width: 48px; height: 48px;
    opacity: 0; transform: scale(.4); pointer-events: none;
    transition: transform .3s cubic-bezier(.2,.85,.3,1), opacity .2s;
  }
  .floating .fab svg { width: 23px; height: 23px; }
  .floating .fab .tip { display: none; }
  .floating.open .fab { opacity: 1; pointer-events: auto; }
  .floating.open .fab.wa   { transform: translateY(-60px); }
  .floating.open .fab.we   { transform: translateY(-118px); }
  .floating.open .fab.tel  { transform: translateY(-176px); }
  .floating.open .fab.mail { transform: translateY(-234px); }
  .floating.lift { bottom: 16px; }
  .to-top { inset-inline-start: 16px; inset-inline-end: auto; bottom: 16px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 12px);
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity .3s, transform .3s; z-index: 3000; pointer-events: none; white-space: nowrap;
}
.toast.in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Modal & Lightbox ---------- */
.modal, .lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(12,14,18,.72); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open, .lightbox.open { display: flex; }
.modal-card { background: #fff; border-radius: var(--radius-lg); padding: 30px; width: 100%; max-width: 480px; position: relative; box-shadow: var(--shadow-lg); }
.modal-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.modal-card .fine { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.modal-close { position: absolute; inset-inline-end: 14px; top: 14px; width: 34px; height: 34px; border: none; border-radius: 50%; background: var(--bg-soft);
  cursor: pointer; font-size: 20px; color: var(--muted); display: grid; place-items: center; }
.modal-close:hover { background: #ececf0; color: var(--ink); }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close { position: absolute; top: 22px; inset-inline-end: 26px; width: 46px; height: 46px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 24px; cursor: pointer; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,.26); }
.lightbox .lb-prev { inset-inline-start: 26px; } .lightbox .lb-next { inset-inline-end: 26px; }
.lightbox .lb-nav svg { width: 26px; height: 26px; }

/* ---------- Reveal animation (gated by .js so content stays visible without JS) ---------- */
.reveal { transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.js .reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } .reveal { transition: none; } html { scroll-behavior: auto; } }

/* ---------- RTL ---------- */
[dir="rtl"] .hero-title, [dir="rtl"] .hero-sub { direction: rtl; }
[dir="rtl"] .step:not(:last-child)::after { transform: scaleX(-1); }
[dir="rtl"] .product-card:hover .product-inquire svg,
[dir="rtl"] .product-inquire svg { transform: scaleX(-1); }
[dir="rtl"] .product-card:hover .product-inquire svg { transform: scaleX(-1) translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-row { grid-template-columns: repeat(5, 1fr); gap: 12px; }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .benefit-grid, .app-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 860px) {
  .main-nav, .nav-quote { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; padding: 12px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-14px); opacity: 0; visibility: hidden; transition: .25s; margin: 0;
  }
  .main-nav.open { display: flex; transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 13px 12px; border-radius: 10px; font-size: 16px; }
  .main-nav a::after { display: none; }
  .adv-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .section { padding: 62px 0; }
  .section-head { margin-bottom: 38px; }
  .container { padding: 0 18px; }
  .hero { padding: calc(var(--header-h) + 40px) 0 54px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; padding: 14px 20px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .product-media { aspect-ratio: 3 / 2; }
  .product-body { padding: 20px 20px 22px; }
  .product-body h3 { font-size: 1.18rem; }
  .product-body p { font-size: .95rem; }
  .benefit-grid, .app-grid, .gallery-grid, .process-grid, .cert-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .benefit, .app, .step { padding: 22px 18px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-media-badge { inset-inline-start: 10px; }
  .about-badge { inset-inline-end: 10px; }
  .brand-logo { height: 36px; }
}
@media (max-width: 400px) {
  .benefit-grid, .app-grid, .cert-grid, .process-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
