/* Factely Custom Styles */

/* Forced Layout Margins */
header.wp-block-template-part,
footer.wp-block-template-part,
.alignwide,
.alignfull {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

@media (max-width: 600px) {
    header.wp-block-template-part,
    footer.wp-block-template-part,
    .alignwide,
    .alignfull {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Ensure central content doesn't go too wide but remains centered */
.wp-block-group.has-layout-constrained > :not(.alignwide):not(.alignfull) {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Sticky Header Refinement */
header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 0;
}

/* Remove list bullets for specific style */
.is-style-no-bullets {
    list-style-type: none;
    padding-left: 0;
}

/* Card hover effects & Soft Shadows */
.wp-block-column {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.has-soft-shadow {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.wp-block-column:hover {
    transform: translateY(-5px);
}

/* Button outline style refinement */
.is-style-outline .wp-block-button__link {
    border: 2px solid var(--wp--preset--color--primary);
    background-color: transparent;
    color: var(--wp--preset--color--primary);
    transition: all 0.3s ease;
}

.is-style-outline .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--primary);
    color: #ffffff;
}

/* Targeted fix for white outline buttons on primary background to ensure text turns green on hover */
.has-primary-background-color .is-style-outline .wp-block-button__link:hover {
    background-color: #ffffff !important;
    color: var(--wp--preset--color--primary) !important;
}

/* Site title styling */
.wp-block-site-title a {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--wp--preset--color--foreground);
    text-decoration: none;
}

/* Navigation refinement */
.wp-block-navigation__container {
    font-weight: 500;
}

/* Mockup placeholder styling */
.product-mockup {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.15);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
