:root {
    --brand: #0b5cad;
    --brand-dark: #08457f;
    --accent: #e8a317;
    --text: #1f2933;
    --muted: #5f6b76;
    --border: #d5dbe1;
    --bg: #f5f7fa;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* Header and navigation */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { max-width: 1140px; margin: 0 auto; padding: .6rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-weight: 700; }
.brand img { height: 2.6rem; width: auto; }
.nav { margin-left: auto; display: flex; gap: .25rem; flex-wrap: wrap; align-items: center; }
.nav > a, .nav .has-menu > a { display: block; padding: .5rem .75rem; text-decoration: none; color: var(--text); border-radius: 4px; }
.nav > a:hover, .nav .has-menu > a:hover, .nav a.active { background: #e8f0f9; color: var(--brand-dark); }
.nav .cta { background: var(--brand); color: #fff; font-weight: 600; }
.nav .cta:hover { background: var(--brand-dark); color: #fff; }
.has-menu { position: relative; }
.menu { display: none; position: absolute; left: 0; top: 100%; min-width: 22rem; background: #fff; border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: .35rem; }
.has-menu:hover .menu, .has-menu:focus-within .menu { display: block; }
.menu a { display: block; padding: .4rem .65rem; text-decoration: none; color: var(--text); border-radius: 4px; font-size: .95rem; }
.menu a:hover { background: #e8f0f9; }

/* Layout */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
main { flex: 1; }
.section { padding: 2.5rem 0; }
.section.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { margin: 0 0 .25rem; font-size: 1.6rem; }
.section .sub { color: var(--muted); margin: 0 0 1.5rem; }
.page-title { margin: 2rem 0 .25rem; font-size: 2rem; }
.lead { color: var(--muted); font-size: 1.1rem; margin: .25rem 0 1.5rem; max-width: 60rem; }
.breadcrumb { margin: 1.25rem 0 0; font-size: .9rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 2.25rem 0; }
.hero h1 { font-size: 2.4rem; line-height: 1.15; margin: 0 0 .6rem; max-width: 40rem; }
.hero p { font-size: 1.15rem; max-width: 40rem; margin: 0; opacity: .95; }
.hero .btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: .65rem 1.3rem; border-radius: 5px; font-weight: 600; text-decoration: none; border: 2px solid transparent; font: inherit; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--accent); color: #1f2933; }
.btn.primary:hover { filter: brightness(.95); }
.btn.outline { border-color: #fff; color: #fff; }
.btn.outline:hover { background: rgba(255,255,255,.12); }
.btn.solid { background: var(--brand); color: #fff; }
.btn.solid:hover { background: var(--brand-dark); }

/* Banners and promos */
.promo { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff8e6; border: 1px solid #f0d79a; border-radius: 8px; padding: 1.1rem 1.4rem; }
.promo h3 { margin: 0 0 .15rem; }
.promo p { margin: 0; color: var(--muted); }
.promo.blue { background: #e8f0f9; border-color: #b9d1ea; }

/* Cards */
.grid { display: grid; gap: 1.25rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: box-shadow .15s, border-color .15s; }
a.card:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(11,92,173,.15); }
.card .thumb { background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: .75rem; border-bottom: 1px solid var(--border); }
.card .thumb img { max-height: 100%; object-fit: contain; }
.card .body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .3rem; align-content: start; }
.card h3 { margin: 0; font-size: 1.05rem; color: var(--brand-dark); }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.card.plain { padding: 1.1rem 1.25rem; }

/* Quick links */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.quick a { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: .85rem; text-align: center; text-decoration: none; font-weight: 600; }
.quick a:hover { border-color: var(--brand); background: #e8f0f9; }

/* Product detail */
.detail { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: start; margin-top: 1.25rem; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; } }
.detail .pic { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1rem; display: grid; place-items: center; }
.notice { background: #fff8e6; border: 1px solid #f0d79a; border-radius: 6px; padding: .75rem 1rem; color: #5c4a12; }

/* Literature */
.lit-group { margin-bottom: 2rem; }
.lit-group h2 { border-bottom: 2px solid var(--brand); padding-bottom: .3rem; font-size: 1.3rem; }
.lit-list { list-style: none; margin: 0; padding: 0; }
.lit-list li { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: .6rem .9rem; margin-bottom: .5rem; display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.lit-list .title { font-weight: 600; flex: 1 1 22rem; }
.lit-list .links a { margin-left: .6rem; font-size: .92rem; }

/* Offices */
.office h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.office p { margin: .1rem 0; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 640px; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; }
.field .opt { color: var(--muted); font-weight: 400; font-size: .9rem; }
input, select, textarea { font: inherit; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 4px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
textarea { min-height: 8rem; resize: vertical; }
.field-validation-error, .text-danger { color: #b42318; font-size: .88rem; }
.alert { background: #fdecea; border: 1px solid #f5c2c0; color: #8a1c14; padding: .7rem 1rem; border-radius: 6px; max-width: 640px; }
.success { background: #e7f6ec; border: 1px solid #a9d9b8; color: #1d5a31; padding: .9rem 1.1rem; border-radius: 6px; max-width: 640px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */

/* Footer */
.site-footer { background: #14212e; color: #cfd8e1; margin-top: 2rem; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 2rem 1.25rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }
.site-footer h4 { margin: 0 0 .6rem; color: #fff; }
.site-footer a { color: #cfd8e1; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.copyright { border-top: 1px solid #2a3b4c; padding: .9rem 1.25rem; text-align: center; font-size: .88rem; color: #9fb0c0; }
.copyright .ver { opacity: .6; margin-left: .75rem; }

/* Careers: employee benefits infographic */
.infographic { margin: 1rem 0; text-align: center; }
.infographic img { width: 100%; max-width: 760px; height: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.infographic .caption { margin: .6rem 0 0; font-size: .92rem; color: var(--muted); }

/* Data tables (Recutting Services) */
.data-table { border-collapse: collapse; width: 100%; max-width: 760px; background: #fff; margin-top: 1rem; }
.data-table th, .data-table td { border: 1px solid var(--border); padding: .5rem .75rem; text-align: left; }
.data-table thead th { background: #e8f0f9; color: var(--brand-dark); }
.data-table tbody th { font-weight: 600; background: #f7f9fb; }
.card.plain ol { margin: .5rem 0 0; padding-left: 1.25rem; color: var(--muted); font-size: .93rem; }

/* About: step images */
.card-img { display: block; width: 100%; height: auto; border-radius: 6px; margin-bottom: .75rem; }

/* Page header with image at top right (Literature) */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.page-head-img { width: 340px; max-width: 100%; height: auto; margin-left: auto; }

/* Services landing page */
.services-hero { background: #fff; padding: 2.5rem 0; }
.services-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.services-hero-inner img { width: 100%; max-width: 460px; justify-self: center; }
.services-hero h1 { margin: 0 0 .75rem; font-size: 1.7rem; color: var(--brand); font-weight: 600; }
.services-hero p { margin: 0; color: var(--text); }
.services-icons { background: #eceeef; padding: 3rem 0; }
.services-icons-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.service-tile { display: grid; justify-items: center; gap: .75rem; text-decoration: none; color: var(--text); font-weight: 600; }
.service-tile img { width: 200px; max-width: 100%; height: auto; transition: transform .15s; }
.service-tile:hover img { transform: scale(1.04); }
.service-tile:hover span { color: var(--brand); }
@media (max-width: 760px) {
    .services-hero-inner, .services-icons-inner { grid-template-columns: 1fr; }
}

/* Engineering feature blocks */
.feature-grid { margin-top: 2.5rem; align-items: start; }
.feature { text-align: center; }
.feature img { height: 200px; width: auto; max-width: 100%; object-fit: contain; }
.feature p { margin: 1rem 0 0; text-align: left; }
.section-white { background: #fff; padding: 0 0 3rem; border-top: 1px solid var(--border); }
.feature-grid { margin-top: 0; padding-top: 2.5rem; }

/* Seminars & Training: centered icon blocks (WordPress icons recolored to site blue) */
.icon-feature img { height: 150px; width: 150px; }
.icon-feature h3 { margin: .9rem 0 .4rem; }
.icon-feature p, .icon-feature ul { text-align: center; margin: .4rem 0; }
.icon-feature ul { list-style: none; padding: 0; display: grid; gap: .6rem; }

/* Product pages */
.check-list { margin: .75rem 0 0; padding-left: 1.25rem; display: grid; gap: .35rem; }
.spec-heading { margin: 2rem 0 0; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }

/* Full-width photo banner at the top of a page */
.page-banner { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; }

.office { display: flex; flex-direction: column; }
.office-logo { display: block; width: 100%; max-width: 220px; height: auto; margin-top: auto; padding-top: 1rem; align-self: center; }

/* Social links */
.social-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.social { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; color: var(--text); }
.social svg { flex: none; transition: transform .15s; }
.social:hover svg { transform: scale(1.1); }
.social:hover span { text-decoration: underline; }
.social.facebook svg { color: #1877f2; }
.social.linkedin svg { color: #0a66c2; }
