/*
Theme Name: Bweib Ollie
Theme URI: olliewp.com
Author: Ben Weibel
Author URI: mikemcalister.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

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;
}

/* Layout and Grid
---------------------------------------------------------------------------- */

/* Basic One Row Header Layout (Mobile and Scrolling) */
.site-header {
	position: sticky;
	top: 0px;
	z-index: 100;

	--content: min(var(--wp--style--global--wide-size), 100%);
    display: grid;
    grid-template-columns:  1fr  var(--content) 1fr ;
	grid-template-rows: auto;
	grid-template-areas: 
	"anouncement anouncement anouncement"
	"main main main";

	background-color: var(--wp--preset--color--base);
	transition: background-color 0.2s, filter 0.2s;
	backdrop-filter: none;
	box-shadow: var(--wp--preset--shadow--natural);
}

.is-scrolling .site-header {
	background-color: color-mix(in srgb, var(--wp--preset--color--base) 85%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 60%, transparent);;
}

.site-header .announcement {
	grid-area: anouncement;
	min-height: 20px;
	transition: min-height .2s;
}

.is-scrolling .announcement {
	min-height: 4px;
}

.is-scrolling .announcement > * {
	display: none;
}

:not(.has-modal-open) .is-scrolling .site-header {
	backdrop-filter: blur(5px);
}

.site-header .header-content {
	grid-area: main;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	padding-block: var(--wp--preset--spacing--small);
	padding-inline: var(--wp--preset--spacing--small);
}

@media screen and (min-width: 781px) {
.is-scrolling .site-header {
	grid-template-areas: 
	"anouncement anouncement anouncement"
	". main .";
}

	.site-header .header-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
		padding-bottom: 0;
		padding-inline: 0;
	}

	.is-scrolling .site-header .header-content {
		flex-direction: row;
		padding-inline: var(--wp--preset--spacing--small);
		justify-content: space-between;
	}

	.site-header .header-content .navigation-desktop {
		width: 100%;
		background-color: var(--wp--preset--color--primary);
		padding-block: .25rem;
		margin-top: 0;
		justify-content: center;
	}

	.is-scrolling .site-header .navigation-desktop {
		background-color: transparent;
				justify-content: flex-end;

	}
}

.is-scrolling  .site-header .header-content {
	padding-block: calc(var(--wp--preset--spacing--small)/2);
	
}

.header-content .wp-block-site-logo {
	max-width: 400px;
	transition:  0.2s max-width;
	animation-delay: .5s;
}

.is-scrolling .header-content .wp-block-site-logo {
	max-width: 150px;
}


/* 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:has(>.is-position-sticky) {
	position: sticky;
	top: calc( 0px + var( --wp-admin--admin-bar--height, 0px ) );
	z-index: 100;
}

/* 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;
	}
}

/* Home */
@keyframes waves-scroll {
	from { background-position: 0 bottom; }
	to   { background-position: 1000px bottom; }
}

.icon-card {
	position: relative;
	transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, background-position 0.5s ease-in-out;
	box-shadow: 0px rgba(0,0,0,0);
	background-image: url('assets/images/waves-transparent.png');
	background-repeat: repeat-x;
	background-position: 0 bottom;
	background-size: contain;
	
}

.icon-card:hover {
	transform: translateY(-1px);
	box-shadow: var(--wp--preset--shadow--natural);
	animation: waves-scroll 30s linear infinite;

}

.icon-card:active {
	transform: translateY(1px);
	transition: transform 0s;
}

.card-button {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}

/* Footer */
.site-footer {
	background-image: url('assets/images/waves-transparent.png');
	background-repeat: repeat-x;
	background-position: top;
	background-size: contain;
	animation: waves-scroll 30s linear infinite;
}

/* Merchant Details — single merchant profile
---------------------------------------------------------------------------- */
.merchant-details {
	gap: var(--wp--preset--spacing--medium);
}

.merchant-details__media {
	align-self: center;
}

.merchant-details__title {
	margin-bottom: 0;
}

.merchant-details__header {
	margin-bottom: var(--wp--preset--spacing--small);
}

.merchant-details__info {
	margin-bottom: var(--wp--preset--spacing--small);
}

.merchant-details__meta {
	justify-content: space-evenly;
	gap: var(--wp--preset--spacing--small);
}

.merchant-details__meta-item--social ul {
	gap: 1rem;
	margin-block: 10px;
}

@media (max-width: 781px) {
	.merchant-details {
		text-align: center;
	}

	.merchant-details__media {
		justify-self: center;
	}

	.merchant-details__meta {
		justify-content: center;
	}
}

/* Merchant Directory — listing grid
---------------------------------------------------------------------------- */


.merchant-directory__filters {
	gap: 0.5rem;
	margin-block: var(--wp--preset--spacing--medium);
}

.merchant-directory__filter {
	padding: 0.4em 1.2em;
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: 5px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--main);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
	    padding-block: 0;
}

.merchant-directory__filter.is-active,
.merchant-directory__filter:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--primary);
}

.merchant-directory__search {
	margin-bottom: 	margin-bottom: var(--wp--preset--spacing--small);
;
}

.merchant-directory__grid {
	gap: var(--wp--preset--spacing--medium);
	margin-bottom: var(--wp--preset--spacing--medium);
}

.merchant-directory__card {
	text-align: center;
	padding: var(--wp--preset--spacing--small);
	background: var(--wp--preset--color--tertiary);
	border-radius: 8px;
	box-shadow: var(--wp--preset--shadow--small-dark);;
	transition: box-shadow 0.2s, transform 0.25s ease, opacity 0.25s ease;
}

.merchant-directory__pagination {
	margin-bottom: var(--wp--preset--spacing--medium);
}

.merchant-directory__page-btn {
    font-size: var(--wp--preset--font-size--x-small);
}

.merchant-directory__page-btn:hover {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.merchant-directory__card:hover {
	box-shadow: var(--wp--preset--shadow--medium-light);
	transform: translateY(-2px);
}

.merchant-directory__card-logo {
	width: 150px;
	height: 150px;
	margin-bottom: var(--wp--preset--spacing--small);
}

.merchant-directory__card-name {
	font-size: var(--wp--preset--font-size--medium);
	margin: 0 0 0.25em;
	color: var(--wp--preset--color--main);
}

.merchant-directory__card-category {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--primary);
	margin: 0;
}

.merchant-directory__empty {
	text-align: center;
	color: var(--wp--preset--color--secondary);
}

/* Merchant Card — single merchant embed
---------------------------------------------------------------------------- */
.merchant-card {
    padding: var(--wp--preset--spacing--medium);
    background: var(--wp--preset--color--tertiary);
    border-radius: 8px;
    box-shadow: var(--wp--preset--shadow--small-dark);
    max-width: 60rem;
    margin-inline: auto;
}

.merchant-card--featured {
    background: transparent;
    box-shadow: none;
}

.merchant-card__featured-image {
    padding: 2rem;
}

.merchant-card__logo {
    margin-top: 72px;
}
.merchant-card__logo-img {
	border-radius: 6px;
}

.merchant-card__name {
	font-size: var(--wp--preset--font-size--large);
	margin: 0 0 0.15em;
}

.merchant-card__name a {
	color: var(--wp--preset--color--main);
	text-decoration: none;
}

.merchant-card__name a:hover {
	color: var(--wp--preset--color--primary);
}

.merchant-card__categories {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--primary);
	margin: 0 0 0.75em;
}

.merchant-card__info {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--secondary);
	margin-bottom: 1em;
}

.merchant-card__info p:last-child {
	margin-bottom: 0;
}

.merchant-card__meta {
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 1em;
}

.merchant-card__meta-item {
	margin-bottom: 0.35em;
}

.merchant-card__meta-label {
	font-weight: var(--wp--custom--font-weight--semi-bold);
	margin-right: 0.5em;
}

.merchant-card__meta-item a {
	color: var(--wp--preset--color--primary);
}

.merchant-card__social-link {
	color: var(--wp--preset--color--secondary);
	transition: color 0.2s;
}

.merchant-card__social-link:hover {
	color: var(--wp--preset--color--primary);
}

.other-merchants__grid {
	gap: 2.5rem;
}

.other-merchants__card {
    padding: var(--wp--preset--spacing--medium);
    background: var(--wp--preset--color--tertiary);
    border-radius: 8px;
    box-shadow: var(--wp--preset--shadow--small-dark);
    max-width: 60rem;
    margin-inline: auto;
}

.other-merchants__card-name {
	color: var(--wp--preset--color--primary);
	    font-size: var(--wp--preset--font-size--medium);
}

/* Animation Helpers
---------------------------------------------------------------------------- */

/*
 * Usage: add class="animate animate--fade-in" to any element.
 * The element stays hidden until it scrolls into view, then
 * the .is-visible class is added by assets/js/animate.js.
 *
 * Variants:
 *   .animate--fade-in        Fade in (opacity only)
 *   .animate--slide-up       Slide up from below
 *   .animate--slide-down     Slide down from above
 *   .animate--slide-left     Slide in from the right
 *   .animate--slide-right    Slide in from the left
 *   .animate--scale-up       Scale up from 0.9
 *   .animate--zoom-in        Scale up from 0.8 with fade
 *
 * Modifiers:
 *   .animate--fast           150ms
 *   .animate--slow           600ms
 *   .animate--delay-1        100ms delay
 *   .animate--delay-2        200ms delay
 *   .animate--delay-3        300ms delay
 *   .animate--delay-4        400ms delay
 *   .animate--delay-5        500ms delay
 */

.animate {
	opacity: 0;
	transition-property: opacity, transform;
	transition-duration: 0.4s;
	transition-timing-function: ease-out;
}

.animate.is-visible {
	opacity: 1;
	transform: none;
}

/* Variants */
.animate--slide-up {
	transform: none;
}

.animate--slide-up {
	transform: translateY(30px);
}

.animate--slide-down {
	transform: translateY(-30px);
}

.animate--slide-left {
	transform: translateX(30px);
}

.animate--slide-right {
	transform: translateX(-30px);
}

.animate--scale-up {
	transform: scale(0.9);
}

.animate--zoom-in {
	transform: scale(0.8);
}

/* Duration modifiers */
.animate--fast {
	transition-duration: 0.15s;
}

.animate--slow {
	transition-duration: 0.6s;
}

/* Delay modifiers (useful for staggering children) */
.animate--delay-1 { transition-delay: 0.1s; }
.animate--delay-2 { transition-delay: 0.2s; }
.animate--delay-3 { transition-delay: 0.3s; }
.animate--delay-4 { transition-delay: 0.4s; }
.animate--delay-5 { transition-delay: 0.5s; }

/* Disable animations inside the block editor */
.editor-styles-wrapper .animate {
	opacity: 1;
	transform: none;
	transition: none;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
	.animate {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
