/* Variables */
:root {
    --primary-color: #E85D04;
    --secondary-color: #2b2b2b;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

h2 {
    font-weight: bold;
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Navbar Styling */
.navbar {
    position: relative;
    z-index: 2;
    padding: 1rem 0;
}

.copyright {
    font-weight: 300;
    margin: auto;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
}


/* Update to only apply navbarNav styles on mobile */
@media (max-width: 991.98px) {
    #navbarNav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background-color: rgb(32, 32, 32);
    }

    .nav-link.text-white {
        /* color: black !important; */
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-content: center;
        align-items: center;
        margin-top: 72px;
        padding-bottom: auto;
        z-index: 154;
        height: 100vh;
        gap: 32px;
    }

    .navbar.navbar-expand-lg {
        z-index: 154;
    }

    .logo.d-lg-none {
        position: relative;
        top:1.5rem;
        left: 1.5rem;
    }
}

#navbarNav .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0.5rem;
}

.navbar .logo {
    height: 195px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar .nav-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.navbar .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 2px;
}

/* Hero Content */
.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
}

.hero-title {
    color: var(--primary-color);
    font-size: 8rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text {
    color: white;
    font-size: 1.25rem;
    max-width: 600px;
}

/* Add responsive styles for hero content */
@media (max-width: 1400px) {
    .hero-title {
        font-size: 6rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }

    .navbar-toggler {
        color: white;
        border-color: white;
        background-color: white;
        padding: 0.5rem 0.7rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

}

@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-text {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-text br {
        display: none;
    }
}

/* Hero Footer */
.hero-footer {
    position: relative;
    z-index: 2;
    padding: 0.5rem 0;
}

.hero-footer-content {
    border-top: 1px solid var(--primary-color);
}

.contact-info {
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--light-bg);
}

.social-links {
    font-size: 0.9rem;
}

.social-links i {
    font-size: 1.2rem;
}

.img-about {
    height: 400px;
    width: auto;
    transition: height 0.3s ease;
    margin: auto;
}

/* Services Cards */
.card {
    border: none;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Values Section */
.values-section {
    position: relative;
    background: url('../images/values-bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 0;
    box-shadow: 10px 10px 0 var(--primary-color);
    margin: 0 10px 10px 0;
}

.values-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.values-section .values-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
}

.values-section h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.values-section .value-item {
    text-align: center;
    padding: 0 2rem;
}

.values-section .value-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.values-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.values-section p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Contact Form */
.form-control, .form-select {
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

/* Custom Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 2px;
}

.btn-primary:hover {
    background-color: #e85a2c;
    border-color: #e85a2c;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 2px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-submit {
    background-color:#000;
    border-radius: 2px;
    width: 250px;
}

/* Footer */
.social-links a {
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.contact-info-footer,
.site-links {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    padding: 2rem 0;

    p {
        font-size: 16px;
        margin: 0;
    }

    .btn.btn-primary {
        width: 164px;
        height: 40px;
    }
}

.social-links a:hover {
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .navbar .logo {
        height: 150px;
    }
}

@media (max-width: 992px) {
    .navbar .logo {
        height: 120px;
    }
}

@media (max-width: 768px) {
    .navbar .logo {
        height: 100px;
    }
}

@media (max-width: 576px) {
    .navbar .logo {
        height: 80px;
    }
}

/* Accordion Customization */
.accordion-button:not(.collapsed) {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

/* Container customization */
.container {
    padding: 2rem;
    max-width: 1700px !important;
    width: 95%;
    margin: 0 auto;
}

.header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

/* Services Section Styling */
.service-card {
    position: relative;
    width: 100%;
    height: 370px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0) brightness(0.7);
    transition: filter 0.3s ease;
}

.service-card:hover img {
    filter: saturate(1) brightness(1.1);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: white;
    text-align: left;
}

.service-content h5 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-content .btn {
    width: 100%;
    max-width: 100%;
    border-radius: 2px;
    transition: background-color 0.3s ease;
    padding: 8px 0;
}

.service-content .btn:hover {
    background-color: var(--primary-color);
    opacity: 1;
    color: white;
    border: 1px solid var(--primary-color);
}


/* FAQ Section Styling */
.accordion {
    margin-bottom: 1rem;
}

.accordion-item {
    border: none;
    margin-bottom: 0.5rem;
}

.accordion-button {
    display: flex;
    justify-content: space-between;
    padding-right: 3rem;
    border: none;
    background: none;
    box-shadow: none !important;
    font-weight: bold;
    font-size: 20px;
}

.accordion-button:not(.collapsed) {
    background: none;
    color: inherit;
}

.accordion-button:focus {
    border: none;
    box-shadow: none;
}

/* Change chevron to plus/minus */
.accordion-button::after {
    display: none;
}

.accordion-button::before {
    position: absolute;
    right: 1.25rem;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    content: "+";
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease-in-out;
    margin-right: 0;
    font-weight: normal;
}

.accordion-button:not(.collapsed)::before {
    content: "−";
    transform: rotate(0deg);
}

/* Remove the grid styles since we're using Bootstrap columns */
@media (max-width: 768px) {
    .accordion {
        margin-bottom: 0;
    }
}

/* Modal Styles */
.modal-logo {
    height: 60px;
    width: auto;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.modal-header {
    border-bottom: 2px solid var(--primary-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

#serviceImage {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0px;
}

#serviceName {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
}

#serviceDescription {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.modal .btn-primary {
    padding: 1rem 2rem;
    font-weight: 500;
}

/* Modal responsive adjustments */
@media (max-width: 768px) {
    .modal-body {
        padding: 1rem;
    }
    
    #serviceImage {
        height: 250px;
    }
    
    #serviceName {
        font-size: 1.5rem;
    }
    
    #serviceDescription {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Update modal styles */
.modal-dialog {
    max-width: 1000px;
    margin: 1.75rem auto;
}

.modal-content {
    overflow: hidden;
    border: none;
    border-radius: 0;
}

.modal .btn-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    z-index: 2;
    background-color: white;
    opacity: 1;
    padding: 0.75rem;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: white;
}

.modal-content-right {
    height: 100%;
}

#serviceImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#serviceName {
    font-size: 2rem;
    font-weight: bold;
    color: black;
    text-align: left;
    margin-bottom: 2rem;
    line-height: 1.2;
}

#serviceDescription {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 3rem;
    font-weight: 300;
}

.modal .btn-dark {
    padding: 1rem 2.5rem;
    font-weight: 500;
    font-size: 1rem;
    background-color: black;
    border: none;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal .btn-dark:hover {
    background-color: #333;
}

/* Modal responsive adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0;
        min-height: 100vh;
    }

    .modal-content {
        min-height: 100vh;
    }
    
    .modal-content-left {
        order: 2;
        padding: 4rem 2rem;
    }
    
    .modal-content-right {
        order: 1;
    }
    
    #serviceImage {
        height: 40vh;
    }
    
    #serviceName {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    #serviceDescription {
        margin-bottom: 2rem;
    }
}

/* Add responsive footer styles */
@media (max-width: 768px) {
    footer .col-md-4 {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
    }

    .contact-info-footer,
    .site-links {
        align-items: center;
        padding: 1rem 0;
    }

    footer img[alt="Maple Ridge Logo"] {
        margin-bottom: 2rem;
    }

    .hero-footer-content .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-footer-content .social-links  {
        flex-direction: row;
        align-items: center;
        text-align: center;
        margin-top: 1rem;
    }

    .img-about {
        width: 100%;
        height: auto;
    }

    .values-section .values-content {
        padding: 1rem;
    }
    .values-section p {
        text-align: left;
    }

    .values-section h3 {
        font-size: 1.5rem;
    }
    .values-section h2 {
        font-size: 2.2rem;
        margin-top: 1rem;
    }


    .values-section .value-icon {
        width: 80px;
        height: 80px;
    }

    

}