/* ================================================================
   YAFIKA — Global Stylesheet (plain CSS, no Tailwind required)
   Brand: #213C76 navy, #EF443B red, #238DC6 blue, #F7B424 yellow
   Font: Ubuntu
   ================================================================ */

/* ================================================================
   KEYFRAME ANIMATIONS
   ================================================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

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

/* ================================================================
   ANIMATION UTILITY CLASSES
   ================================================================ */

.anim-fade-up  { animation: fadeInUp    0.65s cubic-bezier(0.22,1,0.36,1) both; }
.anim-fade-in  { animation: fadeIn      0.65s ease both; }
.anim-slide-l  { animation: slideInLeft  0.65s cubic-bezier(0.22,1,0.36,1) both; }
.anim-slide-r  { animation: slideInRight 0.65s cubic-bezier(0.22,1,0.36,1) both; }
.anim-scale-in { animation: scaleIn     0.5s  cubic-bezier(0.22,1,0.36,1) both; }
.anim-float    { animation: floatY      4s ease-in-out infinite; }

.d1 { animation-delay: 0.10s; }
.d2 { animation-delay: 0.22s; }
.d3 { animation-delay: 0.34s; }
.d4 { animation-delay: 0.46s; }
.d5 { animation-delay: 0.58s; }
.d6 { animation-delay: 0.70s; }

/* ================================================================
   GLOBAL POLISH
   ================================================================ */

html { scroll-behavior: smooth; }

a, .button {
  transition: color 0.2s ease, background-color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease,
              transform 0.2s ease !important;
}
.button:hover  { transform: translateY(-2px); }
.button:active { transform: translateY(0px); }

/* ================================================================
   NAVBAR
   ================================================================ */

.navbar { box-shadow: 0 2px 16px rgba(33, 60, 118, 0.35) !important; }

/* ================================================================
   HERO GRADIENT BACKGROUND
   ================================================================ */

/* The navbar is is-fixed-top (~4.25rem tall). Instead of padding the body
   (which leaves a white gap), we push hero content down so the hero's own
   background colour fills the space behind the navbar seamlessly. */
.hero-navy {
  background: linear-gradient(140deg, #162B5A 0%, #213C76 50%, #2A4A8A 100%) !important;
  position: relative;
  overflow: visible;
  padding-top: 4.25rem;
}
.hero-navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(247,180,36,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.hero-navy::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35,141,198,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-navy .hero-body {
  position: relative;
  z-index: 1;
}

/* ================================================================
   SECTION NAVY GRADIENT
   ================================================================ */

.section-navy {
  background: linear-gradient(160deg, #162B5A 0%, #213C76 60%, #1A3060 100%) !important;
  position: relative;
  overflow: visible;
}
.section-navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(247,180,36,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}
.section-navy > .container {
  position: relative;
  z-index: 1;
}

/* ================================================================
   FORCE LIGHT MODE — override Bulma 1.0.2 auto dark mode
   ================================================================ */

/* Force all Bulma color utilities to light-mode values */
.box {
  background-color: #fff !important;
  color: #4a4a4a !important;
}

.title {
  color: #213C76 !important;
}

.subtitle {
  color: #4a4a4a !important;
}

/* Hero/navy sections keep white text */
.hero-navy .title,
.section-navy .title,
.section-blue .title,
.hero-navy h1,
.hero-navy h2 {
  color: #fff !important;
}

.hero-navy .subtitle,
.hero-navy .has-text-grey-light {
  color: rgba(255,255,255,0.7) !important;
}

.section-navy .has-text-grey-light {
  color: rgba(255,255,255,0.7) !important;
}

.section-blue .has-text-white,
.section-blue .has-text-white-bis,
.section-blue h2 {
  color: #fff !important;
}

/* Body text colors */
p, .content {
  color: #4a4a4a;
}

.has-text-grey {
  color: #7a7a7a !important;
}

.has-text-grey-light {
  color: #b5b5b5 !important;
}

.has-text-grey-dark {
  color: #4a4a4a !important;
}

.has-text-white {
  color: #fff !important;
}

/* Bulma utilities */
.has-text-centered, .has-text-link {
  color: inherit;
}

.has-text-link {
  color: #238DC6 !important;
}

.box .title {
  color: #213C76 !important;
}

.box .has-text-grey {
  color: #7a7a7a !important;
}

.box .has-text-grey-dark {
  color: #4a4a4a !important;
}

.navbar {
  background-color: #213C76 !important;
}

/* Section backgrounds */
.section {
  background-color: #fff;
}

/* ================================================================
   CARD HOVER LIFT
   ================================================================ */

.card-hover {
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.28s cubic-bezier(0.22,1,0.36,1) !important;
  will-change: transform;
}
.card-hover:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(33, 60, 118, 0.10) !important;
}

/* ================================================================
   TEAM PHOTO — circular with gold ring
   ================================================================ */

.team-photo-wrap {
  width: 170px; height: 170px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 3px solid #F7B424;
  box-shadow: 0 0 0 4px rgba(247,180,36,0.12);
  transition: box-shadow 0.3s ease;
  background-color: #0F2555;
}
.card-hover:hover .team-photo-wrap {
  box-shadow: 0 0 0 5px rgba(247,180,36,0.20);
}
.team-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Per-person crop tweaks — nudge individual headshots if faces
   sit higher or lower than average. Add rules here as needed. */
.team-photo-wrap img[alt="Khondwani Mweene"] { object-position: center 25%; }
.team-photo-wrap img[alt="Cleopas Mwape"]    { object-position: center 20%; }
.team-photo-wrap img[alt="Johnson Musukwa"]  { object-position: center 20%; }
.team-photo-wrap img[alt="Mukupa Chilufya"]  { object-position: center 25%; }
.team-photo-wrap img[alt="Twiiza Kamwendo"]  { object-position: center 25%; }
.team-photo-wrap img[alt="Dumisani Msimuko"] { object-position: center 20%; }

/* ================================================================
   TYPED CARD BORDERS
   ================================================================ */

.stat-card       { border-left: 4px solid #EF443B !important; background-color: #fff !important; }
.stat-card .title { color: #213C76 !important; }
.stat-card p     { color: #4a4a4a !important; }
.service-card    { border-top: 3px solid #238DC6 !important; }
.feature-card    { border-top: 0 !important; }
.enterprise-card { border-top: 3px solid #F7B424 !important; }
.mvv-card        { border-bottom: 4px solid #EF443B !important; }
.solution-card   { border-top: 3px solid #213C76 !important; }
.pillar-card     { border-left: 4px solid #238DC6 !important; }

/* ================================================================
   ICON CIRCLE — emoji icon containers on cards
   ================================================================ */

.icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #213C76;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(33, 60, 118, 0.12);
  transition: background 0.3s ease;
}
.card-hover:hover .icon-circle {
  background: #238DC6;
}

/* ================================================================
   PILLAR ICON BOX
   ================================================================ */

.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #EF443B;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
  color: #fff;
  transition: background 0.3s ease;
}
.card-hover:hover .pillar-icon {
  background: #d73a32;
}

/* ================================================================
   ACCENT DIVIDER LINES
   ================================================================ */

.accent-divider {
  width: 56px; height: 4px;
  background: #EF443B;
  border-radius: 2px;
  margin: 0.5rem auto 1.5rem;
  border: none;
}

.accent-divider-left {
  width: 56px; height: 4px;
  background: #EF443B;
  border-radius: 2px;
  margin: 0 0 1.5rem 0;
  border: none;
}

/* ================================================================
   TAG IMPROVEMENTS
   ================================================================ */

.tag.is-warning {
  background: #F7B424 !important;
  color: #213C76 !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  border-radius: 6px;
}

/* ================================================================
   SIMPLE SERVICE CARDS (Services page icon grid)
   ================================================================ */

.simple-service-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem !important;
  border-top: 3px solid #238DC6 !important;
}

.simple-service-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  display: block;
  line-height: 1;
  color: #213C76;
}

.simple-service-img {
  height: 44px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.simple-service-img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* ================================================================
   RED PRIMARY CTA BUTTONS
   ================================================================ */

.button.is-danger {
  background-color: #EF443B !important;
  border-color: #EF443B !important;
  color: #fff !important;
  font-weight: 600;
}
.button.is-danger:hover {
  background-color: #d73a32 !important;
  border-color: #d73a32 !important;
  box-shadow: 0 4px 16px rgba(239, 68, 59, 0.35) !important;
}

/* ================================================================
   CONTACT FORM FOCUS
   ================================================================ */

/* Force light-mode form controls */
.input, .textarea, .select select {
  background-color: #fff !important;
  color: #363636 !important;
  border-color: #dbdbdb !important;
}

.input::placeholder, .textarea::placeholder {
  color: #b5b5b5 !important;
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: #238DC6 !important;
  box-shadow: 0 0 0 3px rgba(35,141,198,0.15) !important;
  background-color: #fff !important;
}

/* ================================================================
   OUTLINED BUTTONS ON DARK SECTIONS
   ================================================================ */

.section-navy .button.is-outlined,
.hero-navy .button.is-outlined {
  border-color: #fff !important;
  color: #fff !important;
}
.section-navy .button.is-outlined:hover,
.hero-navy .button.is-outlined:hover {
  background-color: rgba(255,255,255,0.12) !important;
  border-color: #fff !important;
  color: #fff !important;
}

/* ================================================================
   FOOTER
   ================================================================ */

.footer a { transition: color 0.2s ease !important; }
.footer, .footer p, .footer li { color: #B0BEC5 !important; }
.footer .title, .footer h4 { color: #fff !important; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media screen and (max-width: 768px) {
  .hero-body { padding: 2rem 1rem !important; }
  .title.is-1 { font-size: 2rem !important; }
  .title.is-2 { font-size: 1.5rem !important; }
}
