/**
 * Noventiq Premium Pro Theme Styles
 * Pixel-Perfect Edition
 */

:root {
    --noventiq-red: #ED1C24;
    --noventiq-navy: #002050; /* Noventiq True Dark Navy */
    --azure-blue: #008AD7;
    --azure-light: #00A3FF; /* Sky blue for highlights */
    --bg-light: #F1F5F9;
    --text-main: #334155;
    --text-grey: #64748b;
    --white: #ffffff;
}

/* 1. Global Reset & Typography */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    max-width: 100%;
}

/* Force Global Font to Segoe UI */
:root {
    --e-global-typography-primary-font-family: 'Segoe UI', sans-serif !important;
    --e-global-typography-secondary-font-family: 'Segoe UI', sans-serif !important;
    --e-global-typography-text-font-family: 'Segoe UI', sans-serif !important;
    --e-global-typography-accent-font-family: 'Segoe UI', sans-serif !important;
}

/* Force text elements to use Segoe UI. Avoid using generic tags like span or i to prevent breaking icon fonts */
body, h1, h2, h3, h4, h5, h6, p, a, li, strong, b, em, button, input, textarea, 
.elementor-heading-title, .elementor-widget-text-editor, .elementor-button, .elementor-text-editor,
.btn, .stat-num, .stat-label, .p-card-award-text, .partners-main-title, .partners-sub-title,
.faq-question, .faq-answer, .nav-list-inline li a, .hero-title, .hero-desc, .service-title {
    font-family: 'Segoe UI', wf_segoe-ui_normal, -apple-system, BlinkMacSystemFont, Tahoma, Geneva, Verdana, sans-serif !important;
}

body {
    color: var(--text-main);
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

img, video {
    max-width: 100%;
}

/* Force Full Width for Elementor Boxed Settings */
.elementor-section-boxed > .elementor-container {
    max-width: 1400px !important;
}
.elementor-section.elementor-section-boxed {
    width: 100% !important;
    left: 0 !important;
}
.site-main { width: 100% !important; overflow-x: hidden !important; }

/* ----------------------------------------------------
   🔥 PREMIUM WIDGET FULL-WIDTH BREAKOUT ESCAPE 🔥
   Forces all custom widgets with backgrounds to break out
   of Elementor's restrictive boundaries and span 100% viewport!
------------------------------------------------------- */
.hero-section, .discovery-section, .journey-section, .services-section, .contact-section, .partners-section, .faq-section, .steps-section {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
}

/* Ensure the text inside them STILL aligns with the 1400px grid! */
.hero-section > .container,
.discovery-section > .container,
.journey-section > .container,
.services-section > .container,
.contact-section > .container,
.partners-section > .container,
.faq-section > .container,
.steps-section > .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
}


.container { margin: 0 auto; max-width: 1400px; padding: 0 20px; }
.section-padding { padding: 60px 0; }

h1, h2, h3, h4 { color: var(--noventiq-navy); font-weight: 700; line-height: 1.1; }
h1 { font-size: 52px; margin-bottom: 24px; letter-spacing: -0.02em; }
h2 { font-size: 28px; margin-bottom: 40px; text-transform: none; font-weight: 700; }

/* 2. Professional Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px; /* Pill shape - Identical to screenshot */
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 14px; /* Slightly smaller for premium feel */
    text-transform: none; /* Corporate style is sentence case/caps, not always all caps */
    letter-spacing: 0.2px;
}

.btn-red { 
    background: var(--noventiq-red); 
    color: #fff; 
    box-shadow: 0 4px 14px rgba(237, 28, 36, 0.3);
}
.btn-red:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(237, 28, 36, 0.4); 
}

.btn-azure {
    background: rgba(0, 138, 215, 0.1);
    color: var(--azure-blue);
    border: 1px solid rgba(0, 138, 215, 0.2);
}
.btn-azure:hover {
    background: var(--azure-blue);
    color: #fff;
}

.btn-outline {
    border: 1.5px solid var(--azure-blue);
    color: var(--azure-blue);
}
.btn-outline:hover {
    background: var(--azure-blue);
    color: #fff;
}

/* 3. Responsive Layout Grid Utilities */
.grid-2, .grid-3, .grid-4 { 
    display: grid; 
    gap: 30px; 
    transition: 0.3s;
}

/* Base grid columns - auto-fit for desktop fluid feel */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Responsive Grid Logic */
@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .grid-4, .grid-3, .grid-2 { 
        grid-template-columns: 1fr !important; /* Force stack on Tablet & Mobile */
        gap: 25px;
    }
    .section-padding { padding: 25px 0 !important; }
    h2 { font-size: 24px !important; margin-bottom: 30px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .card-premium { padding: 25px 15px !important; }
}

/* 4. Glassmorphism & Cards */
.corporate-header {
    position: sticky;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: auto;
}

.header-logo-main { height: 42px; display: flex; align-items: center; flex-shrink: 0; }
.header-logo-main img { height: 42px !important; width: auto !important; max-width: none; }

.header-divider { height: 25px; width: 1.5px; background: rgba(0, 45, 100, 0.1); margin: 0 5px; flex-shrink: 0; }

.header-logo-partner { height: 28px; display: flex; align-items: center; flex-shrink: 0; }
.header-logo-partner img { height: 28px !important; width: auto !important; max-width: none; }

@media (max-width: 991px) {
    .header-container { height: 70px !important; }
    .logo-area { gap: 10px !important; }
    .header-logo-main { height: 28px !important; }
    .header-logo-main img { height: 28px !important; }
    .header-logo-partner { height: 20px !important; }
    .header-logo-partner img { height: 20px !important; }
    .header-divider { height: 16px !important; margin: 0 2px !important; }
    .btn-header-contact { margin-left: auto !important; margin-right: 15px !important; padding: 6px 15px !important; font-size: 11px !important; }
}

@media (max-width: 480px) {
    .header-container { height: 60px !important; }
    .logo-area { gap: 6px !important; }
    .header-logo-main { height: 22px !important; }
    .header-logo-main img { height: 22px !important; }
    .header-logo-partner { height: 16px !important; }
    .header-logo-partner img { height: 16px !important; }
    .header-divider { height: 14px !important; margin: 0 !important; }
    .btn-header-contact { padding: 5px 10px !important; font-size: 10px !important; margin-right: 10px !important; }
}

.card-premium {
    background: #fff;
    border-radius: 20px;
    padding: 0; /* Reset global padding to allow flush images */
    box-shadow: 0 16px 40px rgba(0,0,0,0.06); /* Softer, larger shadow */
    border: 1px solid #edf2f7;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 45, 100, 0.12);
}

/* Services Specialized Grid */
.services-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr) 1fr;
    gap: 30px;
}
.gradient-azure {
    background: linear-gradient(90deg, #002D64 0%, #5082E1 100%) !important;
    color: #fff !important;
}
.gradient-azure-reverse {
    background: linear-gradient(90deg, #5082E1 0%, #002D64 100%) !important;
    color: #fff !important;
}
@media (max-width: 991px) {
    .grid-2, .grid-3, .grid-4, .services-grid-layout, .grid-services-top, .grid-services-bottom {
        grid-template-columns: 1fr !important;
    }
}

/* 5. Navigation & Dropdowns */
.nav-list-inline {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px;
}
.nav-list-inline li {
    position: relative;
}
.nav-list-inline li a {
    text-decoration: none;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 600;
    transition: 0.3s;
}
.nav-list-inline li a:hover {
    color: var(--azure-light);
}

/* Dropdown Sub-menu Styling */
.nav-list-inline li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,21,50,0.1);
    list-style: none;
    padding: 15px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    border-radius: 8px;
    z-index: 999;
}
.nav-list-inline li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-list-inline li ul li {
    display: block;
    width: 100%;
}
.nav-list-inline li ul li a {
    padding: 10px 20px;
    display: block;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
}
.nav-list-inline li ul li a:hover {
    background: #f8fafc;
    padding-left: 25px;
}
.nav-list-inline .menu-item-has-children > a::after {
    content: '▾';
    margin-left: 5px;
    font-size: 10px;
    vertical-align: middle;
}

/* 7. Contact Form 7 Normalization */
.noventiq-cf7-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.noventiq-cf7-wrapper .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}
.noventiq-cf7-wrapper .form-input {
    width: 100% !important;
    padding: 12px 20px !important;
    border-radius: 4px !important;
    border: 1.5px solid #CBD5E1 !important;
    background: #EEF2F7 !important;
    font-size: 14px !important;
    color: #1e293b !important;
}
.noventiq-cf7-wrapper .wpcf7-submit {
    background: #002D64 !important;
    color: #fff !important;
    padding: 12px 50px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: none !important;
    cursor: pointer !important;
}
.noventiq-cf7-wrapper .wpcf7-spinner {
    position: absolute;
}

/* 6. Specialized Section Pattern */
.hero-pattern-bg {
    position: absolute;
    top: 0; right: 0; width: 60%; height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjUwMCIgdmlld0JveD0iMCAwIDUwMCA1MDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUwMCAtMTBMNDgwIDUwMEw1MDAgMTBWMTAwWiIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=');
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}


/* 8. Premium Mobile Menu (Slide-in Drawer) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 2001;
}
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--noventiq-navy);
    transition: 0.3s;
}

@media (max-width: 992px) {
    .mobile-menu-toggle { display: flex; }
    
    .main-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 320px;
        height: 100vh;
        background: #fff;
        padding: 100px 30px 40px;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 2000;
        overflow-y: auto;
        display: flex !important;
    }
    
    .header-active .main-nav { right: 0; }
    .header-active .mobile-menu-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .header-active .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
    .header-active .mobile-menu-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    
    .nav-list-inline { flex-direction: column; gap: 15px; width: 100%; }
    .nav-list-inline li { width: 100%; }
    .nav-list-inline li a { font-size: 16px; display: block; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
}

/* FAQ Accordion - Global Logic */
.faq-answer {
    display: none; /* Hidden by default */
}
.faq-item.active .faq-answer {
    display: block;
}
.faq-item.active {
    border-color: #00A3FF !important;
}
