/* ==========================================================================
   U7Care — public website
   Bootstrap 5.3 with the U7Care palette: navy, green and cool greys.
   ========================================================================== */

:root {
    --navy:       #0b3a5c;
    --navy-dark:  #082c46;
    --ink:        #0b2a44;
    --green:      #1a9c7a;
    --green-dark: #14805f;
    --green-soft: #e3f4ee;
    --link:       #0f6fb8;
    --muted:      #5a6f84;
    --faint:      #8a9bab;
    --line:       #dde6ee;
    --soft:       #f2f7fb;
    --radius:     12px;

    --bs-body-font-family: 'DM Sans', Helvetica, Arial, sans-serif;
    --bs-body-color: var(--ink);
    --bs-body-line-height: 1.5;
    --bs-link-color-rgb: 15, 111, 184;
    --bs-link-hover-color-rgb: 11, 58, 92;
    --bs-border-radius: 8px;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; letter-spacing: -.02em; }
.text-green { color: var(--green) !important; }
.text-muted-2 { color: var(--muted); }
.bg-soft { background: var(--soft); }
.border-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.ico { width: 1.1em; height: 1.1em; vertical-align: -.17em; flex-shrink: 0; fill: none; stroke: currentColor;
       stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; font-size: .9rem; padding: .7rem 1.1rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-lg { font-size: .95rem; padding: .85rem 1.4rem; border-radius: 8px; }
.btn-navy { --bs-btn-color: #fff; --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy);
            --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--green); --bs-btn-hover-border-color: var(--green);
            --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--green-dark); --bs-btn-active-border-color: var(--green-dark); }
.btn-outline-navy { --bs-btn-color: var(--navy); --bs-btn-bg: #fff; --bs-btn-border-color: var(--navy); border-width: 1.5px;
                    --bs-btn-hover-color: var(--navy); --bs-btn-hover-bg: var(--soft); --bs-btn-hover-border-color: var(--navy);
                    --bs-btn-active-color: var(--navy); --bs-btn-active-bg: var(--line); --bs-btn-active-border-color: var(--navy); }
.btn-green { --bs-btn-color: #fff; --bs-btn-bg: var(--green); --bs-btn-border-color: var(--green);
             --bs-btn-hover-color: var(--navy); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff;
             --bs-btn-active-color: var(--navy); --bs-btn-active-bg: #fff; --bs-btn-active-border-color: #fff; }
.btn:focus-visible { box-shadow: 0 0 0 .22rem rgba(26, 156, 122, .35); }

.link-arrow { font-weight: 600; font-size: .92rem; color: var(--link); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow:hover { color: var(--navy); }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Type helpers ---------- */
.eyebrow { font-size: .78rem; font-weight: 700; color: var(--green); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; }
.eyebrow-navy { color: var(--navy); }
.section { padding: 5rem 0; }
@media (max-width: 767.98px) { .section { padding: 3.5rem 0; } }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 1rem; text-wrap: balance; }
.section-title-sm { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* ---------- Navigation ---------- */
.site-nav { background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
            min-height: 72px; transition: box-shadow .2s; }
.site-nav.scrolled { box-shadow: 0 6px 24px -12px rgba(11, 58, 92, .25); }
.brand-logo { height: 36px; width: auto; display: block; }
.site-nav .nav-link { font-size: .9rem; font-weight: 500; color: var(--ink); padding: .5rem .6rem !important; }
.site-nav .nav-link { position: relative; }
.site-nav .nav-link:hover { color: var(--green); }
/* The section in view: coloured, bold and underlined, so it reads as "you are here", not as a hover. */
.site-nav .nav-link.active { color: var(--green); font-weight: 700; }
.site-nav .nav-link.active::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .1rem;
                                    height: 2px; border-radius: 2px; background: var(--green); }
.nav-lang { align-items: center; gap: .35rem; font-size: .82rem; font-weight: 500; color: var(--muted); margin-right: .5rem; }
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .4rem; }
    .site-nav .nav-link.active::after { left: 0; right: auto; top: .55rem; bottom: .55rem; width: 3px; height: auto; }
    .site-nav .nav-link.active { padding-left: .9rem !important; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--soft), #fff); padding: 3.5rem 0 3rem; }
.hero-title { font-size: clamp(2.75rem, 5.6vw, 4.5rem); line-height: 1; letter-spacing: -.035em; margin: 0; }
.hero-lead { font-size: clamp(1.15rem, 2vw, 1.375rem); font-weight: 500; line-height: 1.35; color: var(--ink); margin: 1.25rem 0 0; text-wrap: balance; }
.hero-body { font-size: .97rem; line-height: 1.55; color: var(--muted); margin: .9rem 0 0; max-width: 520px; text-wrap: pretty; }

.hero-photo { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 4.3; min-height: 300px; background: var(--line); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% center; display: block; }

.pillars { display: flex; flex-direction: column; gap: .6rem; }
.pillar { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; background: #fff; border: 1px solid var(--line);
          border-radius: 10px; font-size: .82rem; font-weight: 600; line-height: 1.3; }
.pillar-icon { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
               background: var(--green-soft); color: var(--green); }
.pillar-icon .ico { width: 16px; height: 16px; }
.hero-quote { margin: 1.1rem 0 0; padding-left: .75rem; border-left: 2px solid var(--green); font-size: .95rem; font-weight: 500;
              line-height: 1.35; color: var(--navy); font-style: italic; }
@media (max-width: 575.98px) {
    .pillars { display: grid; grid-template-columns: 1fr 1fr; }
    .hero-photo { aspect-ratio: 4 / 3.4; min-height: 0; }
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: #fff; padding: 1.4rem 0; }
.stat { display: flex; align-items: center; gap: .85rem; padding: .7rem 1.1rem; height: 100%; border-left: 1px solid rgba(255, 255, 255, .15); }
.stat-icon { width: 28px; height: 28px; color: #7fd6bd; stroke-width: 1.6; }
.stat-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.stat-label { font-size: .8rem; color: #b9cddc; margin-top: .35rem; }
@media (max-width: 767.98px) {
    .stat { padding: .7rem .75rem; }
    .stat-value { font-size: 1.45rem; }
}

/* ---------- Tones for icon circles ---------- */
.tone-teal   { --tone: #0f8f8f; --tone-soft: #e0f4f3; }
.tone-blue   { --tone: #1f6fd1; --tone-soft: #e6effb; }
.tone-violet { --tone: #7b3fc4; --tone-soft: #f0e8fa; }
.tone-orange { --tone: #e2731d; --tone-soft: #fdeede; }
.tone-green  { --tone: #1a9c7a; --tone-soft: #e3f4ee; }
.icon-circle { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
               color: var(--tone, var(--green)); background: var(--tone-soft, var(--green-soft)); }
.icon-circle .ico { width: 22px; height: 22px; }
.icon-circle-solid { color: #fff; background: var(--tone, var(--navy)); }
.icon-circle-lg { width: 64px; height: 64px; }
.icon-circle-lg .ico { width: 30px; height: 30px; }

/* ---------- Solutions ---------- */
.solution-card { width: 100%; display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem; background: #fff;
                 border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s, box-shadow .2s; }
.solution-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 16px 36px -24px rgba(11, 58, 92, .35); }
.solution-card h3 { font-size: 1.06rem; margin: .6rem 0 0; letter-spacing: -.01em; }
.solution-card p { font-size: .875rem; color: var(--muted); line-height: 1.5; margin: 0; text-wrap: pretty; }
.solution-num { font-family: 'DM Mono', monospace; font-size: .75rem; font-weight: 500; color: var(--green); }

/* ---------- Flow ---------- */
.flow-step { width: 100%; padding: 1.1rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.flow-step .icon-circle { width: 44px; height: 44px; margin-bottom: .9rem; }
.flow-step .icon-circle .ico { width: 20px; height: 20px; }
.flow-name { font-weight: 700; font-size: .95rem; color: var(--navy); line-height: 1.25; }
.flow-num { color: var(--tone); }
.flow-desc { font-size: .82rem; color: var(--muted); line-height: 1.45; margin-top: .35rem; }

.reference-card { padding: 1.75rem; border-radius: 14px; background: #fff; border: 1px solid var(--line);
                  box-shadow: 0 20px 50px -35px rgba(11, 58, 92, .45); }
.reference-card h3 { font-size: 2rem; line-height: 1; letter-spacing: -.025em; margin: 0; }
.reference-card .lead-sm { font-size: 1rem; line-height: 1.45; margin: .6rem 0 0; }
.check-list { display: flex; flex-direction: column; gap: .65rem; margin: 1.35rem 0; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .92rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check { width: 19px; height: 19px; border-radius: 50%; background: var(--green); color: #fff; flex-shrink: 0; margin-top: 1px;
         display: grid; place-items: center; }
.check .ico { width: 11px; height: 11px; stroke-width: 3; }

/* ---------- Why ---------- */
.why-grid { border-top: 1px solid var(--line); padding-top: .5rem; }
.why-item { padding-top: .35rem; }
.why-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: .9rem;
            color: var(--green); background: var(--green-soft); }
.why-icon .ico { width: 21px; height: 21px; }
.why-item h3 { font-size: 1rem; margin: 0 0 .35rem; position: relative; padding-top: .7rem; }
.why-item h3::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--green); }
.why-item p { font-size: .875rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* ---------- Photo strip ---------- */
.strip-item { position: relative; height: 300px; overflow: hidden; }
.strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-caption { position: absolute; max-width: 270px; padding: .75rem 1rem; background: rgba(255, 255, 255, .93); border-radius: 8px;
                 font-size: .95rem; font-weight: 600; line-height: 1.35; color: var(--navy); }
.strip-top-left { left: 1.5rem; top: 1.5rem; }
.strip-bottom-right { right: 1.5rem; bottom: 1.5rem; }
@media (max-width: 767.98px) { .strip-item { height: 240px; } }

/* ---------- News & resource ---------- */
.news-card { width: 100%; display: flex; flex-direction: column; gap: .6rem; padding: .85rem; background: #fff; color: var(--ink);
             border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s; }
.news-card-link:hover { border-color: var(--green); color: var(--ink); }
.news-img { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--line); }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-cat { font-size: .7rem; font-weight: 700; color: var(--link); letter-spacing: .08em; text-transform: uppercase; }
.news-card h3 { font-size: .98rem; line-height: 1.3; margin: 0; }
.news-card p { font-size: .85rem; color: var(--muted); line-height: 1.45; margin: 0; }
.news-card time { font-size: .75rem; color: var(--faint); margin-top: auto; }

.resource-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem; border: 1px solid var(--line);
                 border-radius: var(--radius); background: var(--soft); }
.resource-doc { width: 64px; height: 80px; border-radius: 6px; flex-shrink: 0; background: #fff; border: 1px solid var(--line);
                display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
                font-family: 'DM Mono', monospace; font-size: .7rem; font-weight: 500; color: var(--link); }
.resource-doc .ico { width: 22px; height: 22px; }
.resource-card h3 { font-size: 1rem; margin: 0 0 .35rem; }
.resource-card p { font-size: .875rem; color: var(--muted); line-height: 1.45; margin: 0 0 .6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #dbe7f0; }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
              padding: 3rem 0 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .4rem; }
.footer-cta p { color: #b9cddc; margin: 0; max-width: 560px; }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 2.25rem 0 1.75rem; }
.footer-tagline { font-size: .75rem; color: #b9cddc; margin-top: .45rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; }
.footer-links a, .footer-contact a { color: #dbe7f0; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; }
.footer-contact .ico { color: #7fd6bd; margin-right: .3rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 1rem 0; font-size: .8rem; color: #b9cddc; }
.footer-bottom a { color: #b9cddc; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Demo modal ---------- */
.modal-content { border: 0; border-radius: 16px; }
.modal-header { padding: 1.4rem 1.6rem 1rem; border-bottom: 1px solid var(--line); align-items: flex-start; }
.modal-body { padding: 1.4rem 1.6rem 1.6rem; }
.form-label { font-weight: 600; font-size: .86rem; color: var(--ink); }
.form-label .optional { font-weight: 400; color: var(--faint); }
.form-control, .form-select { padding: .65rem .85rem; border-color: #cfdbe6; }
.form-control:focus, .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 .2rem rgba(26, 156, 122, .18); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .reveal { opacity: 1; transform: none; }
}
