/* ==========================================================================
   Theme3 — layered on base.css (the shared component library)
   Look: modelled on imed.ie — clean white panels, navy (#1E2536) type,
   mint (#57B89D) and teal (#22CAC9) accents with small orange (#DB9147) dots,
   diagonal capsule shapes, Montserrat, pill buttons, round scroll-down arrows,
   a mint call-to-action band and a navy footer.
   The layout injects --accent / --accent-rgb / --accent-ink (admin primary
   colour, or mint) and --primary-color (accent shade readable on white).
   ========================================================================== */

:root {
  --navy: #1E2536;
  --navy-2: #2a3349;
  --teal: #22CAC9;
  --orange: #DB9147;
  --accent: #57B89D;
  --accent-rgb: 87, 184, 157;
  --accent-ink: #1E2536;

  --ink: var(--navy);
  --ink-2: var(--navy-2);
  --slate: #4b5468;
  --mute: #8a91a1;
  --paper: #f3f8f6;
  --paper-2: #e7f2ee;
  --line: #e5e5e5;

  --primary-soft: rgba(var(--accent-rgb), .14);
  --primary-line: rgba(var(--accent-rgb), .4);
  --shadow-brand: 0 14px 30px -14px rgba(var(--accent-rgb), .7);

  --font-display: var(--font-family, "Montserrat"), "Segoe UI", system-ui, sans-serif;
  --font-body: var(--font-family, "Montserrat"), "Segoe UI", system-ui, sans-serif;

  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --nav-h: 82px;

  --bs-link-hover-color: var(--navy);
}

/* Decorations never widen the page (clip keeps the sticky header working) */
html:has(body.t3) { overflow-x: clip; }
body.t3 { overflow-x: clip; }
body.t3 main, .t3-band, .t3-footer, .t3-split, .t3-strength, .t3-certs, .t3-units, .t3-values-band { overflow-x: clip; }

/* Type -------------------------------------------------------------------- */
body.t3 { font-size: 1rem; line-height: 1.7; color: var(--slate); font-weight: 500; }
.t3 h1, .t3 h2, .t3 h3, .t3 h4, .t3 h5, .t3 h6, .t3 .h1, .t3 .h2, .t3 .h3, .t3 .h4, .t3 .h5, .t3 .h6 { font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.t3 h1, .t3 .h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); }
.t3 h2, .t3 .h2 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.35rem); }
.t3 a:hover { color: var(--navy); }
::selection { background: rgba(var(--accent-rgb), .3); color: var(--navy); }

/* Kicker: uppercase label with a mint dot (iMed's small green subheads) */
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-color); gap: .6rem; }
.kicker::before { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .2); }
.kicker.on-dark { color: var(--accent); }

/* Buttons: navy pills, uppercase, like iMed's GET IN TOUCH --------------- */
.btn { border-radius: 50px; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; font-weight: 600; padding: .9rem 1.9rem; }
.btn-lg { font-size: .88rem; padding: 1rem 2.2rem; }
.btn-sm { font-size: .72rem; padding: .55rem 1.1rem; }
.btn-primary {
  --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent); --bs-btn-hover-color: var(--accent-ink);
  --bs-btn-active-bg: var(--accent); --bs-btn-active-border-color: var(--accent); --bs-btn-active-color: var(--accent-ink);
  background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 12px 26px -14px rgba(30, 37, 54, .7);
}
.btn-primary:hover, .btn-primary:focus-visible, .btn-primary:active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-brand); }
.btn-outline-primary { --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy); --bs-btn-hover-color: #fff; color: var(--navy); border: 2px solid var(--navy); background: transparent; }
.btn-outline-primary:hover, .btn-outline-primary:active { background: var(--navy); color: #fff; }
.btn-t3-light { background: #fff; color: var(--navy); border: 2px solid #fff; }
.btn-t3-light:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-t3-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75); }
.btn-t3-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-glass { border-radius: 50px; }
.link-arrow { color: var(--navy); font-weight: 600; }
.link-arrow i { color: var(--primary-color); }

/* Chips, icon chips, surfaces --------------------------------------------- */
.icon-chip { border-radius: 50%; background: rgba(var(--accent-rgb), .16); color: var(--primary-color); }
.icon-chip.lg { border-radius: 50%; }
.chip.solid, .pagination .active > .page-link, .pagination .page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.brand { background: rgba(var(--accent-rgb), .18); color: var(--navy); }
.surface { border-color: var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 40px -30px rgba(30, 37, 54, .35); }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .25rem rgba(var(--accent-rgb), .2); }

/* Preloader, progress, back to top --------------------------------------- */
.oo-progress span { background: linear-gradient(90deg, var(--accent), var(--teal)); }
.oo-capsule span:first-child { background: var(--accent); }
.oo-capsule span:last-child { background: var(--navy); }
.oo-top { background: var(--navy); color: #fff; border-radius: 50%; }
.oo-top:hover { background: var(--accent); color: var(--accent-ink); }
.oo-top .bar { stroke: var(--accent); }

/* Header: white bar, small uppercase links with a mint underline ---------- */
.t3-nav { background: #fff; padding: 16px 0; border-bottom: 1px solid transparent; }
.t3-nav.is-scrolled { padding: 8px 0; background: rgba(255,255,255,.97); border-bottom-color: var(--line); box-shadow: 0 14px 30px -24px rgba(30,37,54,.45); }
.t3-nav .navbar-brand img { height: 56px; }
.t3-nav.is-scrolled .navbar-brand img { height: 46px; }
.t3-nav .nav-link { text-transform: uppercase; font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--navy); padding: .9rem 1rem !important; }
.t3-nav .nav-link::after { background: var(--accent) !important; height: 2px !important; }
.t3-nav .nav-link:hover, .t3-nav .nav-link:focus, .t3-nav .nav-link.active { color: var(--navy); }
.t3-nav .dropdown-menu { border-radius: 16px; border-top: 3px solid var(--accent); }
.t3-nav .dropdown-item { font-size: .9rem; }
.t3-nav .dropdown-item:hover, .t3-nav .dropdown-item:focus { background: rgba(var(--accent-rgb), .12); color: var(--navy); }
.t3-nav .btn-search-open { border-radius: 50%; }
.t3-nav .btn-search-open:hover { background: var(--accent); color: var(--accent-ink); }
.t3-nav .nav-download .btn, .t3-nav .nav-download.btn { padding: .6rem 1.2rem; font-size: .72rem; }
.t3-social { gap: .45rem; align-items: center; margin-left: .25rem; }
.t3-social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: .82rem; text-decoration: none; transition: background .25s ease, transform .3s var(--ease-out); }
.t3-social a:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* Decorative shapes: diagonal capsules, dots, dotted fields --------------- */
.t3-capsule { position: absolute; display: block; height: 70px; width: 360px; border-radius: 999px; transform: rotate(-35deg); pointer-events: none; z-index: 0; }
.t3-dot { position: absolute; display: block; border-radius: 50%; pointer-events: none; z-index: 0; }
.t3-dot.mint { width: 64px; height: 64px; background: var(--accent); }
.t3-dot.orange { width: 26px; height: 26px; background: var(--orange); }
.t3-dots { position: absolute; display: block; width: 220px; height: 160px; pointer-events: none; z-index: 0; background-image: radial-gradient(rgba(var(--accent-rgb), .55) 2px, transparent 2.5px); background-size: 16px 16px; transform: rotate(-35deg); }
@keyframes t3Float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes t3Slide { 0%, 100% { translate: 0 0; } 50% { translate: 18px -12px; } }

/* Round scroll-down arrow (iMed signature) --------------------------------- */
.t3-scroll { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 3; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--accent); color: var(--accent); background: #fff; text-decoration: none; animation: t3Bounce 2.4s ease-in-out infinite; transition: background .25s ease, color .25s ease; }
.t3-scroll:hover { background: var(--accent); color: var(--accent-ink); }
.t3-scroll.light { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.t3-scroll.light:hover { background: #fff; color: var(--navy); }
@keyframes t3Bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Home hero ---------------------------------------------------------------- */
.t3-hero { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; padding: 70px 0 120px; background: #fff; }
.t3-hero-art { position: absolute; inset: 0; z-index: -1; }
.t3-hero .t3-capsule.k1 { width: 620px; height: 110px; right: -120px; top: 60px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .0), rgba(var(--accent-rgb), .22)); }
.t3-hero .t3-capsule.k2 { width: 520px; height: 96px; right: -40px; top: 250px; background: linear-gradient(90deg, var(--teal), var(--accent)); opacity: .9; animation: t3Slide 9s ease-in-out infinite; }
.t3-hero .t3-capsule.k3 { width: 460px; height: 92px; right: 140px; bottom: 70px; border: 2px solid var(--line); background: #fff; }
.t3-hero .t3-capsule.k4 { width: 360px; height: 80px; left: -140px; bottom: 40px; background: rgba(var(--accent-rgb), .12); }
.t3-hero .t3-dot.mint { left: 44%; top: 74%; animation: t3Float 6s ease-in-out infinite; }
.t3-hero .t3-dot.orange { left: 55%; bottom: 22%; animation: t3Float 5s ease-in-out infinite reverse; }
.t3-hero .t3-dots { right: 12%; top: 18%; }
.t3 .t3-hero-title { font-size: clamp(2.3rem, 1.4rem + 3.3vw, 4rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; color: var(--navy); margin-bottom: 1.2rem; }
.t3-hero-title .hl { color: var(--primary-color); position: relative; white-space: nowrap; }
.t3-hero-sub { font-size: 1.15rem; max-width: 46ch; margin-bottom: 2rem; color: var(--slate); }
.t3-hero-visual { position: relative; }
.t3-hero-frame { position: relative; border-radius: 220px 40px 220px 40px; overflow: hidden; aspect-ratio: 1 / 1; max-width: 520px; margin-left: auto; background: radial-gradient(circle at 50% 50%, #fff 0%, var(--paper-2) 100%); box-shadow: 0 40px 80px -40px rgba(30,37,54,.45); }
.t3-hero-frame .carousel-inner, .t3-hero-frame .carousel-item { height: 100%; }
.t3-hero-frame .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.t3-hero-frame.plain { display: grid; place-items: center; padding: 8%; }
.t3-hero-frame.plain img { width: 100%; height: auto; animation: t3Float 7s ease-in-out infinite; }
.t3-slide-cap { position: absolute; left: 10%; right: 10%; bottom: 10%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .85rem 1.2rem; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--navy); font-weight: 600; font-size: .92rem; box-shadow: 0 10px 30px -16px rgba(30,37,54,.5); }
.t3-slide-cap a { color: var(--primary-color); font-weight: 700; text-decoration: none; text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; }
.t3-dots-nav { margin-bottom: 4%; }
.t3-dots-nav [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; background: var(--navy); border: 0; opacity: .35; }
.t3-dots-nav .active { background: var(--accent); opacity: 1; }

/* Split sections (who we are / research) ---------------------------------- */
.t3-split { position: relative; padding-bottom: clamp(110px, 7rem + 2vw, 150px); }
.t3-split + .t3-split, .t3-split#land4 { padding-bottom: clamp(64px, 5rem + 2vw, 120px); }
.t3-media { position: relative; border-radius: 40px 160px 40px 40px; overflow: visible; }
.t3-media > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 40px 160px 40px 40px; box-shadow: 0 40px 70px -40px rgba(30,37,54,.5); position: relative; z-index: 1; }
.t3-media.wide > img { aspect-ratio: 7 / 5; }
.t3-media .t3-dot.mint { left: -22px; top: -22px; animation: t3Float 6s ease-in-out infinite; }
.t3-media .t3-dot.orange { right: 18%; bottom: -12px; z-index: 2; }
.t3-badge { position: absolute; z-index: 2; right: -14px; bottom: 28px; background: var(--navy); color: #fff; border-radius: 22px; padding: 1rem 1.3rem; box-shadow: 0 20px 40px -20px rgba(30,37,54,.7); }
.t3-badge .big { display: block; font-size: 1.8rem; font-weight: 700; line-height: 1; color: var(--accent); }
.t3-badge small { color: rgba(255,255,255,.8); font-size: .78rem; }
.t3-circle-media { position: relative; aspect-ratio: 1; max-width: 420px; margin: 0 auto; border-radius: 50%; padding: 18px; background: conic-gradient(from 200deg, var(--accent), var(--teal), rgba(var(--accent-rgb), .1), var(--accent)); animation: t3Spin 18s linear infinite; }
.t3-circle-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 10px solid #fff; animation: t3Spin 18s linear infinite reverse; }
@keyframes t3Spin { to { rotate: 360deg; } }
.t3-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.t3-checks li { display: flex; gap: .9rem; align-items: flex-start; font-size: 1.02rem; color: var(--navy-2); }
.t3-checks i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: var(--accent); color: var(--accent-ink); margin-top: .1rem; }

/* Navy band (why choose us / vision) -------------------------------------- */
.t3-navy { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: rgba(255,255,255,.75); padding-bottom: clamp(120px, 7rem + 2vw, 160px); }
.t3-navy h2, .t3-navy h3 { color: #fff; }
.t3-navy .t3-capsule.n1 { width: 520px; height: 100px; left: -160px; top: 40px; background: rgba(var(--accent-rgb), .14); }
.t3-navy .t3-capsule.n2 { width: 440px; height: 90px; right: -120px; bottom: 60px; border: 2px solid rgba(255,255,255,.12); }
.t3-value { position: relative; height: 100%; padding: 2rem 1.6rem; border-radius: var(--r-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: transform .45s var(--ease-out), background .45s, border-color .45s; }
.t3-value:hover { transform: translateY(-8px); background: rgba(255,255,255,.08); border-color: rgba(var(--accent-rgb), .6); }
.t3-value .ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: var(--accent); color: var(--accent-ink); margin-bottom: 1.3rem; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.t3-value:hover .ic { transform: scale(1.1) rotate(-8deg); }
.t3-value h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.t3-value p { font-size: .93rem; margin: 0; }
.t3-vision { height: 100%; padding: clamp(1.8rem, 1.2rem + 2vw, 3rem); border-radius: var(--r-xl); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.t3-vision .big { color: #fff; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600; line-height: 1.45; margin: 0; }

/* Units gallery ------------------------------------------------------------ */
.t3-units { position: relative; overflow: hidden; }
.t3-units .t3-capsule.c3 { width: 520px; height: 96px; right: -180px; top: 60px; background: rgba(var(--accent-rgb), .12); }
.t3-unit { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 24px 50px -34px rgba(30,37,54,.5); transition: transform .5s var(--ease-out); }
.t3-unit:hover { transform: translateY(-8px); }
.t3-unit .ph { aspect-ratio: 4 / 3; overflow: hidden; }
.t3-unit img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.t3-unit:hover img { transform: scale(1.06); }
.t3-unit figcaption { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.3rem; }
.t3-unit .no { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--accent); font-weight: 700; font-size: .9rem; }
.t3-unit .t { font-weight: 700; color: var(--navy); font-size: 1.1rem; }

/* Certificates ------------------------------------------------------------- */
.t3-certs { background: var(--paper); }
.t3-cert { position: relative; width: 100%; border: 0; padding: 0; background: none; text-align: left; cursor: zoom-in; }
.t3-cert .paper { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14px; background: #fff; padding: 8px; box-shadow: 0 20px 40px -26px rgba(30,37,54,.55); transition: transform .5s var(--ease-out), box-shadow .5s; }
.t3-cert img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 8px; }
.t3-cert:hover .paper { transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 30px 50px -26px rgba(30,37,54,.6); }
.t3-cert .lbl { display: block; margin-top: .75rem; font-size: .88rem; color: var(--slate); }
.t3-cert .lbl b { color: var(--navy); }
.t3-cert .zoom { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s; }
.t3-cert:hover .zoom, .t3-cert:focus-visible .zoom { opacity: 1; transform: scale(1); }
.t3-cert-modal .modal-content { border-radius: var(--r-lg); border: 0; }
.t3-cert-modal img { max-height: 78vh; border-radius: 8px; }

/* Company strength ----------------------------------------------------------- */
.t3-point { display: flex; align-items: center; gap: .8rem; height: 100%; padding: .85rem 1rem; border-radius: 14px; background: var(--paper); color: var(--navy); font-weight: 600; font-size: .93rem; transition: background .3s, transform .3s; }
.t3-point i { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--primary-color); }
.t3-point:hover { background: rgba(var(--accent-rgb), .16); transform: translateX(4px); }
.t3-point.accent { background: var(--navy); color: #fff; }
.t3-point.accent i { background: var(--accent); color: var(--accent-ink); }

/* Verify band -------------------------------------------------------------- */
.t3-verify { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: clamp(28px, 2rem + 2vw, 56px); background: var(--navy); color: rgba(255,255,255,.75); }
.t3-verify h2 { color: #fff; }
.t3-verify .t3-capsule.v1 { width: 460px; height: 90px; right: -80px; top: -10px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .0), rgba(var(--accent-rgb), .35)); z-index: -1; }

/* About extras ------------------------------------------------------------- */
.t3-forms { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.t3-forms span { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px; background: var(--paper); color: var(--navy); font-weight: 600; font-size: .85rem; }
.t3-forms i { color: var(--primary-color); }
.t3-panel { display: flex; gap: 1.1rem; height: 100%; padding: 1.6rem; border-radius: var(--r-lg); background: var(--paper); }
.t3-panel .ic { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.t3-values-band { position: relative; }
.t3-core { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.t3-core > div { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2rem 1rem; text-align: center; border-radius: var(--r-lg); border: 2px solid var(--line); color: var(--navy); font-weight: 700; font-size: 1.05rem; transition: border-color .3s, transform .4s var(--ease-out), background .3s; }
.t3-core > div:hover { border-color: var(--accent); transform: translateY(-6px); background: rgba(var(--accent-rgb), .06); }
.t3-core .ic { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: var(--navy); color: var(--accent); }
.stat-band { background: var(--navy); }

/* Page hero: light panel with capsules (replaces the dark default) --------- */
.page-hero { background: linear-gradient(120deg, #fff 0%, var(--paper) 60%, var(--paper-2) 100%); color: var(--slate); }
.page-hero::before { right: -220px; top: -300px; background: radial-gradient(circle, rgba(var(--accent-rgb), .28) 0%, rgba(var(--accent-rgb), 0) 65%); }
.page-hero::after { display: none; }
.page-hero h1 { color: var(--navy); font-weight: 700; letter-spacing: -.02em; max-width: 22ch; }
.page-hero .hero-sub { color: var(--slate); }
.page-hero .lattice { display: none; }
.page-hero .hero-meta, .page-hero .hero-meta i { color: var(--slate); }
.page-hero .t3-capsule.p1 { width: 520px; height: 96px; right: -100px; top: 30%; background: linear-gradient(90deg, var(--teal), var(--accent)); opacity: .85; z-index: -1; animation: t3Slide 10s ease-in-out infinite; }
.page-hero .t3-capsule.p2 { width: 400px; height: 80px; right: 160px; bottom: -10px; border: 2px solid var(--line); background: #fff; z-index: -1; }
.page-hero .t3-dot.mint { right: 30%; top: 22%; width: 46px; height: 46px; z-index: -1; animation: t3Float 6s ease-in-out infinite; }
.page-hero .t3-dot.orange { right: 22%; bottom: 26%; z-index: -1; }
.crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--navy); }
.crumbs [aria-current] { color: var(--primary-color); }
.crumbs li + li::before { color: var(--mute); }

/* Contact ------------------------------------------------------------------ */
.t3-contact-card { display: block; height: 100%; padding: 1.8rem 1.5rem; border-radius: var(--r-lg); background: var(--paper); color: var(--slate); text-decoration: none; transition: transform .45s var(--ease-out), background .3s, box-shadow .45s; }
a.t3-contact-card:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 30px 50px -30px rgba(30,37,54,.45); color: var(--slate); }
.t3-contact-card .ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--accent); font-size: 1.15rem; margin-bottom: 1rem; }
.t3-contact-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.t3-contact-card p { margin: 0; word-break: break-word; }
.t3-map { border-radius: var(--r-xl); overflow: hidden; height: 100%; min-height: 380px; box-shadow: 0 30px 60px -36px rgba(30,37,54,.5); }
.t3-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.t3-whatsapp { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; padding: 1rem 1.3rem; border-radius: 999px; background: #e9f9ef; color: #127a3c; text-decoration: none; }
.t3-whatsapp i { font-size: 1.4rem; }

/* Cards in the shared pages ---------------------------------------------- */
.product-card { border-radius: var(--r-lg); }
.product-card:hover { border-color: var(--primary-line); }
.product-card .division { color: var(--primary-color); }
.product-card:hover .go { background: var(--accent); color: var(--accent-ink); }
.post-card, .team-card, .tile, .job-card, .doc-card, .media-tile { border-radius: var(--r-lg); }

/* Mint call-to-action band (iMed's subscribe band) ------------------------- */
.t3-band { position: relative; overflow: hidden; isolation: isolate; background: var(--accent); color: var(--accent-ink); padding: clamp(56px, 4rem + 2vw, 96px) 0; }
.t3 .t3-band h2 { color: var(--accent-ink); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); margin-bottom: .6rem; }
.t3-band p { color: var(--accent-ink); opacity: .85; max-width: 56ch; }
.t3-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-start; }
@media (min-width: 992px) { .t3-band .actions { justify-content: flex-end; } }
.t3-band .btn-t3-outline { color: var(--accent-ink); border-color: var(--accent-ink); }
.t3-band .btn-t3-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.t3-band .t3-capsule.c1 { width: 560px; height: 100px; left: -160px; top: -20px; background: rgba(255,255,255,.18); z-index: -1; }
.t3-band .t3-capsule.c2 { width: 420px; height: 84px; right: -100px; bottom: -10px; border: 2px solid rgba(255,255,255,.35); z-index: -1; animation: t3Slide 11s ease-in-out infinite; }
.t3-band .t3-dot.d1 { width: 22px; height: 22px; background: var(--orange); right: 30%; top: 22%; z-index: -1; }

/* Navy footer ------------------------------------------------------------ */
.t3-footer { background: var(--navy); color: rgba(255,255,255,.7); padding-top: 80px; }
.t3-footer.no-cta { padding-top: 80px; }
.t3-footer::before { background: radial-gradient(circle, rgba(var(--accent-rgb), .22), transparent 65%); }
.t3-footer h3 { color: var(--accent); text-transform: uppercase; font-size: .82rem; letter-spacing: .12em; }
.t3-footer a { color: rgba(255,255,255,.82); }
.t3-footer a:hover { color: var(--accent); }
.t3-footer .links a::before { background: var(--accent); }
.t3-footer .contact-line i { border-radius: 50%; background: rgba(var(--accent-rgb), .15); color: var(--accent); }
.t3-footer .oo-social a { border-radius: 50%; background: var(--accent); color: #fff; }
.t3-footer .oo-social a:hover { background: #fff; color: var(--navy); }
.t3-footer .footer-logo { border-radius: 14px; }
.t3-footer .bottom { border-top-color: rgba(255,255,255,.1); color: rgba(255,255,255,.55); }
.t3-footer .bottom a { color: rgba(255,255,255,.7); }

/* Floating buttons ----------------------------------------------------------- */
.contact-float .item { border-radius: 50%; }
.contact-float .call { background: var(--navy); color: #fff; }
.contact-float .message { background: var(--accent); color: var(--accent-ink); }

/* Responsive ----------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .t3-core { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
  .t3-hero { min-height: 0; padding: 50px 0 110px; }
  .t3-hero-frame { margin: 0 auto; max-width: 420px; }
  .t3-hero .t3-capsule.k2 { top: auto; bottom: 120px; opacity: .35; }
  .t3-hero .t3-capsule.k1, .t3-hero .t3-capsule.k3, .t3-hero .t3-dots { display: none; }
  .t3-hero .t3-dot, .t3-band .t3-dot { display: none; }
  .t3-badge { right: 10px; }
  .t3-nav .nav-link { padding: .7rem 0 !important; }
  .t3-nav .navbar-collapse { padding-top: .5rem; }
  .page-hero .t3-capsule.p1 { opacity: .3; }
  .page-hero .t3-capsule.p2, .page-hero .t3-dot { display: none; }
}
@media (max-width: 575.98px) {
  .t3 .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; }
  .t3-core { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .t3-core > div { padding: 1.4rem .6rem; font-size: .95rem; }
  .t3-core .ic { width: 56px; height: 56px; font-size: 1.2rem; }
  .t3-media { margin-left: 10px; }
  .t3 .t3-hero-title { font-size: 2.1rem; }
  .t3-hero-title .hl { white-space: normal; }
  .t3-scroll { width: 44px; height: 44px; bottom: 20px; }
}

/* Mobile contact bar contrast (white icons on solid colours) */
@media (max-width: 767.98px) {
  .contact-float .item { color: #fff; }
  .contact-float .message { color: var(--accent-ink); }
}

@media (prefers-reduced-motion: reduce) {
  .t3-scroll, .t3-hero .t3-capsule, .t3-dot, .t3-hero-frame.plain img, .t3-circle-media, .t3-circle-media img, .page-hero .t3-capsule, .t3-band .t3-capsule { animation: none !important; }
}

/* ==========================================================================
   Home image slider (hero slides from the database)
   ========================================================================== */
.btn-t3-mint { background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); }
.btn-t3-mint:hover { background: #fff; border-color: #fff; color: var(--navy); }

.t3-slider { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); }
.t3-slider .carousel-item { height: clamp(460px, 78vh, 780px); overflow: hidden; }
.t3-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 7s linear; }
.t3-slider .carousel-item.active .t3-slide-img { transform: scale(1); }
.t3-slide-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(30,37,54,.88) 0%, rgba(30,37,54,.62) 42%, rgba(30,37,54,.08) 75%), linear-gradient(0deg, rgba(30,37,54,.55) 0%, transparent 35%); }
.t3-slide-shade.light { background: linear-gradient(0deg, rgba(30,37,54,.45) 0%, transparent 30%); }
.t3-slide-copy { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; padding-bottom: 60px; }
.t3-slide-copy .inner { max-width: 640px; color: rgba(255,255,255,.85); }
.t3-slide-count { display: inline-flex; align-items: center; gap: .7rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; color: var(--accent); margin-bottom: 1.1rem; }
.t3-slide-count i { display: inline-block; width: 46px; height: 2px; background: rgba(255,255,255,.4); }
.t3 .t3-slide-title { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 1rem; }
.t3-slide-sub { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); max-width: 52ch; margin-bottom: 2rem; color: rgba(255,255,255,.82); }
.t3-slide-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* entrance animation of the copy on every slide change */
.t3-slider .carousel-item .t3-slide-count,
.t3-slider .carousel-item .t3-slide-title,
.t3-slider .carousel-item .t3-slide-sub,
.t3-slider .carousel-item .t3-slide-actions { opacity: 0; transform: translateY(26px); }
.t3-slider .carousel-item.active .t3-slide-count,
.t3-slider .carousel-item.active .t3-slide-title,
.t3-slider .carousel-item.active .t3-slide-sub,
.t3-slider .carousel-item.active .t3-slide-actions { animation: t3SlideIn .9s var(--ease-out) forwards; }
.t3-slider .carousel-item.active .t3-slide-title { animation-delay: .12s; }
.t3-slider .carousel-item.active .t3-slide-sub { animation-delay: .24s; }
.t3-slider .carousel-item.active .t3-slide-actions { animation-delay: .36s; }
@keyframes t3SlideIn { to { opacity: 1; transform: none; } }

/* controls: numbered progress dots (left) and round arrows (right) */
.t3-slider-ui { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 4; pointer-events: none; }
.t3-slider-ui .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.t3-slider-dots, .t3-slider-arrows { display: flex; gap: .9rem; pointer-events: auto; }
.t3-slider-dots button { display: flex; align-items: center; gap: .55rem; border: 0; background: none; padding: 6px 0; color: rgba(255,255,255,.6); font-size: .78rem; letter-spacing: .1em; cursor: pointer; }
.t3-slider-dots button b { font-weight: 700; }
.t3-slider-dots button span { display: block; width: 46px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; }
.t3-slider-dots button em { display: block; height: 100%; width: 0; background: var(--accent); }
.t3-slider-dots button.active { color: #fff; }
.t3-slider-dots button.active em { animation: t3Progress 6s linear forwards; }
.t3-slider:hover .t3-slider-dots button.active em { animation-play-state: paused; }
@keyframes t3Progress { to { width: 100%; } }
.t3-slider-arrows button { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.6); background: rgba(30,37,54,.25); color: #fff; backdrop-filter: blur(6px); transition: background .25s ease, border-color .25s ease, color .25s ease, transform .3s var(--ease-out); }
.t3-slider-arrows button:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.06); }

/* iMed capsules sweeping in from the bottom-right edge */
.t3-slider-capsule { position: absolute; z-index: 3; height: 90px; border-radius: 999px; transform: rotate(-35deg); pointer-events: none; }
.t3-slider-capsule.a { width: 480px; right: -140px; bottom: 60px; background: linear-gradient(90deg, rgba(var(--accent-rgb), 0), rgba(var(--accent-rgb), .55)); animation: t3Slide 10s ease-in-out infinite; }
.t3-slider-capsule.b { width: 360px; right: 120px; bottom: -70px; border: 2px solid rgba(255,255,255,.28); }
.t3-slider .t3-scroll { bottom: 22px; z-index: 5; }
@media (min-width: 992px) { .t3-slider .t3-scroll { display: none; } }

@media (max-width: 767.98px) {
  .t3-slider .carousel-item { height: clamp(440px, 72vh, 600px); }
  .t3-slide-shade { background: linear-gradient(0deg, rgba(30,37,54,.92) 0%, rgba(30,37,54,.6) 55%, rgba(30,37,54,.25) 100%); }
  .t3-slide-copy { align-items: flex-end; padding-bottom: 110px; }
  .t3-slider-ui { bottom: 22px; }
  .t3-slider-ui .container { justify-content: center; }
  .t3-slider-arrows, .t3-slider-capsule.b, .t3-slider .t3-scroll { display: none; }
  .t3-slider-dots button span { width: 30px; }
  .t3-slide-actions .btn { padding: .85rem 1.4rem; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .t3-slide-img, .t3-slider .carousel-item.active .t3-slide-img { transform: none; transition: none; }
  .t3-slider .carousel-item .t3-slide-count, .t3-slider .carousel-item .t3-slide-title, .t3-slider .carousel-item .t3-slide-sub, .t3-slider .carousel-item .t3-slide-actions { opacity: 1; transform: none; animation: none !important; }
  .t3-slider-capsule { animation: none; }
}

/* ---------- Home slider: full image at 1920 x 700 (no crop) ----------
   Full width, height from the 1920:700 ratio. 1200px+: text on the image;
   narrower: text below the image. Decorative capsules are left out so they
   don't cover the banner. */
.t3-slider { container-type: inline-size; --hf-h: calc(100cqw * 700 / 1920); }
.t3-slider .carousel-item { height: auto; overflow: hidden; }
.t3-slide-img,
.t3-slider .carousel-item.active .t3-slide-img { position: relative; inset: auto; display: block; width: 100%; height: auto; object-fit: contain; transform: none; transition: none; }
.t3-slider-capsule, .t3-slider .t3-scroll { display: none; }
@media (min-width: 1200px) {
  .t3-slide-copy { padding-bottom: 70px; }
  .t3 .t3-slide-title { font-size: clamp(2rem, 1rem + 2vw, 3.4rem); }
  .t3-slide-sub { margin-bottom: 1.5rem; }
  .t3-slider-ui { bottom: 22px; }
}
@media (max-width: 1199.98px) {
  .t3-slider .carousel-item { height: auto; }
  .t3-slide-shade { display: none; }
  .t3-slide-copy { position: relative; inset: auto; display: block; padding: 22px 0 64px; background: var(--navy); }
  .t3-slide-count { margin-bottom: .6rem; }
  .t3 .t3-slide-title { font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); margin-bottom: .6rem; }
  .t3-slide-sub { font-size: 1rem; margin-bottom: 1.1rem; }
  .t3-slide-actions .btn { padding: .7rem 1.3rem; font-size: .8rem; }
  .t3-slider-ui { bottom: 16px; }
  .t3-slider-ui .container { justify-content: center; }
  .t3-slider-arrows { display: none; }
}
