:root {
    --dark-blue: #1a1a1a;
    --main-red: #d94841;
    --darker-red: #a41e21; 
    --light-gray: #f4f4f4;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 700;
}

p {
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--dark-blue);
    color: var(--white);
    border-radius: 25px; /* More rounded */
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.2); /* Added shadow */
}

.btn:hover {
    background-color: var(--darker-red);
    transform: translateY(-2px); /* Lift effect */
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.3);
}

.btn-primary {
    background-color: var(--main-red);
    border: 0px;
}

/* --- Header --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px; /* Increased padding */
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); /* Added gradient */
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 4em;
    flex: none;
}
.top-bar-right {
    justify-content: flex-end;
}
.logo-container {
    text-align: center;
    position: relative;
}
.logo-container img {
    max-height: 8em;
    border-radius: 15px; /* Rounded logo */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Added shadow to logo */
}

.lemmo {
    margin: 0;
    font-style: italic; /* Made italic */
    font-weight: 600;
    color: var(--main-red); /* Changed color */
    font-size: 2em;
}

.contact-info .fa-phone {
    color: var(--main-red); /* Changed to red */
}

.contact-info a, .contact-info span {
    font-weight: bold;
    color: var(--dark-blue);
}

.btn-estimate {
    background: linear-gradient(135deg, var(--main-red) 0%, var(--darker-red) 100%); /* Gradient background */
    color: var(--white);
    padding: 12px 25px; /* Adjusted padding */
    border-radius: 30px; /* More rounded */
    font-weight: bold;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 72, 65, 0.3); /* Added shadow */
}
.btn-estimate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 72, 65, 0.4);
}

/* --- Navigation Bar --- */
.main-nav {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #2c2c2c 100%); /* Gradient background */
    color: var(--white);
    position: relative;
    z-index: 1010;
}
.main-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 60px;
}
.main-nav > ul > li {
    position: relative;
}
.main-nav a {
    padding: 20px 25px;
    display: block;
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
}
.main-nav > ul > li > a:hover, .main-nav li.active > a {
    background-color: var(--main-red);
}
.main-nav .fa-angle-down {
    margin-left: 5px;
}

/* --- Mega Dropdown Menu Styles --- */
.main-nav .mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 520px;
    background-color: var(--main-red);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3); /* Enhanced shadow */
    padding: 0;
    border-radius: 0 0 20px 20px; /* Rounded bottom corners */
    overflow: hidden;
}

.main-nav li:hover > .mega-menu {
    display: flex;
}

.main-nav .mega-menu .dropdown-column {
    padding: 25px; /* Increased padding */
    flex: 1;
}

.main-nav .mega-menu .dropdown-column:last-child {
    background-color: var(--darker-red);
}

.main-nav .mega-menu .dropdown-column h4 {
    color: white;
    margin-bottom: 20px; /* Increased margin */
    font-size: 1.1em;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3); /* Thicker border */
    padding-bottom: 12px; /* Increased padding */
}

.main-nav .mega-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
    height: auto;
}

.main-nav .mega-menu a {
    padding: 15px 12px; /* Increased padding */
    text-transform: none;
    font-weight: bold;
    white-space: normal;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border-radius: 8px; /* Rounded menu items */
    margin: 2px 0;
}

.main-nav .mega-menu a:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1); /* Added hover background */
    transform: translateX(5px); /* Slide effect */
}

/* --- Hero Section --- */
.hero {
    display: flex;
    height: 600px; /* Increased height */
    background-color: #f0f0f0;
    position: relative;
    margin-top: -60px;
    padding-top: 60px;
    border-radius: 0 0 50px 50px; /* Large rounded bottom corners */
    overflow: hidden;
}
.hero-content {
    flex: 1;
    background-image: linear-gradient(rgba(244, 244, 244, 0.9), rgba(244, 244, 244, 0.9)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=1200');
    background-size: cover;
    background-position: center;
    padding: 80px 60px; /* Increased padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 30px; /* Rounded content area */
    margin: 20px; /* Added margin */
}
.hero-content h1 {
    font-size: 3.2em; /* Increased font size */
    color: var(--dark-blue);
    margin-top: 25px;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1); /* Added text shadow */
}
.hero-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}
.hero-content li {
    font-size: 1.3em; /* Increased font size */
    margin-bottom: 15px; /* Increased margin */
    font-weight: 500;
    background: rgba(255, 255, 255, 0.8); /* Added background */
    padding: 10px 15px; /* Added padding */
    border-radius: 25px; /* Rounded list items */
}
.hero-content li::before {
    content: '✓';
    color: var(--main-red);
    margin-right: 15px; /* Increased margin */
    font-weight: bold;
    font-size: 1.2em;
}
.hero-phone {
    font-size: 1.6em; /* Increased font size */
    font-weight: bold;
    color: var(--main-red); /* Changed to red */
    margin-bottom: 25px;
    padding: 15px; /* Added padding */
    border-radius: 20px; /* Rounded */
    display: inline-block;
}

.hero-image {
    flex: 1.2;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 30px; /* Rounded image area */
    margin: 20px; /* Added margin */
}

/* --- Intro Section --- */
.intro-section {
    text-align: center;
    margin: 40px 20px; /* Added margin */
    justify-self: center;
}
.intro-section h2 {
    font-size: 2.5em; /* Increased font size */
    color: var(--dark-blue);
    margin-bottom: 25px;
}
.intro-section p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1em; /* Increased font size */
    line-height: 1.8; /* Increased line height */
}

/* --- Services Section --- */
.services-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%); /* Added gradient */
    border-radius: 40px; /* Rounded section */
    margin: 40px 20px; /* Added margin */
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}
.service-card {
    background-color: var(--white);
    border: none; /* Removed border */
    border-radius: 25px; /* More rounded */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Enhanced shadow */
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px); /* Lift effect */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.service-card img {
    width: 100%;
    height: 250px; /* Increased height */
    object-fit: cover;
}
.service-card-content {
    padding: 40px 30px; /* Increased padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.service-card h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 1.3em; /* Increased font size */
}
.service-card p {
    color: var(--text-light);
    margin-bottom: 30px; /* Increased margin */
    line-height: 1.7; /* Increased line height */
}

/* --- Testimonials Section --- */
.testimonials-section {
    display: flex;
    border-radius: 40px; /* Rounded section */
    margin: 40px 20px; /* Added margin */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); /* Added shadow */
}
.testimonials-content {
    flex: 1;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%); /* Added gradient */
    padding: 80px 60px; /* Increased padding */
}
.testimonials-content h2 {
    font-size: 2.5em; /* Increased font size */
    color: var(--dark-blue);
    margin-bottom: 40px; /* Increased margin */
}
.review {
    margin-bottom: 40px; /* Increased margin */
    background: var(--white); /* Added background */
    padding: 25px; /* Added padding */
    border-radius: 20px; /* Rounded */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Added shadow */
}
.review h3 {
    margin-bottom: 15px; /* Increased margin */
    color: var(--dark-blue);
}
.review p {
    color: var(--text-light);
    margin-bottom: 15px; /* Increased margin */
    line-height: 1.7; /* Increased line height */
}
.review p a {
    color: var(--main-red);
    font-weight: bold;
    text-decoration: underline;
}
.review-date {
    font-size: 0.9em;
    color: #999;
    font-style: italic; /* Made italic */
}

.testimonials-image {
    flex: 1;
    background: url('https://img.freepik.com/foto-gratis/silueta-construccion_1150-8336.jpg') no-repeat center center/cover;
    min-height: 500px;
}

/* --- Video Section --- */
.video-section {
    position: relative;
    height: 500px; /* Increased height */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    border-radius: 40px; /* Rounded section */
    margin: 40px 20px; /* Added margin */
    overflow: hidden;
}
.video-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
}
.video-content {
    position: relative;
    z-index: 2;
}
.video-content h2 {
    font-size: 2.8em; /* Increased font size */
    margin-bottom: 30px; /* Increased margin */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Added text shadow */
}
.play-button {
    font-size: 6em; /* Increased font size */
    cursor: pointer;
    transition: all 0.3s ease;
}
.play-button:hover {
    color: var(--main-red);
    transform: scale(1.1); /* Scale effect */
}

/* --- Footer --- */
.main-footer {
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%); /* Added gradient */
    padding: 80px 20px; /* Increased padding */
    border-radius: 40px 40px 0 0; /* Rounded top corners */
    margin-top: 40px;
}
.footer-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 40px; /* Increased gap */
    max-width: 1000px;
    margin: 0 auto;
}
.footer-column {
    flex: 1;
    background: var(--white); /* Added background */
    padding: 30px; /* Added padding */
    border-radius: 20px; /* Rounded */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Added shadow */
}
.footer-column .icon {
    font-size: 2.5em; /* Increased font size */
    color: var(--main-red);
    margin-bottom: 20px; /* Increased margin */
    background: rgba(217, 72, 65, 0.1); /* Added background */
    width: 80px; /* Added size */
    height: 80px; /* Added size */
    border-radius: 50%; /* Made circular */
    display: flex; /* Added flex */
    align-items: center; /* Centered */
    justify-content: center; /* Centered */
    margin: 0 auto 20px; /* Centered */
}
.footer-column h3 {
    text-transform: uppercase;
    font-size: 1.2em; /* Increased font size */
    margin-bottom: 20px; /* Increased margin */
    color: var(--dark-blue);
}
.footer-column p, .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-light);
    line-height: 2; /* Increased line height */
}

.footer-social {
    text-align: center;
    margin-top: 50px; /* Increased margin */
}
.footer-social .social-icon {
    font-size: 2.5em; /* Increased font size */
    color: var(--dark-blue);
    transition: all 0.3s ease;
    background: var(--white); /* Added background */
    width: 60px; /* Added size */
    height: 60px; /* Added size */
    border-radius: 50%; /* Made circular */
    display: inline-flex; /* Added flex */
    align-items: center; /* Centered */
    justify-content: center; /* Centered */
    margin: 0 10px; /* Added margin */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Added shadow */
}
.footer-social .social-icon:hover {
    color: var(--social-color, var(--main-red));
    transform: translateY(-3px); /* Lift effect */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.sub-footer {
    padding: 30px; /* Increased padding */
    text-align: center;
    font-size: 0.9em; /* Increased font size */
    color: var(--text-light);
    border-top: 2px solid #e0e0e0; /* Thicker border */
    margin-top: 40px; /* Increased margin */
    background: var(--white); /* Added background */
    border-radius: 20px; /* Rounded */
}
.sub-footer a {
    margin: 0 8px; /* Increased margin */
    color: var(--main-red); /* Changed color */
    font-weight: 500; /* Added weight */
}

.side-contact-bar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--main-red) 0%, var(--darker-red) 100%); /* Added gradient */
    display: flex;
    flex-direction: column;
    border-radius: 20px 0 0 20px; /* More rounded */
    box-shadow: -5px 5px 20px rgba(0,0,0,0.3); /* Enhanced shadow */
    z-index: 1000;
}
.side-contact-bar a {
    color: var(--white);
    padding: 1em; /* Increased padding */
    font-size: 1.2em; /* Increased font size */
    transition: all 0.3s ease;
    border-radius: 15px; /* Rounded */
    margin: 2px; /* Added margin */
}
.side-contact-bar a:hover {
    transform: translateX(-5px); /* Slide effect */
}
@media (max-width: 768px) {
    .side-contact-bar {
        display: none;
    }
}

/* --- Service Detail Page Styles --- */
.service-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
    border-radius: 30px;
    margin: 40px 20px 0 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.service-detail-hero-content {
    flex: 1;
    padding: 60px 40px;
}
.service-detail-hero-content h1 {
    font-size: 2.8em;
    color: var(--dark-blue);
    margin-bottom: 0;
}
.service-detail-hero-image {
    display: flex;
    flex: 1;
    position: relative;
    text-align: center;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 2em;
}
.hero-button-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.service-detail-hero-image img {
    width: 100%;
    max-height: 350px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    object-fit: cover;
}
.service-detail-content {
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 25px 30px;
    background: var(--white);
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .top-bar {
        flex-direction: column;
        gap: 20px; /* Increased gap */
        padding: 20px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0; /* Increased padding */
    }
    .hero {
        flex-direction: column;
        height: auto;
        margin-top: 0;
        padding-top: 0;
    }
    .hero-content {
        padding: 50px 30px; /* Adjusted padding */
        text-align: center;
        margin: 10px; /* Reduced margin */
    }
    .hero-image {
        min-height: 350px; /* Increased height */
        margin: 10px; /* Reduced margin */
    }
    .testimonials-section {
        flex-direction: column;
    }
    .services-section, .intro-section, .video-section, .main-footer {
        margin: 20px 10px; /* Adjusted margins */
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        flex-direction: column;
    }
    .footer-column {
        margin-bottom: 20px; /* Added margin */
    }
}

#mobile-services-bar {
    width: 0;
    max-height: 0;
    overflow: hidden;
}

@media (max-width:768px){
    .main-nav .mega-menu {
        display: none !important
    }
    .mobile-mega-menu{
        display: block !important
    }
    .main-nav .dropdown .mega-menu {
        display: none;
        position: static;
        width: 100%;
        background-color: var(--dark-blue);
        box-shadow: none;
        border-radius: 0;
        padding: 10px 0;
    }
    .main-nav .dropdown.open .mega-menu {
        display: flex;
        flex-direction: column;
    }

    .lemmo {
        margin: 0;
        font-style: italic; /* Made italic */
        font-weight: 600;
        color: var(--main-red); /* Changed color */
        font-size: 2em;
        text-align: center;
    }


    #mobile-services-bar {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }

    #mobile-services-bar.open {
        max-height: 1000px; /* A value larger than the content's height */
    }

    #mobile-services-bar > div > h4 {
        padding: 1em;
        margin: 0em;
        background-color: var(--main-red);
    }
}

.features-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}
.features-list li {
    background: #f9f9f9;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    align-items: center;
    font-size: 1.1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.features-list li::before {
    content: '✓';
    color: #d94841; /* var(--main-red) */
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 15px;
}

/* --- Project Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-overlay.show .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.modal-content h2 {
    color: var(--dark-blue);
    margin-bottom: 20px;
}
.modal-content p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* --- Swiper Gallery in Modal --- */
.modal-gallery {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--main-red);
    background-color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: #f8f8f8;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}
.swiper-pagination-bullet-active {
    background: var(--main-red);
}