/* =========================================================
   UTEM Logistics — main stylesheet (Bootstrap 5 overrides)
   Primary  : #0ea2c8
   Secondary: #263c75
   ========================================================= */
:root {
    --utem-primary: #0ea2c8;
    --utem-primary-dark: #0b86a6;
    --utem-secondary: #263c75;
    --utem-secondary-dark: #182a57;
    --utem-ink: #16213d;
    --utem-muted: #63718a;
    --utem-soft: #f3f7fb;
    --utem-line: #e3e9f1;
    --utem-cyan-soft: #e5f7fc;

    --bs-primary: #0ea2c8;
    --bs-primary-rgb: 14, 162, 200;
    --bs-secondary: #263c75;
    --bs-secondary-rgb: 38, 60, 117;
    --bs-link-color: #0ea2c8;
    --bs-link-hover-color: #263c75;
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: #16213d;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { overflow-x: hidden; }
h1, h2, h3, h4, .navbar, .btn { font-family: "Montserrat", "Inter", sans-serif; }
a { text-decoration: none; }
::selection { background: var(--utem-primary); color: #fff; }

/* ---------- Buttons ---------- */
.btn-utem {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--utem-primary);
    --bs-btn-border-color: var(--utem-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--utem-secondary);
    --bs-btn-hover-border-color: var(--utem-secondary);
    --bs-btn-active-bg: var(--utem-secondary-dark);
    --bs-btn-active-border-color: var(--utem-secondary-dark);
    --bs-btn-active-color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding-inline: 1.5rem;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    box-shadow: 0 10px 24px rgba(14,162,200,.28);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn-utem:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(38,60,117,.3); }
.btn-utem.btn-sm { padding-inline: 1rem; }
.btn-glass {
    color: #fff; font-weight: 700; border-radius: 999px; padding-inline: 1.5rem;
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.45);
    backdrop-filter: blur(8px);
}
.btn-glass:hover { background: #fff; color: var(--utem-secondary); }

/* ---------- Top bar ---------- */
.topbar { background: var(--utem-secondary); color: #c9d4ec; font-size: .82rem; padding: .5rem 0; }
.topbar a, .topbar span { color: #c9d4ec; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--utem-primary); margin-right: .3rem; }
.social-mini a i { color: #c9d4ec; margin: 0; font-size: .95rem; }
.social-mini a:hover i { color: var(--utem-primary); }

/* ---------- Navbar ---------- */
.site-nav {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(38,60,117,.06);
    padding: .7rem 0;
    transition: box-shadow .3s ease, padding .3s ease;
}
.site-nav.scrolled { box-shadow: 0 8px 30px rgba(22,33,61,.08); padding: .4rem 0; }
.brand-logo { height: 52px; width: auto; transition: height .3s ease; }
.site-nav.scrolled .brand-logo { height: 44px; }
.site-nav .nav-link {
    color: var(--utem-secondary); font-weight: 700; font-size: .93rem;
    padding: .6rem .95rem !important; position: relative;
}
.site-nav .nav-link::after {
    content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .25rem;
    height: 2px; border-radius: 2px; background: var(--utem-primary);
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--utem-primary); }
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
/* dropdown: replace Bootstrap caret/underline with a chevron */
.site-nav .nav-link.dropdown-toggle::after,
.site-nav .nav-link.dropdown-toggle:hover::after,
.site-nav .nav-link.dropdown-toggle.active::after {
    content: "\F282"; font-family: "bootstrap-icons"; font-size: .7rem;
    position: static; display: inline-block; vertical-align: middle; margin-left: .35rem;
    width: auto; height: auto; border: 0; background: none; transform: none;
    transform-origin: center; /* rotate in place (the underline above uses "left") */
    line-height: 1;
    transition: transform .25s ease;
}
.site-nav .dropdown:hover .dropdown-toggle::after, .site-nav .dropdown-toggle.show::after { transform: rotate(180deg); }
/* Bootstrap 5.3 paints an open dropdown link with its own navbar colour (near-black) and a blue focus ring */
.site-nav .navbar-nav .nav-link.show { color: var(--utem-primary); }
.site-nav .nav-link:focus-visible { box-shadow: 0 0 0 3px var(--utem-cyan-soft); border-radius: 10px; }
.navbar-toggler { border: 0; font-size: 1.9rem; color: var(--utem-secondary); box-shadow: none !important; }
.dropdown-menu {
    border: 0; border-radius: 16px; padding: .6rem;
    box-shadow: 0 20px 50px rgba(22,33,61,.14);
    min-width: 260px;
}
.dropdown-item { border-radius: 10px; padding: .6rem .8rem; font-weight: 600; color: var(--utem-secondary); font-size: .9rem; }
.dropdown-item i { color: var(--utem-primary); width: 1.4rem; display: inline-block; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--utem-cyan-soft); color: var(--utem-primary); }
@media (min-width: 992px) {
    .site-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; animation: dropIn .2s ease; }
}
@keyframes dropIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--utem-secondary); }
.min-vh-hero { min-height: calc(100vh - 120px); min-height: calc(100svh - 120px); padding: 5rem 0 6rem; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgba(24,42,87,.94) 0%, rgba(38,60,117,.78) 45%, rgba(14,162,200,.35) 100%),
        linear-gradient(0deg, rgba(10,18,40,.45), transparent 40%);
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .45rem 1rem; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
    font-weight: 600; font-size: .85rem; letter-spacing: .03em; backdrop-filter: blur(6px);
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ee6a8; box-shadow: 0 0 0 0 rgba(62,230,168,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(62,230,168,0); } 100% { box-shadow: 0 0 0 0 rgba(62,230,168,0); } }
.hero-title { font-size: clamp(2.3rem, 5.4vw, 4.3rem); color: rgba(255,255,255,.85); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; margin: 1.4rem 0; }
.hero-title span { background: linear-gradient(90deg, #5fd8f4, var(--utem-primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { font-size: 1.12rem; max-width: 600px; color: rgba(255,255,255,.85); margin-bottom: 2rem; line-height: 1.75; }
.scroll-down {
    position: absolute; left: 50%; bottom: 2.4rem; transform: translateX(-50%);
    width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
    color: #fff; border: 1px solid rgba(255,255,255,.4); animation: bob 2s ease-in-out infinite;
}
.scroll-down:hover { color: var(--utem-primary); background: #fff; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -1rem; }
.stats .row { background: #fff; border-radius: 22px; box-shadow: 0 25px 60px rgba(22,33,61,.12); overflow: hidden; }
.stat { display: flex; align-items: center; gap: 1rem; padding: 1.6rem 1.5rem; border-right: 1px solid var(--utem-line); }
.stat:last-child { border-right: 0; }
.stat > i { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; border-radius: 16px; background: var(--utem-cyan-soft); color: var(--utem-primary); font-size: 1.5rem; }
.stat strong { display: block; font-family: "Montserrat", sans-serif; font-size: 1.6rem; color: var(--utem-secondary); line-height: 1.1; }
.stat span { color: var(--utem-muted); font-size: .85rem; }

/* ---------- Generic section ---------- */
/* 48px on phones → 80px on desktop (was 72–112px top AND bottom, i.e. up to 224px between sections) */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
/* two sections with the same background next to each other: don't double the gap */
.section:not(.section-soft):not(.route-section) + .section:not(.section-soft):not(.route-section),
.section-soft + .section-soft { padding-top: 0; }
.section-soft { background: var(--utem-soft); }
/* Bootstrap's g-5 (3rem) horizontal gutter is wider than the container padding on phones → page scrolls sideways */
@media (max-width: 575.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }
.heading-center { max-width: 680px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    color: var(--utem-primary); font-weight: 700; font-size: .78rem;
    letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow-light { color: #7fe0f5; }
.section-title { color: var(--utem-secondary); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.15; letter-spacing: -.025em; margin: .8rem 0 1rem; }
.heading-center .section-title:last-child { margin-bottom: .4rem; } /* title without a lead text under it */
.section-title span { color: var(--utem-primary); }
.lead-muted { color: var(--utem-muted); font-size: 1.02rem; line-height: 1.8; }

/* ---------- About ---------- */
.about-visual { position: relative; min-height: 440px; display: grid; place-items: center; }
.about-bg {
    position: absolute; inset: 0 40px 0 0; border-radius: 32px 120px 32px 32px;
    background:
        radial-gradient(circle at 20% 20%, rgba(14,162,200,.25), transparent 50%),
        linear-gradient(140deg, var(--utem-secondary), var(--utem-secondary-dark));
}
.about-bg::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .15;
    background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
    background-size: 36px 36px;
}
.about-card {
    position: relative; width: min(80%, 380px); padding: 2.5rem 2rem; border-radius: 26px;
    background: #fff; box-shadow: 0 30px 60px rgba(10,18,40,.3);
    transform: translateX(-20px);
}
.about-card img { width: 100%; height: auto; }
.about-chip {
    position: absolute; display: flex; align-items: center; gap: .75rem;
    padding: .8rem 1.1rem; border-radius: 16px; background: #fff;
    box-shadow: 0 16px 40px rgba(22,33,61,.18); animation: float 5s ease-in-out infinite;
}
.about-chip i { font-size: 1.5rem; color: var(--utem-primary); }
.about-chip small { display: block; font-size: .65rem; font-weight: 700; letter-spacing: .1em; color: var(--utem-muted); }
.about-chip strong { font-size: .9rem; color: var(--utem-secondary); }
.chip-a { top: 28px; right: 0; }
.chip-b { bottom: 28px; left: 10px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.about-checks > div { font-weight: 600; color: var(--utem-secondary); font-size: .95rem; }
.about-checks i { color: var(--utem-primary); margin-right: .45rem; }
.reg-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.reg-row span { padding: .45rem .9rem; border-radius: 999px; background: var(--utem-cyan-soft); color: var(--utem-secondary); font-size: .82rem; font-weight: 600; }
.reg-row i { color: var(--utem-primary); }

/* ---------- Services ---------- */
.service-card {
    height: 100%; background: #fff; border-radius: 22px; overflow: hidden;
    padding: 0; /* style.css (old template) adds 30px 26px 65px → big empty area at the bottom of each card */
    display: flex; flex-direction: column;
    border: 1px solid var(--utem-line);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 28px 55px rgba(22,33,61,.12); border-color: transparent; }
.service-img {
    position: relative; height: 150px; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, var(--c1), var(--c2));
}
.service-img::before, .service-img::after {
    content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
}
.service-img::before { width: 220px; height: 220px; right: -70px; top: -90px; }
.service-img::after { width: 140px; height: 140px; left: -40px; bottom: -70px; }
.service-img i { font-size: 3.6rem; color: #fff; transition: transform .4s ease; }
.service-card:hover .service-img i { transform: scale(1.12) rotate(-6deg); }
.service-body { padding: 1.4rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-body .service-more { margin-top: auto; } /* "Read more" lines up at the bottom of every card */
.service-tag { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--utem-primary); }
.service-body h3 { font-size: 1.2rem; font-weight: 800; color: var(--utem-secondary); margin: .4rem 0 .7rem; }
.service-body p { color: var(--utem-muted); font-size: .92rem; line-height: 1.7; margin-bottom: 1rem; }
.service-more {
    border: 0; background: none; padding: 0; font-weight: 700; font-size: .88rem;
    color: var(--utem-secondary); display: inline-flex; align-items: center; gap: .4rem;
}
.service-more i { transition: transform .25s ease; color: var(--utem-primary); }
button.service-more:not(.collapsed) i { transform: rotate(180deg); }
.service-more:hover { color: var(--utem-primary); }
.service-list { list-style: none; padding: .9rem 0 0; margin: 0; }
.service-list li { position: relative; padding-left: 1.5rem; font-size: .88rem; color: var(--utem-ink); margin-bottom: .45rem; }
.service-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--utem-primary); }
.hidded-service { display: none !important; } /* "hide" is not a CSS value — "none" hides the element */

/* ---------- Route map ---------- */
.route-section {
    background:
        radial-gradient(circle at 90% 10%, rgba(14,162,200,.3), transparent 35rem),
        linear-gradient(160deg, var(--utem-secondary), var(--utem-secondary-dark));
    color: #fff;
}
.route-section .section-title span { color: #5fd8f4; }
.route-text { color: #c9d4ec; line-height: 1.8; }
.route-steps { list-style: none; padding: 0; margin: 1.8rem 0 0; position: relative; }
.route-steps::before { content: ""; position: absolute; left: 22px; top: 22px; bottom: 22px; border-left: 2px dashed rgba(255,255,255,.25); }
.route-steps li { position: relative; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.step-ic { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 14px; background: var(--utem-primary); color: #fff; font-size: 1.2rem; box-shadow: 0 0 0 6px rgba(14,162,200,.2); }
.route-steps strong { display: block; }
.route-steps small { color: #aebbd8; }
.map-frame { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
#routeMap { height: 480px; width: 100%; background: #dfe9f2; }
.map-legend {
    position: absolute; z-index: 500; left: 50%; bottom: 16px; transform: translateX(-50%);
    display: flex; gap: .35rem; padding: .35rem; border-radius: 999px;
    background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(22,33,61,.2);
}
.mode-btn {
    border: 0; background: transparent; border-radius: 999px; padding: .45rem .9rem;
    font-weight: 700; font-size: .82rem; color: var(--utem-secondary); white-space: nowrap;
    font-family: "Montserrat", sans-serif; transition: background .2s ease, color .2s ease;
}
.mode-btn.active, .mode-btn:hover { background: var(--utem-primary); color: #fff; }

/* Leaflet custom layers */
.route-line { stroke-dasharray: 10 12; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.city-marker { position: absolute; } /* Leaflet places markers absolutely; "relative" stacks them and shifts each one down */
.city-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--utem-primary); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); position: relative; }
.city-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--utem-primary); animation: ring 2s ease-out infinite; }
.city-dot.hq { background: var(--utem-secondary); }
.city-dot.hq::after { border-color: var(--utem-secondary); }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.city-label {
    position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    background: #fff; color: var(--utem-secondary); padding: .35rem .75rem; border-radius: 10px;
    font: 700 .78rem/1.2 "Montserrat", sans-serif; white-space: nowrap; box-shadow: 0 6px 18px rgba(22,33,61,.2);
}
.city-label-tr { left: 20px; bottom: 14px; transform: none; }  /* upper right of the hub */
.city-label-bl { left: auto; right: 20px; bottom: auto; top: 14px; transform: none; } /* lower left of the hub */
.city-label small { display: block; font-weight: 600; font-size: .62rem; color: var(--utem-muted); letter-spacing: .05em; }
.vehicle-icon { width: 40px; height: 40px; }
.vehicle-icon > div {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--utem-secondary); color: #fff; font-size: 1.15rem;
    border: 3px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.leaflet-container { font-family: "Inter", sans-serif; }

/* Route network: cities served from the two hubs (utem.js → DESTINATIONS) */
.spoke-line { stroke-dasharray: 4 8; animation-duration: 1.6s; }
.dest-marker { position: absolute; }
.dest-dot {
    position: absolute; inset: 0; border-radius: 50%; background: #fff;
    border: 3px solid var(--utem-primary); box-shadow: 0 2px 6px rgba(22,33,61,.3);
}
.dest-label {
    position: absolute; white-space: nowrap; padding: .12rem .45rem; border-radius: 6px;
    background: rgba(255,255,255,.92); color: var(--utem-secondary);
    font: 700 .66rem/1.2 "Montserrat", sans-serif; box-shadow: 0 2px 8px rgba(22,33,61,.15);
}
.dest-top    { bottom: 16px; left: 50%; transform: translateX(-50%); }
.dest-bottom { top: 16px;    left: 50%; transform: translateX(-50%); }
.dest-left   { right: 16px;  top: 50%;  transform: translateY(-50%); }
.dest-right  { left: 16px;   top: 50%;  transform: translateY(-50%); }
/* small truck / train / plane moving on each route (utem.js → MODE_ICONS) */
.mini-vehicle > span {
    width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
    color: #fff; font-size: .68rem; border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(14,162,200,.18), 0 3px 8px rgba(0,0,0,.3);
}
.parcel-dot > span {
    display: block; width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(14,162,200,.25), 0 2px 6px rgba(0,0,0,.3);
}

/* ---------- Partners marquee ---------- */
.partners-section { overflow: hidden; }
.marquee {
    position: relative; overflow: hidden; padding: .6rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee + .marquee { margin-top: .6rem; }
.marquee-track { display: flex; width: max-content; gap: 1.2rem; animation: scroll-x 60s linear infinite; }
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(calc(-50% - .6rem)); } }
.partner-logo {
    position: relative; flex: 0 0 auto; width: 170px; height: 110px;
    background: #fff; border: 1px solid var(--utem-line); border-radius: 18px; overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* The uploaded logos are square (300×300) with white margins: the image is pinned to the tile,
   fitted inside it (object-fit: contain) and enlarged a little to trim the empty margin — always centred, never cut off */
.partner-logo img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
    transform: scale(1.15); filter: grayscale(100%); opacity: .75; transition: filter .3s ease, opacity .3s ease;
}
.partner-logo:hover { transform: translateY(-4px); border-color: var(--utem-primary); box-shadow: 0 14px 30px rgba(14,162,200,.18); }
.partner-logo:hover img { filter: none; opacity: 1; }

/* ---------- Certificates ---------- */
.cert-card {
    position: relative; height: 100%; text-align: center; padding: 2.4rem 1.8rem 2rem;
    background: #fff; border-radius: 22px; border: 1px solid var(--utem-line); overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.cert-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--utem-primary), var(--utem-secondary)); }
.cert-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(22,33,61,.1); }
.cert-ribbon { position: absolute; top: 18px; right: 18px; color: var(--utem-primary); font-size: 1.4rem; }
/* Width utility Bootstrap doesn't have (it only ships w-25 / w-50 / w-75 / w-100 / w-auto) */

/* Certificate image shown as an icon: fixed box, picture scaled to fit inside without stretching */
/* round icon (the uploaded images are landscape flags/logos → cropped to a circle) */
.cert-icon {
    display: block; width: 72px; height: 72px; margin: 0 auto 1.1rem;
    border-radius: 50%; object-fit: cover; background: #fff;
    border: 4px solid #fff; box-shadow: 0 0 0 1px var(--utem-line), 0 10px 24px rgba(22,33,61,.14);
}
.cert-icon-lg { width: 96px; height: 96px; margin: 0 0 1.2rem; }

/* certificate card = link to certificate.php */
.cert-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
/* icon at the top; name, text and "View details" together at the bottom (end) of the card */
.cert-link h3 { margin-top: auto; }
.cert-link:hover { color: inherit; }
.cert-link:focus-visible { outline: 3px solid var(--utem-cyan-soft); outline-offset: 3px; }
.cert-more {
    display: flex; justify-content: center; align-items: center; gap: .35rem; margin-top: 1rem;
    font-weight: 700; font-size: .88rem; color: var(--utem-primary);
}
.cert-more i { transition: transform .25s ease; }
.cert-link:hover .cert-more i { transform: translateX(4px); }
.cert-link:hover .cert-icon { box-shadow: 0 0 0 2px var(--utem-primary), 0 12px 28px rgba(14,162,200,.25); }

/* ---------- Certificate page (certificate.php) ---------- */
.cert-crumbs { --bs-breadcrumb-divider-color: var(--utem-muted); font-size: .88rem; margin-bottom: 1.8rem; }
.cert-crumbs a { color: var(--utem-muted); text-decoration: none; }
.cert-crumbs a:hover { color: var(--utem-primary); }
.cert-crumbs .active { color: var(--utem-secondary); font-weight: 600; }
.cert-detail, .cert-document, .cert-empty {
    background: #fff; border: 1px solid var(--utem-line); border-radius: 24px;
    box-shadow: 0 20px 50px rgba(22,33,61,.06);
}
/* info card (left) and document / description card (right) are always the same height (row: align-items-stretch) */
.cert-detail { position: relative; padding: 2rem; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.cert-detail-actions { margin-top: auto; padding-top: .4rem; } /* buttons at the bottom of the card */
.cert-detail::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--utem-primary), var(--utem-secondary)); }
.cert-detail-name { font-size: 1.25rem; font-weight: 800; color: var(--utem-secondary); margin: .6rem 0 0; }
.cert-detail-text { color: var(--utem-muted); font-size: .95rem; line-height: 1.7; margin: .5rem 0 0; }
.cert-facts { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .6rem; }
.cert-facts li { display: flex; align-items: center; gap: .6rem; color: var(--utem-muted); font-size: .92rem; }
.cert-facts i { color: var(--utem-primary); font-size: 1.05rem; }
.cert-facts strong { color: var(--utem-secondary); }
.btn-outline-utem {
    border: 1px solid var(--utem-line); background: #fff; color: var(--utem-secondary); font-weight: 700;
    border-radius: 999px; padding-inline: 1.2rem; display: inline-flex; align-items: center; gap: .45rem;
}
.btn-outline-utem:hover { border-color: var(--utem-primary); color: var(--utem-primary); background: var(--utem-cyan-soft); }
.cert-document { padding: 1rem; height: 100%; display: flex; flex-direction: column; }
.cert-document-head {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: .3rem .5rem 1rem; font-weight: 700; color: var(--utem-secondary); font-size: .95rem;
}
.cert-document-head i { color: var(--utem-primary); }
.cert-document-head a { color: var(--utem-primary); text-decoration: none; font-size: .88rem; }
/* document area fills the rest of the card; the image is capped so it stays about as tall as the info card */
.cert-document-image {
    flex: 1; display: flex; align-items: center; justify-content: center; padding: .8rem;
    border-radius: 16px; overflow: hidden; background: var(--utem-soft); border: 1px solid var(--utem-line); cursor: zoom-in;
}
.cert-document-image img { display: block; max-width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.cert-document-pdf { display: block; flex: 1; width: 100%; min-height: 520px; border: 0; border-radius: 16px; background: var(--utem-soft); }
/* gallery of several pages (certificate.php, utem.js → initCertificateGallery) */
.cert-viewer { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cert-viewer [hidden] { display: none !important; }
.cert-viewer-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%;
    background: rgba(22,33,61,.7); color: #fff; font-size: 1.1rem; box-shadow: 0 6px 16px rgba(0,0,0,.2);
    transition: background .2s ease;
}
.cert-viewer-nav:hover { background: var(--utem-primary); }
.cert-viewer-prev { left: .8rem; }
.cert-viewer-next { right: .8rem; }
.cert-doc-counter { margin-left: .6rem; font-weight: 600; color: var(--utem-muted); font-size: .82rem; }
.cert-doc-counter b { color: var(--utem-secondary); }
.cert-thumbs { display: flex; gap: .5rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .2rem; }
.cert-thumb {
    flex: 0 0 64px; height: 80px; padding: 0; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
    background: var(--utem-soft); border: 2px solid var(--utem-line); color: var(--utem-primary); font-size: 1.6rem;
    opacity: .7; transition: border-color .2s ease, opacity .2s ease;
}
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cert-thumb:hover { opacity: 1; }
.cert-thumb.active { opacity: 1; border-color: var(--utem-primary); }

/* full-size popup of a certificate page (certificate.php #certLightbox) */
.cert-lightbox .modal-content { position: relative; align-items: center; background: transparent; border: 0; box-shadow: none; }
.cert-lightbox img {
    display: block; max-width: 100%; max-height: 86vh; width: auto; height: auto;
    border-radius: 14px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.cert-lightbox-close {
    position: fixed; top: 1.2rem; right: 1.2rem; z-index: 2; width: 2.8rem; height: 2.8rem; padding: 0; border-radius: 50%;
    background-color: rgba(255,255,255,.15); background-size: .9rem; opacity: 1; filter: none;
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    transition: background-color .2s ease;
}
.cert-lightbox-close:hover { background-color: var(--utem-primary); }
.cert-lightbox-open .modal-backdrop.show { opacity: .85; }

.cert-document-empty {
    flex: 1; display: grid; place-items: center; text-align: center; gap: .9rem; min-height: 360px; padding: 2rem;
    border-radius: 16px; border: 2px dashed #c9d6e6; background: var(--utem-soft); color: var(--utem-muted);
}
.cert-document-empty > i { font-size: 3rem; color: var(--utem-primary); }
.cert-document-empty p { max-width: 380px; margin: 0; }
.cert-empty { padding: 3rem 1.5rem; }
.cert-empty > i { font-size: 3rem; color: var(--utem-primary); }
.cert-mini {
    display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1rem 1.2rem; border-radius: 18px;
    background: #fff; border: 1px solid var(--utem-line); color: inherit; text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cert-mini:hover { transform: translateY(-3px); border-color: var(--utem-primary); box-shadow: 0 14px 30px rgba(14,162,200,.14); color: inherit; }
.cert-mini .cert-icon { width: 52px; height: 52px; margin: 0; flex: 0 0 52px; border-width: 3px; }
.cert-mini span { flex: 1; min-width: 0; }
.cert-mini strong { display: block; color: var(--utem-secondary); font-size: .95rem; }
.cert-mini small { display: block; color: var(--utem-muted); font-size: .8rem; line-height: 1.45; }
.cert-mini > i { color: var(--utem-primary); }

.cert-flag { display: block; width: 64px; height: auto; margin: 0 auto 1.1rem; border-radius: 6px; box-shadow: 0 0 0 1px var(--utem-line), 0 6px 16px rgba(22,33,61,.12); }
.cert-card h3 { font-size: 1.12rem; font-weight: 800; color: var(--utem-secondary); }
.cert-card p { color: var(--utem-muted); font-size: .92rem; }
.cert-id { display: inline-block; padding: .55rem 1.1rem; border-radius: 12px; background: var(--utem-soft); border: 1px dashed #c3d1e2; font-size: .9rem; color: var(--utem-muted); }
.cert-id strong { color: var(--utem-secondary); letter-spacing: .05em; }
.cert-cta { background: linear-gradient(150deg, var(--utem-primary), var(--utem-secondary)); border: 0; color: #fff; }
.cert-cta::before { display: none; }
.cert-cta h3, .cert-cta p { color: #fff; }
.cert-cta p { opacity: .85; }
.cert-big-ic { font-size: 2.8rem; display: block; margin-bottom: 1rem; }
.cert-cta .btn-utem { background: #fff; color: var(--utem-secondary); border-color: #fff; box-shadow: none; }
.cert-cta .btn-utem:hover { background: var(--utem-secondary); color: #fff; border-color: var(--utem-secondary); }

/* ---------- FAQ ---------- */
.faq { --bs-accordion-border-color: transparent; --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-active-bg: transparent; --bs-accordion-active-color: var(--utem-primary); }
.faq .accordion-item { border: 1px solid var(--utem-line); border-radius: 16px !important; margin-bottom: .9rem; overflow: hidden; transition: box-shadow .25s ease, border-color .25s ease; }
.faq .accordion-item:has(.accordion-button:not(.collapsed)) { border-color: var(--utem-primary); box-shadow: 0 14px 34px rgba(14,162,200,.12); }
.faq .accordion-button { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1rem; color: var(--utem-secondary); padding: 1.2rem 1.4rem; }
.faq .accordion-button:not(.collapsed) { color: var(--utem-primary); }
.faq .accordion-button::after {
    background-image: none; content: "\F4FE"; font-family: "bootstrap-icons"; font-size: 1rem;
    width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
    background: var(--utem-cyan-soft); color: var(--utem-primary); transition: transform .25s ease, background .25s ease;
}
.faq .accordion-button:not(.collapsed)::after { content: "\F2EA"; background: var(--utem-primary); color: #fff; transform: rotate(180deg); }
.faq .accordion-body { color: var(--utem-muted); padding: 0 1.4rem 1.3rem; line-height: 1.8; }

/* ---------- Contact ---------- */
.contact-info { height: 100%; padding: 2rem; border-radius: 24px; background: linear-gradient(160deg, var(--utem-secondary), var(--utem-secondary-dark)); color: #fff; }
.office-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .35rem; margin-bottom: 1rem; border-radius: 16px; background: rgba(255,255,255,.08); }
.office-tabs .nav-link {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: .55rem; flex-wrap: wrap;
    padding: .7rem .6rem; border: 0; border-radius: 12px; background: transparent;
    color: #c9d4ec; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: .95rem;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.office-tabs .nav-link span { flex-basis: 100%; text-align: center; margin-top: -.2rem; font-family: "Inter", sans-serif; font-weight: 600; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.office-tabs .nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.office-tabs .nav-link.active { background: var(--utem-primary); color: #fff; box-shadow: 0 10px 24px rgba(14,162,200,.35); }
.tab-flag { width: 24px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.info-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border-radius: 16px; color: #fff; transition: background .2s ease; }
a.info-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.info-ic { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 14px; background: var(--utem-primary); font-size: 1.2rem; }
.info-wa { background: #25d366; }
.info-item small { display: block; color: #aebbd8; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.info-item strong { font-weight: 600; font-size: .98rem; line-height: 1.5; }
.social-row { display: flex; gap: .6rem; margin-top: 1rem; padding-left: 1rem; }
.social-row a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; transition: background .2s ease, transform .2s ease; }
.social-row a:hover { background: var(--utem-primary); transform: translateY(-3px); }
.contact-form { height: 100%; padding: 2rem; border-radius: 24px; background: #fff; border: 1px solid var(--utem-line); box-shadow: 0 20px 50px rgba(22,33,61,.06); }
.contact-form h3 { font-weight: 800; color: var(--utem-secondary); font-size: 1.4rem; margin-bottom: .3rem; }
/* spam trap field: off-screen for people, still in the form for bots */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* "Send" button while the request is on its way */
.contact-form .btn.is-sending { opacity: .85; cursor: progress; }
.contact-form .btn.is-sending i { animation: send-pulse 1s ease-in-out infinite; }
@keyframes send-pulse { 50% { transform: translateX(4px); opacity: .4; } }
/* success / error message under the button */
.form-status {
    display: flex; align-items: flex-start; gap: .75rem; padding: 1rem 1.15rem; border-radius: 16px;
    font-size: .92rem; line-height: 1.55; animation: status-in .35s ease;
}
.form-status[hidden] { display: none; }
.form-status > i { font-size: 1.3rem; line-height: 1; margin-top: .1rem; }
.form-status strong { display: block; margin-bottom: .1rem; }
.form-status-success { background: #e9f9f1; color: #13724a; border: 1px solid #bfe9d4; }
.form-status-error { background: #fdeeee; color: #a3302f; border: 1px solid #f3c8c7; }
@keyframes status-in { from { opacity: 0; transform: translateY(6px); } }
.form-label { font-weight: 600; font-size: .85rem; color: var(--utem-secondary); }
.form-control, .form-select { border-radius: 12px; border-color: var(--utem-line); padding: .75rem 1rem; background-color: var(--utem-soft); }
.form-control:focus, .form-select:focus { border-color: var(--utem-primary); background-color: #fff; box-shadow: 0 0 0 4px rgba(14,162,200,.15); }
.contact-map { border-radius: 24px; overflow: hidden; border: 1px solid var(--utem-line); box-shadow: 0 20px 50px rgba(22,33,61,.08); }
.contact-map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: #0f1a36; color: #aebbd8; padding: 3.5rem 0 1.5rem; }
.footer-logo { height: 58px; width: auto; background: #fff; padding: .5rem .8rem; border-radius: 12px; }
.footer-text { margin-top: 1.2rem; max-width: 320px; font-size: .92rem; line-height: 1.8; }
.footer h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .6rem; font-size: .9rem; }
.footer li i { color: var(--utem-primary); margin-right: .3rem; }
.footer a { color: #aebbd8; transition: color .2s ease, padding .2s ease; }
.footer ul a:hover { color: var(--utem-primary); padding-left: 4px; }
.social-dark { padding-left: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }

/* ---------- Floating buttons ---------- */
.wa-float, .to-top { position: fixed; right: 20px; z-index: 1030; display: grid; place-items: center; border-radius: 50%; color: #fff; transition: transform .25s ease, opacity .25s ease, visibility .25s; }
.wa-float { bottom: 20px; width: 58px; height: 58px; background: #25d366 !important; font-size: 1.7rem; box-shadow: 0 10px 25px rgba(37,211,102,.45); animation: wa 2.4s infinite; }
.wa-float:hover { color: #fff; transform: scale(1.08); }
@keyframes wa { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 60% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }
.to-top { bottom: 90px; width: 46px; height: 46px; background: var(--utem-secondary); opacity: 0; visibility: hidden; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { color: #fff; background: var(--utem-primary); }

/* =========================================================
   SERVICE PAGE (service.html)
   ========================================================= */
/* compact banner of the inner pages (includes/header.php, $page_hero) — same video and colours as the home hero */
.page-hero { padding: 3.5rem 0 6.5rem; }
.page-hero-overlap { padding-bottom: 9rem; } /* room for the service switcher that overlaps the bottom */
.page-hero .hero-title { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 1rem 0 .8rem; max-width: 820px; }
.page-hero .hero-text { margin-bottom: 0; max-width: 680px; }
.page-hero .scroll-down { bottom: 1.6rem; }
.page-hero-overlap .scroll-down { bottom: 5rem; }
.page-crumbs { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: #7fe0f5; margin: 0; font-size: .88rem; font-weight: 600; }
.page-crumbs a { color: rgba(255,255,255,.8); }
.page-crumbs a:hover { color: #fff; }

/* ---------- Services we provide (UT_services) ---------- */
/* home page cards (index.php #our-services) — each card is a link to service#service-ID */
.svc-card {
    height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden;
    border: 1px solid var(--utem-line); color: inherit; text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.svc-card:hover { color: inherit; transform: translateY(-8px); box-shadow: 0 28px 55px rgba(22,33,61,.12); border-color: transparent; }
.svc-card-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--utem-soft); overflow: hidden; }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-card:hover .svc-card-img img { transform: scale(1.06); }
.svc-card-body { flex: 1; display: flex; flex-direction: column; padding: 1.4rem 1.5rem 1.5rem; }
/* name, text and link sit together at the bottom (end) of the card; free space goes above the name */
.svc-card-name { display: block; margin-top: auto; font-size: 1.2rem; font-weight: 800; color: var(--utem-secondary); margin-bottom: .6rem; }
.svc-card-text { display: block; color: var(--utem-muted); font-size: .92rem; line-height: 1.7; margin-bottom: 1rem; }
.svc-card-body .service-more { align-self: flex-start; }
.svc-card .service-more i { transition: transform .25s ease; }
.svc-card:hover .service-more i { transform: translateX(4px); }

/* service page (service.php?id=…): uses the certificate page layout (.cert-detail, .cert-document, .cert-mini) */
.svc-detail-img {
    position: relative; margin: -.6rem -.6rem 1.4rem; border-radius: 18px; overflow: hidden;
    aspect-ratio: 16 / 10; background: var(--utem-soft);
}
.svc-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-description { padding: 1.4rem 1.8rem 1.8rem; }
.svc-description .cert-document-head { padding: 0 0 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--utem-line); }
.svc-description-text { flex: 1; font-size: 1rem; line-height: 1.85; }
.svc-description-text p:last-child { margin-bottom: 0; }
.cert-mini .cert-icon { object-fit: cover; }

/* switcher (overlaps hero, like the stats strip) */
.svc-switch-wrap { position: relative; z-index: 2; margin-top: -1rem; }
.svc-switch { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; padding: .6rem; background: #fff; border-radius: 22px; box-shadow: 0 25px 60px rgba(22,33,61,.12); }
.svc-tab {
    display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 0; border-radius: 16px;
    background: transparent; text-align: left; color: var(--utem-secondary);
    font: 800 1.02rem/1.2 "Montserrat", sans-serif; transition: background .3s ease, color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.svc-tab small { display: block; font: 600 .68rem/1.4 "Inter", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--utem-muted); }
.svc-tab-ic { width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; border-radius: 14px; background: var(--utem-cyan-soft); color: var(--utem-primary); font-size: 1.4rem; transition: background .3s ease, color .3s ease; }
.svc-tab:hover { background: var(--utem-soft); }
.svc-tab.active { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; box-shadow: 0 14px 30px rgba(22,33,61,.2); transform: translateY(-3px); }
.svc-tab.active small { color: rgba(255,255,255,.75); }
.svc-tab.active .svc-tab-ic { background: rgba(255,255,255,.18); color: #fff; }

/* details */
.svc-lead { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--utem-secondary); line-height: 1.5; }
.svc-adv { height: 100%; padding: 1.1rem; border-radius: 16px; background: var(--utem-soft); border: 1px solid var(--utem-line); }
.svc-adv i { display: block; font-size: 1.5rem; color: var(--utem-primary); margin-bottom: .5rem; }
.svc-adv strong { display: block; color: var(--utem-secondary); font-family: "Montserrat", sans-serif; }
.svc-adv small { color: var(--utem-muted); font-size: .82rem; }
.svc-visual {
    position: relative; overflow: hidden; padding: 2rem; border-radius: 28px 90px 28px 28px; color: #fff;
    background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: 0 30px 60px rgba(22,33,61,.2);
}
.svc-visual::before, .svc-visual::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.svc-visual::before { width: 320px; height: 320px; right: -120px; top: -140px; }
.svc-visual::after { width: 200px; height: 200px; left: -70px; bottom: -110px; }
.svc-visual-ic { position: absolute; right: 1.6rem; top: 1.2rem; font-size: 4.5rem; opacity: .25; }
.svc-visual h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 1.2rem; }
.svc-facts { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.svc-facts li { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.svc-facts li:last-child { border-bottom: 0; }
.svc-facts span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.svc-facts strong { font-weight: 600; font-size: .98rem; }
.btn-light-utem { background: #fff; color: var(--utem-secondary); font-weight: 700; border-radius: 999px; padding-inline: 1.3rem; display: inline-flex; align-items: center; gap: .5rem; border: 1px solid #fff; }
.btn-light-utem:hover { background: var(--utem-secondary); color: #fff; border-color: var(--utem-secondary); }
.svc-subtitle { margin: 2.5rem 0 1.2rem; font-weight: 800; font-size: 1.45rem; color: var(--utem-secondary); display: flex; align-items: center; gap: .8rem; }
.svc-subtitle::before { content: ""; width: 6px; height: 1.4rem; border-radius: 3px; background: var(--utem-primary); }
.feature-card { height: 100%; padding: 1.6rem; border-radius: 20px; background: #fff; border: 1px solid var(--utem-line); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.feature-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 22px 45px rgba(22,33,61,.1); }
.feature-card > i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; margin-bottom: 1rem; background: var(--utem-cyan-soft); color: var(--utem-primary); font-size: 1.4rem; transition: background .3s ease, color .3s ease; }
.feature-card:hover > i { background: var(--utem-primary); color: #fff; }
.feature-card h4 { font-size: 1.05rem; font-weight: 800; color: var(--utem-secondary); }
.feature-card p { margin: 0; color: var(--utem-muted); font-size: .9rem; line-height: 1.7; }
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip-row span { padding: .55rem 1.1rem; border-radius: 999px; background: var(--utem-cyan-soft); color: var(--utem-secondary); font-weight: 600; font-size: .88rem; border: 1px solid #c8eef7; }

/* process */
.process-step { position: relative; height: 100%; padding: 1.8rem 1.6rem; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); color: #fff; transition: background .3s ease, transform .3s ease; }
.process-step:hover { background: rgba(255,255,255,.1); transform: translateY(-5px); }
.process-num { position: absolute; top: 1.2rem; right: 1.4rem; font: 800 1.8rem "Montserrat", sans-serif; color: rgba(255,255,255,.18); }
.process-step > i { display: block; font-size: 2rem; color: #7fe0f5; margin-bottom: 1rem; }
.process-step h4 { font-weight: 800; font-size: 1.1rem; }
.process-step p { margin: 0; color: #c9d4ec; font-size: .9rem; line-height: 1.7; }

/* other services */
.mini-svc { position: relative; height: 100%; display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem; border-radius: 20px; background: #fff; border: 1px solid var(--utem-line); color: var(--utem-secondary); transition: transform .3s ease, box-shadow .3s ease; }
.mini-svc:hover { transform: translateY(-6px); box-shadow: 0 22px 45px rgba(22,33,61,.1); color: var(--utem-secondary); }
.mini-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-size: 1.4rem; }
.mini-svc strong { font-family: "Montserrat", sans-serif; font-weight: 800; padding-right: 1.5rem; }
.mini-svc em { display: none; font-style: normal; font-size: .75rem; font-weight: 700; color: var(--utem-primary); }
.mini-arrow { position: absolute; right: 1.2rem; bottom: 1.3rem; color: var(--utem-primary); transition: transform .25s ease; }
.mini-svc:hover .mini-arrow { transform: translateX(4px); }
.mini-svc.current { border-color: var(--utem-primary); box-shadow: inset 0 0 0 1px var(--utem-primary); pointer-events: none; }
.mini-svc.current em { display: block; }
.mini-svc.current .mini-arrow { display: none; }

/* CTA band */
.cta-band { padding: 3.5rem 0; color: #fff; background: linear-gradient(110deg, var(--utem-primary), var(--utem-secondary)); }
.cta-band h2 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }

/* index: service cards now link to service.html */
a.service-img { color: #fff; }
a.service-more:hover i { transform: translateX(4px); }

@media (max-width: 991.98px) {
    .svc-switch { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .page-hero { padding: 2.5rem 0 5.5rem; }
    .page-hero-overlap { padding-bottom: 7.5rem; }
    .page-hero-overlap .scroll-down { display: none; } /* the switcher is right below anyway */
    .svc-tab { flex-direction: column; text-align: center; gap: .5rem; padding: .8rem .4rem; font-size: .9rem; }
    .svc-tab-ic { width: 42px; height: 42px; flex-basis: 42px; font-size: 1.2rem; }
    .svc-visual { padding: 1.5rem; border-radius: 24px 60px 24px 24px; }
    .mini-svc { padding: 1.1rem; }
    .mini-svc strong { font-size: .9rem; }
}

/* ---------- Language switcher (navbar) ---------- */
.flag { display: inline-block; flex: 0 0 auto; width: 22px; height: 15px; border-radius: 3px; background: center / cover no-repeat; box-shadow: 0 0 0 1px rgba(22,33,61,.12); vertical-align: middle; }
.flag-az { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Crect width='24' height='4' fill='%230092bc'/%3E%3Crect y='4' width='24' height='4' fill='%23e4002b'/%3E%3Crect y='8' width='24' height='4' fill='%2300af66'/%3E%3Ccircle cx='11.4' cy='6' r='1.5' fill='%23fff'/%3E%3Ccircle cx='11.8' cy='6' r='1.2' fill='%23e4002b'/%3E%3Ccircle cx='13.4' cy='6' r='.55' fill='%23fff'/%3E%3C/svg%3E"); }
.flag-en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0 0L60 30M60 0L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0L60 30M60 0L0 30' stroke='%23c8102e' stroke-width='2'/%3E%3Cpath d='M30 0V30M0 15H60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0V30M0 15H60' stroke='%23c8102e' stroke-width='6'/%3E%3C/svg%3E"); }
.flag-pl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Crect width='16' height='5' fill='%23fff'/%3E%3Crect y='5' width='16' height='5' fill='%23dc143c'/%3E%3C/svg%3E"); }
.flag-ru { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Crect width='9' height='2' fill='%23fff'/%3E%3Crect y='2' width='9' height='2' fill='%230039a6'/%3E%3Crect y='4' width='9' height='2' fill='%23d52b1e'/%3E%3C/svg%3E"); }
.lang-switch { position: relative; }
.lang-toggle {
    display: inline-flex; align-items: center; gap: .5rem; height: 44px; padding: 0 .9rem;
    border: 1px solid var(--utem-line); border-radius: 999px; background: #fff;
    color: var(--utem-secondary); font: 700 .86rem "Montserrat", sans-serif;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.lang-toggle:focus { outline: none; }
.lang-toggle:focus-visible { box-shadow: 0 0 0 3px rgba(14,162,200,.3); }
.lang-toggle:hover, .lang-toggle.show { border-color: var(--utem-primary); background: var(--utem-cyan-soft); color: var(--utem-primary); }
.lang-toggle::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: .65rem; border: 0; margin-left: .1rem; vertical-align: middle; transition: transform .25s ease; }
.lang-switch:hover .lang-toggle::after, .lang-toggle.show::after { transform: rotate(180deg); }
.site-nav .lang-menu { min-width: 200px; right: 0; left: auto; }
.lang-menu .dropdown-item { display: flex; align-items: center; gap: .65rem; }
.lang-menu .dropdown-item i { width: auto; margin-left: auto; opacity: 0; }
.lang-menu .dropdown-item.active { background: var(--utem-cyan-soft); color: var(--utem-primary); }
.lang-menu .dropdown-item.active i { opacity: 1; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .lang-toggle { height: 40px; padding: 0 .7rem; }
}
@media (max-width: 991.98px) {
    .lang-switch { margin: .4rem 0 .8rem; }
    .site-nav .lang-menu { left: 0; right: auto; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
.site-nav .nav-link, .site-nav .btn-utem { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-nav .nav-link { padding: .6rem .6rem !important; font-size: .86rem; }
    .site-nav .nav-link::after { left: .6rem; right: .6rem; }
    .site-nav .btn-utem { padding-inline: 1rem; font-size: .86rem; }
    .brand-logo { height: 44px; }
}
@media (max-width: 991.98px) {
    .navbar-collapse { padding: 1rem 0; }
    .site-nav .nav-link:not(.dropdown-toggle)::after { display: none; }
    .dropdown-menu { box-shadow: none; background: var(--utem-soft); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--utem-line); }
    #routeMap { height: 400px; }
}
@media (max-width: 575.98px) {
    .brand-logo { height: 42px; }
    .stat { flex-direction: column; text-align: center; gap: .6rem; padding: 1.2rem .8rem; }
    .stat strong { font-size: 1.3rem; }
    .about-visual { min-height: 340px; }
    .about-bg { right: 16px; }
    .about-chip { padding: .6rem .8rem; }
    .chip-a { top: 10px; }
    .chip-b { bottom: 10px; left: 0; }
    #routeMap { height: 360px; }
    .mode-btn { padding: .4rem .65rem; font-size: .75rem; }
    .partner-logo { width: 130px; height: 88px; }
    .contact-info, .contact-form { padding: 1.4rem; }
    .contact-map iframe { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
