/*
Theme Name: JS Family Dental
Theme URI: https://www.jsfamilydental.com
Author: Windrush Labs
Author URI: https://windrushlabs.com
Description: Custom block theme for JS Family Dental, a family dental office in McKinney, Texas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jsfamilydental
Tags: full-site-editing, block-patterns, block-styles
*/

/* Remove gap between header and main content */
.wp-site-blocks > main {
    margin-block-start: 0;
}

/* Remove gaps between adjacent full-width sections */
.wp-block-cover.alignfull + .wp-block-group.alignfull,
.wp-block-group.alignfull + .wp-block-group.alignfull,
.wp-block-group.alignfull + .wp-block-cover.alignfull,
.wp-block-cover.alignfull + .wp-block-cover.alignfull {
    margin-top: 0;
}

/* Equal height cards in columns */
.wp-block-columns > .wp-block-column {
    display: flex;
    flex-direction: column;
}
.wp-block-columns > .wp-block-column > .wp-block-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header buttons alignment */
header .wp-block-buttons,
header .wp-block-button {
    margin: 0;
}

/* Cover block overlay text readability */
.wp-block-cover .wp-block-cover__inner-container {
    max-width: var(--wp--style--global--content-size);
}

/* Image border radius consistency */
.wp-block-image img {
    border-radius: 12px;
}
.wp-block-image.is-style-rounded img {
    border-radius: 50%;
}

/* Service cards styling */
.service-card .wp-block-group {
    height: 100%;
}

/* Staff card image crops */
.staff-card img {
    object-fit: cover;
    aspect-ratio: 1;
}

/* FAQ accordion overrides if using details/summary */
details.wp-block-details {
    border: 1px solid var(--wp--preset--color--light-gray);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}
details.wp-block-details + details.wp-block-details {
    margin-top: -1px;
}
details.wp-block-details summary {
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 600;
    cursor: pointer;
}

/* Gallery grid spacing */
.wp-block-gallery .wp-block-image img {
    border-radius: 8px;
}

/* Top bar styling */
.top-bar {
    font-size: var(--wp--preset--font-size--small);
}
.top-bar a {
    text-decoration: none;
    font-weight: 600;
}

/* Outline button contrast fix (primary-dark 5.52:1 vs primary 3.24:1) */
.wp-block-button.is-style-outline .wp-block-button__link.has-primary-color {
    color: var(--wp--preset--color--primary-dark) !important;
}

/* Responsive adjustments */
@media (max-width: 781px) {
    .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
        flex-basis: 100% !important;
    }
    .hide-on-mobile {
        display: none;
    }
}
