/* ==========================================================================
   Evotech Scientific Solutions — brand overrides for the Extech template.
   Palette sampled from the supplied logo:
     primary  #003D91  (deep blue)
     accent   #3E940A  (green)
   Loaded AFTER main.css so these win without touching the vendor file.
   ========================================================================== */

:root {
    --theme-color:  #003D91;   /* was #F02801 */
    --theme:        #003D91;   /* was #384BFF */
    --theme-color2: #04255A;   /* dark blue for footer / dark sections */
    --accent-color: #3E940A;   /* logo green — CTAs, ticks, highlights */
    --accent-dark:  #327A08;
    --title-color:  #0B1F3A;
    --text-color:   #4A5A75;
    --border-color: #D6E0F2;
    --smoke-color:  #F2F6FC;
    --gray-color:   #F5F7FA;
}

/* --------------------------------------------------------- base overrides */
body { color: var(--text-color); }

h1, h2, h3, h4, h5, h6,
.title, .section-title .title { color: var(--title-color); }

a { color: var(--theme-color); }
a:hover { color: var(--accent-color); }

/* The template hard-codes its orange in a lot of places. */
.theme-btn,
.gt-btn,
.theme-btn-2:hover,
.bg-theme,
.hero-section .theme-btn {
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
    color: #fff !important;
}

.theme-btn:hover,
.gt-btn:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

.theme-btn-2 { color: var(--theme-color); }
.theme-btn-2:hover { color: #fff; }

.bg-theme-color  { background-color: var(--smoke-color) !important; }
.bg-theme-color2 { background-color: var(--theme-color2) !important; }

.text-theme, .subtitle span, .section-title .subtitle span { color: var(--accent-color) !important; }

/* Icons, bullets and accents that were orange */
.service-box-items .icon,
.choose-box-items .icon,
.work-process-items .icon { background-color: rgba(0, 61, 145, .08); }

.service-box-items:hover .icon,
.service-box-items.active .icon { background-color: var(--theme-color); }

ul.list-item li i,
.list-check li i,
.check-list li i { color: var(--accent-color); }

/* Header / footer */
header .header-logo img,
.offcanvas__logo img { max-height: 52px; width: auto; }

.footer-section .about-logo img { max-height: 56px; width: auto; }

.footer-section { background-color: var(--theme-color2) !important; }

/* ------------------------------------------------------- catalogue pieces */

/* Category card */
.ess-cat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 26px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    transition: all .3s ease;
}
.ess-cat-card:hover {
    border-color: var(--theme-color);
    box-shadow: 0 18px 40px rgba(0, 61, 145, .10);
    transform: translateY(-4px);
}
.ess-cat-card .ess-cat-icon {
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(0, 61, 145, .08);
    margin-bottom: 18px;
}
.ess-cat-card .ess-cat-icon img { width: 30px; height: 30px; }
.ess-cat-card h3 { font-size: 20px; line-height: 1.35; margin-bottom: 10px; }
.ess-cat-card h3 a { color: var(--title-color); }
.ess-cat-card h3 a:hover { color: var(--theme-color); }
.ess-cat-card p { font-size: 15px; margin-bottom: 16px; }
.ess-cat-card .ess-cat-meta {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}
.ess-cat-card .ess-count { color: var(--accent-color); font-weight: 600; }

/* Knowledge-base article imagery.
   Editorial photos are cropped (cover), unlike product shots which are
   letterboxed (contain) so no part of the instrument is cut off. */
.ess-post-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    margin: -30px -26px 18px;   /* bleed to the card edge — matches .ess-cat-card padding */
    background: var(--smoke-color);
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}
.ess-post-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.ess-cat-card:hover .ess-post-thumb img { transform: scale(1.04); }

.ess-post-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 26px;
    background: var(--smoke-color);
}

/* Product card */
.ess-prod-card {
    height: 100%;
    display: flex; flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: all .3s ease;
}
.ess-prod-card:hover {
    border-color: var(--theme-color);
    box-shadow: 0 16px 36px rgba(0, 61, 145, .10);
}
.ess-prod-card .ess-prod-thumb {
    aspect-ratio: 4 / 3;
    background: var(--smoke-color);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.ess-prod-card .ess-prod-thumb img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform .4s ease;
}
.ess-prod-card:hover .ess-prod-thumb img { transform: scale(1.05); }
.ess-prod-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.ess-prod-model {
    display: inline-block;
    font-size: 12px; font-weight: 700; letter-spacing: .04em;
    color: var(--theme-color);
    background: rgba(0, 61, 145, .07);
    padding: 3px 9px; border-radius: 4px;
    margin-bottom: 9px;
}
.ess-prod-card h3 { font-size: 17px; line-height: 1.4; margin-bottom: 8px; }
.ess-prod-card h3 a { color: var(--title-color); }
.ess-prod-card h3 a:hover { color: var(--theme-color); }
.ess-prod-card p { font-size: 14px; margin-bottom: 14px; }
.ess-prod-foot {
    margin-top: auto; padding-top: 14px;
    border-top: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ess-brand-tag { font-size: 12px; color: var(--text-color); opacity: .8; }

/* Spec table */
.ess-spec-table { width: 100%; border-collapse: collapse; }
.ess-spec-table th,
.ess-spec-table td {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    font-size: 15px;
    vertical-align: top;
}
.ess-spec-table th {
    width: 38%;
    background: var(--smoke-color);
    color: var(--title-color);
    font-weight: 600;
    text-align: left;
}
.ess-spec-table tr:nth-child(even) td { background: #fcfdff; }

/* Sourcing CTA — "can't find it? we'll source it" */
.ess-sourcing-cta {
    background: linear-gradient(115deg, var(--theme-color) 0%, #06306F 55%, var(--theme-color2) 100%);
    border-radius: 14px;
    padding: 44px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.ess-sourcing-cta::after {
    content: '';
    position: absolute; right: -70px; top: -70px;
    width: 260px; height: 260px; border-radius: 50%;
    background: rgba(62, 148, 10, .18);
}
.ess-sourcing-cta h3 { color: #fff; font-size: 27px; margin-bottom: 12px; }
.ess-sourcing-cta p  { color: rgba(255, 255, 255, .88); margin-bottom: 0; max-width: 640px; }
.ess-sourcing-cta .theme-btn {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    white-space: nowrap;
}
.ess-sourcing-cta .theme-btn:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--theme-color) !important;
}

/* Forms */
.ess-form .form-clt input,
.ess-form .form-clt select,
.ess-form .form-clt textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: #fff;
    font-size: 15px;
    color: var(--title-color);
}
.ess-form .form-clt input:focus,
.ess-form .form-clt select:focus,
.ess-form .form-clt textarea:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(0, 61, 145, .10);
}
.ess-form .form-clt { margin-bottom: 18px; }
.ess-form label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 14px; color: var(--title-color); }
.ess-form .ess-hp { position: absolute; left: -9999px; opacity: 0; }

.ess-alert { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; font-size: 15px; }
.ess-alert-ok  { background: rgba(62, 148, 10, .10); border: 1px solid rgba(62, 148, 10, .35); color: #2A6606; }
.ess-alert-err { background: rgba(208, 40, 1, .07);  border: 1px solid rgba(208, 40, 1, .30);  color: #B32400; }

/* Sidebar filters */
.ess-side-box {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 26px;
    background: #fff;
}
.ess-side-box h4 {
    font-size: 18px; margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.ess-side-list { list-style: none; padding: 0; margin: 0; }
.ess-side-list li { margin-bottom: 9px; font-size: 15px; }
.ess-side-list li a { color: var(--text-color); display: flex; justify-content: space-between; gap: 10px; }
.ess-side-list li a:hover,
.ess-side-list li.active a { color: var(--theme-color); font-weight: 600; }
.ess-side-list li span { color: #9AA7BC; font-size: 13px; }

/* Repair / spares chips */
.ess-chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ess-chip-list li {
    background: var(--smoke-color);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--title-color);
}

/* Fault list */
.ess-fault-list { list-style: none; padding: 0; margin: 0; }
.ess-fault-list li {
    position: relative;
    padding: 10px 0 10px 32px;
    font-size: 15px;
    border-bottom: 1px dashed var(--border-color);
}
.ess-fault-list li::before {
    content: '\f0ad';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; top: 11px;
    color: var(--accent-color); font-size: 14px;
}

/* Pagination */
.ess-pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 44px; }
.ess-pagination a, .ess-pagination span {
    min-width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    color: var(--title-color);
    font-weight: 600; font-size: 15px;
    padding: 0 12px;
}
.ess-pagination a:hover { border-color: var(--theme-color); color: var(--theme-color); }
.ess-pagination .current { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }

/* Utility */
.ess-mb-40 { margin-bottom: 40px; }
.ess-muted { color: #8494AC; font-size: 14px; }

@media (max-width: 767px) {
    .ess-sourcing-cta { padding: 32px 24px; }
    .ess-sourcing-cta h3 { font-size: 22px; }
    .ess-spec-table th { width: 45%; }
}

/* --------------------------------------------------- floating WhatsApp button */
.ess-wa-float {
    position: fixed;
    bottom: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
    transition: transform .25s ease, box-shadow .25s ease;
}
.ess-wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
    color: #fff !important;
}
.ess-wa-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, .55);
    animation: essWaPulse 2.2s ease-out infinite;
}
@keyframes essWaPulse {
    0%   { transform: scale(1);   opacity: .8; }
    100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 575px) {
    .ess-wa-float { width: 50px; height: 50px; font-size: 25px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .ess-wa-float::after { animation: none; }
}

/* ------------------------------------------------------------- hero slider */
.ess-hero { position: relative; }
.ess-hero-slide {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    background: linear-gradient(115deg, var(--theme-color2) 0%, var(--theme-color) 100%);
    background-size: cover;
    background-position: center;
    padding: 70px 0;
}
/* Scrim strength — set per slide in Admin → Settings → Hero Slides.
   Stock hero photos often have marketing text baked in; a stronger scrim keeps
   our own headline readable over it. */
.ess-hero-slide.has-img::before {
    content: '';
    position: absolute; inset: 0;
}
.ess-hero-slide.has-img.scrim-none::before   { background: none; }
.ess-hero-slide.has-img.scrim-light::before  {
    background: linear-gradient(100deg, rgba(4,37,90,.62) 0%, rgba(0,61,145,.40) 60%, rgba(0,61,145,.16) 100%);
}
.ess-hero-slide.has-img.scrim-medium::before {
    background: linear-gradient(100deg, rgba(4,37,90,.90) 0%, rgba(0,61,145,.72) 55%, rgba(0,61,145,.38) 100%);
}
.ess-hero-slide.has-img.scrim-strong::before {
    background: linear-gradient(100deg, rgba(4,37,90,.97) 0%, rgba(4,37,90,.90) 50%, rgba(0,61,145,.74) 100%);
}

/* Text alignment */
.ess-hero-slide.align-center { text-align: center; }
.ess-hero-slide.align-center .ess-hero-inner { margin-left: auto; margin-right: auto; }
.ess-hero-slide.align-right  { text-align: right; }
.ess-hero-slide.align-right .ess-hero-inner  { margin-left: auto; }

/* Whole-slide link when the slide is image-only (hide_text) */
.ess-hero-cover-link { position: absolute; inset: 0; z-index: 2; }
.ess-hero-inner { position: relative; max-width: 720px; }
.ess-hero-eyebrow {
    display: inline-block;
    font-size: 13px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase;
    color: #8FD65F;
    margin-bottom: 14px;
}
.ess-hero-inner h2 {
    color: #fff;
    font-size: 44px;
    line-height: 1.18;
    margin-bottom: 16px;
    text-shadow: 0 2px 18px rgba(0, 20, 55, .55);
}
.ess-hero-inner p {
    color: rgba(255,255,255,.92);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 26px;
    text-shadow: 0 1px 12px rgba(0, 20, 55, .5);
}
.ess-hero-inner .theme-btn {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}
.ess-hero-inner .theme-btn:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--theme-color) !important;
}
.essHeroPager { bottom: 20px !important; }
.essHeroPager .swiper-pagination-bullet {
    width: 26px; height: 4px; border-radius: 3px;
    background: rgba(255,255,255,.45); opacity: 1;
}
.essHeroPager .swiper-pagination-bullet-active { background: var(--accent-color); }

@media (max-width: 991px) {
    .ess-hero-slide { min-height: 380px; padding: 56px 0; }
    .ess-hero-inner h2 { font-size: 33px; }
}
@media (max-width: 575px) {
    .ess-hero-slide { min-height: 320px; padding: 44px 0; }
    .ess-hero-inner h2 { font-size: 26px; }
    .ess-hero-inner p { font-size: 15.5px; }
}

/* ==========================================================================
   Page title strip  (.ess-pagehead)
   --------------------------------------------------------------------------
   This is wayfinding, not a hero: it says where you are and how to get back,
   then gets out of the way. The template shipped it at 180px padding + a 65px
   title (~478px tall — over half the fold on a laptop, on every inner page).

   Signature: a graduated tick scale along the bottom edge. Everything ESS
   sells is defined by one — the wavelength axis on a spectrophotometer,
   burette graduations, a vernier caliper, chromatogram retention time — so
   the one decorative element on the page is drawn from the subject itself.
   The breadcrumb is set in mono with "/" separators because these buyers read
   part numbers (CIC-D120, SN-EU2800DS) all day.
   ========================================================================== */

.ess-pagehead {
    --pagehead-img: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* With no banner photo set, this angled brand gradient is the ground —
       calmer and more honest than a stock photo nobody chose. */
    background-color: var(--theme-color2);
    background-image: var(--pagehead-img), linear-gradient(101deg, #04255A 0%, #06306F 52%, #003D91 100%);
    background-size: cover, cover;
    background-position: center, center;
    padding: 52px 0 46px;
}

/* Scrim — strength is set per site in Settings → Branding */
.ess-pagehead::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(92deg, rgba(4, 37, 90, .94) 0%, rgba(4, 37, 90, .78) 46%, rgba(0, 61, 145, .58) 100%);
}
.ess-pagehead.pb-scrim-none::before   { background: none; }
.ess-pagehead.pb-scrim-light::before  {
    background: linear-gradient(92deg, rgba(4, 37, 90, .72) 0%, rgba(4, 37, 90, .48) 55%, rgba(0, 61, 145, .28) 100%);
}
.ess-pagehead.pb-scrim-strong::before {
    background: linear-gradient(92deg, rgba(4, 37, 90, .985) 0%, rgba(4, 37, 90, .93) 50%, rgba(4, 37, 90, .82) 100%);
}

/* ---------------------------------------------------------- breadcrumb path */
.ess-pagehead-path { margin-bottom: 13px; }
.ess-pagehead-path ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 .55em;
    font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.ess-pagehead-path li { color: rgba(255, 255, 255, .58); }
.ess-pagehead-path li + li::before {
    content: '/';
    margin-right: .55em;
    color: rgba(255, 255, 255, .32);
}
.ess-pagehead-path a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.ess-pagehead-path a:hover,
.ess-pagehead-path a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ess-pagehead-path [aria-current="page"] { color: var(--accent-color); }

/* ----------------------------------------------------------------- the title */
.ess-pagehead-title {
    margin: 0;
    color: #fff;
    font-family: var(--title-font, "Rajdhani", sans-serif);
    font-weight: 600;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.12;
    letter-spacing: -.005em;
    max-width: 22ch;
}

/* --------------------------------------------------- the graduated tick scale */
.ess-pagehead-scale {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 9px;
    background:
        /* position marker — the green segment, like a set-point on an instrument */
        linear-gradient(90deg, var(--accent-color) 0 96px, transparent 96px) bottom left / 100% 2px no-repeat,
        /* major graduations every 64px */
        repeating-linear-gradient(90deg, rgba(255,255,255,.42) 0 1px, transparent 1px 64px) bottom left / 100% 9px,
        /* minor graduations every 8px */
        repeating-linear-gradient(90deg, rgba(255,255,255,.20) 0 1px, transparent 1px 8px) bottom left / 100% 4px,
        /* baseline */
        linear-gradient(90deg, rgba(255,255,255,.22) 0 100%) bottom left / 100% 1px no-repeat;
    background-repeat: no-repeat, repeat-x, repeat-x, no-repeat;
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 991px) {
    .ess-pagehead { padding: 40px 0 36px; }
    .ess-pagehead-title { max-width: 26ch; }
}
@media (max-width: 575px) {
    .ess-pagehead { padding: 30px 0 28px; }
    .ess-pagehead-path { margin-bottom: 10px; }
    .ess-pagehead-path ol { font-size: 11px; letter-spacing: .05em; }
    .ess-pagehead-scale { height: 7px; }
}

/* ==========================================================================
   Header nav — fit at laptop widths
   The template was built for 5 menu items; this site needs 7 (Home, About,
   Products, Services, Spare Parts, Brands, Contact) plus the search icon and
   the quote button. Between 1200–1399px that overflowed and wrapped "Contact"
   onto a second line. Tighten spacing in that band rather than dropping a
   nav item — every one of them is a real destination.
   ========================================================================== */
@media (min-width: 1200px) and (max-width: 1439px) {
    /* template ships margin-inline-end: 40px here */
    .header-main .main-menu ul li { margin-inline-end: 16px; }
    .header-main .main-menu ul li a { font-size: 15px; }
    .header-main .header-right .header-button .gt-btn { padding-inline: 20px; font-size: 14px; }
}

/* The CTA must never split across two lines. */
.gt-btn,
.header-button .gt-btn { white-space: nowrap; }

/* The title strip already separates header from content, so the first
   section beneath it does not need the full template section-padding. */
.ess-pagehead + section.section-padding,
.ess-pagehead + section.space { padding-top: 62px; }

@media (max-width: 991px) {
    .ess-pagehead + section.section-padding,
    .ess-pagehead + section.space { padding-top: 44px; }
}
