/* Ind-FinITy Corporate Services - Custom Styles */

/* Typography and Spacing Enhancements */
body {
    font-family: 'Crimson Text', 'Source Serif Pro', serif;
    letter-spacing: 0.01em;
    line-height: 1.7;
    font-size: 1.1rem !important; /* Balanced base font size for good readability */
}

/* Balanced font size overrides for comfortable readability */
.text-sm {
    font-size: 1rem !important; /* Comfortable small text size */
}

.text-base {
    font-size: 1.125rem !important; /* Slightly enhanced base size */
}

.text-lg {
    font-size: 1.25rem !important; /* Good size for main content */
}

.text-xl {
    font-size: 1.375rem !important; /* Appropriate for headings */
}

/* Specific content areas with enhanced readability */
p, li, td, .body-text {
    font-size: 1.2rem !important; /* Enhanced but not overwhelming */
    line-height: 1.8;
}

/* Service descriptions and key content */
.service-description, .about-text, .contact-text {
    font-size: 1.25rem !important; /* Clear reading without being too large */
    line-height: 1.8;
}

/* Navigation text */
.nav-link, nav a {
    font-size: 1.05rem !important; /* Clear but proportional navigation */
}

/* Form labels and inputs */
label, input, textarea, select {
    font-size: 1.1rem !important;
}

/* Button text - balanced sizing */
button, .btn, a[class*="bg-"] {
    font-size: 1.125rem !important;
    padding: 0.75rem 1.25rem !important;
}

/* Footer and smaller text */
footer p, footer li, .footer-text {
    font-size: 1rem !important;
}

/* Card content */
.card p, .card-body p, .professional-card p {
    font-size: 1.2rem !important;
    line-height: 1.8;
}

/* List items */
ul li, ol li {
    font-size: 1.2rem !important;
    line-height: 1.8;
}

/* Team member information */
.team-member p, .team-member li {
    font-size: 1.15rem !important;
}

/* Headings - proportional hierarchy */
h1, .text-4xl, .text-5xl {
    font-size: 2.25rem !important;
}

h2, .text-3xl {
    font-size: 1.875rem !important;
}

h3, .text-2xl {
    font-size: 1.5rem !important;
}

/* Mobile responsive font adjustments */
@media (max-width: 768px) {
    body {
        font-size: 1.05rem !important;
    }
    
    .service-description, .about-text, .contact-text {
        font-size: 1.15rem !important;
    }
    
    p, li, td, .body-text {
        font-size: 1.1rem !important;
    }
    
    button, .btn, a[class*="bg-"] {
        font-size: 1.05rem !important;
        padding: 0.75rem 1rem !important;
    }
}

.font-heading {
    font-family: 'Source Serif Pro', serif;
    letter-spacing: 0.02em;
}

/* Enhanced white space and breathing room */
.section-spacing {
    padding: 6rem 0;
}

@media (min-width: 768px) {
    .section-spacing {
        padding: 8rem 0;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom gradient backgrounds */
.gradient-brand {
    background: linear-gradient(135deg, #374151 0%, #1F2937 100%);
}

.gradient-brand-light {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
}

/* Enhanced hover effects */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Professional typography enhancements */
.text-balance {
    text-wrap: balance;
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #4B5563 0%, #374151 100%);
    box-shadow: 0 4px 6px -1px rgba(75, 85, 99, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #374151 0%, #1F2937 100%);
    box-shadow: 0 6px 8px -1px rgba(75, 85, 99, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    border: 2px solid #374151;
    background: transparent;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(55, 65, 81, 0.3);
}

/* Navigation enhancements */
.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #1F2937;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #4B5563;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Professional card styling */
.professional-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.professional-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Icon styling */
.icon-gradient {
    background: linear-gradient(135deg, #DC2626, #EA580C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        line-height: 1.4;
    }
}

/* Loading animation for smooth page transitions */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus states for accessibility */
.focus-ring:focus {
    outline: 2px solid #DC2626;
    outline-offset: 2px;
}

/* Professional spacing */
.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 0;
    }
}

/* Custom animations */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in-left {
    animation: slideInFromLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .page-break {
        page-break-before: always;
    }
}