/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

/* ===== WordPress nav menu dropdown (Security submenu etc.) ===== */
.menu-item-has-children {
  position: relative;
}
.menu-item-has-children > .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 14rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px -10px rgba(32, 55, 143, 0.25);
  border: 1px solid #f1f5f9;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #20378f;
  white-space: nowrap;
}
.sub-menu li a:hover {
  background: #f8fafc;
  color: #0b7337;
}
#mobile-menu .sub-menu {
  padding-left: 1rem;
}

::selection {
  background: #0e9949;
  color: #20378f;
}

/* ===== Nav ===== */
.nav-link {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #0e9949;
  transition: width 0.25s ease;
}
.nav-link:hover {
  color: #0b7337;
}
.nav-link:hover::after {
  width: 100%;
}

.mobile-link {
  border-bottom: 1px solid #f1f5f9;
  color: #20378f;
}

#site-header.scrolled {
  box-shadow: 0 4px 20px -8px rgba(32, 55, 143, 0.15);
}

/* ===== Hero ===== */
.hero-gradient {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(14, 153, 73, 0.22), transparent 45%),
    linear-gradient(180deg, rgba(32,55,143,0.88) 0%, rgba(10,22,56,0.94) 100%),
    url('../images/real/circuit-bg.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

/* Circuit-trace texture used behind dark sections site-wide for the ICT/engineering brand feel */
.circuit-bg {
  background-image:
    linear-gradient(180deg, rgba(10,22,56,0.9) 0%, rgba(10,22,56,0.96) 100%),
    url('../images/real/circuit-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.footer-circuit {
  background-image:
    linear-gradient(180deg, rgba(6,15,36,0.94) 0%, rgba(6,15,36,0.99) 100%),
    url('../images/real/circuit-bg.jpg');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ===== Cards ===== */
.service-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 2.25rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px -15px rgba(32, 55, 143, 0.18);
  border-color: transparent;
}

.icon-box {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #20378f, #3f5bc4);
  color: #0e9949;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.product-card {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  background: #eef2f7;
}
.product-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto;
  border-radius: 50%;
  background: #20378f;
  color: #0e9949;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.why-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  border-radius: 1rem;
  background: #fff;
  color: #0b7337;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 30px -12px rgba(32, 55, 143, 0.2);
}

.contact-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: #20378f;
  color: #0e9949;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.erp-tile {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
}
.erp-tile i {
  font-size: 1.75rem;
  color: #0e9949;
}

.social-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-icon:hover {
  background: #0e9949;
  color: #20378f;
}

.footer-link {
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: #0e9949;
}

/* ===== Pricing ===== */
.pricing-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px -15px rgba(32, 55, 143, 0.15);
}
.pricing-card.featured {
  background: linear-gradient(160deg, #2845b3, #20378f);
  border: none;
  transform: scale(1.04);
}
.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-6px);
}
.pricing-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #0e9949;
  color: #20378f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 999px;
}

.ext-pill {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  color: #3f5bc4;
}

/* ===== Buttons ===== */
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #20378f;
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 0.6rem;
  transition: background 0.2s ease;
}
.btn-solid:hover {
  background: #2845b3;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #20378f;
  color: #20378f;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: 0.6rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover {
  background: #20378f;
  color: #fff;
}

/* ===== Form ===== */
.form-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: #0e9949;
  box-shadow: 0 0 0 3px rgba(14, 153, 73, 0.25);
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Back to top ===== */
#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ===== Interior page hero/banner ===== */
.page-hero {
  background-image:
    radial-gradient(circle at 85% 0%, rgba(63, 91, 196, 0.5), transparent 55%),
    linear-gradient(180deg, rgba(32,55,143,0.88) 0%, rgba(10,22,56,0.94) 100%),
    url('../images/real/circuit-bg.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

.breadcrumb a {
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: #0e9949;
}

/* ===== Nav active state ===== */
.nav-link.active,
.mobile-link.active {
  color: #0b7337;
}
.nav-link.active::after {
  width: 100%;
}

/* ===== Mission / Vision / Values ===== */
.mv-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px -15px rgba(32, 55, 143, 0.15);
}

/* ===== Project cards ===== */
.project-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px -15px rgba(32, 55, 143, 0.18);
}
.project-thumb {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #0e9949;
  background: linear-gradient(135deg, #20378f, #3f5bc4);
}
.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #dcfce7;
  color: #15803d;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

/* ===== Home hosting teaser mini cards ===== */
.pricing-mini {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
}
.pricing-mini.featured {
  background: linear-gradient(160deg, #2845b3, #20378f);
  border: none;
}

/* ===== Detail section icon (services/security pages) ===== */
.detail-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #20378f, #3f5bc4);
  color: #0e9949;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}
