html {
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Open Sans', sans-serif;
    padding-top: 95px;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

p, a, li, span {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

/*#region Nav Bar Styles*/
/* Nav Bar Styles */
.navbar-custom {
    background-color: #d3ad2c;
}

.navbar-brand img {
    height: 70px;
    width: auto;
}

/* Remove default underline */
.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none; /* Remove default underline */
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px; /* Adjust position as needed */
    width: 0;
    height: 2px; /* Adjust thickness as needed */
    background-color: #ffeeba;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after,
.navbar-nav .nav-link.active::after {
    left: 0;
    width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #ffeeba;
    transform: translateY(-3px);
}

/* Styles for active links */
.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-link.active {
    color: #fff !important;
}

.navbar-nav.social-icons .nav-item {
    flex-grow: 0;
    display: flex;
    justify-content: flex-end;
    padding-left: 20px !important;
    padding-right: 10px !important;
}

.navbar-nav .social-icons .nav-link {
    font-size: 40px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-nav .social-icons .nav-link:hover {
    color: #ffeeba;
    transform: scale(1.1);
}

.navbar-nav.mx-auto {
    display:flex !important;
    justify-content:center !important;
    margin-right: auto !important;
    margin-left: 50% !important;
}

.navbar-brand, .nav-link {
    color: #fff !important;
}

.navbar-collapse {
    justify-content: center !important;
}

.navbar-brand {
    margin-right: -30%;
    margin-left: 15%;
}

.navbar-toggler {
    position: absolute;
    right: 0;
    z-index: 999;
}


.navbar-nav.social-icons .nav-item .icon-facebook {
    font-size: 30px !important;
}

.navbar-nav .social-icons .nav-item {
    padding: 0 10px;
}

/* Contact Info Styles */
.navbar-nav.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.navbar-nav.contact-info .nav-item {
    margin: 0;
}

.navbar-nav.contact-info .nav-link {
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.navbar-nav.contact-info .nav-link i {
    margin-right: 5px;
}

footer {
    margin-top: -20px;
    padding: 20px 0 !important;
    background: #f8f9fa;
    text-align: center;
    color: #6c757d;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .navbar-nav.social-icons {
        margin-right: 0;
        justify-content: center;
        align-items: center;
    }
    .navbar-nav.contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .navbar-nav .nav-link{
        display:flex;
        align-items: center;
        justify-content: center !important;
        margin-right:0px;
    }
    .navbar-nav.mx-auto {
        display: flex !important;
        justify-content: center !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }
}

/*
@media (max-width: 768px) {
    .navbar-nav .nav-item {
        margin: 0 auto;
    }
}*/
/* End of styles for active links on nav bar*/
/*#endregion RegionName*/

/*#region Services Cards*/

/* Enhanced services styles section */
.container h2 {
    font-weight: bold;
    color: #333;
}

/* Initial state for animation */
.service-card {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out !important;
    transition-delay: calc(0.1s * var(--animation-order)) !important;
}

    .service-card.in-view {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* Hover state */
    /*.service-card:hover {
        transform: scale(1.05) !important;
        transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out !important;
    }*/

/* Box shadow and margin for cards */
.card.service-card {
    margin: 0 auto;
    margin-bottom: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    width: 70%;
}


.service-icon {
    width: 60px;
    height: 60px;
}

.icon-img {
    max-width: 100%;
    max-height: 100%;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #d3ad2c;
}

.card-text {
    color: #555;
}

.service-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d3ad2c;
}

.service-card .card-text {
    color: #555;
    font-size: 1rem;
    margin: 15px 0;
}

.service-card .btn-outline-primary {
    color: #d3ad2c;
    border-color: #d3ad2c;
    transition: background-color 0.3s, color 0.3s;
}

    .service-card .btn-outline-primary:hover {
        background-color: #d3ad2c;
        color: #fff;
    }

blockquote {
    border-left: 5px solid #d3ad2c;
    padding-left: 15px;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .service-card .card-title {
        font-size: 1.25rem;
    }

    .service-card .card-text {
        font-size: 0.9rem;
    }

    .service-card .btn-outline-primary {
        font-size: 0.875rem;
    }

    blockquote {
        font-size: 0.8rem;
    }

    .blockquote-footer {
        font-size: 0.75rem;
    }
}

/* Add these styles in the Services Cards region */
.service-card .list-unstyled {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
}

.service-card .card-text ul.list-unstyled {
    padding-left: 20px;  /* Adjust this value as needed */
    margin: 10px auto;
    width: fit-content;
}

.service-card .card-text {
    text-align: center;
}

.service-card .card-text ul.list-unstyled li {
    text-align: left;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.service-card .card-text ul.list-unstyled li i {
    margin-right: 10px;
    flex-shrink: 0;  /* Prevents icon from shrinking */
    width: 20px;     /* Fixed width for icons */
    text-align: center;
}

/* END OF SERVICES STYLES*/
/*#endregion Services Cards*/


.container {
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
    margin-right: auto;
    margin-left: auto;
    padding: 0;
}

.col-md-4 {
    padding: 0 15px;
}

.row {
    justify-content: center;
}


/*#region Carousel*/

.carousel {
    width: 100vw;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    overflow: hidden;
}

.carousel-caption.custom-caption {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.5); 
    padding: 20px;
    z-index: 1; /* Ensures the captions are below the controls */
}

.carousel-caption h5 {
    font-size: 2rem;
    font-weight: bold;
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.carousel-caption .btn {
    font-size: 1rem;
}

.carousel-inner {
    width: 100%;
}

.carousel-item {
    width: 100%;
    height: 50vh;
    background-size: cover;
    background-position: center;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 2;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Ensure the icons are visible */
    border-radius: 50%;
    padding: 10px;
}

.carousel-indicators li {
    background-color: #fff;
}

.carousel-item .carousel-caption {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/*#endregion Carousel*/

section {
    margin: 0;
    padding: 0;
    margin-bottom: 0px;
}

main, section {
    margin: 0;
    padding: 0;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

::placeholder {
    color: #aaa;
    opacity: 1;
}

/*#region Contact us Form*/

.form-styled {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.form-styled .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-styled .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.form-styled .btn-primary {
    background-color: #d3ad2c;
    border-color: #d3ad2c;
    border-radius: 4px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.form-styled .btn-primary:hover,
.form-styled .btn-primary:focus {
    background-color: #b3981f;
    border-color: #b3981f;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.5);
}

.form-styled ::placeholder {
    color: #aaa;
    opacity: 1;
}

.form-styled .form-group {
    margin-bottom: 1.5rem;
}

/* Additional Styles for Icons */
ul.list-unstyled {
    padding-left: 0;
}

    ul.list-unstyled li {
        margin-bottom: 10px;
    }

    ul.list-unstyled i {
        color: #d3ad2c;
        margin-right: 10px;
    }

.form-group input[type="submit"] {
    border: none;
    border-radius: 0;
    background-color: #d3ad2c;
    color: white;
}

#form-message-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

#form-message-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.form-control {
    border: none;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    transition: border-color 0.3s;
}

    .form-control:focus {
        border-bottom-color: #007bff;
        box-shadow: none;
        outline: none;
    }

.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.border-right {
    border-right: 1px solid #eee;
}

.btn-primary {
    background-color: #d3ad2c;
    border-color: #d3ad2c;
    border: none;
    transition: background-color 0.3s, box-shadow 0.3s;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #b3981f;
        border-color: #b3981f;
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.5);
    }

@media (max-width: 768px) {
    .form-row .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/*#endregion Contact Form*/


blockquote .blockquote-footer {
    margin-top: 15px;
}

.parallax {
    background-image: url('/images/sample2.jpg');
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Remove bottom margin from the last section */
section#social-media {
    margin-bottom: -60px;
    margin-top: 0;
}

/*#region Socials*/

#instafeed-container .instafeed-item {
    float: left;
    width: 30%;
    margin: 1.5%;
    box-sizing: border-box;
}

#instafeed-container {
    overflow: hidden;
}

    #instafeed-container img {
        width: 100%;
        height: auto;
    }

.fb-page {
    margin: 20px auto;
    max-width: 500px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.custom-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 920px;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.content-wrapper {
    max-width: 960px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
}

.center-logo {
    max-width: 300px;
    margin: 0 auto 20px;
}

.container.my-5 {
    padding: 60px 0;
}

.container.my-5 h2 {
    margin-bottom: 30px;
    font-weight: bold;
    color: #333;
}

.container.my-5 .col-md-6 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0 13px;
}

.instagram-media, iframe {
    width: 100%;
    height: 550px;
    max-width: 540px;
    margin: 0 auto;
    display: block;
    border: none;
}

.custom-heading-margin {
    margin-top: -55px !important; /* Adjust this value as needed */
    margin-bottom: 90px !important; /* Adjust this value as needed */
}

@media (min-width: 992px) {
    .container.my-5 .row {
        justify-content: space-around;
    }
}
/*#endregion Socials*/

/*#region Backgrounds*/

#services {
    background: linear-gradient(135deg, #f9f6f2 0%, #f1e8da 100%);
    padding: 60px 0;
}

#contact-form {
    background: url('/images/email-pattern.png') repeat;
    background-blend-mode: overlay;
    padding: 100px 0;
}

#social-media {
    background: url('/images/fourroofnobg.png');
/*    background-blend-mode: overlay;
*/    background-position: bottom;
    padding: 80px 0;
}

#contact-form > *, #social-media > *, #services > * {
    margin: 0;
    padding: 0;
}

#contact-form .container, #social-media .container {
    margin-bottom: 0;
}

/* Remove margin from the last child of each section */
section > *:last-child {
    margin-bottom: 0;
}

/* Remove default margins from headings and containers */
h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0;
}

.container h2, .container h3, .container h4, .container h5, .container h6 {
    margin-bottom: 20px;
}

/*#endregion backgrounds*/

/*#region Reviews page*/

.masonry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.masonry-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transition-delay: calc(0.1s * var(--animation-order));
}

    .masonry-item.in-view {
        opacity: 1;
        transform: translateY(0);
    }


.masonry-item {
    transition-delay: calc(0.1s * var(--animation-order));
}

.review-card {
    border: 1px solid #d3ad2c;
    border-radius: 10px;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.blockquote {
    border-left: 5px solid #d3ad2c;
    padding-left: 15px;
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

.blockquote-footer {
    color: #d3ad2c;
    font-size: 1rem;
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}
 /*#endregion Reviews page*/

/*#region Gallery Styling*/

#photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-item {
    flex: 0 0 22%; /* Adjusted size of the card to fit 4 per row with some margin */
    max-width: 22%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding between items */
}

.gallery-card {
    width: 100%; /* Ensure the card takes the full width of its container */
    border: 1px solid #ddd; /* Add border for card */
    border-radius: 8px; /* Add border radius for card */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for card */
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .gallery-card:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.card-body {
    padding: 15px;
}

.card-text {
    font-size: 1em;
    color: #333;
}

.text-only-post {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background-color: #f8f9fa; /* Light background color for text-only posts */
    text-align: center;
}

    .text-only-post .card-text {
        font-size: 1.2em;
        color: #333;
        padding: 10px;
    }

.skeleton-item {
    flex: 0 0 30%;
    max-width: 30%;
    padding: 0 15px;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.skeleton-item::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.pagination {
    margin-top: 20px;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination .page-link {
    color: #d3ad2c;
    border: 1px solid #dee2e6;
    margin: 0 5px;
}

.pagination .page-link:hover {
    color: #b3981f;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination .page-link:focus {
    box-shadow: none;
}



.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-dialog {
    max-width: 80%;
    margin: auto;
}

.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    z-index: 1050 !important; /* Ensure modal is above the backdrop */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.modal-backdrop {
    z-index: 1040 !important; /* Ensure backdrop is behind the modal */
}

.modal.fade .modal-dialog {
    transform: translateY(-100px);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    border-bottom: none;
    padding: 1rem 1.5rem;
    background-color: #d3ad2c;
    color: #fff;
}

.modal-header .close {
    color: #fff;
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
    text-align: center;
}

.modal-body img {
    max-width: 100%;
    max-height: 80vh; /* Cap the maximum height to 80% of the viewport height */
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.modal-body #modal-caption {
    margin-top: 1rem;
    font-size: 1rem;
    color: #333;
}

.modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
    justify-content: center;
}

.modal-footer .btn {
    border-radius: 5px;
}

.modal-footer .btn-primary {
    background-color: #d3ad2c;
    border-color: #d3ad2c;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.modal-footer .btn-primary:hover,
.modal-footer .btn-primary:focus {
    background-color: #b3981f;
    border-color: #b3981f;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.5);
}

.modal-footer .btn-secondary {
    color: #333;
    background-color: #f8f9fa;
    border-color: #ddd;
}

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
 /*#endregion Gallery Styling*/