/*
Theme Name: KS Boulder
Theme URI: 
Author: KickStart Dental Marketing
Author URI: https://kickstartdental.com
Description: A dental block theme by KickStart Dental Marketing.
Requires at least: 6.0
Tested up to: 6.4.1
Requires PHP: 5.7
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ksboulder
Tags: full-site-editing
*/

/*
--------------------------------------------- */

/* Extend responsive layouts to 991px (default is max 781px) */
@media (max-width: 991px) {

    /* Extend responsive column layouts to 991px (default is max 781px) */
    .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .wp-block-columns .wp-block-column {
        flex-basis: 100% !important;
    }

    /* Extend responsive query loop > post template grid layouts to 991px (default is max 599px) */
    .wp-block-post-template li {
        width: 100% !important;
    }
}

/* Query Loop Grid
--------------------------------------------- */

/* Make query loop post template grid layouts more responsive using 'auto-fit', exclude team grid */
.wp-block-query:not(.team-grid) .wp-block-post-template-is-layout-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

/* Add 'auto-fit' to footer grid */
.wp-block-query.footer-location-grid .wp-block-post-template-is-layout-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Primary Navigation
--------------------------------------------- */

/* Adjust styling to submenu dropdown container */
header .wp-block-navigation .wp-block-navigation__submenu-container {
    padding: var(--wp--preset--spacing--20);
	border-radius: 12px;
    @media (min-width: 600px) {    
        box-shadow: var(--wp--preset--shadow--small);
    }    
}

/* Remove padding-right on navigations items with children */
header .wp-block-navigation .wp-block-navigation__container .has-child > a {
    padding-right: 8px;
}

/* Remove underline on Primary Nav link hover */
header .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item a {
    &:hover {
        text-decoration: none;
    }
}

/* Add hover transition to submenu links */
header .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item {
    transition: all 0.25s ease-out;
    @media (min-width: 600px) {
        &:hover {
            transform: translateY(-4px);
        }
    }
}

/* Add hover transition to submenu links */
header .wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    transition: all 0.25s ease-out;
    @media (min-width: 600px) {
        &:hover {
            transform: translateX(4px);
        }
    }
}

/* Fix submenu not fitting content */
header .wp-block-navigation__submenu-container {
    width: max-content !important;
}

/* Homepage Hero
--------------------------------------------- */

.hero {
    min-height: calc(80vh - 145.59px) !important;
}

/* Inner Hero
--------------------------------------------- */

.hero-inner {
    overflow: visible;
}

/* Read More Link
--------------------------------------------- */

.wp-block-read-more {
    transition: all 0.25s ease-out;
    &:hover {
        text-decoration: underline;
    }
}

/* Hover Cards
--------------------------------------------- */

.hover-card {
    position: relative;
    transition: all 0.25s ease-out;
    &:hover {
        transform: translateY(calc(var(--wp--preset--spacing--10) * -1));
        box-shadow: var(--wp--preset--shadow--large);
    }
}

/* Make group card (group block) clickable - Remove this when clickable group blocks are in core! */

.hover-card a:after {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    content: '';
}

.hover-card a:hover {
    text-decoration: none;
}

.hover-card:hover .icon-bg {
    filter: brightness(1.1);
}

.icon-bg {
    transition: all 0.25s ease-out;
}

/* Template Parts
--------------------------------------------- */

/* Remove margin-top from template part containers */
.wp-block-template-part {
    margin-top: 0 !important;
}

/* Footer
--------------------------------------------- */

.footer-map {
    margin-bottom: -9px;
}

/* Custom Block Types
--------------------------------------------- */

.location-title-heading h3,
.location-address p,
.location-phone p,
.location-email p,
.location-map p,
.location-hours p,
.team-job-title p,
.special-reduced-price p,
.special-original-price p,
.special-amount-off p,
.service-title p,
.service-title-heading h3 {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.special-price {
    font-size: var(--wp--preset--font-size--large);
    font-family: var(--wp--preset--font-family--headings);
    line-height: 1.6;
}

.special-details ul {
    list-style-type: disc;
}

.special-terms {
    font-size: 12px;
}

/* Misc
--------------------------------------------- */

.is-style-image-shadow {
    box-shadow: var(--wp--preset--shadow--large);
}

/* Remove line-height added when logo "link image to home" is enabled */
.custom-logo-link {
    line-height: 0;
}

.img-square {
	aspect-ratio: 1;
}

.img-3-4 {
	aspect-ratio: 3 / 4 !important;
}

.img-2-3 {
	aspect-ratio: 2 / 3 !important;
}

iframe {
	display: block !important;
}

.mask {
    overflow: hidden;
}

.alpha-10 {
    opacity: 0.1;
}

summary::marker {
    color: var(--wp--preset--color--secondary);
}

.text-center {
    text-align: center !important;
}

.service-icons {
    filter: invert(100%);
}

@media (max-width: 991px) {
    .cover-spacer {
        height: 30vh !important;
    }
}