/* Accurate Lab — Premium Medical Design */
:root {
  --red: #E30613;
  --red-dark: #B0000A;
  --blue: #004B87;
  --blue-light: #0A6EBD;
  --blue-soft: #E8F1F8;
  --gray-50: #F7F9FC;
  --gray-100: #EEF2F7;
  --gray-200: #DCE3EC;
  --gray-500: #6B7C8F;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .06);
  --shadow-hover: 0 18px 40px rgba(0, 75, 135, .10);
  --container: 1180px;
  --header-h: 78px;
  --font: 'Cairo', 'Tajawal', system-ui, sans-serif;
  --transition: .28s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5 { color: var(--blue); font-weight: 800; line-height: 1.35; margin: 0 0 .6rem; }
p { margin: 0 0 1rem; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 12px; font-weight: 700; font-family: inherit;
  border: 2px solid transparent; cursor: pointer; transition: all var(--transition);
  font-size: .95rem; line-height: 1.2; text-decoration: none !important;
}
.btn-primary { background: var(--red); color: #fff !important; box-shadow: 0 8px 20px rgba(227,6,19,.22); }
.btn-primary:hover { background: var(--red-dark); color: #fff !important; transform: translateY(-2px); }
.btn-secondary { background: var(--blue); color: #fff !important; }
.btn-secondary:hover { background: var(--blue-light); color: #fff !important; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--blue); color: var(--blue) !important; }
.btn-outline:hover { background: var(--blue); color: #fff !important; }
.btn-outline-light { border-color: #fff; color: #fff !important; }
.btn-outline-light:hover { background: #fff; color: var(--blue) !important; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220,227,236,.7);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.logo img { height: 52px; width: auto; }
.nav-desktop { display: none; align-items: center; gap: .15rem; }
.nav-desktop a {
  color: var(--gray-700); font-weight: 600; font-size: .86rem;
  padding: .45rem .55rem; border-radius: 8px; white-space: nowrap;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--red); background: rgba(227,6,19,.06); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-actions .btn { padding: .55rem 1rem; font-size: .82rem; }
.menu-toggle {
  display: inline-flex; width: 44px; height: 44px; border: 0; background: var(--gray-50);
  border-radius: 10px; align-items: center; justify-content: center; color: var(--blue); font-size: 1.4rem;
}
.mobile-nav {
  display: none; border-top: 1px solid var(--gray-100); padding: 1rem 0 1.2rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: .7rem 0; color: var(--gray-700); font-weight: 600;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav .mobile-ctas { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }

@media (min-width: 1100px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(227,6,19,.08), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(0,75,135,.10), transparent 42%),
    linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
}
.hero-shapes::before, .hero-shapes::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-shapes::before {
  width: 420px; height: 420px; top: -120px; left: -80px;
  background: radial-gradient(circle, rgba(227,6,19,.09), transparent 70%);
}
.hero-shapes::after {
  width: 480px; height: 480px; bottom: -160px; right: -100px;
  background: radial-gradient(circle, rgba(10,110,189,.12), transparent 70%);
}
.hero-grid {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 992px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--blue-soft); color: var(--blue); font-weight: 700;
  padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.85rem); margin-bottom: 1rem; }
.hero-lead { font-size: 1.08rem; color: var(--gray-500); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-visual {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-hover); background: #fff;
}
.hero-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-float {
  position: absolute; bottom: 18px; right: 18px; left: 18px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-radius: 14px; padding: .9rem 1rem; display: flex; gap: 1rem; align-items: center;
  box-shadow: var(--shadow);
}
.hero-float strong { display: block; color: var(--blue); font-size: .95rem; }
.hero-float span { color: var(--gray-500); font-size: .8rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--gray-50); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.8rem; }
.section-head .eyebrow {
  display: inline-block; color: var(--red); font-weight: 700; font-size: .9rem; margin-bottom: .5rem;
}
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
.section-head p { color: var(--gray-500); margin: 0; }

/* Cards */
.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-size: 1.35rem; margin-bottom: 1rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.card .en { color: var(--gray-500); font-size: .85rem; margin-bottom: .7rem; display: block; }
.card p { color: var(--gray-500); font-size: .92rem; margin-bottom: 1rem; }
.marketing-card p { margin-bottom: .45rem; }
.marketing-card p i { color: var(--blue); margin-left: .35rem; }

/* Process / Workflow */
.process {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  counter-reset: step;
}
.process-step {
  position: relative; background: #fff; border-radius: var(--radius); padding: 1.3rem 1rem;
  text-align: center; border: 1px solid var(--gray-100); box-shadow: var(--shadow);
}
.process-step i { font-size: 1.5rem; color: var(--blue); margin-bottom: .5rem; display: block; }
.process-step h4 { font-size: .95rem; margin-bottom: .35rem; }
.process-step p { font-size: .8rem; color: var(--gray-500); margin: 0; }
.process-step .num {
  position: absolute; top: -10px; right: -8px; width: 28px; height: 28px;
  background: var(--red); color: #fff; border-radius: 50%; font-size: .75rem; font-weight: 800;
  display: grid; place-items: center;
}

/* Journey dashboard mock */
.journey {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.journey-item {
  background: linear-gradient(180deg, #fff, var(--gray-50));
  border: 1px solid var(--gray-100); border-radius: 14px; padding: 1.2rem;
  position: relative;
}
.journey-item .step-no { color: var(--red); font-weight: 800; font-size: .85rem; }
.journey-item h4 { font-size: .98rem; margin: .35rem 0; }

/* Search box */
.search-panel {
  background: #fff; border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow);
  border: 1px solid var(--gray-100); max-width: 820px; margin: 0 auto;
}
.search-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.search-row input, .search-row select, .form-control {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--gray-200); border-radius: 12px;
  font-family: inherit; font-size: .95rem; background: #fff; color: var(--gray-700);
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.search-row input:focus, .form-control:focus {
  border-color: var(--blue-light); box-shadow: 0 0 0 4px rgba(10,110,189,.12);
}
.search-row input { flex: 1; min-width: 200px; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 700; color: var(--blue); margin-bottom: .4rem; font-size: .9rem; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.5rem; }
.filter-btn {
  border: 1px solid var(--gray-200); background: #fff; color: var(--gray-700);
  padding: .45rem 1rem; border-radius: 999px; font-family: inherit; font-weight: 600; cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.gallery-grid {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery-item {
  border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer;
  position: relative; box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* Partners slider */
.logo-track {
  display: flex; gap: 1.5rem; overflow-x: auto; padding: .5rem 0 1rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.logo-track::-webkit-scrollbar { height: 6px; }
.logo-track::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 10px; }
.partner-logo {
  scroll-snap-align: start; min-width: 160px; height: 90px; background: #fff;
  border: 1px solid var(--gray-100); border-radius: 14px; display: grid; place-items: center;
  padding: 1rem; box-shadow: var(--shadow);
}
.partner-logo img { max-height: 50px; width: auto; filter: grayscale(.2); opacity: .9; }

/* Testimonials */
.testimonial {
  background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--gray-100);
  box-shadow: var(--shadow); height: 100%;
}
.testimonial .quote { color: var(--red); font-size: 1.5rem; line-height: 1; }
.testimonial p { color: var(--gray-700); font-size: .95rem; }
.testimonial .meta { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.testimonial .meta strong { display: block; color: var(--blue); }
.testimonial .meta span { color: var(--gray-500); font-size: .85rem; }

/* Coverage */
.coverage-grid {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.coverage-card {
  background: #fff; border-radius: 14px; padding: 1.1rem; border: 1px solid var(--gray-100);
}
.coverage-card h4 { font-size: 1rem; margin-bottom: .6rem; }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.badge {
  font-size: .75rem; font-weight: 700; padding: .25rem .55rem; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue);
}
.badge.red { background: rgba(227,6,19,.1); color: var(--red); }
.badge.green { background: #e8f8ef; color: #0a7a3e; }

/* Blog */
.blog-card { overflow: hidden; padding: 0; }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card .body { padding: 1.2rem; }
.blog-card .date { color: var(--gray-500); font-size: .8rem; }

/* FAQ */
.faq-item {
  background: #fff; border: 1px solid var(--gray-100); border-radius: 14px; margin-bottom: .8rem;
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: right; background: transparent; border: 0; padding: 1.1rem 1.2rem;
  font-family: inherit; font-weight: 700; color: var(--blue); cursor: pointer; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-a { display: none; padding: 0 1.2rem 1.1rem; color: var(--gray-500); }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { color: var(--red); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, #0A6EBD 55%, #8B0010 140%);
  color: #fff; border-radius: 24px; padding: 2.5rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: .9; max-width: 560px; margin: 0 auto 1.4rem; }

/* Page hero small */
.page-hero {
  padding: 3rem 0 2.2rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(227,6,19,.08), transparent 35%),
    linear-gradient(180deg, var(--gray-50), #fff);
  border-bottom: 1px solid var(--gray-100);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--gray-500); margin-bottom: .8rem; }
.breadcrumb a { color: var(--blue); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--gray-100); background: #fff; }
table.data { width: 100%; border-collapse: collapse; min-width: 700px; }
table.data th, table.data td { padding: .9rem 1rem; text-align: right; border-bottom: 1px solid var(--gray-100); }
table.data th { background: var(--gray-50); color: var(--blue); font-weight: 700; font-size: .9rem; }
table.data tr:hover td { background: rgba(10,110,189,.03); }

/* Footer */
.site-footer {
  background: #0B1F33; color: #C9D4E0; padding: 3.5rem 0 1.5rem; margin-top: 2rem;
}
.footer-grid {
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; }
.site-footer a { color: #C9D4E0; display: block; padding: .25rem 0; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 48px; margin-bottom: .8rem; filter: brightness(0) invert(1); opacity: .95; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem;
}
.socials { display: flex; gap: .6rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #fff !important; padding: 0;
}
.socials a:hover { background: var(--red); }

/* Floating mobile buttons */
.float-actions {
  position: fixed; bottom: 20px; left: 16px; z-index: 999; display: flex; flex-direction: column; gap: .6rem;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: #fff !important; box-shadow: 0 10px 24px rgba(0,0,0,.18); font-size: 1.35rem;
}
.float-wa { background: #25D366; }
.float-call { background: var(--blue); }
@media (min-width: 992px) {
  .float-actions { bottom: 28px; left: 24px; }
}

/* Alerts */
.alert { padding: .9rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 600; }
.alert-success { background: #e8f8ef; color: #0a7a3e; }
.alert-danger { background: #fdecec; color: #b0000a; }
.alert-info { background: var(--blue-soft); color: var(--blue); }

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

/* Devices slider */
.devices-row {
  display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.device-card img {
  width: 100%; height: 160px; object-fit: cover; border-radius: 12px; margin-bottom: 1rem; background: var(--gray-50);
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--gray-500); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(11,31,51,.88); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(960px, 100%); max-height: 85vh; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 18px; left: 18px; background: #fff; border: 0; width: 42px; height: 42px;
  border-radius: 50%; font-size: 1.3rem; cursor: pointer; color: var(--blue);
}

/* Portal / Admin shared bits used on public login */
.auth-wrap {
  min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 2rem 1rem;
  background: linear-gradient(180deg, var(--gray-50), #fff);
}
.auth-card {
  width: min(100%, 440px); background: #fff; border-radius: 20px; padding: 2rem;
  box-shadow: var(--shadow-hover); border: 1px solid var(--gray-100);
}
.auth-card h1 { font-size: 1.45rem; text-align: center; }
.auth-card .logo-center { display: flex; justify-content: center; margin-bottom: 1rem; }
.auth-card .logo-center img { height: 56px; }

/* Leadership / Chairman */
.leadership-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(227,6,19,.06), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(0,75,135,.08), transparent 42%),
    linear-gradient(180deg, #fff, var(--gray-50));
}
.chairman-card {
  max-width: 760px; margin: 0 auto 2rem; border-radius: 24px; overflow: hidden;
  background: linear-gradient(125deg, var(--blue) 0%, #0A6EBD 55%, #7A0010 160%);
  color: #fff; box-shadow: 0 20px 50px rgba(0,75,135,.18); position: relative;
}
.chairman-badge {
  display: inline-block; margin: 1.2rem 1.4rem 0; background: rgba(255,255,255,.16);
  padding: .35rem 1rem; border-radius: 999px; font-weight: 700; font-size: .85rem;
  backdrop-filter: blur(6px);
}
.chairman-body {
  display: flex; gap: 1.2rem; align-items: center; padding: 1.2rem 1.6rem 1.6rem; flex-wrap: wrap;
}
.chairman-avatar {
  width: 92px; height: 92px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.28);
  display: grid; place-items: center; font-size: 2.2rem; flex-shrink: 0;
}
.chairman-info h3 { color: #fff; font-size: clamp(1.35rem, 3vw, 1.85rem); margin: 0 0 .35rem; }
.chairman-role { color: rgba(255,255,255,.85); margin: 0 0 .7rem; font-weight: 600; }
.chairman-phone {
  display: inline-flex; align-items: center; gap: .45rem; color: #fff !important;
  font-weight: 700; font-size: 1.05rem; margin-bottom: .9rem;
}
.chairman-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.chairman-actions .btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff !important; }
.chairman-actions .btn-outline-light:hover { background: #fff; color: var(--blue) !important; }

.management-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.mgmt-card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: 18px;
  padding: 1.15rem 1.2rem; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--red);
}
.mgmt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.mgmt-top { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: .85rem; }
.mgmt-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft);
  color: var(--blue); display: grid; place-items: center; flex-shrink: 0; font-size: 1.2rem;
}
.mgmt-card h4 { font-size: 1.02rem; margin: 0 0 .25rem; color: var(--blue); }
.mgmt-card p { margin: 0; color: var(--gray-500); font-size: .86rem; font-weight: 600; line-height: 1.45; }
.mgmt-phone {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700;
  color: var(--blue); margin-bottom: .7rem; font-size: .95rem;
}
.mgmt-actions { display: flex; gap: .7rem; }
.mgmt-actions a {
  font-size: .82rem; font-weight: 700; color: var(--red);
  padding: .3rem .7rem; border-radius: 8px; background: rgba(227,6,19,.07);
}
.mgmt-actions a:hover { background: var(--red); color: #fff; }

/* Lab video tour */
.lab-video-wrap {
  max-width: 920px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-hover); background: #0B1F33;
}
.lab-video {
  display: block; width: 100%; aspect-ratio: 16/9; background: #000; max-height: 70vh;
}
.lab-video-embed { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.lab-video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

