/* SDI Training — Design Enhancement Layer */
/* Hides broken images, adds Wow factor, modernizes the UI */

/* === Fix: hide broken images gracefully === */
img { background: transparent; }
img:not([src]), img[src=""], img[src*="placeholder"] { visibility: hidden; }
.broken-img-hidden { display: none !important; }

/* === Glass morphism navigation === */
header, nav[class*="sticky"], .site-header {
  backdrop-filter: blur(12px) saturate(180%);
  background: rgba(244, 241, 234, 0.85) !important;
  border-bottom: 1px solid rgba(6, 40, 69, 0.08);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

/* === Gradient hero accent === */
section:first-of-type, .hero, #hero {
  position: relative;
}
section:first-of-type::before, .hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(6, 40, 69, 0.03), rgba(255, 138, 61, 0.05));
  pointer-events: none;
  z-index: 0;
}
section:first-of-type > *, .hero > * { position: relative; z-index: 1; }

/* === Gradient text for key headlines === */
h1 em, h1 strong, .gradient-text {
  background: linear-gradient(135deg, #062845, #FF8A3D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Card hover lift === */
.card, [class*="card"], .service-card, .programme-card, .method-step {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}
.card:hover, [class*="card"]:hover, .service-card:hover, .programme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(6, 40, 69, 0.12);
}

/* === Stat counter styling === */
.stat-number, .stat b, .kpi b, [class*="stat"] b {
  background: linear-gradient(135deg, #062845 0%, #FF8A3D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* === Scroll reveal === */



/* === Pulsing CTA === */
a[href*="application"], .btn-primary, button[type="submit"] {
  position: relative;
  transition: all 0.3s ease;
}
a[href*="application"]:hover, .btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(255, 138, 61, 0.3);
}

/* === Floating WhatsApp button === */
#sdi-wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
  text-decoration: none;
}
#sdi-wa-float:hover { transform: scale(1.1); }
#sdi-wa-float svg { fill: white; }

/* === Section dividers === */
section { position: relative; }


/* === Form enhancements === */
form input, form textarea, form select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid rgba(6, 40, 69, 0.15);
  border-radius: 8px;
}
form input:focus, form textarea:focus, form select:focus {
  border-color: #FF8A3D;
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.15);
  outline: none;
}
form label { font-weight: 600; color: #062845; margin-bottom: 4px; display: block; }
form button, form input[type="submit"] {
  background: linear-gradient(135deg, #062845, #0a3a5c);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
form button:hover, form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 40, 69, 0.25);
}

/* === Trust badge === */
.trust-bar, .clients-bar, [class*="partner"], [class*="client"] {
  filter: grayscale(0.7);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.trust-bar:hover, .clients-bar:hover, [class*="partner"]:hover, [class*="client"]:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* === Method steps animation === */
.method-step, [class*="method"] > div {
  position: relative;
  padding-left: 60px;
}
.method-step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #062845, #FF8A3D);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

/* === Responsive improvements === */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.5rem !important; }
  .card, [class*="card"] { margin-bottom: 1rem; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
  .sdi-reveal { opacity: 1; transform: none; }
}
