/* certISOlution Global Styles - Production Grade */
:root {
  --brand-blue: #0066A0;
  --brand-blue-dark: #004F7A;
  --brand-navy: #1A2332;
  --brand-slate: #1E293B;
  --bg-white: #F7F8FA;
  --bg-slate-50: #EEF1F5;
  --bg-slate-100: #E4E9F0;
  --border-slate: #E2E8F0;
  --text-muted: #64748B;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--brand-navy);
  background: #F3F5F8;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Brand ISO coloring */
.brand-iso {
  color: var(--brand-blue);
  font-weight: 700;
}

/* Splash Screen */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #E8EEF4 0%, #D6E4F0 50%, #E8EEF4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  text-align: center;
  position: relative;
}

.splash-logo-wrap {
  position: relative;
  display: inline-block;
}

.splash-logo {
  width: 120px;
  height: auto;
  position: relative;
  z-index: 2;
  animation: splashPulse 1s ease-in-out infinite;
}

.splash-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.4) 0%, transparent 70%);
  animation: glowRing 1.2s ease-in-out infinite;
  z-index: 1;
}

@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes glowRing {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Header — solid, compact, professional */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(26, 35, 50, 0.04);
}

.site-header.scrolled {
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.06);
}

/* Compact header inner height */
.site-header .header-inner {
  min-height: 3.25rem;
  height: 3.25rem;
}
@media (min-width: 1024px) {
  .site-header .header-inner {
    min-height: 3.5rem;
    height: 3.5rem;
  }
}

/* Logo only in header/footer — larger & crisp */
.header-logo {
  height: 48px;
  width: auto;
  max-height: 52px;
  object-fit: contain;
  display: block;
}
@media (min-width: 1024px) {
  .header-logo {
    height: 52px;
    max-height: 56px;
  }
}
.footer-logo {
  height: 48px;
  width: auto;
  max-height: 52px;
  object-fit: contain;
  display: block;
  /* Same real logo as header — no invert on light footer */
  filter: none;
  opacity: 1;
}

/* Partner logos on white — ensure visibility */
.partner-logo-tanzeel {
  filter: brightness(0.55) contrast(1.15);
  opacity: 0.95;
}
.partner-logo-tanzeel:hover {
  filter: brightness(0.45) contrast(1.2);
  opacity: 1;
}

.nav-link {
  position: relative;
  color: var(--brand-slate);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-blue);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: white;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
}

.btn-outline {
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  background: transparent;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--brand-blue);
  color: white;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: white;
  z-index: 1100;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Hero Slider — below solid header */
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(62vh, 640px);
  min-height: 300px;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
  background: #1A2332;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15,23,42,0.72) 0%, rgba(15,23,42,0.35) 55%, rgba(0,102,160,0.25) 100%);
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero-pagination {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero-dot.active {
  background: var(--brand-blue);
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-nav-btn:hover {
  background: rgba(2,132,199,0.8);
}

.hero-nav-btn.prev { left: 1rem; }
.hero-nav-btn.next { right: 1rem; }

/* Stats Counter */
.stat-card {
  background: white;
  border: 1px solid var(--border-slate);
  border-radius: 1rem;
  padding: 1.75rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.1;
}

/* Service Cards */
.service-card {
  background: white;
  border: 1px solid var(--border-slate);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 12px 30px rgba(2,132,199,0.12);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(2,132,199,0.12) 0%, rgba(0,102,204,0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

/* Logo Marquee */
.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logo-track {
  display: flex;
  gap: 3rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.logo-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo {
  height: 72px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Footer */
.site-footer {
  background: #EEF1F5;
  color: #475569;
  padding-top: 1.5rem;
  padding-bottom: 0.85rem;
  border-top: 1px solid #DDE3EA;
}
.site-footer .footer-grid {
  gap: 1.5rem 2rem;
  margin-bottom: 1.25rem;
}
.site-footer .footer-heading {
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-footer ul.space-y-2 > li,
.site-footer ul.space-y-3 > li {
  margin-top: 0.25rem !important;
}
.site-footer .text-sm {
  font-size: 0.8125rem;
  line-height: 1.45;
}

.footer-heading {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.footer-link {
  color: #64748B;
  transition: color 0.2s ease;
  font-size: 0.8125rem;
}

.footer-link:hover {
  color: var(--brand-blue);
}

.site-footer .footer-heading {
  color: #1A2332 !important;
}

.site-footer .text-slate-300,
.site-footer .text-slate-400 {
  color: #64748B !important;
}

.site-footer .text-slate-500 {
  color: #94A3B8 !important;
}

.site-footer .border-slate-700\/80,
.site-footer [class*="border-slate-700"] {
  border-color: #E2E8F0 !important;
}

.developer-credit {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.developer-credit:hover {
  color: var(--brand-blue);
}

/* Admin Floating Bar */
.admin-bar {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  background: var(--brand-navy);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  display: none;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.admin-bar.visible {
  display: flex;
}

/* Certificate Preview */
.cert-preview-wrapper {
  background: #F1F5F9;
  border-radius: 1rem;
  padding: 1.5rem;
  overflow: auto;
}

/* Form Inputs */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-slate);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(2,132,199,0.15);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--brand-navy);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
}

/* Responsive — keep 16:9 on all viewports */
@media (max-width: 768px) {
  .hero-slider {
    aspect-ratio: 16 / 9;
    max-height: min(48vh, 400px);
    min-height: 220px;
    margin-top: 0;
    padding-top: 0;
  }
  .header-logo {
    height: 42px;
    max-height: 46px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .hero-nav-btn {
    width: 40px;
    height: 40px;
  }
}

/* Print helpers for certificate */
@media print {
  body * { visibility: hidden; }
  .certificate-print-area, .certificate-print-area * { visibility: visible; }
  .certificate-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* Selection guard for branding */
.no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

/* Data grid for admin */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  border: 1px solid var(--border-slate);
  padding: 0.625rem 0.75rem;
  text-align: left;
}

.admin-table th {
  background: var(--bg-slate-100);
  font-weight: 600;
  position: sticky;
  top: 0;
}

.admin-table tr:hover {
  background: #F0F9FF;
}

.admin-table input,
.admin-table select {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid #CBD5E1;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
}

/* Blog cards */
.blog-card {
  background: white;
  border: 1px solid var(--border-slate);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  box-shadow: 0 12px 30px rgba(15,23,42,0.1);
  transform: translateY(-4px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}


/* Leadership */
.leader-card {
  background: white;
  border: 1px solid var(--border-slate);
  border-radius: 1.25rem;
  padding: 1.75rem;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.leader-card:hover {
  box-shadow: 0 12px 32px rgba(15,23,42,0.08);
  transform: translateY(-3px);
}
.leader-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid #f1f5f9;
  box-shadow: 0 4px 14px rgba(15,23,42,0.08);
}
.leader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.leader-avatar svg {
  width: 64px;
  height: 64px;
  color: #64748b;
}

/* Blog cover */
.blog-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #0284c7);
}

.leader-avatar-lg {
  width: 140px !important;
  height: 140px !important;
}
.leader-avatar-sm {
  width: 100px !important;
  height: 100px !important;
}
.leader-center {
  border: 2px solid rgba(0,102,160,0.2);
  box-shadow: 0 12px 40px rgba(0,102,160,0.12);
  transform: translateY(-8px);
}
.leader-side {
  opacity: 0.98;
}
@media (max-width: 1023px) {
  .leader-center { transform: none; }
}

/* Service modal */
.svc-modal-backdrop {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(15,23,42,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; visibility: hidden;
  transition: all 0.25s ease;
}
.svc-modal-backdrop.open { opacity: 1; visibility: visible; }
.svc-modal {
  background: #fff; border-radius: 1rem; max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 1.75rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  transform: translateY(12px); transition: transform 0.25s ease;
}
.svc-modal-backdrop.open .svc-modal { transform: translateY(0); }

/* Flag contact buttons */
.flag-btn-bh {
  background: linear-gradient(135deg, #ce1126 0%, #ce1126 40%, #fff 40%, #fff 60%, #ce1126 60%);
  color: #0f172a; border: 2px solid #ce1126;
}
.flag-btn-sa {
  background: linear-gradient(135deg, #006c35 0%, #006c35 70%, #fff 70%);
  color: #fff; border: 2px solid #006c35;
}
.contact-region-card {
  border-radius: 1rem; padding: 1.25rem; border: 1px solid #e2e8f0;
  background: #fff; transition: box-shadow 0.2s;
}
.contact-region-card:hover { box-shadow: 0 10px 30px rgba(15,23,42,0.08); }


/* ========== Theme: Light / Dark ========== */
html[data-theme="dark"] {
  --brand-navy: #E2E8F0;
  --brand-slate: #CBD5E1;
  --bg-white: #0F172A;
  --bg-slate-50: #1E293B;
  --bg-slate-100: #334155;
  --border-slate: #334155;
  --text-muted: #94A3B8;
  color-scheme: dark;
}
html[data-theme="dark"] body {
  background: #0B1220 !important;
  color: #E2E8F0 !important;
}
html[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.95) !important;
  border-bottom-color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
html[data-theme="dark"] .nav-link { color: #CBD5E1; }
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active { color: #38BDF8; }
html[data-theme="dark"] .site-footer {
  background: #0F172A !important;
  border-top-color: #334155 !important;
  color: #94A3B8;
}
html[data-theme="dark"] .footer-heading { color: #E2E8F0 !important; }
html[data-theme="dark"] .footer-strong { color: #E2E8F0 !important; }
html[data-theme="dark"] .footer-muted { color: #94A3B8 !important; }
html[data-theme="dark"] .footer-link { color: #94A3B8; }
html[data-theme="dark"] .footer-link:hover { color: #38BDF8; }
html[data-theme="dark"] .footer-bottom { border-color: #334155 !important; color: #64748B; }
html[data-theme="dark"] .mobile-drawer { background: #1E293B; color: #E2E8F0; }
html[data-theme="dark"] .form-input {
  background: #1E293B; border-color: #334155; color: #E2E8F0;
}
html[data-theme="dark"] .contact-region-card,
html[data-theme="dark"] .leader-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .blog-card {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #E2E8F0;
}
html[data-theme="dark"] .bg-white { background-color: #1E293B !important; }
html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] .bg-\[\#EEF1F5\],
html[data-theme="dark"] .bg-\[\#F3F5F8\],
html[data-theme="dark"] .bg-\[\#E8EEF4\] { background-color: #0F172A !important; }
html[data-theme="dark"] .text-brand-navy { color: #E2E8F0 !important; }
html[data-theme="dark"] .text-slate-500,
html[data-theme="dark"] .text-slate-600 { color: #94A3B8 !important; }
html[data-theme="dark"] .text-slate-700,
html[data-theme="dark"] .text-slate-800 { color: #CBD5E1 !important; }
html[data-theme="dark"] .border-slate-100,
html[data-theme="dark"] .border-slate-200 { border-color: #334155 !important; }
html[data-theme="dark"] .footer-logo { filter: brightness(0) invert(1); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid var(--border-slate, #E2E8F0);
  background: transparent;
  cursor: pointer;
  color: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.theme-toggle:hover { background: rgba(2,132,199,0.08); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mobile hero text — full readable content */
@media (max-width: 768px) {
  .hero-slider {
    aspect-ratio: auto !important;
    min-height: 420px;
    max-height: none;
  }
  .hero-overlay {
    align-items: flex-end;
    padding-bottom: 3.5rem;
  }
  .hero-content {
    max-width: 100% !important;
    padding: 1rem 1.25rem 0.5rem !important;
  }
  .hero-content h1,
  .hero-content h2 {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
  }
  .hero-content p {
    font-size: 0.875rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.75rem !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    max-height: none !important;
  }
  .hero-content .btn-primary,
  .hero-content .btn-outline {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }
  .hero-pagination { bottom: 0.75rem; }
}

.footer-muted { color: #64748B; }
.footer-strong { color: #1A2332; }
.footer-bottom { border-color: #E2E8F0; color: #94A3B8; }

/* Footer social icons */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 102, 160, 0.08);
  color: #0066A0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social-link:hover {
  background: #0066A0;
  color: #fff;
  transform: translateY(-2px);
}
html[data-theme="dark"] .footer-social-link {
  background: rgba(0, 102, 160, 0.2);
  color: #7dd3fc;
}
html[data-theme="dark"] .footer-social-link:hover {
  background: #0066A0;
  color: #fff;
}
.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ISO 9001 transition card and detail modal */
.service-card-trigger {
  cursor: pointer;
}
.service-card-trigger:focus-visible {
  outline: 3px solid rgba(0, 102, 160, 0.35);
  outline-offset: 4px;
}
.service-card-trigger:active {
  transform: translateY(-2px) scale(0.99);
}
.iso9001-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.23, 1, 0.32, 1), visibility 220ms linear;
}
.iso9001-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.iso9001-modal {
  width: min(640px, 100%);
  max-height: min(760px, 88vh);
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.24);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 220ms cubic-bezier(0.23, 1, 0.32, 1), transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}
.iso9001-modal-backdrop.open .iso9001-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.iso9001-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--brand-slate);
  background: #eef1f5;
  cursor: pointer;
  transition: background 160ms ease-out, color 160ms ease-out, transform 160ms ease-out;
}
.iso9001-modal-close:hover {
  color: #fff;
  background: var(--brand-blue);
}
.iso9001-modal-close:active {
  transform: scale(0.96);
}
.iso9001-modal-close:focus-visible {
  outline: 3px solid rgba(0, 102, 160, 0.35);
  outline-offset: 2px;
}
body.modal-open {
  overflow: hidden;
}
@media (max-width: 640px) {
  .iso9001-modal {
    padding: 1.25rem;
    max-height: 86vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .iso9001-modal-backdrop,
  .iso9001-modal,
  .iso9001-modal-close {
    transition-duration: 0.01ms;
  }
}


.hero-client-copy{max-width:700px;font-size:clamp(1rem,1.8vw,1.35rem);line-height:1.55;font-weight:400;text-shadow:0 2px 12px rgba(0,0,0,.5)}
.hero-overlay{background:linear-gradient(105deg,rgba(15,23,42,.48) 0%,rgba(15,23,42,.16) 55%,rgba(0,102,160,.08) 100%)}
