/* ============================================================
   Soulciolab EMR — main site theme (matches Laboratory module)
   ============================================================ */

:root {
    --emr-navy: #10283f;
    --emr-navy-2: #0c1f31;
    --emr-teal: #0e7c86;
    --emr-teal-dark: #0a6169;
    --emr-accent: #14b8a6;
    --emr-bg: #f1f5f9;
    --emr-border: #dfe7ee;
    --emr-text: #1e293b;
    --emr-muted: #64748b;
}

html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }

html { position: relative; min-height: 100%; }

body {
    margin-bottom: 60px;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--emr-bg);
    color: var(--emr-text);
}

a { color: var(--emr-teal); }
a:hover { color: var(--emr-teal-dark); }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(14, 124, 134, .35);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ---------- navbar ---------- */
.emr-navbar {
    background: linear-gradient(90deg, var(--emr-navy), var(--emr-navy-2));
    padding: .6rem 0;
}
.emr-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #fff !important;
    font-weight: 700;
    white-space: normal;
    text-align: center;
    word-break: break-all;
}
.emr-brand-mark {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--emr-teal), var(--emr-accent));
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff;
}
.emr-navbar .nav-link {
    color: #b8c9d8 !important;
    font-weight: 500;
    border-radius: 7px;
    padding: .4rem .8rem !important;
}
.emr-navbar .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.08); }
.emr-navbar .nav-link.emr-nav-cta {
    background: var(--emr-teal);
    color: #fff !important;
    font-weight: 600;
}
.emr-navbar .nav-link.emr-nav-cta:hover { background: var(--emr-teal-dark); }
.emr-navbar .navbar-toggler { border-color: rgba(255,255,255,.3); }
.emr-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- hero ---------- */
.emr-hero {
    background: linear-gradient(135deg, var(--emr-navy) 0%, #134a5e 60%, var(--emr-teal-dark) 100%);
    border-radius: 18px;
    color: #fff;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}
.emr-hero::after {
    content: "";
    position: absolute;
    right: -80px; top: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,184,166,.35), transparent 70%);
}
.emr-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: .5rem; }
.emr-hero p { color: #c8d8e4; font-size: 1rem; max-width: 560px; }
.emr-hero .emr-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--emr-accent);
    background: rgba(20,184,166,.12);
    border: 1px solid rgba(20,184,166,.4);
    padding: .3rem .8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

/* ---------- buttons ---------- */
.emr-btn {
    display: inline-block;
    border-radius: 9px;
    padding: .6rem 1.3rem;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, transform .05s;
}
.emr-btn:active { transform: translateY(1px); }
.emr-btn-primary { background: var(--emr-teal); color: #fff; }
.emr-btn-primary:hover { background: var(--emr-teal-dark); color: #fff; }
.emr-btn-light {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
}
.emr-btn-light:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- module cards ---------- */
.emr-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.emr-module {
    background: #fff;
    border: 1px solid var(--emr-border);
    border-radius: 14px;
    padding: 1.3rem;
    text-decoration: none;
    color: var(--emr-text);
    display: block;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.emr-module:hover {
    border-color: var(--emr-teal);
    box-shadow: 0 6px 18px rgba(16, 40, 63, .1);
    transform: translateY(-2px);
    color: var(--emr-text);
}
.emr-module.coming-soon { opacity: .55; pointer-events: none; }
.emr-module-icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: .8rem;
    background: #effcfd;
}
.emr-module h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .3rem; color: var(--emr-navy); }
.emr-module p { font-size: .82rem; color: var(--emr-muted); margin: 0; }
.emr-module .emr-module-tag {
    display: inline-block;
    margin-top: .7rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--emr-teal);
}

/* ---------- section heading ---------- */
.emr-section-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--emr-muted);
    margin: 0 0 .9rem;
}

/* ---------- footer ---------- */
.border-top { border-top: 1px solid #e5e5e5; }
.border-bottom { border-bottom: 1px solid #e5e5e5; }
.box-shadow { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05); }
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}
