/*
 * niclab.css
 * Site-wide component styles for niclab.com
 * Shared across index.html, contact.php, visualizer.html
 */

/* ── Base ── */
body {
    font-family: system-ui, sans-serif;
    overflow-x: hidden;
}

/* ── Credentials section ── */
.cred-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #d97706;
    border-radius: 10px;
    padding: 20px 24px;
    min-width: 0;
    overflow: hidden;
}
.cred-icon {
    font-size: 1.8rem;
    color: #d97706;
    margin-bottom: 10px;
}
.cred-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 4px;
}
.cred-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 6px;
}
.cred-number {
    font-size: 0.8rem;
    color: #64748b;
    font-family: monospace;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    word-break: break-all;
}

/* ── Credentials grid ── */
.cred-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .cred-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── About stats ── */
.stat-card {
    border-left: 4px solid #d97706;
    padding-left: 20px;
}
.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3a5f;
    line-height: 1;
}
.stat-lbl {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 4px;
}

/* ── Building type badges ── */
.btype-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f4ff;
    border: 1px solid #c7d2fe;
    color: #3730a3;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 99px;
}

/* ── Service Cards ── */
.svc-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8e4de;
    border-left: 5px solid #1e3a5f;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.svc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(30,58,95,0.13);
}

/* Category accent colours */
.svc-row1              { border-left-color: #d97706; }
.svc-row1:hover        { border-left-color: #b45309; }
.svc-row3            { border-left-color: #1e3a5f; }
.svc-row3:hover      { border-left-color: #2a4a72; }
.svc-row2                 { border-left-color: #0e7490; }
.svc-row2:hover           { border-left-color: #0c6280; }

/* Icon badge */
.svc-icon-wrap {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #1e3a5f;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.svc-row1 .svc-icon-wrap  { background: #fff8ec; color: #d97706; }
.svc-row3 .svc-icon-wrap { background: #eef2f7; color: #1e3a5f; }
.svc-row2 .svc-icon-wrap     { background: #ecf8fa; color: #0e7490; }

.svc-card:hover .svc-icon-wrap {
    transform: scale(1.08);
}
.svc-row1:hover .svc-icon-wrap  { background: #feefcc; }
.svc-row3:hover .svc-icon-wrap { background: #dde6f0; }
.svc-row2:hover .svc-icon-wrap     { background: #d8f0f5; }

/* Text content */
.svc-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.svc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.3;
    margin: 0;
}
.svc-desc {
    font-size: 0.825rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}
.svc-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #d97706;
    text-decoration: none;
    margin-top: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: gap 0.2s ease, color 0.2s ease;
}
.svc-row2 .svc-link   { color: #0e7490; }
.svc-row3 .svc-link { color: #1e3a5f; }
.svc-link:hover {
    gap: 9px;
    color: #b45309;
}
.svc-row3 .svc-link:hover { color: #2a4a72; }
.svc-row2 .svc-link:hover      { color: #0c6280; }
