/*
Theme Name: KS Durango
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.5.2
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ks-durango
Tags: full-site-editing
*/

/* Extend Responsive Layouts
--------------------------------------------- */

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

    /* Extend responsive column layouts to 959px (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 959px (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));
}

/* Hover Card
--------------------------------------------- */

.hover-card {
    position: relative;
    transition: all 0.25s ease-out;
}

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

.has-background-dim {
    transition: all 0.25s;
}

.hover-card:hover .has-background-dim {
    opacity: .15 !important;
}

.hover-card img {
    transition: all 0.25s ease-out;
}

.hover-card:hover img {
    transform: scale(1.025);
}

.hover-card-body {
    transition: all 0.25s ease-out;
}

.hover-card .wp-block-post-title a:hover {
    text-decoration: none;
}

.has-photo:hover {
    padding-bottom: calc(var(--wp--preset--spacing--20) + 12px) !important;
}

.hover-card:hover .hover-card-body {
    box-shadow: var(--wp--preset--shadow--large);
}

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

/* Hover Card - Icon Version */

.has-icon:hover {
    transform: translateY(calc(var(--wp--preset--spacing--10) * -1));
    box-shadow: var(--wp--preset--shadow--large);
}

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

/* Add padding to submenu dropdown container */
header .wp-block-navigation .wp-block-navigation__submenu-container {
    padding: var(--wp--preset--spacing--20);
    @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;
}

/* Add hover transition to Primary Nav 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);
        }
    }
}

.logo {
	@media (max-width: 1279px) {
        margin-top: 0 !important;
    }
}

/* Add hover transition to submenu links */
.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;
    &:hover {
        transform: translateX(4px);
    }
}

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

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

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


@media (max-width: 1439px) {
	.hero {
		display: none;
	}
	.hero-alt h1 {
		font-size: 48px !important;
	}
}

@media (min-width: 1440px) {
	.hero-alt {
		display: none;
	}
}


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

.wp-block-read-more {
    transition: all 0.25s ease-out;
    &:hover {
        border-color: var(--wp--preset--color--contrast);
    }
}

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

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

/* Service Pages
--------------------------------------------- */

/* Make service content panel fullwidth on mobile */
.inner-content {
    @media (max-width: 1280px) {
        padding-right: var(--wp--preset--spacing--30) !important;
        padding-left: var(--wp--preset--spacing--30) !important;
    }
}

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

.team-job-title {
    color: var(--wp--preset--color--secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.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
--------------------------------------------- */

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

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

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

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

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

/* Hack to keep row blocks from wrapping too soon */
@media (min-width: 600px) {
    .nowrap {
        flex-wrap: nowrap !important;
    }
}

.gradient-section-1 {
    background: linear-gradient(90deg,rgba(255,255,255,0) 30%,rgba(255,255,255,100) 30%);
    @media (max-width: 959px) {
        background: linear-gradient(180deg,rgba(255,255,255,0) 35%,rgba(255,255,255,100) 35%);
    }
}

.gradient-section-2 {
    background: linear-gradient(90deg,rgba(255,255,255,100) 70%,rgba(255,255,255,0) 70%);
    @media (max-width: 959px) {
        background: linear-gradient(180deg,rgba(255,255,255,0) 35%,rgba(255,255,255,100) 35%);
    }
}

.bg-gradient-primary {
    background:
        radial-gradient(50% 50% at 30% 15%, var(--wp--preset--color--primary-extra-light) 0%, #FFFFFF00 100%),
        radial-gradient(50% 50% at 70% 100%, var(--wp--preset--color--primary-extra-light) 0%, #FFFFFF00 100%) 0px 0px / 100% 100%;
}

.bg-gradient-secondary {
    background:
        radial-gradient(50% 50% at 70% 15%, var(--wp--preset--color--secondary-extra-light) 0%, #FFFFFF00 100%),
        radial-gradient(50% 50% at 30% 100%, var(--wp--preset--color--secondary-extra-light) 0%, #FFFFFF00 100%) 0px 0px / 100% 100%;
}

.bg-gradient-tertiary {
    background:
        radial-gradient(50% 50% at 30% 15%, var(--wp--preset--color--tertiary-light) 0%, #FFFFFF00 100%),
        radial-gradient(50% 50% at 70% 100%, var(--wp--preset--color--tertiary-light) 0%, #FFFFFF00 100%) 0px 0px / 100% 100%;
}

.callout {
    transform: translateX(calc(var(--wp--preset--spacing--30) * -1));
}

.wp-block-cover:has(.callout) {
    overflow: visible;
}

.wp-block-cover:has(.callout) > img {
    border-radius: 64px 24px 64px 24px;
}

.glass {
    backdrop-filter: blur(8px);
}

.mask {
    overflow: hidden;
}

.grayscale {
    filter: grayscale(1);
    mix-blend-mode: multiply;
}

.service-area-list {
    display: flex;
    justify-content: center;
}

.service-area-list > li {
    margin-block-start: 0 !important;
}

.text-shadow {
	text-shadow: 0px 0px 80px rgba(0, 0, 0, 1) !important;
}