@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/**
 * Desyne Brand Design System & Exact Reference JPEG Styling
 * Font Family: "Plus Jakarta Sans", sans-serif
 * Primary Vivid Red: #D32F2F
 * Dark Crimson Hover: #90030C
 */

body, html {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* --- PARENT THEME BLOCK SUPPRESSION --- */
.wp-block-template-part-header,
.wp-block-template-part-footer,
header.site-header:not(#desyne-site-header),
footer.site-footer:not(#desyne-site-footer),
.trans-menu, .trans-contacts, .trans-socials, .trans-newsletter {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* --- HEADER STYLING (ID 41) --- */
#desyne-site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 999999 !important;
  background-color: #FFFFFF !important;
  border-bottom: 1px solid #E5E7EB !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  width: 100% !important;
}

.desyne-header-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Logo Treatment */
.desyne-logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.desyne-logo-emblem {
  width: 34px;
  height: 34px;
  background: #D32F2F;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.1rem;
}

.desyne-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #242424;
  text-transform: uppercase;
}

/* Desktop Navigation */
.desyne-desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desyne-nav-item {
  color: #242424;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none !important;
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.desyne-nav-item:hover,
.desyne-nav-item.active {
  color: #D32F2F !important;
}

.desyne-nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #D32F2F;
  transition: width 0.25s ease;
}

.desyne-nav-item:hover::after,
.desyne-nav-item.active::after {
  width: 100%;
}

/* Header CTA Button */
.desyne-btn-pill {
  border-radius: 9999px !important;
  padding: 0.7rem 1.6rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease !important;
  font-size: 0.9rem !important;
  height: 42px !important;
  box-sizing: border-border-box !important;
}

.desyne-btn-pill-primary {
  background-color: #D32F2F !important;
  color: #FFFFFF !important;
  border: 1px solid #D32F2F !important;
}

.desyne-btn-pill-primary:hover {
  background-color: #90030C !important;
  border-color: #90030C !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.35) !important;
}

.desyne-btn-pill-secondary {
  background-color: #FFFFFF !important;
  color: #242424 !important;
  border: 1px solid #E5E7EB !important;
}

.desyne-btn-pill-secondary:hover {
  background-color: #FAFAF8 !important;
  color: #D32F2F !important;
  border-color: #D32F2F !important;
}

.desyne-btn-pill-white {
  background-color: #FFFFFF !important;
  color: #D32F2F !important;
  border: 1px solid #FFFFFF !important;
}

.desyne-btn-pill-white:hover {
  background-color: #F4F5F6 !important;
  color: #90030C !important;
}

/* Mobile Toggle & Menu */
.desyne-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #242424;
  cursor: pointer;
  padding: 8px;
}

.desyne-mobile-drawer {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.desyne-mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- FOOTER STYLING (ID 42) --- */
#desyne-site-footer {
  background-color: #FFFFFF !important;
  border-top: 1px solid #E5E7EB !important;
  color: #242424 !important;
  padding-top: 64px !important;
  padding-bottom: 32px !important;
}

.desyne-footer-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.desyne-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.desyne-footer-brand p {
  color: #6B7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 440px;
}

.desyne-footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #242424;
  font-size: 0.9rem;
  font-weight: 500;
}

.desyne-footer-contact-info a {
  color: #242424;
  text-decoration: none;
  transition: color 0.2s;
}

.desyne-footer-contact-info a:hover {
  color: #D32F2F;
}

.desyne-footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #242424;
  margin-bottom: 20px;
}

.desyne-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desyne-footer-links a {
  color: #6B7280;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.desyne-footer-links a:hover {
  color: #D32F2F;
}

.desyne-footer-bottom {
  border-top: 1px solid #E5E7EB;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9CA3AF;
  font-size: 0.88rem;
}

/* --- RESPONSIVE CONTROLS --- */
@media (min-width: 1024px) {
  .desyne-desktop-nav,
  .desyne-header-cta {
    display: flex !important;
  }
  .desyne-mobile-toggle,
  .desyne-mobile-drawer {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .desyne-desktop-nav,
  .desyne-header-cta {
    display: none !important;
  }
  .desyne-mobile-toggle {
    display: block !important;
  }
  .desyne-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .desyne-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .desyne-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* --- CRITICAL DESKTOP HORIZONTAL MULTI-COLUMN LAYOUT RULES --- */
@media (min-width: 1024px) {
  /* Hero Section */
  #ref_hero_section #hero_inner_row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  #hero_left_container {
    width: 56% !important;
    flex: 0 0 56% !important;
  }
  #hero_right_container {
    width: 40% !important;
    flex: 0 0 40% !important;
  }
  #hero_metric_pills_row {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
  }

  /* Metrics Counter Bar */
  #ref_metrics_bar_section {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  #mcol_1, #mcol_2, #mcol_3, #mcol_4 {
    width: 23% !important;
    flex: 0 0 23% !important;
  }

  /* Services Grid */
  #services_top_row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 24px !important;
  }
  #scard_1, #scard_2, #scard_3 {
    width: 31% !important;
    flex: 0 0 31% !important;
  }
  #services_bottom_row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 24px !important;
  }
  #scard_4, #scard_5 {
    width: 31% !important;
    flex: 0 0 31% !important;
  }

  /* Process Cards Section */
  #process_cards_row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 20px !important;
  }
  #pcard_1, #pcard_2, #pcard_3, #pcard_4 {
    width: 23.5% !important;
    flex: 0 0 23.5% !important;
  }

  /* Industries Section */
  #ref_industries_section {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  #ind_left_col {
    width: 44% !important;
    flex: 0 0 44% !important;
  }
  #ind_right_col {
    width: 52% !important;
    flex: 0 0 52% !important;
  }

  /* Contact Section */
  #ref_contact_section {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
  }
  #contact_left_col {
    width: 44% !important;
    flex: 0 0 44% !important;
  }
  #contact_right_col {
    width: 52% !important;
    flex: 0 0 52% !important;
  }
}