:root {
    --color-primary: #1a56db;
    --color-primary-dark: #123a9c;
    --color-dark: #1a1f2b;
    --color-text: #333c47;
    --color-muted: #6b7280;
    --color-bg-alt: #f5f7fb;
    --color-border: #e3e7ee;
    --radius: 10px;
    --max-width: 1140px;
    font-size: 16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background: #fff;
}

h1, h2, h3, h4 { color: var(--color-dark); line-height: 1.25; margin-top: 0; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.7rem; margin-top: 2.5rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}
.logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-dark);
}
.logo:hover { text-decoration: none; }
.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}
.main-nav a.active,
.main-nav a:hover { color: var(--color-primary); text-decoration: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    display: block;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-bg-alt), #eef2fb);
    padding: 64px 0;
}
.hero .container { max-width: 780px; text-align: center; }
.hero p.lead { font-size: 1.15rem; color: var(--color-muted); }
.btn {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    margin-top: 8px;
}
.btn:hover { background: var(--color-primary-dark); text-decoration: none; }
.btn-outline {
    display: inline-block;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    margin-top: 8px;
}
.btn-outline:hover { background: var(--color-bg-alt); text-decoration: none; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--color-bg-alt); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    background: #fff;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--color-muted); margin-bottom: 12px; }
.card a { font-weight: 600; font-size: 0.9rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; }
.steps li {
    counter-increment: step;
    position: relative;
    padding: 12px 0 12px 48px;
    border-bottom: 1px solid var(--color-border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.steps li strong { display: block; margin-bottom: 2px; }

.faq dt { font-weight: 600; margin-top: 18px; color: var(--color-dark); }
.faq dd { margin: 6px 0 0; color: var(--color-muted); }

.cta-banner {
    background: var(--color-dark);
    color: #fff;
    text-align: center;
    padding: 48px 0;
}
.cta-banner h2 { color: #fff; margin-top: 0; }
.cta-banner p { color: #c9d0dc; }

/* Forms */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
input, textarea, select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}
textarea { resize: vertical; min-height: 130px; }
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.alert-success { background: #e6f4ea; color: #1e7d34; border: 1px solid #b9e3c6; }
.alert-error { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; }

/* Footer */
.site-footer {
    background: var(--color-dark);
    color: #c9d0dc;
    margin-top: 40px;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    padding: 48px 0 24px;
}
.footer-col h3, .footer-col h4 { color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #c9d0dc; }
.footer-col a:hover { color: #fff; }
.footer-disclaimer {
    border-top: 1px solid #2c3341;
    padding: 18px 0;
    background: #14181f;
}
.footer-disclaimer p {
    margin: 0;
    font-size: 0.8rem;
    color: #8b93a3;
    text-align: center;
    line-height: 1.5;
}
.footer-bottom {
    border-top: 1px solid #2c3341;
    padding: 16px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* Breadcrumb / intro */
.page-intro { padding: 44px 0 8px; }
.page-intro p.lead { color: var(--color-muted); font-size: 1.1rem; }

@media (max-width: 960px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        width: 100%;
        border-top: 1px solid var(--color-border);
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 12px 0; }
    .main-nav li { padding: 8px 20px; }
    .header-inner { flex-wrap: wrap; }
    h1 { font-size: 1.75rem; }
}

/* Digital Solutions page additions */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}
.btn-secondary {
    background: transparent;
    border: 2px solid currentColor;
    margin-left: 0.75rem;
}
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    text-align: center;
}
.stat-num {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
}
.stat-label {
    display: block;
    font-size: 0.95rem;
    opacity: 0.8;
}
.checklist {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}
.checklist li {
    padding-left: 1.5rem;
    position: relative;
}
.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    font-weight: 700;
}
.steps-grid .step-num {
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.4;
    display: block;
    margin-bottom: 0.25rem;
}
.numbered-steps {
    padding-left: 1.25rem;
}
.numbered-steps li {
    margin-bottom: 0.6rem;
}
.tip {
    margin-top: 1.5rem;
    font-style: italic;
    opacity: 0.85;
}
.faq-item {
    margin-bottom: 1.5rem;
}
.faq-item h3 {
    margin-bottom: 0.35rem;
}

/* ===== Interactive: FAQ accordion ===== */
.js .faq-item h3 {
    cursor: pointer;
    position: relative;
    padding-right: 1.75rem;
    user-select: none;
}
.js .faq-item h3::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-weight: 700;
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}
.js .faq-item.open h3::after {
    transform: rotate(45deg);
}
.js .faq-item p {
    display: none;
    padding-top: 0.5rem;
}
.js .faq-item.open p {
    display: block;
}

.js dl.faq dt {
    cursor: pointer;
    position: relative;
    padding-right: 1.75rem;
    font-weight: 600;
    user-select: none;
}
.js dl.faq dt::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-weight: 700;
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}
.js dl.faq dt.open::after {
    transform: rotate(45deg);
}
.js dl.faq dd {
    display: none;
    margin: 0.35rem 0 1rem;
}
.js dl.faq dt.open + dd {
    display: block;
}

/* ===== Interactive: step-by-step wizard ===== */
.js ol.wizard-list > li {
    display: none;
    padding: 1rem 1.25rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    list-style: none;
}
.js ol.wizard-list {
    padding-left: 0;
}
.js ol.wizard-list > li.wizard-current {
    display: block;
}
/* CSS counters (and native <ol> numbering) skip display:none siblings, so the
   old circular step numbers would show "1" for every visible wizard step.
   Disable them here; JS injects a correct .wizard-step-badge instead. */
.js ol.wizard-list.steps li::before {
    content: none;
}
.wizard-step-badge {
    display: block;
    width: max-content;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
}
.wizard-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}
.wizard-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.95rem;
}
.wizard-btn:hover:not(:disabled) {
    background: var(--color-primary-dark);
}
.wizard-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.wizard-progress {
    font-size: 0.9rem;
    opacity: 0.75;
}

/* ===== Interactive: sticky CTA ===== */
.sticky-cta {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
}
.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.sticky-cta:hover {
    background: var(--color-primary-dark);
}
@media (max-width: 600px) {
    .sticky-cta {
        bottom: 0.85rem;
        right: 0.85rem;
        padding: 0.7rem 1.1rem;
        font-size: 0.9rem;
    }
}

/* ===== Interactive: filter/tab buttons (services grid, connect tabs) ===== */
.filter-tabs {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}
.js .filter-tabs {
    display: flex;
}
.filter-tab {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-tab:hover {
    border-color: var(--color-primary);
}
.filter-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.js .card.filtered-out {
    display: none;
}

/* ===== Interactive: project estimate calculator ===== */
.estimator-note {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0;
}


/* Without JS, show a plain fallback message instead of a dead tool */

.ts-disclaimer {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* ===== Global image responsiveness ===== */
img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Contextual hero/intro image layout ===== */
.hero-flex,
.intro-flex {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    text-align: left;
}
.hero-flex .hero-text,
.intro-flex .intro-text {
    flex: 1 1 360px;
    min-width: 0;
}
.hero-flex .hero-image,
.intro-flex .intro-image {
    flex: 0 0 220px;
    min-width: 0;
    max-width: 220px;
}
.hero-flex .hero-image img,
.intro-flex .intro-image img {
    width: 100%;
    height: auto;
}
.hero.has-image .container {
    max-width: var(--max-width);
    text-align: left;
}
@media (max-width: 900px) {
    .hero-flex,
    .intro-flex {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1.5rem;
    }
    .hero-flex .hero-image,
    .intro-flex .intro-image {
        max-width: 160px;
        margin: 0 auto;
    }
}

/* ===== Broader responsive tuning ===== */
@media (max-width: 960px) {
    section { padding: 44px 0; }
    .hero { padding: 48px 0; }
    .cta-banner { padding: 36px 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}
@media (max-width: 600px) {
    section { padding: 34px 0; }
    .hero { padding: 36px 0; }
    .cta-banner { padding: 28px 0; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    .container { padding: 0 16px; }
    .stat-num { font-size: 1.75rem; }
    .wizard-controls { flex-wrap: wrap; justify-content: center; }
    .wizard-controls .wizard-progress { order: -1; flex-basis: 100%; text-align: center; margin-bottom: 0.4rem; }
    .btn-secondary { margin-left: 0; margin-top: 0.5rem; display: inline-block; }
}
@media (max-width: 380px) {
    h1 { font-size: 1.4rem; }
    .btn, .btn-outline, .btn-secondary { padding: 10px 18px; font-size: 0.9rem; }
}

/* ===== Blog ===== */
.article {
    max-width: 720px;
}
.article h2 {
    margin-top: 2rem;
}
.blog-meta {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}
.blog-card .blog-meta {
    margin-bottom: 0.5rem;
}
.blog-tag {
    display: inline-block;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}
.article-cta {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}
.article-cta p:last-child { margin-bottom: 0; }
.article-cta ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-cta ul li {
    margin-bottom: 6px;
}
.article-cta ul li:last-child { margin-bottom: 0; }

/* ===== Related links cards (setup guides + blog cross-links) ===== */
.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.card ul li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}
.card ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.card ul a {
    font-weight: 500;
    font-size: 0.92rem;
}

/* --- Store additions --- */
.product-grid { align-items: stretch; }
.product-card { position: relative; display: flex; flex-direction: column; }
.product-card img { width: 100%; height: auto; border-radius: 8px; }
.product-type { color: #6b7280; font-size: 0.85rem; margin: 0.75rem 0 0.25rem; }
.product-card h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.product-card h3 a { text-decoration: none; }
.rating { color: #f59e0b; margin: 0 0 0.5rem; }
.price strong { font-size: 1.25rem; }
.price s { color: #9ca3af; margin-left: 0.5rem; }
.badge { position: absolute; top: 10px; left: 10px; background: #dc2626; color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; z-index: 1; }
.brand-card h3 { font-size: 1.4rem; }
.product-card .btn { margin-top: auto; }
.buy-row { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; }
.buy-row input { width: 70px; padding: 0.5rem; }
.product-price strong { font-size: 1.75rem; }
.cart-link { font-weight: 700; }
.cart-count { background: #dc2626; color: #fff; border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.8rem; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cart-table th, .cart-table td { text-align: left; padding: 0.75rem; border-bottom: 1px solid #e5e7eb; }
.cart-table input { width: 60px; padding: 0.35rem; }
.cart-summary { max-width: 320px; margin-left: auto; }
.cart-summary p { display: flex; justify-content: space-between; margin: 0.4rem 0; }
.cart-summary .btn { width: 100%; margin-top: 0.75rem; }
.remove-btn { background: none; border: none; color: #dc2626; cursor: pointer; font-size: 1.1rem; }
.filter-tabs { margin-top: 1.25rem; }
.added-flash { outline: 2px solid #16a34a; }

/* --- Real product photos --- */
.product-card img { object-fit: contain; height: 200px; width: 100%; background: #fff; }
.intro-image img { object-fit: contain; max-height: 300px; width: 100%; background: #fff; }

/* --- Outline button override: when combined with .btn, keep ghost style --- */
.btn.btn-outline {
    background: transparent;
    color: var(--color-primary, #1a56db);
    border: 2px solid var(--color-primary, #1a56db);
    margin-left: 0.5rem;
}
.btn.btn-outline:hover {
    background: var(--color-primary, #1a56db);
    color: #fff;
}

.btn.btn-outline:hover { background: #1a56db !important; color: #fff !important; }
.hero-photos { display: flex; gap: 16px; align-items: center; justify-content: center; }
.hero-photos img { border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-width: 46%; height: auto; object-fit: contain; }
@media (max-width: 720px) { .hero-photos { flex-direction: column; } .hero-photos img { max-width: 80%; } }
