/* Shared UX & image styles — black & white theme */

:root {
    --theme-bg: #ffffff;
    --theme-text: #000000;
    --theme-muted: #333333;
    --theme-border: #000000;
    --theme-surface: #f5f5f5;
    --theme-btn-bg: #000000;
    --theme-btn-hover: #333333;
    --theme-btn-text: #ffffff;
}

body {
    background-color: var(--theme-bg);
    color: var(--theme-text);
}

/* ── 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: var(--theme-surface);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
}

.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 #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-height: 135px;
    object-fit: contain;
}

.installation-graphic {
    flex: 1;
    background: var(--theme-surface);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    border: 1px solid #e5e5e5;
    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: var(--theme-text);
    margin-bottom: 0.5rem;
}

.brand-showcase .subtitle {
    text-align: center;
    color: var(--theme-muted);
    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 #e5e5e5;
    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, 0, 0, 0.12);
    border-color: var(--theme-border);
}

.brand-card img {
    max-height: 100px;
    object-fit: contain;
}

.brand-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-text);
}

/* ── Service cards with images ── */
.service-item-enhanced {
    background: #fff;
    border: 1px solid #e5e5e5;
    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: var(--theme-border);
}

.service-thumb-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background: var(--theme-surface);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid #e5e5e5;
}

.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: var(--theme-surface);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #e5e5e5;
    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: var(--theme-text);
    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 var(--theme-border);
    color: var(--theme-text);
    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 #e5e5e5;
}

.app-preview img {
    width: 100%;
    display: block;
}

/* ── Footer ── */
.site-footer {
    background: var(--theme-bg);
    color: var(--theme-text);
    border-top: 2px solid var(--theme-border);
}

.site-footer h3,
.site-footer h4 {
    color: var(--theme-text);
}

.site-footer a {
    color: var(--theme-muted);
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--theme-text);
}

.footer-bottom {
    border-top: 1px solid #e5e5e5;
    padding-top: 1.5rem;
    margin-top: 1rem;
    text-align: center;
    color: var(--theme-muted);
    font-size: 0.875rem;
}

.footer-disclaimer {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #666;
    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: var(--theme-btn-bg);
    color: var(--theme-btn-text);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    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: var(--theme-btn-hover);
}

/* ── 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: #fff;
        color: #000;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.75rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        border-top: 1px solid #e5e5e5;
    }

    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;
    background: #000;
    color: #fff;
}

.page-hero-with-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.page-hero-with-image .hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: grayscale(100%);
}

.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 var(--theme-border);
    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: #ccc;
    transition: background 0.3s, transform 0.3s;
}

.setup-progress-dot.active {
    background: var(--theme-text);
    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);
    border: 1px solid #e5e5e5;
    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: var(--theme-text);
    margin-bottom: 0.5rem;
}

.lead-gate-header p {
    color: var(--theme-muted);
    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: var(--theme-text);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.lead-gate-form input,
.lead-field-inline input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--theme-text);
    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: var(--theme-border);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.lead-gate-submit {
    width: 100%;
    background: var(--theme-btn-bg);
    color: var(--theme-btn-text);
    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: var(--theme-btn-hover);
    transform: translateY(-1px);
}

.lead-gate-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.lead-gate-trust {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.required {
    color: var(--theme-text);
}

.lead-field-inline input.has-content,
.printer-setup-form input.has-content {
    border-color: var(--theme-border);
}

/* ── Global B&W overrides for Tailwind utility classes ── */
nav.bg-blue-600,
nav.bg-jet-black,
nav.bg-red-600 {
    background-color: #fff !important;
    color: #000 !important;
    border-bottom: 2px solid #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

nav.bg-blue-600 a,
nav.bg-jet-black a,
nav.bg-red-600 a {
    color: #000 !important;
}

nav.bg-blue-600 a:hover,
nav.bg-jet-black a:hover,
nav.bg-red-600 a:hover,
nav a.hover\:text-fiery-red:hover {
    color: #333 !important;
}

.bg-blue-600:not(nav),
section.bg-blue-600,
.bg-fiery-red,
.bg-red-600 {
    background-color: #000 !important;
    color: #fff !important;
}

.text-blue-600,
.text-fiery-red {
    color: #000 !important;
}

.border-fiery-red,
.focus\:border-fiery-red:focus {
    border-color: #000 !important;
}

.hover\:border-fiery-red:hover {
    border-color: #000 !important;
}

.hover\:bg-fiery-red:hover,
.hover\:bg-red-700:hover {
    background-color: #333 !important;
}

.bg-gray-100 {
    background-color: #f5f5f5 !important;
}

footer.bg-jet-black {
    background-color: #fff !important;
    color: #000 !important;
    border-top: 2px solid #000;
}

footer.bg-jet-black h3,
footer.bg-jet-black h4 {
    color: #000 !important;
}

footer.bg-jet-black .text-gray-400 {
    color: #333 !important;
}

footer.bg-jet-black a:hover {
    color: #000 !important;
}

footer.bg-jet-black .border-gray-800 {
    border-color: #e5e5e5 !important;
}

.w-12.bg-blue-600,
.w-20.bg-blue-600,
.hidden.md\:block.bg-blue-600 {
    background-color: #000 !important;
}

.text-blue-600.font-bold {
    color: #000 !important;
}

.bg-blue-600.card,
.card.bg-blue-600 {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.bg-blue-600.card h3,
.card.bg-blue-600 h3 {
    color: #fff !important;
}

.bg-blue-600.card label,
.card.bg-blue-600 label {
    color: #fff !important;
}
