/*
Theme Name: Fletchiez Test
Theme URI:
Description: Child theme of Twenty Twenty-Five
Author: Fletchie
Author URI:
Template: twentytwentyfive
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fletchiez-test
*/

/* Import parent theme styles */
@import url("../twentytwentyfive/style.css");

@font-face {
    font-family: 'Coolvetica';
    src: url('assets/fonts/coolvetica/Coolvetica Rg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Coolvetica';
    src: url('assets/fonts/coolvetica/Coolvetica Rg It.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'Coolvetica';
    src: url('assets/fonts/coolvetica/Coolvetica Rg.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Apply Coolvetica font to the site */
:root :where(p.wp-block-site-title){
        font-weight: normal;
        letter-spacing: normal;
}

body {
    font-family: 'Coolvetica', Helvetica, Arial, sans-serif !important;
    letter-spacing: 0.2px;
    line-height: 1.25;
}

ul.wp-block-list.is-style-default li{
    padding-top: 13px;;
}
ul.wp-block-list.is-style-default li:first-child{
    padding-top:26px;
}
/*Setting the max-width of text*/
:root {
    --wp--style--global--content-size: 750px; /* or your desired width */
}

/* Apply Coolvetica to headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Coolvetica', Helvetica, Arial, sans-serif !important;
}

div.wp-block-columns div.wp-block-column h2.home-name.has-xx-large-font-size{
    font-size: 5.2rem !important;
    line-height: 4.8rem;
    /* -- IF SIDE BY SIDE LAYOUT--
    line-height: 3.2rem;
    margin-top: 0px;
    padding-top: 0px;*/
}

.wp-block-navigation .wp-block-navigation-item.current-menu-item {
	/*text-decoration:underline;
	background-color:#f2c32f;*/
}

.home-latest-posts li a.wp-block-latest-posts__post-title{
    display: inline-block;
    margin-top:13px;
}

ul.wp-block-categories-list.taxonomy-category{
    padding-left: 0px;
}

li div.cat-desc a p{
    max-width: 750px;
    width: 100%;
    float:right;
    margin-top:0px;
}

ul.wp-block-categories-list.taxonomy-post_tag{
    max-width:1340px;
    width: 100%;
    display: inline-block;
}

ul.wp-block-categories-list.taxonomy-post_tag li{
    float:left;
    border:none;
    width:33.33%;
}

ul.wp-block-categories-list.taxonomy-post_tag li:first-child{
    border-top: none;
    margin-left: 0px;
}

ul.wp-block-categories-list.taxonomy-post_tag li div{
    margin-left: 26px;
    width:100%;
}

ul.wp-block-categories-list.taxonomy-post_tag li div a h2{
    font-size: 1.0rem;
    margin-top:0px;
}
li.category-item{
    list-style: none;
    border-bottom: 3px solid #f3f3f3;
    padding-top: 13px;
    padding-bottom: 13px;
    display: flex;
}

li.category-item:first-child{
    border-top: 3px solid #f3f3f3;
}

div.cat-title{
    float: left;
    display: block;
    width: 33.33%;
}

div.cat-desc{
    float: left;
    display: block;
    width: 66.66%;
    justify-self: right;
}


button.wp-block-navigation__responsive-container-close{
    top:5px;
    right:0px;
}

hr.wp-block-separator{
    border-width: 2px;
}

hr.wp-block-separator.hide-lg{
    display: none;
}

div.max-width{
    max-width: 1340px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Grid Styles */
.blog-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.grid-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #222222;
}

.post-content h3 a {
    color: inherit;
    text-decoration: none;
}

.post-content h3 a:hover {
    color: #3498db;
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #2980b9;
}

header.wp-block-template-part {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
    padding-left: 0px;
	padding-right: 0px;
    transition: all 0.3s ease;
    border-bottom: 3px solid #f3f3f3;
    background: #fff;
    border-radius: 0px;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding-top:0px;
    padding-bottom:0px;
}

.menu-toggle {
    background: #fff;
    border: 2px solid #fcce2c;
    color: #222222;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: #fcce2c;
    color: #222222;
    border-color: #222222;
    background: #2980b9;
}

/* Contact Form Styles */

input.ninja-forms-field.nf-element, textarea.ninja-forms-field.nf-element{
    padding: 7px 13px;
    border: 2px solid #222222;
    font-family: "coolvetica";
    font-size: 1.125rem;
}
input.ninja-forms-field.nf-element[type="submit" i]{
    border: 4px solid #f2c32f;
    background-color: #ffffff;
	color: #222222;
    padding: 15px 35px;
}

input.ninja-forms-field.nf-element, textarea.ninja-forms-field.nf-element, input.ninja-forms-field.nf-element[type="submit" i]{
	border-radius:0px;
}

.nf-field-label .nf-label-span, .nf-field-label label{
        font-weight: normal;
}
/*form.wpcf7-form input,
form.wpcf7-form textarea {
    width: 100%;
    font-family: 'Coolvetica', Helvetica, Arial, sans-serif;
    font-size: 16px;
    padding: 6px;
    border: 2px solid #f3f3f3;
    box-sizing: border-box;
    outline: none;
}

input.wpcf7-form-control.wpcf7-submit{
    background-color: #ffffff;
    border: 4px solid #fcce2c;
    color: #222222;
    max-width: 150px;
    padding: 15px 35px;
    font-size: 1.125rem;
}
.wpcf7 form.sent .wpcf7-response-output{
    border-color: #fcce2c;

}*/

/*Featured Img*/
body.wp-singular.post-template-default figure.wp-block-post-featured-image{
    max-width:1340px;
    aspect-ratio: 2/1 !important;
}

.wp-block-latest-posts__featured-image a {
    display: flex;
    border: 4px solid #f2c32f;
}

.wp-block-post-featured-image img {
    border: 4px solid #f2c32f;
}

body .is-layout-grid{
    max-width: 1384px;
    margin-left: auto;
    margin-right: auto;
}

body .is-layout-grid li div{
    padding-left: 20px;
    padding-right: 20px;
}

body .is-layout-grid div.work-grid-cats{
    padding:0px;
}

/*Footer*/
footer{
    border: 3px solid #f3f3f3;
    margin-top: 52px;
}
footer .has-small-font-size, footer .wp-block-navigation{
    line-height:auto;
}

/*Mobile Styles*/

@media only screen and (max-width: 1130px) {
	
	ul.wp-block-categories-list.taxonomy-post_tag li div.cat-title{
        float: left;
        display: block;
    }
    ul.wp-block-categories-list.taxonomy-post_tag li div{
        margin-left: 0px;
    }

    ul.wp-block-categories-list.taxonomy-post_tag li{
        width:50%;
    }
}

@media only screen and (max-width: 991px) {
    li.category-item{
        display: inline-block;
        width: 100%;
        max-width: 100%;
    }
    li div.cat-desc a p{
        float: left;
    }
    li div.cat-title, li div.cat-desc{
        float: none;
        justify-self: initial;
        width: 100%;
    }

    footer div.wp-block-group{
        text-align:center;
        margin-left:auto;
        margin-right:auto;
        display:block;
    }
    footer div.wp-block-group div.wp-block-column{
        flex-basis: 100% !important;
    }
    footer div.wp-block-group div.wp-block-column:last-child{
        flex-basis: 0 !important;
    }

    footer div.wp-block-group nav{
        display: none;
    }
}

@media only screen and (max-width: 781px) {
    div.home-lets-talk h2, div.home-lets-talk div.wp-block-button{
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .wp-block-image.alignright.home-page-feature{
        display: none !important;
    }
    hr.wp-block-separator.hide-lg{
        display: block;
    }
    div.taxonomy-post_tag.taxonomy-post_tag.has-text-align-right.wp-block-post-terms{
        text-align: left;
    }
    .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
        width: 100%;
    }
	
}

@media only screen and (max-width: 599px) {
	body .is-layout-grid li div{
		padding-left:30px;
		padding-right:30px;
	}
	.wp-block-latest-posts.is-grid li{
    	margin-right:0;
    }
	
    .wp-block-latest-posts.is-grid li{
        margin-bottom: 74px;
    }
	
    body.single.single-post .wp-block-spacer {
        height: 39px !important;
    }
	
	ul.wp-block-categories-list.taxonomy-post_tag li{
        width:100%;
		border-bottom: solid 3px #d9af2a;
		margin:0px;
    }
	
	ul.wp-block-categories-list.taxonomy-post_tag li div a{
		text-decoration:none;
	}
	
	ul.wp-block-categories-list.taxonomy-post_tag li div a h2{
    	font-size: 1.4rem;
		margin-bottom:6px;
		margin-top:6px;
	}
	
	.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content{
		outline:none;
	}
	
	#modal-1{
		background-color:#f2c32f !important;

	}

	ul.wp-block-navigation__container.is-responsive.items-justified-right.wp-block-navigation{
		width: 100%;
    	max-width: 100%;
		margin-top:10vh;
    	
	}

	div.has-modal-open .wp-block-navigation .wp-block-navigation-item{
    	display: inline-block;
		width:100%;
		max-width:100%;
		font-size: 5.2rem;
		border-bottom: solid 3px #d9af2a;
	}
	
	div.has-modal-open .wp-block-navigation .wp-block-navigation-item a:hover{
		text-decoration:none;
	}

	div.has-modal-open .wp-block-navigation .wp-block-navigation-item:first-child{
		border-top: solid 3px #d9af2a;
	}
}
