/* ================================================================
   LIFE SAVER GROUP — SHARED STYLES
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Cairo:wght@300;400;600;700&display=swap');

:root {
  --navy:     #0f2557;
  --navy-dk:  #080f22;
  --navy-md:  #0d1a3a;
  --blue:     #1a3a8f;
  --red:      #c0392b;
  --gold:     #c9a84c;
  --gold-lt:  #e8c96e;
  --off:      #f5f3ee;
  --light:    #f0ede6;
  --muted:    #6b7280;
  --text:     #1a1a2e;
  --white:    #ffffff;
  --shadow:   0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:0 16px 48px rgba(15,37,87,0.16);
  --radius:   16px;
  --tr:       all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  --font-d:   'Playfair Display', serif;
  --font-b:   'Cairo', sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--off);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8,15,34,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.nav-top-line {
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  background-size: 200%;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: 200%; } }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--gold);
  display: flex; align-items:center; justify-content:center;
  overflow: hidden;
}
.nav-logo img { width:80%; height:80%; object-fit:contain; }

.nav-brand-text { font-family: var(--font-d); font-size: 18px; color: white; line-height:1.1; }
.nav-brand-text span { color: var(--gold); font-style: italic; font-weight:400; }
.nav-brand-sub { font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing:0.15em; text-transform:uppercase; }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  transition: var(--tr);
  white-space: nowrap;
}
.nav-links a:hover    { color: var(--gold); background: rgba(201,168,76,0.08); }
.nav-links a.active   { color: var(--gold); background: rgba(201,168,76,0.12); }

/* Lang switcher */
.nav-lang {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  padding: 4px;
  border-radius: 24px;
  border: 1px solid rgba(201,168,76,0.2);
  flex-shrink: 0;
}
.lang-btn {
  padding: 5px 12px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font-b);
  display:flex; align-items:center; gap:5px;
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(201,168,76,0.35);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: var(--tr);
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  padding: 10px 16px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--tr);
}
.nav-drawer a:hover, .nav-drawer a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* ── SECTION TITLE ──────────────────────────────────────── */
.sec-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.sec-title {
  font-family: var(--font-d);
  font-size: clamp(28px,4vw,42px);
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.15;
}
.sec-title em { color: var(--gold); font-weight:400; }
.sec-divider {
  width: 52px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  border-radius: 3px;
  margin: 14px 0 0;
}
.sec-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 540px;
  margin-top: 16px;
  line-height: 1.8;
}

/* ── PREMIUM BUTTON ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-b);
  cursor: pointer;
  transition: var(--tr);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  box-shadow: 0 4px 16px rgba(15,37,87,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(15,37,87,0.4); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.45); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: white; }

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--tr);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,0.7);
  position: relative;
}

.footer-wave {
  width: 100%;
  height: 50px;
  background: var(--off);
  clip-path: ellipse(55% 100% at 50% 0%);
  margin-bottom: -1px;
}

.footer-body { padding: 60px 0 36px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 48px;
}

.footer-col-title {
  font-family: var(--font-d);
  font-size: 16px;
  color: white;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.footer-links { list-style:none; display:flex; flex-direction:column; gap:8px; }
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  transition: var(--tr);
  display:flex; align-items:center; gap:6px;
}
.footer-links a::before { content:'›'; color:var(--gold); font-size:16px; }
.footer-links a:hover { color: var(--gold); padding-left:4px; }

.footer-contact-item {
  display:flex; gap:10px; align-items:flex-start;
  font-size:13px; color:rgba(255,255,255,0.5);
  margin-bottom:10px;
}
.footer-contact-icon {
  width:28px; height:28px; flex-shrink:0;
  background:rgba(201,168,76,0.1);
  border:1px solid rgba(201,168,76,0.2);
  border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; color:var(--gold);
  margin-top:1px;
}

.footer-social { display:flex; gap:8px; margin-top:16px; }
.social-icon {
  width:34px; height:34px;
  border-radius:10px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,0.5);
  font-size:13px;
  transition:var(--tr);
  text-decoration:none;
}
.social-icon:hover {
  background:var(--gold);
  border-color:var(--gold);
  color:var(--navy);
  transform:translateY(-3px);
}

.footer-flags { display:flex; gap:8px; margin-top:14px; font-size:20px; }
.footer-flag { transition:var(--tr); cursor:default; }
.footer-flag:hover { transform:scale(1.2) translateY(-2px); }

.footer-brand-logo {
  width:54px; height:54px;
  border-radius:50%;
  background:white;
  border:2px solid rgba(201,168,76,0.4);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; margin-bottom:12px;
}
.footer-brand-logo img { width:75%; height:75%; object-fit:contain; }
.footer-brand-name {
  font-family:var(--font-d);
  font-size:20px;
  color:white;
  margin-bottom:8px;
}
.footer-brand-name span { color:var(--gold); font-style:italic; font-weight:400; }
.footer-brand-desc {
  font-size:13px;
  color:rgba(255,255,255,0.45);
  line-height:1.7;
  margin-bottom:14px;
}

.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.06);
  padding:18px 0;
  text-align:center;
  font-size:12px;
  color:rgba(255,255,255,0.3);
}

/* ── FADE IN ANIMATION ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}
.fade-up { opacity:0; }
.fade-up.visible { animation: fadeUp 0.7s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }

/* ── RTL / LTR ──────────────────────────────────────────── */
.ar-only { display:none; }
.en-only { display:inline; }
[dir="rtl"] .ar-only { display:inline; }
[dir="rtl"] .en-only { display:none; }
[dir="rtl"] .sec-divider { margin-left:auto; }
[dir="rtl"] body { font-family: var(--font-b); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
  .footer-brand-col { grid-column:1/-1; }
}

@media (max-width: 700px) {
  .nav-links { display:none; }
  .nav-hamburger { display:flex; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .footer-brand-col { grid-column:auto; }
}
