/*
Theme Name: Aristos Blocks
Theme URI: 
Author: Abstract Marketing
Author URI: 
Description: 
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.0
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aristos-blocks
Tags: full-site-editing
*/

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

html {
    scroll-behavior: smooth;
}

iframe {
    display: block;
}

:where(input:not(:is([type='button'], [type='submit'])), select, textarea) {
    background-color: var(--wp--preset--color--base);
    border: 1px solid #bbb;
    border-radius: 3px;
    color: var(--wp--preset--color--contrast);
    font-family: inherit;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 400;
    line-height: 1.5;
    padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
    width: 100%;
}

:where(input:focus, textarea:focus, select:focus) {
    outline: 2px solid var(--wp--preset--color--primary);
}

:where(input[type='checkbox'], input[type='image'], input[type='radio']) {
    width: auto;
}

::placeholder {
    color: var(--wp--preset--color--contrast);
    opacity: 0.5;
}

.entry-content {
    container-type: inline-size;
}

.entry-content :is(.alignleft, .alignright) {
    margin-block-end: 1em;
}

.entry-content :is(.alignleft, .alignright):first-child + * {
    margin-top: 0;
}

@container (width < 600px) {
    .entry-content .wp-block-image:is(.alignright, .alignleft) {
        float: none !important;
        margin: 0 0 1.5rem;
        width: 100%;
        text-align: center;
    }

    .entry-content .wp-block-image:is(.alignright, .alignleft) img {
        max-height: 400px;
        width: auto !important;
        display: inline-block !important;
    }
}

:is(p, a):has(> img[src^="data:image/svg"]) {
    display: flex;
    align-items: center;
    gap: .2em;
    
    & > img {
        transform: translateY(-.05em);
    }
}

.wp-site-blocks {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 100%;
    min-height: 100%;
}

.wp-site-blocks > * {
    margin: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0 9px #0001;
}

.admin-bar .site-header {
    top: 32px;
}

a:not(:hover) {
    text-decoration: none;
}

@media (min-width: 992px) {
  .mobile-logo {
    display: none;
  }
  
  .site-header__main > div {
    justify-content: center;
  }
}

.is-menu-open :is(.wp-block-site-logo, .wp-block-navigation-item:has(.wp-block-site-logo)) {
	display: none !important;
}

.has-ken-burns img {
  animation: kenBurns 10s ease-out;
}

@keyframes kenBurns {
  from {
  	transform: scale(1.2);
  }

  to {
  	transform: scale(1);
  }
}

.columns-2 {
  columns: 2 12rem;
}

body.has-featured-image .page-header .wp-block-cover__background {
  opacity: .8 !important;
}

.blurred-bg .wp-block-cover__image-background,
body.has-featured-image .page-header .wp-block-cover__image-background {
    filter: blur(10px)
}

.service-listing > li:nth-child(even) .wp-block-columns {
  background: var(--wp--preset--color--secondary) !important;
  color: #fff !important;
  
  & :is(.is-style-label, hr) {
    color: var(--wp--preset--color--tertiary) !important;
  }
  
  & .wp-block-button__link {
    background: #fff3;
    border: 1px solid #fff5;
  }
}

@media (min-width: 768px) {
  .service-listing > li:nth-child(even) .wp-block-column:first-child {
    order: 1;
  }
}

:where(input:not(:is([type='button'], [type='submit'])), select, textarea) {
    background-color: #fff;
    border-color: var(--wp--preset--color--custom-color-2);
    border-radius: 4px;
}

.gform_heading:has(> .gform_required_legend) {
  display: none;
}

.gform-field-label {
  font-size: var(--wp--preset--font-size--x-small) !important;
  text-transform: uppercase;
}

.is-style-contact-line {
  border-left: 3px solid var(--wp--preset--color--primary);
  padding-left: 10px;
}

.is-style-contact-line::first-line {
  color: var(--wp--preset--color--primary);
  font-weight: bold;
  text-transform: uppercase;
  font-size: var(--wp--preset--font-size--x-small);
  text-wrap: nowrap;
}

p.has-icon {
  display: flex;
  gap: 4px;
}

.wp-block-separator {
    width: 100%;
}

.aristos-blocks-restaurant-menu {
    h2 {
        font-size: 2rem;
        margin: 0;
    }
    
    p {
        margin: 0;
    }
    
    .category {
        margin-bottom: 2rem;
    }
    
    .category-header {
        display: flex;
        align-items: baseline;
        gap: 1rem;
        border-bottom: 1px solid #0003;
        padding-bottom: .25rem;
    }
    
    .category-price {
        font-size: 1.3rem;
        font-weight: 500;
        color: var(--wp--preset--color--primary);
        line-height: 1;
    }
    
    .category-description {
        margin: .25rem 0 0;
    }
    
    .menu-items {
		margin-top: 1rem;
        display: grid;
        gap: .5rem;
    }
    
    .menu-item-header {
        display: flex;
        gap: 1rem;
    }
    
    .item-label {
        font-weight: 700;
    }
}

.is-menu-open ul {
    gap: 1rem !important;
    
    ul {
        gap: 0 !important;
    }
}

.site-footer .wp-block-page-list a::before {
    content: '- ';
}

@media (max-width: 500px) {
    .get-directions {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .site-header {
        top: -40px !important;
    }
}

.site-header ul.wp-block-navigation {
    transition: gap .2s ease;
    
    @media (max-width: 1300px) {
        gap: 2em !important;
    }
    
    @media (max-width: 1100px) {
        gap: 1.5em !important;
    }
}

nav.site-header__nav .wp-block-navigation__responsive-container-content {
	@media (min-width: 992px) {
		display: block;
	}
}

.site-header__main-row {
    display: flex;
    justify-content: space-between;
    
    .wp-block-site-logo {
        flex: 1;
    }
}

.bottom-curve,
.page-header {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V170 Q720,205 0,170 Z' fill='%23fff'/%3E%3C/svg%3E");
	mask-size: 100% 100%;
	mask-repeat: no-repeat;
    mask-position: bottom;
}

@media (max-width: 640px) {
    .type-of-event-field {
        padding-right: 20px;
    }

    .type-of-event-field,
    .event-date-field {
        grid-column: span 6 !important;
    }
}

@media (max-width: 781px) {
    #gform_1 .gform_footer {
        justify-content: center;
    }
}

.is-menu-open ul.site-header__nav,
.is-menu-open ul.site-header__nav * {
    text-align: center;
    justify-content: center;
}