/**
 * Freight Factoring Inc. - Main Stylesheet
 * Modern, enterprise-level styling with dark blue theme
 */

:root {
    /* Modern Color Palette - 2024-2025 Design Trends */
    --primary-color: #1E40AF; /* Modern vibrant blue */
    --primary-dark: #1E3A8A; /* Deep blue */
    --primary-light: #3B82F6; /* Light blue */
    --primary-gradient: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    --primary-gradient-dark: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
    
    --secondary-color: #0EA5E9; /* Sky blue */
    --secondary-light: #06B6D4; /* Cyan */
    
    --accent-color: #F97316; /* Modern vibrant orange */
    --accent-light: #FB923C; /* Light orange */
    --accent-gradient: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
    
    --success-color: #10B981; /* Modern green */
    --error-color: #EF4444; /* Modern red */
    --warning-color: #F59E0B; /* Modern amber */
    --info-color: #3B82F6; /* Modern blue */
    
    --text-dark: #1F2937; /* Dark gray */
    --text-gray: #6B7280; /* Medium gray */
    --text-light: #9CA3AF; /* Light gray */
    --text-white: #FFFFFF;
    
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB; /* Very light gray */
    --bg-gray: #F3F4F6; /* Light gray */
    --bg-dark: #111827; /* Dark background */
    --bg-gradient: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
    
    --border-color: #E5E7EB; /* Light border */
    --border-light: #F3F4F6;
    
    /* Modern Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 10px 25px -5px rgba(30, 64, 175, 0.3);
    --shadow-accent: 0 10px 25px -5px rgba(249, 115, 22, 0.3);
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    background: var(--bg-gradient);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Remove any unwanted sidebars */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: 3.5rem; 
    font-weight: 800;
    color: var(--text-dark);
}

/* H1 on light backgrounds - use gradient */
.section.bg-light h1,
.bg-light h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* H1 on dark backgrounds - use white */
section[style*="background"] h1,
.bg-primary h1,
.page-header h1,
.hero-section h1 {
    color: white !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    -webkit-text-fill-color: white !important;
    background: none !important;
}

h2 { 
    font-size: 2.75rem; 
    font-weight: 700;
    color: var(--text-dark);
}

h3 { font-size: 2rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Skip to Content (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    z-index: 10000;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
}

/* Top Bar */
.top-bar {
    background: var(--primary-gradient-dark);
    color: white;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-link {
    color: white;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.top-bar-link:hover {
    color: var(--accent-light);
    transform: translateY(-1px);
}

.top-bar-separator {
    color: rgba(255, 255, 255, 0.3);
}

.btn-quote-top {
    background: var(--accent-gradient);
    color: white;
    padding: 0.6rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: none;
}

.btn-quote-top:hover {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

/* Header/Navigation */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 50px;
    width: auto;
    display: inline-block;
}

.logo-img svg {
    height: 50px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-primary);
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
    position: relative;
    border-radius: var(--radius-md);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(30, 64, 175, 0.05);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(30, 64, 175, 0.1);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.btn-nav-cta {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.btn-nav-cta:hover {
    background: var(--primary-gradient-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Buttons - Modern Design */
.btn {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.025em;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-gradient-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.3);
}

.btn-accent {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
}

.btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Outline button on dark background (hero section) */
.hero-section .btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.hero-section .btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Outline button on light background */
.btn-outline-primary-light {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary-light:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section - Modern Design */
.hero-section {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #3B82F6 100%);
    color: white;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.2) 0%, transparent 50%);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    color: white;
    text-align: center;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    line-height: 1.8;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-image svg {
    max-width: 100%;
    height: auto;
}

/* Trust Indicators */
.trust-indicators {
    background: white;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.trust-item {
    text-align: center;
    padding: 1rem;
}

.trust-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}

.trust-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styles */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    position: relative;
}

/* Section titles on light backgrounds - use gradient text */
.section.bg-light .section-title h2,
.bg-light .section-title h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section titles on dark backgrounds - use white text */
section[style*="background"] .section-title h2,
.bg-primary .section-title h2,
.page-header .section-title h2 {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    -webkit-text-fill-color: white !important;
    background: none !important;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 5rem 0;
    background: var(--primary-gradient-dark);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(249, 115, 22, 0.2) 0%, transparent 50%);
    z-index: 0;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.98);
    font-size: 1.3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Cards - Modern Design */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.card-icon i {
    color: white;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-primary);
}

/* Icon Colors - Modern Scheme */
.text-primary i,
i.text-primary {
    color: var(--primary-color) !important;
}

.service-icon i {
    color: var(--primary-color);
}

.card-icon i.fas,
.card-icon i.far,
.card-icon i.fab {
    color: white;
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-gray);
}

/* Service Cards */
.service-card {
    padding: 2.5rem;
    text-align: center;
    background: white;
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Testimonials */
.testimonial-card {
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h5 {
    margin: 0;
    color: var(--primary-color);
}

.testimonial-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.testimonial-rating {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-rating i {
    filter: drop-shadow(0 2px 4px rgba(249, 115, 22, 0.3));
}

/* Process Steps */
.process-steps {
    position: relative;
    padding: 4rem 0;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 2.5rem;
    transition: all var(--transition-normal);
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 90px;
    height: 90px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: all var(--transition-normal);
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    opacity: 0.3;
    z-index: -1;
    transition: all var(--transition-normal);
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: var(--shadow-primary);
}

.process-step:hover .step-number::after {
    transform: scale(1.2);
    opacity: 0.5;
}

.step-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step-description {
    color: var(--text-gray);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-step {
    min-height: 400px;
}

.form-step h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-gradient);
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-check {
    margin-bottom: 0.75rem;
}

.form-check-label {
    margin-left: 0.5rem;
    color: var(--text-gray);
    cursor: pointer;
}

/* Contact Page Specific Styles */
#contact-form {
    max-width: 100%;
}

#contact-form .form-group {
    margin-bottom: 1.75rem;
}

#contact-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

#contact-form .form-control {
    border: 2px solid var(--border-color);
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    font-size: 1rem;
}

#contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
    outline: none;
}

#contact-form .form-control:hover {
    border-color: var(--primary-light);
}

#contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-success {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
    color: white;
    margin-top: 6rem !important;
    position: relative;
    overflow: hidden;
    clear: both;
    z-index: 0;
}

/* Contact page footer - ensure it doesn't overlap */
.contact-section + .main-footer,
body:has(.contact-section) .main-footer {
    margin-top: 8rem !important;
}

/* Ensure footer doesn't overlap content on any page */
main {
    padding-bottom: 4rem !important;
}

main:before {
    content: '';
    display: block;
    height: 4rem;
    clear: both;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
    opacity: 0.3;
}

.footer-top {
    padding: 4rem 0 2rem;
}

.footer-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.newsletter-form {
    margin-top: 1.5rem;
}

.newsletter-form .input-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.newsletter-form .form-control {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    outline: none;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .btn {
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-normal);
}

.newsletter-form .btn:hover {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.2);
}

.copyright,
.tagline {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* Lists */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

ul li, ol li {
    margin-bottom: 0.75rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.list-unstyled {
    list-style: none;
    padding-left: 0;
}

.list-unstyled li {
    margin-bottom: 1rem;
}

/* Card Body */
.card-body {
    padding: 2rem;
}

.card-body h3, .card-body h4, .card-body h5 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.card-body h3 {
    font-size: 1.5rem;
}

.card-body h4 {
    font-size: 1.25rem;
}

.card-body h5 {
    font-size: 1.1rem;
}

/* Accordion */
.accordion {
    margin-bottom: 2rem;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.accordion-button {
    background-color: white;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.5rem 1.75rem;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-button::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: all var(--transition-normal);
    flex-shrink: 0;
    margin-left: 1rem;
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 50%;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.accordion-button:not(.collapsed)::after {
    content: '−';
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(0deg);
    color: white;
}

.accordion-button:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: var(--primary-color);
}

.accordion-button:hover::after {
    background: rgba(30, 64, 175, 0.2);
    transform: scale(1.1);
}

.accordion-button:not(.collapsed):hover::after {
    background: rgba(255, 255, 255, 0.35);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-gradient);
    color: white;
}

.accordion-button:not(.collapsed)::after {
    color: white;
    background: rgba(255, 255, 255, 0.25);
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
    outline: none;
    border: none;
}

.accordion-body {
    padding: 1.75rem;
    color: var(--text-gray);
    line-height: 1.8;
    background: white;
    font-size: 1.05rem;
}

/* CTA Sections - Modern Design */
section[style*="linear-gradient"] {
    text-align: center;
    position: relative;
    overflow: hidden;
}

section[style*="linear-gradient"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(249, 115, 22, 0.2) 0%, transparent 50%);
    z-index: 0;
}

section[style*="linear-gradient"] .container {
    position: relative;
    z-index: 1;
}

section[style*="linear-gradient"] .row {
    justify-content: center;
    align-items: center;
}

section[style*="linear-gradient"] h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

section[style*="linear-gradient"] p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Modern bg-primary class */
.bg-primary {
    background: var(--primary-gradient-dark) !important;
    position: relative;
    overflow: hidden;
}

.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(249, 115, 22, 0.2) 0%, transparent 50%);
    z-index: 0;
}

.bg-primary > * {
    position: relative;
    z-index: 1;
}

/* Lead Text */
.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Text Alignment Helpers */
.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

/* Modern Badge Styles */
.badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
}

.badge.bg-primary {
    background: var(--primary-gradient) !important;
    color: white;
}

/* Modern Alert Styles */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-md);
}

.alert-info {
    background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
    color: #1E40AF;
    border-left: 4px solid var(--info-color);
}

/* Modern Form Styles */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    background: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
    outline: none;
    background: white;
}

.form-control:hover {
    border-color: var(--primary-light);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

/* Blog Card Improvements */
.card-img-top {
    background: var(--bg-light);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.card-img-top svg {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
}

article.card {
    transition: all var(--transition-normal);
}

article.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

article.card .card-title a {
    color: var(--text-dark);
    transition: color var(--transition-fast);
}

article.card .card-title a:hover {
    color: var(--primary-color);
}

/* Content Section Improvements */
.content-section {
    line-height: 1.8;
}

.content-section h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-gradient);
}

.content-section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-section ul,
.content-section ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.content-section p {
    margin-bottom: 1.25rem;
}


/* Hide Need a Quote card - Target second card in right column */
.contact-section .col-lg-4 .card:nth-child(2),
.contact-section .col-lg-4 > .card + .card,
.contact-section .card.mt-4,
.contact-section .col-lg-4 .card:last-of-type:not(:first-of-type) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
}

/* Hide card-body with text-center that contains "Need a Quote?" */
.contact-section .card-body.text-center:has(h4:contains("Need a Quote")),
.contact-section .card:has(.card-body.text-center h4:contains("Need a Quote")) {
    display: none !important;
}

/* Hide second card in right column - more specific */
.contact-section .row:last-child .col-lg-4 .card:nth-child(2),
.contact-section .row:last-child .col-lg-4 > .card + .card,
.contact-section .row .col-lg-4 .card:nth-child(2) {
    display: none !important;
}

/* Ensure contact section has enough space */
.contact-section {
    padding-bottom: 8rem !important;
    margin-bottom: 4rem !important;
    min-height: auto !important;
    position: relative;
    z-index: 1;
}

/* Contact section container */
.contact-section .container {
    padding-bottom: 2rem;
}

/* Contact section row */
.contact-section .row:last-child {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
}

/* Ensure main-content has proper spacing on contact page */
.contact-section ~ *,
body .contact-section + * {
    clear: both;
}

/* Prevent footer from overlapping content on contact page */
.contact-section + .main-footer,
body:has(.contact-section) .main-footer {
    margin-top: 0 !important;
    position: relative !important;
    clear: both !important;
}

/* Ensure main-content wrapper has space */
#main-content:has(.contact-section) {
    padding-bottom: 6rem !important;
}

/* Ensure sections have proper spacing before footer */
section:last-of-type {
    margin-bottom: 4rem;
    padding-bottom: 6rem !important;
}

/* Ensure main content has proper spacing */
#main-content {
    padding-bottom: 6rem !important;
    min-height: calc(100vh - 400px);
}

/* Extra padding for the last section to prevent footer overlap */
.section:last-of-type {
    padding-bottom: 8rem !important;
    margin-bottom: 2rem !important;
}

/* Ensure sections with background gradients also have proper spacing */
section[style*="linear-gradient"]:last-of-type {
    padding-bottom: 8rem !important;
    margin-bottom: 2rem !important;
}

/* Ensure Requirements Section and similar sections with cards have proper spacing */
.section.bg-light {
    padding-bottom: 6rem !important;
}

.section.bg-light:last-of-type {
    padding-bottom: 8rem !important;
}

/* Ensure cards within sections have proper bottom margin */
.section .card {
    margin-bottom: 2rem;
}

/* Prevent content from being hidden under footer */
.section .row:last-child {
    margin-bottom: 0;
    padding-bottom: 2rem;
}

/* Specific fix for Requirements section and similar card sections */
.section.bg-light .container {
    padding-bottom: 2rem;
}

/* Ensure all sections within main-content have visible spacing */
#main-content section {
    position: relative;
    z-index: 1;
}

/* Progress Bar Improvements */
.progress {
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--bg-light);
    overflow: hidden;
}

.progress-bar {
    background: var(--primary-gradient);
    transition: width 0.6s ease;
}

/* Responsive Text */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2.25rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .page-header {
        padding: 4rem 0;
    }
    
    .hero-section {
        padding: 5rem 0;
    }
}

/* Utility Classes */
.text-primary { 
    color: var(--primary-color); 
}

.bg-light { 
    background-color: var(--bg-light); 
}

.bg-gradient-primary {
    background: var(--primary-gradient);
}

.bg-gradient-accent {
    background: var(--accent-gradient);
}
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-4 { padding: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

