/*

Fluid Gallery Template

http://www.templatemo.com/tm-500-fluid-gallery

*/

html.gray .mfp-wrap,
html.gray .cd-hero,
html.gray #loader-wrapper {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
}

body {
    background-color: #E8F5E9; 
    color: #2E7D32; 
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 300;
    overflow-x: hidden;
}

ul { padding: 0; margin: 0; }
figure { margin: 0; }
p:last-child { margin-bottom: 0; }
a { 
    color:  #4CAF50; 
    text-decoration: none;
    transition: color 0.3s ease;
}
a, button { transition: all 0.3s ease; }
a:hover,
a:focus {
    color: #81C784; 
    text-decoration: underline;
    outline: none;
}

.tm-brand-icon { 
    padding: 10px;
    background: none;
    color: black;
    font-size: 4rem;
    margin-right: 15px;
}

.container-fluid { 
    width: 100%; 
    padding-left: 0;
    padding-right: 0;
}

.cd-hero-slider .cd-full-width { padding-top: 0; }

.cd-slider-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1002;
    background: none;
}

.navbar { padding: 0; }

.cd-slider-nav nav { width: 100%; }

.cd-slider-nav .navbar-nav {
    display: inline-block;
    float: none;
    vertical-align: top;
}

.cd-slider-nav li { 
    display: block;
    float: none;
    width: auto;    
}

.tm-navbar { float: right; }
.tm-navbar-bg {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
        align-items: center;
    -ms-flex-pack: justify;
        justify-content: space-between;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #4CAF50; 
    overflow: auto;
}

.navbar-toggler {
    float: right;
    font-size: 1.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.7);
    border-radius: 0;
    position: absolute;
    right: 10px;
    top: 5px;
}

button:focus { outline: none; }

.cd-slider-nav a.navbar-brand {
    font-size: 2.5rem;
    padding-top: 0;
    padding-bottom: 0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
        align-items: center;
    -ms-flex-pack: center;
        justify-content: center;
    width: auto;
}

.cd-slider-nav a { text-transform: capitalize; }
.navbar-nav .nav-item { float: none; }
.navbar-nav .nav-item+.nav-item { margin-left: 0; }

.cd-slider-nav a,
.navbar-nav .nav-link {
    background-color: #4CAF50; 
    color: #FFFFFF; 
    display: table-cell;
    font-weight: 400;
    font-size: 1em;
    vertical-align: middle;
    width: 130px; 
}

.navbar-nav .nav-link {
    background-color: #4CAF50; 
    color: #FFFFFF; 
    font-size: 1.2rem; 
    font-weight: 600; 
}

.navbar-nav .nav-link:hover {
    background-color: #81C784; 
    color: #A5D6A7; 
}

.cd-slider-nav .nav-item.selected .nav-link,
.cd-slider-nav .nav-link:hover,
.cd-slider-nav .nav-link:focus {
    background-color: #81C784; 
    color: #FFFFFF; 
}

/* Hero Slider */
.cd-hero-slider { height: 100vh; }
.cd-hero-slider li { 
    background-color: #A5D6A7; 
    list-style: none; 
}

/* Background & menu colors */
.cd-hero-slider li:nth-of-type(1) { background-color: rgba(76, 175, 80, 0.62); } 
.cd-hero-slider li:nth-of-type(2) { background-color: rgba(76, 175, 80, 0.62); } 
.cd-hero-slider li:nth-of-type(3) { background-color: rgba(76, 175, 80, 0.62); } 
.cd-hero-slider li:nth-of-type(4) { background-color: rgba(76, 175, 80, 0.62); } 
.cd-hero-slider li:nth-of-type(5) { background-color: rgba(76, 175, 80, 0.62); } 

.cd-slider-nav .nav-item:nth-of-type(1).selected .nav-link,
.cd-slider-nav .nav-item:nth-of-type(1) .nav-link:hover,
.cd-slider-nav .nav-item:nth-of-type(1) .nav-link:focus {

    background-color:#2E7D32;
}

.cd-slider-nav .nav-item:nth-of-type(2).selected .nav-link,
.cd-slider-nav .nav-item:nth-of-type(2) .nav-link:hover,
.cd-slider-nav .nav-item:nth-of-type(2) .nav-link:focus {
            
    background-color:#81C784;
}

.cd-slider-nav .nav-item:nth-of-type(3).selected .nav-link,
.cd-slider-nav .nav-item:nth-of-type(3) .nav-link:hover,
.cd-slider-nav .nav-item:nth-of-type(3) .nav-link:focus {
        
    background-color:#81C784;    
}

.cd-slider-nav .nav-item:nth-of-type(4).selected .nav-link,
.cd-slider-nav .nav-item:nth-of-type(4) .nav-link:hover,
.cd-slider-nav .nav-item:nth-of-type(4) .nav-link:focus {
    
    background-color:#81C784;
}

.cd-slider-nav .nav-item:nth-of-type(5).selected .nav-link,
.cd-slider-nav .nav-item:nth-of-type(5) .nav-link:hover,
.cd-slider-nav .nav-item:nth-of-type(5) .nav-link:focus {
    
    background-color:#81C784;        
}

.tm-bg-white-translucent { background-color: rgba(255,255,255,0.8); }
.tm-bg-white-translucent p { color: #2E7D32; }
.tm-textbox { 
    display: inline-block; 
    width: 100%;
}

.cd-hero-slider h2, .cd-hero-slider p {
    max-width: none;
    width: 100%;
}

.cd-hero-slider .tm-text { 
    font-size: 1em;
    line-height: 1.8; 
}

.cd-full-width .container-fluid.tm-page-width { 
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.cd-hero-slider h2.tm-text-title {
    color: #000002;
    font-size: 1.6em;
    font-weight: 400;
}

/* Contact */
.tm-contact-page {
    margin: 0 auto;
    max-width: 1190px;
    padding: 0;
}

.tm-contact-container { max-width: 1150px; }

.form-control,
.tm-submit-btn {
    font-size: 1.8rem;
}
.form-control {
    background-color: rgba(255,255,255,0.7);
    border-radius: 0;
    padding: 1rem 2rem;
}

.form-control::-webkit-input-placeholder { color: #000000; }
.form-control:-moz-placeholder { color: #000000; }
.form-control::-moz-placeholder { color: #000000; } 
.form-control:-ms-input-placeholder { color: #000000; }

.form-group { margin-bottom: 1.5rem; }

.tm-submit-btn {
    background-color: #4CAF50; /* Green background */
    border: none;
    color: white;
    padding: 12px 30px;
    margin-top: 10px;
    font-weight: 400;
    font-size: 2.2rem;
}

.tm-submit-btn:hover,
.tm-submit-btn:focus {
    background-color: #81C784; /* Light green background on hover */
}

textarea { height: 168px; }

/* Preloader 
    https://ihatetomatoes.net/create-custom-preloading-screen/
*/
/* ==========================================================================
   Author's custom styles
   ========================================================================== */
   #loader-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; background-color: #4CAF50; /* Green background */ }
   #loader { display: block; position: relative; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; border: 3px solid transparent; border-top-color: #3498db; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */ z-index: 2001; }
   #loader:before { content: ""; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px; border-radius: 50%; border: 3px solid transparent;
    border-top-color: #e74c3c; /* Chrome, Opera 15+, Safari 5+ */
   animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */ }
   #loader:after { content: ""; position: absolute; top: 15px; left: 15px; right: 15px; bottom: 15px; border-radius: 50%; border: 3px solid transparent;
border-top-color: #f9c922; /* Chrome, Opera 15+, Safari 5+ */ animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */ }
@keyframes spin {
    0%   {  /* Chrome, Opera 15+, Safari 3.1+ */  /* IE 9 */
        transform: rotate(0deg);  /* Firefox 16+, IE 10+, Opera */
    }
    100% {  /* Chrome, Opera 15+, Safari 3.1+ */  /* IE 9 */
        transform: rotate(360deg);  /* Firefox 16+, IE 10+, Opera */
    }
}

#loader-wrapper .loader-section { position: fixed; top: 0; width: 51%; height: 100%; background: #A5D6A7; /* Light green background */ z-index: 2000;  /* Chrome, Opera 15+, Safari 3.1+ */  /* IE 9 */ transform: translateX(0);  /* Firefox 16+, IE 10+, Opera */ }

#loader-wrapper .loader-section.section-left { left: 0; }

#loader-wrapper .loader-section.section-right { right: 0; }

.loaded #loader-wrapper .loader-section.section-left {  /* Chrome, Opera 15+, Safari 3.1+ */  /* IE 9 */
    transform: translateX(-100%);  /* Firefox 16+, IE 10+, Opera */  
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded #loader-wrapper .loader-section.section-right {  /* Chrome, Opera 15+, Safari 3.1+ */  /* IE 9 */
    transform: translateX(100%);  /* Firefox 16+, IE 10+, Opera */  
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded #loader {
    opacity: 0;  
    transition: all 0.3s ease-out;
}
.loaded #loader-wrapper {
    visibility: hidden;  /* Chrome, Opera 15+, Safari 3.1+ */  /* IE 9 */
    transform: translateY(-100%);  /* Firefox 16+, IE 10+, Opera */  
    transition: all 0.3s 1s ease-out;
}

/* JavaScript Turned Off */
/*.no-js #loader-wrapper { display: none; }
*//*============ Preloader ends ==================================*/

.cd-hero-slider.small-screen { height: 100%; }

.tm-navbar {
    position: absolute;
    right: 10px;
    top: 45px;
}

.cd-slider-nav .navbar-nav { background-color: rgba(255,255,255,0.7); }

.cd-slider-nav a, 
.navbar-nav .nav-link { height: 50px; }

.cd-hero-slider .cd-full-width { padding-top: 50px; }

.tm-brand-icon { 
    font-size: 3rem;
    padding: 10px;
}

.cd-hero-slider .cd-full-width { text-align: left; }

.tm-2-col-textbox-2 {
    width: 100%;
    padding: 25px;
    margin-bottom: 30px; 
    -ms-flex: 0 1 auto; 
        flex: 0 1 auto; 
            /* Fix flexbox in IE 10 bug https://philipwalton.com/articles/normalizing-cross-browser-flexbox-bugs/ */
}

.tm-2-col-textbox-2:last-child { margin-bottom: 0; }

/* Gallery */
.grid-item {
    float: left;
    width: 100%;
    padding: 10px; 
    box-sizing: border-box;
}

.grid-item figure {
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 0;
    border: 2px solid #4CAF50; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.grid-item figure:hover {
    transform: scale(1.05); 
}

.grid-item figure img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s ease; 
}

.grid-item figure img:hover {
    opacity: 0.5; 
}

.grid-item figure figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF; /* White text */
    opacity: 0;
    transition: opacity 0.3s ease; /* Smooth transition */
}

.grid-item figure:hover figcaption {
    opacity: 1; /* Show caption on hover */
}

.grid-item figure figcaption h2 {
    font-size: 1.5rem;
    margin: 0;
}

.grid-item figure figcaption p {
    font-size: 1rem;
    margin: 0;
    padding: 10px;
}

@media (min-width: 480px) {
    .grid-item { width: 50%; } /* Two columns on small screens */
}

@media (min-width: 768px) {
    .grid-item { width: 33.33%; } /* Three columns on medium screens */
}

@media (min-width: 992px) {
    .grid-item { width: 25%; } /* Four columns on large screens */
}

.tm-img-gallery {
    margin: 0 auto 40px;
    display: inline-block;
}

@media (min-width: 480px) {
    .tm-img-gallery { margin: 0 auto; }
}

.tm-img {
    max-width: 320px;
    width: 100%;
    height: auto;
    border: none;
    margin: 0 auto;
}

.tm-textbox-padding { padding: 35px 30px; }

.cd-hero-slider h2.tm-contact-info {
    color: black;
    font-size: 1.4em;
}

#google-map {
    height: 430px;
    width: 100%;    
}

.tm-copyright-text {
    background-color: rgba(0, 0, 0, 0.2); /* Dark translucent background */
    color: #2E7D32; /* Dark green text */
    font-size: 1.8rem;
    font-weight: 400;
    text-align: center;
    padding: 30px;
    width: 100%;
}

.tm-copyright-text a {
    color: #2E7D32; /* Dark green text */
}

/*http://tympanus.net/Development/HoverEffectIdeas/*/
/*---------------*/
/***** Sadie *****/
/*---------------*/

figure.effect-sadie figcaption::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: -webkit-linear-gradient(top, rgba(72,76,97,0) 0%, rgba(72,76,97,0.8) 75%);
    background: linear-gradient(to bottom, rgba(72,76,97,0) 0%, rgba(72,76,97,0.8) 75%);
    content: '';
    opacity: 0;
    -webkit-transform: translate3d(0,50%,0);
    transform: translate3d(0,50%,0);
}

figure.effect-sadie h2 {
    font-weight: 400;
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    color: #484c61;
    -webkit-transition: -webkit-transform 0.35s, color 0.35s;
    transition: transform 0.35s, color 0.35s;
    -webkit-transform: translate3d(0,-50%,0);
    transform: translate3d(0,-50%,0);
}

figure.effect-sadie figcaption::before,
figure.effect-sadie p {
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
}

figure.effect-sadie p {
    position: absolute;
    bottom: 10px;
    left: 0;
    padding: 2em;
    width: 100%;
    opacity: 0;
    -webkit-transform: translate3d(0,10px,0);
    transform: translate3d(0,10px,0);
}

figure.effect-sadie:hover h2 {
    color: #fff;
    -webkit-transform: translate3d(0,-50%,0) translate3d(0,-40px,0);
    transform: translate3d(0,-50%,0) translate3d(0,-40px,0);
}

figure.effect-sadie:hover figcaption::before,
figure.effect-sadie:hover p {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

.grid-item figure figcaption, .grid-item figure figcaption > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.grid-item figure figcaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1em;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.25em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.grid-item figure {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.grid-item figure img {
    position: relative;
    display: block;
    max-width: 100%;
    opacity: 0.8;
}

.cd-hero-slider h2 { font-size: 1.5em; }
.cd-hero-slider p.tm-figure-description { font-size: 1.2rem; }

.cd-hero-slider .selected .cd-full-width h2.tm-figure-title {
    margin-bottom: 0;
    color: white;
    text-shadow: 2px 2px 6px #000;
}
.cd-hero-slider .selected .cd-full-width p.tm-figure-description {
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
    padding: 2em;
    opacity: 0;
    -webkit-transform: translate3d(0,10px,0);
    transform: translate3d(0,10px,0);
    color: #4CAF50; /* Green text */
}

.cd-hero-slider .selected .cd-full-width figure.effect-sadie:hover .tm-figure-title,
.cd-hero-slider .selected .cd-full-width figure.effect-sadie:hover p.tm-figure-description {
    opacity: 1;
    text-shadow:  2px 2px 6px #000;    
}

.cd-hero-slider .selected .cd-full-width figure.effect-sadie:hover p.tm-figure-description {
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

.grid-item figure figcaption > a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}

.tm-white-box-margin-b { margin-bottom: 30px; }
.cd-full-width .container-fluid.tm-page-width {
    padding-left: 10px;
    padding-right: 10px;
}

/* Media Queries */

@media only screen and (min-width: 400px) {
    .cd-hero-slider h2 { font-size: 1.4em; }
    .grid-item figure figcaption { padding: 2em; }
}

@media only screen and (min-width: 480px) {
    .cd-hero-slider h2.tm-text-title { font-size: 1.8em; }
    .tm-textbox-padding { padding: 30px 40px; }
    .tm-textbox-padding-contact { padding: 30px; }
    .grid-item { width: 50%; }
    .grid-item figure figcaption { padding: 1.5em; }    
}

@media only screen and (min-width: 600px) {
    .tm-footer { padding: 50px 0px 0px 0px; }
    .tm-copyright-text { width: auto; }
}

@media only screen and (min-width: 720px) {    
    .tm-footer { 
        -ms-flex-direction: row; 
            flex-direction: row; 
    }

    .tm-copyright-text { margin-top: 0; }
}

@media only screen and (min-width: 768px) {

    .tm-flex { 
        display: -ms-flexbox; 
        display: flex;
    }

    .tm-2-col-textbox-2 {    
        margin-bottom: 0;
        margin-right: 30px;
        width: 100%;
    }

    .tm-2-col-textbox-2:last-child { margin-right: 0; }
    .cd-full-width .container-fluid.tm-page-width { max-width: 800px; }
    .grid-item { width: 33.33%; }
}

@media only screen and (min-width: 992px) {
    .tm-navbar-bg { 
        padding-left: 25px; 
        padding-right: 0;
    }

    .tm-navbar {
        position: static;
        height: auto !important;        
    }

    .cd-slider-nav .navbar-nav {
        background: transparent;
        display: -ms-flexbox;
        display: flex;
    }

    .cd-slider-nav li {    
        display: inline-block; 
        width: auto;
        height: auto;
    }

    .cd-slider-nav a, 
    .navbar-nav .nav-link {
        height: 80px;
    }

    .cd-hero-slider .cd-full-width { padding-top: 80px; }

    .tm-social-icons-container { margin-bottom: 20px; }

    .cd-full-width .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    .cd-full-width .container-fluid.tm-page-pad,
    .cd-full-width .container-fluid.tm-page-pad {
        padding-left: 10px;
        padding-right: 10px;
    }

    .cd-full-width .container-fluid.tm-page-width {
        max-width: 1200px;
    }

    .grid-item { width: 25%; }    
    .grid-item figure figcaption { padding: 1em; }    
}

@media only screen and (min-width: 1063px) {
    .cd-slider-nav { top: 0; }    
    .cd-slider-nav nav { padding: 0; }    
    .tm-brand-icon { margin-right: 15px; }
    .tm-contact-page, .tm-about-page { padding: 20px 20px 0; }
    .cd-full-width .container-fluid.tm-page-width {
        padding-left: 30px;
        padding-right: 30px;
    }
    .tm-page-width {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media only screen and (min-width: 1170px) {    
    .cd-hero-slider h2, .cd-hero-slider p { margin-bottom: 20px; }
    .cd-hero-slider p:last-child { margin-bottom: 0; }    
    .cd-hero-slider .tm-text { font-size: 1em; }
    .grid-item figure figcaption { padding: 2em; }
}

@media only screen and (min-width: 1333px) {
    .cd-slider-nav a,
    .navbar-nav .nav-link {
        font-size: 1.2em;
        width: 160px;
        height: 110px;
    }
    .cd-hero-slider .cd-full-width { padding-top: 110px; }
    .cd-slider-nav a.navbar-brand { font-size: 3.5rem; }

    .cd-full-width .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    .tm-brand-icon { 
        font-size: 4rem;
        padding: 10px;
        margin-right: 15px;
    }
    .tm-navbar-bg { padding-left: 30px; }
}

@media only screen and (min-width: 1340px) {
    .cd-full-width .container-fluid.tm-page-width { 
        padding-left: 0; 
        padding-right: 0;
    }    
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .tm-2-col-textbox-2 { margin-right: 15px; }
    #google-map { height: 520px; }
}

/* Footer */
.tm-footer {
    background-color: #4CAF50; /* Green background */
    color: #FFFFFF; /* White text */
    text-align: center;
    padding: 20px 0;
    font-size: 20px;
    font-weight: 400;
}

.tm-footer a {
    color: #FFFFFF; /* White text */
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth transition */
}

.tm-footer a:hover {
    color: #A5D6A7; /* Light green text on hover */
}

/* Back Button */
.tm-back-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background: #4CAF50; /* Green background */
    color: #FFFFFF; /* White text */
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: none; /* Remove border */
    cursor: pointer;
    transition: color 0.3s ease; /* Smooth transition */
    outline: none; /* Remove focus outline */
}

.tm-back-button:hover {
    color: #81C784; /* Light green text on hover */
}

.tm-back-button:focus {
    outline: none; /* Remove focus outline */
}

/* Logo */
.navbar-brand img {
    max-height: 60px; /* Set a maximum height */
    width: auto; /* Maintain aspect ratio */
}

@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 40px; /* Adjust height for smaller screens */
    }
}

