/**
 * Main Stylesheet
 * Upright Solutions Services Website
 */

/*
 * Base Styles
 */
:root {
    --primary-color: #304b65;
    --secondary-color: #3db1c5;
    --accent-color: #f0ad4e;
    --light-color: #f8f8f9;
    --dark-color: #333333;
    --gray-color: #6c757d;
    --border-color: #e9e9e9;
    --body-font: 'Open Sans', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--dark-color);
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

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

.section-title p {
    max-width: 700px;
    margin: 0 auto;
}

/*
 * Top Bar
 */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar a {
    color: #fff;
}

.top-bar a:hover {
    color: var(--accent-color);
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.social-links a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 5px;
}

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

/*
 * Header
 */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.logo h1 {
    font-size: 28px;
    margin-bottom: 0;
}

.logo h1 span {
    color: var(--secondary-color);
}

.main-nav .navbar-nav {
    margin-left: auto;
}

.main-nav .nav-item {
    margin-left: 5px;
}

.main-nav .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px 15px;
    position: relative;
}

.main-nav .nav-link:hover,
.main-nav .nav-item.active .nav-link {
    color: var(--secondary-color);
}

.main-nav .nav-item.active .nav-link:after {
    content: '';
    position: absolute;
    left: 15px;
    bottom: 5px;
    width: calc(100% - 30px);
    height: 2px;
    background-color: var(--secondary-color);
}

.main-nav .btn-estimate {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    padding: 10px 20px;
}

.main-nav .btn-estimate:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.mobile-menu-toggle {
    text-align: right;
}

.navbar-toggler {
    border: none;
    background: transparent;
    font-size: 24px;
    color: var(--primary-color);
    padding: 0;
}

/*
 * Hero Section
 */
.hero-section {
    background-color: #beccd8;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 150px 0;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/*
 * Services Section
 */
.services-section {
    background-color: var(--light-color);
    position: relative;
}

.service-card {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
}

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

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

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

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

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-content p {
    margin-bottom: 20px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 28px;
    color: #fff;
}

.service-features {
    margin-bottom: 20px;
}

.service-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    list-style: none;
}

.service-features li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/*
 * About Section
 */
.about-section {
    overflow: hidden;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 6px;
}

.experience-box {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 20px;
    border-radius: 6px;
    min-width: 150px;
    text-align: center;
}

.experience-box h3 {
    font-size: 42px;
    margin-bottom: 0;
    color: #fff;
}

.experience-box p {
    margin-bottom: 0;
    font-weight: 600;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content .highlight {
    color: var(--secondary-color);
}

.about-features {
    margin-top: 30px;
}

.about-feature-item {
    margin-bottom: 20px;
}

.about-feature-item i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.about-feature-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

/*
 * Call to Action
 */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 20px;
}

.cta-section p {
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/*
 * Testimonials
 */
.testimonials-section {
    background-color: var(--light-color);
}

.testimonial-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.testimonial-content {
    position: relative;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.testimonial-content:before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 30px;
    color: var(--secondary-color);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: -10px;
}

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

.testimonial-client-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-client-info h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.testimonial-client-info p {
    margin-bottom: 0;
    color: var(--gray-color);
}

/*
 * Contact Section
 */
.contact-section {
    position: relative;
}

.contact-info-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    text-align: center;
}

.contact-info-item i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-info-item h4 {
    margin-bottom: 10px;
}

.contact-info-item p {
    margin-bottom: 0;
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.form-control {
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

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

/*
 * Footer
 */
.main-footer {
    background-color: var(--dark-color);
    color: #fff;
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 22px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-widget p {
    margin-bottom: 15px;
}

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

.footer-services li {
    margin-bottom: 10px;
}

.footer-services li a {
    color: #fff;
    transition: var(--transition);
}

.footer-services li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-services li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

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

.footer-contact li {
    display: flex;
    margin-bottom: 20px;
}

.footer-contact li i {
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 18px;
    margin-top: 5px;
}

.footer-contact li a {
    color: #fff;
}

.footer-contact li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom a {
    color: var(--secondary-color);
}

/*
 * Back to Top Button
 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

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

/*
 * Modal
 */
.modal-content {
    border-radius: 6px;
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary-color);
    color: #fff;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 30px;
}

/*
 * Service Detail Page
 */
.service-banner {
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/service-banner.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.service-banner h1 {
    color: #fff;
    margin-bottom: 20px;
}

.service-detail-section {
    padding: 80px 0;
}

.service-detail-image {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 30px;
}

.service-detail-content h2 {
    margin-bottom: 20px;
}

.service-detail-features {
    margin: 30px 0;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 6px;
}

.service-detail-features h3 {
    margin-bottom: 20px;
}

.service-detail-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-detail-features li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.service-detail-features li:before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 20px;
}

.service-cta {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 6px;
    margin-top: 40px;
    color: #fff;
}

.service-cta h3 {
    color: #fff;
    margin-bottom: 20px;
}

/*
 * About Page
 */
.about-banner {
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/about-banner.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.about-banner h1 {
    color: #fff;
    margin-bottom: 20px;
}

.team-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.team-member {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    text-align: center;
}

.team-image {
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-content {
    padding: 25px;
}

.team-content h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.team-content p {
    color: var(--gray-color);
    margin-bottom: 15px;
}

.team-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: var(--light-color);
    border-radius: 50%;
    margin: 0 5px;
    color: var(--dark-color);
}

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

/*
 * Contact Page
 */
.contact-banner {
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/contact-banner.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.contact-banner h1 {
    color: #fff;
    margin-bottom: 20px;
}

#contactMap {
    height: 400px;
    margin-bottom: 60px;
    border-radius: 6px;
    overflow: hidden;
}

/*
 * Responsive Styles
 */
@media (max-width: 1199px) {
    .hero-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-section {
        padding: 120px 0;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .main-nav .navbar-nav {
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }

    .main-nav .nav-item {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .main-nav .nav-link {
        padding: 10px 0;
    }

    .main-nav .nav-item.active .nav-link:after {
        display: none;
    }
}

@media (max-width: 767px) {
    .section-title h2 {
        font-size: 30px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .top-bar {
        text-align: center;
    }

    .social-links {
        margin-top: 10px;
    }

    .contact-info span {
        display: block;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .text-end {
        text-align: center !important;
        margin-top: 10px;
    }
}

@media (max-width: 575px) {
    .section-padding {
        padding: 50px 0;
    }

    .hero-section {
        padding: 100px 0;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}
