:root {
    --primary-color: #8b0000; /* Dark red to match the new logo */
    --secondary-color: #a52a2a; /* Medium red as secondary color */
    --accent-color: #d4af37; /* Gold yellow as accent */
    --text-color: #333;
    --light-gray: #f8fafc;
    --dark-gray: #4b5563;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition-standard: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header Styles */
.main-header {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('m-mecanique-m-repentigny-hero-section.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    transition: var(--transition-standard);
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

.header-subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0.9;
}

/* Navigation Styles */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.95); /* Increased opacity for better visibility */
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.7rem 1.2rem; /* Increased padding for better clickability */
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px; /* Subtle rounded corners */
    background-color: rgba(255, 255, 255, 0.05); /* Very subtle background */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Slightly thicker underline */
    background-color: var(--accent-color); /* Using accent color for underline */
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}

.main-nav a:hover::before,
.main-nav a.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly stronger background on hover/active */
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

/* Service Detail Page Styles */
.service-detail {
    padding: 4rem 2rem;
    background-color: #ffffff;
}

.service-detail.alternate {
    background-color: #f8f9fa;
}

.service-container {
    max-width: 1200px;
    margin: 0 auto;
}

.service-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.service-image {
    flex: 0 0 200px;
    min-width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), inset 0 0 30px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-image .large-icon {
    font-size: 4rem;
    color: white;
}

@media (max-width: 768px) {
    h1, h2, h3 {
        text-align: center;
    }

    p {
        text-align: left;
    }

    .service-content {
        flex-direction: column;
        align-items: center;
    }
    
    .service-detail.alternate .service-content {
        flex-direction: column;
    }
    
    .service-image {
        margin: 0 auto 2rem auto;
        width: 180px;
        height: 180px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .service-image .large-icon {
        font-size: 3.5rem;
        margin: auto;
        display: flex;
    }
}
.service-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.service-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 15s linear infinite;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.service-image .large-icon {
    font-size: 4rem !important;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.service-image .large-icon:hover {
    transform: scale(1.1);
    text-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.service-description {
    flex: 1;
}

.service-description ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.service-description ul li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-left: 0px solid var(--secondary-color);
}

.service-description ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    border-left: 4px solid var(--secondary-color);
}

.service-description ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--secondary-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
    opacity: 0;
}

.service-description ul li:hover::before {
    transform: scaleY(1);
    opacity: 1;
}

.service-description ul li .material-icons {
    color: var(--secondary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-description .service-item {
    flex: 1;
}

.service-description h3 {
    margin-top: 2.5rem;
}

.service-description .service-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.service-description .service-item p {
    margin: 0;
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* CTA Section Styles */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section h2::after {
    background: linear-gradient(to right, white, rgba(255, 255, 255, 0.5));
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.cta-button:hover {
    background-color: #e86207;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.5);
}

.cta-button .material-icons {
    margin-right: 0.5rem;
}

/* FAQ Section Styles */
.faq-section {
    margin-top: 3rem;
}

.faq-section h2 {
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-intro-box {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, rgba(165, 42, 42, 0.15) 100%); /* Changed from gold to dark red gradient */
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 0 1rem 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    max-width: none;
}

/* Add styles for faq-container */
.faq-container {
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .faq-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .faq-container {
        padding: 0 1.2rem;
    }
}
.section-intro-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.15) 0%, rgba(165, 42, 42, 0.2) 100%); /* Changed from gold to dark red gradient */
}

.section-intro-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 15s linear;
    transform: rotate(0deg);
    pointer-events: none;
}

.section-intro-box:hover::after {
    opacity: 1;
    transform: rotate(360deg);
}

.section-intro-box::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 8rem;
    color: rgba(139, 0, 0, 0.1); /* Changed from gold to dark red */
    font-family: Georgia, serif;
    line-height: 1;
}

.section-intro-box p {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.section-intro-box p:last-child {
    margin-bottom: 0;
}

.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    background: white;
    position: relative;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.faq-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.faq-item:hover::after {
    transform: scaleX(1);
}

.faq-item label {
    margin: 0;
    padding: 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: background-color 0.3s ease;
    position: relative;
    border-left: 4px solid var(--secondary-color);
}

.faq-item label:hover {
    background-color: #f0f0f0;
}

.faq-item label::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.active label::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item input[type="checkbox"] {
    display: none;
}

.faq-item.active .faq-content {
    padding: 1.5rem 2rem;
    max-height: 500px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-content p {
    margin: 0;
    line-height: 1.7;
    color: #555;
}

/* Video Section Styles */
.video-container {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-description {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--dark-gray);
    font-style: italic;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .service-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .service-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1.5rem;
    }
    
    .service-detail.alternate .service-content {
        flex-direction: column-reverse;
    }
    
    .service-image {
        margin-bottom: 2rem;
    }

    .service-detail {
        padding: 4rem 1rem;
    }

    .service-container {
        margin: 0 1rem;
    }
    
    /* Improve FAQ section spacing */
    .faq-section .service-container {
        margin: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .faq-item label {
        font-size: 1rem;
        padding: 1.2rem;
    }
    
    .faq-item.active .faq-content {
        padding: 1.2rem 1.5rem;
    }

    .service-detail {
        padding: 3rem 0.8rem;
    }

    .service-container {
        margin: 0 0.8rem;
    }
    
    /* Improve FAQ section spacing for smaller screens */
    .faq-section .service-container {
        margin: 0 1.2rem;
    }

    .service-content {
        padding: 0 0.8rem;
    }
}

/* Footer Styles */
footer {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80'); /* Changed from dark red to black */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.footer-content p {
    margin: 0;
    line-height: 1.6;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-content a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    transition: var(--transition-standard);
    position: relative;
    display: inline-block;
}

.footer-content a:hover {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: white;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Facebook Button Animation */
.facebook-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(45deg, #1a1a1a, #333333);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    border: none;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.facebook-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.facebook-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-shadow: none;
    border-bottom: none;
}

.facebook-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 1.5rem;
        background-attachment: scroll;
        text-align: center;
    }
    
    .footer-content {
        align-items: center;
        text-align: center;
    }
    
    .footer-content p {
        font-size: 0.95rem;
        text-align: center;
    }
}