/* ===================================================
   EDC OFFICIEL LIMITED — Custom Stylesheet
   =================================================== */

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: #0A1628;
  background: #ffffff;
  overflow-x: hidden;
}

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #1E6FFF; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #1558CC; }

/* Focus */
*:focus-visible { outline: 2px solid #1E6FFF; outline-offset: 2px; border-radius: 4px; }

/* ── Utility Classes ── */
.font-heading { font-family: 'Plus Jakarta Sans', sans-serif; }
.font-body    { font-family: 'DM Sans', sans-serif; }

.text-gradient {
  background: linear-gradient(135deg, #1E6FFF 0%, #5B9BFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
}

.glass-dark {
  background: rgba(10,22,40,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.bg-dot-pattern {
  background-image: radial-gradient(circle, rgba(30,111,255,0.13) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(30,111,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,111,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background-color: rgba(10,22,40,0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-link.active { color: #1E6FFF !important; background: rgba(30,111,255,0.12); }

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid rgba(255,255,255,0.08);
}
#mobile-menu.open { max-height: 380px; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #1E6FFF; color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.95rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 8px 25px rgba(30,111,255,0.3);
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: #1558CC;
  box-shadow: 0 8px 35px rgba(30,111,255,0.5);
  transform: scale(1.02);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: 2px solid rgba(255,255,255,0.25); color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.95rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent; cursor: pointer;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 0.625rem;
}

/* ── Cards ── */
.service-card {
  background: white;
  border: 1px solid rgba(10,22,40,0.08);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(30,111,255,0.12);
  border-color: rgba(30,111,255,0.15);
}
.service-card:hover .card-icon {
  background: #1E6FFF !important;
  box-shadow: 0 8px 20px rgba(30,111,255,0.3);
}
.service-card:hover .card-icon svg,
.service-card:hover .card-icon i { color: white !important; stroke: white !important; }

.card-icon {
  width: 3rem; height: 3rem;
  background: #EEF4FF;
  border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  color: #1E6FFF;
}

.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1.25rem;
}

.team-card { cursor: default; }
.team-card .team-img {
  border-radius: 1rem;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover .team-img {
  transform: scale(1.04);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.team-card .linkedin-btn {
  position: absolute; bottom: -0.75rem; right: -0.75rem;
  width: 2.25rem; height: 2.25rem;
  background: #1E6FFF; border-radius: 0.625rem;
  display: flex; align-items: center; justify-content: center;
  color: white; text-decoration: none;
  opacity: 0; transform: scale(0.8);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(30,111,255,0.4);
}
.team-card:hover .linkedin-btn { opacity: 1; transform: scale(1); }

.testimonial-card {
  background: white;
  border: 1px solid rgba(10,22,40,0.08);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

.value-card {
  border-radius: 1rem;
  padding: 1.75rem;
  transition: background 0.3s ease;
  border: 1px solid rgba(255,255,255,0.08);
}
.value-card:hover { background: rgba(255,255,255,0.1) !important; }

/* ── Pricing ── */
.pricing-card {
  border-radius: 1.25rem;
  padding: 1.75rem;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.pricing-card:hover { transform: translateY(-6px); }

.pricing-card.popular {
  background: #0A1628 !important;
  border: 2px solid #1E6FFF;
  box-shadow: 0 20px 50px rgba(30,111,255,0.2);
}

.pricing-badge {
  position: absolute; top: -0.875rem; left: 50%; transform: translateX(-50%);
  background: #1E6FFF; color: white;
  font-size: 0.7rem; font-weight: 700; font-family: 'DM Sans', sans-serif;
  padding: 0.3rem 0.875rem; border-radius: 999px;
  letter-spacing: 0.02em; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(30,111,255,0.4);
}

/* ── Forms ── */
.form-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(10,22,40,0.55);
  margin-bottom: 0.375rem;
  letter-spacing: 0.01em;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid rgba(10,22,40,0.14);
  border-radius: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: #0A1628;
  background: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-input:hover { border-color: rgba(30,111,255,0.35); }
.form-input:focus { border-color: #1E6FFF; box-shadow: 0 0 0 3px rgba(30,111,255,0.12); }
.form-input.error { border-color: #ef4444; background: #fef2f2; }
.form-input::placeholder { color: rgba(10,22,40,0.28); }

.input-wrapper { position: relative; }
.input-icon {
  position: absolute;
  left: 0.875rem; top: 50%; transform: translateY(-50%);
  color: rgba(10,22,40,0.28); pointer-events: none;
  display: flex; align-items: center;
}
.input-icon svg { width: 15px; height: 15px; }
.input-wrapper .form-input { padding-left: 2.5rem; }
.input-wrapper.textarea-wrap .input-icon { top: 0.9rem; transform: none; }

.form-error {
  color: #ef4444; font-size: 0.72rem;
  font-family: 'DM Sans', sans-serif;
  margin-top: 0.25rem; display: none;
}

/* ── Cookie Banner ── */
#cookie-banner {
  position: fixed;
  bottom: 1rem; right: 1rem; left: 1rem;
  z-index: 1000;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 420px;
}
@media (min-width: 640px) { #cookie-banner { left: auto; } }
#cookie-banner.visible { transform: translateY(0); }
#cookie-prefs { display: none; }

/* ── Animations ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes float-alt {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}
@keyframes rotate-ring {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
@keyframes blob {
  0%, 100% { transform: scale(1); opacity: 0.04; }
  50%       { transform: scale(1.15); opacity: 0.07; }
}

.float-1 { animation: float 3s ease-in-out infinite; }
.float-2 { animation: float-alt 4s ease-in-out infinite 0.5s; }
.float-3 { animation: float 3.5s ease-in-out infinite 1s; }
.float-4 { animation: float-alt 4.5s ease-in-out infinite 1.5s; }
.pulse-dot { animation: pulse-glow 1.5s ease-in-out infinite; }
.ring-1 { animation: rotate-ring 20s linear infinite; }
.ring-2 { animation: rotate-ring 30s linear infinite; }
.ring-3 { animation: rotate-ring 40s linear infinite; }
.blob-anim { animation: blob 6s ease-in-out infinite; }

/* ── Footer ── */
.footer-link {
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.footer-link:hover { color: #1E6FFF; }

.social-btn {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: all 0.2s ease;
}
.social-btn:hover { color: #1E6FFF; background: rgba(30,111,255,0.12); border-color: rgba(30,111,255,0.3); }

/* ── Policy pages ── */
.policy-section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(10,22,40,0.08); }
.policy-section:last-child { border-bottom: none; padding-bottom: 0; }
.policy-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 1.2rem;
  color: #0A1628; margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(10,22,40,0.1);
}
.policy-p { color: rgba(10,22,40,0.62); line-height: 1.75; font-size: 0.93rem; margin-bottom: 0.75rem; }
.policy-ul { padding-left: 1.5rem; margin-top: 0.5rem; margin-bottom: 0.75rem; }
.policy-ul li { color: rgba(10,22,40,0.62); line-height: 1.75; font-size: 0.93rem; margin-bottom: 0.35rem; list-style: disc; }

/* ── Success toast ── */
.success-toast {
  position: fixed;
  top: 5.5rem; left: 50%; transform: translateX(-50%) translateY(-20px);
  opacity: 0; z-index: 200;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.success-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── Company details card ── */
.company-detail-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(10,22,40,0.08);
}
.company-detail-row:last-child { border-bottom: none; }
.detail-icon {
  width: 2.25rem; height: 2.25rem; flex-shrink: 0;
  background: #EEF4FF; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: #1E6FFF; margin-top: 0.125rem;
}
.detail-icon svg { width: 15px; height: 15px; }

/* ── Stats counter ── */
.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 2.5rem; line-height: 1;
  color: #1E6FFF;
}

/* ── Section badge ── */
.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}
.badge-blue { background: rgba(30,111,255,0.12); color: #1E6FFF; }
.badge-light { background: #EEF4FF; color: #1E6FFF; }
