/*
Theme Name: Ivinitiv
Theme URI: https://ivinitiv.com
Author: Ivinitiv
Author URI: https://ivinitiv.com
Description: A premium enterprise software engineering theme for IVINITIV — custom software, AI, mobile apps, and digital transformation. Elementor-compatible, fully customizable.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ivinitiv
Tags: custom-menu, custom-logo, featured-images, theme-options, elementor, one-column, two-columns
*/

/* ========== Design Tokens ========== */
:root {
  --iv-navy: #0F1E35;
  --iv-navy-light: #1A2D4A;
  --iv-blue: #4A90E2;
  --iv-blue-dark: #1E3A5F;
  --iv-orange: #E87C2B;
  --iv-orange-hover: #D06A1F;
  --iv-white: #FFFFFF;
  --iv-gray-100: #F8F9FA;
  --iv-gray-200: #E9ECEF;
  --iv-gray-300: #DEE2E6;
  --iv-gray-500: #6C757D;
  --iv-gray-700: #495057;
  --iv-gray-900: #212529;
  --iv-font-heading: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --iv-font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --iv-radius: 8px;
  --iv-radius-lg: 12px;
  --iv-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --iv-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --iv-transition: all 0.3s ease;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--iv-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--iv-gray-900);
  background: var(--iv-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--iv-blue); text-decoration: none; transition: var(--iv-transition); }
a:hover { color: var(--iv-orange); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--iv-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--iv-navy);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { margin-bottom: 1rem; }

/* ========== Container ========== */
.iv-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1400px) { .iv-container { max-width: 1320px; } }

/* ========== Buttons ========== */
.iv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--iv-radius);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--iv-transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.iv-btn-primary {
  background: var(--iv-orange);
  color: var(--iv-white);
  border-color: var(--iv-orange);
}
.iv-btn-primary:hover {
  background: var(--iv-orange-hover);
  border-color: var(--iv-orange-hover);
  color: var(--iv-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232,124,43,0.3);
}
.iv-btn-secondary {
  background: transparent;
  color: var(--iv-white);
  border-color: var(--iv-blue-dark);
}
.iv-btn-secondary:hover {
  background: var(--iv-blue);
  border-color: var(--iv-blue);
  color: var(--iv-white);
  transform: translateY(-2px);
}
.iv-btn-outline {
  background: transparent;
  color: var(--iv-navy);
  border-color: var(--iv-navy);
}
.iv-btn-outline:hover {
  background: var(--iv-navy);
  color: var(--iv-white);
}

/* ========== Header ========== */
.iv-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 30, 53, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
  padding: 0 24px;
}
.iv-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.iv-logo img { height: 40px; width: auto; }
.iv-logo span {
  font-size: 24px;
  font-weight: 800;
  color: var(--iv-white);
  letter-spacing: -0.5px;
}
.iv-nav { display: flex; align-items: center; gap: 32px; }
.iv-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}
.iv-nav a:hover { color: var(--iv-white); }
.iv-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--iv-orange);
  transition: var(--iv-transition);
}
.iv-nav a:hover::after { width: 100%; }
.iv-nav .iv-btn { padding: 10px 24px; font-size: 14px; }
.iv-mega-menu {
  position: relative;
}
.iv-mega-menu .iv-mega-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -200px;
  background: var(--iv-navy);
  border: 1px solid rgba(74, 144, 226, 0.15);
  border-radius: var(--iv-radius-lg);
  padding: 32px;
  min-width: 680px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  z-index: 100;
}
.iv-mega-menu:hover .iv-mega-dropdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.iv-mega-dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--iv-radius);
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}
.iv-mega-dropdown a:hover {
  background: rgba(74, 144, 226, 0.1);
  color: var(--iv-white);
}
.iv-mega-dropdown a::after { display: none; }
.iv-mega-dropdown .iv-mega-icon {
  width: 36px;
  height: 36px;
  background: rgba(74, 144, 226, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.iv-mega-dropdown .iv-mega-text strong { display: block; font-size: 14px; margin-bottom: 2px; }
.iv-mega-dropdown .iv-mega-text span { font-size: 12px; color: rgba(255,255,255,0.5); }
.iv-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.iv-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--iv-white);
  transition: var(--iv-transition);
}
@media (max-width: 992px) {
  .iv-nav { display: none; }
  .iv-mobile-toggle { display: flex; }
  .iv-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--iv-navy);
    padding: 24px;
    gap: 16px;
    border-top: 1px solid rgba(74,144,226,0.1);
  }
  .iv-mega-menu .iv-mega-dropdown {
    position: static;
    min-width: auto;
    grid-template-columns: 1fr;
  }
}

/* ========== Hero ========== */
.iv-hero {
  background: var(--iv-navy);
  color: var(--iv-white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.iv-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74,144,226,0.15), transparent 70%);
  pointer-events: none;
}
.iv-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.iv-hero h1 { color: var(--iv-white); margin-bottom: 24px; }
.iv-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 560px;
}
.iv-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.iv-hero-image { position: relative; }
.iv-hero-image img {
  border-radius: var(--iv-radius-lg);
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}
.iv-trust-bar {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.iv-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.iv-trust-item .iv-trust-icon {
  width: 20px;
  height: 20px;
  background: rgba(74,144,226,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--iv-blue);
}
@media (max-width: 768px) {
  .iv-hero { padding: 60px 0 40px; }
  .iv-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .iv-hero-image { order: -1; }
}

/* ========== Section Styles ========== */
.iv-section {
  padding: 100px 0;
}
.iv-section-dark {
  background: var(--iv-navy);
  color: var(--iv-white);
}
.iv-section-dark h2, .iv-section-dark h3 { color: var(--iv-white); }
.iv-section-gray { background: var(--iv-gray-100); }
.iv-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.iv-section-header .iv-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--iv-orange);
  margin-bottom: 12px;
}
.iv-section-header p {
  font-size: 18px;
  color: var(--iv-gray-500);
  line-height: 1.7;
}
.iv-section-dark .iv-section-header p { color: rgba(255,255,255,0.7); }

/* ========== Cards ========== */
.iv-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.iv-card {
  background: var(--iv-white);
  border: 1px solid var(--iv-gray-200);
  border-radius: var(--iv-radius-lg);
  padding: 36px;
  transition: var(--iv-transition);
}
.iv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--iv-shadow-lg);
  border-color: var(--iv-blue);
}
.iv-card-dark {
  background: var(--iv-navy-light);
  border-color: rgba(74,144,226,0.1);
}
.iv-card-dark:hover { border-color: var(--iv-blue); }
.iv-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(74,144,226,0.1);
  border-radius: var(--iv-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--iv-blue);
}
.iv-card h3 { font-size: 20px; margin-bottom: 12px; }
.iv-card p { font-size: 15px; color: var(--iv-gray-500); margin-bottom: 0; }
.iv-card-dark p { color: rgba(255,255,255,0.6); }
.iv-card-dark h3 { color: var(--iv-white); }

/* ========== Stats ========== */
.iv-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.iv-stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--iv-blue);
  line-height: 1;
  margin-bottom: 8px;
}
.iv-section-dark .iv-stat-number { color: var(--iv-orange); }
.iv-stat-label {
  font-size: 15px;
  color: var(--iv-gray-500);
}
.iv-section-dark .iv-stat-label { color: rgba(255,255,255,0.6); }
@media (max-width: 768px) {
  .iv-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ========== Process ========== */
.iv-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.iv-process-step {
  text-align: center;
  padding: 32px 24px;
}
.iv-process-number {
  width: 56px;
  height: 56px;
  background: var(--iv-orange);
  color: var(--iv-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 20px;
}
@media (max-width: 768px) {
  .iv-process-grid { grid-template-columns: 1fr; }
}

/* ========== Testimonials ========== */
.iv-testimonial {
  background: var(--iv-navy-light);
  border: 1px solid rgba(74,144,226,0.1);
  border-radius: var(--iv-radius-lg);
  padding: 40px;
  position: relative;
}
.iv-testimonial::before {
  content: '"';
  font-size: 120px;
  color: rgba(74,144,226,0.1);
  position: absolute;
  top: -20px;
  left: 24px;
  font-family: Georgia, serif;
  line-height: 1;
}
.iv-testimonial blockquote {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.iv-testimonial-author { color: var(--iv-orange); font-weight: 600; font-size: 15px; }

/* ========== CTA Section ========== */
.iv-cta-section {
  background: linear-gradient(135deg, var(--iv-navy), var(--iv-navy-light));
  padding: 100px 0;
  text-align: center;
}
.iv-cta-section h2 { color: var(--iv-white); margin-bottom: 16px; }
.iv-cta-section p { color: rgba(255,255,255,0.7); font-size: 18px; max-width: 600px; margin: 0 auto 32px; }
.iv-cta-section .iv-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.iv-cta-trust {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ========== Footer ========== */
.iv-footer {
  background: var(--iv-navy);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}
.iv-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.iv-footer h4 {
  color: var(--iv-white);
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}
.iv-footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.iv-footer-social { display: flex; gap: 12px; }
.iv-footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--iv-transition);
}
.iv-footer-social a:hover {
  background: var(--iv-blue);
  color: var(--iv-white);
}
.iv-footer-links { list-style: none; }
.iv-footer-links li { margin-bottom: 10px; }
.iv-footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; }
.iv-footer-links a:hover { color: var(--iv-white); }
.iv-footer-newsletter { margin-top: 20px; }
.iv-footer-newsletter form { display: flex; gap: 8px; }
.iv-footer-newsletter input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--iv-radius);
  background: rgba(255,255,255,0.05);
  color: var(--iv-white);
  font-size: 14px;
}
.iv-footer-newsletter button {
  padding: 10px 20px;
  background: var(--iv-orange);
  color: var(--iv-white);
  border: none;
  border-radius: var(--iv-radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: var(--iv-transition);
}
.iv-footer-newsletter button:hover { background: var(--iv-orange-hover); }
.iv-footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.iv-footer-bottom-links { display: flex; gap: 24px; }
.iv-footer-bottom-links a { color: rgba(255,255,255,0.5); }
.iv-footer-bottom-links a:hover { color: var(--iv-white); }
@media (max-width: 768px) {
  .iv-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ========== Case Study Cards ========== */
.iv-case-card {
  border-radius: var(--iv-radius-lg);
  overflow: hidden;
  background: var(--iv-white);
  border: 1px solid var(--iv-gray-200);
  transition: var(--iv-transition);
}
.iv-case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--iv-shadow-lg);
}
.iv-case-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.iv-case-card-body { padding: 28px; }
.iv-case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--iv-blue);
  margin-bottom: 12px;
}
.iv-case-card h3 { font-size: 20px; margin-bottom: 8px; }
.iv-case-card p { font-size: 14px; color: var(--iv-gray-500); }
.iv-case-metric {
  display: inline-block;
  background: rgba(74,144,226,0.1);
  color: var(--iv-blue);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  margin-top: 12px;
}

/* ========== Industries Grid ========== */
.iv-industry-tile {
  text-align: center;
  padding: 40px 24px;
  background: var(--iv-white);
  border: 1px solid var(--iv-gray-200);
  border-radius: var(--iv-radius-lg);
  transition: var(--iv-transition);
}
.iv-industry-tile:hover {
  border-color: var(--iv-blue);
  transform: translateY(-4px);
  box-shadow: var(--iv-shadow);
}
.iv-industry-tile .iv-industry-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(74,144,226,0.1);
  border-radius: var(--iv-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.iv-industry-tile h3 { font-size: 16px; margin-bottom: 0; }

/* ========== Tech Stack ========== */
.iv-tech-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.iv-tech-tab {
  padding: 10px 24px;
  border: 1px solid var(--iv-gray-300);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--iv-transition);
  background: transparent;
  color: var(--iv-gray-700);
}
.iv-tech-tab.active, .iv-tech-tab:hover {
  background: var(--iv-blue);
  color: var(--iv-white);
  border-color: var(--iv-blue);
}

/* ========== Blog Cards ========== */
.iv-blog-card {
  background: var(--iv-white);
  border: 1px solid var(--iv-gray-200);
  border-radius: var(--iv-radius-lg);
  overflow: hidden;
  transition: var(--iv-transition);
}
.iv-blog-card:hover { transform: translateY(-4px); box-shadow: var(--iv-shadow-lg); }
.iv-blog-card img { width: 100%; height: 200px; object-fit: cover; }
.iv-blog-card-body { padding: 24px; }
.iv-blog-card .iv-blog-meta { font-size: 13px; color: var(--iv-gray-500); margin-bottom: 8px; }
.iv-blog-card h3 { font-size: 18px; margin-bottom: 8px; }
.iv-blog-card h3 a { color: var(--iv-navy); }
.iv-blog-card h3 a:hover { color: var(--iv-blue); }

/* ========== Contact Form ========== */
.iv-contact-form input,
.iv-contact-form textarea,
.iv-contact-form select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--iv-gray-300);
  border-radius: var(--iv-radius);
  font-size: 15px;
  font-family: var(--iv-font-body);
  transition: var(--iv-transition);
  margin-bottom: 16px;
}
.iv-contact-form input:focus,
.iv-contact-form textarea:focus {
  outline: none;
  border-color: var(--iv-blue);
  box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
}
.iv-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 768px) {
  .iv-contact-grid { grid-template-columns: 1fr; }
}

/* ========== Page Header ========== */
.iv-page-header {
  background: var(--iv-navy);
  color: var(--iv-white);
  padding: 80px 0 60px;
  text-align: center;
}
.iv-page-header h1 { color: var(--iv-white); margin-bottom: 16px; }
.iv-page-header p { color: rgba(255,255,255,0.7); font-size: 18px; max-width: 640px; margin: 0 auto; }
.iv-breadcrumbs { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.iv-breadcrumbs a { color: rgba(255,255,255,0.7); }
.iv-breadcrumbs a:hover { color: var(--iv-white); }

/* ========== Single Case Study ========== */
.iv-case-hero { position: relative; }
.iv-case-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--iv-radius-lg);
}
.iv-case-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--iv-gray-200);
  border-bottom: 1px solid var(--iv-gray-200);
  margin: 40px 0;
}
.iv-case-meta-item h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--iv-gray-500); margin-bottom: 4px; }
.iv-case-meta-item p { font-weight: 600; font-size: 16px; margin-bottom: 0; }

/* ========== Legal Pages ========== */
.iv-legal-content { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.iv-legal-content h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.iv-legal-content h3 { font-size: 1.25rem; margin: 32px 0 12px; }
.iv-legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.iv-legal-content li { margin-bottom: 8px; }

/* ========== Animations ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.iv-animate { animation: fadeInUp 0.6s ease forwards; }

/* ========== Elementor Overrides ========== */
.elementor-section { padding: 0; }
.elementor-widget-wrap { padding: 0 !important; }
