/* ====================================
   Global Typography Overrides
   Enterprise-Grade Font System
   ==================================== */

/* Apply Inter font globally to ALL existing components */
body,
.section,
.box-icon-2,
.card,
.feature-item,
.industry-card,
.testimonial-card,
.stat-item,
.cta-section,
.navbar,
.footer,
input,
textarea,
select,
button,
.btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Override any Open Sans remnants */
.section-heading,
.section-subheading,
.caption-heading,
.excerpt,
h1,
h2,
h3,
h4,
h5,
h6,
.heading,
.title,
.description,
.body-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Professional Image Treatment */
.img-responsive,
img {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure smooth rendering on all text */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Professional Image Container Styles */
.image-wrapper,
.box-image-1 .image,
.service-image,
.hero-image {
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.image-wrapper img,
.box-image-1 .image img,
.service-image img {
    transition: transform var(--transition-slow);
}

.image-wrapper:hover img,
.box-image-1:hover .image img {
    transform: scale(1.05);
}

/* Standardize all card images */
.box-image-1 .image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.box-image-1 .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Professional overlay for images */
.box-image-1 .image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

/* Icon consistency */
.icofont,
.fa {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Standardize icon sizes across the site */
.icofont-2x {
    font-size: 2em !important;
}

.icofont-3x {
    font-size: 3em !important;
}

.icofont-4x {
    font-size: 4em !important;
}

.icofont-5x {
    font-size: 5em !important;
}

/* Professional color overlays for section backgrounds */
.section-border {
    position: relative;
}

/* Ensure consistent button fonts */
.btn,
.btn-primary,
.btn-secondary,
.btn-lg,
a.btn {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
}

/* Navigation font consistency - INCREASED */
.navbar-nav>li>a,
.dropdown-menu>li>a,
.megamenu li a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
    font-size: 1.125rem !important;
    /* 18px */
}

/* Footer font consistency */
.footer,
.footer h4,
.footer p,
.footer a {
    font-family: 'Inter', sans-serif !important;
}

/* Form elements uniformity */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: all var(--transition-base);
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(1, 118, 211, 0.1);
    outline: none;
}

/* Professional label styling */
label {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

/* Standardize description text */
.description p,
.body-content p,
.box-icon-2 p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Section title uniformity */
.section .section-heading {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section .section-subheading {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Card title consistency */
.box-icon-2 h4,
.box-image-1 h4,
.feature-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

/* Megamenu professional styling - LARGER FONT & ICON SIZES */
.megamenu li a {
    padding: 16px 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 1.125rem !important;
    /* 18px */
    line-height: 1.5;
}

.megamenu li a:hover {
    background: var(--bg-secondary);
    color: var(--primary-blue);
}

.megamenu li a strong {
    font-weight: 600;
    font-size: 1.25rem !important;
    /* 20px */
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.megamenu li a span {
    font-size: 1.0625rem !important;
    /* 17px */
    color: var(--text-tertiary);
    display: block;
    font-weight: 400;
    line-height: 1.5;
}

/* Megamenu icon sizing */
.megamenu li a i,
.megamenu li a .icofont,
.megamenu li a .fa {
    font-size: 24px !important;
    min-width: 28px;
    text-align: center;
    margin-top: 2px;
}

/* Hero slider caption uniformity */
.wrap-caption .caption-heading {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.wrap-caption .excerpt {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
    .section .section-heading {
        font-size: 32px;
    }

    .wrap-caption .caption-heading {
        font-size: 36px;
    }

    .wrap-caption .excerpt {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Professional stat display */
.stat-item .stat-number {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-item .stat-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}