/**
 * Compliance Records LLC - Custom Styles
 * Mobile-first responsive design
 */

/* ============================================
   CSS Variables & Brand Colors
   ============================================ */
:root {
    --primary-blue: #002855;
    --primary-blue-dark: #001A3D;
    --primary-blue-light: #003D73;
    --text-dark: #2C3E50;
    --text-gray: #6C757D;
    --text-light-gray: #BDC3C7;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #DEE2E6;

    --font-heading: 'Literata', serif;
    --font-body: 'Mulish', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Bootstrap Color Overrides
   ============================================ */
.text-primary {
    color: var(--primary-blue) !important;
}

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

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-blue-dark) !important;
    border-color: var(--primary-blue-dark) !important;
}

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

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

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Override heading colors for white text sections */
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
    color: white !important;
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand .logo {
    height: 80px;
    width: auto;
    max-width: 350px;
}

@media (max-width: 768px) {
    .navbar-brand .logo {
        height: 60px;
        max-width: 250px;
    }
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue);
}

@media (max-width: 991px) {
    .navbar-nav {
        padding-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.hero-section .company-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        padding-top: 8rem;
    }

    .hero-section .company-name {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }

    .hero-section p.lead {
        font-size: 1.1rem;
    }
}

/* ============================================
   Cards
   ============================================ */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 28px;
}

.card-title {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: 4rem 0;
}

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

.section-title h2 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-blue-light));
    margin: 0 auto;
}

/* ============================================
   Forms
   ============================================ */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 5px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 40, 85, 0.15);
}

.form-text {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background-color: #1a1a1a;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.text-light-gray {
    color: var(--text-light-gray);
}

.hover-blue {
    transition: color 0.3s ease;
}

.hover-blue:hover {
    color: var(--primary-blue-light) !important;
}

/* ============================================
   Utility Classes
   ============================================ */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
}

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

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

/* ============================================
   Loading Spinner
   ============================================ */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ============================================
   Announcements
   ============================================ */
.announcement-card {
    background: white;
    border-left: 4px solid var(--primary-blue);
    margin-bottom: 1.5rem;
}

.announcement-date {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   Admin Panel
   ============================================ */
.admin-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.admin-card {
    max-width: 600px;
    width: 100%;
}

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 576px) {
    .btn {
        width: 100%;
    }

    section {
        padding: 2.5rem 0;
    }
}
