/* Al Waha Pharma — custom styles (Marcyrl precision × brand accents) */

:root {
  --brand-cyan: #00a8e8;
  --brand-cyan-dark: #0088c2;
  --brand-red: #e30613;
  --brand-red-dark: #b80510;
  --ink: #0f1720;
  --ink-muted: #4a5563;
  --surface: #ffffff;
  --surface-soft: #f4f7f9;
  --surface-mist: #e8eef2;
  --line: #d5dee5;
  --font-ar: "Kufam", sans-serif;
  --font-en: "Kufam", "Instrument Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ar);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

html[lang="en"] .font-display,
html[dir="ltr"] .font-display {
  font-family: var(--font-en);
}

.font-display {
  font-family: var(--font-ar);
  letter-spacing: -0.02em;
}

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

/* Brand utilities */
.text-brand-cyan { color: var(--brand-cyan); }
.text-brand-red { color: var(--brand-red); }
.bg-brand-cyan { background-color: var(--brand-cyan); }
.bg-brand-red { background-color: var(--brand-red); }
.bg-surface-soft { background-color: var(--surface-soft); }
.bg-surface-mist { background-color: var(--surface-mist); }
.border-line { border-color: var(--line); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--brand-cyan);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover {
  background: var(--brand-cyan-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1.5px solid var(--ink);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--brand-red);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-accent:hover {
  background: var(--brand-red-dark);
  transform: translateY(-1px);
}

/* Hero + slider */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0a1620;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.9s ease, transform 6.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(160deg, rgba(10, 22, 32, 0.82) 0%, rgba(10, 22, 32, 0.52) 48%, rgba(0, 168, 232, 0.22) 100%),
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(0, 168, 232, 0.16), transparent),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(227, 6, 19, 0.1), transparent);
  pointer-events: none;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-nav:hover {
  background: rgba(0, 168, 232, 0.25);
  border-color: rgba(0, 168, 232, 0.55);
  transform: translateY(-1px);
}

.hero-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(-40%, -50%) rotate(45deg);
}

html[dir="rtl"] .hero-nav--prev::before,
html[dir="ltr"] .hero-nav--next::before {
  transform: translate(-60%, -50%) rotate(45deg);
}

html[dir="rtl"] .hero-nav--next::before,
html[dir="ltr"] .hero-nav--prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--brand-cyan);
}

.hero-progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-cyan), #5fd0ff);
}

.hero-progress span.is-running {
  animation: heroProgress 6s linear forwards;
}

@keyframes heroProgress {
  from { width: 0; }
  to { width: 100%; }
}

.hero-title.is-fading,
.hero-lead.is-fading {
  opacity: 0;
  transform: translateY(10px);
}

.hero-title,
.hero-lead {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: 5rem;
  padding-top: 8rem;
}

.hero-brand {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  max-width: 36rem;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.precision-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}

.precision-tags span {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-en);
}

.precision-tags span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  margin-inline-end: 0.5rem;
  vertical-align: middle;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-content .reveal-hero {
  animation: heroFade 0.9s ease forwards;
}

.hero-content .reveal-hero-delay {
  animation: heroFade 0.9s ease 0.15s forwards;
  opacity: 0;
}

.hero-content .reveal-hero-delay-2 {
  animation: heroFade 0.9s ease 0.3s forwards;
  opacity: 0;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header — light official / institutional */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.header-solid {
  background: transparent;
  box-shadow: 0 1px 0 rgba(15, 23, 32, 0.08), 0 10px 28px rgba(15, 23, 32, 0.06);
}

.gov-topbar {
  background: rgba(248, 250, 252, 0.45);
  border-bottom: 1px solid rgba(232, 238, 242, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gov-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
  font-size: 0.75rem;
}

.gov-topbar-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  overflow: hidden;
}

.gov-top-link {
  color: #4a5563;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: color 0.2s ease;
}

.gov-top-link:hover {
  color: var(--brand-cyan);
}

.gov-top-sep {
  width: 1px;
  height: 12px;
  background: #c5d0dc;
  flex-shrink: 0;
}

.gov-mainbar {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(232, 238, 242, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.is-scrolled .gov-mainbar,
.site-header.header-solid .gov-mainbar {
  background: rgba(255, 255, 255, 0.45);
}

.gov-mainbar::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-cyan), #e8eef2 55%, var(--brand-red));
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 72px;
  padding-block: 0.55rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.logo-img.logo-primary {
  height: 48px;
}

.logo-text {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.logo-text strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text small {
  color: var(--ink-muted);
  font-size: 0.68rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.logo-primary {
  background: transparent;
}

@media (min-width: 768px) {
  .logo-text {
    display: flex;
  }
}

.nav-desktop {
  display: none;
  align-items: stretch;
  gap: 0;
  flex: 1;
  justify-content: center;
  align-self: stretch;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.95rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(0, 168, 232, 0.06);
}

.nav-link.is-active {
  color: var(--brand-cyan-dark);
  border-bottom-color: var(--brand-cyan);
  background: rgba(0, 168, 232, 0.08);
}

.nav-link::after {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.25rem 0.7rem;
  border: 1px solid #c5d0dc;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lang-toggle:hover {
  background: rgba(0, 168, 232, 0.08);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan-dark);
}

.lang-toggle--block {
  width: 100%;
  min-height: 44px;
}

.gov-contact-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 1rem;
  background: var(--brand-cyan);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.2s ease;
}

.gov-contact-btn:hover {
  background: var(--brand-cyan-dark);
  color: #fff;
}

.gov-contact-btn--block {
  display: flex;
  width: 100%;
  margin-top: 0.65rem;
}

@media (min-width: 768px) {
  .gov-contact-btn {
    display: inline-flex;
  }
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid #c5d0dc;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 1024px) {
  .menu-btn {
    display: none;
  }
}

.menu-btn:hover {
  background: rgba(0, 168, 232, 0.08);
  border-color: var(--brand-cyan);
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile official panel — light */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #ffffff;
  transform: translateX(100%);
  transition: transform 0.35s ease, visibility 0.35s;
  pointer-events: none;
  visibility: hidden;
}

html[dir="rtl"] .mobile-nav {
  transform: translateX(-100%);
}

.mobile-nav.is-open {
  transform: translateX(0) !important;
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e8eef2;
  background: #f8fafc;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.mobile-close {
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border: 1px solid #c5d0dc;
  background: #fff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.mobile-link {
  color: #334155;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border: 0;
  border-bottom: 1px solid #eef2f5;
  border-inline-start: 3px solid transparent;
  border-radius: 0;
  opacity: 0;
  transform: translateX(12px);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
  transition-delay: 0ms;
}

html[dir="rtl"] .mobile-link {
  transform: translateX(-12px);
}

.mobile-nav.is-open .mobile-link {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(var(--i, 0) * 45ms);
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--brand-cyan-dark);
  background: rgba(0, 168, 232, 0.08);
  border-inline-start-color: var(--brand-cyan);
}

.mobile-nav-foot {
  margin-top: auto;
  padding: 1.25rem;
  border-top: 1px solid #e8eef2;
  background: #f8fafc;
}

/* Section helpers */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 40rem;
}

.bilingual-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  font-family: var(--font-en);
  margin-top: 0.25rem;
  font-weight: 500;
}

.card-link {
  display: block;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
}

.card-link:hover {
  border-color: var(--brand-cyan);
  box-shadow: 0 12px 40px rgba(15, 23, 32, 0.06);
  transform: translateY(-3px);
}

.card-link h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.card-link p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.step-num {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--brand-cyan);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Contact strip */
.contact-strip {
  background: var(--ink);
  color: #fff;
}

.contact-strip a {
  color: #fff;
  transition: color 0.2s;
}

.contact-strip a:hover {
  color: var(--brand-cyan);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  text-align: start;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-btn svg {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.is-open .faq-panel {
  max-height: 240px;
  padding-bottom: 1.25rem;
}

.faq-panel p {
  color: var(--ink-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 10.5rem 0 4rem;
  background:
    linear-gradient(160deg, #0a1620 0%, #123040 60%, #0d2838 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(0, 168, 232, 0.2), transparent),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  pointer-events: none;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

/* Form */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-cyan);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-success {
  display: block;
  background: rgba(0, 168, 232, 0.1);
  border: 1px solid var(--brand-cyan);
  color: var(--ink);
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  border-width: 0;
  margin-bottom: 0;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease, border-width 0.35s ease;
}

.form-success.is-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 120px;
  padding: 1rem 1.25rem;
  border-width: 1px;
  margin-bottom: 1.25rem;
}

/* Values grid */
.value-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.value-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--brand-cyan);
}

.site-footer h4 {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.container-site {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container-site {
    padding-inline: 2rem;
  }
}

/* Media frames */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--surface-mist);
  min-height: 280px;
}

.media-frame picture,
.media-strip picture,
.about-mosaic picture,
.product-card-media picture,
.agent-card picture {
  display: contents;
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.media-frame--tall {
  min-height: 420px;
}

.media-frame--tall img {
  min-height: 420px;
}

.media-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(10, 22, 32, 0.75));
  color: #fff;
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .media-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.media-strip figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-mist);
}

.media-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.media-strip figure:hover img {
  transform: scale(1.04);
}

.cta-media {
  background-size: cover;
  background-position: center;
  position: relative;
}

.cta-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 22, 32, 0.88), rgba(18, 48, 64, 0.82));
}

.cta-media > * {
  position: relative;
  z-index: 1;
}

.page-hero--photo {
  background-size: cover;
  background-position: center;
}

.page-hero--photo::before {
  background-image:
    linear-gradient(160deg, rgba(10, 22, 32, 0.82), rgba(10, 22, 32, 0.55)),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Agents / partners logos */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .agents-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.agent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 148px;
  padding: 1.5rem 1.25rem;
  background: #0a1620;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #fff;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.agent-card:hover {
  border-color: var(--brand-cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(15, 23, 32, 0.18);
}

.agent-card--light {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.agent-card img {
  max-height: 64px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.agent-card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.agent-card--light span {
  color: var(--ink-muted);
}

.agent-card:hover span,
.agent-card--light:hover span {
  color: var(--brand-cyan);
}

/* Product cards */
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
  height: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  border-color: var(--brand-cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(15, 23, 32, 0.06);
}

.product-card-media {
  aspect-ratio: 1;
  background: var(--surface-soft);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-brand {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  font-family: var(--font-en);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.product-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.product-card-body p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
}

.product-card-cta {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-cyan);
}

/* Knowledge cards */
.knowledge-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s;
  overflow: hidden;
  height: 100%;
}

.knowledge-card:hover {
  border-color: var(--brand-cyan);
  transform: translateY(-3px);
}

.knowledge-card-img {
  height: 180px;
  background:
    linear-gradient(135deg, #123040, #0a1620);
  background-size: cover;
  background-position: center;
  position: relative;
}

.knowledge-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 22, 32, 0.35));
}

.knowledge-card-body {
  padding: 1.5rem;
}

.knowledge-meta {
  font-size: 0.75rem;
  color: var(--brand-cyan);
  font-family: var(--font-en);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 1rem;
  background: var(--brand-cyan);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Mobile-first responsive polish ——— */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.section {
  padding: 3.25rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.hero-content {
  padding-top: 8.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding-top: 10rem;
    padding-bottom: 5rem;
  }
}

.hero-brand {
  font-size: clamp(2rem, 9vw, 4.5rem);
}

.hero-title {
  font-size: clamp(1.15rem, 4.2vw, 1.85rem);
}

.hero-lead {
  font-size: 0.98rem;
}

.hero-content .flex.flex-wrap {
  width: 100%;
}

@media (max-width: 639px) {
  .hero-content .btn-primary,
  .hero-content .btn-secondary,
  .hero-content .btn-outline {
    width: 100%;
  }

  .cta-media .btn-primary,
  .cta-media .btn-secondary {
    width: 100%;
    max-width: 20rem;
  }

  .agents-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .agent-card {
    min-height: 120px;
    padding: 1rem 0.75rem;
  }

  .agent-card img {
    max-height: 44px;
  }

  .media-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .page-hero {
    padding: 8.5rem 0 2.75rem;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    min-height: 48px;
    font-size: 16px; /* prevent iOS zoom */
  }

  .form-field textarea {
    min-height: 140px;
  }

  .contact-strip {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .container-site {
    padding-inline: 1rem;
  }
}

@media (max-width: 1023px) {
  .lg\:col-span-4 .media-frame.sticky {
    position: static;
  }
}

.mobile-link {
  min-height: 52px;
  display: flex;
  align-items: center;
}

@media (max-width: 639px) {
  .gov-topbar-meta .gov-top-link:last-of-type {
    display: none;
  }

  .gov-top-sep {
    display: none;
  }

  .nav-shell {
    min-height: 64px;
  }
}

/* ——— About page (modern layout) ——— */
.about-hero {
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4.5rem;
}

.about-hero-inner {
  max-width: 44rem;
}

.about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-family: var(--font-en);
}

.about-hero-title {
  font-size: clamp(2.1rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}

.about-hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.75rem;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.about-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-cyan);
  margin-bottom: 0.75rem;
}

.about-who-copy {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-who-copy p {
  color: var(--ink-muted);
  line-height: 1.8;
  font-size: 1rem;
}

.about-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
  min-height: 420px;
}

.about-mosaic figure {
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--surface-mist);
}

.about-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.about-mosaic figure:hover img {
  transform: scale(1.04);
}

.about-mosaic-main {
  grid-row: 1 / span 2;
  min-height: 420px;
}

.about-mosaic-side {
  min-height: 200px;
}

.about-pillars {
  background:
    linear-gradient(180deg, var(--surface-soft), #fff);
}

.about-pillars-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .about-pillars-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.about-pillar {
  position: relative;
  height: 100%;
  padding: 1.75rem 1.5rem 1.75rem;
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(15, 23, 32, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.about-pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 168, 232, 0.35);
  box-shadow: 0 16px 48px rgba(15, 23, 32, 0.08);
}

.about-pillar-num {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-cyan);
}

.about-pillar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.about-pillar p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-muted);
}

.about-vm {
  background: #0a1620;
  padding-block: 4rem;
}

.about-vm-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 2rem 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-vm-card--vision {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(0, 168, 232, 0.28), transparent 55%),
    rgba(255, 255, 255, 0.04);
}

.about-vm-card--mission {
  background:
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(227, 6, 19, 0.2), transparent 55%),
    rgba(255, 255, 255, 0.04);
}

.about-vm-tag {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.85rem;
}

.about-vm-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.about-vm-text {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  font-size: 1rem;
}

.about-values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .about-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .about-values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.about-value {
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, opacity 0.55s ease;
  transition-delay: calc(var(--i, 0) * 60ms);
}

.about-value.reveal {
  transition-delay: calc(var(--i, 0) * 60ms);
}

.about-value:hover {
  border-color: rgba(0, 168, 232, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(15, 23, 32, 0.06);
}

.about-value-index {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-cyan);
}

.about-value h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.about-value p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

@media (max-width: 767px) {
  .about-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .about-mosaic-main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 240px;
  }

  .about-mosaic-side {
    min-height: 140px;
  }

  .about-hero-actions .btn-primary,
  .about-hero-actions .btn-secondary {
    width: 100%;
  }
}

/* Page hero entrances */
.page-hero .container-site > *:nth-child(1) {
  animation: heroFade 0.8s ease forwards;
}

.page-hero .container-site > *:nth-child(2) {
  opacity: 0;
  animation: heroFade 0.8s ease 0.12s forwards;
}

.page-hero .container-site > *:nth-child(3),
.page-hero .container-site > *:nth-child(4) {
  opacity: 0;
  animation: heroFade 0.8s ease 0.24s forwards;
}

.about-hero-inner > *:nth-child(1) {
  animation: heroFade 0.8s ease forwards;
}

.about-hero-inner > *:nth-child(2) {
  opacity: 0;
  animation: heroFade 0.8s ease 0.12s forwards;
}

.about-hero-inner > *:nth-child(3),
.about-hero-inner > *:nth-child(4) {
  opacity: 0;
  animation: heroFade 0.8s ease 0.24s forwards;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-content .reveal-hero,
  .hero-content .reveal-hero-delay,
  .hero-content .reveal-hero-delay-2,
  .page-hero .container-site > *,
  .about-hero-inner > * {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-slide {
    transition: opacity 0.2s ease;
    transform: none;
  }

  .hero-slide.is-active {
    transform: none;
  }

  .hero-progress span.is-running {
    animation: none;
    width: 100%;
  }

  .mobile-link,
  .mobile-nav.is-open .mobile-link {
    opacity: 1;
    transform: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    transition-delay: 0ms;
  }

  .form-success,
  .form-success.is-visible {
    transition: none;
  }

  .about-value,
  .about-value.reveal {
    transition-delay: 0ms;
  }
}
