/* 
 * Accredited Inspection Agency
 * Custom Stylesheet
 */

:root {
    --primary-color: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0d1f3c;
    --secondary-color: #3182ce;
    --accent-color: #ed8936;
    --text-dark: #1a202c;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--primary-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.875rem;
}

.top-bar a {
    color: var(--white);
}

/* Navbar */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.625rem 1.5rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px;
}

.hero-section h1 {
    color: var(--white);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
    justify-content: center;
    margin-bottom: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item.active {
    color: var(--white);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 2rem;
}

/* Service Cards */
.service-card {
    text-align: center;
    height: 100%;
}

.service-card .icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-card .icon-box i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h5 {
    margin-bottom: 1rem;
}

/* Feature Box */
.feature-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feature-box .icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-box .icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Stats */
.stat-box {
    text-align: center;
    padding: 2rem;
}

.stat-box .number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-box .label {
    color: var(--text-muted);
    font-size: 1rem;
}

/* About Section */
.about-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.founder-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.founder-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    height: 100%;
}

.contact-info-box h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section .btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 600;
}

/* Admin Styles */
.admin-sidebar {
    background: var(--primary-dark);
    min-height: 100vh;
    padding: 1.5rem;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
}

.admin-sidebar .nav-link i {
    margin-right: 0.75rem;
}

.stat-card {
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: var(--white);
}

.stat-card.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

.stat-card.bg-success {
    background: linear-gradient(135deg, #38a169, #48bb78) !important;
}

.stat-card.bg-warning {
    background: linear-gradient(135deg, #d69e2e, #ecc94b) !important;
}

.stat-card.bg-info {
    background: linear-gradient(135deg, #3182ce, #63b3ed) !important;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: var(--text-dark);
    border-bottom-width: 1px;
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .navbar-nav .btn {
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Brand Text */
.brand-text {
    font-size: 1.1rem;
    line-height: 1.2;
}

/* Certificate Cards */
.certificate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.cert-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.bg-primary-subtle {
    background-color: rgba(26, 54, 93, 0.1) !important;
}

/* Icon Box General */
.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--white);
}

/* Job Cards */
.job-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}