/* Mobile Friendly Enhancements - f5dfe96f */

/* Prevent horizontal overflow on the whole site */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Make all images and media scale to their container */
img, video, iframe, svg, embed, object {
    max-width: 100%;
    height: auto;
}

/* Break long words/URLs so they don't overflow */
p, h1, h2, h3, h4, h5, h6, li, a, span, blockquote {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Tables become scrollable on mobile */
@media (max-width: 767px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

/* === Tablet & smaller === */
@media (max-width: 1024px) {
    .container,
    .wrap,
    .site-content,
    .entry-content {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }
}

/* === Mobile (phones) === */
@media (max-width: 767px) {

    /* Readable base font size */
    body {
        font-size: 16px;
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
    }

    /* Smaller, balanced headings */
    h1 { font-size: 1.85rem; line-height: 1.25; }
    h2 { font-size: 1.5rem;  line-height: 1.3; }
    h3 { font-size: 1.25rem; line-height: 1.35; }
    h4 { font-size: 1.1rem;  line-height: 1.4; }

    /* Touch-friendly buttons & links (min 48x48) */
    button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    .button,
    .btn,
    .wp-block-button__link,
    .elementor-button {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 16px;
        line-height: 1.3;
        touch-action: manipulation;
    }

    /* Touch-friendly nav links */
    nav a,
    .menu a,
    .nav-menu a {
        padding: 12px 14px;
        display: inline-block;
        min-height: 44px;
    }

    /* Form fields: prevent iOS zoom + comfortable tap targets */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px;
        min-height: 44px;
        padding: 10px 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Stack multi-column layouts */
    .row,
    .columns,
    .wp-block-columns {
        flex-wrap: wrap;
    }

    .col,
    .column,
    .wp-block-column {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Reduce excessive vertical padding on sections */
    section,
    .section,
    .elementor-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    /* Tighter margins on common elements */
    p, ul, ol {
        margin-bottom: 1em;
    }

    /* Sticky/fixed headers shouldn't dominate the screen */
    .site-header,
    header.sticky,
    header.fixed {
        max-height: 70px;
    }
}

/* === Very small phones === */
@media (max-width: 380px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }

    .container,
    .wrap,
    .site-content,
    .entry-content {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
