/*
Theme Name:  Cell-O Implant System Pro v6.9
Theme URI:   http://www.celloplant.com/
Author:      Cell-O
Author URI:  http://www.celloplant.com/
Description: قالب احترافي لعرض منتجات وكتالوج Cell-O Implant System للأطباء والموزعين — يشمل فيديو banner كامل العرض، لوحة تحكم شاملة، ودعم كامل للغتين العربية والإنجليزية.
Version:     6.9
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License:     Proprietary
Text Domain: cell-o
*/

/* ============================================================
   Cell-O Implant System — Main Stylesheet v6.7
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --teal:   #0b4b47;
  --teal-2: #2b706d;
  --green:  #b6da35;
  --ink:    #151316;
  --cream:  #f5f7ef;
  --white:  #ffffff;
  --radius: 16px;
  --rad-sm: 10px;
  --shadow: 0 8px 40px rgba(0,0,0,.10);
  --trans:  .25s cubic-bezier(.4,0,.2,1);
  --header-h: 72px;
  --container: 1200px;
  --font-ar: 'Cairo', 'Tajawal', system-ui, sans-serif;
  --font-en: 'Inter', 'Cairo', system-ui, sans-serif;
  --font-heading: var(--font-ar);
  --hvb-aspect: 16 / 7;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ar);
  background: var(--cream); color: var(--ink);
  line-height: 1.65; min-height: 100dvh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font: inherit; border: none; background: none; }
html[lang="en"] body { font-family: var(--font-en); }
h1, h2, h3, h4, h5, h6, .btn, .tag, .eyebrow, .main-nav a { font-family: var(--font-heading); }

/* ── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: fixed; inset-block-start: -9em; inset-inline-start: 1rem;
  background: var(--teal); color: #fff; padding: .5rem 1rem;
  border-radius: 0 0 var(--rad-sm) var(--rad-sm); z-index: 10000;
  transition: inset-block-start .2s;
}
.skip-link:focus { inset-block-start: 0; }

/* ── Cursor glow (desktop) ─────────────────────────────────── */
.cursor-glow {
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(11,75,71,.12) 0%, transparent 70%);
  position: fixed; pointer-events: none; z-index: 0;
  transform: translate(-50%,-50%); transition: transform .06s linear;
  display: none;
}
@media (hover: hover) { .cursor-glow { display: block; } }

/* ── Container ─────────────────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }

/* ── Section padding ───────────────────────────────────────── */
.section-pad { padding-block: clamp(3.5rem, 7vw, 6rem); }

/* ══════════════════════════════════════════════════════════════
   HERO VIDEO BANNER (HVB)
══════════════════════════════════════════════════════════════ */
.hvb {
  position: relative;
  width: 100%;
  aspect-ratio: var(--hvb-aspect);
  min-height: 380px;
  max-height: 100svh;
  overflow: hidden;
  background: #0a2220;
  display: flex;
  flex-direction: column;
}

.hvb__poster,
.hvb__video,
.hvb__iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hvb__poster {
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}
.hvb__video {
  object-fit: cover; object-position: center center;
}
.hvb__iframe {
  border: 0;
  transform: scale(1.012);
  transform-origin: center;
}

/* Multi-layer overlay: dark top for header legibility, gradient bottom */
.hvb__overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.10) 35%, rgba(0,0,0,.05) 60%, rgba(11,75,71,.40) 100%);
}

/* ── Header overlaid on the video ──────────────────────────── */
.site-header--on-video {
  position: relative; z-index: 5;
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.site-header--on-video .brand {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 14px;
  padding: 6px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  backdrop-filter: blur(10px);
}
.site-header--on-video .brand img { filter: none !important; }
.site-header--on-video .main-nav a { color: rgba(255,255,255,.92); }
.site-header--on-video .main-nav a:hover { color: var(--green); }
.site-header--on-video .lang-toggle { color: #fff; border-color: rgba(255,255,255,.35); }
.site-header--on-video .btn--glass {
  background: rgba(255,255,255,.15) !important;
  border-color: rgba(255,255,255,.5) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
}
.site-header--on-video .btn--glass:hover { background: var(--green) !important; color: var(--ink) !important; border-color: var(--green) !important; }
.site-header--on-video .menu-toggle span { background: #fff; }

/* ── CTA button centred at bottom of video ─────────────────── */
.hvb__cta {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(30px, 6vw, 60px);
  display: flex; justify-content: center; align-items: center;
  z-index: 4;
}
.hvb__cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green);
  color: var(--ink);
  font-weight: 800; font-size: clamp(14px, 2.2vw, 18px);
  padding: .85em 2.2em;
  border-radius: 100px;
  letter-spacing: .02em;
  box-shadow: 0 6px 32px rgba(0,0,0,.28);
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  animation: hvb-cta-in .9s cubic-bezier(.22,1,.36,1) 1.2s both;
}
.hvb__cta-btn:hover { background: #cef050; transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.hvb__cta-btn:active { transform: translateY(0); }
.hvb__cta-arrow { font-size: 1.1em; animation: hvb-arrow-bounce 2s ease infinite; display: inline-block; }
@keyframes hvb-arrow-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }
@keyframes hvb-cta-in { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ── Video controls (mute / pause) ─────────────────────────── */
.hvb__controls {
  position: absolute;
  bottom: clamp(14px, 3vw, 22px);
  inset-inline-end: clamp(14px, 3vw, 24px);
  display: flex; gap: 8px; z-index: 5;
}
.hvb__ctrl {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.18); backdrop-filter: blur(10px);
  color: #fff; display: grid; place-items: center;
  transition: background var(--trans);
  -webkit-tap-highlight-color: transparent;
}
.hvb__ctrl:hover { background: rgba(11,75,71,.75); }
.hvb__icon { width: 18px; height: 18px; display: block; }

/* ── Scroll hint ────────────────────────────────────────────── */
.hvb__scroll {
  position: absolute; bottom: clamp(18px,3vw,28px);
  inset-inline-start: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.82); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  pointer-events: none; z-index: 4;
  animation: hvb-scroll-in 1s ease 2.2s both;
}
html[dir="rtl"] .hvb__scroll { transform: translateX(50%); }
.hvb__scroll-arrow {
  width: 18px; height: 18px;
  border-inline-end: 2px solid rgba(255,255,255,.7);
  border-bottom: 2px solid rgba(255,255,255,.7);
  transform: rotate(45deg);
  animation: hvb-scroll-bounce 2s ease infinite;
}
@keyframes hvb-scroll-bounce { 0%,100%{transform:rotate(45deg) translateY(0)} 50%{transform:rotate(45deg) translateY(5px)} }
@keyframes hvb-scroll-in { from{opacity:0;transform:translateX(-50%) translateY(8px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }

/* Responsive HVB */
@media (max-width: 1024px) { .hvb { aspect-ratio: 16/9; } }
@media (max-width: 720px) {
  .hvb { aspect-ratio: 9/10; min-height: 520px; }
  .hvb__video { object-position: center top; }
  .hvb__iframe { transform: scale(1.18); }
  .hvb__cta-btn { font-size: 14px; padding: .8em 1.8em; }
}
@media (max-width: 480px) {
  .hvb { aspect-ratio: 3/4; min-height: 500px; }
  .hvb__ctrl { width: 40px; height: 40px; }
}

/* ══════════════════════════════════════════════════════════════
   REGULAR HEADER (no video)
══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-inline: clamp(1rem, 4vw, 2.5rem);
  background: rgba(245,247,239,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11,75,71,.10);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: background var(--trans), box-shadow var(--trans);
}
.site-header.scrolled { background: rgba(245,247,239,.97); box-shadow: 0 4px 24px rgba(0,0,0,.10); }

.brand { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.brand img { height: 38px; width: auto; object-fit: contain; filter: none !important; }

.main-nav { display: flex; gap: clamp(.75rem, 2vw, 1.5rem); }
.main-nav a { font-weight: 700; font-size: .875rem; color: var(--ink); opacity: .82; transition: opacity var(--trans), color var(--trans); }
.main-nav a:hover { opacity: 1; color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.lang-toggle {
  font-weight: 800; font-size: .8rem; color: var(--teal);
  border: 1.5px solid var(--teal); border-radius: 8px;
  padding: .25rem .6rem; transition: background var(--trans), color var(--trans);
}
.lang-toggle:hover { background: var(--teal); color: #fff; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--trans); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; letter-spacing: .02em;
  padding: .7em 1.6em; border-radius: 100px;
  background: var(--teal); color: #fff;
  border: 2px solid var(--teal);
  transition: background var(--trans), color var(--trans), border-color var(--trans), transform var(--trans);
}
.btn:hover { background: var(--teal-2); border-color: var(--teal-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-small { font-size: .8rem; padding: .5em 1.2em; }

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════════ */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(11,75,71,.08) 0%, transparent 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 1.25rem; }
.eyebrow {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); opacity: .85;
}
h1, h2 { line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 3.8vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 900; }
.lead { font-size: 1.05rem; opacity: .78; max-width: 52ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.trust-strip { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: .25rem; }
.trust-strip div { display: flex; flex-direction: column; }
.trust-strip strong { font-size: 1.25rem; font-weight: 900; color: var(--teal); }
.trust-strip span { font-size: .75rem; opacity: .7; }

.hero-media { position: relative; }
.showcase-card {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4/3;
}
.showcase-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute; bottom: -1rem; inset-inline-start: -1rem;
  background: var(--white); border-radius: var(--rad-sm);
  padding: .75rem 1.1rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px; max-width: 180px;
}
.hero-card span { font-size: .7rem; opacity: .6; font-weight: 700; text-transform: uppercase; }
.hero-card b { font-size: .85rem; font-weight: 800; color: var(--teal); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show, .reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .18s; }
.delay-2 { transition-delay: .32s; }

/* ══════════════════════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════════════════════ */
.marquee {
  background: var(--teal); color: var(--green);
  padding-block: .9rem; overflow: hidden; white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 3rem;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-track span { font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
@keyframes marquee-scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ══════════════════════════════════════════════════════════════
   SECTION HEADS
══════════════════════════════════════════════════════════════ */
.section-head { text-align: center; max-width: 650px; margin-inline: auto; margin-bottom: 3rem; display: flex; flex-direction: column; gap: .75rem; }

/* ══════════════════════════════════════════════════════════════
   PRODUCTS
══════════════════════════════════════════════════════════════ */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }
.filter {
  font-weight: 700; font-size: .82rem; padding: .45em 1.2em;
  border-radius: 100px; border: 1.5px solid rgba(11,75,71,.2);
  color: var(--teal); transition: var(--trans);
}
.filter.active, .filter:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.product-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.07);
  cursor: pointer; transition: transform var(--trans), box-shadow var(--trans);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--cream); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-info { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-2); }
.product-title { font-size: 1rem; font-weight: 800; }
.product-subtitle { font-size: .85rem; opacity: .7; }
.product-arrow { margin-top: auto; align-self: flex-end; color: var(--teal); font-size: 1.2rem; }

/* ══════════════════════════════════════════════════════════════
   CATALOGUE
══════════════════════════════════════════════════════════════ */
.catalogue { background: var(--teal); color: var(--white); }
.catalogue .eyebrow { color: var(--green); }
.catalogue-hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem;
}
.catalogue-hero h2, .catalogue-hero p { color: var(--white); }
.catalogue-hero p { opacity: .8; max-width: 55ch; }
.catalogue-hero .btn { background: var(--green); color: var(--ink); border-color: var(--green); flex-shrink: 0; }
.catalogue-hero .btn:hover { background: #cef050; border-color: #cef050; }

.catalogue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.catalogue-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); overflow: hidden;
  transition: background var(--trans), transform var(--trans);
}
.catalogue-card:hover { background: rgba(255,255,255,.14); transform: translateY(-4px); }
.catalogue-card-img { aspect-ratio: 4/3; overflow: hidden; background: rgba(255,255,255,.06); }
.catalogue-card-img img { width: 100%; height: 100%; object-fit: cover; }
.catalogue-card-body { padding: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.catalogue-card-tag { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.catalogue-card-title { font-size: .95rem; font-weight: 800; }
.catalogue-card-text { font-size: .82rem; opacity: .72; }

/* ══════════════════════════════════════════════════════════════
   TECHNOLOGY  (split grid shared)
══════════════════════════════════════════════════════════════ */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split-grid.reverse { direction: rtl; }
.split-grid.reverse > * { direction: ltr; }
html[dir="rtl"] .split-grid.reverse { direction: ltr; }
html[dir="rtl"] .split-grid.reverse > * { direction: rtl; }

.image-stack { position: relative; }
.stack-main { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.stack-float {
  position: absolute; width: 40%; bottom: -1.5rem; inset-inline-end: -1.5rem;
  border-radius: var(--rad-sm); box-shadow: var(--shadow);
  border: 4px solid var(--white);
}

.content-panel { display: flex; flex-direction: column; gap: 1.25rem; }
.feature-list { display: flex; flex-direction: column; gap: .75rem; margin-top: .5rem; }
.feature-list div { display: flex; gap: .75rem; align-items: baseline; }
.feature-list b { font-size: .7rem; color: var(--green); background: var(--teal); padding: .15em .4em; border-radius: 4px; }

/* ══════════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════════ */
.about-visual { position: relative; }
.about-visual img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.note-card {
  position: absolute; bottom: -1rem; inset-inline-start: -1rem;
  background: var(--teal); color: #fff;
  border-radius: var(--rad-sm); padding: .9rem 1.2rem;
  display: flex; flex-direction: column; gap: 3px; max-width: 200px;
  box-shadow: var(--shadow);
}
.note-card strong { font-size: .85rem; font-weight: 800; }
.note-card span { font-size: .75rem; opacity: .78; }

.metrics { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: .5rem; }
.metrics div { display: flex; flex-direction: column; }
.metrics strong { font-size: 1.5rem; font-weight: 900; color: var(--teal); }
.metrics span { font-size: .75rem; opacity: .7; }

/* ══════════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-cards { display: flex; flex-direction: column; gap: .75rem; }
.mini-card {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--white); border-radius: var(--rad-sm);
  padding: .9rem 1.1rem; border: 1.5px solid rgba(11,75,71,.1);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.mini-card:hover { border-color: var(--teal); box-shadow: 0 4px 20px rgba(11,75,71,.1); }
.mini-card span { font-size: .72rem; opacity: .6; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mini-card strong { font-size: .9rem; font-weight: 800; color: var(--teal); }
.whatsapp-card { border-color: rgba(37,211,102,.3); }
.whatsapp-card:hover { border-color: #25d366; }
.whatsapp-card strong { color: #1a9c4a; }

.quote-form { display: flex; flex-direction: column; gap: 1rem; background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-size: .82rem; font-weight: 800; }
.form-row input,
.form-row select,
.form-row textarea {
  border: 1.5px solid rgba(11,75,71,.2); border-radius: var(--rad-sm);
  padding: .65rem .9rem; font: inherit; font-size: .9rem;
  background: var(--cream); transition: border-color var(--trans), box-shadow var(--trans);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,75,71,.1); }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-status { font-size: .85rem; min-height: 1.2em; }
.form-status.ok { color: #1a9c4a; }
.form-status.err { color: #c0392b; }
.btn-form { width: 100%; padding: .9em; font-size: 1rem; border-radius: var(--rad-sm); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer { background: var(--ink); color: rgba(255,255,255,.65); padding-block: 2rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.94);
  border-radius: 12px;
  padding: 6px 10px;
  line-height: 0;
}
.footer-brand img { height: 32px; width: auto; object-fit: contain; filter: none !important; }
.footer a { color: rgba(255,255,255,.5); transition: color var(--trans); }
.footer a:hover { color: var(--green); }

/* ══════════════════════════════════════════════════════════════
   WHATSAPP FLOAT
══════════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed; inset-block-end: 1.5rem; inset-inline-end: 1.5rem;
  display: flex; align-items: center; gap: .6rem;
  background: #25d366; color: #fff;
  padding: .65rem 1.2rem; border-radius: 100px;
  font-weight: 800; font-size: .85rem; z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: background var(--trans), transform var(--trans);
}
.whatsapp-float:hover { background: #1ebe5d; transform: translateY(-3px); }

/* ══════════════════════════════════════════════════════════════
   PRODUCT MODAL
══════════════════════════════════════════════════════════════ */
.product-modal {
  max-width: 900px; width: 94vw; border: none;
  border-radius: var(--radius); padding: 0; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
}
.product-modal::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { background: var(--cream); aspect-ratio: 3/4; overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-copy { padding: 2rem; display: flex; flex-direction: column; gap: .75rem; overflow-y: auto; max-height: 80vh; }
.modal-copy .tag { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-2); }
.modal-copy h3 { font-size: 1.3rem; font-weight: 900; }
.modal-copy p { font-size: .9rem; opacity: .8; }
.modal-specs { display: flex; flex-direction: column; gap: .4rem; }
.modal-spec-row { display: flex; justify-content: space-between; font-size: .82rem; border-bottom: 1px solid rgba(0,0,0,.07); padding-block: .35rem; }
.modal-spec-label { opacity: .6; font-weight: 700; }
.modal-copy ul { padding-inline-start: 1.2rem; display: flex; flex-direction: column; gap: .3rem; }
.modal-copy li { font-size: .88rem; opacity: .82; }
.modal-close {
  position: absolute; top: .75rem; inset-inline-end: .75rem;
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; font-weight: 700;
  background: rgba(0,0,0,.08); color: var(--ink); z-index: 2;
  display: grid; place-items: center; transition: background var(--trans);
}
.modal-close:hover { background: rgba(0,0,0,.16); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-grid,
  .split-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .split-grid.reverse { direction: unset; }
  .hero-media { display: none; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-media { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  :root { --header-h: 62px; }
  .main-nav {
    position: fixed; inset-block-start: var(--header-h); inset-inline: 0;
    background: var(--white); flex-direction: column;
    padding: 1.5rem 1.25rem; gap: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    transform: translateY(-110%); transition: transform var(--trans);
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { font-size: 1.1rem; }
  .menu-toggle { display: flex; }
  .header-actions .btn-small { display: none; }

  /* on-video header: mobile nav background should be dark */
  .site-header--on-video .main-nav {
    background: rgba(10,34,32,.97); border-top: 1px solid rgba(255,255,255,.1);
  }
  .site-header--on-video .main-nav a { color: rgba(255,255,255,.92); }

  .catalogue-hero { flex-direction: column; }
  .stack-float { width: 36%; bottom: -1rem; inset-inline-end: -.75rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
  .product-grid { grid-template-columns: 1fr; }
  .catalogue-grid { grid-template-columns: 1fr; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: .75rem; border-radius: 50%; }
  .quote-form { padding: 1.25rem; }
  .modal-copy { padding: 1.25rem; }
}

/* Remove old media-feature section if still present */
.media-feature { display: none !important; }


/* Logo display fix v6.7: prevents white boxes/inverted logo in header/footer */
.site-header .brand,
.footer-brand { max-width: 190px; }
.site-header .brand img,
.footer-brand img { max-width: 100%; }
@media (max-width: 640px) {
  .brand img { height: 32px; }
  .site-header--on-video .brand { padding: 5px 9px; border-radius: 11px; }
  .footer-brand img { height: 28px; }
}


/* v6.7 hero cleanup */
.hvb__controls, .hvb__scroll { display: none !important; }
.hvb__cta { bottom: clamp(22px, 5vw, 42px); padding-inline: 16px; }
.hvb__cta-btn { min-width: min(260px, calc(100vw - 32px)); justify-content: center; text-align: center; }
@media (max-width: 720px) {
  .hvb__cta { bottom: 18px; }
  .hvb__cta-btn { width: 100%; max-width: 280px; padding: .82em 1.4em; font-size: 13px; }
}


/* v6.7 broken-image guard */
img { max-width: 100%; }
.showcase-card img, .stack-main, .stack-float, .about-visual > img { background: rgba(255,255,255,.35); }


/* v6.7 image fallback polish */
.showcase-card img,
.image-stack img,
.about-visual img,
.product-card img,
.catalogue-card img {
  background:
    radial-gradient(circle at 70% 25%, rgba(11,75,71,.10), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.75), rgba(245,247,239,.95));
}


/* ============================================================
   v6.7 — professional RTL layout, filters and centered modal
   ============================================================ */
body { font-family: var(--font-ar), Arial, sans-serif; }
html[lang="en"] body { font-family: var(--font-en), Arial, sans-serif; }
h1, h2, h3, .section-head h2, .content-panel h2 { font-family: var(--font-heading), var(--font-ar), Arial, sans-serif; letter-spacing: 0; }
html[dir="rtl"] .section-head, html[dir="rtl"] .content-panel, html[dir="rtl"] .card-content, html[dir="rtl"] .catalogue-card-body, html[dir="rtl"] .modal-copy { text-align: right; }
html[dir="ltr"] .section-head, html[dir="ltr"] .content-panel, html[dir="ltr"] .card-content, html[dir="ltr"] .catalogue-card-body, html[dir="ltr"] .modal-copy { text-align: left; }
.product-card[hidden] { display: none !important; }
.product-grid.is-filter-empty::after { content: "لا توجد منتجات في هذا التصنيف حالياً"; grid-column: 1 / -1; padding: 2rem; border: 1px dashed rgba(11,75,71,.22); border-radius: var(--radius); color: var(--teal); text-align: center; font-weight: 800; }
.product-grid { align-items: stretch; }
.product-card { min-height: 100%; border: 1px solid rgba(11,75,71,.08); }
.product-card-media { aspect-ratio: 4 / 3.65; background: var(--cream); overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.product-card:hover .product-card-media img { transform: scale(1.035); }
.product-card .card-content { padding: 1.05rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.product-card .tag { font-size: .68rem; font-weight: 900; color: var(--teal-2); letter-spacing: .04em; }
.product-card h3 { font-size: 1.02rem; line-height: 1.45; font-weight: 900; color: var(--ink); margin: 0; min-height: 2.8em; }
.product-card p { font-size: .84rem; line-height: 1.8; color: rgba(21,19,22,.72); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-highlights { padding-inline-start: 1.1rem; margin: .15rem 0 0; display: flex; flex-direction: column; gap: .22rem; color: rgba(21,19,22,.76); }
.card-highlights li { font-size: .78rem; line-height: 1.55; }
.card-link { margin-top: auto; align-self: flex-start; color: var(--teal); font-weight: 900; font-size: .82rem; padding: .35rem 0; }
html[dir="rtl"] .card-link { align-self: flex-end; }
.card-link:hover { color: var(--teal-2); }
.catalogue-card-img { aspect-ratio: 4 / 3.15; overflow: hidden; background: rgba(255,255,255,.08); }
.catalogue-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catalogue-card-body { min-height: 210px; }
.catalogue-card-title { margin: 0; line-height: 1.45; color: #fff; }
.catalogue-card-text { line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-link-light { color: #fff; opacity: .94; }
.card-link-light:hover { color: var(--green); opacity: 1; }
.content-panel > p:not(.eyebrow), .catalogue-hero p, .section-head p { line-height: 2; }
.feature-list div { justify-content: flex-start; }
html[dir="rtl"] .feature-list div { flex-direction: row-reverse; justify-content: flex-start; }
body.modal-open { overflow: hidden; }
.product-modal { position: fixed !important; inset: 50% auto auto 50% !important; transform: translate(-50%, -50%) !important; width: min(1120px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: 0 !important; padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: #fff; color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.30); }
.product-modal::backdrop { background: rgba(5,22,21,.68); backdrop-filter: blur(8px); }
.modal-grid { display: grid; grid-template-columns: minmax(330px, .9fr) minmax(0, 1.1fr); max-height: calc(100dvh - 32px); }
.modal-media { background: var(--cream); min-height: 100%; aspect-ratio: auto; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.modal-media img, .modal-media video { width: 100%; height: 100%; min-height: 520px; object-fit: cover; display: block; }
.product-modal.is-catalogue-modal .modal-media img { object-fit: contain; padding: 1rem; }
.modal-copy { padding: clamp(1.35rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: .85rem; overflow-y: auto; max-height: calc(100dvh - 32px); }
.modal-copy .tag { font-size: .76rem; font-weight: 900; color: var(--teal-2); letter-spacing: .05em; }
.modal-copy h3 { font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.35; margin: 0; font-weight: 900; color: var(--teal); }
.modal-subtitle { color: rgba(21,19,22,.72); font-weight: 800; margin: -.3rem 0 .1rem; }
.modal-copy p { font-size: .98rem; line-height: 2; color: rgba(21,19,22,.80); margin: 0; }
.modal-details { display: grid; gap: .85rem; margin-top: .35rem; }
.modal-specs { display: grid; gap: .45rem; }
.modal-spec-row { display: grid; grid-template-columns: minmax(120px,.7fr) 1fr; gap: .75rem; align-items: start; border: 1px solid rgba(11,75,71,.09); background: rgba(245,247,239,.65); border-radius: 12px; padding: .7rem .85rem; }
.modal-spec-label { color: var(--teal); font-weight: 900; opacity: 1; }
.modal-copy ul { padding-inline-start: 1.25rem; margin: 0; display: grid; gap: .45rem; }
.modal-copy li { font-size: .94rem; line-height: 1.75; color: rgba(21,19,22,.82); }
.modal-copy .btn { margin-top: .7rem; align-self: flex-start; }
html[dir="rtl"] .modal-copy .btn { align-self: flex-end; }
.modal-close { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; z-index: 10; width: 42px; height: 42px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--teal); font-size: 1.4rem; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.modal-close:hover { background: var(--green); color: var(--ink); }
@media (max-width: 820px) { .modal-grid { grid-template-columns: 1fr; overflow-y: auto; } .modal-media img, .modal-media video { min-height: 260px; max-height: 42dvh; object-fit: contain; } .modal-copy { max-height: none; } .modal-spec-row { grid-template-columns: 1fr; gap: .25rem; } .catalogue-card-body { min-height: auto; } }


/* ============================================================
   v6.8 — mobile responsive refinement
   ============================================================ */
html, body { overflow-x: hidden; }
body { -webkit-text-size-adjust: 100%; }
img { height: auto; }

@media (max-width: 991px) {
  section { padding-block: clamp(2.75rem, 7vw, 4rem); }
  .container { width: min(var(--container), calc(100% - 28px)); }
  .section-head { margin-bottom: 2rem; gap: .55rem; }
  .section-head p, .content-panel > p:not(.eyebrow), .catalogue-hero p { line-height: 1.9; }
  .split-grid { gap: 1.4rem; }
  .content-panel { order: 2; }
  .image-stack, .about-visual { order: 1; }
  .showcase-card, .catalogue-card-img, .product-card-media, .about-visual > img, .image-stack .stack-main { border-radius: 20px; }
}

@media (max-width: 768px) {
  :root { --header-h: 58px; }

  .site-header,
  .site-header--on-video {
    min-height: var(--header-h);
    padding-inline: 12px;
    gap: .5rem;
    align-items: center;
  }

  .site-header--on-video {
    background: linear-gradient(180deg, rgba(5,28,27,.82), rgba(5,28,27,.58)) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.10) !important;
  }

  .site-header .brand,
  .site-header--on-video .brand {
    max-width: 108px;
    padding: 4px 8px;
    border-radius: 10px;
    flex: 0 0 auto;
  }

  .brand img { height: 26px; }

  .header-actions {
    gap: .45rem;
    margin-inline-start: auto;
  }

  .lang-toggle {
    min-width: 42px;
    height: 36px;
    padding: 0 .55rem;
    font-size: .82rem;
    border-radius: 10px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
  }

  .site-header--on-video .menu-toggle {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.12);
  }

  .main-nav {
    inset-block-start: var(--header-h);
    inset-inline: 12px 12px;
    width: auto;
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow: auto;
    border-radius: 18px;
    padding: 1rem;
    gap: .8rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    box-shadow: 0 24px 56px rgba(0,0,0,.18);
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: .72rem .85rem;
    border-radius: 12px;
  }

  .site-header--on-video .main-nav a:hover,
  .site-header--on-video .main-nav a:focus-visible {
    background: rgba(255,255,255,.08);
  }

  .hvb {
    aspect-ratio: auto;
    min-height: 70svh;
    max-height: none;
  }

  .hvb__overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,.60) 0%, rgba(0,0,0,.20) 28%, rgba(0,0,0,.08) 55%, rgba(11,75,71,.46) 100%);
  }

  .hvb__cta {
    bottom: 14px;
    padding-inline: 14px;
  }

  .hvb__cta-btn {
    width: min(100%, 320px);
    min-width: 0;
    padding: .95em 1.3em;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
  }

  .hero-grid, .split-grid, .contact-grid, .catalogue-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-copy, .content-panel, .section-head {
    text-align: right;
  }
  html[dir="ltr"] .hero-copy, html[dir="ltr"] .content-panel, html[dir="ltr"] .section-head { text-align: left; }

  h1 { font-size: clamp(2rem, 8vw, 2.45rem); line-height: 1.28; }
  h2 { font-size: clamp(1.55rem, 6.4vw, 2rem); line-height: 1.32; }
  .lead { font-size: 1rem; }

  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .75rem;
    margin-bottom: 1.6rem;
  }

  .filter {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .7rem .75rem;
    font-size: .95rem;
  }

  .product-grid,
  .catalogue-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .product-card,
  .catalogue-card { border-radius: 24px; }
  .product-card .card-content { padding: 1rem 1rem 1.05rem; }
  .product-card h3 { min-height: 0; font-size: 1.06rem; }
  .product-card p { -webkit-line-clamp: 3; font-size: .9rem; }
  .card-highlights li { font-size: .83rem; }
  .catalogue-card-body { min-height: auto; padding: 1rem; }
  .catalogue-card-title { font-size: 1.18rem; }
  .catalogue-card-text { -webkit-line-clamp: 4; font-size: .9rem; }

  .about-visual .note-card,
  .hero-card {
    position: static;
    max-width: none;
    margin-top: .85rem;
  }

  .image-stack {
    display: grid;
    gap: .85rem;
  }
  .stack-float {
    position: static;
    width: 100%;
    max-width: none;
    bottom: auto;
    inset-inline-end: auto;
  }

  .stats-row, .trust-strip { gap: .75rem; }
  .stats-row > div, .trust-strip div { flex: 1 1 calc(50% - .75rem); }

  .footer-inner {
    gap: .9rem;
  }

  .product-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
  }

  .modal-grid {
    max-height: calc(100dvh - 16px);
  }

  .modal-media img, .modal-media video {
    min-height: 240px;
    max-height: 34dvh;
    object-fit: contain;
  }

  .modal-copy {
    padding: 1rem 1rem 1.2rem;
    gap: .7rem;
  }

  .modal-copy h3 {
    font-size: 1.35rem;
  }

  .modal-copy p,
  .modal-copy li { font-size: .92rem; line-height: 1.8; }
  .modal-copy .btn { width: 100%; justify-content: center; }
  html[dir="rtl"] .modal-copy .btn,
  html[dir="ltr"] .modal-copy .btn { align-self: stretch; }

  .whatsapp-float {
    bottom: 14px;
    inset-inline-end: 14px;
    padding: .8rem .9rem;
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(0,0,0,.16);
  }
  .whatsapp-float span { display: none; }
}

@media (max-width: 520px) {
  section { padding-block: 2.5rem; }
  .container { width: calc(100% - 20px); }
  .site-header,
  .site-header--on-video { padding-inline: 10px; }
  .site-header .brand,
  .site-header--on-video .brand { max-width: 94px; padding: 4px 7px; }
  .brand img { height: 22px; }
  .hvb { min-height: 66svh; }
  .hvb__cta-btn { max-width: 86vw; border-radius: 18px; }
  .section-head { max-width: none; }
  .filters { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; }
  .filter { min-height: 44px; font-size: .9rem; }
  .product-card-media { aspect-ratio: 4 / 3.2; }
  .catalogue-card-img { aspect-ratio: 4 / 3.45; }
  .card-link, .card-link-light { font-size: .86rem; }
  .catalogue-card-title, .product-card h3 { font-size: 1rem; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
}


/* ============================================================
   v6.9 — hero video full-dimensions mode
   ============================================================ */
.hvb--contain {
  background:
    radial-gradient(circle at 50% 50%, rgba(182,218,53,.12), transparent 42%),
    #071f1d;
}
.hvb--contain .hvb__poster {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #071f1d;
}
.hvb--contain .hvb__video {
  object-fit: contain !important;
  object-position: center center !important;
  background: #071f1d;
}
.hvb--contain .hvb__iframe {
  transform: none !important;
  background: #071f1d;
}
.hvb--cover .hvb__poster { background-size: cover; }
.hvb--cover .hvb__video { object-fit: cover !important; }
.hvb--cover .hvb__iframe { transform: scale(1.012); }

@media (max-width: 768px) {
  .hvb--contain {
    min-height: 0 !important;
    aspect-ratio: var(--hvb-aspect) !important;
    max-height: none;
  }
  .hvb--contain .hvb__cta {
    bottom: 10px;
  }
  .hvb--contain .hvb__cta-btn {
    width: auto;
    min-width: min(240px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    padding: .78em 1.35em;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .hvb--contain {
    /* Keep the real video frame instead of forcing tall mobile crop. */
    min-height: 0 !important;
  }
  .hvb--contain .site-header--on-video {
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
  }
}
