/* Custom styles for Bloomstrom Construction */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scroll offset for anchor links */
section[id] {
    scroll-margin-top: 80px;
}

/* Ensure body uses Roboto font */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Heading font is handled via Tailwind font-heading class */

/* Graticle logo - grayscale by default, color on hover */
.graticle-logo img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.graticle-logo:hover img {
    filter: grayscale(0%);
}

/* Navigation dropdown styles */
nav .group:hover .group-hover\:visible {
    visibility: visible;
    opacity: 1;
}

/* Mobile dropdown chevron rotation */
.services-dropdown-mobile button[aria-expanded="true"] .dropdown-chevron,
.services-dropdown-mobile button:not(.hidden) + div:not(.hidden) ~ button .dropdown-chevron {
    transform: rotate(180deg);
}

.services-dropdown-mobile button:has(+ div:not(.hidden)) .dropdown-chevron {
    transform: rotate(180deg);
}

/* Full screen mobile menu overlay */
#mobile-menu-overlay {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Ensure mobile menu is above everything */
#mobile-menu-overlay {
    z-index: 9999;
}

/* Mobile menu button z-index */
#mobile-menu-btn {
    z-index: 10000;
    position: relative;
}

/* Smooth transitions for mobile menu */
#mobile-menu-overlay {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure nav stays on top when menu is open */
nav {
    position: relative;
    z-index: 50;
}

/* Masonry Gallery Layout */
.gallery-masonry {
    column-count: 2;
    column-gap: 1rem;
    break-inside: avoid;
}

@media (min-width: 768px) {
    .gallery-masonry {
        column-count: 3;
        column-gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .gallery-masonry {
        column-count: 4;
        column-gap: 1.5rem;
    }
}

.gallery-masonry .gallery-item {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 1rem;
}

.gallery-masonry .gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}