/* =============================================
   METAPRISE - Structural & Component Additions
   Uses original Optime template color scheme
   ============================================= */

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

/* ---- Global Font Override ---- */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.heading__title,
.slide__title,
.fancybox__title,
.service__title,
.project__title a,
.blog__title a,
.footer__widget-title,
.navbar-nav .nav__item-link {
  font-family: 'Space Grotesk', sans-serif !important;
  letter-spacing: -0.02em;
}

/* ---- Navbar tweaks (structural only) ---- */
.navbar-nav .nav__item-link {
  font-weight: 500 !important;
  font-size: 18px !important;  /* Match primary nav font size */
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* 
 * Navbar alignment - make Construction navbar align with Metaprise navbar
 * Both use same max-width and padding as custom-container
 */

/* Override Bootstrap container to match custom-container */
.secondary-header-wrapper .sticky-navbar > .container {
  max-width: 1550px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
}

/* Ensure primary nav also uses exact same settings */
.dual-nav-wrapper .primary-header-area > .custom-container {
  max-width: 1550px !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.sticky-navbar .navbar-brand {
  /* Match primary nav logo width exactly */
  width: 166px !important;
  min-width: 166px !important;
  flex-shrink: 0;
  padding-left: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: inline-block !important;
}

.sticky-navbar .navbar-collapse {
  flex-grow: 0 !important;
  justify-content: flex-start !important;
  margin-left: 68px !important; /* Match primary nav gap between logo and menu */
}

.sticky-navbar .navbar-nav {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Match primary nav menu item spacing (gap: 40px) */
.sticky-navbar .navbar-nav .nav__item {
  margin-right: 60px !important;
}

.sticky-navbar .navbar-nav .nav__item:last-child {
  margin-right: 0 !important;
}

.sticky-navbar .navbar-modules {
  margin-left: auto !important;
}

/* Responsive adjustments - match primary nav's responsive breakpoints */
@media (max-width: 1700px) {
  .secondary-header-wrapper .sticky-navbar > .container,
  .dual-nav-wrapper .primary-header-area > .custom-container {
    max-width: 1230px !important;
  }
}

@media (max-width: 1500px) {
  .secondary-header-wrapper .sticky-navbar > .container,
  .dual-nav-wrapper .primary-header-area > .custom-container {
    max-width: 1310px !important;
  }
}

@media (max-width: 1345px) {
  .secondary-header-wrapper .sticky-navbar > .container,
  .dual-nav-wrapper .primary-header-area > .custom-container {
    max-width: 1170px !important;
  }
}

@media (max-width: 1199px) {
  .secondary-header-wrapper .sticky-navbar > .container {
    max-width: 100% !important;
    padding: 0 20px !important;
  }
}

/* ---- Slider / Hero (structural only) ---- */
.slider .slide__title {
  font-size: 52px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
}

.slider .slide__desc {
  font-size: 18px !important;
  line-height: 1.7 !important;
  opacity: 0.9;
  max-width: 560px;
}

/* ---- Heading / Section Titles (structural only) ---- */
.heading__subtitle {
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  letter-spacing: 2px !important;
}

.heading__title {
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.heading__desc {
  font-size: 16px !important;
  line-height: 1.75 !important;
}

/* ---- Service Cards (structural only) ---- */
.service-item {
  border-radius: 16px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden;
}

.service-item:hover {
  transform: translateY(-8px) !important;
}

/* ---- Fancybox / Features (structural only) ---- */
.fancybox-item {
  border-radius: 12px !important;
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12) !important;
  transition: all 0.3s ease !important;
}

.fancybox-item:hover {
  background: rgba(255,255,255,0.15) !important;
  transform: translateY(-4px);
}

/* Fix fancybox-item hover clipping in carousel */
.fancybox-carousel .owl-stage-outer {
  padding-top: 8px;
  margin-top: -8px;
}

.fancybox-carousel .fancybox-item:hover {
  transform: translateY(-4px);
}

/* ---- Counters (structural only) ---- */
.counter-item h4 {
  font-weight: 800 !important;
}

/* ---- Projects / Case Studies (structural only) ---- */
.project-item {
  border-radius: 16px !important;
  overflow: hidden !important;
  transition: all 0.4s ease !important;
}

.project-item:hover {
  transform: translateY(-6px);
}

/* Fix project-item hover clipping in carousel */
.projects-carousel .owl-stage-outer {
  padding-top: 10px;
  margin-top: -10px;
}

.project__cat a {
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}

/* ---- Blog (structural only) ---- */
.blog-item {
  border-radius: 16px !important;
  overflow: hidden !important;
  transition: all 0.4s ease !important;
}

.blog-item:hover {
  transform: translateY(-4px);
}

.blog__meta-cat a {
  font-weight: 600 !important;
}

/* ---- Testimonials (structural only) ---- */
.testimonial__desc {
  font-size: 18px !important;
  line-height: 1.8 !important;
}

/* ---- Request Quote / Demo Form (structural only) ---- */
.request__form {
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* ---- Dropdown Menu (structural only) ---- */
.dropdown-menu {
  border-radius: 12px !important;
}

/* ====================================================
   Custom Metaprise Components
   (These are new components not in original template)
   ==================================================== */

/* Stat Cards */
.mp-stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.mp-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.mp-stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #ff5e14;
  line-height: 1;
}

.mp-stat-label {
  font-size: 14px;
  color: #9b9b9b;
  margin-top: 8px;
  font-weight: 500;
}

/* Platform Workflow */
.mp-workflow-step {
  text-align: center;
  padding: 24px;
}

.mp-workflow-step .step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ff5e14;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 16px;
  font-family: 'Space Grotesk', sans-serif;
}

.mp-workflow-step .step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #1d1d1d;
  margin-bottom: 8px;
}

.mp-workflow-step .step-desc {
  font-size: 14px;
  color: #9b9b9b;
  line-height: 1.6;
}

/* Badge */
.mp-badge {
  display: inline-block;
  background: rgba(255,94,20,0.1);
  color: #ff5e14;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Gradient Text */
.mp-gradient-text {
  background: linear-gradient(135deg, #ff5e14 0%, #ff8a50 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Platform Screenshot Mockup */
.mp-platform-mockup {
  background: #1d1d1d;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.mp-platform-mockup-inner {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}

/* Integration Logos */
.mp-integration-logo {
  width: 120px;
  height: 60px;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #9b9b9b;
  transition: all 0.3s ease;
}

.mp-integration-logo:hover {
  border-color: #ff5e14;
  box-shadow: 0 8px 25px rgba(255,94,20,0.1);
  transform: translateY(-2px);
}

/* Animated Gradient Border */
.mp-glow-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  overflow: hidden;
}

.mp-glow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff5e14, #ff8a50, #ff5e14);
  background-size: 200% 100%;
  animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Data Flow Visualization */
.mp-flow-connector {
  position: relative;
}

.mp-flow-connector::after {
  content: '\2192';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff5e14;
  font-size: 24px;
  font-weight: 700;
}

/* Custom Grid Cards for Modules */
.mp-module-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #eee;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mp-module-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ff5e14;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.mp-module-card:hover::after {
  transform: scaleX(1);
}

.mp-module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.mp-module-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,94,20,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.mp-module-icon i,
.mp-module-icon svg {
  color: #ff5e14;
  font-size: 24px;
}

.mp-module-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #1d1d1d;
  margin-bottom: 12px;
}

.mp-module-desc {
  font-size: 15px;
  color: #9b9b9b;
  line-height: 1.7;
}

/* Comparison Table */
.mp-comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.mp-comparison-table th {
  background: #1d1d1d;
  color: white;
  padding: 16px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mp-comparison-table td {
  padding: 14px 24px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.mp-comparison-table tr:nth-child(even) td {
  background: #f8f8f8;
}

.mp-comparison-table .mp-highlight-col {
  background: rgba(255,94,20,0.05) !important;
  font-weight: 600;
}

/* CTA Section */
.mp-cta-section {
  background: linear-gradient(135deg, #1d1d1d 0%, #333333 100%);
  border-radius: 24px;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.mp-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,94,20,0.15), transparent 70%);
  border-radius: 50%;
}

.mp-cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,94,20,0.08), transparent 70%);
  border-radius: 50%;
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .slider .slide__title {
    font-size: 36px !important;
  }
  .mp-cta-section {
    padding: 40px 24px;
  }
}

@media (max-width: 767px) {
  .slider .slide__title {
    font-size: 28px !important;
  }
  .mp-stat-number {
    font-size: 32px;
  }
}
