/* ==========================================================================
   PRIMEFLOW FIXES - Complete CSS Override
   Version: 3.0 - Fixes Hero Layout Issue
   ========================================================================== */

/* ==========================================================================
   CSS VARIABLES - MUST BE FIRST!
   ========================================================================== */
:root {
    /* Background Colors */
    --pf-bg-primary: #ffffff;
    --pf-bg-secondary: #f8fafc;
    --pf-bg-tertiary: #f1f5f9;
    
    /* Text Colors */
    --pf-text-primary: #0f172a;
    --pf-text-secondary: #334155;
    --pf-text-muted: #64748b;
    
    /* Brand Colors */
    --pf-primary: #0066CC;
    --pf-primary-rgb: 0, 102, 204;
    --pf-secondary: #1e293b;
    --pf-accent: #FF6B35;
    --pf-accent-rgb: 255, 107, 53;
    --pf-success: #10b981;
    --pf-warning: #f59e0b;
    --pf-error: #ef4444;
    
    /* Grays */
    --pf-gray-400: #9ca3af;
    --pf-gray-500: #6b7280;
    --pf-gray-600: #4b5563;
    
    /* Border */
    --pf-border-color: #e2e8f0;
    
    /* Spacing - CRITICAL FOR HERO */
    --pf-spacing-xs: 0.25rem;
    --pf-spacing-sm: 0.5rem;
    --pf-spacing-md: 1rem;
    --pf-spacing-lg: 1.5rem;
    --pf-spacing-xl: 2rem;
    --pf-spacing-2xl: 3rem;
    --pf-spacing-3xl: 4rem;
    --pf-spacing-4xl: 6rem;
    
    /* Shadows */
    --pf-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --pf-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --pf-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --pf-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Radius */
    --pf-radius-sm: 0.375rem;
    --pf-radius-md: 0.5rem;
    --pf-radius-lg: 0.75rem;
    --pf-radius-xl: 1rem;
    --pf-radius-2xl: 1.5rem;
    
    /* Typography */
    --pf-text-xs: 0.75rem;
    --pf-text-sm: 0.875rem;
    --pf-text-base: 1rem;
    --pf-text-lg: 1.125rem;
    --pf-text-xl: 1.25rem;
    --pf-text-2xl: 1.5rem;
    --pf-text-3xl: 1.875rem;
    --pf-text-4xl: 2.25rem;
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */
.pf-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ==========================================================================
   HERO SECTION - COMPLETE OVERRIDE
   ========================================================================== */
.pf-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f0f9ff 100%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px !important;
}

.pf-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.pf-hero .pf-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ==========================================================================
   HERO GRID LAYOUT - CRITICAL FIX!
   ========================================================================== */
.pf-hero-grid-layout {
    display: grid !important;
    grid-template-columns: 1.1fr 0.9fr !important;
    gap: 4rem !important;
    align-items: center !important;
    min-height: calc(100vh - 200px) !important;
}

/* Hero Content - LEFT SIDE */
.pf-hero-content {
    order: 1 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Hero Visual - RIGHT SIDE */
.pf-hero-visual {
    order: 2 !important;
    position: relative;
}

/* ==========================================================================
   HERO BADGE
   ========================================================================== */
.pf-hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: rgba(0, 102, 204, 0.1) !important;
    color: var(--pf-primary) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
}

.pf-hero-badge-dot {
    width: 8px !important;
    height: 8px !important;
    background: var(--pf-primary) !important;
    border-radius: 50% !important;
    animation: pulse 2s infinite !important;
}

/* ==========================================================================
   HERO TITLE - CRITICAL FIX FOR WORD BREAKING
   ========================================================================== */
.pf-hero-title {
    font-size: 3.25rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: var(--pf-text-primary) !important;
    margin: 0 0 1.5rem 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    
    /* PREVENT WORD BREAKING */
    white-space: normal !important;
    word-break: normal !important;
    word-wrap: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
}

/* Ensure all child elements stay inline */
.pf-hero-title span,
.pf-hero-title strong,
.pf-hero-title em,
.pf-hero-title b {
    display: inline !important;
    white-space: normal !important;
}

/* Remove any BR tags */
.pf-hero-title br {
    display: none !important;
}

/* Gradient text effect */
.pf-hero-title .text-gradient {
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-accent) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline !important;
}

/* ==========================================================================
   HERO SUBTITLE
   ========================================================================== */
.pf-hero-subtitle {
    font-size: 1.2rem !important;
    line-height: 1.7 !important;
    color: var(--pf-text-secondary) !important;
    margin: 0 0 2rem 0 !important;
    max-width: 520px !important;
}

/* ==========================================================================
   HERO BUTTONS
   ========================================================================== */
.pf-hero-actions {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    margin-bottom: 2.5rem !important;
}

.pf-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
    white-space: nowrap !important;
}

.pf-btn-primary {
    background: linear-gradient(135deg, var(--pf-primary) 0%, #0052a3 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4) !important;
}

.pf-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.5) !important;
    color: white !important;
}

.pf-btn-secondary {
    background: white !important;
    color: var(--pf-text-primary) !important;
    border-color: var(--pf-border-color) !important;
    box-shadow: var(--pf-shadow-md) !important;
}

.pf-btn-secondary:hover {
    border-color: var(--pf-primary) !important;
    color: var(--pf-primary) !important;
}

.pf-btn-lg {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
}

/* ==========================================================================
   HERO STATS
   ========================================================================== */
.pf-hero-stats {
    display: flex !important;
    gap: 2.5rem !important;
    flex-wrap: wrap !important;
}

.pf-hero-stat {
    text-align: left !important;
}

.pf-hero-stat-value {
    display: block !important;
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    color: var(--pf-primary) !important;
    line-height: 1 !important;
}

.pf-hero-stat-label {
    font-size: 0.875rem !important;
    color: var(--pf-text-muted) !important;
    margin-top: 0.25rem !important;
    display: block !important;
}

/* ==========================================================================
   HERO VISUAL / ILLUSTRATION
   ========================================================================== */
.pf-hero-illustration {
    background: white !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: var(--pf-shadow-xl) !important;
    max-width: 100% !important;
}

.pf-hero-illustration svg {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* ==========================================================================
   HERO FLOATING CARDS
   ========================================================================== */
.pf-hero-float {
    position: absolute !important;
    z-index: 10 !important;
}

.pf-hero-float-1 {
    top: 20% !important;
    right: -20px !important;
    left: auto !important;
}

.pf-hero-float-2 {
    bottom: 25% !important;
    left: -30px !important;
    right: auto !important;
}

.pf-hero-float-card {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    background: white !important;
    padding: 0.875rem 1.25rem !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
    animation: float 6s ease-in-out infinite !important;
}

.pf-hero-float-2 .pf-hero-float-card {
    animation-delay: -3s !important;
}

.pf-hero-float-icon {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
}

.pf-hero-float-icon-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--pf-success) !important;
}

.pf-hero-float-icon-primary {
    background: rgba(0, 102, 204, 0.1) !important;
    color: var(--pf-primary) !important;
}

.pf-hero-float-text {
    display: flex !important;
    flex-direction: column !important;
}

.pf-hero-float-title {
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: var(--pf-text-primary) !important;
    display: block !important;
}

.pf-hero-float-desc {
    font-size: 0.75rem !important;
    color: var(--pf-text-muted) !important;
}

/* ==========================================================================
   HERO RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .pf-hero-title {
        font-size: 2.75rem !important;
    }
    
    .pf-hero-grid-layout {
        gap: 3rem !important;
    }
}

@media (max-width: 1024px) {
    .pf-hero {
        padding: 100px 0 60px !important;
        min-height: auto !important;
    }
    
    .pf-hero-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center !important;
        min-height: auto !important;
    }
    
    .pf-hero-content {
        order: 1 !important;
        max-width: 100% !important;
    }
    
    .pf-hero-visual {
        order: 2 !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    
    .pf-hero-title {
        font-size: 2.5rem !important;
    }
    
    .pf-hero-subtitle {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .pf-hero-actions {
        justify-content: center !important;
    }
    
    .pf-hero-stats {
        justify-content: center !important;
    }
    
    .pf-hero-stat {
        text-align: center !important;
    }
    
    .pf-hero-float {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .pf-hero {
        padding: 80px 0 40px !important;
    }
    
    .pf-hero-title {
        font-size: 2rem !important;
    }
    
    .pf-hero-subtitle {
        font-size: 1rem !important;
    }
    
    .pf-hero-actions {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .pf-btn {
        width: 100% !important;
        max-width: 280px !important;
    }
    
    .pf-hero-stats {
        gap: 1.5rem !important;
    }
    
    .pf-hero-stat-value {
        font-size: 1.75rem !important;
    }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.pf-services {
    padding: 6rem 0 !important;
    background: white !important;
}

.pf-section-header {
    text-align: center !important;
    margin-bottom: 4rem !important;
}

.pf-section-badge {
    display: inline-block !important;
    background: rgba(0, 102, 204, 0.1) !important;
    color: var(--pf-primary) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.pf-section-title {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    color: var(--pf-text-primary) !important;
    margin: 0 0 1rem 0 !important;
    line-height: 1.2 !important;
}

.pf-section-subtitle {
    font-size: 1.125rem !important;
    color: var(--pf-text-muted) !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
}

.pf-services-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
}

@media (max-width: 1200px) {
    .pf-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .pf-services-grid {
        grid-template-columns: 1fr !important;
    }
}

.pf-service-card {
    background: white !important;
    padding: 2rem !important;
    border-radius: 16px !important;
    border: 1px solid var(--pf-border-color) !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

.pf-service-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--pf-shadow-xl) !important;
    border-color: var(--pf-primary) !important;
}

.pf-service-icon {
    width: 64px !important;
    height: 64px !important;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%) !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1.5rem !important;
    color: var(--pf-primary) !important;
}

.pf-service-icon svg {
    width: 28px !important;
    height: 28px !important;
}

.pf-service-title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: var(--pf-text-primary) !important;
    margin: 0 0 0.75rem 0 !important;
}

.pf-service-desc {
    font-size: 0.9375rem !important;
    color: var(--pf-text-muted) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.pf-about {
    padding: 6rem 0 !important;
    background: var(--pf-bg-secondary) !important;
}

.pf-about-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
    align-items: center !important;
}

@media (max-width: 1024px) {
    .pf-about-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}

.pf-about-image-wrapper {
    position: relative !important;
}

.pf-about-image {
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: var(--pf-shadow-xl) !important;
}

.pf-about-years-badge {
    position: absolute !important;
    bottom: -20px !important;
    left: 30px !important;
    background: linear-gradient(135deg, var(--pf-primary) 0%, #0052a3 100%) !important;
    color: white !important;
    padding: 1.5rem 2rem !important;
    border-radius: 16px !important;
    text-align: center !important;
    box-shadow: var(--pf-shadow-xl) !important;
}

.pf-about-years-number {
    display: block !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.pf-about-years-text {
    font-size: 0.875rem !important;
    opacity: 0.9 !important;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.pf-testimonials {
    padding: 6rem 0 !important;
    background: white !important;
}

.pf-testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
}

@media (max-width: 1024px) {
    .pf-testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .pf-testimonials-grid {
        grid-template-columns: 1fr !important;
    }
}

.pf-testimonial-card {
    background: var(--pf-bg-secondary) !important;
    padding: 2rem !important;
    border-radius: 16px !important;
    border: 1px solid var(--pf-border-color) !important;
}

.pf-testimonial-stars {
    color: #fbbf24 !important;
    margin-bottom: 1rem !important;
}

.pf-testimonial-avatar {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: var(--pf-primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.pf-blog-preview {
    padding: 6rem 0 !important;
    background: var(--pf-bg-secondary) !important;
}

.pf-blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
}

@media (max-width: 1024px) {
    .pf-blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .pf-blog-grid {
        grid-template-columns: 1fr !important;
    }
}

.pf-blog-card {
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: var(--pf-shadow-md) !important;
    transition: all 0.3s ease !important;
}

.pf-blog-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--pf-shadow-xl) !important;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.pf-cta {
    padding: 6rem 0 !important;
    background: linear-gradient(135deg, var(--pf-primary) 0%, #003d7a 100%) !important;
    text-align: center !important;
}

.pf-cta-title {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    color: white !important;
    margin: 0 0 1rem !important;
}

.pf-cta-description {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.125rem !important;
    margin: 0 0 2rem !important;
}

.pf-cta .pf-btn-primary {
    background: white !important;
    color: var(--pf-primary) !important;
}

.pf-cta .pf-btn-secondary {
    background: transparent !important;
    border: 2px solid white !important;
    color: white !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.pf-footer {
    background: var(--pf-text-primary) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 4rem 0 0 !important;
}

.pf-footer-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 3rem !important;
    padding-bottom: 3rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 1024px) {
    .pf-footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 640px) {
    .pf-footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
}

.pf-footer-heading {
    color: white !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 0 1.5rem !important;
}

.pf-footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pf-footer-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
}

.pf-footer-links a:hover {
    color: white !important;
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.pf-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 1000 !important;
    padding: 1rem 0 !important;
    box-shadow: var(--pf-shadow-sm) !important;
}

.pf-nav-link:hover,
.pf-nav-link.active {
    color: var(--pf-primary) !important;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.pf-animate {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.pf-animate-up {
    animation: fadeInUp 0.6s ease forwards;
}

.pf-delay-1 { animation-delay: 0.1s; }
.pf-delay-2 { animation-delay: 0.2s; }
.pf-delay-3 { animation-delay: 0.3s; }
.pf-delay-4 { animation-delay: 0.4s; }