/* Mertens Construction - Main Stylesheet */

/* Global Styles */
:root {
    --primary-color: #e63946;
    --secondary-color: #2a3b4c;
    --light-color: #f1faee;
    --dark-color: #1d3557;
    --gray-color: #6c757d;
    --white-color: #ffffff;
    --black-color: #212529;
    --section-padding: 5rem 0;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--black-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

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

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

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

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #d12836;
    border-color: #d12836;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #1e2a38;
    border-color: #1e2a38;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray-color);
}

/* Header */
.navbar {
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 50px;
}

.navbar-brand span {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-left: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--white-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Services Section */
.services {
    padding: var(--section-padding);
}

.service-box {
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Projects Section */
.projects {
    padding: var(--section-padding);
    background-color: var(--light-color);
}

.project-item {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    height: 300px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover .project-image {
    transform: scale(1.1);
}

.project-title {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-category {
    color: var(--primary-color);
    font-weight: 500;
}

/* About Section */
.about {
    padding: var(--section-padding);
}

.about-image {
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.about-content {
    padding: 2rem;
}

.about-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

.core-values {
    margin-top: 2rem;
}

.value-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.value-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.value-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.value-content p {
    color: var(--gray-color);
}

/* Team Section */
.team {
    padding: var(--section-padding);
    background-color: var(--light-color);
}

.team-member {
    margin-bottom: 30px;
    text-align: center;
}

.team-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.team-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-social {
    margin-top: 1rem;
}

.team-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white-color);
    color: var(--secondary-color);
    margin: 0 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-social a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Testimonials Section */
.testimonials {
    padding: var(--section-padding);
}

.testimonial-item {
    padding: 2rem;
    background-color: var(--white-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.testimonial-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.testimonial-position {
    color: var(--primary-color);
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white-color);
}

.cta-text {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.contact-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-content p, .contact-content a {
    color: var(--gray-color);
}

.contact-form .form-control {
    padding: 0.75rem 1.25rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    border: 1px solid #ced4da;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.contact-form textarea.form-control {
    resize: none;
    height: 150px;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.footer-social {
    margin-bottom: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.footer-title {
    font-size: 1.25rem;
    color: var(--white-color);
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact-icon {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.25rem;
}

.footer-bottom {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Gallery */
.gallery-container {
    position: relative;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    height: 250px;
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border: 5px solid var(--white-color);
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white-color);
    padding: 10px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--white-color);
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--white-color);
    cursor: pointer;
    padding: 10px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* Navbar scrolled */
.navbar-scrolled {
    padding: 0.75rem 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 60vh;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .service-box {
        padding: 1.5rem;
    }
    
    .gallery-item {
        height: 200px;
    }
}