/* =============================================================
   components.css — Shared components used across 2+ pages
   ============================================================= */

/* ── Side Navigation Dots ─────────────────────────────────── */
#sidenav {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.sn-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.25s;
    cursor: pointer;
    position: relative;
}
.sn-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "DM Mono", monospace;
    font-size: 7px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--bg);
    padding: 3px 8px;
    border-radius: 2px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}
.sn-dot:hover::after {
    opacity: 1;
}
.sn-dot.active {
    background: var(--accent);
    transform: scale(1.5);
}
@media (max-width: 960px) {
    #sidenav {
        display: none;
    }
}

/* ── Marquee ──────────────────────────────────────────────── */
.marquee {
    overflow: hidden;
    border-top: 1.5px solid var(--border);
    border-bottom: 1.5px solid var(--border);
    background: var(--card);
    padding: 11px 0;
    transition:
        background 0.35s,
        border-color 0.35s;
}
.marquee-t,
.mq-t {
    display: inline-flex;
    gap: 22px;
    white-space: nowrap;
    animation: roll 28s linear infinite;
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.marquee-t span,
.mq-t span {
    color: var(--ink);
    opacity: 0.55;
    transition: color 0.15s;
}
.marquee-t .acc,
.mq-t .acc {
    color: var(--accent) !important;
    opacity: 1;
    font-weight: 500;
}
[data-theme="dark"] .marquee-t span,
[data-theme="dark"] .mq-t span {
    color: var(--ink);
    opacity: 0.55;
}
@keyframes roll {
    to {
        transform: translateX(-50%);
    }
}

/* ── Filter Bar (shared: blogs, products, projects) ────────── */
.fbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.fbar-lbl {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 4px;
}
.ftag {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 7px 13px;
    border-radius: 3px;
    border: 1.5px solid var(--border);
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    transition: all 0.18s;
}
.ftag:hover {
    border-color: var(--ink);
    color: var(--ink);
}
.ftag.on {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}
.fsearch {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid var(--border);
    border-radius: 3px;
    padding: 5px 12px;
    margin-left: auto;
    transition: border-color 0.18s;
}
.fsearch:focus-within {
    border-color: var(--ink);
}
.fsearch svg {
    width: 13px;
    height: 13px;
    color: var(--muted);
    flex-shrink: 0;
}
.fsearch input {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--ink);
    width: 160px;
}
.fsearch input::placeholder {
    color: var(--muted);
}
@media (max-width: 720px) {
    .fsearch {
        display: none;
    }
}

/* ── Pagination buttons (blogs, archive lists) ─────────────── */
.plist-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 0 0.5rem;
    flex-wrap: wrap;
}
.pp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition:
        background 0.18s,
        color 0.18s,
        border-color 0.18s;
}
.pp-btn:hover {
    background: var(--card);
    color: var(--ink);
}
.pp-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}
.pp-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.pp-info {
    font-size: 0.8rem;
    color: var(--muted);
    padding: 0 0.5rem;
}

/* ── Hero override (accent bg, used by services, products, projects) */
.hero-accent-bg {
    background: var(--accent) !important;
}
.hero {
    min-height: auto !important;
}
.hero-body {
    min-height: 420px;
}

/* ── Page header accent (contact, blogs) ─────────────────── */
.page-header#hero {
    background: var(--accent);
}
.page-header.accent {
    background: var(--accent);
}

/* ── SVC Hi Card (index sidebar widget) ─────────────────── */
.svc-hi-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition:
        border-color 0.2s,
        background 0.3s;
}
.svc-hi-card:hover {
    border-color: var(--ink);
}
.svc-hi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}
.svc-hi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px 11px;
    border-bottom: 1px solid var(--border);
}
.svc-hi-title {
    font-family: "DM Serif Display", serif;
    font-size: 15px;
    line-height: 1;
}
.svc-hi-all {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}
.svc-hi-all:hover {
    color: var(--accent);
}
.svc-hi-list {
    padding: 4px 0;
}
.svc-hi-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    transition: background 0.15s;
}
.svc-hi-row:not(:last-child) {
    border-bottom: 1px solid var(--border);
}
.svc-hi-row:hover {
    background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.svc-hi-ico {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--accent) 12%, var(--bg));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.svc-hi-ico svg {
    width: 14px;
    height: 14px;
}
.svc-hi-text {
    flex: 1;
    min-width: 0;
}
.svc-hi-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.svc-hi-desc {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}
.svc-hi-arr {
    font-family: "DM Mono", monospace;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    flex-shrink: 0;
    transition:
        color 0.15s,
        transform 0.15s;
    display: inline-block;
}
.svc-hi-row:hover .svc-hi-arr {
    color: var(--accent);
    transform: translateX(3px);
}

/* ── FAQ accordion (contact page style) ──────────────────── */
.cq-section {
    border-top: 1.5px solid var(--border);
    position: relative;
    z-index: 1;
}
.cq-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 36px 72px;
}
.cq-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}
.cq-label {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cq-label::before {
    content: "";
    width: 16px;
    height: 1px;
    background: var(--accent);
}
.cq-title {
    font-family: "DM Serif Display", serif;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.7px;
    line-height: 1;
    color: var(--ink);
}
.cq-title em {
    font-style: italic;
}
.cq-note {
    font-family: "DM Mono", monospace;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.3px;
    text-align: right;
    max-width: 200px;
    line-height: 1.6;
}
.cq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cq-item {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    margin-bottom: -1.5px;
    overflow: hidden;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    background: var(--bg);
    position: relative;
    z-index: 1;
}
.cq-item:hover {
    border-color: var(--muted);
    z-index: 2;
}
.cq-item.open {
    border-color: var(--accent);
    z-index: 3;
    box-shadow: 0 2px 16px var(--shadow);
}
.cq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    font-family: "Outfit", sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}
.cq-q:hover {
    background: var(--card);
}
.cq-num {
    font-family: "DM Mono", monospace;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--muted);
    min-width: 24px;
    transition: color 0.2s;
}
.cq-item.open .cq-num {
    color: var(--accent);
}
.cq-qtxt {
    flex: 1;
}
.cq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s;
}
.cq-icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--muted);
    transition:
        transform 0.25s,
        stroke 0.2s;
}
.cq-item.open .cq-icon {
    border-color: var(--accent);
    background: var(--accent);
}
.cq-item.open .cq-icon svg {
    transform: rotate(45deg);
    stroke: #fff;
}
.cq-a {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.32s ease,
        padding 0.32s ease;
    padding: 0 24px 0 64px;
}
.cq-item.open .cq-a {
    max-height: 260px;
    padding: 0 24px 22px 64px;
}
@media (max-width: 960px) {
    .cq-inner {
        padding: 44px 20px 56px;
    }
    .cq-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .cq-note {
        text-align: left;
        max-width: 100%;
    }
    .cq-q {
        padding: 18px;
    }
    .cq-a {
        padding: 0 18px 0 52px;
    }
    .cq-item.open .cq-a {
        padding: 0 18px 20px 52px;
    }
}

/* ── Contact sidebar benefit grid scoping ─────────────────── */
.contact-sidebar .sb-benefit-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 2px;
}
.contact-sidebar .sb-benefit-grid .benefit-card {
    padding: 14px 13px;
    gap: 6px 10px;
    border-radius: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}
.contact-sidebar .sb-benefit-grid .bc-ico {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 7px;
    margin-bottom: 0;
}
.contact-sidebar .sb-benefit-grid .bc-ico svg {
    width: 15px;
    height: 15px;
}
.contact-sidebar .sb-benefit-grid .bc-title {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
}
.contact-sidebar .sb-benefit-grid .bc-desc {
    flex-basis: 100%;
    font-size: 12px;
    line-height: 1.55;
    margin-top: 2px;
}
@media (max-width: 720px) {
    .contact-sidebar .sb-benefit-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Services hero override ───────────────────────────────── */
.svc-hero-overrides .hero {
    background: var(--accent);
}
.svc-hero-overrides .hero-body {
    min-height: 420px;
}
