/* Season Chemicals — 2026 refresh of the original 2011 site.
   Same structure as the original (top bar, logo, blue menu bar, banner, boxed modules,
   sub-menu + "You are here"), redrawn for today's screens. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-var.woff2") format("woff2-variations"),
       url("../fonts/ibm-plex-sans-latin-var.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #2a63b0;          /* the original blue, flattened */
  --blue-deep: #1e3a6b;     /* menu bar */
  --blue-ink: #1f4b8c;
  --navy: #253c6e;          /* logo */
  --ink: #232a37;
  --muted: #5d6676;
  --line: #dde3ea;
  --page: #edf0f4;          /* the original grey page */
  --card: #ffffff;
  --rule: #b5d3d7;          /* the original footer rule */
  --radius: 6px;
  --wrap: 1180px;
  --gutter: clamp(14px, 3vw, 28px);
  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}
:lang(zh-Hant) { --font: "IBM Plex Sans", "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
:lang(zh-Hans) { --font: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
:lang(zh) body, body:lang(zh-Hant), body:lang(zh-Hans) { line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 6px; z-index: 20; background: var(--navy); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; color: #fff; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0; font-weight: 600; letter-spacing: -0.005em; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { font-weight: 600; letter-spacing: .02em; }
p { margin: 0 0 .9em; }
.small { font-size: 14.5px; color: var(--muted); }
.btn { display: inline-block; background: var(--blue-deep); color: #fff; text-decoration: none; font: inherit; font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: 4px; border: 0; cursor: pointer; }
.btn:hover { background: var(--blue); color: #fff; }

/* ---------- top bar: languages + product search (as in the original) ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; min-height: 42px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.langs { display: flex; gap: 4px 14px; flex-wrap: wrap; }
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--blue); text-decoration: underline; }
.langs span { color: var(--navy); font-weight: 600; }
.search { display: flex; align-items: center; gap: 8px; }
.search label { color: var(--muted); }
.search input { font: inherit; font-size: 14px; width: 170px; padding: 5px 9px; border: 1px solid #c3cad4; border-radius: 4px; }
.search button { font: inherit; font-size: 14px; padding: 5px 12px; border: 0; border-radius: 4px; background: var(--blue-deep); color: #fff; cursor: pointer; }
.search button:hover { background: var(--blue-deep); }

/* ---------- logo + blue menu bar ---------- */
.masthead { background: #fff; }
.masthead > .wrap { padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-block; }
.brand img { height: 58px; width: auto; }
.mainnav { background: var(--blue-deep); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.mainnav ul::-webkit-scrollbar { display: none; }

.mainnav ul { gap: 4px; }
.mainnav a { display: block; padding: 15px 18px 13px; color: rgba(255,255,255,.86); text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: .01em; white-space: nowrap; border-bottom: 2px solid transparent; }
.mainnav li:first-child a { padding-left: 0; }
.mainnav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.45); }
.mainnav a[aria-current="page"] { color: #fff; border-bottom-color: #8fb8ee; }
@media (max-width: 640px) {
  .brand img { height: 46px; }
  .mainnav ul { flex-wrap: wrap; overflow: visible; gap: 0 2px; }
  .mainnav li:first-child a { padding-left: 8px; }
  .mainnav a { padding: 11px 8px 9px; font-size: 14.5px; }
  .search { width: 100%; }
  .search input { flex: 1; width: auto; }
  .search label { display: none; }
}

/* ---------- banner (original photos, slogans as live text) ---------- */
.banner { position: relative; margin: 14px 0 18px; aspect-ratio: 953 / 239; border-radius: var(--radius); overflow: hidden; background: #dfe9f3;
  box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center right; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; }
.slide::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 30%, rgba(255,255,255,.35) 52%, rgba(255,255,255,0) 66%); }
.slide-text { position: absolute; left: clamp(18px, 4.5%, 56px); top: 50%; transform: translateY(-50%); max-width: 52%; }
.slide-a { margin: 0; font-size: clamp(20px, 2.7vw, 34px); font-weight: 600; color: var(--navy); line-height: 1.18; letter-spacing: -0.01em; max-width: 17em; text-wrap: balance; }
.slide-b { margin: .6em 0 0; font-size: clamp(13.5px, 1.35vw, 17px); color: #3c4b63; font-weight: 400; }
.slide-b { text-wrap: balance; }
.slide-b:lang(zh) { letter-spacing: .08em; color: var(--blue-ink); word-break: keep-all; }
:lang(zh) .slide-a { font-weight: 600; letter-spacing: .03em; }
.dots { position: absolute; right: 16px; bottom: 12px; display: flex; gap: 8px; }
.dots button { width: 22px; height: 4px; border-radius: 2px; border: 0; background: rgba(255,255,255,.55); padding: 0; cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.dots button[aria-current="true"] { background: #fff; width: 34px; }
.dots { right: 20px; bottom: 16px; gap: 6px; align-items: center; }
.banner--slim { aspect-ratio: auto; width: 100%; height: clamp(110px, 13vw, 160px); }
.banner--slim .slide::before { background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 35%, rgba(255,255,255,0) 70%); }
.slide-title { font-size: clamp(24px, 3vw, 34px); font-weight: 600; }
@media (max-width: 640px) {
  .banner:not(.banner--slim) { aspect-ratio: 16 / 7; }
  .slide-text { max-width: 78%; }
  .slide::before { background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.82) 55%, rgba(255,255,255,.15) 100%); }
  .banner--slim { height: 96px; margin: 10px 0 14px; }
  .banner--slim .slide::before { background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 50%, rgba(255,255,255,.35) 100%); }
  .slide-title { font-size: 24px; }
}

/* ---------- boxed modules (the original's framed boxes) ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px 16px; }
.card + .card { margin-top: 18px; }
.card-h { font-size: 15px; font-weight: 600; letter-spacing: .01em; margin: 0 -18px 12px; padding: 14px 18px 11px; border-bottom: 1px solid var(--line); color: var(--navy); }
.more { margin: 8px 0 0; font-size: 14.5px; }
.more a { font-weight: 600; }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-bottom: 1px solid #edf0f4; }
.linklist li:last-child { border-bottom: 0; }
.linklist a { display: block; padding: 8px 2px 8px 16px; text-decoration: none; color: var(--ink); position: relative; }
.linklist a::before { content: ""; position: absolute; left: 2px; top: 50%; width: 5px; height: 5px; margin-top: -3px; border-top: 1.5px solid var(--blue); border-right: 1.5px solid var(--blue); transform: rotate(45deg); }
.linklist a:hover { color: var(--blue); }

/* ---------- home: three columns, as in the original ---------- */
.home > .col { min-width: 0; }
.home { display: grid; grid-template-columns: 260px minmax(0, 1fr) 260px; gap: 18px; align-items: start; padding-bottom: 36px; }
@media (max-width: 1120px) { .home { grid-template-columns: 1fr 1fr; } .col-mid { grid-column: 1 / -1; grid-row: 1; } }
@media (max-width: 640px) { .home { grid-template-columns: 1fr; } }
.profile { display: flex; gap: 16px; align-items: flex-start; }
.profile img { width: 145px; flex: 0 0 auto; border-radius: 4px; }
@media (max-width: 520px) { .profile { flex-direction: column; } .profile img, .profile--wide img { width: 100%; max-width: none; height: 170px; object-fit: cover; } }

.tabs .tablist { display: flex; gap: 4px; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.tabs .tablist { gap: 18px; }
.tabs [role="tab"] { font: inherit; font-size: 14.5px; font-weight: 500; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 6px 0 8px; cursor: pointer; margin-bottom: -1px; white-space: nowrap; }
.tabs [role="tab"]:hover { color: var(--navy); }
.tabs [role="tab"][aria-selected="true"] { color: var(--navy); font-weight: 600; border-bottom-color: var(--blue); }
.card > .tabs:first-child { margin-top: 14px; }
.tabpanel p { margin: 0 0 .6em; font-size: 15px; }

.strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-thumb { background: #c9d2dd; border-radius: 4px; }
.thumb { flex: 0 0 auto; scroll-snap-align: start; text-decoration: none; color: var(--ink); font-size: 13.5px; max-width: 170px; }
.thumb img { height: 108px; width: auto; border-radius: 4px; border: 1px solid var(--line); }
.thumb span { display: block; margin-top: 5px; line-height: 1.35; }
.thumb:hover span { color: var(--blue); text-decoration: underline; }

/* ---------- inner pages: sub-menu + content ---------- */
.inner { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; padding-bottom: 40px; }
@media (max-width: 860px) { .inner { grid-template-columns: 1fr; } .side { order: 2; } }
.side { position: sticky; top: 12px; }
@media (max-width: 860px) { .side { position: static; } }
.subnav { list-style: none; margin: 0; padding: 0; }
.subnav li { border-bottom: 1px solid var(--line); }
.subnav li:last-child { border-bottom: 0; }
.subnav a { display: block; padding: 9px 4px; text-decoration: none; color: var(--ink); font-weight: 520; }
.subnav a:hover { color: var(--blue); }
.side-contact p { font-size: 14.5px; margin-bottom: .6em; }
.content { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px clamp(16px, 3vw, 32px) 28px; min-width: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.crumbs a { color: var(--muted); }
.block { padding-top: 22px; scroll-margin-top: 16px; }
.block + .block { margin-top: 10px; border-top: 1px solid var(--line); }
.block > h2 { font-size: 21px; margin-bottom: 12px; }
.block p { max-width: 75ch; }
.profile--wide img { width: 180px; }

/* GIVE */
.give { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .give { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.give li { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px; background: #fafbfd; }
.give-l { display: block; font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 42px; line-height: 1; color: var(--blue); }
.give-w { display: block; margin-top: 6px; font-weight: 600; color: var(--navy); }

/* certification */
.certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .certs { grid-template-columns: 1fr; } }
.cert { border-left: 3px solid var(--blue); padding: 2px 0 2px 14px; }
.cert h3 { font-size: 17px; margin-bottom: 4px; }
.cert p { font-size: 15px; color: var(--muted); margin: 0; }

/* products */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 14px; padding: 12px 14px; background: #f3f6fa; border: 1px solid var(--line); border-radius: var(--radius); }
.filter label { font-weight: 600; }
.filter input { font: inherit; font-size: 15px; flex: 1 1 220px; padding: 7px 10px; border: 1px solid #bfc7d2; border-radius: 4px; }
.filter-count { color: var(--muted); font-size: 14px; }
.filter-none { color: var(--muted); }
.group-h { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.group-h img { height: 72px; width: auto; border-radius: 4px; border: 1px solid var(--line); }
.group-h h2 { font-size: 22px; }
.ptable .sub-row th { background: #eef2f8; color: var(--navy); font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 0; text-align: left; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ptable th { text-align: left; background: var(--blue-deep); color: #fff; font-weight: 500; padding: 9px 10px; font-size: 14px; letter-spacing: .01em; }
.ptable th:first-child { border-radius: 4px 0 0 0; } .ptable th:last-child { border-radius: 0 4px 0 0; }
.ptable td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable tbody tr:nth-child(even) td { background: #f7f9fb; }
.p-name { font-weight: 600; color: var(--navy); width: 30%; }
.p-model { white-space: nowrap; width: 16%; font-variant-numeric: tabular-nums; }
.p-desc ul { margin: 0; padding-left: 1.1em; }
.p-desc li { margin: 0 0 2px; }
@media (max-width: 640px) {
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; width: 100%; }
  .ptable tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .ptable td { border: 0; padding: 2px 4px; background: none !important; }
  .p-model { color: var(--muted); }
}
.is-hidden { display: none !important; }

/* technical: equipment gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 130px; object-fit: contain; background: #f3f5f8; border: 1px solid var(--line); border-radius: 4px; }
.gallery figcaption { font-size: 13.5px; margin-top: 5px; line-height: 1.35; }

/* contact */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
@media (max-width: 700px) { .offices { grid-template-columns: 1fr; } }
.office { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fafbfd; }
.office h3 { font-size: 18px; }
.office .org { color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.office dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: 15px; }
.office dt { color: var(--muted); }
.office dd { margin: 0; }
.form { max-width: 720px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 5px; }
.req { color: #c0392b; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid #bfc7d2; border-radius: 4px; background: #fff; color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(47,107,186,.3); border-color: var(--blue); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

.thanks { padding-bottom: 40px; }
.thanks .card { padding-top: 18px; }
.lead { font-size: 18px; }

/* footer: the original's thin rule, then a quiet strip */
.footer { border-top: 4px solid var(--rule); background: #1b2740; color: #b9c3d3; font-size: 14px; padding: 20px 0 24px; }
.footer p { margin: 0 0 4px; }
.footer a { color: #fff; }
.footer .rights { color: #fff; }

@media print { .topbar, .mainnav, .banner, .side, .footer { display: none; } body { background: #fff; } .content { border: 0; } }
