/*
Theme Name:EJM Stonemasonry Theme
Author: Eimear Mooney
Version: 1.0

*/
/*--Fade keyframes--*/

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Optional: Adds a subtle upward motion */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Noto Sans', sans-serif;
}

.fade-in {
    opacity: 0; /* Start invisible */
    animation: fadeIn 1.5s ease-in-out forwards; /* Adjust timing and easing as needed */
}

.fade-in-delay {
    animation-delay: 0.5s; /* Add a delay for staggered animations */
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px); /* Slide in from below */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/*---HEADER---*/

header .bg-dark {

  background-color: #497980 !important;
  margin-top: 0px !important;
}



.container {
    z-index: 1000;
    position: relative;
}



header .navbar {
    background-color: #ffffff !important;
    color: #395274 !important;
    margin: 0px;


}

header a:hover,
.navbar-nav .nav-link:hover,
.navbar-brand:hover {
    color: ##395274 !important; /* Light blue on hover */
    text-decoration: overline; /* Optional: underline for emphasis */
}

header a:hover {
    color: #ffffff !important; /* Light blue for hover effect */
}

.custom-logo {
    max-height: 100px; /* Adjust height as needed */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Ensure proper alignment */
  }

.navbar {
    background-color: #ffffff !important; /* Ensures the navbar has the blue background */
    margin: 0px;
    z-index: 900;
    position: relative;

}

header .menu-item {
 margin-right: 30px;

}

.navbar-brand, .navbar-nav .nav-link {
    color: #7BACB3 !important; /* Ensures the brand and navigation links are white */
}

/* Style for the Contact Us button */
.navbar-nav .btn-contact a {
    margin-left: 50px;
    font-size: 1rem;
    padding: 10px 20px;
    text-decoration: none !important;
    color: #55501A !important;
    background-color: #D5CE75 !important;  /* You can change the button color */
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border-color: transparent;
}

.navbar-nav .btn-contact a:hover {
  background-color: #A9A033 !important;
  border-color: transparent !important;
  color: #55501A !important;  /* Hover effect for the button */
  text-decoration: none !important;
}

/*---HERO SECTION---*/


.btn {
    font-size: 1rem;
    padding: 10px 20px;
    text-decoration: none;
    color: #55501A !important;
    background-color: #D5CE75 !important;  /* You can change the button color */
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border-color: transparent !important;
}



.btn:hover {
    background-color: #A9A033 !important;
    border-color: transparent !important;
    color: #55501A !important;  /* Hover effect for the button */
}

.hero-section {
      
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  min-height:60vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: 0px; /* Removes any default margin */
    padding: 0; /* Ensures there's no extra padding around the image */
    width: 100%; /* Ensures the hero section spans the full width */
    background: rgba(0, 0, 0, 0.5);
}

.hero-content-home {
    text-align: left;
    /*background: rgba(0, 0, 0, 0.5); /* Semi-transparent background to make text readable */
    padding: 20px;
    border-radius: 10px;
    margin-left: 50px;

}

.hero-content-home h1 {
    font-size: 60px;
    font-weight: bold;

}

.hero-content-home p {
    font-size: 30px;
    font-weight: lighter;

}

.hero-content-about {
  text-align: left;
  /*background: rgba(0, 0, 0, 0.5); /* Semi-transparent background to make text readable */
  padding: 20px;
  border-radius: 10px;
  margin-left: 50px;
}

.hero-content-about h1 {
    font-size: 30px;
    font-weight: bold;

}

.hero-content-about p {
    font-size: 15px;
    font-weight: lighter;

}

.hero-content-projects {
  text-align: left;
  /*background: rgba(0, 0, 0, 0.5); /* Semi-transparent background to make text readable */
  padding: 20px;
  border-radius: 10px;
  margin-left: 50px;
}

.hero-content-projects h1 {
    font-size: 30px;
    font-weight: bold;

}

.hero-content-projects p {
    font-size: 15px;
    font-weight: lighter;

}



.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-top: 20px;
}

.hero-content .btn-primary {
    font-size: 1rem;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff !important;
    background-color: #395274;  /* You can change the button color */
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border-color: transparent !important;
}

.hero-content .btn-primary:hover {
    background-color: #141D29;
    border-color: transparent;
    color: #141D29;  /* Hover effect for the button */
}





/*---Why Choose Us Icons---*/
.home-icon {
  display: flex;
  flex-direction: column;
  align-items: center; /* Optional: Center horizontally */
}

.home-icon i {
    background: #f6f6f6;
    color: #497980;
    border-radius: 30px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    float: left;
    margin-right: 14px;
    font-size: 22px;
    box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease 0s;

}

.home-icon:hover i {
    background: #497980;
    color: #fff;
}

.home-icon h4 {
    font-size: 18px;
    margin-bottom: 0px;
    font-weight: 600;
}

.home-icon p {
    margin-top: 5px;
}


.card {
    margin: 30px; /* Spacing between cards */
    border-color: transparent !important;
}

.card-body {
    padding: 15px; /* Add padding for better spacing inside the cards */
    height: auto; /* Allow the card body to expand as needed */
}

.card-text {
    font-size: 14px; /* Adjust text size for better readability */
    line-height: 1.5; /* Improve text spacing */
    margin-top: 10px; /* Add space between title and paragraph */
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px; /* Space between the title and text */
}




/* Column Layout and Responsiveness */
.row {
    display: flex;
    flex-wrap: wrap; /* Ensure it wraps on smaller screens */
    justify-content: space-between; /* Evenly distribute columns */
}

.row.text-center {
    display: flex !important;
    justify-content: space-between !important;
    gap: 20px !important;


}

.col-4 {
    margin: 0.5rem;
}

.col-12 {
  display:flex;
}

@media (max-width: 768px) {
    .col-md-4 {
        max-width: 100%; /* Stack the cards on smaller screens */
    }

    .card {
        width: 100%; /* Make cards full width on small screens */
    }
}


/* --FOOTER--*/


.site-footer {
    width: 100% !important; /* Ensure the footer spans the full width */
    margin: 0; /* Remove any default margin */
    padding: 20px 0; /* Adjust padding for visual appeal */
    background-color: #7BACB3 !important; /* Ensure the background color spans the full width */
    color: white !important; /* Text color for contrast */
}

.footer-container {
    max-width: 1200px; /* Set a maximum width for the inner content */
    margin: 0 auto; /* Center the content horizontally */
    padding: 0 15px; /* Add padding for smaller screens */
}



.footer-nav {
    text-align: center;
    color: white !important; /* Text color for contrast */
}

.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    color: white !important; /* Text color for contrast */
}

footer .menu-item a {
  color: white !important; /* Text color for contrast */
  text-decoration: none !important;

}

footer .menu-item a:hover {
    color: #BBD4D8 !important; /* Optional: Change color on hover */
    text-decoration: none !important; /* Prevents underline on hover */
}

footer a {
  font-size: 12px;
}

.footer-bottom {
  font-size: 10px;
}


/*---ABOUT US---*/

.about-us-page h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.about-us-page .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}


.hero-section-about-us {
  position: relative;
  background-size: cover; /* Ensures the image covers the entire section */
  background-position: center center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents the image from repeating */
  height: 50vh; /* Makes sure the hero section takes up the entire viewport height */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  margin-top: 30px; /* Removes any default margin */
  padding: 0; /* Ensures there's no extra padding around the image */
  width: 100%; /* Ensures the hero section spans the full width */
}

.text-left {
  text-align: left;
}

.para {
  padding-right: 80px;
  text-align: justify;
}

.col-lg-12{
  text-align: left;
  padding: 0px;

}

.col-md-auto{
  margin: 30px;
  padding; 0px;
}

.col-8 {
  text-align: left;
  padding: 40px;
}

.rounded-square-img {
  width: 100%;        /* Adjust the width */
  height: 200px;       /* Set the height equal to the width for square */
  object-fit: cover;   /* Crop the image to cover the container */
  border-radius: 10px; /* Adjust the border-radius for rounded corners */
}



/*---Quote Carousel---*/

.carousel-item {
    background-color: #f8f9fa;
    border-radius: 10px;
}

.carousel-inner .blockquote {
    font-style: italic;
    font-size: 1.25rem;

}

.carousel-inner .blockquote-footer {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 20px;
}


.button-container{
  padding: 50px;
  align-items: center;

}

.btn-primary {
  font-size: 1.25rem;
  padding: 10px 20px;
  text-decoration: none;
  color: #141D29;
  background-color: #BBD4D8;  /* You can change the button color */
  border-radius: 5px;
  transition: background-color 0.3s ease;
  border-color: transparent;
}

.btn-primary:hover {
    background-color: #497980;
    border-color: #497980;
    color: #BBD4D8;  /* Hover effect for the button */
    border-color: transparent;

}

/*--GALLERY--*/

.card-gallery {
    border: none !important;
    border-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-gallery:hover {
    transform: translateY(-5px);

}

.card-gallery .card-img-top-gallery {
    border-radius: 8px;
    object-fit: cover;
    height: 200px;
    transition: transform 0.3s ease;
}

.card-gallery:hover .card-img-top-gallery {
    transform: scale(1.05);
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}



.hero-content-gallery h1,
.hero-content-gallery p {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 576px) {
    .card-img-top {
        height: 150px;
    }
}


/*--GALLERY CAROUSEL--*/

/* Custom height for the carousel */
.custom-carousel {
  height: 400px; /* Adjust this value to set your desired height */
  overflow: hidden;
}

.custom-carousel .carousel-inner {
  height: 100%;
}

.custom-carousel .carousel-item img {
  object-fit: cover; /* Ensures the image covers the space without stretching */
  height: 100%;
}



/*--PROJECTS--*/
.project-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px; /* Adjust the height to your preference */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* This will push the title to the bottom */
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-color: transparent !important;
}

.project-card img {
    width: 100%;
    height: 300px; /* Makes the image fill the container */
    object-fit: cover; /* Ensures the image covers the area without distorting */
    transition: opacity 0.3s ease;
}

.project-card:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.project-card:hover img {
    opacity: 0.7; /* Optional: change image opacity on hover */
}

.project-title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5); /* Background for title to be more readable */
    color: #ffffff;
    padding: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.card-body {
    padding: 0; /* Remove extra padding for title container */
}


/* Contact Page Specific Styles */

#contact-page h1 {
padding-top: 40px !important;

}

#contact-page {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

#contact-page .contact-area {
  background-color: #E4EEEF;

}

/* Adjust contact form input styles */
#contact-page input {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 3px;
    box-shadow: none;
    color: #232434;
    font-size: 16px;
    height: 60px;
    padding: 10px 30px;
    width: 100%;
    transition: all 0.3s ease 0s;
}

#contact-page textarea {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 3px;
    box-shadow: none;
    color: #232434;
    font-size: 16px;
    padding: 10px 30px;
    width: 100%;
    font-family: 'poppins', sans-serif;
    transition: all 0.3s ease 0s;
}

#contact-page .form-group {
  margin: 10px;
}

/* Focus styles */
#contact-page input:focus,
#contact-page textarea:focus {
    background: #fff;
    border: 1px solid #fff;
    color: #232434;
    box-shadow: none;
    outline: none;
}

#contact-page .form-control::placeholder {
    color: #232434;
    opacity: 1;
}

/* Button styles */
#contact-page .btn-contact-bg {
    border-radius: 30px;
    margin-bottom: 20px;
    color: #fff;
    outline: none !important;
    padding: 15px 27px;
    text-transform: capitalize;
    transition: all 0.3s ease 0s;
    background: #7564e5;
    font-family: 'poppins', sans-serif;
    cursor: pointer;
    width: 100%;
    border-color: transparent;
}

#contact-page .btn-contact-bg:hover,
#contact-page .btn-contact-bg:focus {
    background: #232434;
    color: #fff;
}

/* Address section */
#contact-page .single_address {
    overflow: hidden;
    margin-bottom: 10px;
    padding-left: 40px;
}

@media only screen and (max-width:768px) {
    #contact-page .single_address {
        padding-left: 0px;
    }
}

#contact-page .single_address i {
    background: #f6f6f6;
    color: #497980;
    border-radius: 30px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    float: left;
    margin-right: 14px;
    font-size: 22px;
    box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease 0s;
}

#contact-page .single_address:hover i {
    background: #497980;
    color: #fff;
}

#contact-page .single_address h4 {
    font-size: 18px;
    margin-bottom: 0px;
    font-weight: 600;
}

#contact-page .single_address p {
    margin-top: 5px;
}

/* Section title */
#contact-page .section-title h1 {
    font-size: 44px;
    font-weight: 500;
    margin-top: 0;
    position: relative;
    text-transform: capitalize;
    margin-bottom: 15px;
}

#contact-page .section-title p {
    padding: 0 10px;
    width: 70%;
    margin: auto;
    letter-spacing: 1px;
}

#contact-page .section-title {
    margin-bottom: 60px;
}

/* Centered text */
#contact-page .text-center {
    text-align: center !important;
}


/*--Carousel-Gallery--*/

$carousel-control-color:             $white;
$carousel-control-width:             15%;
$carousel-control-opacity:           .5;
$carousel-control-hover-opacity:     .9;
$carousel-control-transition:        opacity .15s ease;

$carousel-indicator-width:           30px;
$carousel-indicator-height:          3px;
$carousel-indicator-hit-area-height: 10px;
$carousel-indicator-spacer:          3px;
$carousel-indicator-opacity:         .5;
$carousel-indicator-active-bg:       $white;
$carousel-indicator-active-opacity:  1;
$carousel-indicator-transition:      opacity .6s ease;
$carousel-indicator-border-radius:   15px;

$carousel-caption-width:             70%;
$carousel-caption-color:             $white;
$carousel-caption-padding-y:         1.25rem;
$carousel-caption-spacer:            1.25rem;

$carousel-control-icon-width:        2rem;

$carousel-control-prev-icon-bg:      url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$carousel-control-color}'><path d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/></svg>");
$carousel-control-next-icon-bg:      url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$carousel-control-color}'><path d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/></svg>");

$carousel-transition-duration:       .6s;
$carousel-transition:                transform $carousel-transition-duration ease-in-out; // Define transform transition first if using multiple transitions (e.g., transform 2s ease, opacity .5s ease-out)

/* --- Stop columns/content from pushing wider than the viewport --- */

/* Don't add margins to Bootstrap columns */
.col-12, .col-8, .col-md-auto { margin: 0 !important; }

/* If you overrode .row earlier, neutralize it */
.row { margin-left: 0 !important; margin-right: 0 !important; }

/* Keep column padding light (Bootstrap handles gutters) */
[class^="col-"], [class*=" col-"] { padding-left: 12px; padding-right: 12px; }

/* Cards: let the grid/gutters handle spacing */
.card { margin: 0 !important; }

/* Hero/nav content: remove hard left margins that cause sideways scroll */
.hero-content-home,
.hero-content-about,
.hero-content-projects { margin-left: 0 !important; }

/* Contact button: shrink the big left gap so it can wrap on mobile */
.navbar-nav .btn-contact a { margin-left: 12px !important; }

/* Images/iframes never exceed their containers */
img, video, svg, canvas { max-width: 100%; height: auto; display: block; }
iframe { width: 100%; aspect-ratio: 16/9; }

/* Temporary safety net while you hunt the exact element */
html, body { overflow-x: clip; }  /* use clip instead of hidden; less buggy for sticky */


<body style="background-color: <?php echo esc_attr( get_theme_mod( 'background_color', '#141D29' ) ); ?>;">