/* Larrycroft Information Services - Professional Website Styles */

:root {
    /* Primary Colors - Modern Vibrant Blue for Tech/Finance */
    --lc-primary: #0066FF;
    --lc-primary-dark: #0052CC;
    --lc-primary-light: #338FFF;
    
    /* Secondary Colors - Vibrant Gold/Amber for Zambian heritage */
    --lc-secondary: #FFB800;
    --lc-secondary-dark: #E6A600;
    --lc-secondary-light: #FFC933;
    
    /* Accent Colors - Modern, Vibrant */
    --lc-accent-green: #00C853;
    --lc-accent-teal: #00BCD4;
    --lc-accent-purple: #7C4DFF;
    --lc-accent-pink: #FF4081;
    
    /* Neutrals - Modern, Clean */
    --lc-dark: #0A1628;
    --lc-gray-dark: #1F2937;
    --lc-gray: #6B7280;
    --lc-gray-light: #F3F4F6;
    --lc-light: #F9FAFB;
    --lc-white: #ffffff;
    
    /* Modern Gradients with multiple stops */
    --lc-gradient-primary: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
    --lc-gradient-hero: linear-gradient(135deg, #0052CC 0%, #0066FF 40%, #00BCD4 100%);
    --lc-gradient-secondary: linear-gradient(135deg, #FFB800 0%, #FF8A00 100%);
    --lc-gradient-accent: linear-gradient(135deg, #00C853 0%, #00BCD4 100%);
    --lc-gradient-purple: linear-gradient(135deg, #7C4DFF 0%, #536DFE 100%);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--lc-dark);
    margin: 0;
    padding: 0;
}

/* Text Selection Styles */
::selection {
    background: rgba(0, 102, 255, 0.3);
    color: inherit;
}

::-moz-selection {
    background: rgba(0, 102, 255, 0.3);
    color: inherit;
}

/* Light text selection for dark backgrounds */
.hero ::selection,
.section-dark ::selection,
.cta-section ::selection,
.page-header ::selection,
.footer ::selection {
    background: rgba(255, 255, 255, 0.3);
    color: inherit;
}

.hero ::-moz-selection,
.section-dark ::-moz-selection,
.cta-section ::-moz-selection,
.page-header ::-moz-selection,
.footer ::-moz-selection {
    background: rgba(255, 255, 255, 0.3);
    color: inherit;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--lc-primary);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users, keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Accessible focus for interactive elements */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-outline:focus-visible {
    outline: 2px solid var(--lc-secondary);
    outline-offset: 3px;
}

/* Focus styles for buttons on dark backgrounds */
.hero a:focus-visible,
.hero button:focus-visible,
.cta-section a:focus-visible,
.cta-section button:focus-visible,
.section-dark a:focus-visible,
.section-dark button:focus-visible {
    outline-color: var(--lc-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--lc-gray-dark);
}

/* Links & Buttons */
a {
    color: var(--lc-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--lc-primary-light);
}

.btn-primary {
    background: var(--lc-gradient-primary);
    border: none;
    color: var(--lc-white);
    padding: 0.875rem 2.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.35);
    background: linear-gradient(135deg, #338FFF 0%, #0066FF 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--lc-white);
    color: var(--lc-white);
    padding: 0.875rem 2.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--lc-white);
    color: var(--lc-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--lc-primary);
    color: var(--lc-primary);
    padding: 0.875rem 2.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--lc-gradient-primary);
    color: var(--lc-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25);
    border-color: transparent;
}

/* Header / Navigation */
.header {
    background: var(--lc-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lc-primary);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--lc-gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lc-white);
    font-weight: bold;
    font-size: 1.25rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--lc-gray-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--lc-primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--lc-secondary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--lc-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: var(--lc-gradient-hero);
    color: var(--lc-white);
    padding: 8rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, -50px) rotate(180deg); }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: 5rem 1.5rem;
}

.section-light {
    background: var(--lc-light);
}

.section-dark {
    background: var(--lc-dark);
    color: var(--lc-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--lc-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--lc-gradient-secondary);
    border-radius: 2px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--lc-gradient-primary);
    border-radius: 2px;
    z-index: 1;
}

.section-dark .section-header h2 {
    color: var(--lc-white);
}

.section-header p {
    max-width: 600px;
    margin: 1.5rem auto 0;
    color: var(--lc-gray);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--lc-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 102, 255, 0.1);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--lc-gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--lc-white);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.25);
}

/* For SVG image icons */
.card-icon-svg {
    background: none !important;
    box-shadow: none !important;
    padding: 0;
}

.card-icon-svg img,
.industry-icon img {
    width: 64px;
    height: 64px;
}

.industry-icon img {
    width: 80px;
    height: 80px;
}

.card h3 {
    color: var(--lc-dark);
    margin-bottom: 1rem;
}

.card p {
    color: var(--lc-gray);
    margin-bottom: 0;
}

/* Feature Cards */
.feature-card {
    background: var(--lc-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-card-header {
    background: var(--lc-gradient-primary);
    color: var(--lc-white);
    padding: 2rem;
    text-align: center;
}

.feature-card-body {
    padding: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--lc-gray-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    color: var(--lc-accent-green);
    font-weight: bold;
}

/* Industry Cards */
.industry-card {
    background: var(--lc-white);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--lc-secondary);
    position: relative;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--lc-gradient-secondary);
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.industry-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--lc-secondary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--lc-dark);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--lc-gray-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--lc-primary);
    box-shadow: 0 0 0 3px rgba(13, 79, 139, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.footer {
    background: var(--lc-dark);
    color: var(--lc-white);
    padding: 4rem 1.5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-section h4 {
    color: var(--lc-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--lc-secondary);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-column-content h2 {
    color: var(--lc-primary);
}

/* CTA Section */
.cta-section {
    background: var(--lc-gradient-primary);
    color: var(--lc-white);
    text-align: center;
    padding: 4rem 1.5rem;
}

.cta-section h2 {
    color: var(--lc-white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Page Headers */
.page-header {
    background: var(--lc-gradient-primary);
    color: var(--lc-white);
    padding: 4rem 1.5rem;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--lc-primary); }
.text-secondary { color: var(--lc-secondary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Responsive Design */
@media (max-width: 992px) {
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--lc-white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--lc-gray-light);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 4rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Form Validation Styles */
.valid.modified:not([type=checkbox]) {
    outline: 2px solid var(--lc-accent-green);
}

.invalid {
    outline: 2px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Blazor Error UI */
.blazor-error-boundary {
    background: url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YxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 8px;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

#blazor-error-ui {
    background: #b32121;
    color: white;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    text-align: center;
    display: none;
}

#blazor-error-ui .dismiss,
#blazor-error-ui .reload {
    cursor: pointer;
    margin-left: 1rem;
    color: white;
}