/*
 Theme Name:   RDR
 Description:  Customization of the Enfold Theme (Enfold Child) for Roydennis
 Author:       a&g creative group
 Author URI:   http://agcreative.ca
 Template:     enfold
 Version:      1.0.0
 Text Domain:  enfold-child
*/

/*
1.   General Theme Adjustments
2.   Shortcodes Styles 
2.1. Sub-pages Feed (Services)
3.   Custom
*/

/*
1. General Styles
*/
div .av_one_fourth {
    margin-left: 1%;
    width: 24%;
}

/* Logo */ 
#header_main .container{
    width: 100%;
    padding: 0px;
    margin: 0px;
    max-width: 100%;
}

#header_meta{
    display: none;
}

.html_header_top.html_header_topbar_active.html_header_sticky #top #main {
    padding-top: 89px;
}

div .logo{
    width: 33vw;
    padding: 0px 0px;
    background-image: url('img/logo-bg.jpg');
    background-size: cover;
}

div .logo img{
    margin: auto;
}
a[title="phone"] {
    font-size: 1.5em !important;
    color: #5e5e5e !important;
    line-height: 2em !important;
    padding-top: 0.8em !important;
    letter-spacing: 1px;
}

a[title="phone"]:before{
    content: "call for free estimate";
    text-transform: uppercase;
    position: absolute;
    top: 0px;
    font-size: 0.55em;
    letter-spacing: 0px;
}

h2.av-special-heading-tag{
    text-transform: uppercase !important;
}

.caption_bottom .slideshow_caption{
    width: 35%;
    background: #0075a9;
    padding: 0px;
    margin: 0px;
    bottom: 30%;
    left: 10%; 
}

.caption_bottom .slideshow_caption .slideshow_inner_caption{
    position: relative;
}


/*
1.1 Home Page - Service buckets
*/


/*#top .no_margin.av_one_fourth {
    width:20.5% !important;
    margin-left: 5.9%;
    margin-right: 0px;
    height: 8em;
}

#top .no_margin.av_one_fourth.first{
    margin-left: 0px;
}*/
#services .av_one_fourth{
    min-height: 15em;
}
#services .av_one_fourth section.av_textblock_section,
#top .no_margin.av_one_fourth .grid-content {
    background: rgba(0,117,169,0.7);
    height: 19em;
    padding: 3em 10%;
    color: #ffffff;
    font-size: 0.8em;
}

#services .av_one_fourth section.av_textblock_section h3{
   color: #ffffff;
}

.grid-entry .avia-arrow {
    display: none;
}

/*#top .no_margin.av_one_fourth .grid-content
{
    position: absolute;
    top: 0;
    width: 100%;
}*/



/*Portfolio*/

.home .avia_sortable_active .isotope .isotope-item {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 0px 0.5% 2em 0.5%;
}

#projects .avia_sortable_active .isotope .isotope-item {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 1em 0.5em;
}

#top div.avia-gallery-thumb img {
    height: 7em;
    object-fit: cover;
}

/*.avia_sortable_active .isotope .isotope-item:first-of-type,
.avia_sortable_active .isotope .isotope-item:nth-child(4n+1)
{
    padding-left: 0px;
}

.avia_sortable_active .isotope .isotope-item:last-of-type,
.avia_sortable_active .isotope .isotope-item:nth-child(4n){
    padding-right: 0px;
}
*/
.avia_sortable_active .isotope .isotope-item .grid-content{
    position:absolute;
    top: 0px;
    width: 100%;
    max-height: 100%;
    text-align: left;
}

.avia_sortable_active .isotope .isotope-item a.grid-image{
    height: 100%;
    overflow: hidden;
    object-fit: cover;
}

.avia_sortable_active .isotope .isotope-item a.grid-image img {
    display: block;
    min-height: 14em;
    width: auto;
    object-fit: cover;
}

.avia_sortable_active .isotope .isotope-item article{
min-height:14em;
}

.responsive .fullsize .grid-col-3 .grid-image {
max-height:17em !important;
overflow:hidden;
}

.avia_sortable_active .isotope .isotope-item article .grid-entry-title{
    color:#ffffff;
    background:none;
    font-size: 1.2em;
    font-weight: bold;
}

.avia_sortable_active .isotope .isotope-item article .grid-entry-excerpt {
    color: #ffffff;
    text-transform: initial;
    font-size: 1em;
}

/*

*/
.avia_sortable_active .no_margin.av_one_fourth {
    width: 25%;
    max-height: 14em;
    overflow: hidden;
}

.avia_sortable_active .no_margin.av_one_fourth img{
    width: 100% !important;
}


/*Sidebar*/
.sidebar .widgettitle{
    color: #222222;
}

/*
1.2. Home Page - partner's logo
*/
#top .avia-smallarrow-slider {
    margin-top: 0px;
}

#top .avia-smallarrow-slider-heading{
    display: none;
}
#top .avia-content-slider-inner .slide-entry-wrap{
    border-color: transparent!important;
}

.av-partner-fake-img{
    background-position: center;
    border: none !important;
    box-shadow: none;
}


/*
1.3. Home Page - Special Headings
*/
#custom-footer h2.av-special-heading-tag,
.home h2.av-special-heading-tag{
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
    color: #000000;
    letter-spacing: 0px;
    font-weight: bold;
}

#custom-footer div .av_one_fourth {
    margin-left: 6%;
    width: 20.5%;
}

#custom-footer div.av_one_fourth.first {
    margin-left: 0px;
}

#custom-footer div.av_one_fourth.first .avia-image-container{
  margin-bottom:15px;
}
/*
2.1. Sub-pages Feed (Services)
 */

 .button{
 	border:1px solid #cbcbcb;
 	margin-left: auto;
    margin-right: auto;
    display: block;
    width: 7em;
    padding: 5px;
    text-align: center;
    color: #000000;
 }

 ul.items-box{
 	display: grid;
 	grid-template: 1fr / 1fr 1fr 1fr;
 	grid-column-gap:20px;
    grid-row-gap: 10px;
 	margin-top:20px;
 }
 ul.items-box li{
 	list-style: none;
 }
 ul.items-box li.feed-wrapper > *{
 	margin-bottom: 20px;
 }

 ul.items-box li .service-img{
 	max-height: 200px;
 	overflow: hidden;
 	grid-area:service-img;
 }

 ul.items-box li .service-img{
 	grid-area:service-excerpt;
 }

 ul.items-box li .service-img img{
 	width: 100%;
    object-fit: fill;
 }

 ul.items-box li h3{
 	text-align: center;
 }

ul.items-box.two{
 	grid-template: 1fr / 1fr 1fr;
 }
 ul.items-box.one{
 	grid-template: 1fr / 1fr;
 	grid-gap: 0px;
 }


ul.items-box.one li:nth-child(2n){
 	grid-template-areas: 'service-img service-excerpt';
 }

ul.items-box.one li:nth-child(2n+1){
 	grid-template-areas: 'service-excerpt service-img';
 }

 ul.items-box.one li{
	display: grid;
 	grid-template-columns: 1fr 1fr;
    margin: 0px;
    padding: 0px;
 }

 ul.items-box.one li .service-img{
    max-height: 300px;
 	width: 100%;
    margin-bottom: 0px;
 }

ul.items-box.one li .service-img img {
    height: 100%;
}

 ul.items-box.one li .service-excerpt{
 	padding: 40px;
    margin-bottom: 0px;
 }

 ul.items-box.one li ul li{
 	display: block
 }

 /*
2.2. Gravity Forms
 */

/*
3.0 @Media
*/
@media only screen and (max-width: 767px){
    
    .responsive #top #wrap_all #header {
        width: 100%;
    }

   .responsive #top #wrap_all .av-logo-container {
    width: 100%;
    max-width: 100%;
    }
    .responsive #top .logo {
        width: 100%;
    }

    #header_meta{
    display: block;
    position: absolute;
    right: 85px;
    top: 28px;
    background: transparent;
    border: none;
    font-size: 1em;
    }

    #header_meta a{
        color: #ffffff;
        font-size: 2em;
    }
     #header_meta a:hover:{
        text-decoration: none;
     }

    #header_meta a:before{
    font-family: 'entypo-fontello';
    content: " \e854";
    margin-right: 20px;
    }

    .responsive #top #wrap_all .main_menu{
        right: 20px;
    }

     #top #wrap_all #header #av-burger-menu-ul > li.av-active-burger-items:last-child{
        display: none;
     }

    .header_color .av-hamburger-inner,
    .header_color .av-hamburger-inner::before,
    .header_color .av-hamburger-inner::after {
    background-color: #ffffff !important;
    }

    .is-active .av-hamburger-inner,
    .is-active .av-hamburger-inner::before,
    .is-active .av-hamburger-inner::after {
    background-color: #8b8d8d !important;
    }

    .avia-slideshow-inner .caption_container{
    width: 60% !important;
    margin: 0px !important;
    float: right !important;
    }

    .responsive #top .slideshow_caption {
    background: rgba(0, 117, 169, 0.75);
    position: relative;
}
}

@media only screen and (max-width: 767px) and (min-width: 480px){
    .responsive #top .slideshow_caption{
        top:30%;
        left:-15em;
        width: 75%;
    }

}
/* ==========================================================================
   Enfold Magazine (.c-Blog_entries) - Full-Width Featured & Clickable Cards
   ========================================================================== */

/* 1. Global Reset & Underline Removal */
.c-Blog_entries .av-magazine,
.c-Blog_entries .av-magazine-group,
.c-Blog_entries .av-magazine-entry,
.c-Blog_entries .av-magazine-thumbnail,
.c-Blog_entries .av-magazine-thumbnail a,
.c-Blog_entries .av-magazine-content-wrap,
.c-Blog_entries .entry-content-header {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.c-Blog_entries a,
.c-Blog_entries a:hover,
.c-Blog_entries .av-magazine-title,
.c-Blog_entries .av-magazine-title a {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* 2. First Item (Hero/Featured Post) - Force 100% Full Width Thumbnail */
.c-Blog_entries .av-magazine-hero,
.c-Blog_entries .av-magazine-hero .av-magazine-entry-big {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-bottom: 2.5rem !important;
}

.c-Blog_entries .av-magazine-hero .av-magazine-thumbnail {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 0 1.25rem 0 !important;
    border-radius: 8px;
    overflow: hidden;
}

.c-Blog_entries .av-magazine-hero .av-magazine-thumbnail a,
.c-Blog_entries .av-magazine-hero .av-magazine-thumbnail img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover;
}

.c-Blog_entries .av-magazine-hero .av-magazine-title a {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #111111 !important;
    line-height: 1.3 !important;
}

/* 3. Subsequent Card Items - Fully Clickable Area via Pseudo-Element */
.c-Blog_entries .av-magazine-sideshow .av-magazine-entry-small {
    position: relative !important; /* Required anchor for stretched link */
    display: flex !important;
    align-items: center;
    gap: 1.25rem;
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 1rem !important;
    margin-bottom: 1.25rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

/* Elevate card on hover */
.c-Blog_entries .av-magazine-sideshow .av-magazine-entry-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Stretched link overlay covering the entire card area */
.c-Blog_entries .av-magazine-sideshow .av-magazine-title a::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 2 !important;
}

/* Card Thumbnail Layout */
.c-Blog_entries .av-magazine-sideshow .av-magazine-thumbnail {
    width: 140px !important;
    height: 95px !important;
    flex-shrink: 0;
    float: left !important;
    border-radius: 6px !important;
    overflow: hidden;
}

.c-Blog_entries .av-magazine-sideshow .av-magazine-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.c-Blog_entries .av-magazine-sideshow .av-magazine-content-wrap {
    float: none !important;
    flex-grow: 1;
    overflow: hidden;
}

.c-Blog_entries .av-magazine-sideshow .av-magazine-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin: 0.25rem 0 0 0 !important;
}

.c-Blog_entries .av-magazine-sideshow .av-magazine-title a {
    color: #222222 !important;
}

.c-Blog_entries .av-magazine-sideshow .av-magazine-entry-small:hover .av-magazine-title a {
    color: #007cba !important;
}

.c-Blog_entries .av-magazine-time {
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888888 !important;
}

/* 4. Responsive Mobile Cards */
@media only screen and (max-width: 600px) {
    .c-Blog_entries .av-magazine-sideshow .av-magazine-entry-small {
        flex-direction: column;
        align-items: stretch;
    }

    .c-Blog_entries .av-magazine-sideshow .av-magazine-thumbnail {
        width: 100% !important;
        height: 160px !important;
    }
}
/* Styling for post excerpts inside small magazine cards */
.c-Blog_entries .av-magazine-sideshow .av-magazine-content {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: #666666 !important;
    margin-top: 0.35rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Truncates text to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}