/* ============================================================
   Dualis -- index.html Page Styles
   ============================================================ */

/* -- Hero -- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2a7a 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: #ff8888;
    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(--red-rgb) / 0.15);
    color: #ff8888;
    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: #ff8888;
    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(--red) 0%, var(--red-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(--red-rgb) / 0.3);
}
.flow-hub .hub-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    text-align: center;
}
.flow-nodes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
    position: relative;
}
.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(--red-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;
}
.flow-node::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 0.75rem;
    background: rgb(var(--red-rgb) / 0.4);
}
.flow-node:nth-child(2)::before {
    top: -1.5rem;
    height: 1.5rem;
}
.flow-node i {
    font-size: 1.25rem;
    color: #ff8888;
    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;
}
.flow-source::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 0.75rem;
    background: rgb(var(--red-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;
}
.flow-source-item::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 0.75rem;
    background: rgb(var(--red-rgb) / 0.4);
}
.flow-source-bar {
    position: absolute;
    bottom: -0.75rem;
    height: 1px;
    background: rgb(var(--red-rgb) / 0.4);
    left: 25%;
    right: 25%;
}
.flow-source-item i {
    font-size: 1.15rem;
    color: #ff8888;
    display: block;
    margin-bottom: 0.3rem;
}
.flow-source-item .node-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

/* -- 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: #ff8888;
    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;
}

/* -- Products Teaser -- */
.products-teaser {
    background: #f8f9fa;
    padding: 4rem 0;
    border-bottom: 1px solid #e5e7eb;
}
.product-teaser-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    height: 100%;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border-top: 4px solid var(--navy);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow 0.3s, transform 0.3s;
}
.product-teaser-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.11);
    transform: translateY(-3px);
}
.product-teaser-card--new {
    border-top-color: var(--red);
}
.product-teaser-card .product-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--navy);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    align-self: flex-start;
    margin-bottom: 0.75rem;
}
.product-teaser-card .product-badge--new {
    background: var(--red);
}
.product-teaser-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}
.product-teaser-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

/* -- 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(--red);
}
.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(--red);
    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(--red) 0%, var(--red-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;
}
.subsection-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    border-bottom: 2px solid var(--red);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

/* -- About Teaser -- */
.about-section { padding: 4rem 0; }
.about-mission-quote {
    max-width: 640px;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-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(135deg, var(--navy) 0%, #1a2a7a 100%);
    padding: 4rem 0 3.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.emr-banner .emr-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgb(255 255 255 / 0.5);
    margin-bottom: 0.25rem;
}
.emr-banner .emr-headline {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}
.emr-banner .emr-headline span { color: #ff8888; }
.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;
}
.emr-logo-item:hover {
    border-color: var(--red);
    box-shadow: 0 4px 16px rgb(var(--red-rgb) / 0.12);
    transform: translateY(-2px);
}
.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;
    /* emr-banner has a dark navy background, so use white-tinted text */
    color: rgb(255 255 255 / 0.65);
}
.emr-hl7-note i { color: #ff8888; margin-right: 0.35rem; }
/* "any EMR" was navy-on-navy (invisible); use white so it reads on the dark background */
.emr-hl7-note strong { color: white; font-weight: 700; }

/* -- EMR Logos Grid (real SVG logos) -- */
.emr-logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 840px;
    margin: 0 auto;
}
.emr-logo-box {
    background: white;
    border-radius: 0.75rem;
    padding: 1.1rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    transition: all 0.25s;
    min-height: 72px;
}
.emr-logo-box:hover {
    border-color: var(--red);
    box-shadow: 0 4px 16px rgb(var(--red-rgb) / 0.12);
    transform: translateY(-2px);
}
.emr-logo-box img {
    max-height: 36px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}
@media (max-width: 767px) {
    .emr-logos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .emr-logos-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .emr-logo-box { padding: 0.75rem 0.5rem; min-height: 56px; }
    .emr-logo-box img { max-height: 28px; }
}

/* -- Capability Chips (on product cards) -- */
.cap-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #f1f4f9;
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 2rem;
    border: 1px solid #e0e6f0;
    white-space: nowrap;
}
.cap-chip i { color: var(--red); font-size: 0.65rem; }

/* -- Five Capabilities -- */
.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(--red);
    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(--red) 0%, var(--red-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(--red);
    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(--red);
}
.cap-detail-list li strong { color: var(--navy); font-weight: 600; }

/* -- 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; }
}
