/* ── TrueLink Services Section ─────────────────────────────────────────────── */
.tl-services {
    padding: 6rem 0;
    background: #07071a;
}

.tl-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tl-sec-head {
    text-align: center;
    margin-bottom: 3.5rem;
}

.tl-sec-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin: 0.75rem 0 1rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.tl-sec-head p {
    font-size: 1.1rem;
    color: rgba(200, 195, 255, 0.75);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Badge */
.tl-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.tl-badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Service Grid */
.tl-srv-showcase {
    position: relative;
}

.tl-srv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .tl-srv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tl-srv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Service Card */
.tl-srv-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tl-srv-card:hover {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}

/* Service Icon */
.tl-srv-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tl-srv-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

/* Icon colour variants */
.tl-srv-icon.green {
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tl-srv-icon.navy {
    background: rgba(28, 98, 113, 0.18);
    color: #8aa4b9;
    border: 1px solid rgba(28, 98, 113, 0.3);
}

.tl-srv-icon.gold {
    background: rgba(234, 179, 8, 0.18);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.tl-srv-icon.red {
    background: rgba(239, 68, 68, 0.18);
    color: #ff7b33;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Card Typography */
.tl-srv-card h3 {
    font-size: 1.05rem;
    font-weight: 650;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.tl-srv-card h3 a {
    color: inherit;
    text-decoration: none;
}

.tl-srv-card h3 a:hover {
    color: #a5b4fc;
}

.tl-srv-card p {
    font-size: 0.875rem;
    color: rgba(200, 195, 255, 0.65);
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

/* Toggle button */
.tl-srv-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2.5rem auto 0;
    padding: 0.65rem 1.6rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    color: #c8c3ff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tl-srv-toggle:hover {
    background: rgba(255,255,255,0.13);
}

/* How It Works (hw-*) panel styles included in services page */
.hw-container {
    font-family: inherit;
    background: rgba(255, 255, 255, 0.035);
    color: #e5e7eb;
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 1.5rem;
    box-sizing: border-box;
}

.hw-container * { box-sizing: border-box; }

.hw-header { margin-bottom: 2.5rem; }

.hw-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: #fff;
    letter-spacing: -0.02em;
}

.hw-subtitle {
    font-size: 1.05rem;
    color: rgba(200, 195, 255, 0.7);
    margin: 0;
    max-width: 700px;
    line-height: 1.6;
}

.hw-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.hw-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    min-height: 104px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.hw-step.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}

.hw-step-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(200,195,255,0.6);
}

.hw-step.active .hw-step-icon {
    background: #10b981;
    color: #fff;
}

.hw-step-icon svg { width: 1.25rem; height: 1.25rem; }

.hw-step-num {
    font-weight: 700;
    color: #10b981;
    margin-right: 0.25rem;
}

.hw-step-title {
    font-weight: 700;
    color: #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.25;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.hw-step.active .hw-step-title { color: #10b981; }

.hw-step-desc {
    font-size: 0.78rem;
    color: rgba(200,195,255,0.6);
    line-height: 1.35;
}

.hw-panels { margin-bottom: 3rem; }

.hw-panel {
    display: none;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.hw-panel.active { display: grid; }

@media (min-width: 992px) {
    .hw-panel { grid-template-columns: 3fr 2fr; gap: 3rem; }
}

.hw-panel-left {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
}

.hw-panel-text { flex: 1; }

.hw-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hw-panel-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem 0;
}

.hw-panel-desc {
    color: rgba(200,195,255,0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hw-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hw-checklist li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.hw-checklist li svg {
    color: #10b981;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.hw-panel-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hw-progress-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.5rem;
    padding: 2rem;
}

.hw-progress-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2rem 0;
}

.hw-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.hw-tracker::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

.hw-track-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    flex: 1;
}

.hw-track-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 2px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: rgba(200,195,255,0.5);
}

.hw-track-item.active .hw-track-circle {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.hw-track-label {
    font-size: 0.7rem;
    color: rgba(200,195,255,0.5);
    text-align: center;
    font-weight: 600;
}

.hw-track-item.active .hw-track-label { color: #10b981; }

.hw-alert {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.hw-alert-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hw-alert-icon svg { width: 1.25rem; height: 1.25rem; }

.hw-alert-content h4 {
    margin: 0 0 0.25rem 0;
    color: #a7f3d0;
    font-size: 1rem;
    font-weight: 700;
}

.hw-alert-content p {
    margin: 0;
    color: rgba(167, 243, 208, 0.85);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Ecosystem glance */
.hw-glance-wrapper {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2.5rem;
}

.hw-glance-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1.5rem 0;
}

.hw-glance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .hw-glance-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.hw-glance-col {
    background: rgba(255,255,255,0.04);
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 2rem;
}

.hw-glance-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.hw-glance-logo {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.hw-logo-tl { background: #10b981; }
.hw-logo-kb { background: #1c6271; }

.hw-glance-brand h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.hw-glance-brand span {
    font-size: 0.9rem;
    font-weight: 700;
}

.hw-text-tl { color: #10b981; }
.hw-text-kb { color: #8aa4b9; }

.hw-glance-desc {
    color: rgba(200,195,255,0.65);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.hw-glance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hw-glance-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.hw-badge-tl {
    background: rgba(16, 185, 129, 0.12);
    color: #a7f3d0;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hw-badge-tl svg { color: #10b981; }

.hw-badge-kb {
    background: rgba(28, 98, 113, 0.12);
    color: #c7d2fe;
    border: 1px solid rgba(28, 98, 113, 0.2);
}

.hw-badge-kb svg { color: #8aa4b9; }

/* Flywheel */
.hw-flywheel {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
}

.hw-fly-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(200,195,255,0.65);
}

.hw-fly-item svg { width: 1.25rem; height: 1.25rem; color: #10b981; }

/* Responsive */
@media (max-width: 1100px) {
    .hw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .hw-container { padding: 1.5rem; border-radius: 1rem; }
    .hw-title { font-size: 1.65rem; }
    .hw-steps { grid-template-columns: 1fr; gap: 0.75rem; }
    .hw-step { min-height: 0; }
    .hw-step-title { white-space: normal; }
    .hw-panel-left { flex-direction: column; padding: 1.5rem; }
    .hw-glance-grid { grid-template-columns: 1fr; }
    .hw-flywheel { flex-direction: column; }
}

/* TrueLink navy + eucalyptus harmonization. */
.tl-services {
    padding: clamp(44px, 4.5vw, 64px) 0;
    background: var(--ink);
}

.tl-sec-head { margin-bottom: clamp(24px, 3vw, 36px); }
.tl-sec-head h2,
.hw-title,
.hw-panel-title,
.hw-progress-title,
.hw-glance-title,
.hw-glance-brand h4 { color: var(--white); }

.tl-sec-head p,
.tl-srv-card p,
.hw-subtitle,
.hw-step-desc,
.hw-panel-desc,
.hw-glance-desc,
.hw-fly-item { color: rgba(216, 222, 234, .72); }

.tl-srv-card,
.hw-container,
.hw-panel-left,
.hw-progress-box,
.hw-glance-col {
    border-color: rgba(198, 211, 225, .14);
    background: #050917 !important;
}

.tl-srv-card:hover {
    border-color: rgba(255, 123, 51, .38);
    background: #050917 !important;
}

.tl-badge-green,
.tl-srv-icon.green,
.tl-srv-icon.gold,
.tl-srv-icon.red,
.tl-srv-icon.navy,
.hw-badge,
.hw-alert,
.hw-badge-tl,
.hw-badge-kb {
    border-color: rgba(76, 159, 127, .3);
    background: rgba(76, 159, 127, .12);
    color: var(--accent-soft);
}

.tl-srv-card h3 a:hover,
.tl-srv-toggle,
.hw-step-num,
.hw-step.active .hw-step-title,
.hw-checklist li svg,
.hw-track-item.active .hw-track-label,
.hw-alert-icon,
.hw-alert-content h4,
.hw-alert-content p,
.hw-text-tl,
.hw-text-kb,
.hw-badge-tl svg,
.hw-badge-kb svg,
.hw-fly-item svg { color: var(--accent-soft); }

.hw-step.active {
    border-color: rgba(76, 159, 127, .72);
    background: rgba(76, 159, 127, .1);
}

.hw-step.active .hw-step-icon,
.hw-track-item.active .hw-track-circle,
.hw-logo-tl,
.hw-logo-kb {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
}

.hw-alert-icon {
    background: rgba(76, 159, 127, .18);
}

.hw-panels { margin-bottom: 2rem; }
.hw-glance-wrapper { padding-top: 2rem; }
.hw-flywheel { margin-top: 2rem; }

@media (max-width: 768px) {
    .tl-services { padding-block: 38px; }
    .hw-container { padding: 1.25rem; }
    .hw-panel-left,
    .hw-progress-box,
    .hw-glance-col { padding: 1.25rem; }
}
