/*
Theme Name: Grove City
Theme URI: olliewp.com
Author: Ben Weibel
Author URI: bweib.com
Description: A fork of the ollie theme by Mike Mcalister
Tags: blog, portfolio, entertainment, grid-layout, one-column, two-columns, three-columns, four-columns, block-patterns, block-styles, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, rtl-language-support, style-variations, template-editing, theme-options, translation-ready, wide-blocks
Tested up to: 6.7.1
Requires PHP: 7.3
Version: 1.5.2
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ollie

Grove City Custom theme, forked from Ollie WordPress Theme, (C) 2025 Mike McAlister.
Ollie is distributed under the terms of the GNU GPL.
*/

/* CSS Vars
---------------------------------------------------------------------------- */
:root{
--screen-small: 40rem;
--screen-medium: 60rem;
--screen-large: 80rem;

}


/* CSS Reset
---------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

b,
strong {
	font-weight: var(--wp--custom--font-weight--semi-bold);
}

ol,
ul {
	padding: 0;
}

ol:where(:not([class*="wp-block"])),
ol:where(.wp-block-list),
ul:where(:not([class*="wp-block"])),
ul:where(.wp-block-list) {
	padding-inline-start: var(--wp--preset--spacing--medium);
}

div[class*="wp-block-"] figcaption {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--x-small);
	margin-bottom: 0;
	margin-top: 20px;
	text-align: center;
}

img,
figure {
	max-width: 100%;
	height: auto;
}

/* Temporary fix for text-decoration-thickness in Firefox */
@-moz-document url-prefix() {
	a {
		text-decoration-thickness: .1rem !important;
	}
}

/* Standardize form styling
--------------------------------------------- */

input,
button,
textarea,
select {
	font: inherit;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
	appearance: none;
}

input:not([type="submit"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
	color: var(--wp--preset--color--main);
	border-radius: 5px;
	border: solid 1px var(--wp--preset--color--border-light);
	padding: .5em 1em;
	font-size: var(--wp--preset--font-size--small);
	background-color: #fff;
}

input:focus-visible,
textarea:focus-visible {
	outline-color: var(--wp--preset--color--primary);
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

label {
	width: 100%;
	display: block;
}

::placeholder {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.75;
}

/* Helper styles
---------------------------------------------------------------------------- */

a.more-link {
	display: block;
}

/* Inline code */
*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--tertiary);
	padding: 3px 5px;
	position: relative;
	border-radius: 3px;
}

.wp-block-categories {
	position: relative;
}

/* Adjust terms at bottom of posts */
.single .wp-block-group .wp-block-post-terms,
.blog .wp-block-group .wp-block-post-terms {
	margin-bottom: -8px !important;
}

/* Remove margin on term description on archive pages */
.wp-block-term-description p:last-child {
	margin-bottom: 0;
}

/* Remove last separator on post list */
.remove-border-and-padding .wp-block-post-template li:last-child .wp-block-separator {
	display: none;
}

/* Hide post meta div if no tags assigned */
.single .wp-block-group:has(> .post-meta:empty) {
	display: none;
}

.wp-block-group:empty:has(+ .comment-respond) {
	display: none;
}

.row-logos > figure {
	flex-shrink: 1 !important;
}


/* 
* Global Elements 
*/

/* Header */

header.site-header {
	position: fixed;
	top: 0;
	z-index: 100;
	width: 100%;
	background: rgba(0,0,0,0.5);
	backdrop-filter: blur(0px);
	transition: backdrop-filter 1s ease-out;
}

.home:not(.is-scrolling) header.site-header {
	background: transparent;
	border-bottom: 0;
}

.is-scrolling header.site-header {
	backdrop-filter: blur(5px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

header:has(>.is-position-sticky) {
	position: sticky;
	top: calc( 0px + var( --wp-admin--admin-bar--height, 0px ) );
	z-index: 100;
}

.site-header .header-content {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto;
	grid-template-areas: 
	"cta" 
	"logo"
	"nav ";
	justify-items: center;
	padding-bottom: var(--wp--preset--spacing--small);	
}

.is-scrolling .site-header .header-content {
	grid-template-columns: max-content 1fr;
	grid-template-rows: auto;
	grid-template-areas: 
	"cta cta" 
	"logo nav";
	padding-bottom: 0;
}

.site-header .wp-block-navigation {
	margin-top: 0;
	    gap: 3rem;
}

.is-scrolling .site-header .wp-block-navigation {
	justify-self: flex-end;
	margin-right: 1rem;
}	

.site-header .cta-bar {
	grid-area: cta;
	justify-self: stretch;
}

.site-header .wp-block-site-logo {
	grid-area: logo;
}

.team-member {

}

.team-member-info {
	max-width: 10em;
}

.team-member-photo {

}

/* Mobile */
@media screen and (max-width: 60rem) {
	.site-header .wp-block-navigation {
		justify-self: flex-end;
		margin-right: 1rem;
	}	

	.site-header .header-content {
		grid-template-columns: max-content 1fr;
		grid-template-rows: auto;
		grid-template-areas: 
		"cta cta" 
		"logo nav";
	}
}

/* Logo */
.site-header .wp-block-site-logo {
	margin-block: var(--wp--preset--spacing--small);
	max-width: 350px;
	transition: max-width .2s;
}

.is-scrolling .site-header .wp-block-site-logo {
	max-width: 200px;
    padding-inline: var(--wp--preset--spacing--medium);
}
    

/* Account for admin bar on mobile */

@media (max-width: 600px) {
	header:has(>.is-position-sticky) {
		top: 0;
	}
}

/* Mobile helper classes */

@media (max-width: 781px) {
	.ollie-hide-on-mobile {
		display: none;
	}

	.ollie-unstick-mobile {
		position: static;
	}

	header:has(>.ollie-unstick-mobile) {
		position: static;
	}
}
