/* Font Declarations removed and moved to fonts.css */

/* Font Weights */
:root {
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Avenir-like font stack */
    --font-avenir: 'Avenir', 'Montserrat', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-avenir);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    font-weight: var(--font-regular);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-avenir);
    font-weight: var(--font-semibold);
}

/* Additional Typography Styles */
strong, b {
    font-weight: var(--font-bold);
}

.text-medium {
    font-weight: var(--font-medium);
}

.text-semibold {
    font-weight: var(--font-semibold);
}

.text-bold {
    font-weight: var(--font-bold);
}

.text-extrabold {
    font-weight: var(--font-extrabold);
}

/* Header Styles */
.top-header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 80px;
    width: auto;
}

.contact-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.btn-estimate {
    background-color: #0275d8;
    color: white;
    font-weight: var(--font-bold);
    padding: 10px 20px;
    border: none;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-avenir);
}

.btn-estimate:hover {
    background-color: #025aa5;
    color: white;
    text-decoration: none;
}

.phone-number {
    color: #0275d8;
    font-weight: var(--font-bold);
    font-size: 1.5rem;
    font-family: var(--font-avenir);
}

.nav-bar {
    background-color: #e9e9e9;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 0;
}

.nav-bar .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-bar .nav-link {
    color: #333;
    font-weight: var(--font-medium);
    padding: 15px 20px;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-family: var(--font-avenir);
    letter-spacing: 0.5px;
}

.nav-bar .nav-item.active .nav-link {
    color: #0275d8;
    font-weight: var(--font-semibold);
}

.nav-bar .nav-link:hover {
    color: #0275d8;
}

/* Mobile Navigation Toggle */
.navbar-toggler {
    display: none;
    background-color: #0275d8;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 10px auto;
    border-radius: 4px;
    font-weight: var(--font-medium);
    width: 100%;
    max-width: 200px;
    text-align: center;
    font-family: var(--font-avenir);
}

.navbar-toggler i {
    margin-right: 5px;
}

.banner {
    background-image: url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.banner .row{min-height: 493px;align-items: center;}
.banner h3{font-size: 42px;font-weight: var(--font-bold); margin-bottom: 20px;}
.banner h3 mark {
	background-color: #0275d8;
	color: #fff;
	padding: 4px 0px;
	font-family: var(--font-avenir);
	font-weight: var(--font-bold);
	margin-bottom: 15px;
	line-height: 60px;
}

.banner p {
    font-family: var(--font-avenir);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: var(--font-regular);
}

.btn-inline {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-inline .btn {
    font-family: var(--font-avenir);
    font-weight: var(--font-semibold);
    padding: 10px 20px;
    border-radius: 4px;
}

.btn-secondary {
    background-color: rgb(55, 55, 55);
    border-color: rgb(55, 55, 55);}

/* Header Refinements */
.top-header span {
    font-weight: var(--font-medium);
}

/* Button Refinements */
.btn-primary {
    background-color: #0275d8;
    border-color: #0275d8;
    font-weight: var(--font-semibold);
}

.btn-primary:hover {
    background-color: #025aa5;
    border-color: #025aa5;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

/* Banner Refinements */
.banner b {
    font-weight: var(--font-extrabold);
    color: #0275d8;
}

.banner .btn-inline .btn{border-radius: 10px;}

/* Testimonials Section */
.testimonials-section {
    background-color: #ffffff;
    padding: 60px 0;
}

.testimonials-section h2 {
    font-family: var(--font-avenir);
    font-weight: var(--font-semibold);
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #333;
}

.testimonial-card {
    height: 100%;
    padding: 20px;
    text-align: left;
}

.testimonial-title {
    font-family: var(--font-avenir);
    font-weight: var(--font-semibold);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #0275d8;
}

.testimonial-content {
    font-family: var(--font-avenir);
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

/* Customer Quote Section */
.customer-quote-section {
    background-color: #0275d8;
    padding: 60px 0;
}

.quote-text {
    font-family: var(--font-avenir);
    font-size: 1.4rem;
    line-height: 1.8;
    font-weight: var(--font-regular);
    margin-bottom: 20px;
}

.quote-author {
    font-family: var(--font-avenir);
    font-weight: var(--font-medium);
    font-size: 1.1rem;
}

/* Services Section */
.services-section {
    background-color: #ffffff;
    padding: 60px 0;
}

.service-card {
    height: 100%;
    padding: 20px;
    text-align: left;
}

.service-title {
    font-family: var(--font-avenir);
    font-weight: var(--font-semibold);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #0275d8;
}

.service-content {
    font-family: var(--font-avenir);
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.riba-link {
    color: #0275d8;
    font-weight: var(--font-semibold);
    text-decoration: none;
}

.riba-link:hover {
    text-decoration: underline;
}

.services-section .btn-primary {
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 5px;
    margin-top: 20px;
}

.banner_img{width: 100%;}
.banner_img img{width: 100%;}
.nav-bar .nav-item:hover .dropdown-menu {
	display: block;
} 
/* Responsive adjustments */
@media (max-width: 991px) {
    .nav-bar .nav-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .contact-info {
        text-align: center;
        margin-top: 20px;
        align-items: center;
    }
    
    .logo {
        text-align: center;
        justify-content: center;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse:not(.show) {
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .nav-bar .nav {
        flex-direction: column;
    }
    
    .nav-bar .nav-item {
        text-align: center;
        width: 100%;
    }
    
    .nav-bar .nav-link {
        padding: 10px;
        border-bottom: 1px solid #ddd;
        display: block;
        width: 100%;
    }
    
    .nav-bar .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .btn-estimate {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        text-align: center;
    }
    
    .phone-number {
        font-size: 1.3rem;
    }
    
    .banner .row {
        min-height: 350px;
        padding: 40px 0;
    }
    
    .banner h3 span {
        font-size: 1.5rem;
        padding: 8px 15px;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    .btn-inline {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-inline .btn {
        width: 100%;
        text-align: center;
    }


    .top-header .navbar-toggler {
        position: absolute;
        max-width: 41px;
        left: 20px;
        top: 20px;
    }
    .top-header .contact-info {
        display: none;
    }
    .nav-bar {
        position: absolute;
        top: 89px;
        left: 0;
        right: 0;
    }
    .banner h3{font-size: 34px;}
    .banner h3 br{display: none;}
    .why-choose-us .order-2 {
        order: 1 !important;
    }

    .nav-bar .nav-item .dropdown-menu {
        position: static;
        text-align: center;
    } 
}

@media (max-width: 576px) {
    .logo img {
        max-height: 60px;
    }
    
    .phone-number {
        font-size: 1.2rem;
    }
    
    .nav-bar .nav-link {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    .btn-estimate {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .banner .row {
        min-height: 300px;
    }
    
    .banner h3 span {
        font-size: 1.3rem;
        padding: 6px 12px;
    }
}

/* Projects Gallery Styles */
.projects-gallery {
    background-color: #f8f9fa;
}

.gallery-item {
    position: relative;
    /* margin-bottom: 20px; */
    overflow: hidden;
    /* border-radius: 8px; */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Modal/Lightbox Styles */
.modal-xl {
    max-width: 90%;
}

.error {
	color:#F00;
	font-size:13px;
}

#galleryModalImage {
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: none;
    padding: 1rem 1.5rem 0.5rem;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-body {
    padding: 1rem;
    background-color: #fff;
}

.modal-footer {
    border-top: none;
    padding: 0.5rem 1.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
    justify-content: center;
}

.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.btn-close {
    background-color: #fff;
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
    transition: all 0.2s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Lightbox Container and Navigation */
.lightbox-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.lightbox-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 70vh;
    position: relative;
}

/* Lightbox spinner */
.lightbox-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

/* Hide spinner when image is loaded */
#galleryModalImage.loaded + .lightbox-spinner,
#galleryModalImage:not([src=""]) + .lightbox-spinner {
    display: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.lightbox-nav:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

/* Lightbox caption and counter */
.lightbox-caption {
    max-width: 80%;
    margin: 0 auto;
    color: #333;
}

#lightboxCaption {
    font-size: 1rem;
    font-weight: 500;
}

.lightbox-counter {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Download button */
#downloadImage {
    transition: all 0.2s ease;
}

#downloadImage:hover {
    transform: translateY(-2px);
}

/* Responsive adjustments for gallery */
@media (max-width: 768px) {
    .gallery-image {
        height: 180px;
    }
    
    .lightbox-nav {
        width: 35px;
        height: 35px;
    }
    
    .lightbox-caption {
        max-width: 95%;
    }
}

@media (max-width: 576px) {
    .gallery-image {
        height: 150px;
    }
    
    .modal-xl {
        max-width: 95%;
    }
    
    .lightbox-nav {
        width: 30px;
        height: 30px;
    }
    
    #lightboxCaption {
        font-size: 0.9rem;
    }
} 