/*
 * ODI GROUP Custom Styles
 * Tailwind directives are processed when building with npm.
 * In CDN mode, they are ignored and Tailwind scans HTML directly.
 */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Google Fonts are loaded via <link> in HTML <head> for better performance */

:root {
  --odi-red: #E30613;
  --odi-black: #111111;
  --odi-white: #FFFFFF;
  --odi-accent: #F5F5F5;
  --odi-red-light: #ff1a2e;
  --odi-red-dark: #b80510;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

main {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

main .grid > *,
main .flex > * {
  min-width: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* Selection */
::selection {
  background-color: var(--odi-red);
  color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--odi-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--odi-red-dark);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

html:not(.js-ready) .reveal,
html:not(.js-ready) .reveal-left,
html:not(.js-ready) .reveal-right,
html:not(.js-ready) .reveal-scale {
  opacity: 1;
  transform: none;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
  background: rgba(17, 17, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass-card {
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #E30613 0%, #ff4757 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero gradient overlay */
.hero-gradient {
  background: linear-gradient(135deg, rgba(17,17,17,0.92) 0%, rgba(17,17,17,0.75) 50%, rgba(227,6,19,0.15) 100%);
}

/* Button styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: #E30613;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover:not(:disabled) {
  background-color: #b80510;
  box-shadow: 0 10px 15px -3px rgba(227, 6, 19, 0.3);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: #ffffff;
  color: #111111;
  font-weight: 600;
  border: 2px solid #111111;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: #111111;
  color: #ffffff;
  transform: translateY(-2px);
}

.dark .btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.dark .btn-secondary:hover {
  background-color: #ffffff;
  color: #111111;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  border: 2px solid #ffffff;
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: #111111;
  border-color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Card hover effects */
.card-hover {
  @apply transition-all duration-500 hover:-translate-y-2 hover:shadow-2xl;
}

/* Solution card gradients */
.solution-card-impala { background: linear-gradient(135deg, #E30613 0%, #ff4757 100%); }
.solution-card-osat { background: linear-gradient(135deg, #111111 0%, #333333 100%); }
.solution-card-mobuzz { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.solution-card-odipay { background: linear-gradient(135deg, #059669 0%, #047857 100%); }

/* Africa map */
.africa-map-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 280px;
  overflow: hidden;
}

.africa-map {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.africa-map__base {
  fill: #e5e7eb;
  stroke: #cbd5e1;
  stroke-width: 0.6;
  pointer-events: none;
}

.dark .africa-map__base {
  fill: #2d3748;
  stroke: #4a5568;
}

.africa-map__country {
  cursor: pointer;
  stroke: #94a3b8;
  stroke-width: 0.7;
  transition: fill 0.25s ease, stroke 0.25s ease, filter 0.25s ease, transform 0.25s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.dark .africa-map__country {
  stroke: #1a1a1a;
}

.africa-map__country--active {
  fill: rgba(34, 197, 94, 0.55);
  stroke: #16a34a;
  stroke-width: 0.85;
}

.africa-map__country--planned-2027 {
  fill: rgba(234, 179, 8, 0.55);
  stroke: #ca8a04;
  stroke-width: 0.85;
}

.africa-map__country--planned-2028 {
  fill: rgba(227, 6, 19, 0.4);
  stroke: #b80510;
  stroke-width: 0.85;
}

.dark .africa-map__country--active,
.dark .africa-map__country--planned-2027,
.dark .africa-map__country--planned-2028 {
  fill: rgba(255, 255, 255, 0.2);
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 0.85;
}

.africa-map__country--active.is-hovered,
.africa-map__country--active:hover {
  fill: #22c55e !important;
  stroke: #16a34a;
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.55));
}

.africa-map__country--planned-2027.is-hovered,
.africa-map__country--planned-2027:hover {
  fill: #eab308 !important;
  stroke: #ca8a04;
  filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.55));
}

.africa-map__country--planned-2028.is-hovered,
.africa-map__country--planned-2028:hover {
  fill: #E30613 !important;
  stroke: #b80510;
  filter: drop-shadow(0 0 10px rgba(227, 6, 19, 0.55));
}

.africa-map__tooltip {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  padding: 0.4rem 0.75rem;
  background-color: #111111;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.375rem;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.africa-map__tooltip.visible {
  opacity: 1;
}

.africa-map__tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background-color: #111111;
}

/* Pulse dot */
.pulse-dot {
  position: relative;
}

.pulse-dot::before,
.pulse-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(227, 6, 19, 0.4);
  transform: translate(-50%, -50%);
  animation: pulse-ring 2s ease-out infinite;
}

.pulse-dot::after {
  animation-delay: 1s;
}

/* Floating buttons */
.floating-btn {
  position: fixed;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1);
}

/* Cookie consent modal — fully out of document flow when hidden */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  margin: 0;
  border: none;
  background: transparent;
  pointer-events: none;
}

.cookie-modal[hidden] {
  display: none !important;
}

.cookie-modal.show {
  display: flex;
  pointer-events: auto;
  animation: cookieOverlayIn 0.4s ease forwards;
}

@keyframes cookieOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: cookieOverlayIn 0.4s ease forwards;
}

.cookie-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  padding: 1.75rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: cookieDialogIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cookieDialogIn {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dark .cookie-modal__dialog {
  background-color: #1a1a1a;
  border-color: #374151;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

@media (min-width: 640px) {
  .cookie-modal {
    align-items: center;
    padding: 2rem;
  }

  .cookie-modal__dialog {
    max-width: 26rem;
  }
}

.cookie-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background-color: rgba(227, 6, 19, 0.1);
  color: #E30613;
}

.cookie-modal__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.5rem;
}

.dark .cookie-modal__title {
  color: #ffffff;
}

.cookie-modal__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.dark .cookie-modal__text {
  color: #9ca3af;
}

.cookie-modal__actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .cookie-modal__actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.cookie-modal__btn {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

@media (min-width: 480px) {
  .cookie-modal__btn {
    width: auto;
    min-width: 7rem;
  }
}

.cookie-modal__btn--primary {
  background-color: #E30613;
  color: #ffffff;
}

.cookie-modal__btn--primary:hover {
  background-color: #b80510;
}

.cookie-modal__btn--secondary {
  background-color: transparent;
  color: #374151;
  border: 1px solid #d1d5db;
}

.cookie-modal__btn--secondary:hover {
  background-color: #f3f4f6;
  color: #111111;
}

.dark .cookie-modal__btn--secondary {
  color: #d1d5db;
  border-color: #4b5563;
}

.dark .cookie-modal__btn--secondary:hover {
  background-color: #374151;
  color: #ffffff;
}

body.cookie-modal-open {
  overflow: hidden;
}

/* Navigation */
.nav-link {
  position: relative;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #E30613;
  transition: width 0.3s;
}

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

/* Navbar states */
.navbar-initial {
  color: #ffffff;
}

.navbar-initial .nav-link,
.navbar-initial #dark-mode-toggle,
.navbar-initial #mobile-menu-toggle {
  color: #ffffff;
}

.navbar-logo {
  text-decoration: none;
}

.navbar-logo__img {
  height: 2.25rem;
  width: auto;
  max-width: min(8rem, 36vw);
  object-fit: contain;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .navbar-logo__img {
    height: 2.5rem;
    max-width: 9rem;
  }
}

.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  color: #111111;
}

.dark .navbar-scrolled {
  background-color: rgba(17, 17, 17, 0.95);
  color: #ffffff;
}

.navbar-scrolled .nav-link,
.navbar-scrolled #dark-mode-toggle,
.navbar-scrolled #mobile-menu-toggle {
  color: #111111;
}

.dark .navbar-scrolled .nav-link,
.dark .navbar-scrolled #dark-mode-toggle,
.dark .navbar-scrolled #mobile-menu-toggle {
  color: #ffffff;
}

/* Language switcher adapts to navbar state */
.navbar-initial .navbar-lang-switcher {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-scrolled .navbar-lang-switcher {
  background-color: #f3f4f6;
  border: 1px solid transparent;
}

.dark .navbar-scrolled .navbar-lang-switcher {
  background-color: #1f2937;
}

/* Mobile menu — hidden on desktop, off-screen until opened */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  max-width: 100%;
  background-color: #ffffff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
  visibility: hidden;
  overflow-x: hidden;
  overflow-y: auto;
}

.dark .mobile-menu {
  background-color: #111111;
}

.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

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

/* Counter animation */
.counter-value {
  animation: count-pulse 0.3s ease-out;
}

/* Blog card image zoom */
.blog-card-image {
  @apply transition-transform duration-700;
}

.blog-card:hover .blog-card-image {
  @apply scale-110;
}

/* Project card overlay */
.project-card .project-overlay {
  @apply opacity-0 transition-opacity duration-300;
}

.project-card:hover .project-overlay {
  @apply opacity-100;
}

.project-card:hover .project-image {
  @apply scale-105;
}

.project-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  padding: 2rem 1.5rem;
  background: #ffffff;
}

.project-detail-card__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  min-height: 11rem;
  padding: 1.75rem 1.25rem;
  background: #ffffff;
}

.dark .project-card__logo,
.dark .project-detail-card__logos {
  background: #222222;
}

.project-card__logo img {
  max-height: 6rem;
  max-width: 16rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.project-card--featured {
  display: grid;
  grid-template-columns: 1fr;
  border: 2px solid rgba(227, 6, 19, 0.25);
  box-shadow: 0 20px 40px rgba(227, 6, 19, 0.08);
}

@media (min-width: 768px) {
  .project-card--featured {
    grid-template-columns: minmax(14rem, 22rem) 1fr;
  }
}

.project-card--featured .project-card__logo {
  min-height: 100%;
}

.project-card--featured .project-card__logo img {
  max-height: 7rem;
}

.project-card--featured .project-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-card__logo img[src*="hec-kin"] {
  max-height: 7.5rem;
}

.project-detail-card__logos img {
  max-height: 5rem;
  max-width: 12rem;
  width: auto;
  height: auto;
  object-fit: contain;
  flex: 0 1 auto;
}

.project-detail-card__logos img[src*="hec-kin"] {
  max-height: 6.5rem;
}

@media (max-width: 639px) {
  .project-card__logo {
    min-height: 10rem;
    padding: 1.5rem 1rem;
  }

  .project-card__logo img {
    max-height: 5rem;
    max-width: 13rem;
  }

  .project-detail-card__logos {
    min-height: 9.5rem;
    padding: 1.25rem 1rem;
  }

  .project-detail-card__logos img {
    max-height: 4.25rem;
    max-width: 10rem;
  }
}

.project-detail-card {
  border-radius: 1rem;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.dark .project-detail-card {
  background: #1a1a1a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.project-detail-card__body {
  padding: 1.5rem;
  border-top: 3px solid #E30613;
}

.project-pillar-section + .project-pillar-section {
  border-top: 1px solid #e5e7eb;
}

.dark .project-pillar-section + .project-pillar-section {
  border-top-color: #2d2d2d;
}

/* Timeline */
.timeline-item {
  @apply relative pl-8 pb-8 border-l-2 border-gray-200 dark:border-gray-700 last:pb-0;
}

.timeline-item::before {
  content: '';
  @apply absolute left-[-9px] top-0 w-4 h-4 rounded-full bg-[#E30613] border-4 border-white dark:border-[#111111];
}

/* Form styles */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.dark .form-label {
  color: #d1d5db;
}

.form-required {
  color: #E30613;
  margin-left: 0.125rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #111111;
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dark .form-input {
  border-color: #374151;
  background-color: #111111;
  color: #ffffff;
}

.form-input::placeholder {
  color: #9ca3af;
}

.dark .form-input::placeholder {
  color: #6b7280;
}

.form-input:focus {
  outline: none;
  border-color: #E30613;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15);
}

.form-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-select-wrapper {
  position: relative;
}

.form-select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b7280;
  pointer-events: none;
}

.form-select {
  appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field--error .form-input {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-error {
  display: none;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: #ef4444;
}

.form-field--error .form-error,
.form-checkbox--error + .form-error--checkbox {
  display: block;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.form-label-row .form-label {
  margin-bottom: 0;
}

.form-char-count {
  font-size: 0.75rem;
  color: #9ca3af;
}

.form-checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.form-checkbox-input {
  position: absolute;
  left: 0;
  top: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.form-checkbox-box {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  background-color: #ffffff;
  transition: all 0.2s;
}

.dark .form-checkbox-box {
  border-color: #4b5563;
  background-color: #111111;
}

.form-checkbox-input:checked + .form-checkbox-box {
  background-color: #E30613;
  border-color: #E30613;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 0.875rem;
  background-repeat: no-repeat;
  background-position: center;
}

.form-checkbox-input:focus-visible + .form-checkbox-box {
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15);
}

.form-checkbox--error .form-checkbox-box {
  border-color: #ef4444;
}

.form-checkbox-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4b5563;
}

.dark .form-checkbox-text {
  color: #9ca3af;
}

.form-checkbox-text a {
  color: #E30613;
  text-decoration: underline;
}

.form-checkbox-text a:hover {
  color: #b80510;
}

/* Contact form */
.contact-form {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.dark .contact-form {
  background-color: #1a1a1a;
  border-color: #374151;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35);
}

@media (min-width: 1024px) {
  .contact-form {
    padding: 2.5rem;
  }
}

.contact-form__header {
  margin-bottom: 1.75rem;
}

.contact-form__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.5rem;
}

.dark .contact-form__title {
  color: #ffffff;
}

.contact-form__subtitle {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #6b7280;
}

.dark .contact-form__subtitle {
  color: #9ca3af;
}

.contact-form__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .contact-form__fields {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-field--full {
    grid-column: 1 / -1;
  }
}

.contact-form__alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contact-form__alert.hidden {
  display: none;
}

.contact-form__alert--success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.dark .contact-form__alert--success {
  background-color: rgba(6, 95, 70, 0.15);
  border-color: #059669;
  color: #6ee7b7;
}

.contact-form__alert--error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.dark .contact-form__alert--error {
  background-color: rgba(153, 27, 27, 0.15);
  border-color: #ef4444;
  color: #fca5a5;
}

.contact-form__alert-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-form__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .contact-form__actions {
    flex-direction: row;
  }

  .contact-form__submit,
  .contact-form__meeting {
    flex: 1;
  }
}

.contact-form--success .contact-form__fields,
.contact-form--success .form-checkbox,
.contact-form--success .form-error--checkbox,
.contact-form--success .contact-form__actions {
  display: none;
}

/* Newsletter form (blog) */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.9375rem;
}

.newsletter-form__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form__input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.newsletter-form__input--error {
  border-color: #fca5a5;
}

.newsletter-form__submit {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  color: #E30613;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.newsletter-form__submit:hover:not(:disabled) {
  background-color: #f3f4f6;
}

.newsletter-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Industry icon hover */
.industry-card {
  @apply transition-all duration-300 hover:bg-[#E30613] hover:text-white hover:shadow-xl hover:-translate-y-1;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid #E30613;
  outline-offset: 2px;
}

/* Mobile layout & overflow fixes */
@media (max-width: 1023px) {
  .reveal-left {
    transform: translateY(24px);
  }

  .reveal-left.active {
    transform: translateY(0);
  }

  .reveal-right {
    transform: translateY(24px);
  }

  .reveal-right.active {
    transform: translateY(0);
  }

  .relative:has(> .absolute) {
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  #main-navbar > div > div {
    min-width: 0;
    gap: 0.5rem;
  }

  #main-navbar .navbar-logo {
    min-width: 0;
    flex-shrink: 1;
  }

  #main-navbar .navbar-slogan {
    font-size: 0.625rem;
  }

  h1, h2, h3, h4 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  section.py-24 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  section.py-32 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .grid.gap-16 {
    gap: 2rem;
  }

  .grid.gap-12 {
    gap: 1.5rem;
  }

  #africa .rounded-2xl.shadow-xl {
    padding: 1rem;
  }

  .industry-card {
    padding: 1rem;
  }

  .industry-card h3 {
    font-size: 0.75rem;
    line-height: 1.25rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .contact-form__fields,
  .form-input,
  .form-select,
  .form-textarea {
    min-width: 0;
    max-width: 100%;
  }

  footer .border-t > .flex.items-center.space-x-6 {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  footer .border-t > .flex.items-center.space-x-6 > * {
    margin: 0 !important;
  }

  #dark-mode-toggle-mobile span {
    font-size: 0.75rem;
    line-height: 1.25rem;
    text-align: center;
  }

  .flex-col > .btn-primary,
  .flex-col > .btn-outline-white,
  .flex-col > .btn-secondary,
  .flex-col > a.btn-primary,
  .flex-col > a.btn-outline-white,
  .flex-col > a.btn-secondary {
    width: 100%;
    max-width: 100%;
  }

  #hero h1 {
    font-size: 1.875rem;
    line-height: 1.2;
  }

  .timeline-mobile > .absolute.left-4 {
    left: 1rem;
  }

  .timeline-mobile .timeline-dot {
    left: 1rem;
    transform: none;
  }

  footer .border-t p {
    text-align: center;
    overflow-wrap: anywhere;
  }

  .africa-map-wrapper,
  #africa .rounded-2xl.shadow-xl {
    min-width: 0;
  }
}

@media (max-width: 639px) {
  #hero h1 {
    font-size: 1.625rem;
  }
}

/* Clients marquee — scroll left to right */
.clients-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.clients-marquee__track {
  display: flex;
  width: max-content;
  animation: clients-marquee-scroll 65s linear infinite;
}

.clients-marquee__group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

.clients-marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5rem;
  min-width: 10rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dark .clients-marquee__item {
  background: #1a1a1a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.clients-marquee__item img {
  max-height: 3.25rem;
  max-width: 11rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes clients-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.clients-marquee:hover .clients-marquee__track {
  animation-play-state: paused;
}

@media (max-width: 639px) {
  .clients-marquee__item {
    height: 4rem;
    min-width: 8rem;
    padding: 0.5rem 1rem;
  }

  .clients-marquee__item img {
    max-height: 2.5rem;
    max-width: 8rem;
  }
}

/* Preloader */
html.preloader-active,
html.preloader-active body {
  overflow: hidden;
}

.odi-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.dark .odi-preloader {
  background: #111111;
}

.odi-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.odi-preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: min(18rem, 82vw);
}

.odi-preloader__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 11rem;
  height: 4.5rem;
}

.odi-preloader__logo {
  height: 3.25rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.odi-preloader__slogan {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--odi-red);
}

.odi-preloader__bar {
  width: 100%;
  height: 3px;
  background: rgba(227, 6, 19, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.dark .odi-preloader__bar {
  background: rgba(227, 6, 19, 0.22);
}

.odi-preloader__bar-fill {
  display: block;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--odi-red-dark), var(--odi-red), var(--odi-red-light));
  border-radius: inherit;
  animation: preloader-progress 1.4s ease-in-out infinite;
}

@keyframes preloader-progress {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(320%);
  }
}

@media (min-width: 640px) {
  .odi-preloader__logo {
    height: 3.75rem;
  }

  .odi-preloader__logo-wrap {
    width: 12rem;
    height: 5rem;
  }

  .odi-preloader__slogan {
    font-size: 0.75rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
