/* Shared UX & image styles for Printer Setup */

/* ── Images ── */
.hero-image-main,
.hero-image-stack img,
.installation-img,
.service-thumb,
.brand-card img,
.trust-banner-img,
.page-hero-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-graphics {
    flex: 1;
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.hero-image-main {
    flex: 1.2;
    background: linear-gradient(145deg, #f0f7ff 0%, #e8f4f8 100%);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.12);
    border: 1px solid #b3d9e6;
}

.hero-image-main img {
    max-height: 280px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.hero-image-stack {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-image-stack img {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-height: 135px;
    object-fit: contain;
}

.installation-graphic {
    flex: 1;
    background: linear-gradient(145deg, #f8fafc 0%, #f0f4f8 100%);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.installation-img {
    max-height: 260px;
    border-radius: 8px;
}

/* ── Brand showcase ── */
.brand-showcase {
    margin: 2.5rem 0;
}

.brand-showcase h2 {
    text-align: center;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.brand-showcase .subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
}

.brand-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
    border-color: #0066cc;
}

.brand-card img {
    max-height: 100px;
    object-fit: contain;
}

.brand-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

/* ── Service cards with images ── */
.service-item-enhanced {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-item-enhanced:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #0066cc;
}

.service-thumb-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background: #f0f7ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid #dbeafe;
}

.service-thumb {
    max-height: 56px;
    max-width: 56px;
}

.service-item-enhanced h3::before {
    content: none;
}

/* ── Trust banner ── */
.trust-banner {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #b3d9e6;
    flex-wrap: wrap;
}

.trust-banner-img-wrap {
    flex: 0 0 280px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.trust-banner-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.trust-banner-content {
    flex: 1;
    min-width: 260px;
}

.trust-banner-content h3 {
    color: #0066cc;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.trust-pill {
    background: #fff;
    border: 1px solid #0066cc;
    color: #0066cc;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── App preview ── */
.app-preview {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
}

.app-preview img {
    width: 100%;
    display: block;
}

/* ── Footer fix ── */
.site-footer {
    background: #111827;
    color: #fff;
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
}

.site-footer a {
    color: #9ca3af;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #dc2626;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    margin-top: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-disclaimer {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ── Scroll to top ── */
.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #0052a3;
}

/* ── Mobile nav improvements ── */
@media (max-width: 767px) {
    #mobileMenu.mobile-open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: inherit;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.75rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav .container {
        position: relative;
    }

    .hero-graphics {
        flex-direction: column;
    }

    .hero-image-main img {
        max-height: 200px;
    }

    .hero-image-stack {
        flex-direction: row;
    }

    .hero-image-stack img {
        max-height: 100px;
    }

    .trust-banner {
        flex-direction: column;
        text-align: center;
    }

    .trust-banner-img-wrap {
        flex: none;
        width: 100%;
    }

    .trust-pills {
        justify-content: center;
    }

    .service-item-enhanced {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ── Page hero with image (sub-pages) ── */
.page-hero-with-image {
    position: relative;
    overflow: hidden;
}

.page-hero-with-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(17, 24, 39, 0.9) 100%);
    z-index: 1;
}

.page-hero-with-image .hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.page-hero-with-image .hero-content-wrap {
    position: relative;
    z-index: 2;
}

/* ── Smooth focus for forms ── */
.printer-model-input:focus-visible,
.quick-setup-btn:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* ── Step progress indicator ── */
.setup-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.setup-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: background 0.3s, transform 0.3s;
}

.setup-progress-dot.active {
    background: #0066cc;
    transform: scale(1.3);
}

/* ── Lead capture gate ── */
.lead-gate-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lead-gate-overlay.active {
    display: flex;
}

body.lead-pending {
    overflow: hidden;
}

body.lead-pending > *:not(.lead-gate-overlay):not(script) {
    pointer-events: none;
    user-select: none;
}

body.lead-pending #tawk-bubble-container,
body.lead-pending iframe[title*="chat"] {
    display: none !important;
    visibility: hidden !important;
}

.lead-gate-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 440px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: leadSlideIn 0.4s ease-out;
}

@keyframes leadSlideIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.lead-gate-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.lead-gate-icon {
    margin: 0 auto 1rem;
    object-fit: contain;
}

.lead-gate-header h2 {
    font-size: 1.5rem;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.lead-gate-header p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.lead-gate-form .lead-field,
.lead-field-inline {
    margin-bottom: 1rem;
    animation: leadFieldReveal 0.3s ease-out;
}

@keyframes leadFieldReveal {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.lead-gate-form label,
.lead-field-inline label {
    display: block;
    font-weight: 700;
    color: #111;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.lead-gate-form input,
.lead-field-inline input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.lead-gate-form input:focus,
.lead-field-inline input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.lead-gate-submit {
    width: 100%;
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.15s;
}

.lead-gate-submit:hover:not(:disabled) {
    background: #0052a3;
    transform: translateY(-1px);
}

.lead-gate-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.lead-gate-trust {
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.required {
    color: #dc2626;
}

.lead-field-inline input.has-content,
.printer-setup-form input.has-content {
    border-color: #0066cc;
}
