/* ==========================================================================
   EPS Tanzania — site stylesheet
   1. Tokens   2. Base   3. Header   4. Hero   5. Sections   6. Cards
   7. Page pieces   8. Contact   9. Footer   10. Utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --brand: #df1529;
    --brand-dark: #b30f20;
    --brand-soft: rgba(var(--brand-rgb), .09);
    --ink: #0b1624;
    --ink-2: #14253a;
    --steel: #5b6b7e;
    --line: #e4e9f0;
    --surface: #f4f6fa;
    --white: #fff;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 14px rgba(11, 22, 36, .06);
    --shadow: 0 14px 40px rgba(11, 22, 36, .10);
    --shadow-lg: 0 24px 60px rgba(11, 22, 36, .18);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Sora', 'Inter', system-ui, sans-serif;
    --header-h: 78px;
}

/* Page width: no max-width cap, content spans the full viewport with small side gutters ---- */
.container { --bs-gutter-x: clamp(2rem, 3vw, 3.5rem); max-width: 100%; }
/* Slide-in animations start off-screen; clip them so the page never scrolls sideways. */
main, .site-footer, .topbar, .site-header { overflow-x: clip; }
html, body { max-width: 100%; }

/* 2. Base ------------------------------------------------------------------ */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body { font-family: var(--font); color: #2b3a4d; background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; letter-spacing: -.01em; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; }
.skip-link { position: absolute; left: 12px; top: 8px; z-index: 2000; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }

.btn { font-weight: 600; border-radius: 12px; padding: .65rem 1.25rem; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-lg { padding: .85rem 1.7rem; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(var(--brand-rgb), .28); }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn i { margin-right: .35rem; }
.btn i.bi-arrow-right { margin: 0 0 0 .35rem; transition: transform .2s; }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }

/* 3. Header ---------------------------------------------------------------- */
.topbar { background: var(--ink); color: #b9c4d2; font-size: .85rem; padding: 8px 0; }
.topbar a, .topbar span { color: #b9c4d2; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--brand); margin-right: 6px; }
.topbar .social i { margin: 0; color: #b9c4d2; font-size: 1rem; }
.topbar .social a:hover i { color: #fff; }

.site-header { background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; z-index: 1030; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
/* Reading progress: fills left to right as the page scrolls down, shrinks back on the way up */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--brand-dark), var(--brand)); transform: scaleX(0); transform-origin: left; pointer-events: none; z-index: 1; }
.navbar { min-height: var(--header-h); padding-block: 8px; }
.navbar-brand { display: flex; align-items: center; gap: 12px; padding: 0; }
.navbar-brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.45rem; color: var(--brand); letter-spacing: .06em; }
.brand-text small { font-size: .68rem; color: var(--steel); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }

.navbar-toggler { border: 0; font-size: 1.9rem; color: var(--ink); padding: 0 6px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar .nav-link { font-weight: 600; color: var(--ink); padding: .6rem .95rem !important; position: relative; border-radius: 10px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--brand); }
@media (min-width: 992px) {
    .navbar .nav-link::after { content: ""; position: absolute; left: .95rem; right: .95rem; bottom: 2px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .25s; border-radius: 2px; }
    .navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
    .navbar .dropdown-toggle::after { border: 0; background: none; transform: none; position: static; height: auto; }
    .navbar .dropdown:hover > .dropdown-menu { display: block; animation: menuIn .18s ease; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dropdown-menu { border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 10px; margin-top: 0; min-width: 280px; }
.dropdown-item { border-radius: 9px; padding: .55rem .8rem; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 10px; white-space: normal; }
.dropdown-item i { color: var(--brand); width: 20px; text-align: center; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--brand-soft); color: var(--brand); }
.dropdown-item.all-link { color: var(--brand); font-weight: 700; }
.dropdown-item.sub { padding-left: 2.4rem; font-size: .93rem; }
.dropdown-header { color: var(--ink); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding: .55rem .8rem .3rem; display: flex; gap: 10px; align-items: center; }
.dropdown-header i { color: var(--brand); width: 20px; text-align: center; }
@media (min-width: 992px) {
    .dropdown-menu-products { min-width: 560px; columns: 2; column-gap: 8px; }
    .dropdown-menu-products > li { break-inside: avoid; }
    .dropdown-menu-products .dropdown-all { column-span: all; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
}
@media (max-width: 991.98px) {
    .navbar-collapse { padding: 14px 0 20px; }
    .dropdown-menu { box-shadow: none; background: var(--surface); }
}

/* 4. Hero ------------------------------------------------------------------ */
.hero { position: relative; color: #fff; padding: 110px 0 0; background: var(--ink) var(--hero-img) center/cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 22, 36, .95) 8%, rgba(11, 22, 36, .78) 50%, rgba(11, 22, 36, .35) 100%); }
.hero::after { content: ""; position: absolute; left: -10%; bottom: -35%; width: 55%; aspect-ratio: 1; background: radial-gradient(circle, rgba(var(--brand-rgb), .35), transparent 65%); }
.hero .container { z-index: 1; }
.hero-badge { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); padding: 7px 16px; border-radius: 99px; font-size: .85rem; font-weight: 600; margin-bottom: 22px; backdrop-filter: blur(6px); }
.hero-badge i { color: var(--brand-glow); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.8rem); font-weight: 800; margin-bottom: 20px; }
.hero h1 span { color: var(--brand-glow); }
.hero .lead { color: #cfd9e6; font-size: 1.13rem; max-width: 640px; margin-bottom: 32px; }
.hero-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 90px; background: rgba(255, 255, 255, .14); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.hero-points > div { background: rgba(11, 22, 36, .72); backdrop-filter: blur(10px); padding: 22px 24px; display: flex; gap: 14px; align-items: center; font-weight: 600; }
.hero-points i { font-size: 1.7rem; color: var(--brand-glow); }
@media (max-width: 767.98px) { .hero { padding-top: 70px; } .hero-points { grid-template-columns: 1fr 1fr; margin-top: 56px; } .hero-points > div { padding: 16px; font-size: .88rem; flex-direction: column; text-align: center; gap: 6px; } }

.page-hero { position: relative; padding: 84px 0 76px; color: #fff; background: var(--ink) var(--hero-img) center/cover; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 22, 36, .95), rgba(11, 22, 36, .7)); }
.page-hero::after { content: ""; position: absolute; right: -6%; top: -40%; width: 40%; aspect-ratio: 1; background: radial-gradient(circle, rgba(var(--brand-rgb), .4), transparent 65%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; }
.page-hero .lead { color: #cfd9e6; max-width: 720px; margin: 14px 0 0; }
.breadcrumb { margin-bottom: 14px; font-size: .9rem; }
.breadcrumb-item a { color: var(--brand-light); }
.breadcrumb-item.active { color: #cfd9e6; }
.breadcrumb-item + .breadcrumb-item::before { color: #7e8da1; }

/* 5. Sections -------------------------------------------------------------- */
.section { padding: 96px 0; }
.section-soft { background: var(--surface); }
.section-dark { background: var(--ink) radial-gradient(circle at 85% 0%, rgba(var(--brand-rgb), .18), transparent 45%); color: #b9c4d2; }
@media (max-width: 767.98px) { .section { padding: 64px 0; } }

.section-heading { max-width: 720px; margin-bottom: 52px; }
.section-heading h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; }
.section-heading p { color: var(--steel); font-size: 1.05rem; margin: 14px 0 0; }
.section-heading.is-light h2 { color: #fff; }
.section-heading.is-light p { color: #a9b6c7; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; position: relative; padding-left: 34px; }
.eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 2px; background: var(--brand); }
.section-heading.text-center .eyebrow { padding: 0 34px; }
.section-heading.text-center .eyebrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 24px; height: 2px; background: var(--brand); }
.display-title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; margin-bottom: 18px; }
.lead-text { font-size: 1.12rem; color: var(--steel); }

/* Partners */
.partners { padding: 38px 0; background: #fff; border-bottom: 1px solid var(--line); }
.partners-title { text-align: center; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; color: var(--steel); margin-bottom: 18px; }
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 54px; }
.partners-row img { height: 38px; width: auto; max-width: 130px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: .25s; }
.partners-row img:hover { filter: none; opacity: 1; transform: scale(1.06); }

/* Stats */
.stats-band { background: linear-gradient(120deg, var(--brand) 0%, #a30d1c 100%); padding: 64px 0; color: #fff; }
.stat { text-align: center; }
.stat-value { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; }
.stat-label { font-weight: 700; margin-top: 10px; }
.stat-note { font-size: .85rem; opacity: .8; }

/* 6. Cards ----------------------------------------------------------------- */
.product-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: inherit; transition: transform .3s, box-shadow .3s, border-color .3s; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.product-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-icon { position: absolute; left: 16px; bottom: 14px; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 8px 20px rgba(var(--brand-rgb), .4); z-index: 2; }
.product-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-card-body h3 { font-size: 1.1rem; font-weight: 700; }
.product-card-body p { color: var(--steel); font-size: .94rem; flex: 1; }
.more { font-weight: 700; font-size: .9rem; color: var(--brand); }
.more i { transition: transform .2s; display: inline-block; }
.product-card:hover .more i, .service-card:hover .more i, .service-wide:hover .more i { transform: translateX(5px); }

.service-card { display: block; height: 100%; padding: 32px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: inherit; transition: .3s; position: relative; overflow: hidden; }
.service-card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--brand); transition: width .35s; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); color: inherit; }
.service-card:hover::before { width: 100%; }
.service-card-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-soft); color: var(--brand); font-size: 1.7rem; margin-bottom: 20px; transition: .3s; }
.service-card:hover .service-card-icon { background: var(--brand); color: #fff; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; }
.service-card p { color: var(--steel); font-size: .95rem; }
.service-card.is-dark { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.service-card.is-dark h3 { color: #fff; }
.service-card.is-dark p { color: #a9b6c7; }
.service-card.is-dark .service-card-icon { background: rgba(var(--brand-rgb), .18); color: var(--brand-light); }
.service-card.is-dark:hover { background: rgba(255, 255, 255, .09); }
.service-card.is-dark:hover .service-card-icon { background: var(--brand); color: #fff; }

.service-wide { display: flex; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); color: inherit; box-shadow: var(--shadow-sm); transition: .3s; }
.service-wide:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: inherit; }
.service-wide-img { flex: 0 0 38%; overflow: hidden; }
.service-wide-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-wide:hover .service-wide-img img { transform: scale(1.08); }
.service-wide-body { padding: 28px; display: flex; flex-direction: column; }
.service-wide-body h3 { font-size: 1.25rem; font-weight: 700; }
.service-wide-body p { color: var(--steel); font-size: .95rem; flex: 1; }
@media (max-width: 575.98px) { .service-wide { flex-direction: column; } .service-wide-img { flex-basis: 200px; } }

.industry-card { height: 100%; padding: 30px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); text-align: center; transition: .3s; }
.industry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.industry-icon { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; font-size: 1.8rem; color: var(--brand); background: var(--brand-soft); border-radius: 50%; transition: .3s; }
.industry-card:hover .industry-icon { background: var(--brand); color: #fff; transform: rotateY(180deg); }
.industry-card h3 { font-size: 1.05rem; font-weight: 700; }
.industry-card p { color: var(--steel); font-size: .92rem; margin: 0; }

.vm-card { height: 100%; background: #fff; border-radius: var(--radius); padding: 36px 30px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.vm-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; background: radial-gradient(circle, var(--brand-soft), transparent 70%); }
.vm-icon { width: 60px; height: 60px; display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: var(--brand); border-radius: 16px; margin-bottom: 20px; box-shadow: 0 10px 22px rgba(var(--brand-rgb), .3); }
.vm-card h3 { font-size: 1.3rem; font-weight: 700; }
.vm-tag { display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }

.offer-card { height: 100%; background: #fff; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; transition: .3s; }
.offer-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: transparent; }
.offer-num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--brand-soft); -webkit-text-stroke: 1.5px rgba(var(--brand-rgb), .35); line-height: 1; }
.offer-card h3 { font-size: 1.1rem; font-weight: 700; margin: 10px 0 8px; }
.offer-card p { color: var(--steel); margin: 0; font-size: .95rem; }

/* 7. Page pieces ----------------------------------------------------------- */
.about-visual, .detail-visual { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); }
.about-visual img, .detail-visual img { width: 100%; display: block; }
.about-badge { position: absolute; left: 20px; bottom: 20px; background: var(--brand); color: #fff; padding: 16px 22px; border-radius: 16px; display: flex; gap: 14px; align-items: center; box-shadow: 0 12px 28px rgba(var(--brand-rgb), .4); }
.about-badge strong { font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }
.about-badge span { font-size: .82rem; line-height: 1.25; font-weight: 600; }
.detail-badge { position: absolute; top: 18px; right: 18px; background: rgba(11, 22, 36, .88); color: #fff; padding: 8px 16px; border-radius: 99px; font-size: .85rem; font-weight: 600; backdrop-filter: blur(8px); }
.detail-badge i { color: var(--brand-glow); margin-right: 6px; }

.feature { display: flex; gap: 14px; background: #fff; padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); height: 100%; }
.feature > i { font-size: 1.7rem; color: var(--brand); }
.feature h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.feature p { margin: 0; font-size: .88rem; color: var(--steel); line-height: 1.5; }

.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check-list i { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 1rem; }
.card-list li { background: #fff; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

.range-list { display: grid; gap: 14px; margin-top: 28px; }
.range-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); padding: 18px 20px; border-radius: var(--radius-sm); transition: .25s; }
.range-item:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.range-dot { flex: none; width: 32px; height: 32px; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: 50%; font-size: 1rem; }
.range-item h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 3px; }
.range-item p { margin: 0; color: var(--steel); font-size: .93rem; line-height: 1.55; }

.cta-band { padding: 0 0 96px; background: #fff; }
.cta-inner { background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 55%, var(--brand-black) 100%); border-radius: 26px; padding: 54px 52px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-inner::after { content: ""; position: absolute; right: -90px; top: -90px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(var(--brand-rgb), .55), transparent 68%); }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; margin-bottom: 8px; }
.cta-inner p { color: #b9c4d2; margin: 0; max-width: 560px; }
@media (max-width: 767.98px) { .cta-inner { padding: 36px 26px; } .cta-band { padding-bottom: 64px; } }
.section + .cta-band, .partners + .cta-band { padding-top: 0; }
.section-soft + .cta-band, .partners + .cta-band { padding-top: 80px; }

/* 8. Contact --------------------------------------------------------------- */
.contact-cards { display: grid; gap: 14px; margin-top: 26px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); color: inherit; transition: .25s; }
a.contact-card:hover { box-shadow: var(--shadow); transform: translateX(5px); border-color: var(--brand); color: inherit; }
.contact-card > span { flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); border-radius: 14px; font-size: 1.3rem; }
.contact-card h4 { font-size: .95rem; font-weight: 700; margin: 0; }
.contact-card p { margin: 0; color: var(--steel); font-size: .93rem; }

.form-card { background: #fff; border-radius: var(--radius); padding: 40px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 22px; }
.form-label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.form-control { border-radius: 12px; border: 1.5px solid var(--line); padding: .8rem 1rem; background: var(--surface); transition: .2s; }
.form-control:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.alert-success { border: 0; border-radius: 12px; background: #e8f7ee; color: #14683a; }
@media (max-width: 575.98px) { .form-card { padding: 26px 20px; } }

/* 9. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #a9b6c7; padding-top: 80px; }
.footer-brand { display: flex; gap: 14px; align-items: center; color: #fff; }
.footer-brand strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: #fff; }
.footer-brand small { color: #8091a5; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; font-weight: 600; }
.logo-badge { background: #fff; border-radius: 14px; padding: 6px 8px; display: grid; place-items: center; }
.logo-badge img { height: 44px; width: auto; }
.footer-text { font-size: .94rem; max-width: 380px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; font-size: 1.1rem; transition: .25s; }
.footer-social a:hover { background: var(--brand); transform: translateY(-3px); color: #fff; }
.site-footer h5 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.site-footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--brand); border-radius: 3px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: #a9b6c7; transition: .2s; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; padding-left: 5px; }
.footer-contact li { display: flex; gap: 12px; font-size: .94rem; }
.footer-contact i { color: var(--brand); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 64px; padding: 22px 0; font-size: .86rem; }

/* 10. Utilities ------------------------------------------------------------ */
.whatsapp-fab { position: fixed; right: 22px; bottom: 80px; z-index: 1040; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 1.7rem; box-shadow: 0 10px 26px rgba(37, 211, 102, .45); transition: transform .25s; }
.whatsapp-fab:hover { color: #fff; transform: scale(1.1); }
.whatsapp-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.2s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 1040; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font-size: 1.2rem; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.service-card.is-dark .more { color: var(--brand-light); }

/* 11. Brand polish — palette drawn from the EPS logo ------------------------
   Logo = signal red serif lettering · jet-black gear teeth · silver bearing ring.
   ========================================================================== */
:root {
    --brand-glow: #ff3b4a;
    --brand-light: #ff8e99;
    --brand-deep: #820c18;
    --brand-black: #3b0c11;
    --brand-rgb: 223, 21, 41;
    --glow-rgb: 255, 59, 74;
    --jet: #07090d;
    --silver: #c9d0d9;
    --silver-2: #8d97a5;
    --grad-brand: linear-gradient(135deg, var(--brand-glow) 0%, var(--brand) 45%, var(--brand-dark) 100%);
    --grad-dark: linear-gradient(135deg, #07090d 0%, #101a29 60%, #2a0a10 100%);
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}
::selection { background: var(--brand); color: #fff; }

/* Typography: heavy serif accents echo the logo's EPS lettering */
.brand-text strong { font-family: var(--font-serif); font-weight: 800; font-size: 1.7rem; letter-spacing: .14em; color: var(--brand); text-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.brand-text small { color: var(--ink); opacity: .6; }
.hero h1 { letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.hero h1 span, .page-hero h1 span {
    font-family: var(--font-serif); font-style: italic; font-weight: 700;
    background: linear-gradient(100deg, var(--brand-light) 0%, var(--brand-glow) 55%, var(--brand-light) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em;
}
.section-heading h2, .display-title { letter-spacing: -.025em; }
.section-heading h2::after, .display-title::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 16px; border-radius: 4px; background: var(--grad-brand); }
.section-heading.text-center h2::after { margin-inline: auto; }
.section-heading.is-light h2::after { background: linear-gradient(90deg, var(--brand-glow), transparent); }
.eyebrow { font-size: .78rem; letter-spacing: .2em; color: var(--brand); }
.eyebrow::before, .section-heading.text-center .eyebrow::after { background: var(--grad-brand); height: 3px; border-radius: 3px; }
.lead-text, .section-heading p { line-height: 1.8; }

/* Buttons */
.btn-brand { background: var(--grad-brand); border: 0; box-shadow: 0 12px 28px rgba(var(--brand-rgb), .35), inset 0 1px 0 rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.btn-brand::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn-brand:hover { background: var(--grad-brand); filter: brightness(1.06); box-shadow: 0 16px 34px rgba(var(--brand-rgb), .48); }
.btn-brand:hover::after { transform: translateX(120%); }
.btn-dark { background: var(--grad-dark); border: 0; box-shadow: 0 10px 24px rgba(7, 9, 13, .3); }
.btn-outline-light { border-width: 2px; backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: #fff; color: var(--brand); }
.btn-outline-dark { border-width: 2px; border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--brand); border-color: var(--brand); }

/* Header: a thin red-to-black signature line above the nav */
.topbar { background: var(--jet); border-bottom: 2px solid var(--brand); }
.site-header { border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--brand) 0%, var(--jet) 40%, var(--silver) 100%); opacity: .85; }
.navbar-brand img { transition: transform .8s cubic-bezier(.4, 0, .2, 1); }
.navbar-brand:hover img { transform: rotate(-8deg) scale(1.05); }
.navbar .nav-link { font-size: .95rem; }
.navbar .nav-link:hover { background: var(--brand-soft); }
.dropdown-menu { border-top: 3px solid var(--brand); }

/* Hero: black "gear teeth" ring and a red glow, from the logo */
.hero { background-color: var(--jet); }
.hero::before { background: linear-gradient(100deg, rgba(7, 9, 13, .96) 8%, rgba(7, 9, 13, .8) 52%, rgba(7, 9, 13, .4) 100%); }
.hero::after { background: radial-gradient(circle, rgba(var(--brand-rgb), .42), transparent 65%); }
.hero .col-lg-8 { position: relative; }
.hero .col-lg-8::before {
    content: ""; position: absolute; right: -240px; top: 50%; width: 420px; aspect-ratio: 1; transform: translateY(-50%);
    border-radius: 50%; border: 18px dotted rgba(255, 255, 255, .07); animation: spin 60s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.hero-badge { background: rgba(var(--brand-rgb), .16); border-color: rgba(var(--glow-rgb), .45); letter-spacing: .02em; }
.hero-points { background: linear-gradient(90deg, var(--brand), rgba(255, 255, 255, .14) 30%); }
.hero-points > div { background: rgba(7, 9, 13, .78); transition: background .3s; }
.hero-points > div:hover { background: rgba(60, 8, 14, .85); }
.hero-points i { color: var(--brand-glow); filter: drop-shadow(0 0 10px rgba(var(--glow-rgb), .55)); }
.page-hero { background-color: var(--jet); }
.page-hero::before { background: linear-gradient(100deg, rgba(7, 9, 13, .96), rgba(7, 9, 13, .72)); }

/* Dark sections: black with a red glow and a faint "bearing ball" dot grid */
.section-dark {
    background:
        radial-gradient(circle at 85% 0%, rgba(var(--brand-rgb), .22), transparent 45%),
        radial-gradient(circle, rgba(255, 255, 255, .045) 2px, transparent 2.5px) 0 0 / 34px 34px,
        var(--jet);
}
.stats-band { background: linear-gradient(120deg, var(--brand-glow) 0%, var(--brand) 40%, var(--brand-deep) 100%); position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .12) 2px, transparent 2.5px) 0 0 / 30px 30px; }
.stats-band .container { position: relative; }
.stat-value { text-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
@media (min-width: 992px) { .stats-band .col-lg-3 + .col-lg-3 .stat { border-left: 1px solid rgba(255, 255, 255, .22); } }

/* Cards: layered depth, red accent on hover */
.product-card, .service-card, .industry-card, .offer-card, .vm-card, .feature, .contact-card { border-color: rgba(11, 22, 36, .07); }
.product-card:hover, .service-card:hover, .industry-card:hover, .offer-card:hover { box-shadow: 0 22px 50px rgba(7, 9, 13, .14), 0 0 0 1px rgba(var(--brand-rgb), .18); }
.product-card-icon, .vm-icon, .range-dot, .about-badge { background: var(--grad-brand); }
.product-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 9, 13, .45)); pointer-events: none; }
.product-card-body h3 { transition: color .2s; }
.product-card:hover h3, .service-card:hover h3 { color: var(--brand); }
.service-card.is-dark:hover h3 { color: #fff; }
.service-card-icon, .industry-icon { background: linear-gradient(135deg, rgba(var(--brand-rgb), .12), rgba(var(--brand-rgb), .04)); }
.service-card:hover .service-card-icon, .industry-card:hover .industry-icon { background: var(--grad-brand); box-shadow: 0 10px 22px rgba(var(--brand-rgb), .35); }
.service-card.is-dark { backdrop-filter: blur(6px); border-color: rgba(255, 255, 255, .12); }
.service-card.is-dark:hover { border-color: rgba(var(--glow-rgb), .55); box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 40px rgba(var(--brand-rgb), .18); }
.offer-num { -webkit-text-stroke: 1.5px rgba(var(--brand-rgb), .45); }
.range-item { border-left-color: var(--brand); }
.about-visual::before, .detail-visual::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); pointer-events: none; }
.about-badge { z-index: 2; }
.partners-row img:hover { filter: none; opacity: 1; }

/* Call-to-action band */
.cta-inner { background: var(--grad-dark); border: 1px solid rgba(255, 255, 255, .08); }
.cta-inner::before { content: ""; position: absolute; left: -60px; bottom: -120px; width: 280px; aspect-ratio: 1; border-radius: 50%; border: 16px dotted rgba(255, 255, 255, .06); }
.cta-inner h2 { letter-spacing: -.02em; }

/* Forms */
.form-card { border-top: 4px solid var(--brand); }
.form-control:focus { box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12); }

/* Footer: black with the logo's red/silver signature */
.site-footer { background: radial-gradient(circle at 100% 0%, rgba(225, 14, 31, .14), transparent 40%), var(--jet); border-top: 3px solid var(--brand); }   /* background glow stays the original red whatever the accent is */
.footer-brand strong { font-family: var(--font-serif); letter-spacing: .06em; font-size: 1.35rem; }
.site-footer h5::after { background: var(--grad-brand); }
.footer-links a:hover, .footer-contact a:hover { color: var(--brand-glow); }
.footer-social a:hover { background: var(--grad-brand); box-shadow: 0 10px 22px rgba(var(--brand-rgb), .4); }
.footer-bottom { border-top-color: rgba(201, 208, 217, .12); }
.to-top { background: var(--jet); }
.to-top:hover { background: var(--grad-brand); }

/* Scrollbar */
html { scrollbar-color: var(--brand) var(--surface); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--brand), var(--brand-dark)); border-radius: 10px; border: 2px solid var(--surface); }
@media (max-width: 991.98px) { .hero .col-lg-8::before { display: none; } }

/* 12. Language switch + theme toggle ---------------------------------------- */
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.lang-switch a { padding: 5px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--steel); transition: background .25s, color .25s, box-shadow .25s; }
.lang-switch a:hover { color: var(--brand); }
.lang-switch a.is-active { background: var(--grad-brand); color: #fff; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .35); }
.theme-toggle { position: relative; width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 1.05rem; cursor: pointer; transition: transform .25s, border-color .25s, box-shadow .25s; }
.theme-toggle:hover { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); transform: rotate(14deg); }
.theme-toggle:focus-visible, .lang-switch a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.theme-toggle i { grid-area: 1 / 1; transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .3s; }
.theme-toggle .icon-moon { color: var(--brand); }
.theme-toggle .icon-sun { color: #ffb020; transform: translateY(150%) rotate(-90deg); opacity: 0; }
@media (max-width: 991.98px) { .nav-tools { justify-content: flex-start; } }

/* 13. Dark theme -----------------------------------------------------------------
   Toggled with <html data-theme="dark">. Black / red / silver, matching the logo.
   -------------------------------------------------------------------------------- */
:root { color-scheme: light; }
html.theme-switching, html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: background-color .35s, border-color .35s, color .35s, box-shadow .35s !important; }

[data-theme="dark"] {
    color-scheme: dark;
    --brand-soft: rgba(var(--glow-rgb), .14);
    --line: rgba(255, 255, 255, .10);
    --surface: #101722;
    --steel: #9aa8ba;
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, .45);
    --shadow: 0 14px 40px rgba(0, 0, 0, .55);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .65);
    --card: #151d2a;
}
[data-theme="dark"] body { background: #0a0e15; color: #b4c0d0; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4, [data-theme="dark"] h5 { color: #f4f7fb; }
/* zero specificity so any component class still wins over this default link colour */
:where([data-theme="dark"]) a { color: var(--brand-glow); }
:where([data-theme="dark"]) a:hover { color: var(--brand-light); }
[data-theme="dark"] .text-muted { color: var(--steel) !important; }
[data-theme="dark"] .eyebrow, [data-theme="dark"] .more, [data-theme="dark"] .vm-tag { color: var(--brand-glow); }
[data-theme="dark"] .btn-brand, [data-theme="dark"] .btn-brand:hover, [data-theme="dark"] .btn-outline-light, [data-theme="dark"] .about-badge, [data-theme="dark"] .lang-switch a.is-active { color: #fff; }
[data-theme="dark"] .btn-light, [data-theme="dark"] .btn-light:hover { color: #0b1624; }
[data-theme="dark"] .btn-outline-light:hover { color: var(--brand); }

/* Header */
[data-theme="dark"] .site-header { background: rgba(10, 14, 21, .88); }
[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 8px 28px rgba(0, 0, 0, .55); }
[data-theme="dark"] .navbar .nav-link { color: #e3e9f2; }
[data-theme="dark"] .navbar .nav-link:hover, [data-theme="dark"] .navbar .nav-link.active { color: var(--brand-glow); }
[data-theme="dark"] .brand-text small { color: #c9d0d9; }
[data-theme="dark"] .brand-text strong { color: var(--brand-glow); }
[data-theme="dark"] .navbar-brand img { background: #fff; border-radius: 10px; padding: 2px 4px; }
[data-theme="dark"] .navbar-toggler { color: #fff; }
[data-theme="dark"] .dropdown-menu { background: var(--card); border-top-color: var(--brand); }
[data-theme="dark"] .dropdown-item { color: #dbe3ee; }
[data-theme="dark"] .dropdown-item:hover, [data-theme="dark"] .dropdown-item:focus { background: var(--brand-soft); color: #fff; }
[data-theme="dark"] .dropdown-item.all-link { color: var(--brand-glow); }
[data-theme="dark"] .dropdown-header { color: #fff; }
[data-theme="dark"] .dropdown-divider { border-color: var(--line); }
[data-theme="dark"] .theme-toggle { background: var(--card); color: #fff; }
[data-theme="dark"] .theme-toggle .icon-moon { transform: translateY(-150%) rotate(90deg); opacity: 0; }
[data-theme="dark"] .theme-toggle .icon-sun { transform: none; opacity: 1; }
[data-theme="dark"] .lang-switch { background: var(--card); }
[data-theme="dark"] .lang-switch a { color: #b4c0d0; }
[data-theme="dark"] .lang-switch a:hover { color: #fff; }
@media (max-width: 991.98px) { [data-theme="dark"] .dropdown-menu { background: var(--surface); } }

/* Sections and surfaces */
[data-theme="dark"] .section-soft { background: #0e141e; }
[data-theme="dark"] .partners, [data-theme="dark"] .cta-band { background: #0a0e15; }
[data-theme="dark"] .partners { border-bottom-color: var(--line); }
[data-theme="dark"] .partners-row img { background: #fff; padding: 6px 12px; border-radius: 10px; filter: grayscale(1); opacity: .8; }
[data-theme="dark"] .partners-row img:hover { filter: none; opacity: 1; }
[data-theme="dark"] .product-card, [data-theme="dark"] .service-card:not(.is-dark), [data-theme="dark"] .service-wide,
[data-theme="dark"] .industry-card, [data-theme="dark"] .vm-card, [data-theme="dark"] .offer-card, [data-theme="dark"] .feature,
[data-theme="dark"] .range-item, [data-theme="dark"] .contact-card, [data-theme="dark"] .form-card, [data-theme="dark"] .card-list li {
    background: var(--card); border-color: var(--line);
}
[data-theme="dark"] .product-card:hover, [data-theme="dark"] .service-card:hover, [data-theme="dark"] .industry-card:hover, [data-theme="dark"] .offer-card:hover {
    box-shadow: 0 22px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(var(--glow-rgb), .35);
}
[data-theme="dark"] .product-card, [data-theme="dark"] .service-wide, [data-theme="dark"] .contact-card { color: #b4c0d0; }
[data-theme="dark"] .product-card:hover, [data-theme="dark"] .service-wide:hover, [data-theme="dark"] a.contact-card:hover { color: #b4c0d0; }
[data-theme="dark"] .product-card:hover h3, [data-theme="dark"] .service-card:not(.is-dark):hover h3 { color: var(--brand-glow); }
[data-theme="dark"] .product-card-img, [data-theme="dark"] .about-visual, [data-theme="dark"] .detail-visual { background: var(--surface); }
[data-theme="dark"] .offer-num { color: transparent; -webkit-text-stroke-color: rgba(var(--glow-rgb), .55); }
[data-theme="dark"] .vm-card::after { background: radial-gradient(circle, rgba(var(--glow-rgb), .18), transparent 70%); }
[data-theme="dark"] .check-list i { color: var(--brand-glow); }
[data-theme="dark"] .service-card-icon, [data-theme="dark"] .industry-icon { color: var(--brand-glow); }
[data-theme="dark"] .service-card:hover .service-card-icon, [data-theme="dark"] .industry-card:hover .industry-icon { color: #fff; }
[data-theme="dark"] .contact-card > span { color: var(--brand-glow); }
[data-theme="dark"] .feature > i { color: var(--brand-glow); }
[data-theme="dark"] .btn-outline-dark { color: #fff; border-color: rgba(255, 255, 255, .6); }
[data-theme="dark"] .btn-outline-dark:hover { color: #fff; border-color: var(--brand); }
[data-theme="dark"] .btn-dark { background: linear-gradient(135deg, #1b2636, #0f1722); border: 1px solid var(--line); color: #fff; }
[data-theme="dark"] .section-heading p, [data-theme="dark"] .lead-text { color: var(--steel); }

/* Forms */
[data-theme="dark"] .form-label { color: #e3e9f2; }
[data-theme="dark"] .form-control { background: #0d131c; border-color: rgba(255, 255, 255, .14); color: #f4f7fb; }
[data-theme="dark"] .form-control::placeholder { color: #6f7e92; }
[data-theme="dark"] .form-control:focus { background: #0a0f17; border-color: var(--brand-glow); box-shadow: 0 0 0 4px rgba(var(--glow-rgb), .18); }
[data-theme="dark"] .alert-success { background: rgba(30, 160, 90, .16); color: #7ee2a8; }

/* Pieces that are already dark get a subtle lift instead */
[data-theme="dark"] .to-top { background: var(--card); border: 1px solid var(--line); }
[data-theme="dark"] .to-top:hover { background: var(--grad-brand); }
[data-theme="dark"] .cta-inner { border-color: rgba(255, 255, 255, .1); }
[data-theme="dark"] .hero-points > div { color: #fff; }
[data-theme="dark"] .breadcrumb-item a { color: var(--brand-light); }
[data-theme="dark"] .footer-links a, [data-theme="dark"] .footer-contact a { color: #a9b6c7; }
[data-theme="dark"] .footer-links a:hover, [data-theme="dark"] .footer-contact a:hover { color: var(--brand-glow); }
[data-theme="dark"] .footer-social a, [data-theme="dark"] .footer-brand { color: #fff; }
[data-theme="dark"] .skip-link { color: #fff; }
html[data-theme="dark"]::-webkit-scrollbar-track { background: #0a0e15; }
html[data-theme="dark"]::-webkit-scrollbar-thumb { border-color: #0a0e15; }
html[data-theme="dark"] { scrollbar-color: var(--brand) #0a0e15; }

/* 14. Partners strip ------------------------------------------------------------ */
.partners { position: relative; padding: 56px 0 60px; border-bottom: 0; background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); overflow: hidden; }
.partners::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(11, 22, 36, .06) 1.5px, transparent 2px) 0 0 / 26px 26px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); pointer-events: none; }
.partners .container { position: relative; }
.partners-title { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 34px; font-size: .78rem; letter-spacing: .24em; color: var(--ink); }
.partners-title::before, .partners-title::after { content: ""; flex: 0 1 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--brand)); }
.partners-title::after { background: linear-gradient(270deg, transparent, var(--brand)); }
.partners-title span { position: relative; padding: 8px 20px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.partners-row { gap: 18px; }
.partner { position: relative; width: 168px; height: 88px; display: grid; place-items: center; padding: 14px 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .35s, box-shadow .35s, border-color .35s; }
.partner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad-brand); transform: scaleX(0); transition: transform .4s; }
.partner:hover { transform: translateY(-7px); border-color: rgba(var(--brand-rgb), .35); box-shadow: 0 18px 38px rgba(7, 9, 13, .14), 0 0 0 4px var(--brand-soft); }
.partner:hover::after { transform: scaleX(1); }
.partner img, .partners-row .partner img { height: auto; max-height: 100%; width: auto; max-width: 100%; filter: grayscale(1); opacity: .7; transition: filter .35s, opacity .35s, transform .35s; }
.partner:hover img { filter: none; opacity: 1; transform: scale(1.06); }
@media (max-width: 575.98px) { .partner { width: calc(50% - 9px); height: 76px; } .partners-title::before, .partners-title::after { flex-basis: 30px; } }

[data-theme="dark"] .partners { background: linear-gradient(180deg, #0a0e15 0%, #0e141e 100%); }
[data-theme="dark"] .partners::before { background: radial-gradient(circle, rgba(255, 255, 255, .06) 1.5px, transparent 2px) 0 0 / 26px 26px; }
[data-theme="dark"] .partners-title { color: #fff; }
[data-theme="dark"] .partners-title span { background: var(--card); }
[data-theme="dark"] .partners-row img { background: none; padding: 0; border-radius: 0; }
[data-theme="dark"] .partner { background: #fff; border-color: transparent; }

/* 15. Hero image carousel -------------------------------------------------------- */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1); transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; animation: heroZoom 9s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero::before, .hero::after { z-index: 1; }
.hero .container { z-index: 2; }
.hero-dots { position: absolute; z-index: 3; right: clamp(1.5rem, 3vw, 3.5rem); bottom: 108px; display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; padding: 0; border: 2px solid rgba(255, 255, 255, .7); border-radius: 99px; background: transparent; cursor: pointer; transition: width .35s, background .35s, border-color .35s; }
.hero-dots button:hover { background: rgba(255, 255, 255, .6); }
.hero-dots button.is-active { width: 34px; background: var(--brand-glow); border-color: var(--brand-glow); box-shadow: 0 0 14px rgba(var(--glow-rgb), .7); }
.hero-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 767.98px) { .hero-dots { bottom: 190px; right: 50%; transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .hero-slide.is-active { animation: none !important; } .hero-slide { transition: none !important; } }

/* Carousel on inner-page banners (shares the slide styles above) */
.page-hero::before, .page-hero::after { z-index: 1; }
.page-hero .container { z-index: 2; }
.page-hero .hero-dots { bottom: 22px; }
.page-hero .hero-dots button { width: 10px; height: 10px; }
.page-hero .hero-dots button.is-active { width: 28px; }
@media (max-width: 767.98px) { .page-hero .hero-dots { bottom: 14px; } }
.page-hero.hero-carousel { background: var(--jet); }

.developer-credit a { font-weight: 700; color: #fff; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; border-bottom: 1px solid rgba(var(--glow-rgb), .5); transition: border-color .2s, filter .2s; }
.developer-credit a:hover { filter: brightness(1.25); border-bottom-color: var(--brand-glow); }

/* Brand badges (home + about) */
.brand-badge { width: auto; min-width: 190px; height: 76px; flex-direction: row; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 30px; cursor: default; }
.brand-badge i { font-size: 1.25rem; color: var(--brand); transition: transform .4s; }
.brand-badge span { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); transition: color .3s; }
.brand-badge:hover i { transform: rotate(360deg) scale(1.15); }
.brand-badge:hover span { color: var(--brand); }
[data-theme="dark"] .brand-badge { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .brand-badge span { color: #f4f7fb; }
[data-theme="dark"] .brand-badge i, [data-theme="dark"] .brand-badge:hover span { color: var(--brand-glow); }
@media (max-width: 575.98px) { .brand-badge { min-width: 0; width: calc(50% - 9px); padding: 0 12px; height: 64px; } .brand-badge span { font-size: .92rem; letter-spacing: .06em; } }

/* Keep every partner logo fully inside its tile */
.partner img, .partners-row .partner img { width: auto; height: auto; max-width: 124px; max-height: 52px; object-fit: contain; }
.partner { padding: 12px 18px; }
@media (max-width: 575.98px) { .partner img, .partners-row .partner img { max-width: 100%; max-height: 44px; } }

/* 16. About page ---------------------------------------------------------------- */
.about-lead { font-size: 1.15rem; line-height: 1.8; color: var(--ink); font-weight: 500; padding-left: 18px; border-left: 4px solid var(--brand); }
.sector-label { margin: 28px 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.sector-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sector-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 99px; background: var(--brand-soft); color: var(--ink); font-weight: 600; font-size: .92rem; border: 1px solid rgba(var(--brand-rgb), .18); transition: transform .25s, background .25s, color .25s; }
.sector-chips span i { color: var(--brand); transition: color .25s; }
.sector-chips span:hover { transform: translateY(-3px); background: var(--brand); color: #fff; }
.sector-chips span:hover i { color: #fff; }

.about-panel { position: relative; overflow: hidden; padding: 34px 30px; border-radius: 22px; color: #b9c4d2; background: radial-gradient(circle at 100% 0%, rgba(var(--brand-rgb), .35), transparent 50%), radial-gradient(circle, rgba(255, 255, 255, .05) 2px, transparent 2.5px) 0 0 / 30px 30px, var(--jet); box-shadow: var(--shadow-lg); }
.about-panel::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 190px; aspect-ratio: 1; border-radius: 50%; border: 14px dotted rgba(255, 255, 255, .07); }
.about-panel h3 { color: #fff; font-size: 1.35rem; font-weight: 800; margin-bottom: 22px; }
.about-panel h3::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--grad-brand); }
.about-panel ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.about-panel li { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: transform .3s, background .3s, border-color .3s; }
.about-panel li:hover { transform: translateX(6px); background: rgba(255, 255, 255, .1); border-color: rgba(var(--glow-rgb), .5); }
.about-panel li > span { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--grad-brand); color: #fff; font-size: 1.35rem; box-shadow: 0 8px 20px rgba(var(--brand-rgb), .4); }
.about-panel h4 { color: #fff; font-size: 1.02rem; font-weight: 700; margin: 0 0 3px; }
.about-panel p { margin: 0; font-size: .9rem; line-height: 1.55; color: #a9b6c7; }
.about-panel .btn { position: relative; z-index: 1; }

[data-theme="dark"] .about-lead { color: #f4f7fb; }
[data-theme="dark"] .sector-chips span { color: #e3e9f2; border-color: rgba(var(--glow-rgb), .3); }
[data-theme="dark"] .sector-chips span i { color: var(--brand-glow); }
[data-theme="dark"] .sector-chips span:hover { color: #fff; }
[data-theme="dark"] .about-panel { border: 1px solid var(--line); }

/* 17. Product detail page ------------------------------------------------------- */
.product-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 9, 13, .55)); pointer-events: none; }
.product-visual img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.visual-stat { position: absolute; left: 20px; bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 16px; color: #fff; background: var(--grad-brand); box-shadow: 0 12px 28px rgba(var(--brand-rgb), .45); }
.visual-stat strong { font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.visual-stat span { font-size: .82rem; font-weight: 600; line-height: 1.2; max-width: 80px; }

.range-card { position: relative; height: 100%; padding: 28px 26px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.range-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-brand); }
.range-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(7, 9, 13, .13), 0 0 0 1px rgba(var(--brand-rgb), .18); }
.range-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.range-card-num { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; font-family: var(--font-head); font-weight: 800; font-size: .95rem; color: #fff; background: var(--grad-brand); box-shadow: 0 8px 18px rgba(var(--brand-rgb), .35); }
.range-card h3 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.range-card p { margin: 0; color: var(--steel); font-size: .95rem; line-height: 1.65; }
.range-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.range-chips li { padding: 6px 13px; border-radius: 99px; font-size: .85rem; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); transition: background .25s, color .25s, border-color .25s, transform .25s; }
.range-card:hover .range-chips li { background: var(--brand-soft); border-color: rgba(var(--brand-rgb), .22); }
.range-chips li:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }

.why-text { color: #a9b6c7; font-size: 1.05rem; line-height: 1.8; }
.benefit-tile { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); transition: transform .3s, background .3s, border-color .3s; }
.benefit-tile:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); border-color: rgba(var(--glow-rgb), .5); }
.benefit-tile > span { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; font-size: 1.2rem; color: #fff; background: var(--grad-brand); box-shadow: 0 6px 16px rgba(var(--brand-rgb), .4); }
.benefit-tile p { margin: 0; color: #e3e9f2; font-weight: 500; line-height: 1.55; }
.section-dark .display-title { color: #fff; }

[data-theme="dark"] .range-card { background: var(--card); }
[data-theme="dark"] .range-card p { color: var(--steel); }
[data-theme="dark"] .range-chips li { color: #dbe3ee; background: #0e141e; }
[data-theme="dark"] .range-chips li:hover { color: #fff; }
@media (max-width: 575.98px) { .visual-stat { left: 12px; bottom: 12px; padding: 10px 14px; } }

/* Admin login icon in the header */
.admin-login-link { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 1.1rem; transition: transform .25s, border-color .25s, box-shadow .25s, color .25s; }
.admin-login-link:hover { color: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); transform: translateY(-2px); }
.admin-login-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[data-theme="dark"] .admin-login-link { background: var(--card); color: #fff; }
[data-theme="dark"] .admin-login-link:hover { color: var(--brand-glow); border-color: var(--brand-glow); }

/* Home: "Our Services" section ----------------------------------------------------------------------- */
.section-dark { background-color: #07090d; }                      /* solid dark base: the section is never white, even if a gradient fails */
.section-services { position: relative; overflow: hidden; padding: 110px 0 104px; background-color: #07090d;
    background-image: radial-gradient(circle at 88% -5%, rgba(var(--brand-rgb), .24), transparent 46%), radial-gradient(circle at 5% 105%, rgba(var(--brand-rgb), .16), transparent 42%), radial-gradient(circle, rgba(255, 255, 255, .05) 2px, transparent 2.5px);
    background-size: auto, auto, 34px 34px; }
.services-ring { position: absolute; left: -170px; top: 50%; width: 460px; aspect-ratio: 1; border-radius: 50%; border: 22px dotted rgba(255, 255, 255, .06); transform: translateY(-50%); animation: ringSpin 70s linear infinite; pointer-events: none; }
@keyframes ringSpin { to { transform: translateY(-50%) rotate(360deg); } }
.section-services .section-heading h2 { color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.section-services .section-heading p { color: #c3cddb; }
.section-services .eyebrow { color: var(--brand-glow); }

/* Cards */
.section-services .service-card.is-dark { padding: 38px 28px 28px; border-radius: 24px; color: #c3cddb; overflow: hidden; backdrop-filter: blur(8px);
    background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .35); transition: transform .35s, box-shadow .35s, border-color .35s, background .35s; }
.section-services .service-card.is-dark::before { left: 28px; top: 0; width: 56px; height: 4px; border-radius: 0 0 6px 6px; background: var(--grad-brand); transition: width .45s; }
.section-services .service-card.is-dark::after { content: ""; position: absolute; right: -70px; top: -70px; width: 200px; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-rgb), .35), transparent 68%); opacity: .55; transition: opacity .4s, transform .5s; pointer-events: none; }
.section-services .service-card.is-dark:hover { transform: translateY(-12px); background: linear-gradient(160deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05));
    border-color: rgba(var(--glow-rgb), .65); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 46px rgba(var(--brand-rgb), .28); }
.section-services .service-card.is-dark:hover::before { width: calc(100% - 56px); }
.section-services .service-card.is-dark:hover::after { opacity: 1; transform: scale(1.25); }

.service-card-num { position: absolute; right: 22px; top: 14px; font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -.02em; color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .16); transition: -webkit-text-stroke-color .35s, transform .45s; pointer-events: none; }
.section-services .service-card.is-dark:hover .service-card-num { -webkit-text-stroke-color: rgba(var(--glow-rgb), .75); transform: translateY(4px) scale(1.06); }

.section-services .service-card.is-dark .service-card-icon { position: relative; z-index: 1; width: 66px; height: 66px; margin-bottom: 24px; border-radius: 20px; font-size: 1.9rem; color: #fff;
    background: var(--grad-brand); box-shadow: 0 14px 28px rgba(var(--brand-rgb), .45), inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .45s cubic-bezier(.2, .9, .3, 1.3); }
.section-services .service-card.is-dark:hover .service-card-icon { transform: rotate(-8deg) scale(1.1); background: var(--grad-brand); color: #fff; }
.section-services .service-card.is-dark h3 { position: relative; z-index: 1; margin-bottom: 10px; color: #fff; font-size: 1.28rem; font-weight: 800; letter-spacing: -.01em; }
.section-services .service-card.is-dark:hover h3 { color: #fff; }
.section-services .service-card.is-dark p { position: relative; z-index: 1; margin-bottom: 22px; color: #b9c4d2; line-height: 1.7; }
.section-services .service-card.is-dark .more { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 99px; font-weight: 700; font-size: .88rem; color: #fff;
    background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .2); transition: background .3s, border-color .3s, box-shadow .3s; }
.section-services .service-card.is-dark:hover .more { background: var(--grad-brand); border-color: transparent; box-shadow: 0 10px 22px rgba(var(--brand-rgb), .4); }

@media (max-width: 767.98px) { .section-services { padding: 72px 0 68px; } .services-ring { display: none; } .service-card-num { font-size: 2.8rem; } }
@media (prefers-reduced-motion: reduce) { .services-ring { animation: none; } }

/* "Our Services": high-contrast, easy-to-read text ------------------------------------------------------ */
section.section-services .section-heading { max-width: 780px; }
section.section-services .section-heading .eyebrow { color: var(--brand-light); font-size: .85rem; font-weight: 800; letter-spacing: .2em; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
section.section-services .section-heading h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.15; text-shadow: 0 2px 22px rgba(0, 0, 0, .7); }
section.section-services .section-heading p { color: #e6ebf2; font-size: 1.14rem; line-height: 1.8; font-weight: 500; text-shadow: 0 1px 14px rgba(0, 0, 0, .65); }
section.section-services .service-card.is-dark h3 { color: #fff; font-size: 1.32rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
section.section-services .service-card.is-dark p { color: #e1e7f0; font-size: 1.02rem; line-height: 1.75; font-weight: 450; }
section.section-services .service-card.is-dark .more { color: #fff; font-size: .92rem; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .32); }
section.section-services .service-card.is-dark { background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05)); border-color: rgba(255, 255, 255, .2); }
section.section-services .service-card.is-dark .service-card-num { -webkit-text-stroke-color: rgba(255, 255, 255, .26); }

/* "Our Services" follows the colour theme: light theme = light section, dark theme = the dark look above ----------- */
html:not([data-theme="dark"]) section.section-services { background-color: var(--surface); color: var(--steel);
    background-image: radial-gradient(circle at 88% -5%, rgba(var(--brand-rgb), .12), transparent 46%), radial-gradient(circle at 5% 105%, rgba(var(--brand-rgb), .08), transparent 42%), radial-gradient(circle, rgba(11, 22, 36, .06) 2px, transparent 2.5px);
    background-size: auto, auto, 34px 34px; }
html:not([data-theme="dark"]) .services-ring { border-color: rgba(11, 22, 36, .06); }
html:not([data-theme="dark"]) section.section-services .section-heading .eyebrow { color: var(--brand); text-shadow: none; }
html:not([data-theme="dark"]) section.section-services .section-heading h2 { color: var(--ink); text-shadow: none; }
html:not([data-theme="dark"]) section.section-services .section-heading p { color: #4a5a6e; text-shadow: none; font-weight: 400; }

html:not([data-theme="dark"]) section.section-services .service-card.is-dark { background: #fff; border-color: var(--line); backdrop-filter: none; box-shadow: 0 10px 30px rgba(11, 22, 36, .08); }
html:not([data-theme="dark"]) section.section-services .service-card.is-dark::after { opacity: .35; }
html:not([data-theme="dark"]) section.section-services .service-card.is-dark:hover { background: #fff; border-color: rgba(var(--brand-rgb), .45); box-shadow: 0 26px 56px rgba(11, 22, 36, .16), 0 0 0 1px rgba(var(--brand-rgb), .18); }
html:not([data-theme="dark"]) section.section-services .service-card.is-dark h3 { color: var(--ink); text-shadow: none; }
html:not([data-theme="dark"]) section.section-services .service-card.is-dark:hover h3 { color: var(--brand); }
html:not([data-theme="dark"]) section.section-services .service-card.is-dark p { color: #4a5a6e; font-weight: 400; }
html:not([data-theme="dark"]) section.section-services .service-card.is-dark .service-card-num { -webkit-text-stroke-color: rgba(11, 22, 36, .13); }
html:not([data-theme="dark"]) section.section-services .service-card.is-dark:hover .service-card-num { -webkit-text-stroke-color: rgba(var(--brand-rgb), .6); }
html:not([data-theme="dark"]) section.section-services .service-card.is-dark .more { color: var(--brand); background: rgba(var(--brand-rgb), .1); border-color: rgba(var(--brand-rgb), .28); }
html:not([data-theme="dark"]) section.section-services .service-card.is-dark:hover .more { color: #fff; background: var(--grad-brand); border-color: transparent; }

/* ==========================================================================
   Public data cards — one attractive system for every card on the website
   (products, services, industries, vision/mission, offerings, contact, features, benefits)
   Light theme is the base; dark theme versions follow. Colours come from the accent variables.
   ========================================================================== */

/* ---- shared shape, motion and the accent sweep line ---- */
.product-card, .service-card:not(.is-dark), .service-wide, .industry-card, .vm-card, .offer-card, .contact-card {
    position: relative; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(11, 22, 36, .07); transition: transform .35s, box-shadow .35s, border-color .35s, background .35s;
}
.product-card::before, .industry-card::before, .vm-card::before, .offer-card::before, .service-wide::before {
    content: ""; position: absolute; left: 0; top: 0; z-index: 3; height: 4px; width: 56px; border-radius: 0 0 6px 0; background: var(--grad-brand); transition: width .5s;
}
.product-card:hover::before, .industry-card:hover::before, .vm-card:hover::before, .offer-card:hover::before, .service-wide:hover::before { width: 100%; }
.product-card:hover, .service-card:not(.is-dark):hover, .service-wide:hover, .industry-card:hover, .vm-card:hover, .offer-card:hover {
    transform: translateY(-10px); border-color: rgba(var(--brand-rgb), .35); box-shadow: 0 28px 60px rgba(11, 22, 36, .16), 0 0 0 1px rgba(var(--brand-rgb), .16);
}
/* soft accent glow in the corner */
.industry-card::after, .offer-card::after, .product-card-body::after {
    content: ""; position: absolute; right: -60px; bottom: -60px; width: 170px; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(var(--brand-rgb), .16), transparent 68%); opacity: .6; transition: opacity .4s, transform .5s;
}
.industry-card:hover::after, .offer-card:hover::after, .product-card:hover .product-card-body::after { opacity: 1; transform: scale(1.3); }
.product-card-body { position: relative; }

/* ---- icon tiles: always an accent gradient with white icon ---- */
.service-card:not(.is-dark) .service-card-icon, .industry-icon, .vm-icon, .contact-card > span, .feature > i {
    background: var(--grad-brand); color: #fff; box-shadow: 0 12px 26px rgba(var(--brand-rgb), .38), inset 0 1px 0 rgba(255, 255, 255, .3);
    transition: transform .45s cubic-bezier(.2, .9, .3, 1.3), box-shadow .3s;
}
.service-card:not(.is-dark):hover .service-card-icon, .vm-card:hover .vm-icon, a.contact-card:hover > span { transform: rotate(-8deg) scale(1.1); background: var(--grad-brand); color: #fff; }

/* ---- pill buttons ("Learn more", "View range") ---- */
.product-card .more, .service-card:not(.is-dark) .more, .service-wide .more {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 4px; padding: 7px 16px; border-radius: 99px; font-weight: 700; font-size: .86rem; color: var(--brand);
    background: rgba(var(--brand-rgb), .1); border: 1px solid rgba(var(--brand-rgb), .22); transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.product-card:hover .more, .service-card:not(.is-dark):hover .more, .service-wide:hover .more { color: #fff; background: var(--grad-brand); border-color: transparent; box-shadow: 0 10px 22px rgba(var(--brand-rgb), .38); }

/* ---- product cards ---- */
.product-card-img::after { background: linear-gradient(180deg, transparent 45%, rgba(7, 9, 13, .6)); }
.product-card-icon { width: 52px; height: 52px; border-radius: 16px; font-size: 1.5rem; box-shadow: 0 12px 26px rgba(var(--brand-rgb), .5), inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .45s cubic-bezier(.2, .9, .3, 1.3); }
.product-card:hover .product-card-icon { transform: rotate(-8deg) scale(1.1); }
.product-card-body { padding: 24px 24px 22px; }
.product-card-body h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
.product-card-body p { line-height: 1.65; margin-bottom: 18px; }

/* ---- service cards (light, other pages) and wide cards (Services page) ---- */
.service-card:not(.is-dark) { padding: 34px 26px 28px; }
.service-card:not(.is-dark) .service-card-icon { width: 64px; height: 64px; border-radius: 20px; font-size: 1.8rem; }
.service-card:not(.is-dark) h3 { font-weight: 800; }
.service-card:not(.is-dark):hover h3 { color: var(--brand); }
.service-wide-img { position: relative; }
.service-wide-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(7, 9, 13, .35)); }
.service-wide-body { padding: 30px 30px 26px; }
.service-wide-body h3 { font-weight: 800; }
.service-wide-body .service-card-icon { width: 58px; height: 58px; border-radius: 18px; }

/* ---- industries ---- */
.industry-card { padding: 34px 24px 30px; }
.industry-icon { width: 76px; height: 76px; border-radius: 24px; font-size: 2rem; margin-bottom: 20px; }
.industry-card:hover .industry-icon { background: var(--grad-brand); color: #fff; transform: rotateY(180deg) scale(1.08); box-shadow: 0 18px 34px rgba(var(--brand-rgb), .45); }
.industry-card h3 { font-weight: 800; position: relative; z-index: 1; }
.industry-card p { position: relative; z-index: 1; line-height: 1.65; }

/* ---- vision / mission / coverage ---- */
.vm-card { padding: 40px 32px 34px; }
.vm-card::after { width: 190px; height: 190px; right: -60px; top: -60px; opacity: .8; }
.vm-icon { width: 66px; height: 66px; border-radius: 20px; font-size: 1.9rem; margin-bottom: 22px; }
.vm-card h3 { font-weight: 800; }
.vm-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 5px 14px; border-radius: 99px; background: rgba(var(--brand-rgb), .1); border: 1px solid rgba(var(--brand-rgb), .22); }

/* ---- numbered offering cards ---- */
.offer-card { padding: 32px 28px 28px; }
.offer-num { font-size: 3rem; -webkit-text-stroke: 1.5px rgba(var(--brand-rgb), .45); transition: -webkit-text-stroke-color .35s, transform .45s; display: inline-block; }
.offer-card:hover .offer-num { -webkit-text-stroke-color: var(--brand); transform: translateX(4px) scale(1.06); }
.offer-card h3 { font-weight: 800; position: relative; z-index: 1; }
.offer-card p { position: relative; z-index: 1; line-height: 1.65; }

/* ---- contact cards and small feature cards ---- */
.contact-card { padding: 16px 18px; border-radius: 18px; }
.contact-card > span { width: 52px; height: 52px; border-radius: 16px; font-size: 1.4rem; }
a.contact-card:hover { transform: translateX(8px); border-color: rgba(var(--brand-rgb), .4); box-shadow: 0 18px 40px rgba(11, 22, 36, .12); }
.feature { align-items: center; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(11, 22, 36, .06); transition: transform .3s, box-shadow .3s, border-color .3s; }
.feature > i { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; font-size: 1.45rem; }
.feature:hover { transform: translateY(-5px); border-color: rgba(var(--brand-rgb), .35); box-shadow: 0 18px 38px rgba(11, 22, 36, .12); }

/* ---- product detail: range cards ---- */
.range-card { border-radius: 22px; box-shadow: 0 10px 30px rgba(11, 22, 36, .07); }
.range-card-num { width: 48px; height: 48px; border-radius: 15px; font-size: 1rem; }

/* ---- soft sections get a gentle pattern so white cards stand out ---- */
.section-soft { background-image: radial-gradient(circle at 100% 0%, rgba(var(--brand-rgb), .07), transparent 40%), radial-gradient(circle, rgba(11, 22, 36, .05) 2px, transparent 2.5px); background-size: auto, 32px 32px; }

/* ---- "Why EPS" (product pages): follows the theme like the services section ---- */
html:not([data-theme="dark"]) .section-dark:not(.section-services) { background-color: var(--surface); color: var(--steel);
    background-image: radial-gradient(circle at 88% -5%, rgba(var(--brand-rgb), .12), transparent 46%), radial-gradient(circle, rgba(11, 22, 36, .06) 2px, transparent 2.5px); background-size: auto, 34px 34px; }
html:not([data-theme="dark"]) .section-dark:not(.section-services) .display-title.text-white { color: var(--ink) !important; }
html:not([data-theme="dark"]) .section-dark:not(.section-services) .why-text { color: #4a5a6e; }
html:not([data-theme="dark"]) .benefit-tile { background: #fff; border-color: var(--line); backdrop-filter: none; box-shadow: 0 8px 22px rgba(11, 22, 36, .07); }
html:not([data-theme="dark"]) .benefit-tile p { color: var(--ink); }
html:not([data-theme="dark"]) .benefit-tile:hover { background: #fff; border-color: rgba(var(--brand-rgb), .4); box-shadow: 0 18px 38px rgba(11, 22, 36, .12); }

/* ==========================================================================
   Dark theme versions
   ========================================================================== */
[data-theme="dark"] .product-card, [data-theme="dark"] .service-card:not(.is-dark), [data-theme="dark"] .service-wide, [data-theme="dark"] .industry-card,
[data-theme="dark"] .vm-card, [data-theme="dark"] .offer-card, [data-theme="dark"] .contact-card, [data-theme="dark"] .feature, [data-theme="dark"] .range-card {
    background: linear-gradient(160deg, #1b2536, #121a27); border-color: rgba(255, 255, 255, .1); box-shadow: 0 14px 38px rgba(0, 0, 0, .45);
}
[data-theme="dark"] .product-card:hover, [data-theme="dark"] .service-card:not(.is-dark):hover, [data-theme="dark"] .service-wide:hover, [data-theme="dark"] .industry-card:hover,
[data-theme="dark"] .vm-card:hover, [data-theme="dark"] .offer-card:hover, [data-theme="dark"] .feature:hover, [data-theme="dark"] .range-card:hover {
    border-color: rgba(var(--glow-rgb), .55); box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 44px rgba(var(--brand-rgb), .22);
}
[data-theme="dark"] a.contact-card:hover { border-color: rgba(var(--glow-rgb), .55); box-shadow: 0 20px 44px rgba(0, 0, 0, .55), 0 0 30px rgba(var(--brand-rgb), .18); }
[data-theme="dark"] .product-card-body p, [data-theme="dark"] .industry-card p, [data-theme="dark"] .offer-card p, [data-theme="dark"] .service-card:not(.is-dark) p,
[data-theme="dark"] .service-wide-body p, [data-theme="dark"] .contact-card p, [data-theme="dark"] .feature p, [data-theme="dark"] .range-card p { color: #b4c0d0; }
[data-theme="dark"] .product-card .more, [data-theme="dark"] .service-card:not(.is-dark) .more, [data-theme="dark"] .service-wide .more { color: var(--brand-light); background: rgba(var(--brand-rgb), .16); border-color: rgba(var(--glow-rgb), .3); }
[data-theme="dark"] .product-card:hover .more, [data-theme="dark"] .service-card:not(.is-dark):hover .more, [data-theme="dark"] .service-wide:hover .more { color: #fff; background: var(--grad-brand); border-color: transparent; }
[data-theme="dark"] .vm-tag { color: var(--brand-light); background: rgba(var(--brand-rgb), .16); border-color: rgba(var(--glow-rgb), .3); }
[data-theme="dark"] .offer-num { -webkit-text-stroke-color: rgba(var(--glow-rgb), .5); }
[data-theme="dark"] .offer-card:hover .offer-num { -webkit-text-stroke-color: var(--brand-glow); }
[data-theme="dark"] .section-soft { background-image: radial-gradient(circle at 100% 0%, rgba(var(--brand-rgb), .12), transparent 40%), radial-gradient(circle, rgba(255, 255, 255, .05) 2px, transparent 2.5px); background-size: auto, 32px 32px; }

@media (max-width: 575.98px) { .industry-card, .vm-card, .offer-card { padding-left: 20px; padding-right: 20px; } .vm-card { padding-top: 32px; } }
@media (prefers-reduced-motion: reduce) { .product-card, .service-card, .service-wide, .industry-card, .vm-card, .offer-card, .feature { transition: none; } }

/* ==========================================================================
   Gradient borders on every card: accent colour blended with the theme's edge colour
   light theme: accent -> silver -> accent      dark theme: accent -> slate -> accent
   The card body keeps its own fill (padding-box); the gradient shows through a transparent 2px border (border-box).
   ========================================================================== */
:root {
    --edge: #b9c5d8;                                                           /* the theme colour at the card edge */
    --card-fill: linear-gradient(#fff, #fff);
    --edge-gradient: linear-gradient(135deg, var(--brand-glow) 0%, var(--brand) 20%, var(--edge) 50%, var(--brand) 80%, var(--brand-glow) 100%);
}
[data-theme="dark"] {
    --edge: #4d6283;
    --card-fill: linear-gradient(160deg, #1d2739, #121a27);
}

.product-card, .service-card, .service-wide, .industry-card, .vm-card, .offer-card, .range-card, .contact-card, .feature, .benefit-tile, .form-card {
    border: 2px solid transparent !important;
    background: var(--card-fill) padding-box, var(--edge-gradient) border-box !important;
    background-size: auto, 260% 260% !important;
    background-position: 0 0, 0% 0% !important;
    transition: transform .35s, box-shadow .35s, background-position 1s ease !important;
}
.product-card:hover, .service-card:hover, .service-wide:hover, .industry-card:hover, .vm-card:hover, .offer-card:hover, .range-card:hover, .contact-card:hover, .feature:hover, .benefit-tile:hover, .form-card:hover {
    border-color: transparent !important;
    background-position: 0 0, 100% 100% !important;                           /* the colours travel along the border */
}
/* a card that is only a static panel (the contact form) keeps its border still */
.form-card, .form-card:hover { transition: box-shadow .35s !important; background-position: 0 0, 0% 0% !important; }

/* The Services band cards and the benefit tiles need no special case: they use the same theme variables,
   so they are white with a silver/accent frame in the light theme and dark with a slate/accent frame in the dark theme. */

/* hover glow around the gradient frame */
.product-card:hover, .service-card:hover, .service-wide:hover, .industry-card:hover, .vm-card:hover, .offer-card:hover, .range-card:hover, .feature:hover, .benefit-tile:hover {
    box-shadow: 0 28px 60px rgba(11, 22, 36, .18), 0 0 34px rgba(var(--brand-rgb), .22) !important;
}
[data-theme="dark"] .product-card:hover, [data-theme="dark"] .service-card:hover, [data-theme="dark"] .service-wide:hover, [data-theme="dark"] .industry-card:hover,
[data-theme="dark"] .vm-card:hover, [data-theme="dark"] .offer-card:hover, [data-theme="dark"] .range-card:hover, [data-theme="dark"] .feature:hover, [data-theme="dark"] .benefit-tile:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, .65), 0 0 40px rgba(var(--brand-rgb), .3) !important;
}

@media (prefers-reduced-motion: reduce) { .product-card, .service-card, .service-wide, .industry-card, .vm-card, .offer-card, .range-card, .contact-card, .feature, .benefit-tile { transition: none !important; } }

/* Home hero headline: roomy spacing, and the whole headline gently "breathes" */
.hero h1 { letter-spacing: .005em; line-height: 1.32; word-spacing: .06em; text-wrap: balance; transform-origin: left center; animation: hero-breathe 4.5s ease-in-out infinite; }
@keyframes hero-breathe {
    0%, 100% { transform: scale(1); opacity: .92; }
    50% { transform: scale(1.02); opacity: 1; }
}
/* Standard (desktop) screens: the headline sits on two lines */
@media (min-width: 992px) {
    .hero h1 { font-size: clamp(1.9rem, 2.9vw, 3.4rem); }
}

/* Home "About" image: sliding carousel of the banner images */
.about-slides { position: relative; overflow: hidden; aspect-ratio: 1 / 1.05; }
.about-track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.about-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.about-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .25s, background .2s, color .2s; }
.about-nav.prev { left: 12px; } .about-nav.next { right: 12px; }
.about-slides:hover .about-nav, .about-nav:focus-visible { opacity: 1; }
.about-nav:hover { background: var(--brand); color: #fff; }
@media (hover: none) { .about-nav { opacity: 1; } }
.about-dots { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: flex; gap: 8px; }
.about-dots button { width: 10px; height: 10px; padding: 0; border-radius: 10px; border: 2px solid #fff; background: rgba(0, 0, 0, .35); transition: width .3s, background .3s; }
.about-dots button.is-active { width: 28px; background: var(--brand); }
@media (prefers-reduced-motion: reduce) { .about-track { transition: none; } }

/* Gallery page: responsive photo grid + full-size viewer */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }   /* four columns; two on phones */
.gallery-item { margin: 0; }
.gallery-link { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.gallery-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-link:hover img { transform: scale(1.06); }
.gallery-link figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 14px; color: #fff; font-weight: 600; font-size: .95rem; background: linear-gradient(to top, rgba(7, 9, 13, .82), transparent); }
.gallery-zoom { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s; }
.gallery-link:hover .gallery-zoom, .gallery-link:focus-visible .gallery-zoom { opacity: 1; transform: scale(1); }
.gallery-lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(7, 9, 13, .92); padding: 56px 72px; }
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.gallery-lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.gallery-lightbox figcaption { color: #fff; margin-top: 14px; font-weight: 600; }
.gl-close, .gl-nav { position: absolute; border: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.2rem; transition: background .2s; }
.gl-close:hover, .gl-nav:hover { background: var(--brand); }
.gl-close { top: 18px; right: 18px; }
.gl-nav { top: 50%; transform: translateY(-50%); }
.gl-nav.prev { left: 16px; } .gl-nav.next { right: 16px; }
@media (max-width: 767.98px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .gallery-lightbox { padding: 56px 12px; } .gl-nav.prev { left: 6px; } .gl-nav.next { right: 6px; } }

/* Gallery card buttons: Share + WhatsApp enquiry about that photo */
.gallery-actions { display: flex; gap: 8px; margin-top: 10px; }
.gallery-actions .btn-share, .gallery-actions .btn-whatsapp { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 10px; font-size: .85rem; font-weight: 600; line-height: 1.2; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.gallery-actions .btn-share:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
.gallery-actions .btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.gallery-actions .btn-whatsapp:hover { background: #1ebe5b; border-color: #1ebe5b; color: #fff; transform: translateY(-1px); }
@media (max-width: 575.98px) { .gallery-actions { gap: 6px; } .gallery-actions .btn-share, .gallery-actions .btn-whatsapp { padding: 8px 6px; font-size: .78rem; } }
[data-theme="dark"] .gallery-actions .btn-share { background: var(--surface); color: #e3e9f2; border-color: rgba(255, 255, 255, .14); }

/* Single photo page (target of WhatsApp enquiry links) */
.gallery-single { max-width: 820px; margin: 0 auto; text-align: center; }
.gallery-single img { max-width: 100%; max-height: 70vh; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery-single .gallery-actions { max-width: 420px; margin: 18px auto 0; }
.gallery-back { display: inline-block; margin-top: 18px; font-weight: 600; }

/* Gallery cards: the same accent -> theme edge -> accent gradient border as every other card */
.gallery-item {
    padding: 8px; border-radius: var(--radius);
    border: 2px solid transparent;
    background: var(--card-fill) padding-box, var(--edge-gradient) border-box;
    background-size: auto, 260% 260%; background-position: 0 0, 0% 0%;
    box-shadow: var(--shadow-sm);
    transition: transform .35s, box-shadow .35s, background-position 1s ease;
}
.gallery-item:hover { background-position: 0 0, 100% 100%; transform: translateY(-4px); box-shadow: 0 22px 50px rgba(11, 22, 36, .16), 0 0 30px rgba(var(--brand-rgb), .2); }
[data-theme="dark"] .gallery-item:hover { box-shadow: 0 26px 60px rgba(0, 0, 0, .6), 0 0 34px rgba(var(--brand-rgb), .28); }
.gallery-item .gallery-link { border-radius: calc(var(--radius) - 8px); box-shadow: none; }
.gallery-item .gallery-link:hover { transform: none; box-shadow: none; }
.gallery-item .gallery-actions { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .gallery-item { transition: none; } }

/* Top-menu "Get a Quote": compact one-line pill with a glowing icon dot */
.navbar .btn.nav-quote {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: .42rem .95rem .42rem .5rem; font-size: .84rem; font-weight: 700; letter-spacing: .02em; line-height: 1.2;
    border-radius: 999px; box-shadow: 0 6px 16px rgba(var(--brand-rgb), .3), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.navbar .btn.nav-quote i { margin: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); transition: transform .3s, background .3s; }
.navbar .btn.nav-quote:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(var(--brand-rgb), .42), inset 0 1px 0 rgba(255, 255, 255, .3); }
.navbar .btn.nav-quote:hover i { transform: rotate(-12deg) scale(1.1); background: rgba(255, 255, 255, .3); }
@media (prefers-reduced-motion: reduce) { .navbar .btn.nav-quote, .navbar .btn.nav-quote i { transition: none; } .navbar .btn.nav-quote:hover, .navbar .btn.nav-quote:hover i { transform: none; } }
