/* =========================================================
   ElvenSoftware – Bootstrap 5 Overrides & Custom Styles
   Only styles that Bootstrap doesn't provide out of the box.
   ========================================================= */

/* ---------------------------------------------------------
   1. Bootstrap variable overrides (must precede import)
      Provided via CDN so we patch via :root instead.
   --------------------------------------------------------- */
:root {
  --bs-primary:        #2563eb;
  --bs-primary-rgb:    37, 99, 235;
  --bs-font-sans-serif:'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);

  /* Custom tokens still used below */
  --clr-primary-50:  #eff6ff;
  --clr-primary-100: #dbeafe;
  --clr-primary-400: #60a5fa;
  --clr-primary-600: #2563eb;
  --clr-primary-700: #1d4ed8;
  --clr-primary-900: #0f1f3d;
  --clr-neutral-50:  #f8fafc;
  --clr-neutral-200: #e2e8f0;
  --clr-neutral-600: #475569;
  --clr-neutral-700: #334155;
  --clr-neutral-800: #1e293b;
  --clr-neutral-900: #0f172a;
  --clr-success:     #22c55e;

  --shadow-card: 0 2px 8px 0 rgb(37 99 235 / 0.06), 0 1px 3px 0 rgb(0 0 0 / 0.06);
  --shadow-xl:   0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.06);
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  --header-height: 68px;
}

/* ---------------------------------------------------------
   2. Base
   --------------------------------------------------------- */
body {
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--clr-neutral-800);
}

/* Offset anchor targets so sticky header doesn't overlap */
html {
  scroll-padding-top: var(--header-height);
}

/* ---------------------------------------------------------
   3. Override Bootstrap primary colour
   --------------------------------------------------------- */
.btn-primary {
  --bs-btn-bg:             var(--clr-primary-600);
  --bs-btn-border-color:   var(--clr-primary-600);
  --bs-btn-hover-bg:       var(--clr-primary-700);
  --bs-btn-hover-border-color: var(--clr-primary-700);
  --bs-btn-active-bg:      var(--clr-primary-700);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  box-shadow: 0 4px 14px 0 rgb(37 99 235 / 0.35);
}
.btn-primary:hover  { transform: translateY(-1px); box-shadow: 0 6px 20px 0 rgb(37 99 235 / 0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-outline-light {
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: transform 0.15s ease, background-color 0.25s ease;
}
.btn-outline-light:hover  { transform: translateY(-1px); }
.btn-outline-light:active { transform: translateY(0); }

/* ---------------------------------------------------------
   4. Sticky header
   --------------------------------------------------------- */
.site-header {
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clr-neutral-200);
  transition: box-shadow 0.25s ease;
  z-index: 1030;
}
.site-header.scrolled {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
}

/* Logo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--clr-neutral-900);
  text-decoration: none;
}
.nav-logo:hover { opacity: 0.8; color: var(--clr-neutral-900); }
.nav-logo strong { font-weight: 700; color: var(--clr-primary-600); }
.nav-logo-icon { width: 32px; height: 32px; flex-shrink: 0; }

/* Nav links */
.navbar .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-neutral-700);
  position: relative;
  padding-bottom: 0.25rem;
}
.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background-color: var(--clr-primary-600);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.navbar .nav-link:hover { color: var(--clr-primary-600); }
.navbar .nav-link:hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------
   5. Hero section
   --------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--clr-primary-900) 0%, #0d2559 50%, #0c1f4a 100%);
  color: #fff;
  padding-top: calc(3rem + var(--header-height) / 2);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary-400);
  margin-bottom: 1rem;
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background-color: var(--clr-primary-400);
  border-radius: var(--radius-full);
}

.hero__headline {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hero__accent {
  background: linear-gradient(90deg, var(--clr-primary-400), #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  max-width: 50ch;
}

.hero-graphic {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}
.hero__wave { margin-top: 3rem; line-height: 0; }
.hero__wave svg { width: 100%; height: 80px; }

/* ---------------------------------------------------------
   6. Trust bar
   --------------------------------------------------------- */
.trust-bar {
  background-color: var(--clr-neutral-50);
  border-bottom: 1px solid var(--clr-neutral-200);
}
.trust-bar__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-neutral-600);
  white-space: nowrap;
}
.trust-badge {
  background-color: #fff;
  color: var(--clr-neutral-700);
  border: 1px solid var(--clr-neutral-200);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ---------------------------------------------------------
   7. Section typography helpers
   --------------------------------------------------------- */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary-600);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-neutral-900);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.125rem;
  color: var(--clr-neutral-600);
  max-width: 56ch;
}

/* ---------------------------------------------------------
   8. Service cards
   --------------------------------------------------------- */
.service-card {
  background-color: #fff;
  border: 1px solid var(--clr-neutral-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow-card);
}
.service-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--clr-primary-400);
  transform: translateY(-3px);
}
.service-card--wide {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.service-card__icon {
  width: 52px; height: 52px;
  background-color: var(--clr-primary-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--clr-primary-600);
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card:hover .service-card__icon { background-color: var(--clr-primary-600); color: #fff; }
.service-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--clr-neutral-900);
  margin-bottom: 0.625rem;
  line-height: 1.35;
}
.service-card__desc {
  font-size: 0.9375rem;
  color: var(--clr-neutral-600);
  line-height: 1.7;
  margin: 0;
}

/* ---------------------------------------------------------
   9. About / Why-us section
   --------------------------------------------------------- */
.why-us { background-color: var(--clr-neutral-50); }

.why-us__blob {
  width: 100%;
  aspect-ratio: 1;
  max-width: 380px;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  background: linear-gradient(135deg, var(--clr-primary-100) 0%, var(--clr-primary-50) 100%);
  margin: auto;
}
.stat-card {
  background-color: #fff;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
  min-width: 160px;
  border: 1px solid var(--clr-neutral-200);
}
.stat-card--accent {
  background-color: var(--clr-primary-600);
  border-color: var(--clr-primary-600);
  color: #fff;
}
.stat-card__number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--clr-primary-600);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-card--accent .stat-card__number { color: #fff; }
.stat-card__label { font-size: 0.875rem; font-weight: 500; color: var(--clr-neutral-600); }
.stat-card--accent .stat-card__label { color: rgba(255,255,255,0.85); }

/* ---------------------------------------------------------
   10. Contact section
   --------------------------------------------------------- */
.form-control, .form-select {
  background-color: var(--clr-neutral-50);
  border: 1.5px solid var(--clr-neutral-200);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.form-control:hover, .form-select:hover { border-color: #94a3b8; background-color: #fff; }
.form-control:focus, .form-select:focus {
  border-color: var(--clr-primary-600);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-control.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  font-weight: 500;
  display: block;
  min-height: 1rem;
  margin-top: 0.25rem;
}
.form-notice { font-weight: 500; min-height: 1.25rem; }
.form-notice.success { color: var(--clr-success); }
.form-notice.error   { color: #ef4444; }

.contact-info {
  background-color: var(--clr-neutral-50);
  border: 1px solid var(--clr-neutral-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-info__icon {
  width: 44px; height: 44px;
  background-color: var(--clr-primary-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary-600);
}
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__tagline {
  border-top: 1px solid var(--clr-neutral-200);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

/* ---------------------------------------------------------
   11. Footer
   --------------------------------------------------------- */
.site-footer { background-color: var(--clr-neutral-900); color: rgba(255,255,255,0.7); }
.footer__logo { color: #fff; }
.footer__logo:hover { color: #fff; opacity: 0.85; }
.footer__logo strong { color: var(--clr-primary-400); }
.footer__tagline { font-size: 0.875rem; line-height: 1.7; }
.footer__nav-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__nav-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__nav-list a { font-size: 0.875rem; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s ease; }
.footer__nav-list a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* ---------------------------------------------------------
   12. Reduced motion
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
