/* Tez Health Care — Global Experience V21
   Admin-controlled brand colours, health-technology atmosphere and shared motion. */

:root {
    --tez-navy: var(--tez-site-primary, #121943);
    --tez-navy-dark: color-mix(in srgb, var(--tez-site-primary, #121943) 78%, #000 22%);
    --tez-red: var(--tez-site-secondary, #CB203A);
    --tez-red-dark: color-mix(in srgb, var(--tez-site-secondary, #CB203A) 80%, #000 20%);
    --tez-health-accent: var(--tez-site-accent, #0B9275);
    --tez-surface: var(--tez-site-surface, #F5F7FB);
    --tez-background: var(--tez-site-background, #FFFFFF);
    --tez-horizon-navy: var(--tez-site-primary, #121943);
    --tez-horizon-red: var(--tez-site-secondary, #CB203A);
    --tez-global-line: color-mix(in srgb, var(--tez-site-primary, #121943) 12%, #fff 88%);
    --tez-global-shadow: 0 18px 56px color-mix(in srgb, var(--tez-site-primary, #121943) 11%, transparent);
}

html {
    background: var(--tez-background);
}

body.tez-global-site {
    min-height: 100vh;
    overflow-x: clip;
    background:
        radial-gradient(circle at 8% 13%, color-mix(in srgb, var(--tez-red) 5%, transparent), transparent 23rem),
        radial-gradient(circle at 90% 36%, color-mix(in srgb, var(--tez-health-accent) 5%, transparent), transparent 25rem),
        var(--tez-background);
    color: #27324a;
}

body.tez-global-site::selection,
body.tez-global-site *::selection {
    background: color-mix(in srgb, var(--tez-red) 18%, transparent);
    color: var(--tez-navy);
}

.simple-site-main,
.tez-global-site > footer,
.tez-global-site .tez-site-footer {
    position: relative;
    z-index: 2;
}

.simple-site-main {
    isolation: isolate;
}

.simple-site-main > section,
.simple-site-main article,
.simple-site-main [class*="section"] {
    position: relative;
}

/* Health and technology atmosphere */
.tez-health-tech-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: .62;
    contain: strict;
}

.tez-health-tech-atmosphere.scope-hero {
    position: absolute;
    height: min(900px, 100vh);
}

.tez-health-tech-atmosphere.scope-sections {
    opacity: .42;
}

.tez-health-tech-atmosphere.is-subtle { opacity: .28; }
.tez-health-tech-atmosphere.is-balanced { opacity: .52; }
.tez-health-tech-atmosphere.is-expressive { opacity: .72; }

.tez-health-tech-atmosphere > span {
    position: absolute;
    display: grid;
    place-items: center;
    will-change: transform;
}

.tez-health-bubble {
    color: color-mix(in srgb, var(--tez-navy) 35%, transparent);
    border: 1px solid color-mix(in srgb, var(--tez-navy) 11%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, #fff 78%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.85),
        0 18px 48px color-mix(in srgb, var(--tez-navy) 7%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: tezHealthFloat 18s ease-in-out infinite alternate;
}

.tez-health-tech-atmosphere.is-outline .tez-health-bubble {
    background: transparent;
    box-shadow: none;
}

.tez-health-tech-atmosphere.is-brand .tez-health-bubble {
    background: color-mix(in srgb, var(--tez-red) 7%, #fff 93%);
    color: color-mix(in srgb, var(--tez-red) 46%, transparent);
}

.tez-health-bubble svg { width: 42%; height: 42%; }

.bubble-cross {
    width: 112px;
    height: 112px;
    top: 12%;
    left: -38px;
    color: color-mix(in srgb, var(--tez-red) 44%, transparent);
}

.bubble-pulse {
    width: 152px;
    height: 78px;
    top: 31%;
    right: -44px;
    color: color-mix(in srgb, var(--tez-health-accent) 42%, transparent);
    animation-delay: -6s;
}

.bubble-network {
    width: 98px;
    height: 98px;
    left: 5%;
    bottom: 12%;
    color: color-mix(in srgb, var(--tez-navy) 32%, transparent);
    animation-delay: -11s;
}

.bubble-shield {
    width: 84px;
    height: 84px;
    right: 7%;
    bottom: 28%;
    color: color-mix(in srgb, var(--tez-red) 34%, transparent);
    animation-delay: -3s;
}

.tez-health-ring {
    border: 1px solid color-mix(in srgb, var(--tez-navy) 12%, transparent);
    border-radius: 999px;
    animation: tezHealthSpin 32s linear infinite;
}

.ring-one { width: 220px; height: 220px; top: 8%; right: -120px; }
.ring-two { width: 92px; height: 92px; top: 58%; left: -32px; border-color: color-mix(in srgb, var(--tez-red) 16%, transparent); animation-direction: reverse; }
.ring-three { width: 150px; height: 150px; right: 18%; bottom: -70px; border: 18px solid color-mix(in srgb, var(--tez-health-accent) 4%, transparent); }

.tez-health-grid {
    width: 92px;
    height: 92px;
    opacity: .32;
    background-image: radial-gradient(color-mix(in srgb, var(--tez-navy) 26%, transparent) 1.2px, transparent 1.2px);
    background-size: 13px 13px;
    mask-image: radial-gradient(circle, #000 20%, transparent 73%);
}
.grid-one { top: 43%; left: 1%; }
.grid-two { right: 2%; bottom: 8%; }

.tez-health-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--tez-red);
    opacity: .16;
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--tez-red) 7%, transparent);
    animation: tezHealthPulse 4.5s ease-in-out infinite;
}
.dot-one { top: 18%; left: 37%; }
.dot-two { top: 69%; right: 31%; animation-delay: -1.5s; background: var(--tez-health-accent); }
.dot-three { bottom: 17%; left: 48%; animation-delay: -3s; }

.tez-health-tech-atmosphere.is-minimal .bubble-network,
.tez-health-tech-atmosphere.is-minimal .bubble-shield,
.tez-health-tech-atmosphere.is-minimal .ring-three,
.tez-health-tech-atmosphere.is-minimal .grid-two,
.tez-health-tech-atmosphere.is-minimal .dot-three { display: none; }

.tez-health-tech-atmosphere.is-balanced .grid-two,
.tez-health-tech-atmosphere.is-balanced .ring-three { display: none; }

.tez-health-tech-atmosphere.is-slow > span { animation-duration: 26s; }
.tez-health-tech-atmosphere.is-active > span { animation-duration: 11s; }

@keyframes tezHealthFloat {
    from { transform: translate3d(var(--bubble-pointer-x, 0), var(--bubble-shift-y, 0), 0) rotate(-2deg); }
    to { transform: translate3d(calc(var(--bubble-pointer-x, 0px) + 18px), calc(var(--bubble-shift-y, 0px) - 24px), 0) rotate(8deg); }
}

@keyframes tezHealthSpin { to { transform: rotate(360deg); } }
@keyframes tezHealthPulse { 50% { opacity: .38; transform: scale(1.18); } }

/* Shared scroll reveal */
[data-tez-reveal],
[data-human-reveal] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity .72s ease,
        transform .72s cubic-bezier(.2,.75,.2,1);
}

[data-tez-reveal].is-visible,
[data-human-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Homepage modules V21 */
.tez-home-modules-v21 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(72px, 8vw, 118px) 0;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--tez-surface) 82%, #fff 18%), #fff 50%, color-mix(in srgb, var(--tez-surface) 72%, #fff 28%));
}

.tez-home-modules-v21::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -240px;
    right: -140px;
    border: 64px solid color-mix(in srgb, var(--tez-red) 5%, transparent);
    border-radius: 999px;
    z-index: -1;
}

.tez-home-modules-v21 .thp-home-container {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto;
}

.tez-home-modules-v21-head {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: end;
    margin-bottom: 42px;
}

.tez-home-modules-v21-eyebrow,
.tez-modules-v21-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--tez-red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.tez-home-modules-v21-eyebrow::before,
.tez-modules-v21-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.tez-home-modules-v21-heading h2 {
    max-width: 860px;
    margin: 16px 0 0;
    color: var(--tez-navy);
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 900;
    line-height: .99;
    letter-spacing: -.055em;
}

.tez-home-modules-v21-heading h2 span {
    display: block;
    color: var(--tez-red);
}

.tez-home-modules-v21-heading > p:last-child {
    max-width: 760px;
    margin: 22px 0 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.8;
}

.tez-home-modules-v21-summary {
    display: grid;
    grid-template-columns: auto 1px 1fr;
    gap: 20px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--tez-global-line);
    border-radius: 24px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--tez-global-shadow);
    backdrop-filter: blur(18px);
}

.tez-home-modules-v21-summary > i {
    width: 1px;
    height: 54px;
    background: var(--tez-global-line);
}

.tez-home-modules-v21-summary strong {
    display: block;
    color: var(--tez-navy);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.tez-home-modules-v21-summary span,
.tez-home-modules-v21-summary small {
    display: block;
    margin-top: 5px;
    color: #8a94a6;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.tez-home-modules-v21-summary b {
    display: block;
    margin-top: 5px;
    color: var(--tez-navy);
    font-size: 13px;
    line-height: 1.45;
}

.tez-home-modules-v21-summary a {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 17px;
    border-top: 1px solid var(--tez-global-line);
    color: var(--tez-navy);
    font-size: 13px;
    font-weight: 900;
}

.tez-home-modules-v21-grid {
    display: grid;
    grid-template-columns: repeat(var(--tez-module-columns, 4), minmax(0, 1fr));
    gap: 16px;
}

.tez-home-module-v21-card {
    --module-accent: var(--tez-red);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--tez-global-line);
    border-radius: 22px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 12px 36px rgba(18,25,67,.055);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.tez-home-module-v21-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--module-accent) 32%, #fff 68%);
    box-shadow: 0 24px 56px rgba(18,25,67,.105);
}

.tez-home-module-v21-inner {
    display: flex;
    min-height: 300px;
    height: 100%;
    flex-direction: column;
    padding: 22px;
    color: inherit;
    text-decoration: none;
}

.tez-home-module-v21-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tez-home-module-v21-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--module-accent) 18%, #fff 82%);
    border-radius: 15px;
    background: color-mix(in srgb, var(--module-accent) 8%, #fff 92%);
    color: var(--module-accent);
    font-size: 21px;
    font-weight: 900;
}

.tez-home-module-v21-icon img { width: 26px; height: 26px; object-fit: contain; }
.tez-home-module-v21-category { color: var(--module-accent); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-align: right; text-transform: uppercase; }
.tez-home-module-v21-card h3 { margin: 24px 0 0; color: var(--tez-navy); font-size: 23px; font-weight: 850; letter-spacing: -.025em; line-height: 1.15; }
.tez-home-module-v21-card p { margin: 12px 0 0; color: #697386; font-size: 14px; line-height: 1.7; }

.tez-home-module-v21-points {
    display: grid;
    gap: 7px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.tez-home-module-v21-points li {
    position: relative;
    padding-left: 17px;
    color: #445068;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.tez-home-module-v21-points li::before {
    content: "";
    position: absolute;
    top: .52em;
    left: 0;
    width: 7px;
    height: 7px;
    border: 2px solid var(--module-accent);
    border-radius: 99px;
}

.tez-home-module-v21-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    color: var(--tez-navy);
    font-size: 12px;
    font-weight: 900;
}

.tez-home-module-v21-foot i {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 999px;
    background: var(--module-accent);
    color: #fff;
    font-style: normal;
}

.tez-home-modules-v21-mobile-action { display: none; margin-top: 24px; }
.tez-home-modules-v21-mobile-action a { display: flex; justify-content: space-between; color: var(--tez-navy); font-size: 14px; font-weight: 900; }

/* Small global refinements */
.tez-global-site a,
.tez-global-site button {
    -webkit-tap-highlight-color: transparent;
}

.tez-global-site img {
    max-width: 100%;
}

@media (max-width: 1180px) {
    .tez-home-modules-v21-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .tez-home-modules-v21-head { grid-template-columns: 1fr; }
    .tez-home-modules-v21-summary { max-width: 560px; }
    .tez-home-modules-v21-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bubble-network, .grid-one { display: none; }
}

@media (max-width: 640px) {
    .tez-health-tech-atmosphere { opacity: .28; }
    .bubble-pulse { width: 110px; height: 58px; }
    .bubble-cross { width: 82px; height: 82px; }
    .bubble-shield, .ring-two, .grid-two, .dot-two, .dot-three { display: none; }

    .tez-home-modules-v21 { padding: 64px 0; }
    .tez-home-modules-v21 .thp-home-container { width: min(100% - 24px, 1240px); }
    .tez-home-modules-v21-heading h2 { font-size: clamp(34px, 11.5vw, 48px); }
    .tez-home-modules-v21-summary { grid-template-columns: auto 1px 1fr; padding: 19px; border-radius: 19px; }
    .tez-home-modules-v21-grid { grid-template-columns: 1fr; }
    .tez-home-module-v21-inner { min-height: auto; }
    .tez-home-modules-v21-mobile-action { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    .tez-health-tech-atmosphere > span { animation: none !important; }
    [data-tez-reveal], [data-human-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .tez-home-module-v21-card { transition: none; }
}

/* Admin brand colours also drive the approved header and footer components. */
.tez-h19-header {
    --tez-h19-navy: var(--tez-site-primary, #121943);
    --tez-h19-navy-dark: color-mix(in srgb, var(--tez-site-primary, #121943) 78%, #000 22%);
    --tez-h19-red: var(--tez-site-secondary, #CB203A);
    --tez-h19-red-dark: color-mix(in srgb, var(--tez-site-secondary, #CB203A) 80%, #000 20%);
}

.tez-site-footer-v3 {
    --footer-navy: var(--tez-site-primary, #121943);
    --footer-navy-deep: color-mix(in srgb, var(--tez-site-primary, #121943) 72%, #000 28%);
    --footer-red: var(--tez-site-secondary, #CB203A);
    --footer-red-dark: color-mix(in srgb, var(--tez-site-secondary, #CB203A) 80%, #000 20%);
}

/* Global page loading indicator: delayed on first paint to avoid flicker and
   immediate during confirmed internal navigation or form submission. */
.tez-page-loader {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(248, 250, 253, .82);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    transition: opacity .18s ease, visibility .18s ease;
}

html.tez-page-loading .tez-page-loader {
    visibility: visible;
    pointer-events: auto;
    animation: tezPageLoaderReveal .16s ease .12s forwards;
}

html.tez-page-loading.tez-page-leaving .tez-page-loader {
    animation-delay: 0s;
}

.tez-page-loader-bar {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    overflow: hidden;
    background: rgba(18, 25, 67, .08);
}

.tez-page-loader-bar::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 38%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tez-site-secondary, #cb203a), #ef6278, var(--tez-site-primary, #121943));
    animation: tezPageLoaderBar 1s cubic-bezier(.45, 0, .2, 1) infinite;
}

.tez-page-loader-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: min(100%, 280px);
    padding: 15px 17px;
    border: 1px solid rgba(18, 25, 67, .1);
    border-radius: 17px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(18, 25, 67, .16);
}

.tez-page-loader-mark {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--tez-site-secondary, #cb203a);
    color: #fff;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1;
    box-shadow: 0 9px 22px rgba(203, 32, 58, .22);
    animation: tezPageLoaderPulse 1.25s ease-in-out infinite;
}

.tez-page-loader-copy {
    display: block;
    min-width: 0;
}

.tez-page-loader-copy strong,
.tez-page-loader-copy small {
    display: block;
}

.tez-page-loader-copy strong {
    color: var(--tez-site-primary, #121943);
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: -.01em;
}

.tez-page-loader-copy small {
    margin-top: 2px;
    color: #7b8596;
    font-size: .67rem;
    font-weight: 650;
}

.tez-page-loader-dots {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.tez-page-loader-dots i {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--tez-site-primary, #121943);
    opacity: .25;
    animation: tezPageLoaderDot .9s ease-in-out infinite;
}

.tez-page-loader-dots i:nth-child(2) { animation-delay: .12s; }
.tez-page-loader-dots i:nth-child(3) { animation-delay: .24s; }

@keyframes tezPageLoaderReveal {
    to { opacity: 1; }
}

@keyframes tezPageLoaderBar {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(360%); }
}

@keyframes tezPageLoaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.055); }
}

@keyframes tezPageLoaderDot {
    0%, 100% { opacity: .22; transform: translateY(0); }
    50% { opacity: .9; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .tez-page-loader,
    .tez-page-loader-bar::after,
    .tez-page-loader-mark,
    .tez-page-loader-dots i {
        animation: none !important;
        transition: none !important;
    }

    html.tez-page-loading .tez-page-loader {
        opacity: 1;
    }
}
