/* Official On Beat Digital Brand Color Palette */
:root {
    /* Primary Brand Colors */
    --primary-green: #8CC63F;
    --primary-green-dark: #7AB134;
    --primary-green-light: #A1D456;
    
    /* Brand Neutral Colors */
    --charcoal-black: #1F1F1F;
    --cool-gray: #F5F8F9;
    --graphite: #3B3B3B;
    --steel-gray: #A9B4BD;
    --good-gray: #545454;
    
    /* Brand Accent Colors */
    --digital-sky-blue: #00B6E3;
    --signal-purple: #7A5FFF;
    --sunbeam-yellow: #FFCC33;
    --ocean-teal: #70C0E8;
    --flare-coral: #FF5C5C;
    
    /* Legacy Color Mappings for Compatibility */
    --gray-900: var(--charcoal-black);
    --gray-800: var(--charcoal-black);
    --gray-700: var(--graphite);
    --gray-600: var(--graphite);
    --gray-500: var(--steel-gray);
    --gray-400: var(--steel-gray);
    --gray-300: var(--cool-gray);
    --gray-200: var(--cool-gray);
    --gray-100: var(--cool-gray);
    
    /* Semantic Color Assignments */
    --blue-accent: var(--digital-sky-blue);
    --navy-accent: var(--signal-purple);
    --success: var(--ocean-teal);
    --warning: var(--sunbeam-yellow);
    --danger: var(--flare-coral);
    
    /* Custom utility class for pages with fixed navbar overlap */
    --pt-under-nav: 120px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Bootstrap Color Overrides */
.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

/* Brand-aligned Bootstrap color classes */
.text-success {
    color: var(--ocean-teal) !important;
}

.text-danger {
    color: var(--flare-coral) !important;
}

.text-dark {
    color: var(--charcoal-black) !important;
}

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

.bg-info {
    background-color: var(--digital-sky-blue) !important;
    color: white !important;
}

.bg-success {
    background-color: var(--ocean-teal) !important;
    color: white !important;
}

.bg-warning {
    background-color: var(--sunbeam-yellow) !important;
    color: var(--charcoal-black) !important;
}

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

.bg-secondary {
    background-color: var(--steel-gray) !important;
    color: white !important;
}

.bg-dark {
    background-color: var(--charcoal-black) !important;
    color: white !important;
}

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

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-700);
    overflow-x: hidden;
}

/* Homepage-specific styles */
body.homepage {
    padding-top: 0; /* Remove global padding for homepage */
}

.container {
    max-width: 1200px;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--gray-900) !important;
    text-decoration: none;
}

.brand-text {
    background: url('../images/glogo.png') no-repeat center;
    background-size: contain;
    width: 180px;
    height: 40px;
    text-indent: -9999px;
    display: inline-block;
    vertical-align: middle;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gray-100) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e5e7eb" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 6rem 0 2rem 0; /* Restore homepage hero padding */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    margin-bottom: 3rem;
}

.hero-stats {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-300);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.image-placeholder {
    background: var(--gray-100);
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    border: 2px dashed var(--gray-300);
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    background: var(--gray-200);
    border-color: var(--primary-green);
}

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

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

/* Service Cards */
.service-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-green);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-green), var(--primary-green-light));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

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

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

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

.service-features li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* Consulting Section */
.consulting-section {
    background-color: var(--gray-100);
}

.consulting-content {
    padding: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.feature-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.feature-item h5 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--gray-600);
    margin: 0;
}

/* Tools Section */
.tool-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    height: 100%;
}

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

.tool-card i {
    font-size: 2.5rem;
}

.tool-card h5 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.tool-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

/* About Section */
.about-section {
    background: var(--gray-900);
}

.about-content {
    padding: 2rem 0;
}

.about-values {
    margin-top: 2rem;
}

.value-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.value-item i {
    font-size: 1.25rem;
}

.value-item span {
    font-weight: 500;
    color: #ffffff;
}

/* Contact Section */
.contact-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.contact-info h4 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.125rem;
    width: 20px;
}

.contact-item span {
    color: var(--gray-700);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-green);
    color: #ffffff;
    transform: translateY(-2px);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(140, 198, 63, 0.25);
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-green), var(--blue-accent));
    color: white;
}

.contact-hero .stat-item {
    text-align: center;
    padding: 1rem;
}

.contact-hero .stat-item i {
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.contact-section {
    background: white;
}

.contact-form-wrapper {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-green);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-details h5 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.contact-details p {
    margin-bottom: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

.faq-section .accordion-button {
    font-weight: 600;
    color: var(--gray-900);
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: var(--primary-green);
    color: white;
}

.faq-section .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-green), 0.25);
}

.quick-links ul li a {
    color: var(--gray-600);
    transition: color 0.3s ease;
}

.quick-links ul li a:hover {
    color: var(--primary-green);
}

/* Breadcrumb Styles */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
    --bs-breadcrumb-divider: '>';
}

.breadcrumb-hero {
    background-color: transparent;
    padding: 0;
    --bs-breadcrumb-divider: '>';
}

.breadcrumb-hero .breadcrumb-item a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-hero .breadcrumb-item a:hover {
    color: var(--primary-green);
}

.breadcrumb-hero .breadcrumb-item.active {
    color: var(--gray-900);
    font-weight: 600;
}

.breadcrumb-hero .breadcrumb-item + .breadcrumb-item::before {
    content: '>';
    color: var(--gray-600);
    padding: 0 0.5rem;
}

/* Light background breadcrumbs */
.breadcrumb-light {
    background-color: #f9f9f9;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    --bs-breadcrumb-divider: '>';
}

.breadcrumb-light .breadcrumb-item a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-light .breadcrumb-item a:hover {
    color: var(--primary-green);
}

.breadcrumb-light .breadcrumb-item.active {
    color: var(--gray-900);
    font-weight: 600;
}

.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
    content: '>';
    color: var(--gray-600);
    padding: 0 0.5rem;
}

/* Footer */
.footer {
    background: var(--gray-900) !important;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 5rem 0 2rem 0; /* Restore homepage hero padding for tablet */
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        margin-bottom: 1rem;
        width: 100%;
        max-width: 250px;
    }
    
    .hero-buttons .me-3 {
        margin-right: 0 !important;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .stat-item {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 4.5rem 0 2rem 0; /* Restore homepage hero padding for mobile */
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats .col-md-4,
    .hero-stats .col-sm-6,
    .hero-stats .col-12 {
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.tool-card,
.feature-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
}

/* Hero Stats */
.hero-stats {
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1rem 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
}

/* ===== CONTACT FORM STYLES ===== */

/* Loading and Hidden States */
.hidden {
    display: none !important;
}

/* Form Validation Styles */
.contact-form .has-error .form-control,
.contact-form .has-error .multiselect {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form .help-block {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.contact-form .help-block ul {
    margin-bottom: 0;
}

/* Submit Button States */
.contact-form .submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.contact-form .loader .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bootstrap Multiselect Customization */
.multiselect.dropdown-toggle {
    text-align: left;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    background-color: white;
    width: 100%;
    font-size: 0.875rem;
}

.multiselect.dropdown-toggle:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(140, 198, 63, 0.25);
    outline: 0;
}

.multiselect-container {
    width: 100% !important;
}

.multiselect-container .dropdown-menu {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.multiselect-container .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.multiselect-container .dropdown-item:hover {
    background-color: var(--cool-gray);
}

.multiselect-container .dropdown-item.active {
    background-color: var(--primary-green);
    color: white;
}

.multiselect-filter {
    padding: 0.5rem;
}

.multiselect-filter input {
    border: 1px solid var(--gray-300);
    border-radius: 0.25rem;
    padding: 0.5rem;
    width: 100%;
    font-size: 0.875rem;
}

/* Thank You Message Styling */
#contact-us-form-thankyou {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}
