/*
| Root canvas: slate-900 so overscroll never flashes a random color.
*/
html.mcfly-public-html {
    background-color: #0f172a;
    min-height: 100%;
}

/*
| Public layout: body uses footer-colored bg on purpose.
| If flex-grow on <main> fails (CDN/old CSS), flexbox leaves “slack” *below* the last
| item in .mcfly-public-shell — that area shows the parent background. A light body
| bg reads as a white strip under the dark footer; slate-900 matches the footer.
|
| Main + chrome carry the real page background (#f8fafc).
*/
body.mcfly-public-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: block;
    background-color: rgb(15 23 42);
    font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.mcfly-public-shell {
    /* Grid: exactly 3 rows — top chrome, growing main, footer (WhatsApp is outside this div). */
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: transparent;
}

.mcfly-public-top {
    grid-row: 1;
    min-width: 0;
}

.mcfly-public-shell > main {
    grid-row: 2;
    min-height: 0;
    min-width: 0;
    width: 100%;
    background-color: #f8fafc;
}

.mcfly-public-shell > footer {
    grid-row: 3;
    min-width: 0;
}

.mcfly-site-footer {
    margin-bottom: 0;
    flex-shrink: 0;
}

.mcfly-footer-copy {
    margin-bottom: 0;
}

.mcfly-footer-powered {
    margin: 0.35rem 0 0;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: rgb(148 163 184);
}

/* McFly public extras (Tailwind build may not scan this file) */
.font-display {
    font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -0.02em;
}

/*
| Hero H1 accent phrases — do NOT rely on Tailwind bg-clip-text (often missing when only this file loads).
| Without clip + gradient, text-transparent alone leaves an empty “hole” in the headline.
*/
.mcfly-hero-accent-text {
    color: #2563eb;
    display: inline;
    font-weight: inherit;
}

/* Dark hero panel (home): lighter gradient + readable fallback */
.mcfly-hero-accent-text--on-dark {
    color: #93c5fd;
    display: inline;
    font-weight: inherit;
}

@supports (text-wrap: balance) {
    .mcfly-hero-h1 {
        text-wrap: balance;
    }
}

.mcfly-location-hero-bg {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 40%, #f1f5f9 100%);
}

.mcfly-location-hero-radial {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.18), transparent 55%);
}

.mcfly-card-soft-emerald {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 55%, #fff 100%);
}

.mcfly-founder-photo {
    width: 8rem;
    height: 8rem;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.25);
    border: 3px solid #fff;
}

.mcfly-founder-mark {
    display: flex;
    width: 8rem;
    height: 8rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 20px 40px -12px rgba(5, 150, 105, 0.45);
}

.mcfly-cta-gradient {
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 42%, #0f172a 100%);
}

.mcfly-text-on-cta-muted {
    color: rgba(255, 255, 255, 0.88);
}

.mcfly-locations-footer-bg {
    background: linear-gradient(180deg, #0f172a 0%, #134e4a 55%, #0f172a 100%);
}

.mcfly-text-emerald-faint {
    color: rgba(167, 243, 208, 0.9);
}

.mcfly-btn-download-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 0.75rem;
    border: 2px solid #059669;
    background: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #047857;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mcfly-btn-download-pdf:hover {
    background: #ecfdf5;
    border-color: #047857;
    color: #065f46;
}

/* Homepage marketing (Tailwind complements) */
.mcfly-home-faq details summary {
    list-style: none;
}

.mcfly-home-faq details summary::-webkit-details-marker {
    display: none;
}

.mcfly-home-faq details[open] summary .mcfly-faq-chevron {
    transform: rotate(180deg);
}

/* Hero right column: image only */
.mcfly-home-hero-visual-wrap {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 24px 64px -16px rgba(0, 0, 0, 0.55);
}

/* Landscape hero photo — matches team / office shots */
.mcfly-home-hero-visual {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    max-height: min(70vh, 34rem);
    object-fit: cover;
    object-position: center 25%;
}

@media (min-width: 1024px) {
    .mcfly-home-hero-visual {
        aspect-ratio: 4 / 3;
        max-height: min(78vh, 38rem);
        object-position: center center;
    }
}

/* Home: CCTV marketing band */
.mcfly-home-cctv-marketing {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 55%, #f8fafc 100%);
}

/* Home: AMC block — white band between CCTV gradient and next section */
.mcfly-home-amc-marketing {
    background: #fff;
}

/* Home: networking solutions band (after AMC white) */
.mcfly-home-networking-marketing {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 42%, #f1f5f9 100%);
}

/* Home: repair & maintenance band (after pillar grid, before CCTV) */
.mcfly-home-repair-marketing {
    background: #fff;
}

/* Home: Business & POS band (after networking) */
.mcfly-home-pos-marketing {
    background: linear-gradient(180deg, #faf8f5 0%, #f8fafc 55%, #fff 100%);
}

/* Home: gaming solutions band (after POS) */
.mcfly-home-gaming-marketing {
    background: linear-gradient(180deg, #f5f3ff 0%, #f8fafc 48%, #faf5ff 100%);
}

/* Home: digital marketing band (after gaming) */
.mcfly-home-digital-marketing {
    background: linear-gradient(180deg, #ecfeff 0%, #f8fafc 50%, #f0fdfa 100%);
}

/* Home: IT security band (after digital marketing) */
.mcfly-home-it-security-marketing {
    background: linear-gradient(180deg, #e2e8f0 0%, #f1f5f9 48%, #fff 100%);
}

/* Home: corporate IT band (after IT security) */
.mcfly-home-corporate-it-marketing {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 40%, #eff6ff 100%);
}

/* Home: peripherals & office equipment (after corporate IT) */
.mcfly-home-peripheral-office-marketing {
    background: linear-gradient(180deg, #faf8f5 0%, #f8fafc 50%, #f1f5f9 100%);
}

/* Home: smart home & automation (after peripherals) */
.mcfly-home-smart-home-marketing {
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfeff 42%, #f5f3ff 100%);
}

/* Home: computer sales & hardware (after smart home) */
.mcfly-home-computer-sales-marketing {
    background: linear-gradient(180deg, #f8fafc 0%, #e0f2fe 38%, #fff 100%);
}

/* Home: website & software development (after computer sales) */
.mcfly-home-web-dev-marketing {
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 45%, #fff 100%);
}

/*
| CCTV block: two columns from 1024px+. Do NOT rely on Tailwind lg:grid-cols-12 /
| lg:col-span-* / bg-slate-900 — they are often missing from the Vite build, which
| caused a single skinny column and white-on-white checklist text.
*/
.mcfly-home-cctv-grid {
    display: grid;
    gap: 2.5rem;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .mcfly-home-cctv-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
        gap: 3rem;
    }
}

.mcfly-home-cctv-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mcfly-home-cctv-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100%;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    border-radius: 1rem;
    padding: 1.5rem;
    background-color: #0f172a;
    color: #e2e8f0;
    border: 1px solid rgb(51 65 85 / 0.95);
    box-shadow:
        0 0 0 1px rgb(255 255 255 / 0.06) inset,
        0 20px 50px -20px rgb(0 0 0 / 0.45);
}

@media (min-width: 640px) {
    .mcfly-home-cctv-card {
        padding: 2rem;
        border-radius: 1.25rem;
    }
}

.mcfly-home-cctv-card .mcfly-home-cctv-card-kicker {
    color: rgb(148 163 184);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mcfly-home-cctv-card .mcfly-home-cctv-card-title {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

@media (min-width: 640px) {
    .mcfly-home-cctv-card .mcfly-home-cctv-card-title {
        font-size: 1.25rem;
    }
}

.mcfly-home-cctv-card .mcfly-home-cctv-card-list,
.mcfly-home-process-rail .mcfly-home-cctv-card-list {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    flex: 1 1 auto;
}

.mcfly-home-cctv-card .mcfly-home-cctv-card-list > li,
.mcfly-home-process-rail .mcfly-home-cctv-card-list > li {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgb(203 213 225);
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.mcfly-home-cctv-card .mcfly-home-cctv-card-list > li:last-child,
.mcfly-home-process-rail .mcfly-home-cctv-card-list > li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.mcfly-home-cctv-card .mcfly-home-cctv-card-list strong,
.mcfly-home-process-rail .mcfly-home-cctv-card-list strong {
    color: #fff;
    font-weight: 600;
}

.mcfly-home-process-rail .mcfly-home-cctv-card-list {
    flex: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
}

@media (min-width: 1280px) {
    .mcfly-home-process-rail .mcfly-home-cctv-card-list {
        margin-top: 2rem;
        padding-top: 2rem;
    }
}

/* Step cards inside work board — layout without Tailwind */
.mcfly-home-process-work .mcfly-home-process-steps {
    padding: 0.5rem 1.5rem 2rem;
}

@media (min-width: 640px) {
    .mcfly-home-process-work .mcfly-home-process-steps {
        padding: 0.5rem 2rem 2.5rem;
    }
}

@media (min-width: 1280px) {
    .mcfly-home-process-work .mcfly-home-process-steps {
        padding: 0.75rem 2.75rem 3.5rem;
    }
}

.mcfly-home-process-step--web.mcfly-home-process-step {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border-radius: 0.75rem;
    border: 1px solid rgb(203 213 225 / 0.9);
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

@media (min-width: 640px) {
    .mcfly-home-process-step--web.mcfly-home-process-step {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .mcfly-home-process-step--web.mcfly-home-process-step {
        flex-direction: column;
        gap: 0;
        padding: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .mcfly-home-process-step--web.mcfly-home-process-step {
        padding: 1.5rem 1.75rem;
    }
}

.mcfly-home-process-step--web .mcfly-home-process-step-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .mcfly-home-process-step--web .mcfly-home-process-step-head {
        margin-bottom: 0;
    }
}

@media (min-width: 768px) {
    .mcfly-home-process-step--web .mcfly-home-process-step-head {
        margin-bottom: 0.75rem;
    }
}

.mcfly-home-process-step-num {
    display: flex;
    height: 3rem;
    width: 3rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid #334155;
    background: #1e293b;
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

@media (min-width: 1280px) {
    .mcfly-home-process-step-num {
        height: 3.5rem;
        width: 3.5rem;
        font-size: 1rem;
    }
}

.mcfly-home-process-step-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.mcfly-home-process-step-label--close {
    display: none;
}

@media (min-width: 1280px) {
    .mcfly-home-process-step-label--close {
        display: inline;
    }
}

.mcfly-home-process-step--web .mcfly-home-process-step-body {
    min-width: 0;
    flex: 1 1 auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

@media (min-width: 640px) {
    .mcfly-home-process-step--web .mcfly-home-process-step-body {
        border-top: none;
        padding-top: 0;
    }
}

@media (min-width: 768px) {
    .mcfly-home-process-step--web .mcfly-home-process-step-body {
        border-top: none;
        padding-top: 0;
    }
}

.mcfly-home-process-step--web .mcfly-home-process-step-body-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

@media (min-width: 640px) {
    .mcfly-home-process-step--web .mcfly-home-process-step-body-title {
        font-size: 1.125rem;
    }
}

@media (min-width: 1280px) {
    .mcfly-home-process-step--web .mcfly-home-process-step-body-title {
        font-size: 1.25rem;
    }
}

.mcfly-home-process-step--web .mcfly-home-process-step-body-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #475569;
}

@media (min-width: 1280px) {
    .mcfly-home-process-step--web .mcfly-home-process-step-body-text {
        margin-top: 0.75rem;
        font-size: 1rem;
    }
}

.mcfly-home-cctv-card .mcfly-home-cctv-card-foot {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgb(100 116 139);
}

.mcfly-home-cctv-card .mcfly-home-cctv-icon-wrap {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid rgb(255 255 255 / 0.15);
    background: rgb(255 255 255 / 0.05);
    color: #93c5fd;
}

.mcfly-home-cctv-card .mcfly-home-cctv-icon-wrap svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    fill: none;
}

.mcfly-home-cctv-card .mcfly-home-cctv-check-svg,
.mcfly-home-process-rail .mcfly-home-cctv-check-svg {
    margin-top: 0.125rem;
    height: 1.25rem;
    width: 1.25rem;
    flex-shrink: 0;
    color: #60a5fa;
}

/* Promo strip — corporate, low-noise */
.mcfly-home-promo {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: inset 0 -1px 0 rgb(226 232 240 / 0.95);
}

/* Section title accent — single brand line */
.mcfly-home-title-accent {
    display: inline-block;
    height: 3px;
    width: 2.5rem;
    border-radius: 1px;
    background: #1e40af;
    margin-bottom: 0.4rem;
}

/* Home: on-site service delivery — soft band behind one framed card */
.mcfly-home-process {
    background: #f1f5f9;
    position: relative;
}

/* Single white module (header + split inside) */
.mcfly-home-process-frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgb(203 213 225 / 0.95);
    background: #fff;
    box-shadow:
        0 1px 3px rgb(15 23 42 / 0.06),
        0 12px 28px -8px rgb(15 23 42 / 0.08);
}

@media (min-width: 1024px) {
    .mcfly-home-process-frame {
        border-radius: 0.875rem;
    }
}

@media (min-width: 1280px) {
    .mcfly-home-process-frame {
        border-radius: 1rem;
        box-shadow:
            0 1px 3px rgb(15 23 42 / 0.06),
            0 16px 40px -12px rgb(15 23 42 / 0.1);
    }
}

.mcfly-home-process-frame-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-bottom: 1px solid rgb(203 213 225 / 0.9);
    background: #fff;
    padding: 1.75rem 1.5rem;
}

@media (min-width: 768px) {
    .mcfly-home-process-frame-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2.5rem;
        padding: 2rem 2.25rem;
    }
}

@media (min-width: 1280px) {
    .mcfly-home-process-frame-header {
        padding: 2.5rem 3rem 2.5rem 3.5rem;
    }
}

.mcfly-home-process-frame-header-main {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 48rem;
}

.mcfly-home-process-frame-kicker {
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #64748b;
}

.mcfly-home-process-frame-title {
    margin-top: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f172a;
}

@media (min-width: 640px) {
    .mcfly-home-process-frame-title {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .mcfly-home-process-frame-title {
        font-size: 2rem;
        line-height: 1.18;
    }
}

@media (min-width: 1280px) {
    .mcfly-home-process-frame-title {
        font-size: 2.25rem;
    }
}

.mcfly-home-process-frame-lead {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.65;
    color: #475569;
}

@media (min-width: 1024px) {
    .mcfly-home-process-frame-lead {
        font-size: 1.0625rem;
    }
}

@media (min-width: 1280px) {
    .mcfly-home-process-frame-lead {
        font-size: 1.125rem;
    }
}

.mcfly-home-process-frame-lead strong {
    font-weight: 600;
    color: #1e293b;
}

.mcfly-home-process-frame-header-stats {
    flex-shrink: 0;
}

/* Stat pills — no Tailwind dependency */
.mcfly-home-process-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .mcfly-home-process-frame-header-stats .mcfly-home-process-stats {
        justify-content: flex-end;
    }
}

.mcfly-home-process-stat-pill {
    box-sizing: border-box;
    min-width: 8.5rem;
    flex: 1 1 auto;
    border-radius: 0.5rem;
    border: 1px solid rgb(203 213 225 / 0.95);
    background: #fff;
    padding: 0.75rem 1rem;
    text-align: center;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

@media (min-width: 640px) {
    .mcfly-home-process-stat-pill {
        flex: 0 1 auto;
        min-width: 9.5rem;
        text-align: left;
    }
}

@media (min-width: 1280px) {
    .mcfly-home-process-stat-pill {
        min-width: 10.5rem;
        padding: 1rem 1.5rem;
    }
}

.mcfly-home-process-stat-pill .mcfly-home-process-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 1280px) {
    .mcfly-home-process-stat-pill .mcfly-home-process-stat-value {
        font-size: 1.875rem;
    }
}

.mcfly-home-process-stat-pill .mcfly-home-process-stat-value--brand {
    color: #1d4ed8;
}

.mcfly-home-process-stat-pill .mcfly-home-process-stat-label {
    margin-top: 0.125rem;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

@media (min-width: 1280px) {
    .mcfly-home-process-stat-pill .mcfly-home-process-stat-label {
        font-size: 0.75rem;
    }
}

.mcfly-home-process-stat-pill .mcfly-home-process-stat-value--text {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: #1e293b;
}

@media (min-width: 640px) {
    .mcfly-home-process-stat-pill .mcfly-home-process-stat-value--text {
        font-size: 1rem;
    }
}

@media (min-width: 1280px) {
    .mcfly-home-process-stat-pill .mcfly-home-process-stat-value--text {
        font-size: 1.125rem;
    }
}

/* xl+: full-width closing step reads as a summary band */
@media (min-width: 1280px) {
    .mcfly-home-process-step--web.mcfly-home-process-step--wide-footer {
        background: rgb(248 250 252);
    }
}

/* Dark value rail — same surface + type scale as .mcfly-home-cctv-card */
.mcfly-home-process-rail {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 1rem;
    background-color: #0f172a;
    color: #e2e8f0;
    border: 1px solid rgb(51 65 85 / 0.95);
    box-shadow:
        0 0 0 1px rgb(255 255 255 / 0.06) inset,
        0 20px 50px -20px rgb(0 0 0 / 0.45);
}

/* Inside framed module: flush to card edges (outer frame supplies radius) */
.mcfly-home-process-frame .mcfly-home-process-rail {
    border-radius: 0;
    border: none;
    box-shadow: none;
}

@media (max-width: 767px) {
    .mcfly-home-process-frame .mcfly-home-process-rail {
        border-top: 1px solid rgb(203 213 225 / 0.9);
    }
}

.mcfly-home-process-rail::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / 0.04) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
}

.mcfly-home-process-rail-edge {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #3b82f6;
    border-radius: 0 1px 1px 0;
    z-index: 2;
}

.mcfly-home-process-rail-inner {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1.5rem 1.5rem 1.625rem;
}

@media (min-width: 640px) {
    .mcfly-home-process-rail-inner {
        padding: 2rem 2rem 2rem 2.125rem;
    }
}

@media (min-width: 1024px) {
    .mcfly-home-process-rail-inner {
        padding: 2.5rem 2.5rem 2.5rem 2.625rem;
    }
}

.mcfly-home-process-rail-kicker {
    color: rgb(148 163 184);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@media (min-width: 1280px) {
    .mcfly-home-process-rail-kicker {
        font-size: 0.75rem;
    }
}

.mcfly-home-process-rail-title {
    margin-top: 0.75rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
}

@media (min-width: 640px) {
    .mcfly-home-process-rail-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .mcfly-home-process-rail-title {
        font-size: 1.65rem;
    }
}

.mcfly-home-process-rail-lead {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgb(148 163 184);
}

@media (min-width: 1280px) {
    .mcfly-home-process-rail-lead {
        font-size: 1rem;
    }
}

.mcfly-home-process-rail-actions {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 1280px) {
    .mcfly-home-process-rail-actions {
        margin-top: 3rem;
    }
}

.mcfly-home-process-rail-actions a {
    box-sizing: border-box;
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.mcfly-home-process-rail-actions a.mcfly-home-process-rail-btn-primary {
    background: #fff;
    color: #0f172a;
    border: 1px solid rgb(203 213 225 / 0.95);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.12);
}

.mcfly-home-process-rail-actions a.mcfly-home-process-rail-btn-primary:hover {
    background: #f1f5f9;
}

.mcfly-home-process-rail-actions a.mcfly-home-process-rail-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgb(255 255 255 / 0.25);
}

.mcfly-home-process-rail-actions a.mcfly-home-process-rail-btn-secondary:hover {
    border-color: rgb(255 255 255 / 0.4);
    background: rgb(255 255 255 / 0.05);
}

.mcfly-home-process-rail-foot {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgb(100 116 139);
}

@media (min-width: 768px) {
    .mcfly-home-process-rail-foot {
        text-align: left;
    }
}

@media (min-width: 1280px) {
    .mcfly-home-process-rail-foot {
        margin-top: 2rem;
        font-size: 0.875rem;
    }
}

.mcfly-home-process-rail-foot a {
    color: #93c5fd;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgb(96 165 250 / 0.4);
    text-underline-offset: 2px;
}

.mcfly-home-process-rail-foot a:hover {
    color: #fff;
}

/* Workflow column inside frame */
.mcfly-home-process-split--framed .mcfly-home-process-work {
    background: #f8fafc;
    min-width: 0;
}

.mcfly-home-process-work {
    min-width: 0;
}

/* Process map row inside work board */
.mcfly-home-process-map-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 1px solid rgb(203 213 225 / 0.85);
    padding: 1.5rem 1.5rem;
}

@media (min-width: 768px) {
    .mcfly-home-process-map-row {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        padding: 1.5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .mcfly-home-process-map-row {
        padding: 2rem 2.25rem;
    }
}

@media (min-width: 1280px) {
    .mcfly-home-process-map-row {
        padding: 2.25rem 2.75rem;
    }
}

.mcfly-home-process-map-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2563eb;
}

.mcfly-home-process-map-title {
    margin-top: 0.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

@media (min-width: 640px) {
    .mcfly-home-process-map-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 1280px) {
    .mcfly-home-process-map-title {
        font-size: 1.5rem;
    }
}

.mcfly-home-process-map-desc {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #64748b;
}

@media (min-width: 1280px) {
    .mcfly-home-process-map-desc {
        font-size: 1rem;
    }
}

.mcfly-home-process-badge-onsite {
    display: none;
    flex-shrink: 0;
    align-items: center;
    border-radius: 0.25rem;
    border: 1px solid rgb(203 213 225 / 0.95);
    background: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

@media (min-width: 768px) {
    .mcfly-home-process-badge-onsite {
        display: inline-flex;
    }
}

/*
| On-site split — default: stacked (rail first). Framed: flush 2-col from 768px.
*/
.mcfly-home-process-split {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    gap: 2.5rem;
}

.mcfly-home-process-split--framed {
    gap: 0;
}

.mcfly-home-process-split--framed .mcfly-home-process-work {
    border-top: 1px solid rgb(203 213 225 / 0.85);
}

@media (min-width: 768px) {
    .mcfly-home-process-split--framed {
        display: grid;
        grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
        align-items: stretch;
        flex-direction: unset;
    }

    .mcfly-home-process-split--framed .mcfly-home-process-work {
        border-top: none;
        border-right: 1px solid rgb(203 213 225 / 0.72);
    }

    .mcfly-home-process-split--framed > .mcfly-home-process-work,
    .mcfly-home-process-split--framed > .mcfly-home-process-rail {
        min-width: 0;
    }

    .mcfly-home-process-split--framed .mcfly-home-process-rail-inner {
        position: -webkit-sticky;
        position: sticky;
        top: 5.5rem;
    }
}

@media (min-width: 1024px) {
    .mcfly-home-process-split--framed {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    }

    .mcfly-home-process-split--framed .mcfly-home-process-rail-inner {
        top: 7rem;
    }
}

/* Workflow step list: two columns on wide screens (no dependency on xl:grid in Tailwind build) */
.mcfly-home-process-steps {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.mcfly-home-process-steps > li + li {
    margin-top: 1rem;
}

@media (min-width: 1280px) {
    .mcfly-home-process-steps {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 2rem;
    }

    .mcfly-home-process-steps > li + li {
        margin-top: 0;
    }

    .mcfly-home-process-steps > li {
        margin-top: 0;
        margin-bottom: 0;
    }

    .mcfly-home-process-steps > .mcfly-home-process-step--wide-footer {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }

    .mcfly-home-process-steps > .mcfly-home-process-step--wide-footer > .mcfly-home-process-step-head {
        margin-bottom: 0;
    }
}

/* Step cards — left accent colour by position */
.mcfly-home-process-step {
    position: relative;
    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    border-left-width: 3px;
    border-left-style: solid;
}

.mcfly-home-process-step:nth-child(1),
.mcfly-home-process-step:nth-child(2),
.mcfly-home-process-step:nth-child(3),
.mcfly-home-process-step:nth-child(4),
.mcfly-home-process-step:nth-child(5) {
    border-left-color: #1e40af;
}

.mcfly-home-process-step:hover {
    border-color: rgb(203 213 225 / 0.95);
    box-shadow: 0 4px 14px -4px rgb(15 23 42 / 0.08);
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .mcfly-home-process-step {
        transition: none;
    }

    .mcfly-home-process-step:hover {
        transform: none;
    }
}

/* FAQ row polish */
.mcfly-home-faq details {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mcfly-home-faq details:hover {
    border-color: rgb(148 163 184 / 0.65);
}

.mcfly-home-faq details[open] {
    border-color: rgb(100 116 139 / 0.55);
}

/* /services “All services” + /locations area guides: card spacing (works without Vite) */
#mcfly-services-catalog [data-mcfly-svc] article > a,
#mcfly-locations-guides [data-mcfly-loc-card] article > a {
    gap: 1.25rem;
    padding: 1.75rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 640px) {
    #mcfly-services-catalog [data-mcfly-svc] article > a,
    #mcfly-locations-guides [data-mcfly-loc-card] article > a {
        padding: 2rem;
        padding-bottom: 1.75rem;
    }
}

#mcfly-services-catalog [data-mcfly-svc] article > div:last-child,
#mcfly-locations-guides [data-mcfly-loc-card] article > div:last-child {
    padding: 1rem 1.75rem;
}

@media (min-width: 640px) {
    #mcfly-services-catalog [data-mcfly-svc] article > div:last-child,
    #mcfly-locations-guides [data-mcfly-loc-card] article > div:last-child {
        padding: 1.25rem 2rem;
    }
}

#mcfly-services-catalog [data-mcfly-svc-grid],
#mcfly-locations-guides [data-mcfly-loc-grid] {
    gap: 1.5rem;
}

@media (min-width: 640px) {
    #mcfly-services-catalog [data-mcfly-svc-grid],
    #mcfly-locations-guides [data-mcfly-loc-grid] {
        gap: 2rem;
    }
}

/* Mega menus: viewport-centered fixed panel (header backdrop-filter can skew inset-x alignment) */
.mcfly-mega-panel {
    box-sizing: border-box;
    left: 50% !important;
    right: auto !important;
    width: min(calc(100vw - 1.5rem), 80rem);
    max-width: 80rem;
    transform: translate(-50%, 4px);
    transition:
        opacity 200ms ease-out,
        transform 200ms ease-out;
}

.mcfly-mega-inner {
    contain: layout paint;
}

.mcfly-mega-group:hover .mcfly-mega-panel,
.mcfly-mega-group:focus-within .mcfly-mega-panel {
    transform: translate(-50%, 0);
    will-change: transform, opacity;
}

.mcfly-mega-panel::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 16px;
    pointer-events: none;
}

.mcfly-mega-group:hover .mcfly-mega-panel::before,
.mcfly-mega-group:focus-within .mcfly-mega-panel::before {
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .mcfly-mega-panel {
        transition-duration: 0.01ms !important;
        transform: translate(-50%, 0) !important;
    }

    .mcfly-mega-group:hover .mcfly-mega-panel,
    .mcfly-mega-group:focus-within .mcfly-mega-panel {
        will-change: auto;
    }
}

/* Header mega menus (Solutions / Locations) — scrollable columns without blowing page height */
.mcfly-mega-scroll {
    max-height: min(42vh, 22rem);
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding-right: 0.25rem;
}

.mcfly-mega-scroll::-webkit-scrollbar {
    width: 6px;
}

.mcfly-mega-scroll::-webkit-scrollbar-thumb {
    border-radius: 9999px;
    background-color: rgb(148 163 184 / 0.55);
}

.mcfly-mega-scroll:hover::-webkit-scrollbar-thumb {
    background-color: rgb(100 116 139 / 0.6);
}

.mcfly-svc-card-desc {
    line-height: 1.65;
}

@media (min-width: 640px) {
    .mcfly-svc-card-desc {
        font-size: 0.9375rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Contact / Request a quote — corporate layout (Tailwind-safe)              */
/* -------------------------------------------------------------------------- */

.mcfly-contact-page {
    background: #f1f5f9;
}

.mcfly-contact-hero {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 42%, #0f172a 100%);
    color: #fff;
    border-bottom: 1px solid rgb(30 41 59 / 0.9);
}

.mcfly-contact-hero-inner {
    padding-top: 2.5rem;
    padding-bottom: 2.75rem;
}

@media (min-width: 1024px) {
    .mcfly-contact-hero-inner {
        padding-top: 3.25rem;
        padding-bottom: 3.5rem;
    }
}

.mcfly-contact-hero-kicker--after-crumb {
    margin-top: 1.25rem;
}

.mcfly-contact-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgb(255 255 255 / 0.12);
    background: rgb(255 255 255 / 0.06);
    padding: 0.35rem 0.85rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}

.mcfly-contact-hero h1 {
    margin: 1rem 0 0;
    font-family: inherit;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.mcfly-contact-hero-lead {
    margin: 1rem 0 0;
    max-width: 40rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #cbd5e1;
}

.mcfly-contact-hero-badges {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.mcfly-contact-hero-badges span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e2e8f0;
}

.mcfly-contact-hero-badges span::before {
    content: "";
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    margin-right: 0.5rem;
    border-radius: 9999px;
    background: #38bdf8;
    vertical-align: 0.15em;
}

/* Breadcrumbs inside dark hero (component defaults are for light bg) */
.mcfly-contact-hero nav[aria-label="Breadcrumb"] {
    color: #94a3b8;
}

.mcfly-contact-hero nav[aria-label="Breadcrumb"] a {
    color: #7dd3fc !important;
}

.mcfly-contact-hero nav[aria-label="Breadcrumb"] a:hover {
    color: #e0f2fe !important;
}

.mcfly-contact-hero nav[aria-label="Breadcrumb"] .text-slate-400 {
    color: #475569 !important;
}

.mcfly-contact-hero nav[aria-label="Breadcrumb"] span.text-slate-500 {
    color: #e2e8f0 !important;
}

.mcfly-contact-main {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
}

.mcfly-contact-grid {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .mcfly-contact-grid {
        grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1200px) {
    .mcfly-contact-grid {
        grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
        gap: 3rem;
    }
}

.mcfly-contact-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mcfly-contact-card--marketing {
    border-color: #c7d2fe;
    background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 55%, #fff 100%);
    box-shadow:
        0 1px 2px rgb(15 23 42 / 0.04),
        inset 0 1px 0 rgb(255 255 255 / 0.85);
}

.mcfly-contact-card--marketing h2 {
    color: #4338ca;
}

.mcfly-contact-marketing-lead {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #475569;
}

.mcfly-contact-marketing-lead strong {
    color: #334155;
    font-weight: 700;
}

.mcfly-contact-marketing-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mcfly-contact-marketing-list li {
    position: relative;
    margin: 0 0 0.65rem;
    padding-left: 1.35rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #475569;
}

.mcfly-contact-marketing-list li:last-child {
    margin-bottom: 0;
}

.mcfly-contact-marketing-icon {
    position: absolute;
    left: 0;
    top: 0.05rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: #4f46e5;
}

.mcfly-contact-marketing-list a {
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
}

.mcfly-contact-marketing-list a:hover {
    text-decoration: underline;
}

.mcfly-contact-marketing-foot {
    margin: 1rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgb(199 210 254 / 0.65);
    font-size: 0.75rem;
    line-height: 1.5;
    color: #64748b;
}

.mcfly-contact-marketing-foot strong {
    color: #4338ca;
    font-weight: 700;
}

.mcfly-contact-marketing-wa {
    display: inline-flex;
    margin-top: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #047857;
    text-decoration: none;
}

.mcfly-contact-marketing-wa:hover {
    text-decoration: underline;
    color: #065f46;
}

button.mcfly-contact-marketing-wa {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #047857;
    text-align: left;
    cursor: pointer;
}

.mcfly-contact-marketing-wa-hint {
    margin: 0.4rem 0 0;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: #64748b;
}

.mcfly-contact-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.mcfly-contact-card h2 {
    margin: 0 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.mcfly-contact-card p,
.mcfly-contact-card a {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #334155;
}

.mcfly-contact-card a {
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
}

.mcfly-contact-card a:hover {
    text-decoration: underline;
}

.mcfly-contact-card .mcfly-contact-card-meta {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.mcfly-contact-hours {
    margin: 0;
    padding-left: 1.15rem;
    list-style: disc;
}

.mcfly-contact-hours li {
    font-size: 0.875rem;
    color: #475569;
    padding: 0.2rem 0;
}

.mcfly-contact-card > p + p.mcfly-contact-card-meta {
    margin-top: 0.65rem;
}

.mcfly-contact-form-wrap {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1.75rem 1.5rem 2rem;
    box-shadow:
        0 4px 6px -1px rgb(15 23 42 / 0.06),
        0 20px 40px -16px rgb(15 23 42 / 0.12);
}

@media (min-width: 640px) {
    .mcfly-contact-form-wrap {
        padding: 2rem 2.25rem 2.25rem;
    }
}

.mcfly-contact-form-head {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.mcfly-contact-form-head h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.mcfly-contact-form-head p {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #64748b;
}

.mcfly-contact-form-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.mcfly-contact-form-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mcfly-contact-form-section h3 {
    margin: 0 0 1rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #0f172a;
}

.mcfly-contact-field {
    margin-bottom: 1.1rem;
}

.mcfly-contact-field:last-child {
    margin-bottom: 0;
}

.mcfly-contact-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.mcfly-contact-label .mcfly-contact-opt {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #94a3b8;
}

.mcfly-contact-input,
.mcfly-contact-select,
.mcfly-contact-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.65rem 0.9rem;
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #0f172a;
    background: #fff;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.mcfly-contact-input::placeholder,
.mcfly-contact-textarea::placeholder {
    color: #94a3b8;
}

.mcfly-contact-input:hover,
.mcfly-contact-select:hover,
.mcfly-contact-textarea:hover {
    border-color: #94a3b8;
}

.mcfly-contact-input:focus,
.mcfly-contact-select:focus,
.mcfly-contact-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.18);
}

.mcfly-contact-textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.mcfly-contact-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .mcfly-contact-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.1rem;
    }
}

.mcfly-contact-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.mcfly-contact-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.mcfly-contact-wa-gate-error {
    margin-bottom: 0;
}

.mcfly-contact-actions-hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #64748b;
    max-width: 36rem;
}

.mcfly-contact-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: #0f172a;
    cursor: pointer;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.15);
    transition: background 0.15s ease;
}

.mcfly-contact-btn-primary:hover {
    background: #1e293b;
}

.mcfly-contact-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    background: #fff;
    text-decoration: none;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.mcfly-contact-btn-secondary:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

button.mcfly-contact-btn-secondary {
    font-family: inherit;
    cursor: pointer;
}

.mcfly-contact-alert {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    padding: 0.9rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

.mcfly-contact-alert--success {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.mcfly-contact-alert--error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.mcfly-contact-field-error {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #b91c1c;
}

.mcfly-contact-field-hint {
    margin-top: 0.45rem;
    margin-bottom: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
}

.mcfly-contact-field-hint strong {
    color: #475569;
    font-weight: 700;
}

.mcfly-contact-field--maps {
    margin-top: 0.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.mcfly-contact-loc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.mcfly-contact-btn-secondary--sm {
    padding: 0.5rem 0.95rem;
    font-size: 0.8125rem;
}

.mcfly-contact-btn-ghost {
    border-color: transparent;
    background: transparent;
    font-weight: 600;
    color: #64748b;
}

.mcfly-contact-btn-ghost:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.mcfly-contact-loc-status:empty {
    display: none;
}

/* Google Places Autocomplete dropdown above form / modals */
.pac-container {
    z-index: 10050 !important;
}

/* Legal pages (terms, etc.) */
.mcfly-legal-prose {
    font-size: 0.9375rem;
    line-height: 1.65;
}

.mcfly-legal-prose h2 + p,
.mcfly-legal-prose h2 + ul {
    margin-top: 0.75rem;
}

.mcfly-legal-prose p + p {
    margin-top: 0.75rem;
}

.mcfly-legal-prose ul + p,
.mcfly-legal-prose p + ul {
    margin-top: 0.75rem;
}

/* Footer control styled like adjacent policy links */
.mcfly-footer-cookie-settings {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: inherit;
    cursor: pointer;
}

/* Cookie / analytics consent (public layout) */
.mcfly-cookie-consent {
    position: fixed;
    z-index: 10000;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
    pointer-events: none;
}

.mcfly-cookie-consent[hidden] {
    display: none !important;
}

.mcfly-cookie-consent-inner {
    pointer-events: auto;
    max-width: 40rem;
    margin: 0 auto;
    padding: 1rem 1.15rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.06);
}

.mcfly-cookie-consent-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.mcfly-cookie-consent-desc {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #475569;
}

.mcfly-cookie-consent-link {
    font-weight: 600;
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mcfly-cookie-consent-link:hover {
    color: #1d4ed8;
}

.mcfly-cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
    justify-content: flex-end;
}

.mcfly-cookie-consent-btn {
    cursor: pointer;
    border-radius: 0.65rem;
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: inherit;
    border: 2px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mcfly-cookie-consent-btn--primary {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.mcfly-cookie-consent-btn--primary:hover {
    background: #1e293b;
    border-color: #1e293b;
}

.mcfly-cookie-consent-btn--secondary {
    background: #fff;
    color: #334155;
    border-color: #cbd5e1;
}

.mcfly-cookie-consent-btn--secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

#mcfly-whatsapp-fab {
    transition: bottom 0.25s ease, transform 0.2s ease;
}

body.mcfly-cookie-consent-open #mcfly-whatsapp-fab {
    bottom: 7.5rem !important;
}

@media (min-width: 640px) {
    body.mcfly-cookie-consent-open #mcfly-whatsapp-fab {
        bottom: 6.5rem !important;
    }
}

/* —— Live chat: corporate styling (bottom-left; WhatsApp bottom-right) —— */
.mcfly-live-chat-root {
    --mcfly-chat-navy: #0f172a;
    --mcfly-chat-navy-mid: #1e293b;
    --mcfly-chat-accent: #b45309;
    --mcfly-chat-line: #cbd5e1;
    position: fixed;
    z-index: 45;
    bottom: 1.25rem;
    left: 1.25rem;
    font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
    transition: bottom 0.25s ease;
}

body.mcfly-cookie-consent-open .mcfly-live-chat-root {
    bottom: 7.5rem;
}

@media (min-width: 640px) {
    body.mcfly-cookie-consent-open .mcfly-live-chat-root {
        bottom: 6.5rem;
    }
}

.mcfly-live-chat-launcher {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1rem 0.6rem 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.88);
    border-radius: 0.35rem;
    background: var(--mcfly-chat-navy);
    color: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mcfly-live-chat-launcher:hover {
    background: var(--mcfly-chat-navy-mid);
    border-color: #334155;
    transform: translateY(-1px);
}

.mcfly-live-chat-launcher-icon {
    display: flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mcfly-live-chat-panel {
    position: absolute;
    bottom: calc(100% + 0.75rem);
    left: 0;
    width: min(23rem, calc(100vw - 2.5rem));
    max-height: min(34rem, 78vh);
    display: flex;
    flex-direction: column;
    border-radius: 0.35rem;
    background: #fff;
    color: var(--mcfly-chat-navy);
    border: 1px solid var(--mcfly-chat-line);
    box-shadow:
        0 22px 50px rgba(15, 23, 42, 0.2),
        0 0 0 1px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.mcfly-live-chat-panel::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--mcfly-chat-accent) 0%, #d97706 50%, var(--mcfly-chat-accent) 100%);
    flex-shrink: 0;
}

.mcfly-live-chat-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem 0.75rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.mcfly-live-chat-panel-head-text {
    min-width: 0;
}

.mcfly-live-chat-eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.mcfly-live-chat-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mcfly-chat-navy);
}

.mcfly-live-chat-sub {
    margin: 0.25rem 0 0;
    font-size: 0.6875rem;
    color: #64748b;
    line-height: 1.45;
    letter-spacing: 0.02em;
}

.mcfly-live-chat-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    background: transparent;
    color: #64748b;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.mcfly-live-chat-close:hover {
    background: #e2e8f0;
    color: var(--mcfly-chat-navy);
}

.mcfly-live-chat-gate {
    padding: 1rem;
    background: #fff;
}

.mcfly-live-chat-gate-intro {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #475569;
}

.mcfly-live-chat-gate-fields {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mcfly-live-chat-gate-error {
    margin: 0 0 0.65rem;
    padding: 0.45rem 0.55rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.25rem;
}

.mcfly-live-chat-thread {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    background: #fff;
}

.mcfly-live-chat-banner {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.4;
    background: #fffbeb;
    color: #92400e;
    border-bottom: 1px solid #fde68a;
}

.mcfly-live-chat-banner--error {
    background: #fef2f2;
    color: #991b1b;
    border-bottom-color: #fecaca;
}

.mcfly-live-chat-messages {
    flex: 1 1 auto;
    min-height: 9rem;
    max-height: 15rem;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.mcfly-live-chat-msg {
    display: flex;
}

.mcfly-live-chat-msg--visitor {
    justify-content: flex-end;
}

.mcfly-live-chat-msg--other {
    justify-content: flex-start;
}

.mcfly-live-chat-msg-bubble {
    max-width: 90%;
    padding: 0.5rem 0.65rem;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.mcfly-live-chat-msg--visitor .mcfly-live-chat-msg-bubble {
    background: var(--mcfly-chat-navy);
    color: #f8fafc;
    border: 1px solid #020617;
}

.mcfly-live-chat-msg--other .mcfly-live-chat-msg-bubble {
    background: #fff;
    color: #1e293b;
    border: 1px solid var(--mcfly-chat-line);
}

.mcfly-live-chat-msg-bubble .mcfly-live-chat-msg-link {
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}

.mcfly-live-chat-msg--visitor .mcfly-live-chat-msg-bubble .mcfly-live-chat-msg-link {
    color: #bfdbfe;
}

.mcfly-live-chat-msg--visitor .mcfly-live-chat-msg-bubble .mcfly-live-chat-msg-link:hover {
    color: #fff;
}

.mcfly-live-chat-msg--other .mcfly-live-chat-msg-bubble .mcfly-live-chat-msg-link {
    color: #1d4ed8;
    font-weight: 600;
}

.mcfly-live-chat-msg--other .mcfly-live-chat-msg-bubble .mcfly-live-chat-msg-link:hover {
    color: #1e3a8a;
}

.mcfly-live-chat-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mcfly-live-chat-field-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.mcfly-live-chat-input {
    border: 1px solid var(--mcfly-chat-line);
    border-radius: 0.25rem;
    padding: 0.45rem 0.55rem;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
    color: var(--mcfly-chat-navy);
}

.mcfly-live-chat-input:focus {
    outline: 2px solid rgba(180, 83, 9, 0.35);
    outline-offset: 1px;
    border-color: #94a3b8;
}

.mcfly-live-chat-form {
    padding: 0.75rem 1rem 1rem;
    background: #fff;
}

.mcfly-live-chat-textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 3rem;
    max-height: 8rem;
    border: 1px solid var(--mcfly-chat-line);
    border-radius: 0.25rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.8125rem;
    font-family: inherit;
    color: var(--mcfly-chat-navy);
}

.mcfly-live-chat-textarea:focus {
    outline: 2px solid rgba(180, 83, 9, 0.35);
    outline-offset: 1px;
    border-color: #94a3b8;
}

.mcfly-live-chat-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.55rem;
}

.mcfly-live-chat-btn {
    border-radius: 0.25rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
}

.mcfly-live-chat-btn--block {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.6rem 1rem;
}

.mcfly-live-chat-btn--primary {
    background: var(--mcfly-chat-navy);
    color: #f8fafc;
    border-color: var(--mcfly-chat-navy);
}

.mcfly-live-chat-btn--primary:hover {
    background: var(--mcfly-chat-navy-mid);
    border-color: var(--mcfly-chat-navy-mid);
}

.mcfly-live-chat-btn--ghost {
    background: #fff;
    color: #475569;
    border-color: var(--mcfly-chat-line);
}

.mcfly-live-chat-btn--ghost:hover {
    background: #f8fafc;
    color: var(--mcfly-chat-navy);
}

.mcfly-live-chat-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 380px) {
    .mcfly-live-chat-launcher-label {
        display: none;
    }

    .mcfly-live-chat-launcher {
        padding: 0.6rem 0.65rem;
    }
}

/*
| Mobile nav: right drawer + full-screen backdrop.
| Only render when [open] (display:none when closed) — avoids Safari/details bugs and
| keeps fixed positioning relative to the viewport (header must not use backdrop-filter).
*/
@keyframes mcfly-mobile-nav-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mcfly-mobile-nav-sheet-in {
    from {
        transform: translate3d(105%, 0, 0);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

details.mcfly-mobile-nav:not([open]) > .mcfly-mobile-nav-backdrop,
details.mcfly-mobile-nav:not([open]) > .mcfly-mobile-nav-sheet {
    display: none !important;
}

details.mcfly-mobile-nav[open] > .mcfly-mobile-nav-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 9998;
    margin: 0;
    border: 0;
    padding: 0;
    background: rgb(15 23 42 / 0.45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: mcfly-mobile-nav-backdrop-in 0.22s ease forwards;
}

details.mcfly-mobile-nav[open] > .mcfly-mobile-nav-sheet {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    z-index: 9999;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    left: auto;
    width: min(20.5rem, calc(100vw - 1.5rem));
    overflow: hidden;
    margin: 0;
    border-radius: 1rem 0 0 1rem;
    border: 1px solid rgb(226 232 240 / 0.95);
    background: #fff;
    box-shadow: -12px 0 48px rgb(15 23 42 / 0.14);
    animation: mcfly-mobile-nav-sheet-in 0.3s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.mcfly-mobile-nav-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.mcfly-mobile-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: 0;
    padding: 0;
    background: rgb(241 245 249);
    color: rgb(51 65 85);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.mcfly-mobile-nav-close:hover {
    background: rgb(226 232 240);
    color: rgb(15 23 42);
}

.mcfly-mobile-nav-close:focus-visible {
    outline: 2px solid rgb(37 99 235);
    outline-offset: 2px;
}
