/* ========================================
   Richard Allen Consulting - Custom Styles
   ======================================== */

/* Color Variables */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.2rem;
    font-weight: 600;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fff, #e3f2fd);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: white;
    padding-top: 80px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 3rem;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.rate-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

/* About Section */
#about {
    background-color: var(--light-bg);
}

.profile-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 4rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

/* Services Section */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
    border-color: var(--primary-color);
}

.service-card.featured {
    border: 2px solid var(--warning-color);
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.service-card ul li {
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.testimonial-stars {
    color: #f5a623;
    font-size: 1.25rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    flex-grow: 1;
    font-style: italic;
}

.testimonial-card figcaption {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

/* Footer secondary text: readable on the dark background */
.footer-note {
    color: #ced4da;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.1);
}

.cta-box h3 {
    color: var(--primary-color);
}

/* Modal Styles */
.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

/* Character Counter Styles */
.form-text {
    display: block;
    margin-top: 0.25rem;
}

.form-text .text-warning {
    color: var(--warning-color) !important;
    font-weight: 600;
}

.form-text .text-danger {
    color: var(--danger-color) !important;
    font-weight: 600;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    margin-top: 4rem;
}

footer a {
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

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

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

    .hero-logo {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .profile-placeholder {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

    .rate-badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .cta-box {
        padding: 2rem;
    }

    .service-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .brand-logo {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .navbar-brand span {
        font-size: 0.9rem;
    }
}

/* Smooth Scrolling Offset for Fixed Navbar */
section {
    scroll-margin-top: 80px;
}

/* Animation for fade-in elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .navbar,
    .modal,
    footer,
    .btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* Honeypot field: kept off-screen so only bots fill it in */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
