/* ==========================================================================
   Mobile Improvements Pack (REVISED 2026-04-23)
   Loaded AFTER mobile-style.min.css. Rules here are intentionally additive
   and do NOT override the header/logo/hero sizing that the original
   mobile-style.css establishes. Earlier aggressive overrides caused a
   regression (tiny icons, cramped header) and have been removed.
   ========================================================================== */

/* ---- Touch Targets (Mobile #3) ----
   Apple HIG: minimum 44×44 pt / Google Material 48dp. We only enforce
   this on explicit buttons and nav links — never on inline prose links,
   and never on the header/brand (which has its own sizing). */
button,
.btn,
a.btn,
.menu-toggle,
.hamburger,
.mobile-cta-content a,
input[type="submit"],
input[type="button"] {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* Form inputs — iOS will auto-zoom unless font >=16px */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
select,
textarea {
    font-size: 16px;
    min-height: 44px;
}

/* ---- Readable font-size floor for tiny text (Mobile #8) ---- */
small, .small, .micro, .fine-print {
    font-size: 0.8125rem;   /* ≥ 13px */
    line-height: 1.5;
}

/* ---- Sticky Bottom CTA Bar (Mobile #4) ----
   Three-button bar: Call / WhatsApp / Book. Only shown on phones. */
.mo-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    background: rgba(29, 33, 45, 0.96);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.18);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    opacity: 1;
    pointer-events: auto;
}
.mo-sticky-cta .mo-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 6px;
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    min-height: 56px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
}
.mo-sticky-cta .mo-cta-btn:last-child { border-right: none; }
.mo-sticky-cta .mo-cta-btn i { font-size: 1.1rem; }
.mo-sticky-cta .mo-cta-call:active { background: rgba(52, 168, 83, 0.25); }
.mo-sticky-cta .mo-cta-wa { color: #fff !important; }
.mo-sticky-cta .mo-cta-wa:active { background: rgba(37, 211, 102, 0.25); }
.mo-sticky-cta .mo-cta-book { background: #ff7a00; color: #fff !important; }
.mo-sticky-cta .mo-cta-book:active { background: #e66f00; }

/* Push page content above the bar so content isn't hidden behind */
body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* Only show on narrow viewports */
@media (min-width: 900px) {
    .mo-sticky-cta { display: none; }
    body { padding-bottom: 0; }
}
@media print {
    .mo-sticky-cta { display: none !important; }
}
@media (prefers-reduced-data: reduce) {
    .mo-sticky-cta {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
@media (prefers-color-scheme: dark) {
    .mo-sticky-cta { background: rgba(10, 13, 20, 0.97); }
}
.mo-sticky-cta .mo-cta-btn:focus-visible {
    outline: 2px solid #ffae42;
    outline-offset: -2px;
}

/* ---- Zoho Form Modal → bottom sheet on phones (Mobile #7) ---- */
@media (max-width: 600px) {
    .zoho-form-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }
    .zoho-form-overlay.active { display: flex !important; }
    .zoho-form-container {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 95vh !important;
        min-height: 70vh !important;
        border-radius: 16px 16px 0 0 !important;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    }
    .zoho-form-overlay.active .zoho-form-container {
        transform: translateY(0);
    }
    .zoho-form-container iframe {
        width: 100% !important;
        height: 100% !important;
        min-height: 68vh;
        border: 0;
    }
    .zoho-form-close {
        top: 8px !important;
        right: 12px !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(29, 33, 45, 0.95) !important;
    }
    body.modal-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* ---- Mobile menu UX polish (Mobile #6) ----
   Non-destructive: only adds transitions & optional backdrop. */
.mobile-menu,
.mobile-nav {
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
}
body.menu-open, body.no-scroll {
    overflow: hidden;
    touch-action: none;
}
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 998;
}
body.menu-open .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Blog reading experience (Mobile #14) ----
   Scoped strictly to blog/article containers. */
article.blog-post,
.blog-post-content,
.post-content {
    font-size: 1.0625rem;
    line-height: 1.7;
}
article.blog-post h1,
.blog-post-content h1 { font-size: 1.625rem; line-height: 1.25; margin-top: 0.25em; }
article.blog-post h2,
.blog-post-content h2 { font-size: 1.375rem; line-height: 1.3;  margin-top: 1.6em; }
article.blog-post h3,
.blog-post-content h3 { font-size: 1.15rem;  line-height: 1.35; margin-top: 1.4em; }
article.blog-post p,
.blog-post-content p  { margin-bottom: 1em; }
article.blog-post img,
.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1em 0;
}

/* ---- Lazy iframe placeholder (Mobile #12) ---- */
iframe[loading="lazy"] {
    background: #f2f4f8;
    min-height: 120px;
}

/* --- User-requested removal: Skip to main content link (2026-04-21) --- */
.skip-to-main,
.skip-link {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
}

/* --- User-requested removal: Floating WhatsApp button (2026-04-23) ---
   Replaced by the 3-button sticky bottom CTA bar (#mo-sticky-cta) which
   already includes a WhatsApp action in the center. This hides any
   residual .whatsapp-float anchor from cached pages or orphan CSS. */
.whatsapp-float,
a.whatsapp-float,
.floating-whatsapp,
.wa-float-btn {
    display: none !important;
}
