/* ============================================================
   Cedars Diagnostics — pure static theme (Bootstrap 5 + jQuery)
   Dark premium clinical theme keyed to the brand logo greens.
   ============================================================ */

:root {
    --bg: #050B06;
    --paper: #0A140B;
    --paper-2: #0d1a0f;
    --green: #4FC53F;
    --green-hover: #3CA82E;
    --mint: #A8E6A1;
    --text: #F4FDF4;
    --sub: #A0BCA0;
    --muted: #688468;
    --border: rgba(168, 230, 161, 0.12);
    --border-strong: rgba(79, 197, 63, 0.4);
    --wa: #25D366;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 76px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Outfit', system-ui, sans-serif;
    letter-spacing: -0.02em;
    color: #fff;
}

a { text-decoration: none; }

::selection { background: rgba(79, 197, 63, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(79, 197, 63, 0.35); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(79, 197, 63, 0.6); }

.text-green { color: var(--green) !important; }
.text-mint { color: var(--mint) !important; }
.text-sub { color: var(--sub) !important; }
.text-muted-c { color: var(--muted) !important; }
.bg-paper { background-color: var(--paper) !important; }

.overline {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green);
}

.section {
    padding: 6rem 0;
}
@media (max-width: 767px) {
    .section { padding: 4rem 0; }
}

.lead-sub {
    color: var(--sub);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ---------- Buttons ---------- */
.btn-cedars {
    background: var(--green);
    color: var(--bg) !important;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.6rem;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.btn-cedars:hover { background: var(--green-hover); transform: translateY(-2px); }

.btn-outline-cedars {
    background: transparent;
    color: var(--mint) !important;
    border: 1px solid rgba(168, 230, 161, 0.4);
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.75rem 1.6rem;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.btn-outline-cedars:hover { background: rgba(168, 230, 161, 0.1); transform: translateY(-2px); }

.btn-wa {
    background: var(--wa);
    color: #fff !important;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.6rem;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.btn-wa:hover { background: #1ebd5b; transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.cedars-navbar {
    background: rgba(5, 11, 6, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    min-height: 76px;
    transition: background-color 0.3s ease;
}
.cedars-navbar.scrolled {
    background: rgba(5, 11, 6, 0.95);
}
.navbar-brand-logo {
    height: 44px;
    width: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--paper);
    padding: 3px;
    border: 1px solid rgba(168, 230, 161, 0.2);
}
.brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1;
}
.brand-sub {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sub);
}
.cedars-navbar .nav-link {
    color: rgba(244, 253, 244, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0.6rem;
    position: relative;
    transition: color 0.25s ease;
}
.cedars-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--green);
    transition: width 0.3s ease;
}
.cedars-navbar .nav-link:hover,
.cedars-navbar .nav-link.active {
    color: var(--green);
}
.cedars-navbar .nav-link:hover::after,
.cedars-navbar .nav-link.active::after {
    width: 100%;
}
.navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.35rem 0.55rem;
}
.navbar-toggler:focus { box-shadow: none; }
.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='%234FC53F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-phone {
    color: var(--sub);
    font-size: 0.85rem;
    transition: color 0.25s ease;
}
.navbar-phone:hover { color: var(--green); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(5,11,6,0.75), rgba(5,11,6,0.85), var(--bg));
}
.hero-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 20% 20%, rgba(79,197,63,0.18), transparent 40%),
                radial-gradient(circle at 80% 60%, rgba(168,230,161,0.10), transparent 45%);
}
.hero-home { padding: 9rem 0 7rem; }
.page-hero { padding: 7rem 0 5rem; }

.display-hero {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
}

/* ---------- Cards ---------- */
.cedars-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
}
.cedars-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
}
.glass-card {
    background: rgba(10, 20, 11, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 1rem;
}
.icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 197, 63, 0.1);
    color: var(--green);
    font-size: 1.4rem;
}
.icon-badge.mint {
    background: rgba(168, 230, 161, 0.1);
    color: var(--mint);
}

/* Service card image */
.service-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}
.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.cedars-card:hover .service-img-wrap img { transform: scale(1.06); }
.service-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--paper), transparent 60%);
}
.service-img-icon {
    position: absolute;
    top: 1rem; left: 1rem;
    z-index: 2;
    width: 48px; height: 48px;
    border-radius: 0.6rem;
    background: rgba(5,11,6,0.8);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-strong);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Team */
.team-img-wrap {
    position: relative;
    height: 290px;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}
.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s ease, transform 0.6s ease;
}
.cedars-card:hover .team-img-wrap img {
    filter: grayscale(0%);
    transform: scale(1.05);
}
.team-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--paper), transparent 55%);
}

/* Stats */
.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
}

/* CTA banner */
.cta-banner {
    position: relative;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--border-strong);
    border-radius: 1.5rem;
    padding: 3.5rem;
}
.cta-banner .blob {
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}
.cta-banner .blob-1 { background: rgba(79,197,63,0.15); top: -140px; right: -140px; }
.cta-banner .blob-2 { background: rgba(168,230,161,0.1); bottom: -140px; left: -140px; }
.cta-banner > * { position: relative; z-index: 1; }
@media (max-width: 575px) { .cta-banner { padding: 2rem; } }

/* Contact info rows */
.contact-row {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 1.15rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: border-color 0.3s ease;
}
.contact-row:hover { border-color: var(--border-strong); }
.contact-label {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.15rem;
}

/* Forms */
.form-control, .form-control:focus {
    background: var(--bg);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 0.55rem;
    padding: 0.7rem 0.9rem;
}
.form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 0.2rem rgba(79,197,63,0.15);
    background: var(--bg);
    color: #fff;
}
.form-control::placeholder { color: var(--muted); }
.form-label {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sub);
    font-weight: 500;
}

/* WhatsApp FAB */
.wa-fab {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 1080;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 30px rgba(37,211,102,0.4);
    transition: transform 0.25s ease;
}
.wa-fab:hover { transform: scale(1.1); color: #fff; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
    margin-top: 5rem;
}
.footer-head {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 700;
    margin-bottom: 1.1rem;
}
.footer-link {
    color: rgba(244, 253, 244, 0.8);
    font-size: 0.9rem;
    display: inline-block;
    padding: 0.28rem 0;
    transition: color 0.25s ease;
}
.footer-link:hover { color: var(--green); }
.footer-bottom {
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--muted);
}

/* Process steps */
.step-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(79,197,63,0.6);
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* List check */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.4rem 0;
    color: rgba(244,253,244,0.9);
}
.check-list li i { color: var(--green); margin-top: 0.15rem; }

.divider-line {
    height: 1px;
    background: var(--border);
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
