/* ============================================================
   CCB Tech / TrackER — index.html Page Styles
   ============================================================ */

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
    color: white;
    padding: 6rem 0 4rem;
}
.hero-trust {
    border-top: 1px solid rgb(255 255 255 / 0.12);
    padding-top: 2rem;
    margin-top: 2.5rem;
}
.hero-trust .trust-item { text-align: center; padding: 0.25rem 0.5rem; }
.hero-trust .trust-item i {
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 0.35rem;
    display: block;
}
.hero-trust .trust-item span { font-size: 0.8rem; font-weight: 500; color: rgb(255 255 255 / 0.85); }
.hero-eyebrow {
    display: inline-block;
    background: rgb(var(--gold-rgb) / 0.15);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.875rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.25rem;
}
.hero .lead {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 540px;
}
.hero-emr-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.hero-emr-strip .emr-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgb(255 255 255 / 0.08);
    border: 1px solid rgb(255 255 255 / 0.15);
    color: rgb(255 255 255 / 0.85);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 2rem;
}
.hero-emr-strip .emr-chip i {
    color: var(--gold);
    font-size: 0.65rem;
}

/* ── Hero Flow Diagram ── */
.hero-flow {
    position: relative;
    padding: 1rem 0;
}
.flow-hub {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 40px rgb(var(--gold-rgb) / 0.3);
}
.flow-hub .hub-label {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}
.flow-nodes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
    position: relative;
}
/* Horizontal connector spanning col 1 center → col 3 center */
.flow-nodes::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: calc((100% - 1.5rem) / 6);
    right: calc((100% - 1.5rem) / 6);
    height: 1px;
    background: rgb(var(--gold-rgb) / 0.4);
}
.flow-node {
    background: rgb(255 255 255 / 0.06);
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 0.75rem;
    padding: 1rem 0.75rem;
    text-align: center;
    position: relative;
}
/* Vertical stub from horizontal bar down to each node */
.flow-node::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 0.75rem;
    background: rgb(var(--gold-rgb) / 0.4);
}
/* Center node: continuous line from hub */
.flow-node:nth-child(2)::before {
    top: -1.5rem;
    height: 1.5rem;
}
.flow-node i {
    font-size: 1.25rem;
    color: var(--gold);
    display: block;
    margin-bottom: 0.4rem;
}
.flow-node .node-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}
.flow-node .node-desc {
    font-size: 0.65rem;
    color: rgb(255 255 255 / 0.6);
    margin-top: 0.15rem;
}
.flow-source {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}
/* Vertical line from source row down to hub */
.flow-source::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 0.75rem;
    background: rgb(var(--gold-rgb) / 0.4);
}
.flow-source-item {
    background: rgb(255 255 255 / 0.06);
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    text-align: center;
    position: relative;
    flex: 1;
    max-width: 140px;
}
/* Vertical stub from each source item down to horizontal bar */
.flow-source-item::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 0.75rem;
    background: rgb(var(--gold-rgb) / 0.4);
}
/* Horizontal bar spanning between source items */
.flow-source-bar {
    position: absolute;
    bottom: -0.75rem;
    height: 1px;
    background: rgb(var(--gold-rgb) / 0.4);
    left: 25%;
    right: 25%;
}
.flow-source-item i {
    font-size: 1.15rem;
    color: var(--gold);
    display: block;
    margin-bottom: 0.3rem;
}
.flow-source-item .node-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}
.flow-pulse {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.5); }
}

/* ── Stats Bar ── */
.stats-bar {
    background: var(--navy);
    padding: 2.5rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.stat-item { text-align: center; padding: 0.5rem; }
.stat-item .stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}
.stat-item .stat-label {
    font-size: 0.875rem;
    color: rgb(255 255 255 / 0.75);
    margin-top: 0.25rem;
    font-weight: 500;
}


/* ── Problem Cards ── */
.problem-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-top: 3px solid var(--gold);
}
.problem-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.problem-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}
.problem-card .stat {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

/* ── Solution Pillars ── */
.solution-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.solution-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}
.solution-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}
.solution-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}
/* Replaces inline style on the three pillar headings */
.subsection-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

/* ── About Teaser Section ── */
.about-section { padding: 4rem 0; }
.about-mission-quote {
    max-width: 640px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: white;
    border-radius: 0.75rem;
    padding: 1.25rem 2rem;
    margin: 0 auto 1.5rem;
}

/* ── EMR Integration Banner ── */
.emr-banner {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.emr-banner .emr-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}
.emr-banner .emr-headline {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1.75rem;
}
.emr-banner .emr-headline span { color: var(--gold); }
.emr-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1050px;
    margin: 0 auto;
}
.emr-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 1.25rem 0.75rem;
    border-radius: 0.625rem;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.25s;
    cursor: default;
}
.emr-logo-item:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgb(var(--gold-rgb) / 0.12);
    transform: translateY(-2px);
}
.emr-logo-item .emr-vendor-logo {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}
.emr-logo-item .emr-badge {
    display: inline-block;
    background: var(--navy);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 0.2rem;
    letter-spacing: 0.02em;
}
.emr-hl7-note {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.emr-hl7-note i       { color: var(--gold); margin-right: 0.35rem; }
.emr-hl7-note strong  { color: var(--navy); font-weight: 700; }

/* ── Five Capabilities Section ── */
.capabilities-section {
    padding: 5rem 0;
    background: white;
}
.cap-feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border-top: 3px solid var(--gold);
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
}
.cap-feature-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,0.11);
    transform: translateY(-3px);
}
.cap-feature-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: white;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.cap-feature-card h3,
.cap-feature-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
.cap-feature-card .cap-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.cap-feature-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.65;
}
.cap-detail-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}
.cap-detail-list li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.3rem 0 0.3rem 1.25rem;
    position: relative;
    border-top: 1px solid #f1f3f5;
    line-height: 1.5;
}
.cap-detail-list li:first-child { border-top: none; }
.cap-detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}
.cap-detail-list li strong { color: var(--navy); font-weight: 600; }

/* ── index.html Responsive ── */
@media (max-width: 1024px) {
    .hero              { padding: 5rem 0 3rem; }
    .hero h1           { font-size: 2.5rem; }
    .emr-logos         { grid-template-columns: repeat(3, 1fr); }
    .capabilities-section { padding: 4rem 0; }
    .about-section     { padding: 3rem 0; }
}

@media (max-width: 768px) {
    .hero h1              { font-size: 2.1rem; }
    .hero .lead           { font-size: 1rem; }
    .hero-flow            { display: none; }
    .stat-item .stat-num  { font-size: 2rem; }
    .emr-logos            { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (max-width: 480px) {
    .hero h1              { font-size: 1.75rem; }
    .stat-item .stat-num  { font-size: 1.75rem; }
    .emr-logos            { grid-template-columns: 1fr; }
}