/*
 * Sophic Technical Solutions — shared site components
 * (Home / Services / Academy / Portfolio / Contact)
 */

body {
    padding-top: 145px; /* header2.html's fixed nav runs ~115px + tagline row, taller than modern-business.css's default 50px */
}

:root {
    --sophic-accent: #337ab7;
    --sophic-accent-dark: #285e8e;
    --sophic-dark: #1b2430;
    --sophic-dark-2: #232f3f;
    --sophic-term-bg: #0d1117;
    --sophic-term-text: #c9d1d9;
    --sophic-term-green: #39d353;
    --sophic-term-amber: #e3b341;
}

/* ---------- Section utilities ---------- */

.section {
    padding: 60px 0;
}

.section-dark {
    background: var(--sophic-dark);
    color: #e6e9ee;
}

.section-dark h2, .section-dark h3, .section-dark h4 {
    color: #fff;
}

.section-tight {
    padding: 40px 0;
}

.section-title {
    margin-bottom: 30px;
}

.section-title .lead {
    color: #6f7a8a;
}

.section-dark .section-title .lead {
    color: #aab2bf;
}

/* ---------- Home: Hero funnel ---------- */

.hero-funnels {
    padding: 50px 0 30px;
}

.funnel-card {
    display: block;
    border-radius: 6px;
    padding: 30px 25px;
    margin-bottom: 20px;
    min-height: 220px;
    text-decoration: none;
    color: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.funnel-card:hover,
.funnel-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    color: #fff;
    text-decoration: none;
}

.funnel-card.funnel-it {
    background: linear-gradient(135deg, #1b2430, #2c3e50);
}

.funnel-card.funnel-stem {
    background: linear-gradient(135deg, #285e8e, #337ab7);
}

.funnel-card i.funnel-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.funnel-card h3 {
    color: #fff;
    margin-top: 0;
}

.funnel-card .funnel-cta {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .06em;
}

.funnel-card .funnel-cta i {
    margin-left: 6px;
}

/* ---------- Terminal console ---------- */

.terminal-console {
    background: var(--sophic-term-bg);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,.35);
    overflow: hidden;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    margin: 20px 0 10px;
}

.terminal-console .terminal-titlebar {
    background: #161b22;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.terminal-console .terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.terminal-console .dot-red { background: #ff5f56; }
.terminal-console .dot-yellow { background: #ffbd2e; }
.terminal-console .dot-green { background: #27c93f; }

.terminal-console .terminal-title {
    color: #8b949e;
    font-size: 12px;
    margin-left: 10px;
}

.terminal-console .terminal-body {
    padding: 18px 20px;
    min-height: 220px;
    color: var(--sophic-term-text);
    font-size: 14px;
    line-height: 1.7;
}

.terminal-console .term-prompt {
    color: var(--sophic-term-green);
}

.terminal-console .term-line {
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal-console .term-output {
    color: #8b949e;
}

.terminal-console .term-ok {
    color: var(--sophic-term-green);
}

.terminal-console .cursor {
    display: inline-block;
    width: 8px;
    background: var(--sophic-term-text);
    animation: term-blink 1s steps(1) infinite;
}

@keyframes term-blink {
    50% { opacity: 0; }
}

/* ---------- By the numbers stat bar ---------- */

.stats-bar {
    background: var(--sophic-accent);
    color: #fff;
    padding: 35px 0;
}

.stats-bar .stat-item {
    text-align: center;
    margin-bottom: 15px;
}

.stats-bar .stat-number {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    display: block;
    line-height: 1.1;
}

.stats-bar .stat-label {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .9;
}

/* ---------- Testimonials ---------- */

.testimonial-card {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
    height: 100%;
}

.testimonial-card .fa-quote-left {
    color: var(--sophic-accent);
    opacity: .3;
    font-size: 26px;
}

.testimonial-card p.quote {
    font-style: italic;
    margin: 12px 0 18px;
}

.testimonial-card .testimonial-author {
    font-weight: 700;
}

.testimonial-card .testimonial-role {
    color: #6f7a8a;
    font-size: 13px;
}

/* ---------- Tech stack tabs ---------- */

.tech-tabs-nav {
    margin-bottom: 25px;
}

.tech-tabs-nav .btn {
    margin: 0 6px 10px 0;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-chip {
    display: none;
    background: #f4f6f8;
    border: 1px solid #e2e6ea;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
}

.tech-chip.is-visible {
    display: inline-block;
}

.tech-chip i {
    color: var(--sophic-accent);
    margin-right: 6px;
}

/* ---------- Protocol / hardware badges ---------- */

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 20px;
}

.hw-badge {
    background: var(--sophic-dark-2);
    color: #fff;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    font-family: Consolas, Menlo, monospace;
}

/* ---------- Roadmap ---------- */

.roadmap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    padding: 30px 0 10px;
}

.roadmap:before {
    content: "";
    position: absolute;
    top: 55px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: #dfe4ea;
    z-index: 0;
}

.roadmap-step {
    flex: 1 1 22%;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 10px;
    margin-bottom: 30px;
    min-width: 200px;
}

.roadmap-step .roadmap-circle {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--sophic-accent);
    color: #fff;
    font-size: 22px;
    margin: 0 auto 15px;
    box-shadow: 0 0 0 6px #fff;
}

.roadmap-step h4 {
    margin-bottom: 6px;
}

.roadmap-step p {
    color: #6f7a8a;
    font-size: 14px;
}

@media (max-width: 767px) {
    .roadmap:before { display: none; }
    .roadmap-step { flex: 1 1 100%; }
}

/* ---------- Curriculum levels ---------- */

.level-card {
    border: 1px solid #e6e9ee;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
    height: 100%;
    border-top: 4px solid var(--sophic-accent);
}

.level-card .level-tag {
    display: inline-block;
    background: var(--sophic-accent);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 3px 10px;
    margin-bottom: 10px;
}

.level-card .level-age {
    color: #6f7a8a;
    font-size: 13px;
    margin-bottom: 10px;
}

/* ---------- Case studies ---------- */

.case-card {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 25px;
    height: 100%;
}

.case-card .case-card-tag {
    background: var(--sophic-dark);
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 6px 14px;
}

.case-card .case-card-body {
    padding: 20px;
}

.case-card ul.case-stack {
    padding-left: 18px;
    margin-bottom: 0;
    color: #6f7a8a;
    font-size: 13px;
}

/* ---------- GitHub feed ---------- */

.github-feed-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.repo-card {
    background: var(--sophic-term-bg);
    color: var(--sophic-term-text);
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 18px;
    height: 100%;
}

.repo-card a.repo-name {
    color: #58a6ff;
    font-weight: 700;
    font-size: 15px;
}

.repo-card p.repo-desc {
    font-size: 13px;
    color: #8b949e;
    margin: 8px 0;
    min-height: 36px;
}

.repo-card .repo-meta {
    font-size: 12px;
    color: #8b949e;
}

.repo-card .repo-meta i {
    margin-right: 4px;
}

.repo-card .lang-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--sophic-term-green);
    margin-right: 4px;
}

#github-feed-status {
    color: #6f7a8a;
    font-style: italic;
}

/* ---------- Intake form ---------- */

.pill-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.pill-options label {
    border: 1px solid #ccd3db;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 400;
    cursor: pointer;
    margin: 0;
    transition: background .15s ease, border-color .15s ease;
}

.pill-options input {
    margin-right: 6px;
}

.pill-options label:hover {
    border-color: var(--sophic-accent);
}

.pill-options input:checked + span,
.pill-options label.checked {
    border-color: var(--sophic-accent);
    background: #eaf2fa;
}

/* ---------- Scheduler embed ---------- */

.scheduler-wrap {
    border: 1px solid #e6e9ee;
    border-radius: 6px;
    overflow: hidden;
    min-height: 630px;
}

.scheduler-wrap iframe {
    width: 100%;
    height: 630px;
    border: 0;
}

/* ---------- Misc ---------- */

.cta-band {
    background: var(--sophic-dark);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.cta-band h3 {
    color: #fff;
    margin-top: 0;
}

.cta-band .btn {
    margin-top: 10px;
}
