/*
Theme Name: Tazza
Theme URI: 
Author: EVERGIB
Author URI: https://evergib.com
Description: A custom block theme for Tazza Kitchen restaurant
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.3
Version: 1.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tazza
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

Tazza WordPress Theme, (C) 2025 Mike McAlister.
Tazza is distributed under the terms of the GNU GPL.
*/

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

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

html {
	box-sizing: border-box;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	scroll-behavior: smooth;
	/* scroll-padding-top: 80px; */
}

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);
	font-weight: var(--wp--custom--font-weight--medium);;
	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;
}

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

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

.tk-hero-container{
	position: relative;
}

.tk-intro-module{
	position: absolute;
	top:40px;
	right:40px;
}

.tk-icon-module{

}

.tk-separator {
	border-top: 2px solid red;
}

/* FOOD MENU NAV STAYS IN THE FRONT POSITION WHILE STICKY */

.evg-food-nav {
	z-index: 9999;
}

/* FOOD MENU NAV STAYS IN THE FRONT POSITION WHILE STICKY, just below the Category Nav */

.evg__menu--category__scroll {
    top: 50px;
    }

/* Menu type Nav Bar sits at the bottom of the page */

.evg__menu--nav--bar {
	position: sticky;
	bottom: 0px;
	z-index: 900;
	}

/* Outline button style: make text and border black */
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button .wp-block-button__link.is-style-outline {
    color: #000 !important;
    border-color: #000 !important;
}

/* Remove all default separator lines for .submenu-label */
.wp-block-navigation__submenu-container.tk-nav-submenu > li.submenu-label {
    border-top: none !important;
    border-bottom: none !important;
    margin-left: 8px;
    margin-right: 8px;
}

/* Add separator line above .submenu-label, except the first one */
.wp-block-navigation__submenu-container.tk-nav-submenu > li.submenu-label:not(:first-child) {
    border-top: 1px solid #f2f2f2 !important;
}

/* Remove separator line below .submenu-label (if any) */
.wp-block-navigation__submenu-container.tk-nav-submenu > li.submenu-label + li {
    border-top: none !important;
}

/* Restore separator lines between regular submenu items, except after .submenu-label */
.wp-block-navigation__submenu-container.tk-nav-submenu > li:not(.submenu-label):not(:first-child) {
    border-top: 1px solid #f2f2f2;
    margin-left: 8px;
    margin-right: 8px;
}

/* Style submenu section labels (VA, NC, SC) with a right-aligned separator line */
.wp-block-navigation__submenu-container.tk-nav-submenu .submenu-label {
    font-weight: 600;
    color: #000;
    pointer-events: none;
    background: none;
    cursor: default;
    display: flex;
    align-items: center;
    padding: 0 8px;
    margin: 0;
    border-top: none !important;
    font-size: 1em;
    min-height: 48px;
}

.wp-block-navigation__submenu-container.tk-nav-submenu .submenu-label > a {
    pointer-events: none;
    background: none;
    color: inherit;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    border: none;
    box-shadow: none;
    text-decoration: none;
}

.wp-block-navigation__submenu-container.tk-nav-submenu .submenu-label .wp-block-navigation-item__label {
    text-decoration: none !important;
    border-bottom: none !important;
    padding: 0;
    margin: 0;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    width: 100%;
}

.wp-block-navigation__submenu-container.tk-nav-submenu .submenu-label .wp-block-navigation-item__label::after {
    content: '';
    display: block;
    height: 1px;
    background: #000;
    flex: 1 1 auto;
    margin-left: 0.5em;
    margin-right: 0;
    align-self: center;
}

/* Remove underline and add background/padding on hover for submenu items */
.wp-block-navigation__submenu-container.tk-nav-submenu > li:not(.submenu-label) > a.wp-block-navigation-item__content:hover,
.wp-block-navigation__submenu-container.tk-nav-submenu > li:not(.submenu-label) > a.wp-block-navigation-item__content:focus {
    text-decoration: none !important;
    background: #f2f2f2;
    padding: 8px;
    border-radius: 4px;
    color: inherit;
    transition: background 0.2s, padding 0.2s;
}

/* Main nav links hover/focus style (no underline, background, padding, border-radius) */
ul.wp-block-navigation__container > li.tk-nav-item > a.wp-block-navigation-item__content:hover,
ul.wp-block-navigation__container > li.tk-nav-item > a.wp-block-navigation-item__content:focus,
ul.wp-block-navigation__container > li.tk-nav-item > button.wp-block-navigation-item__content:hover,
ul.wp-block-navigation__container > li.tk-nav-item > button.wp-block-navigation-item__content:focus {
    text-decoration: none !important;
    background: #f2f2f2;
    padding: 8px;
    border-radius: 4px;
    color: inherit;
    transition: background 0.2s, padding 0.2s;
}

/* Ensure nav links have consistent padding in all states */
ul.wp-block-navigation__container > li.tk-nav-item > a.wp-block-navigation-item__content,
ul.wp-block-navigation__container > li.tk-nav-item > button.wp-block-navigation-item__content {
    padding: 8px;
}

.wp-block-navigation__submenu-container.tk-nav-submenu > li:not(.submenu-label) > a.wp-block-navigation-item__content {
    padding: 8px;
}

/* Add gap between nav label and submenu carat icon */
.tk-nav-submenu {
    gap: 8px;
}

/* Custom hover state for the Light button variation: invert colors and remove underline */
.wp-block-button.is-style-button-light > .wp-block-button__link,
.wp-block-button.is-style-button-dark > .wp-block-button__link,
.wp-block-button.is-style-button-brand > .wp-block-button__link {
    transition:
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-button.is-style-button-light > .wp-block-button__link:hover,
.wp-block-button.is-style-button-light > .wp-block-button__link:focus {
    background: var(--wp--preset--color--main);
    color: var(--wp--preset--color--base);
    text-decoration: none !important;
}

.wp-block-button.is-style-button-dark > .wp-block-button__link:hover,
.wp-block-button.is-style-button-dark > .wp-block-button__link:focus {
    background: var(--wp--preset--color--main-accent);
    text-decoration: none !important;
}

.wp-block-button.is-style-button-brand > .wp-block-button__link:hover,
.wp-block-button.is-style-button-brand > .wp-block-button__link:focus {
    background: var(--wp--preset--color--main);
    color: var(--wp--preset--color--base);
    text-decoration: none !important;
}

/* Style the button background and text color */
.tk-location-card-button,
.tk-location-card-button a {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--main);
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

/* On hover, change both background and text color */
.tk-location-card-button:hover,
.tk-location-card-button:hover a {
  background: var(--wp--preset--color--main);
  color: var(--wp--preset--color--base); /* or another color if you want contrast */
  text-decoration: none;
}

.menu--category--nav a:focus {
	outline: none;
	box-shadow: none;
}

/* Background image group block mobile fix */
.tk-group-bkgd-image {
    min-height: 300px; /* Minimum height for mobile */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media screen and (max-width: 767px) {
    .tk-group-bkgd-image {
        min-height: 250px; /* Adjust height for mobile if needed */
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Ensure the column maintains its background on mobile */
    .wp-block-column:has(.tk-group-bkgd-image) {
        min-height: 250px;
        padding: 0;
        margin: 0;
    }
}

/* Vertical separator */
.tk-separator-vertical {
    transform: rotate(90deg);
    height: 1.5em !important;
    width: 1.5em !important;
    margin: 0 0.5em !important;
    align-self: center;
    display: inline !important;
    vertical-align: middle;
    position: relative;
    top: -0.2em;
    overflow: visible;
}

/* Private Dining Section Animation */
[id="private-dining"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[id="private-dining"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Add a scroll margin to account for fixed headers 
[id="private-dining"] {
    scroll-margin-top: 80px; Adjust this value based on your header height
}
*/
/* Details Block Animation Styles */
.wp-block-details {
    transition: all 0.3s ease-in-out;
}

.wp-block-details summary {
    cursor: pointer;
    position: relative;
    padding: .3rem 0;
    transition: all 0.3s ease-in-out;
}

.wp-block-details summary::marker,
.wp-block-details summary::-webkit-details-marker {
    transition: transform 0.3s ease-in-out;
}

.wp-block-details[open] summary::marker,
.wp-block-details[open] summary::-webkit-details-marker {
    transform: rotate(90deg);
}

.wp-block-details > *:not(summary) {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    margin: 0;
    padding: 0;
}

.wp-block-details[open] > *:not(summary) {
    opacity: 1;
    max-height: 1000px; /* Adjust this value based on your content */
    padding: .5rem 0;
    margin: 0;
}

/* Optional: Add a subtle hover effect */
.wp-block-details summary:hover {
    opacity: 0.8;
}

/* Ensure proper spacing between details blocks */
.wp-block-details + .wp-block-separator {
    margin: 1rem 0;
}

.tk-photo-square {
    aspect-ratio: 1/1;
}

.tk-no-underline a{
    text-decoration: none !important;
}

.tk-testimonial-quotemarks {
    margin-right: -100px;
}

#tk-quotemarks {
    opacity: 0.05;
}

.tk-testimonial-block {
    z-index: 10;
}

.wp-block-button__link {
    justify-content: center;
}