/* ===============================================================
   Shared on every page, loaded last.
   1 page transitions  2 touch feedback  3 cookie consent
   4 phone menu        5 phone app bar   6 phone layout
   =============================================================== */

:root {
    --app-navy: #0a1f44;
    --app-pink: #ee0979;
    --app-grad: linear-gradient(135deg, #ee0979, #ff6a00);
    --app-ease: cubic-bezier(.22, 1, .36, 1);
    --app-bar: 64px;
    --app-safe: env(safe-area-inset-bottom, 0px);
}

/* ---- 1. Page transitions (browsers without support just navigate) ---- */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: app-out .16s ease both; }
::view-transition-new(root) { animation: app-in .28s var(--app-ease) both; }

@keyframes app-out { to { opacity: 0; } }
@keyframes app-in { from { opacity: 0; transform: translateY(10px); } }

.app-bar { view-transition-name: app-bar; }

/* Sections fade up as they arrive; app.js adds the classes. */
.app-reveal { opacity: 0; transform: translateY(16px); }
.app-reveal.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s var(--app-ease); }

/* ---- 2. Touch feedback ---- */
a, button, summary, label, [role="button"], [role="switch"], .toggle-title { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

@media (hover: none) {
    .fa-btn, .tf-button, .btn, .post-card, .fa-faq summary, .formsubmit { transition: transform .16s ease, opacity .16s ease; }
    .fa-btn:active, .tf-button:active, .btn:active, .formsubmit:active { transform: scale(.97); }
    .post-card:active { transform: scale(.985); }
    .fa-faq summary:active, .flat-toggle .toggle-title:active { opacity: .7; }
}

/* ---- 3. Cookie consent ---- */
#gdpr_banner { display: none !important; }
[data-id="zsalesiq"] { z-index: 2147483000 !important; }

#cc-banner, #cc-prefs { font-family: Poppins, sans-serif; z-index: 2147483647; box-sizing: border-box; }
#cc-banner *, #cc-prefs * { box-sizing: border-box; }

#cc-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: min(440px, calc(100vw - 40px));
    padding: 24px;
    border: 1px solid #e8ecf3;
    border-radius: 20px;
    background: #fff;
    color: #475062;
    box-shadow: 0 24px 60px rgba(10, 31, 68, .22);
    visibility: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .25s ease, transform .35s var(--app-ease), visibility 0s .35s;
}

#cc-banner.show { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }

.cc-title { margin: 0 0 8px; color: var(--app-navy); font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -.2px; }
#cc-banner p, #cc-prefs p { margin: 0; color: inherit; font-size: 13.5px; line-height: 1.6; text-align: left; hyphens: manual; }
#cc-banner a { color: #c40763; text-decoration: underline; text-underline-offset: 2px; }

.cc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

/* The theme styles every <button> and adds an arrow; reset both here. */
#cc-banner button, #cc-prefs button.cc-btn {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: none;
    box-shadow: none;
    color: var(--app-navy);
    font: 600 14px/1.25 Poppins, sans-serif;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    white-space: normal;
    overflow: visible;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .16s ease;
}

#cc-banner button::before, #cc-banner button::after,
#cc-prefs button::before, #cc-prefs button.cc-btn::after { content: none !important; display: none !important; }

#cc-banner button:active, #cc-prefs button.cc-btn:active { transform: scale(.97); }

/* Accept and reject have the same size and weight, so refusing is as easy. */
#cc-banner button.cc-accept, #cc-prefs button.cc-btn.cc-save-prefs { background: var(--app-navy); color: #fff; }
#cc-banner button.cc-accept:hover, #cc-prefs button.cc-save-prefs:hover { background: #14305f; }
#cc-banner button.cc-reject { border-color: var(--app-navy); background: #fff; color: var(--app-navy); }
#cc-banner button.cc-reject:hover { background: #f1f5f9; }
#cc-banner button.cc-manage { grid-column: 1 / -1; min-height: 40px; padding: 6px; color: #475062; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
#cc-banner button.cc-manage:hover { color: var(--app-navy); }
#cc-prefs button.cc-btn.cc-reject-all, #cc-prefs button.cc-btn.cc-accept-all { border-color: #cfd6e2; background: #fff; }
#cc-prefs button.cc-reject-all:hover, #cc-prefs button.cc-accept-all:hover { background: #f1f5f9; }
#cc-prefs button.cc-save-prefs { grid-column: 1 / -1; border-color: transparent; }

#cc-banner button:focus-visible, #cc-prefs button:focus-visible { outline: 2px solid var(--app-pink); outline-offset: 2px; }

#cc-prefs {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 31, 68, .6);
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility 0s .25s;
}

#cc-prefs.show { visibility: visible; opacity: 1; transition-delay: 0s; }

.cc-prefs-box {
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    color: #5a6474;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(24px);
    transition: transform .35s var(--app-ease);
}

#cc-prefs.show .cc-prefs-box { transform: none; }
.cc-prefs-box .cc-title { font-size: 20px; }
.cc-cats { margin: 18px 0 0; }

.cc-cat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid #eef0f4; }
.cc-cat__name { margin: 0 0 3px; color: var(--app-navy); font-size: 15px; font-weight: 600; line-height: 1.4; }
.cc-cat__desc { font-size: 12.5px; line-height: 1.5; }

#cc-prefs .cc-switch {
    position: relative;
    flex: 0 0 50px;
    width: 50px;
    height: 30px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 30px;
    background: #cbd5e1;
    cursor: pointer;
    transition: background-color .2s ease;
}

#cc-prefs .cc-switch::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    top: 3px;
    right: auto;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .22);
    transform: none;
    transition: transform .25s var(--app-ease);
}

#cc-prefs .cc-switch[aria-checked="true"] { background: #15803d; }
#cc-prefs .cc-switch[aria-checked="true"]::after { transform: translateX(20px); }
#cc-prefs .cc-switch[disabled] { background: var(--app-navy); opacity: .6; cursor: not-allowed; }
#cc-footer-link { cursor: pointer; }

.ty-screen #cc-footer-link {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    line-height: 1.2;
    text-decoration: underline;
    white-space: nowrap;
    transform: translateX(-50%);
}

@media (max-width: 600px) {
    #cc-banner {
        right: 0;
        bottom: 0;
        width: 100%;
        padding: 22px 20px calc(14px + var(--app-safe));
        border: 0;
        border-radius: 22px 22px 0 0;
        transform: translateY(100%);
    }
    #cc-prefs { align-items: flex-end; padding: 0; }
    .cc-prefs-box { max-width: none; max-height: 90vh; padding: 26px 20px calc(20px + var(--app-safe)); border-radius: 22px 22px 0 0; transform: translateY(100%); }
}

/* ---- 4. Phone menu ---- */
.mobile-button {
    top: 50%;
    right: 12px;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    transform: translateY(-50%);
    transition: background-color .25s ease;
}

.mobile-button::before,
.mobile-button::after,
.mobile-button span {
    top: 50%;
    left: 12px;
    width: 20px;
    height: 2px;
    margin-top: -1px;
    border-radius: 2px;
    transition: transform .4s var(--app-ease), opacity .2s ease, width .3s var(--app-ease);
}

.mobile-button::before { transform: translateY(-6px); }
.mobile-button span { width: 14px; transform: none; }
.mobile-button::after { transform: translateY(6px); }
.menu-open .mobile-button::before { transform: rotate(45deg); }
.menu-open .mobile-button span { width: 0; opacity: 0; }
.menu-open .mobile-button::after { transform: rotate(-45deg); }
.mobile-button:focus-visible { outline: 2px solid var(--app-pink); outline-offset: 2px; }

/* Logo and menu button stay above the panel. */
#header_main .header-inner { position: relative; z-index: 2; }
#header_main .mobile-nav-wrap { position: static; z-index: 1; }
.mobile-nav-wrap .overlay-mobile-nav,
.mobile-nav-wrap .inner-mobile-nav > .main-logo,
.mobile-nav-wrap .mobile-nav-close { display: none; }

.mobile-nav-wrap .inner-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 104px 24px calc(28px + var(--app-safe));
    background: radial-gradient(120% 70% at 100% 0%, rgba(238, 9, 121, .22), transparent 60%), radial-gradient(100% 60% at 0% 100%, rgba(255, 106, 0, .14), transparent 60%), #071a35;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    clip-path: circle(0 at calc(100% - 35px) 36px);
    transition: clip-path .45s cubic-bezier(.5, 0, .2, 1), visibility 0s .45s;
}

.menu-open .mobile-nav-wrap .inner-mobile-nav {
    visibility: visible;
    clip-path: circle(150vmax at calc(100% - 35px) 36px);
    transition: clip-path .6s var(--app-ease), visibility 0s;
}

html.menu-open, html.menu-open body { overflow: hidden !important; }
.menu-open .app-bar, .menu-open #sticky-fab, .menu-open .progress-wrap { opacity: 0; visibility: hidden; }

#menu-mobile-menu { display: block; margin: 0; padding: 0; border: 0; }

#menu-mobile-menu > li {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .2s ease, transform .2s ease;
}

.menu-open #menu-mobile-menu > li,
.menu-open .app-menu__foot {
    opacity: 1;
    transform: none;
    transition: opacity .45s ease calc(.12s + var(--i, 0) * .055s), transform .6s var(--app-ease) calc(.12s + var(--i, 0) * .055s);
}

#menu-mobile-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    color: #fff;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.3px;
}

#menu-mobile-menu > li.is-here > a, #menu-mobile-menu .sub-menu-mobile li.is-here a { color: #ff7ab8; }

#menu-mobile-menu li.menu-item-has-children-mobile > a::after {
    content: "";
    position: static;
    width: 11px;
    height: 11px;
    margin-right: 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    transition: transform .35s var(--app-ease);
}

#menu-mobile-menu li.menu-item-has-children-mobile.is-open > a::after { transform: translateY(3px) rotate(-135deg); }

#menu-mobile-menu > li .sub-menu-mobile {
    display: block;
    height: 0;
    margin: 0;
    border-radius: 0;
    visibility: hidden;
    overflow: hidden;
    transition: height .35s var(--app-ease), visibility 0s .35s;
}

#menu-mobile-menu > li.is-open .sub-menu-mobile { visibility: visible; transition-delay: 0s; }
#menu-mobile-menu > li .sub-menu-mobile li { padding: 0; border: 0; }
#menu-mobile-menu > li .sub-menu-mobile li:last-child { padding-bottom: 14px; }
#menu-mobile-menu > li .sub-menu-mobile a { display: flex; align-items: center; min-height: 46px; padding-left: 16px; border-left: 2px solid rgba(255, 255, 255, .16); color: #cdd8e8; font-size: 16.5px; font-weight: 500; line-height: 1.35; }

.app-menu__foot { margin-top: auto; padding-top: 32px; opacity: 0; transform: translateY(22px); }
.app-menu__cta { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 14px; background: var(--app-grad); color: #fff; font-size: 16.5px; font-weight: 700; }
.app-menu__cta:hover { color: #fff; }
.app-menu__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.app-menu__links a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; color: #fff; font-size: 15px; font-weight: 600; }

/* ---- 5. Phone app bar ---- */
.app-bar { display: none; }

@media (max-width: 767px) {
    .app-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9990;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        height: calc(var(--app-bar) + var(--app-safe));
        padding: 0 6px var(--app-safe);
        border-top: 1px solid #e6eaf1;
        background: #fff;
        box-shadow: 0 -8px 26px rgba(10, 31, 68, .08);
        font-family: Poppins, sans-serif;
        transition: transform .3s var(--app-ease), opacity .2s ease, visibility .2s;
    }
    .app-bar.is-away { transform: translateY(110%); }
    .app-bar a, .app-bar button {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        width: auto;
        height: auto;
        min-width: 0;
        margin: 0;
        padding: 6px 2px 4px;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        color: #5a6474;
        font: 500 11px/1.2 Poppins, sans-serif;
        letter-spacing: 0;
        text-transform: none;
        overflow: visible;
        cursor: pointer;
    }
    .app-bar button::before, .app-bar button::after { content: none !important; display: none !important; }
    .app-bar svg { width: 23px; height: 23px; transition: transform .2s var(--app-ease); }
    .app-bar a:active svg, .app-bar button:active svg { transform: scale(.86); }
    .app-bar .is-here { color: #c40763; font-weight: 600; }
    .app-bar .app-bar__main { color: #c40763; font-weight: 600; }
    .app-bar .app-bar__main span { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-top: -22px; border: 4px solid #fff; border-radius: 50%; background: var(--app-grad); box-shadow: 0 6px 16px rgba(238, 9, 121, .32); color: #fff; box-sizing: content-box; }
    .app-bar .app-bar__main { justify-content: flex-start; padding-top: 0; }
    .app-bar a:focus-visible, .app-bar button:focus-visible { outline: 2px solid var(--app-pink); outline-offset: -3px; }

    /* Keep page ends and floating controls clear of the bar. */
    #footer, .site-foot { padding-bottom: calc(var(--app-bar) + 12px + var(--app-safe)) !important; }
    .progress-wrap, .siq-ready .progress-wrap { display: none; }
    .ty-screen #cc-footer-link { bottom: calc(var(--app-bar) + 22px + var(--app-safe)); }
    html { --app-chat-lift: calc(var(--app-bar) + var(--app-safe) + 4px); }
    #zsiq_float, .zsiq_floatmain, [data-id="zsalesiq"] .zsiq-float { bottom: calc(var(--app-chat-lift) + 10px) !important; }
}

/* ---- 6. Phone layout: one gutter and one left edge everywhere ---- */
@media (max-width: 767px) {
    html { scroll-padding-top: 84px; }

    .themesflat-container, .fa-seo { padding-right: 20px !important; padding-left: 20px !important; }
    .fa-seo { padding-top: 52px; padding-bottom: 52px; }
    .wrap { width: calc(100% - 40px) !important; }
    .widget-reply { padding: 20px 0 0 !important; }
    .pt-130 { padding-top: 60px; }
    .pb-130 { padding-bottom: 60px; }

    /* Header */
    .header { height: 72px; margin-bottom: -72px; }
    .header.is-fixed.is-small { height: 72px; }
    .header.is-fixed { transition: top .3s ease; }
    .header .header-inner { height: 72px; padding: 0 20px; }
    .header #site-logo img { width: auto; height: 36px; }
    .mobile-button { right: 14px; }

    /* Headings and text share the same left edge. */
    .fa-seo__head, .fa-seo__head h1, .fa-seo__head h2, .fa-seo__lead, .fa-seo__alias,
    .heading-section, .heading-section.text-center, .heading-section.text-center .main-title, .heading-section.text-center .sub-title,
    .heading-section .main-title, .main-title.text-center, .design-title.text-center,
    .flat-title-page .heading, .flat-title-page .custom-heading, .flat-title-page .custom-subHeading, .custom-subHeading,
    .head, .head p, .head h2 { text-align: left !important; }
    .fa-seo__lead, .heading-section .main-title { margin-right: 0; margin-left: 0; max-width: none; }
    .fa-seo__actions { justify-content: flex-start; }
    .fa-seo__actions .fa-btn, .fa-btn.fa-btn--navy, .fa-split__body .fa-btn,
    .tf-button.schedule:not(.h45), .ty-actions .tf-button { width: 100% !important; margin-right: 0 !important; margin-left: 0 !important; }
    .wg-create-design .content { text-align: left; }

    /* Same corner radius for cards and media. */
    .fa-card, .fa-feature, .works-item, .works-item-left, .wg-tool, .road-map-item, .services-item, .feature-item, .fa-stats, .partners-inner, .fa-split__video, .locate-content.card, .cta-wrapper { border-radius: 18px !important; }

    /* Contact details as rows. */
    .col-lg-4:has(> .text-center > .custom-icon-contact) { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
    .row.gap-4:has(.custom-icon-contact) { gap: 0 !important; }
    .custom-icon-contact { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; font-size: 24px; }
    .col-lg-4:has(> .text-center > .custom-icon-contact) h4 { margin: 0 !important; font-size: 17px; line-height: 1.45; text-align: left !important; }
    .locate-content.card { padding: 24px !important; }
    iframe.map { display: block; width: calc(100% - 40px); height: 360px; margin: 0 20px 48px; border-radius: 18px; }

    /* Full-width photos on the dashboard line up with the text. */
    .reel__row { max-width: none !important; }
    .reel__item { width: 100%; max-width: none; }
    .site-head__inner { height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    .app-reveal, .app-reveal.is-in, .app-bar, #cc-banner, .cc-prefs-box,
    .mobile-nav-wrap .inner-mobile-nav, .menu-open .mobile-nav-wrap .inner-mobile-nav,
    #menu-mobile-menu > li, .menu-open #menu-mobile-menu > li, .app-menu__foot { transition: none !important; }
    .app-reveal { opacity: 1; transform: none; }
}

@media print { .app-bar, #cc-banner, #cc-prefs { display: none !important; } }


/* ===============================================================
   7  PHONE: APP BEHAVIOUR
   =============================================================== */
.app-back, .app-title, .app-dots { display: none; }
.reading-bar { position: fixed; top: 0; right: 0; left: 0; z-index: 9999; height: 3px; background: var(--app-grad); transform: scaleX(0); transform-origin: left; }

@media (max-width: 767px) {
    html { scroll-behavior: auto; --app-top: 60px; scroll-padding-top: 74px; -webkit-text-size-adjust: 100%; }

    /* ---- pages move like screens ---- */
    #header_main, .site-head { view-transition-name: app-top; }
    ::view-transition-group(app-top), ::view-transition-group(app-bar) { z-index: 5; }
    ::view-transition-old(app-top), ::view-transition-old(app-bar) { display: none; animation: none; }
    ::view-transition-new(app-top), ::view-transition-new(app-bar) { animation: none; }
    ::view-transition-old(root) { animation: app-push-old .34s var(--app-ease) both; }
    ::view-transition-new(root) { animation: app-push-new .34s var(--app-ease) both; }
    html:active-view-transition-type(back)::view-transition-old(root) { z-index: 2; animation: app-pop-old .3s var(--app-ease) both; }
    html:active-view-transition-type(back)::view-transition-new(root) { animation: app-pop-new .3s var(--app-ease) both; }
    @keyframes app-push-old { to { opacity: .55; transform: translateX(-24%); } }
    @keyframes app-push-new { from { transform: translateX(100%); } }
    @keyframes app-pop-old { to { transform: translateX(100%); } }
    @keyframes app-pop-new { from { opacity: .55; transform: translateX(-24%); } }

    /* ---- header: fixed, small, always the same ---- */
    .header, .header.is-fixed, .header.is-fixed.is-small, .header.style-absolute {
        position: fixed;
        top: 0 !important;
        right: 0;
        left: 0;
        z-index: 9995;
        width: 100%;
        height: var(--app-top);
        margin: 0;
        background: var(--app-navy);
        box-shadow: none;
        transition: none;
    }
    .header .header-inner, .site-head__inner { height: var(--app-top); padding: 0 20px; }
    .site-head { background: var(--app-navy); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .site-head__inner { padding: 0; }
    .header #site-logo { margin: 0; transition: opacity .2s ease, transform .25s var(--app-ease); }
    .header #site-logo img { height: 32px; }
    .mobile-button { right: 12px; width: 42px; height: 42px; border: 0; background: none; }
    .mobile-button::before, .mobile-button::after, .mobile-button span { left: 11px; }

    .app-back {
        position: absolute;
        left: 8px;
        z-index: 3;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: none;
        color: #fff;
    }
    .app-back::before, .app-back::after { content: none !important; display: none !important; }
    .app-back svg { width: 24px; height: 24px; }
    .app-back:active { background: rgba(255, 255, 255, .14); }
    .has-back .app-back { display: flex; }
    .has-back .header #site-logo { transform: translateX(34px); }
    .menu-open .app-back { display: none; }
    .menu-open .header #site-logo { transform: none; }

    .app-title {
        position: absolute;
        right: 62px;
        left: 20px;
        z-index: 1;
        display: block;
        color: #fff;
        font-size: 16.5px;
        font-weight: 600;
        line-height: 1.3;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity .2s ease, transform .25s var(--app-ease);
        pointer-events: none;
    }
    .has-back .app-title { left: 56px; }
    .title-on .app-title { opacity: 1; transform: none; }
    .title-on .header #site-logo { opacity: 0; pointer-events: none; }
    .menu-open .app-title { opacity: 0; }
    .menu-open .header #site-logo { opacity: 1; pointer-events: auto; }
    .mobile-nav-wrap .inner-mobile-nav { padding-top: 76px; clip-path: circle(0 at calc(100% - 33px) 30px); }
    .menu-open .mobile-nav-wrap .inner-mobile-nav { clip-path: circle(150vmax at calc(100% - 33px) 30px); }

    /* ---- surfaces and compact titles ---- */
    #page, .fa-seo:not(.fa-seo--dark), .fa-seo--tint, .wg-result, .wg-partners { background: #f4f6fa; }
    .fa-seo { padding-top: 34px; padding-bottom: 34px; }
    .pt-130 { padding-top: 40px; }
    .pb-130 { padding-bottom: 40px; }
    .fa-seo__head, .fa-seo--intro .fa-seo__head, .heading-section { margin-bottom: 20px; }
    .fa-seo__title, .fa-seo__title--hero, .heading-section .main-title, .testimonial-item1 .content h2, .cta .cta-title h2, .head h2 { font-size: 23px !important; line-height: 1.25 !important; letter-spacing: -.4px; }
    .fa-seo__title span, .heading-section .main-title span, .testimonial-item1 .content h2 span { font-size: inherit !important; line-height: inherit !important; }
    .fa-seo__lead, .fa-split__lead { font-size: 15px; line-height: 1.6; }
    .fa-seo__eyebrow { margin-bottom: 10px; padding: 0; border: 0; background: none; color: #c40763; font-size: 12px; letter-spacing: .06em; }
    .fa-seo--dark .fa-seo__eyebrow { background: none; color: #ff9dca; }
    .fa-seo__alias { margin-bottom: 8px; }

    .flat-title-page { padding: calc(var(--app-top) + 30px) 0 28px; }
    .flat-title-page .heading, .flat-title-page .custom-heading, .flat-title-page.shop .heading { margin-bottom: 8px; font-size: 27px; }
    .flat-title-page.shop .heading { margin-bottom: 0; }
    .flat-title-page .custom-subHeading { font-size: 15.5px; color: #dbe4f0; }

    /* ---- swipe rows ---- */
    .fa-card-grid, .app-swipe {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        margin: 0 -20px !important;
        padding: 4px 20px 14px !important;
        scroll-padding: 0 20px;
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .fa-card-grid::-webkit-scrollbar, .app-swipe::-webkit-scrollbar { display: none; }
    .fa-card-grid > *, .app-swipe > * { flex: 0 0 min(78%, 300px) !important; width: auto !important; max-width: none !important; margin: 0 !important; scroll-snap-align: start; }
    .app-swipe > [class*="col-"] { padding: 0 !important; }
    .app-swipe > [class*="col-"] > * { height: 100%; margin: 0 !important; }
    .fa-card, .fa-feature, .wg-tool, .file-item, .road-map-item, .services-item, .feature-item, .works-item, .works-item-left { border: 1px solid #e8ecf3 !important; background: #fff !important; box-shadow: 0 4px 16px rgba(10, 31, 68, .05) !important; }
    .fa-card { padding: 20px; }
    .fa-card h3 { margin: 14px 0 6px; font-size: 17px; }
    .fa-card p { font-size: 14px; line-height: 1.6; }

    .app-dots { display: flex; gap: 6px; margin: 0 0 4px; }
    .app-dots i { width: 6px; height: 6px; border-radius: 6px; background: #cdd5e1; transition: width .25s var(--app-ease), background-color .2s; }
    .app-dots i.on { width: 18px; background: #c40763; }

    /* ---- tiles ---- */
    .fa-feature-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
    .fa-feature { padding: 16px !important; }
    .fa-feature h3 { margin: 12px 0 4px; font-size: 14.5px; line-height: 1.3; }
    .fa-feature p { font-size: 12.5px; line-height: 1.5; }

    /* ---- buttons, form, FAQ ---- */
    .fa-btn, .tf-button.schedule:not(.h45), .btn, .fa-zoho-form .formsubmit.zcwf_button { min-height: 52px !important; border-radius: 14px !important; font-size: 16px !important; }
    .fa-zoho-form input[type="text"], .fa-zoho-form select, .fa-zoho-form textarea { border-color: #dbe1ea; font-size: 16px; }
    .box-messages { padding-top: 22px; padding-bottom: 28px; }
    .fa-faq { gap: 8px; }

    /* ---- call to action and footer ---- */
    .cta { margin: 0 !important; padding: 10px 0 34px; }
    .cta-wrapper { padding: 24px 22px !important; }
    .cta.overlap-footer + #footer .col-12.pt-130, #footer .col-12.pt-130 { padding-top: 26px; }

    .reading-bar { top: var(--app-top); z-index: 9994; }
}

/* Opened from the home screen. */
@media (display-mode: standalone) {
    body { overscroll-behavior-y: none; }
    .app-bar, .header, .mobile-nav-wrap { user-select: none; -webkit-user-select: none; }
}

/* ===============================================================
   8  PHONE: SECTION DETAILS
   =============================================================== */
/* Wrapper added by app.js; invisible to the layout on larger screens. */
.app-swipe { display: contents; }
.design-title { position: relative; z-index: 0; }

@media (max-width: 767px) {
    .fa-btn, .tf-button { justify-content: center !important; text-align: center !important; }
    .wg-banner-1 .container, .wg-banner-1 .content { padding-top: 0; }

    /* swipe rows built from the older column layouts */
    .app-swipe > * > .wg-tool, .app-swipe > * > .services-item, .app-swipe > * > .feature-item, .app-swipe > * > .file-item { width: 100%; min-height: 0 !important; margin: 0 !important; padding: 20px !important; }
    .app-swipe > .road-map-item { width: auto; min-height: 0; margin: 0 !important; padding: 20px !important; }
    .app-swipe > .step-item { display: block !important; width: auto; margin: 0 !important; padding: 0 0 18px !important; border: 1px solid #e8ecf3; border-radius: 18px; background: #fff; box-shadow: 0 4px 16px rgba(10, 31, 68, .05); overflow: hidden; }
    .app-swipe > .step-item .custom-image-div { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; }
    .app-swipe > .step-item img { width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; border-radius: 0 !important; object-fit: cover; }
    .app-swipe > .step-item .content { width: auto !important; margin: 0 !important; padding: 16px 18px 0 !important; }
    .app-swipe > .step-item .content .title { margin-bottom: 8px !important; font-size: 18px !important; line-height: 1.3 !important; }
    .app-swipe h3, .app-swipe h4 { margin: 12px 0 6px !important; font-size: 17px !important; line-height: 1.35 !important; letter-spacing: -.2px; }
    .app-swipe p { margin: 0 !important; font-size: 14px !important; line-height: 1.6 !important; }
    .app-swipe .wg-tool > i, .app-swipe .wg-tool .icon { font-size: 34px; }
    .app-swipe .file-item .icon { margin: 0 !important; }
    .app-swipe .file-item .icon img { width: 60px; height: auto; }
    .app-swipe .feature-item .image img, .app-swipe .feature-item > img { width: 100%; height: auto; border-radius: 12px; }
    .app-swipe .services-item { display: block !important; }
    .app-swipe .road-map-item .arrow { display: none; }
    .wg-road-map .road-map-content { display: block; }

    /* dark feature block: chips and list rows */
    .nav.nav-pills { flex-flow: row nowrap !important; gap: 8px; margin: 0 -20px 18px !important; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
    .nav.nav-pills::-webkit-scrollbar { display: none; }
    .nav.nav-pills .nav-item { flex: 0 0 auto; margin: 0 !important; }
    .nav.nav-pills .nav-link { padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 30px !important; font-size: 14px; line-height: 1.3; white-space: nowrap; }
    .nav.nav-pills .nav-link.active { border-color: transparent; background: #fff; color: var(--app-navy) !important; }
    .tab-pane .mb-5:has(> .custom-tab) { margin-bottom: 0 !important; }
    .custom-tab { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .custom-tab .image { grid-row: 1 / 3; width: 46px !important; height: 46px; border-radius: 14px; }
    .custom-tab .inclusive-heading { font-size: 15.5px; line-height: 1.35; }
    .custom-tab .inclusive-sub-heading { font-size: 13.5px; line-height: 1.5; opacity: .82; }

    /* badges, quotes, map */
    .fa-badges { gap: 12px !important; }
    .fa-badges > div { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 132px; border: 1px solid #e8ecf3; border-radius: 18px; background: #fff; }
    .fa-badges img { width: 96px; }
    .partners-inner { border-color: #e8ecf3 !important; background: #fff; }
    .wg-testimonials-1, .wg-testimonials-1 .box-color { background: #f4f6fa; }
    .wg-testimonials-1 .ellipse, .wg-testimonials-1 .ellipse1 { display: none; }
    .wg-testimonials-1 .mt-5 { margin-top: 0 !important; }
    .wg-testimonials-1 .box-quote-left { padding: 0 !important; border: 1px solid #e8ecf3; border-radius: 18px; background: #fff; box-shadow: 0 4px 16px rgba(10, 31, 68, .05); overflow: hidden; }
    .wg-testimonials-1 .swiper-slide.testimonial-item1 { width: 100%; padding: 22px; background: #fff; box-shadow: none; }
    .wg-testimonials-1 .swiper-container { margin: 0 !important; padding: 0 !important; }
    .wg-testimonials-1 .say p { font-size: 15px; line-height: 1.65; }
    #page > div[style*="background: #fff"] { padding-top: 34px !important; padding-bottom: 34px !important; background: #f4f6fa !important; }
    .map-content { padding-bottom: 0 !important; }
}

/* ===============================================================
   9  PHONE: EVEN SPACING AND THE DASHBOARD PAGE
   =============================================================== */
@media (max-width: 767px) {
    .pt-130, .wg-result.pt-130, .helpful.pt-130 { padding-top: 34px !important; }
    .pb-130 { padding-bottom: 20px !important; }
    .wg-banner-1 { padding-top: calc(var(--app-top) + 56px); padding-bottom: 48px; }
    .list-tool, .wg-features, .wg-services, .wg-files { padding-top: 34px !important; padding-bottom: 34px !important; }
    .wg-features, .wg-services, .wg-files, .list-tool { background: #f4f6fa; }
    .wg-create-design.style-1 { margin: 10px 20px; padding: 56px 0 24px; border-radius: 20px; overflow: hidden; }
    .wg-create-design.style-1::before, .wg-create-design.style-1::after { border-radius: 20px; }
    .wg-create-design .content, .wg-create-design.style-7 .content { padding-top: 14px !important; }
    .wg-create-design.style-1 .content { padding-top: 0 !important; }
    .wg-testimonials-1 { padding-bottom: 16px !important; }
    .wg-testimonials-1 .flex.items-center.justify-between { margin-top: 20px !important; }
    .wg-testimonials-1 .content { margin-bottom: 14px; }
    .faqs-wrap-1.type-1 { padding-bottom: 24px !important; }
    #page div[style*="padding-top: 100px"], #page div[style*="padding: 100px"] { padding-top: 34px !important; padding-bottom: 34px !important; }
    .box-messages { padding-top: 24px !important; padding-bottom: 28px !important; }
    iframe.map { margin-bottom: 28px; }
    .works-item, .works-item-left { margin-bottom: 12px !important; }
    .file-item { border-radius: 18px !important; }

    /* Swipe rows and badges that sit inside a Bootstrap row. */
    .row > .app-swipe { flex: 0 0 calc(100% + 10px); max-width: none; margin: 0 -5px !important; }
    .row > .app-dots { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
    .row .fa-badges { flex: 0 0 calc(100% - 30px); width: calc(100% - 30px); margin: 0 15px !important; }

    /* Dashboard page */
    .grid-3, .grid-4, .steps, .reel__row {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 12px !important;
        margin: 0 -20px !important;
        padding: 4px 20px 14px !important;
        scroll-padding: 0 20px;
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        perspective: none !important;
    }
    .grid-3::-webkit-scrollbar, .grid-4::-webkit-scrollbar, .steps::-webkit-scrollbar, .reel__row::-webkit-scrollbar { display: none; }
    .grid-3 > *, .grid-4 > *, .steps > *, .reel__row > * { flex: 0 0 min(78%, 300px); width: auto; max-width: none; margin: 0 !important; scroll-snap-align: start; opacity: 1 !important; transform: none !important; }
    .section, .band { padding: 40px 0 !important; }
    .section--flush-top { padding-top: 10px !important; }
    .hero { padding: calc(var(--app-top) + 34px) 0 60px !important; }
    .head { margin-bottom: 22px !important; }
    .eyebrow { margin-bottom: 12px; padding: 0; border: 0; background: none; font-size: 12px; letter-spacing: .06em; }
    .stats__inner { grid-template-columns: 1fr 1fr !important; border-radius: 18px !important; }
    .stat { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
    .stat:nth-child(2n) { border-right: 0 !important; }
    .stat:nth-child(n+3) { border-bottom: 0 !important; }
    .card, .step, .faq details, .compare { border-radius: 18px !important; }
    .cta { border-radius: 18px; }
    main > .section .cta { padding: 28px 22px !important; }
    .section--tint, .section--tint-2 { background: #f4f6fa !important; }
}

@media (max-width: 767px) {
    .wg-testimonials-1 .swiper-slide.testimonial-item1, .wg-testimonials-1 .swiper-slide .say { height: auto !important; min-height: 0 !important; padding: 20px !important; }
    .wg-testimonials-1 .swiper-slide .say { padding: 0 !important; }
    .wg-testimonials-1 .swiper-slide .mb-30 { margin-bottom: 12px !important; }
    .wg-create-design.style-7 img { border-radius: 18px !important; }
    .nav.nav-pills + .tf-button, .heading-section + .row { margin-top: 0 !important; }
}
