/* Custom styles layered on top of Tailwind utilities */
:root {
  color-scheme: light;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: #f4f6fa;
  color: #0f3664;
}

body[data-language='ar'] {
  font-family: 'Tajawal', 'Inter', 'Segoe UI', sans-serif;
}

[data-lang='ar'] {
  direction: rtl;
  text-align: right;
}

[data-lang='en'] {
  direction: ltr;
}

body[data-language='en'] [data-lang='ar'],
body[data-language='ar'] [data-lang='en'] {
  display: none;
}

.focus-ring:focus-visible {
  outline: 3px solid rgba(11, 59, 96, 0.65);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.55rem;
  min-height: 2.875rem;
  border-radius: 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.btn-primary {
  background-color: #0b3b60;
  color: #ffffff;
  border: 1px solid #082f4c;
  box-shadow: 0 14px 30px -18px rgba(8, 47, 76, 0.55);
}

.btn-primary:hover {
  background-color: #082f4c;
}

.btn-primary:active {
  box-shadow: inset 0 3px 6px rgba(8, 47, 76, 0.25);
}

.btn-secondary {
  background-color: #ffffff;
  color: #0b3b60;
  border: 1.5px solid #0b3b60;
}

.btn-secondary:hover {
  background-color: rgba(11, 59, 96, 0.1);
}

.btn-secondary:active {
  background-color: rgba(11, 59, 96, 0.2);
}

.btn:focus-visible {
  outline: 3px solid rgba(11, 59, 96, 0.6);
  outline-offset: 3px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(11, 59, 96, 0.16);
  color: #17457f;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.logo-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.85rem;
  padding: 1.4rem;
  background: #ffffff;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 120px;
}

.logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px -22px rgba(17, 23, 37, 0.35);
}

.project-card {
  border-radius: 1rem;
  border: 1px solid rgba(17, 23, 37, 0.08);
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 48px -30px rgba(17, 23, 37, 0.32);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.stat-card,
.testimonial-card,
.contact-widget {
  border: 1px solid rgba(17, 23, 37, 0.08);
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.6rem;
  box-shadow: 0 22px 60px -45px rgba(17, 23, 37, 0.38);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 1.5rem;
  border: 1px solid rgba(17, 23, 37, 0.12);
  backdrop-filter: blur(14px);
}

.sticky-mobile-bar {
  box-shadow: 0 -8px 28px -18px rgba(17, 23, 37, 0.25);
  background: rgba(255, 255, 255, 0.96);
}

.nav-link {
  position: relative;
  padding-bottom: 0.5rem;
  color: #17457f;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #0b3b60;
  transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #0f3664;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0.7rem;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 59, 96, 0.9), rgba(11, 59, 96, 0.15));
}

.timeline-step {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1.5rem;
}

.timeline-step::before {
  content: attr(data-step);
  position: absolute;
  top: 0;
  left: -0.25rem;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: #0b3b60;
  color: #0f3664;
  font-weight: 600;
  font-size: 0.85rem;
}

.project-modal[aria-hidden='true'] {
  display: none;
}

.project-modal[aria-hidden='false'] {
  display: grid;
  place-items: center;
}

.project-modal::backdrop {
  background: rgba(18, 20, 24, 0.78);
}

.site-footer {
  border-top: 1px solid rgba(17, 23, 37, 0.08);
  background: #ffffff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-shadow {
  box-shadow: 0 12px 32px -24px rgba(17, 23, 37, 0.32);
}

[data-component='contact-strip'] {
  background: transparent;
  color: inherit;
}

[data-component='contact-strip'] a {
  color: inherit;
}

[data-component='contact-strip'] a:hover,
[data-component='contact-strip'] a:focus-visible {
  color: #0f3664;
}

[data-lang='ar'] .timeline {
  padding-right: 1.5rem;
  padding-left: 0;
}

[data-lang='ar'] .timeline::before {
  left: auto;
  right: 0.7rem;
}

[data-lang='ar'] .timeline-step {
  padding-right: 1.75rem;
  padding-left: 0;
}

[data-lang='ar'] .timeline-step::before {
  left: auto;
  right: -0.25rem;
}



