/**
 * HiFi Design Custom Styles
 *
 * Brand Colors:
 * - Lighter Blue: #3b82f6
 * - Brighter Orange: #ff6b35
 */

/* --- Variable Overrides --- */
:root {
    --hifi-blue: #4285f4; /* Vibrant royal blue */
    --hifi-orange: #ff6b35; /* Warm medium-dark orange */
    --hifi-yellow: #ffeb3b; /* Bright clear yellow */
    --hifi-light-blue: #f8f9fa; /* Very light pale blue */
    --hifi-dark-gray: #2c3e50; /* Dark charcoal gray */

    /* Override Bootstrap defaults */
    --bs-primary: var(--hifi-blue);
    --bs-secondary: var(--hifi-dark-gray);
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

/* --- General Styles --- */
body {
    padding-top: 56px; /* Adjust for fixed navbar height */
}

/* Enhanced hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Badge enhancements */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.bg-warning {
    background-color: var(--hifi-yellow) !important;
    color: #000 !important;
}

/* Trust signals styling */
.trust-signals {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1rem;
}

/* Icon enhancements */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.hover-lift:hover .icon-circle {
    transform: scale(1.1);
}

/* Enhanced button styles */
.btn {
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Card enhancements */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-body {
    padding: 1.5rem;
}

/* Feature list enhancements */
.feature-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateX(5px);
}

/* Star rating styling */
.star-rating {
    color: var(--hifi-yellow);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .trust-signals {
        flex-direction: column;
        text-align: center;
    }
}

/* Top banner / hero responsiveness */
@media (max-width: 992px) {
    /* Reduce rigid min-heights and allow natural stacking */
    #hero, #about-intro, #ai-advantage-hero {
        min-height: auto;
        padding: 40px 0;
    }

    /* Absolute image wrappers used in heroes should stack and shrink on mobile */
    #hero > .position-absolute,
    #about-intro > .position-absolute,
    #ai-advantage-hero > .position-absolute {
        position: static !important;
        width: 100% !important;
        height: 220px !important;
        opacity: 0.15;
        margin-bottom: 16px;
    }

    #hero .container,
    #about-intro .container,
    #ai-advantage-hero .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Fluid typography for headings and leads */
    #hero h1,
    #about-intro h1,
    #ai-advantage-hero h1 {
        font-size: clamp(1.75rem, 4.5vw, 2.25rem);
        line-height: 1.2;
    }

    #hero .lead,
    #about-intro .lead,
    #ai-advantage-hero .lead {
        font-size: clamp(1rem, 2.5vw, 1.125rem);
        line-height: 1.5;
    }

    /* Reduce hero/banner image height on tablets and phones */
    #hero .hero-image-col { height: auto; }
    #hero .hero-image-fill {
        display: block;
        width: 100%;
        height: clamp(120px, 22vh, 180px);
        object-fit: cover;
    }

    /* About and AI advantage hero images */
    #about-intro img,
    #ai-advantage-hero img {
        width: 100%;
        height: clamp(120px, 20vh, 170px) !important;
        object-fit: cover !important;
    }
}

@media (max-width: 576px) {
    /* Further reduce image height on very small devices */
    #hero > .position-absolute,
    #about-intro > .position-absolute,
    #ai-advantage-hero > .position-absolute {
        height: 160px !important;
    }

    /* Extra reduction for very small screens */
    #hero .hero-image-fill {
        height: clamp(100px, 18vh, 140px);
    }
    #about-intro img,
    #ai-advantage-hero img {
        height: clamp(100px, 16vh, 130px) !important;
    }
}

.section-title h2 {
    font-weight: 700;
    color: var(--hifi-blue);
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--hifi-orange);
    bottom: 0;
    left: calc(50% - 25px);
}

/* --- Component Styles --- */

/* Navbar Customization */
.navbar-dark {
    background-color: var(--hifi-blue) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: all 0.3s ease;
    transform: scale(1);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    font-weight: 700;
    transform: scale(1.02);
}

.navbar-dark .navbar-brand {
    color: #ffffff !important;
    font-weight: 600;
}

/* Button Customization: Make the primary button orange */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--hifi-orange);
    --bs-btn-border-color: var(--hifi-orange);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #e55a2b; /* Slightly darker version of the new orange */
    --bs-btn-hover-border-color: #d14f26;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #d14f26;
    --bs-btn-active-border-color: #c44a22;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--hifi-orange);
    --bs-btn-disabled-border-color: var(--hifi-orange);
}

/* Ensure sections have adequate padding */
section {
    padding: 60px 0;
    overflow: hidden;
}

/* Enhanced visual styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Hero section enhancements */
#hero, #about-intro, #ai-advantage-hero {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Ensure rows stretch to section height so the image can fill it */
#hero .hero-row { min-height: inherit; }

/* Full-height hero image behavior on desktop */
@media (min-width: 992px) {
    /* Make the image fill 100% of the current section height */
    #hero .hero-row { position: relative; }
    #hero .hero-image-col { height: 100%; }
    #hero .hero-image-fill {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Increase spacing between image and text in hero sections */
#hero .col-lg-6,
#about-intro .col-lg-6.offset-lg-6,
#ai-advantage-hero .col-lg-6 {
    padding-left: 3rem !important;
}

/* Add breathing room to hero text elements */
#hero h1,
#about-intro h1,
#ai-advantage-hero h1,
#services-page h1 {
    margin-bottom: 1.5rem !important;
}

#hero .lead,
#about-intro .lead,
#ai-advantage-hero .lead,
#services-page .lead {
    margin-bottom: 2rem !important;
}

#hero p,
#about-intro p,
#ai-advantage-hero p,
#services-page p {
    margin-bottom: 1.5rem !important;
}

#hero .btn,
#about-intro .btn,
#ai-advantage-hero .btn,
#services-page .btn {
    margin-bottom: 1.5rem !important;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--hifi-blue) 0%, #3367d6 100%);
    z-index: -2;
}



/* Image enhancements */
.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Table enhancements */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table td {
    border: none;
    padding: 1rem;
}

.table tr:not(:last-child) td {
    border-bottom: 1px solid #e9ecef;
}

/* Alert enhancements */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Form enhancements */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--hifi-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Additional color palette usage */
.bg-light {
    background-color: var(--hifi-light-blue) !important;
}

.text-muted {
    color: var(--hifi-dark-gray) !important;
}

.btn-outline-secondary {
    --bs-btn-color: var(--hifi-dark-gray);
    --bs-btn-border-color: var(--hifi-dark-gray);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--hifi-dark-gray);
    --bs-btn-hover-border-color: var(--hifi-dark-gray);
}

/* Accent highlights */
.accent-yellow {
    color: var(--hifi-yellow);
}

.accent-light-blue {
    background-color: var(--hifi-light-blue);
} 