/* Custom Color Redesign as per DESIGN.md & Ardent Light Template */

:root {
  /* Override Astra/Elementor Variables */
  --ast-global-color-0: #1c62a7; /* Primary */
  --ast-global-color-1: #f1a015; /* Hover/Secondary */
  --ast-global-color-2: #1f2c33; /* Headings */
  --ast-global-color-3: #45505f; /* Body Text */
  --ast-global-color-4: #f7fafd; /* Background */
  --ast-global-color-5: #ffffff; /* White */
  
  --e-global-color-primary: #1c62a7;
  --e-global-color-secondary: #f1a015;
  --e-global-color-text: #45505f;
  --e-global-color-accent: #f1a015;
}

html {
  scroll-behavior: smooth;
}

/* Force body background */
body, .elementor-page {
  background-color: var(--ast-global-color-4);
  color: var(--ast-global-color-3);
}


/* Buttons */
.ast-button, .elementor-button, button, .button {
  background-color: var(--ast-global-color-0) !important;
  color: var(--ast-global-color-5) !important;
  border-radius: 12px !important; /* DESIGN.md rounded token */
  border: none !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.ast-button:hover, .elementor-button:hover, button:hover, .button:hover {
  background-color: var(--ast-global-color-1) !important;
  color: var(--ast-global-color-5) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 98, 167, 0.2);
}

/* Cards & Sections (to mimic DESIGN.md structure) */
.elementor-column-wrap, .elementor-widget-wrap {
  border-radius: 16px;
}

/* Footer / Header Background overrides if necessary */
.site-header, .site-footer {
  background-color: #ffffff !important;
  border-bottom: 1px solid #dddddd;
}

/* MEGA MENU */
.elementor-nav-menu--main,
.elementor-widget-nav-menu .elementor-widget-container,
.elementor-nav-menu {
  overflow: visible !important;
}

.custom-mega-menu { 
  position: relative; 
}

.mega-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -220px;
  width: 720px;
  max-width: 90vw;
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(28, 98, 167, 0.12), 0 5px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(28, 98, 167, 0.08);
  border-radius: 16px;
  padding: 26px 30px;
  z-index: 10000;
  box-sizing: border-box;
  animation: fadeInMega 0.2s ease-in-out;
}

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

.custom-mega-menu:hover .mega-dropdown { 
  display: block; 
}

.mega-grid { 
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
  box-sizing: border-box;
}

.mega-col { 
  min-width: 0;
}

.mega-col h4 { 
  font-size: 16px; 
  font-weight: 700;
  color: #1c62a7; 
  margin: 0 0 14px 0; 
  padding-bottom: 8px;
  border-bottom: 2px solid #f1a015; 
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.mega-col .mega-list,
.mega-col ul { 
  padding: 0; 
  margin: 0; 
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-col .mega-item,
.mega-col ul li { 
  margin: 0; 
  display: block; 
}

.mega-col .mega-item a,
.mega-col ul li a { 
  color: #45505f !important; 
  text-decoration: none; 
  font-size: 14px; 
  font-weight: 500;
  transition: all 0.2s ease; 
  display: inline-block;
  white-space: nowrap;
  padding: 3px 0;
  line-height: 1.5;
  background: transparent !important;
}

.mega-col .mega-item a:hover,
.mega-col ul li a:hover { 
  color: #1c62a7 !important; 
  transform: translateX(4px);
}

/* TRUST BADGES */
.custom-section { padding: 40px 0; font-family: 'Inter', sans-serif; }
.trust-container { display: flex; justify-content: center; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 15px; background: #fff; padding: 20px 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.trust-badge .icon { font-size: 32px; }
.trust-badge strong { display: block; font-size: 16px; color: #1f2c33; }
.trust-badge p { margin: 0; font-size: 14px; color: #45505f; }

/* NICHE PRODUCTS */
.custom-bg-light { background-color: #f7fafd; }
.niche-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; text-align: center; }
.niche-title { color: #1c62a7; margin-bottom: 40px; font-size: 32px; }
.niche-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.niche-card { background: #fff; border-radius: 16px; padding: 30px; flex: 1; min-width: 300px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); text-align: left; }
.niche-card h3 { color: #1f2c33; margin-top: 0; margin-bottom: 15px; font-size: 20px; }
.niche-card p { color: #45505f; font-size: 15px; line-height: 1.6; margin-bottom: 25px; }
.niche-btn { display: inline-block; background: #1c62a7; color: #fff; padding: 10px 24px; border-radius: 8px; text-decoration: none; transition: background 0.2s; }
.niche-btn:hover { background: #f1a015; }