/* Kimia Al-Ghad — shared stylesheet (works for both AR/RTL and EN/LTR) */

:root {
  --color-primary: #0b2a4a;
  --color-primary-dark: #071b30;
  --color-accent: #0b6e4f;
  --color-accent-dark: #085a40;
  --color-ink: #16232a;
  --color-body: #43555c;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f8f9;
  --color-border: #e1e8ea;
  --shadow-card: 0 6px 24px rgba(11, 42, 74, 0.1);
  --radius: 14px;
  --max-width: 1180px;
  --font-ar: 'Cairo', 'Tahoma', sans-serif;
  --font-en: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--color-body);
  background: var(--color-bg);
  font-family: var(--font-ar);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body { font-family: var(--font-en); }

h1, h2, h3, h4 {
  color: var(--color-ink);
  line-height: 1.35;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--color-primary); text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-ink);
}

.brand .logo-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@keyframes logoIntro {
  0% { opacity: 0; transform: scale(.35) rotate(-20deg); }
  60% { opacity: 1; transform: scale(1.1) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.site-header .logo-mark { animation: logoIntro .85s cubic-bezier(.34, 1.56, .64, 1) both; }

/* ---------- Splash screen (homepage only) ---------- */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark));
  transition: opacity .5s ease, visibility .5s ease;
}
.splash-logo {
  display: flex;
  align-items: center;
  gap: 32px;
  direction: ltr;
  padding: 0 24px;
}

.splash-wordmark {
  height: 150px;
  width: auto;
  max-width: 46vw;
  opacity: 0;
  animation: splashWordmarkIn 1.1s cubic-bezier(.22, 1, .36, 1) .35s forwards;
}

.splash-monogram {
  height: 170px;
  width: auto;
  opacity: 0;
  animation: splashMonogramIn 1s cubic-bezier(.34, 1.56, .64, 1) .05s forwards;
}

@keyframes splashWordmarkIn {
  0% { opacity: 0; transform: translateX(-220px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes splashMonogramIn {
  0% { opacity: 0; transform: scale(.15) rotate(-45deg) translateX(200px); }
  55% { opacity: 1; transform: scale(1.25) rotate(8deg) translateX(-10px); }
  100% { opacity: 1; transform: scale(1) rotate(0deg) translateX(0); }
}

@media (max-width: 720px) {
  .splash-logo { gap: 18px; }
  .splash-wordmark { height: 86px; }
  .splash-monogram { height: 98px; }
  @keyframes splashWordmarkIn {
    0% { opacity: 0; transform: translateX(-120px); }
    100% { opacity: 1; transform: translateX(0); }
  }
  @keyframes splashMonogramIn {
    0% { opacity: 0; transform: scale(.15) rotate(-45deg) translateX(110px); }
    55% { opacity: 1; transform: scale(1.25) rotate(8deg) translateX(-8px); }
    100% { opacity: 1; transform: scale(1) rotate(0deg) translateX(0); }
  }
}

.splash-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }
body.splash-active { overflow: hidden; }

.brand .logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-ink);
  font-weight: 600;
  font-size: .95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  font-size: .85rem;
  font-weight: 700;
  padding: 7px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-ink);
}
.lang-switch:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-ink);
  position: relative;
  transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(11,110,79,.10), transparent),
    radial-gradient(50% 50% at 5% 100%, rgba(11,42,74,.10), transparent),
    var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent-dark);
  background: rgba(11,110,79,.1);
  font-weight: 700;
  font-size: .82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-visual {
  width: 100%;
  aspect-ratio: 4/3.2;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-visual::before, .hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hero-visual::before { width: 220px; height: 220px; top: -60px; inset-inline-end: -60px; }
.hero-visual::after { width: 160px; height: 160px; bottom: -40px; inset-inline-start: -40px; background: rgba(11,110,79,.25); }
.hero-visual .flask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .flask svg { width: 46%; opacity: .9; }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}
.stat-row .stat b {
  display: block;
  font-size: 1.8rem;
  color: var(--color-primary);
  font-weight: 800;
}
.stat-row .stat span { font-size: .85rem; color: var(--color-body); }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head.left { margin: 0 0 46px; text-align: start; }

.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,42,74,.12); }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(11,42,74,.08);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; }

.product-card .tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  background: rgba(11,110,79,.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.cert-card { text-align: center; }
.cert-card .icon-badge { margin-inline: auto; }

.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 22px;
  padding: 56px;
  text-align: center;
  color: #fff;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .btn-primary { background: var(--color-accent); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; color: var(--color-ink); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--color-bg-alt);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: #7c8a90; margin-top: 10px; }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 22px;
}
.alert-success { background: rgba(11,110,79,.12); color: var(--color-accent-dark); }
.alert-error { background: rgba(200,50,50,.1); color: #a83232; }

/* ---------- Contact info blocks ---------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon-badge { margin: 0; width: 44px; height: 44px; flex-shrink: 0; }
.info-list a { font-weight: 600; }
.info-list a:hover { text-decoration: underline; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/9;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: #b7c4c9;
  padding: 60px 0 26px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer .brand { color: #fff; }
.site-footer a { color: #b7c4c9; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .85rem;
}

.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }

/* ---------- Social + WhatsApp ---------- */
.social-icons { display: flex; gap: 10px; margin-top: 18px; }
.social-icons a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .2s, transform .2s;
}
.social-icons a:hover { background: var(--color-accent); transform: translateY(-3px); }
.social-icons svg { width: 18px; height: 18px; }

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  z-index: 60;
  animation: whatsappPulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 30px; height: 30px; }

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.22), 0 0 0 0 rgba(37,211,102,.45); }
  50% { box-shadow: 0 8px 24px rgba(0,0,0,.22), 0 0 0 10px rgba(37,211,102,0); }
}

@media (max-width: 720px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; inset-inline-end: 18px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: .08; }
  50% { transform: scale(1.1); opacity: .16; }
}
@keyframes pulseGlowAccent {
  0%, 100% { transform: scale(1); opacity: .25; }
  50% { transform: scale(1.12); opacity: .38; }
}

.hero-visual .flask { animation: float 4.5s ease-in-out infinite; }
.hero-visual::before { animation: pulseGlow 6s ease-in-out infinite; }
.hero-visual::after { animation: pulseGlowAccent 5s ease-in-out infinite; }

.icon-badge { transition: transform .25s ease, background .25s ease; }
.card:hover .icon-badge { transform: scale(1.08) rotate(-4deg); background: var(--color-primary); color: #fff; }
.card.reveal:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual .flask,
  .hero-visual::before,
  .hero-visual::after {
    animation: none;
  }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* ---------- Breadcrumb / page hero ---------- */
.page-hero {
  padding: 56px 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; inset-inline-start: 0; top: 76px; width: 100%; background: #fff; border-top: 1px solid var(--color-border); flex-direction: column; align-items: stretch; padding: 18px 24px; gap: 18px; transform: translateY(-140%); transition: transform .2s; box-shadow: var(--shadow-card); }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 14px; }
  .nav-toggle { display: flex; }
  .header-actions .btn-outline { display: none; }
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 36px 22px; }
  .form-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
