/* Construction Theme */

:root {
    /* Primary Colors - Construction/Building theme */
    --primary: #2563eb;        /* Strong blue - trust & professionalism */
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;

    /* Secondary Colors - Construction accent */
    --secondary: #f97316;      /* Safety orange - construction accent */
    --secondary-dark: #ea580c;
    --secondary-light: #fb923c;

    /* Success - Verified/Active */
    --success: #16a34a;
    --success-light: #22c55e;

    /* Warning - Attention needed */
    --warning: #eab308;

    /* Danger - Issues */
    --danger: #dc2626;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Trust Levels */
    --gold: #fbbf24;
    --silver: #94a3b8;
    --bronze: #d97706;

    /* Spacing */
    --section-spacing: 5rem;
}

/* Override Bootstrap primary color */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

/* Secondary button */
.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Search Bar */
.search-bar {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-bar input {
    height: 60px;
    padding-left: 3rem;
    padding-right: 150px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    font-size: 1.1rem;
}

.search-bar .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 30px; /* Vertically center for 60px height */
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.5rem;
    z-index: 10; /* Ensure icon is above input */
}

.search-bar .btn {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 50px;
    border-radius: 50px;
    padding: 0 2rem;
}

/* Trust Badge */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.trust-badge.badge-gold {
    background-color: #fef3c7;
    color: #92400e;
}

.trust-badge.badge-silver {
    background-color: #f1f5f9;
    color: #334155;
}

.trust-badge.badge-bronze {
    background-color: #fed7aa;
    color: #7c2d12;
}

.trust-badge i {
    font-size: 1.2rem;
}

/* Trust Score Circle */
.trust-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    background: conic-gradient(
        var(--primary) 0deg,
        var(--primary) calc(var(--score) * 3.6deg),
        var(--gray-200) calc(var(--score) * 3.6deg)
    );
}

.trust-score-circle::before {
    content: '';
    position: absolute;
    width: 83.33%;
    height: 83.33%;
    border-radius: 50%;
    background: white;
}

.trust-score-circle .score-value {
    position: relative;
    z-index: 1;
    font-size: 2rem;
}

.trust-score-circle .score-label {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 400;
}

/* Card Styles */
.card-hover {
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

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

/* Region Cards */
.region-card {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.region-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.15);
    transform: translateY(-3px);
}

.region-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.region-card .count {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Category Cards */
.category-card {
    text-decoration: none;
    display: block;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s ease;
    color: inherit;
}

.category-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.15);
    transform: translateY(-3px);
}

.category-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Company Card */
.company-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.company-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.company-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.company-card .location {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Verification Icons */
.verify-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--success);
}

.verify-icon i {
    font-size: 1rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
}

/* How It Works */
.how-it-works-step {
    text-align: center;
    padding: 2rem;
}

.how-it-works-step .step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.how-it-works-step h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* CTA Strip */
.cta-strip {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-strip h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-strip .btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Company Profile Header */
.company-header {
    background: var(--gray-50);
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.company-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.info-item i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.info-item .label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.info-item .value {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Sticky CTA Bar */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--primary);
    padding: 1rem 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Filters */
.filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border-color: var(--gray-300);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .search-bar input {
        height: 50px;
        padding-right: 60px;
        font-size: 1rem;
    }

    .search-bar .btn {
        position: relative;
        right: auto;
        top: auto;
        margin-top: 1rem;
        width: 100%;
    }

    .search-bar .search-icon {
        top: 25px; /* Vertically center for 50px height */
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Utilities */
.text-muted {
    color: var(--gray-600) !important;
}

.bg-light {
    background-color: var(--gray-50) !important;
}

.border {
    border-color: var(--gray-200) !important;
}
