/* Custom styling for Kaufman Manufacturing */

/* Header and Navigation */
/* Moved to professional-theme.css
.site-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
*/

/* Moved to professional-theme.css
.top-header {
    background-color: #1a1a1a;
    padding: 8px 0;
    font-size: 0.9rem;
}
*/

    .top-header a {
        color: #ccc;
        margin-right: 15px;
    }

        .top-header a:hover {
            color: #fff;
            text-decoration: none;
        }

    .top-header .social-icons {
        text-align: right;
    }

/* Moved to professional-theme.css
.main-header {
    background-color: #222;
    padding: 15px 0;
}
*/

.navbar-brand {
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease; /* Added from _Layout.cshtml */
}

    .navbar-brand img {
        margin-right: 10px;
    }

    .navbar-brand:hover { /* Added from _Layout.cshtml */
        opacity: 0.9;
    }

/* Updated Navigation */
/* Moved to professional-theme.css
.navbar-dark .navbar-nav .nav-link {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}
*/

    .navbar-dark .navbar-nav .nav-link:hover {
        color: #f8f9fa;
    }

    .navbar-dark .navbar-nav .nav-link:after {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: #5cb85c;
        transition: all 0.3s;
    }

    .navbar-dark .navbar-nav .nav-link:hover:after,
    .navbar-dark .navbar-nav .nav-link.active:after {
        width: 80%;
        left: 10%;
    }

/* Search Box */
.search-form {
    position: relative;
}

    .search-form input {
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        border-radius: 30px;
        padding-right: 40px;
        transition: all 0.3s;
    }

        .search-form input:focus {
            background-color: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
            box-shadow: none;
            color: #fff;
        }

    .search-form .search-btn {
        position: absolute;
        right: 5px;
        top: 5px;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.7);
    }

        .search-form .search-btn:hover {
            color: #fff;
        }

/* Quote Button */
.quote-button {
    background-color: #5cb85c;
    color: white;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s;
}

    .quote-button:hover {
        background-color: #4cae4c;
        color: white;
        transform: translateY(-2px);
    }

/* Hero section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

    .hero-section img,
    .hero-section picture {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1; /* Ensure images are below the overlay */
    }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2; /* Higher z-index to appear above images */
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 3; /* Even higher z-index for text content */
}

    .hero-content h1 {
        font-size: 3.5rem; /* Existing style from site.css */
        font-weight: 700; /* Existing style from site.css */
        margin-bottom: 1rem; /* Existing style from site.css */
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Existing style from site.css */
        word-wrap: break-word; /* Added from _Layout.cshtml */
        overflow-wrap: break-word; /* Added from _Layout.cshtml */
        hyphens: auto; /* Added from _Layout.cshtml */
    }

    .hero-content p {
        font-size: 1.5rem; /* Existing style from site.css */
        margin-bottom: 2rem; /* Existing style from site.css */
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Existing style from site.css */
    }


/* Mobile Responsive */
@media (max-width: 992px) {
    .search-form {
        margin-top: 15px;
    }

    .quote-button {
        margin-top: 15px;
        display: inline-block;
    }
    /* .hero-content h1 from site.css was here, moved to merge with _Layout.cshtml styles below */
    /* .hero-content p from site.css was here, moved to merge with _Layout.cshtml styles below */
}

@media (max-width: 768px) {
    .carousel-item {
        height: 500px;
    }

    .hero-content {
        text-align: center !important;
    }
    /* Styles from _Layout.cshtml for hero-content are more specific and will be below */
}


/* Chat Widget Styling - Prioritizing _Layout.cshtml styles where conflicts existed */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px; /* From _Layout.cshtml */
    background: #fff; /* From _Layout.cshtml (same as site.css background-color) */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2); /* From _Layout.cshtml */
    z-index: 1040; /* From _Layout.cshtml */
    overflow: hidden;
    transition: all 0.3s ease; /* From _Layout.cshtml */
    max-height: 500px; /* From _Layout.cshtml */
}

.chat-header {
    background: #343a40; /* From _Layout.cshtml */
    color: white;
    padding: 15px; /* From _Layout.cshtml */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

    .chat-header h5 {
        margin: 0;
        font-size: 1rem;
    }

.chat-toggle {
    background: transparent; /* From _Layout.cshtml (same as site.css) */
    border: none;
    color: white;
    cursor: pointer;
}

.chat-body {
    padding: 15px; /* From _Layout.cshtml */
    display: flex;
    flex-direction: column;
    height: calc(100% - 60px); /* From _Layout.cshtml */
}

.chat-messages {
    flex-grow: 1; /* From _Layout.cshtml (same as site.css flex: 1) */
    overflow-y: auto;
    max-height: 300px; /* From _Layout.cshtml */
    margin-bottom: 15px; /* From _Layout.cshtml */
}

.message {
    margin-bottom: 15px; /* From _Layout.cshtml */
    max-width: 80%; /* From _Layout.cshtml */
    display: flex; /* Added from site.css as it was missing in _Layout's .message but implied by .message.system/user */
}

    .message.system {
        margin-left: auto; /* From _Layout.cshtml */
        margin-right: auto; /* From _Layout.cshtml */
        text-align: center; /* From _Layout.cshtml */
    }

        .message.system.error .message-content { /* This was in site.css, kept for error styling */
            background-color: #ffecec;
            border-left: 3px solid #f44336;
        }

    .message.user { /* This was in site.css, kept for user styling */
        justify-content: flex-end;
        margin-right: auto;
        margin-left: 0;
    }

.message-content {
    background: #f0f0f0; /* From _Layout.cshtml */
    padding: 10px; /* From _Layout.cshtml */
    border-radius: 10px;
}

    /* Specific styling for different message types */
    .message.system .message-content {
        background-color: #e8f5e8; /* Light green background for system responses */
        border-left: 3px solid #4caf50; /* Green accent border */
        color: #2e7d32; /* Dark green text */
    }
    
    .message.user .message-content {
        background-color: #e3f2fd; /* Light blue background for user questions */
        border-left: 3px solid #2196f3; /* Blue accent border */
        color: #1565c0; /* Dark blue text */
    }


    .message-content p { /* This was in site.css, kept */
        margin: 0;
    }

/* Typing indicator styling - Kept from site.css */
.typing-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
}

    .typing-dots .dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        margin: 0 3px;
        background-color: #777;
        border-radius: 50%;
        opacity: 0.6;
        animation: dot-fade 1.4s infinite ease-in-out;
    }

        .typing-dots .dot:nth-child(1) {
            animation-delay: 0s;
        }

        .typing-dots .dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dots .dot:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes dot-fade {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Collapsed state */
.chat-widget.collapsed { /* From _Layout.cshtml */
    max-height: 60px;
}

    .chat-widget.collapsed .chat-body { /* This was in site.css, kept */
        display: none;
    }

    .chat-widget.collapsed .chat-toggle i { /* This was in site.css, kept */
        transform: rotate(180deg);
    }

/* Carousel/Slider Styling - Existing from site.css, review if _Layout styles for hero affect this */
.carousel-item {
    height: 600px;
}

.carousel-inner, .carousel-item {
    height: 100%;
}

/* .hero-content h1 and p styles from site.css were here, merged above or handled by _Layout.cshtml styles */

.btn-warning {
    background-color: #f8cb00;
    border-color: #f8cb00;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
}

    .btn-warning:hover {
        background-color: #e6bc00;
        border-color: #e6bc00;
        transform: translateY(-2px);
    }

/* Custom Carousel Navigation Dots - Updated */
.carousel-nav-dots {
    position: absolute;
    bottom: 30px; /* Increased from 20px to be more visible */
    left: 0;
    right: 0;
    z-index: 15; /* Increased from 10 to ensure visibility */
    display: flex;
    justify-content: center; /* Center the dots container horizontally */
    width: 100%;
    pointer-events: auto; /* Changed from 'none' to allow clicks */
    margin: 0;
    padding: 0;
}

.dots-container {
    display: flex;
    gap: 10px;
    pointer-events: auto;
    background-color: rgba(0, 0, 0, 0.3); /* Added slight background for better visibility */
    border-radius: 20px;
    padding: 5px 15px;
}

.dot {
    width: 14px; /* Increased from 12px */
    height: 14px; /* Increased from 12px */
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6); /* Slightly increased opacity */
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease; /* Added transition for smooth effect */
}

    .dot.active {
        background-color: #fff;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.9); /* Enhanced glow effect */
        transform: scale(1.1); /* Slightly larger when active */
    }

/* Enhanced Carousel Styling */
.carousel-indicators.custom-indicators {
    position: static;
    margin: 0;
    display: flex;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 5px 15px;
}

    .carousel-indicators.custom-indicators button {
        position: relative;
        width: 20px; /* Increased from 14px */
        height: 20px; /* Increased from 14px */
        margin: 0 8px; /* More spacing */
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        border: 2px solid transparent;
        opacity: 0.8;
        transition: all 0.3s ease;
        padding: 12px; /* Add padding for larger touch target */
        background-clip: content-box; /* Keep visual size while increasing touch area */
    }

        .carousel-indicators.custom-indicators button.active {
            background-color: #fff;
            transform: scale(1.2);
            opacity: 1;
            border-color: rgba(255,255,255,0.5);
            box-shadow: 0 0 10px rgba(255,255,255,0.5);
        }

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Remove or modify these rules */
.carousel-control-prev,
.carousel-control-next {
    /* Change to only target non-bottom controls */
    width: 10%;
    opacity: 0.7;
    z-index: 20;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 15px;
    background-size: 50%;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    transform: scale(1.1);
}

/* Bottom Carousel Controls */
.carousel-controls-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 15;
    width: 100%;
}

.carousel-controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Style the bottom controls */
.carousel-control-prev.bottom-control,
.carousel-control-next.bottom-control {
    position: static;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

    .carousel-control-prev.bottom-control:hover,
    .carousel-control-next.bottom-control:hover {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.7);
    }

/* .carousel-control-prev-icon, .carousel-control-next-icon styles redefined from _Layout.cshtml below if needed, or these are general */
/* The ones above are more general, the ones from _Layout.cshtml were specific to bottom controls. */
/* The general icon styles are fine, the bottom control specific ones will use these if not overridden. */


/* Enhance carousel transitions */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 1.2s;
    transition-property: opacity;
}

    .carousel-fade .carousel-item.active {
        opacity: 1;
    }

@media (max-width: 768px) {
    .carousel-nav-dots {
        bottom: 15px;
    }

    .dot {
        width: 12px;
        height: 12px;
    }

    .carousel-controls-wrapper {
        gap: 10px;
    }

    .carousel-control-prev.bottom-control,
    .carousel-control-next.bottom-control {
        width: 35px;
        height: 35px;
    }

    .carousel-control-prev-icon, /* These are for bottom controls */
    .carousel-control-next-icon {
        width: 15px; /* site.css general was 30px, then 20px. This is for bottom. */
        height: 15px;
        background-size: 100%; /* Added from _Layout.cshtml for bottom controls */
    }
}

/* Fix for horizontal scrolling on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    padding-bottom: 80px; /* Added from _Layout.cshtml - Adjust this value based on the height of your footer */
}

/* Prevent elements from overflowing horizontally */
.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Styles moved from _Layout.cshtml <style> tag */

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem; /* Adjust for better fit on small screens */
        flex-wrap: wrap; /* Existing style from site.css for this breakpoint */
    }

        .navbar-brand img {
            height: 35px; /* Slightly smaller on mobile */ /* From _Layout.cshtml */
            /* max-height: 30px; from site.css, _Layout.cshtml's height: 35px takes precedence */
            margin-right: 5px; /* Existing style from site.css */
        }

    .search-form input { /* Existing style from site.css */
        width: 100%;
    }

    .bg-dark.py-2 .container { /* Existing style from site.css */
        padding-left: 10px;
        padding-right: 10px;
    }

    footer .row { /* Existing style from site.css */
        margin-left: 0;
        margin-right: 0;
    }
}

.brand-text { /* Added from _Layout.cshtml */
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

@media (max-width: 576px) { /* Added from _Layout.cshtml */
    .brand-text {
        font-size: 1.1rem;
    }
}

/* Hero content responsive styles from _Layout.cshtml */
/* .hero-content h1 styles already exist, specific properties were merged above */

/* Handle multi-line hero text on mobile */
@media (max-width: 767px) { /* Added from _Layout.cshtml */
    .hero-content {
        padding: 1rem 0; /* From _Layout.cshtml */
    }

        .hero-content h1 {
            font-size: 1.8rem; /* From _Layout.cshtml */
            line-height: 1.2; /* From _Layout.cshtml */
        }

        .hero-content p {
            font-size: 1rem; /* From _Layout.cshtml */
            line-height: 1.4; /* From _Layout.cshtml */
        }

    .hero-overlay { /* From _Layout.cshtml */
        overflow-y: auto;
        max-height: 100%;
    }
}

/* For very small screens */
@media (max-width: 480px) { /* Added from _Layout.cshtml */
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-banner .container,
    .hero-section .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Cookie consent banner styles */ /* Added from _Layout.cshtml */
#cookieConsentBanner {
    transition: all 0.3s ease-in-out;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

    #cookieConsentBanner .btn-customize {
        border: 1px solid #fff;
        color: #fff;
        background-color: transparent;
    }

        #cookieConsentBanner .btn-customize:hover {
            background-color: rgba(255,255,255,0.1);
        }

/* Chat input styles */ /* Added from _Layout.cshtml */
.chat-input {
    display: flex;
    gap: 10px;
}

/* For mobile screens, adjust the chat widget */ /* Added from _Layout.cshtml, overrides site.css version */
@media (max-width: 576px) {
    .chat-widget {
        width: 90%; /* From _Layout.cshtml */
        right: 5%; /* From _Layout.cshtml */
        left: 5%; /* From _Layout.cshtml */
        max-width: none; /* Ensure this is applied if site.css had it */
    }
}

/* Ensure hero content styles from site.css for larger screens are still effective if not overridden by _Layout specific media queries */
@media (min-width: 993px) { /* Example, adjust breakpoint as needed */
    .hero-content h1 {
        font-size: 3.5rem; /* As per original site.css */
    }

    .hero-content p {
        font-size: 1.5rem; /* As per original site.css */
    }
}
