/* All City Electric Motor Repair - Custom Styles */

/* CSS Variables */
:root {
    --primary-color: #1f365c;
    --secondary-color: #ffb536;
    --accent-color: #ff9f1a;
    --dark-color: #213962;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --font-family-sans-serif: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-condensed: 'Roboto Condensed', sans-serif;
    
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

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

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

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

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition-base);
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-condensed);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 2rem;
    border-radius: 2px;
}

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

.navbar-brand {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: var(--transition-base);
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.05) contrast(1.15) saturate(1.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.navbar-brand img:hover {
    transform: scale(1.05);
    filter: brightness(1.15) contrast(1.25) saturate(1.2);
}

/* Logo optimizations */
.navbar-brand .logo-desktop {
    max-height: 65px;
    height: auto;
    width: auto;
    max-width: 220px;
    drop-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand .logo-mobile {
    max-height: 45px;
    height: auto;
    width: auto;
    max-width: 160px;
    drop-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Logo background enhancement for better visibility */
.navbar-brand {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-brand:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 249, 250, 0.95));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ensure logos maintain aspect ratio */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        padding: 0.25rem 0;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition-base);
    position: relative;
    margin: 0 0.5rem;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--secondary-color);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 1rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: var(--transition-base);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Top Bar */
.top-bar {
    font-size: 0.875rem;
}

.top-bar a {
    transition: var(--transition-base);
}

.top-bar a:hover {
    color: var(--secondary-color) !important;
}

/* Mobile Call Bar */
.mobile-call-bar {
    position: sticky;
    top: 0;
    z-index: 1020;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 54, 92, 0.8), rgba(33, 57, 98, 0.6));
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through to content below */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    text-decoration: none !important;
}

.hero-buttons .btn:hover,
.hero-buttons .btn:focus,
.hero-buttons .btn:active {
    text-decoration: none !important;
}

/* Hero Navigation */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.hero-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    cursor: pointer;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.hero-nav-btn.prev {
    left: 2rem;
}

.hero-nav-btn.next {
    right: 2rem;
}

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-base);
}

.indicator.active,
.indicator:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.animate-fade-up.delay-1 {
    animation-delay: 0.3s;
}

.animate-fade-up.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-slow);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
}

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

.service-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 54, 92, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
}

/* Ensure all buttons have no underlines */
.btn,
.btn:hover,
.btn:focus,
.btn:active,
.btn:visited {
    text-decoration: none !important;
}

/* Specifically target outline buttons */
.btn-outline-light,
.btn-outline-primary,
.btn-outline-secondary {
    text-decoration: none !important;
}

.btn-outline-light:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    text-decoration: none !important;
}

.service-link:hover {
    color: var(--secondary-color);
}

.service-link i {
    transition: var(--transition-base);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* About Section */
.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

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

.feature-item h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

/* Gallery */
.gallery-image {
    border-radius: 8px;
    transition: var(--transition-base);
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact-item {
    padding: 2rem 1rem;
}

.contact-item i {
    color: var(--secondary-color);
}

.contact-item h4 {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800)) !important;
}

.footer-title {
    color: var(--secondary-color);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--secondary-color) !important;
    padding-left: 0.5rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Footer Logo Styling */
.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    transition: var(--transition-base);
    filter: brightness(1.2) contrast(1.1) saturate(1.1);
    max-height: 45px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    drop-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-logo-img:hover {
    filter: brightness(1.4) contrast(1.2) saturate(1.2);
    transform: scale(1.05);
    drop-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 1000;
    transition: var(--transition-base);
}

.back-to-top.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* Mobile Floating Call Button */
.mobile-call-floating {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
}

.mobile-call-floating .btn {
    width: 60px;
    height: 60px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Sub-Hero Section */
.sub-hero {
    position: relative;
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.sub-hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    background: none;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

/* Service Cards Detailed */
.service-card-detailed {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
}

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

.service-image-detailed {
    height: 200px;
    overflow: hidden;
}

.service-title-detailed {
    color: var(--primary-color);
    font-size: 1.25rem;
}

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

/* Feature Cards */
.feature-card {
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
}

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

.feature-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--gray-600);
}

/* Process Steps */
.process-step {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2rem;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.process-step h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Service Sidebar */
.service-sidebar .card {
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
}

.service-sidebar .card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* Contact Form Styles */
.contact-form .form-control,
.contact-form .form-select {
    border-radius: 8px;
    border: 2px solid var(--gray-300);
    transition: var(--transition-base);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(31, 54, 92, 0.25);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--gray-700);
}

/* About Page Styles */
.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.value-card {
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
}

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

.value-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-description {
    color: var(--gray-600);
}

.service-overview-item {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    margin-bottom: 1rem;
}

.service-overview-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.service-overview-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-overview-description {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.why-choose-item {
    padding: 1.5rem 1rem;
}

.why-choose-title {
    margin-bottom: 1rem;
}

.why-choose-description {
    opacity: 0.9;
}

/* Service Page Components */
.gear-type-card,
.pump-problem-card,
.crane-application-card,
.application-card {
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition-base);
}

.gear-type-card:hover,
.pump-problem-card:hover,
.crane-application-card:hover,
.application-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.gear-type-card h5,
.pump-problem-card h5,
.crane-application-card h5,
.application-card h5 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.gear-type-card p,
.pump-problem-card p,
.crane-application-card p,
.application-card p {
    color: var(--gray-600);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* FAQ Page Styles */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    background: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    border-radius: 12px !important;
}

.accordion-button:not(.collapsed) {
    background: var(--light-color);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 1.5rem;
    background: var(--light-color);
}

.contact-option {
    padding: 2rem 1rem;
    text-align: center;
}

.tip-card {
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
}

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

/* Resources Page Styles */
.resource-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
}

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

.resource-icon {
    margin-bottom: 1.5rem;
}

.resource-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.schedule-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.schedule-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

.schedule-item ul {
    margin-bottom: 0;
}

.schedule-item li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.troubleshooting-table .table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.troubleshooting-table th {
    font-weight: 600;
    border: none;
}

.troubleshooting-table td {
    border-color: var(--gray-200);
    padding: 1rem;
}

.emergency-contact-card {
    padding: 2rem 1rem;
}

.response-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .hero-nav-btn.prev {
        left: 1rem;
    }
    
    .hero-nav-btn.next {
        right: 1rem;
    }
    
    .service-image {
        height: 200px;
    }
    
    .contact-item {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}
