/*
 * WordPress-specific CSS overrides
 * Prevents WP admin bar and default styles from interfering with theme design
 */

/* Offset fixed header when admin bar is present */
body.admin-bar #site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #site-header {
        top: 46px;
    }
}

/* Ensure smooth scrolling site-wide */
html {
    scroll-behavior: smooth;
}

/* Gallery lightbox/modal - ensure it covers admin bar */
.gallery-modal,
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

/* WordPress alignment classes */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

/* Scroll animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery masonry layout */
.gallery-masonry {
    columns: 3;
    column-gap: 16px;
}

.gallery-masonry > * {
    break-inside: avoid;
    margin-bottom: 16px;
}

@media (max-width: 1024px) {
    .gallery-masonry {
        columns: 2;
    }
}

@media (max-width: 640px) {
    .gallery-masonry {
        columns: 1;
    }
}

/* Contact form plugin style overrides to match theme */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea,
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form select,
.wpforms-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-size: 1rem;
    line-height: 1.5;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus,
.wpforms-form input:focus,
.wpforms-form select:focus,
.wpforms-form textarea:focus {
    outline: none;
    ring: 2px;
    border-color: transparent;
    box-shadow: 0 0 0 2px #2563eb;
}

.wpcf7-submit,
.wpforms-submit {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.wpcf7-submit:hover,
.wpforms-submit:hover {
    background-color: #1d4ed8;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}
