/* ============================================================
   SHOUYUAN STEEL — Design System
   Modern industrial steel theme for the B2B steel trade template.
   ------------------------------------------------------------
   1. Design tokens (CSS variables)
   2. Reset & base
   3. Layout helpers (container, section, grid)
   4. Buttons
   5. Cards
   6. Forms
   7. Header / navigation
   8. Footer
   9. Breadcrumbs
   10. Pagination
   11. Tables
   12. FAQ / accordion
   13. Badges, tags, lists
   14. Hero / keys / page-hero
   15. Online consultation floating
   16. Responsive
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Color - steel blues */
  --primary:        #1d3f72;
  --primary-light:  #2d5a9e;
  --primary-dark:   #122c52;

  /* Color - accent (oxidized steel / rust) */
  --accent:         #c0392b;
  --accent-light:   #d9563f;
  --accent-dark:    #9c2f22;

  /* Neutrals */
  --ink:            #151a21;
  --text:           #2b3440;
  --muted:          #6a7686;
  --faint:          #9aa5b3;

  /* Surfaces */
  --bg:             #ffffff;
  --surface:        #f4f7fb;
  --surface-alt:    #eaf0f7;
  --line:           #e1e7f0;
  --line-strong:    #c3cddb;

  /* Feedback */
  --success:        #1e8e55;
  --warning:        #c8891a;
  --danger:         #c0392b;
  --info:           #2d6fd8;

  /* Typography */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Segoe UI", system-ui, sans-serif;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.5rem;
  --fs-3xl:  3.25rem;
  --lh-tight: 1.25;
  --lh-base: 1.6;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;
  --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* Shape */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(15, 26, 44, 0.10);
  --shadow:    0 6px 20px rgba(15, 32, 56, 0.09);
  --shadow-lg: 0 16px 40px rgba(15, 32, 56, 0.16);
  --shadow-accent: 0 8px 22px rgba(201, 57, 43, 0.32);

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--ink); line-height: var(--lh-tight); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { color: var(--text); }
::selection { background: var(--primary); color: #fff; }

/* ------------------------------------------------------------
   3. LAYOUT HELPERS
   ------------------------------------------------------------ */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 860px; }

.section { padding-block: var(--sp-7) var(--sp-7); }
.section--tint { background: var(--surface); }
.section--dark { background: var(--primary-dark); color: #dfe7f2; }
.section--condensed { padding-block: var(--sp-6); }

.section__head { max-width: 680px; margin-bottom: var(--sp-6); }
.section__title { font-size: clamp(1.6rem, 3vw, 2.35rem); margin-bottom: var(--sp-3); }
.section__title--center { text-align: center; }
.section__subtitle { color: var(--muted); font-size: var(--fs-md); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .section__subtitle { margin-inline: auto; }
.section__head--row {
  display: grid;
  grid-template-columns: 1fr auto;   /* left column: headline text, right: action button */
  align-items: center;
  column-gap: var(--sp-5);
  row-gap: var(--sp-1);
  max-width: none;
}
/* Text elements stack vertically in the left column; the "View All" button
   sits vertically centered on the right across all text rows. */
.section__head--row .section__eyebrow,
.section__head--row .section__title,
.section__head--row .section__subtitle { grid-column: 1; }
.section__head--row .section__more-btn { grid-column: 2; grid-row: 1 / -1; }
.section__eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-2);
}

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--1-2 { grid-template-columns: 1fr 2fr; gap: var(--sp-6); }
.grid--1-3 { grid-template-columns: 1fr 3fr; gap: var(--sp-6); align-items: start; }
.grid__col { min-width: 0; }

/* ------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.8em 1.6em; border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: var(--fs-base); font-weight: 600;
  line-height: 1; cursor: pointer; text-align: center; white-space: nowrap;
  transition: all var(--transition);
}
.btn:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 2px; }

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-accent); }

.btn--outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }

.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--surface); color: var(--primary); }

.btn--light { background: #fff; color: var(--primary-dark); }
.btn--light:hover { background: var(--surface); color: var(--primary-dark); }

.btn--lg { padding: 1rem 2.2rem; font-size: var(--fs-md); }
.btn--sm { padding: 0.55rem 1.1rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary);
}
.link--accent { color: var(--accent); }

/* ------------------------------------------------------------
   5. CARDS
   ------------------------------------------------------------ */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card[data-href],
.card[data-card],
.card--compact,
.card[data-goto],
.product-card,
.project-card,
.news-card { cursor: pointer; }
.card__thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%); display: grid; place-items: center; position: relative; overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.card:hover .card__thumb img { transform: scale(1.05); }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--primary); }
.card__text { color: var(--muted); margin-bottom: var(--sp-4); flex: 1; }
.card__foot { padding-top: var(--sp-3); border-top: 1px solid var(--line); }

/* ------------------------------------------------------------
   6. FORMS
   ------------------------------------------------------------ */
.field { margin-bottom: var(--sp-4); }
.field__label { display: block; font-weight: 600; font-size: var(--fs-sm); color: var(--ink); margin-bottom: 6px; }
.field__label .req { color: var(--accent); }
.input, .textarea, .select {
  width: 100%; padding: 0.8rem 1rem; font-family: var(--font-sans); font-size: var(--fs-base);
  color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(29, 63, 114, 0.12);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-2); }
.form-msg { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); font-weight: 500; margin-top: var(--sp-4); font-size: var(--fs-sm); }
.form-msg--ok { background: #e6f6ed; color: var(--success); }
.form-msg--err { background: #fdecea; color: var(--danger); }

/* ------------------------------------------------------------
   7. HEADER / NAV
   ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); height: var(--header-h);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo__img { display: block; height: 40px; width: auto; object-fit: contain; }
@media (max-width: 640px) {
  .logo__img { height: 34px; }
}
.primary-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.primary-nav a { display: block; padding: 10px 15px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: var(--fs-sm); }
.primary-nav a:hover { background: var(--surface); color: var(--primary); }
.primary-nav a.active { color: var(--primary); background: var(--surface); }
.has-dropdown { position: relative; }
.has-dropdown > a { display: flex; align-items: center; gap: 6px; }
.has-dropdown > a::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-top: 2px; }
.has-dropdown .dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--transition); list-style: none; z-index: 50;
  display: block;
}
.has-submenu > a { display: block; padding-right: 26px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { border-radius: 8px; }

/* Two-level nested dropdown inside the products menu. */
.has-submenu { position: relative; }
.has-submenu > a::after {
  content: ""; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 5px solid currentColor;
}
.has-submenu .subdropdown {
  position: absolute; top: -8px; left: calc(100% - 2px); min-width: 210px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateX(8px);
  transition: all var(--transition); list-style: none; z-index: 50; display: block;
}
.has-submenu:hover .subdropdown, .has-submenu:focus-within .subdropdown { opacity: 1; visibility: visible; transform: translateX(0); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 10px; border-radius: 8px;
}
.nav-toggle span { height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header utility toolbar: language switcher + global search icon. */
.header__inner { position: relative; }
.header-tools { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-search {
  display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px;
  background: none; color: var(--text); cursor: pointer; transition: background var(--transition);
}
.nav-search:hover { background: var(--surface); color: var(--primary); }

/* Language switcher dropdown (visual only for now). */
.lang-switch { position: relative; }
.lang-switch__btn {
  display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--text); font-weight: 600; font-size: var(--fs-sm);
  cursor: pointer; transition: border-color var(--transition), color var(--transition);
}
.lang-switch__btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-switch__btn::after {
  content: ""; width: 0; height: 0; margin-left: 2px; border-left: 4px solid transparent;
  border-right: 4px solid transparent; border-top: 5px solid currentColor;
}
.lang-switch__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px; padding: 6px; margin: 0;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all var(--transition);
}
.lang-switch__menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch__menu button {
  display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--text); font-size: var(--fs-sm); cursor: pointer;
}
.lang-switch__menu button:hover { background: var(--surface); color: var(--primary); }

/* ---- Global site search overlay -------------------------------------------------- */
.search-overlay { position: fixed; inset: 0; z-index: 200; }
.search-overlay__backdrop { position: absolute; inset: 0; background: rgba(8,20,38,0.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity var(--transition); }
.search-overlay.is-open .search-overlay__backdrop { opacity: 1; }
.search-overlay__panel {
  position: relative; width: min(640px, calc(100vw - 32px)); margin: 10vh auto 0; padding: 18px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  transform: translateY(-14px) scale(0.98); opacity: 0; transition: all var(--transition);
}
.search-overlay.is-open .search-overlay__panel { transform: translateY(0) scale(1); opacity: 1; }
.search-overlay__head { display: flex; align-items: center; gap: 10px; }
.search-overlay__input {
  flex: 1; height: 50px; padding: 0 16px; border: 2px solid var(--line); border-radius: 12px;
  font-size: var(--fs-md); color: var(--ink); background: var(--surface); outline: none; transition: border-color var(--transition);
}
.search-overlay__input:focus { border-color: var(--primary); background: #fff; }
.search-overlay__close {
  width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--surface); color: var(--text);
  font-size: 1.1rem; cursor: pointer; transition: background var(--transition);
}
.search-overlay__close:hover { background: #e7ecf3; }
.search-overlay__hint { color: var(--muted); font-size: var(--fs-sm); margin: 14px 2px 8px; }
.search-results { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow: auto; display: grid; gap: 4px; }
.result__item a {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none;
}
.result__item a:hover { background: var(--surface); }
.result__thumb { flex: 0 0 56px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--surface); }
.result__thumb img { width: 100%; height: 100%; object-fit: cover; }
.result__meta { display: grid; gap: 2px; min-width: 0; }
.result__tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
.result__title { color: var(--ink); font-weight: 600; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------
   8. FOOTER
   ------------------------------------------------------------ */
.site-footer { background: #0e1e33; color: #aebdd4; padding-top: var(--sp-7); margin-top: var(--sp-7); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--sp-6); padding-bottom: var(--sp-6); }
.footer__col h4 { color: #fff; margin-bottom: var(--sp-4); font-size: 1rem; }
.site-footer p { color: #d6e0ee; }                 /* override global dark p rule on dark footer */
.site-footer .footer__col > p {                    /* brand tagline, first column */
  color: #dfe7f2; margin-top: var(--sp-3); font-size: var(--fs-sm); line-height: 1.7;
}
.footer__col ul { list-style: none; display: grid; gap: var(--sp-2); padding: 0; }
.footer__col a { color: #b7c6da; }
.footer__col a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; color: #d6e0ee; font-size: var(--fs-sm); }

.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: var(--sp-4); font-size: var(--fs-sm); color: #c3d0e1; }

/* ------------------------------------------------------------
   9. BREADCRUMBS
   ------------------------------------------------------------ */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--muted); padding-block: var(--sp-4); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--faint); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------
   10. PAGINATION
   ------------------------------------------------------------ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: var(--sp-6); flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; color: var(--text); background: #fff;
  transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .next { min-width: 90px; }

/* ------------------------------------------------------------
   11. TABLES
   ------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: var(--surface); color: var(--ink); font-weight: 700; white-space: nowrap; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--surface); }

/* ------------------------------------------------------------
   12. FAQ / ACCORDION
   ------------------------------------------------------------ */
.faq { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--sp-3); background: #fff; }
.faq__q { width: 100%; text-align: left; padding: var(--sp-4) var(--sp-5); background: none; border: 0; font-family: var(--font-sans); font-size: var(--fs-md); font-weight: 600; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); }
.faq__q:hover { color: var(--primary); }
.faq__icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--primary); color: var(--primary); display: grid; place-items: center; font-weight: 700; transition: var(--transition); }
.faq.open .faq__icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq__a { padding: 0 var(--sp-5) var(--sp-4); color: var(--muted); display: none; }
.faq.open .faq__a { display: block; }

/* ------------------------------------------------------------
   13. BADGES / TAGS / LISTS
   ------------------------------------------------------------ */
.badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: 600; background: var(--surface); color: var(--primary); border: 1px solid var(--line); }
.badge--accent { background: #fbeae6; color: var(--accent); border-color: #f3cbc4; }
.badge--success { background: #e6f6ed; color: var(--success); }
.badge--metal { background: linear-gradient(135deg, #7c8da3, #a8b6c9); color: #fff; border: 0; }

.check-list { list-style: none; display: grid; gap: var(--sp-3); padding: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.check-list li::before { content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: var(--fs-sm); font-weight: 700; margin-top: 1px; }
/* On dark sections the list text must be light, not the default dark --text. */
.section--dark .check-list li { color: #dfe7f2; }
.section--dark .check-list li::before { background: var(--primary-light); }

/* ------------------------------------------------------------
   14. HERO / KEYS / PAGE-HERO
   ------------------------------------------------------------ */
.hero { position: relative; background: linear-gradient(130deg, #0e1e33 0%, var(--primary-dark) 55%, var(--primary) 100%); color: #fff; padding-block: clamp(64px, 10vw, 120px); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: var(--sp-4); max-width: 16em; }
.hero__lead { color: #c9d6e8; font-size: var(--fs-lg); max-width: 34em; margin-bottom: var(--sp-6); }
.hero__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.hero--page { padding-block: clamp(48px, 7vw, 84px); }
.hero--page h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.hero--page .hero__lead { font-size: var(--fs-md); }
.hero--page .breadcrumb a { color: rgba(255,255,255,0.8); }
.hero--page .breadcrumb a:hover { color: #fff; }
.hero--page .breadcrumb { color: rgba(255,255,255,0.7); }
.hero--page .breadcrumb li[aria-current="page"] { color: #fff; font-weight: 600; }

.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-5); }
.keys__item { text-align: center; padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.keys__num { font-size: var(--fs-2xl); font-weight: 800; color: var(--primary); line-height: 1; }
.keys__label { margin-top: var(--sp-2); color: var(--muted); font-size: var(--fs-sm); }

.page-hero { position: relative; background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding-block: clamp(48px, 7vw, 84px); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: var(--sp-3); }
.page-hero .hero__lead { color: #c9d6e8; font-size: var(--fs-md); max-width: 34em; margin-bottom: 0; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb li[aria-current="page"] { color: #fff; font-weight: 600; }

/* ------------------------------------------------------------
   15. ONLINE CONSULT FLOATING
   ------------------------------------------------------------ */
/* Right-edge floating quick actions (reference-oriented "sidebar-putaway").
   A single connected group of buttons. Buttons stay fixed-size; on hover the
   ACTIVE button changes colour and a small tooltip label pops out to the left —
   the group itself never shifts or widens. */
.fk-float {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 400; display: flex; flex-direction: column;
}
.fk-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(-50%) translateX(16px); }
.fk-float { transition: opacity var(--transition), visibility var(--transition), transform var(--transition); }

/* The list shell keeps the group look (rounded + shadow). overflow is visible
   so tooltips can float outside it. */
.fk-float__list {
  display: flex; flex-direction: column; align-items: flex-end;
  border-radius: 14px; overflow: visible;
  box-shadow: 0 10px 26px rgba(14,30,51,.32);
  background: var(--primary);
}
.fk-float__backdrop { display: none; }

/* A single bonded cell in the group — always a fixed square (Top matches
   siblings exactly). */
.fk-float__item {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
  height: 48px; width: 48px; min-width: 48px;
  padding: 0; margin: 0;
  border: 0; border-radius: 0; appearance: none;
  background: var(--primary); color: #fff;
  cursor: pointer; text-decoration: none;
  transition: background var(--transition);
  font-family: var(--font-sans); font-size: .85rem; font-weight: 600; line-height: 1;
}
/* Divider line between sibling buttons keeps the group look while separating cells. */
.fk-float__item + .fk-float__item { border-top: 1px solid rgba(255,255,255,.14); }
/* Only the hovered button changes colour — the rest stay untouched. */
.fk-float__item:hover { background: var(--accent); }
.fk-float__ico {
  flex: 0 0 48px; height: 48px; display: grid; place-items: center; position: relative;
}
/* Tooltip label: floats out to the LEFT of the hovered button only. */
.fk-float__label {
  position: absolute; right: calc(100% + 10px); top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; white-space: nowrap;
  background: #10233c; color: #fff; font-size: .8rem; font-weight: 600;
  padding: 7px 13px; border-radius: 8px;
  box-shadow: 0 8px 22px rgba(14,30,51,.32);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
/* Little arrow pointing to the button. */
.fk-float__label::after {
  content: ""; position: absolute; left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: #10233c;
}
.fk-float__item:hover .fk-float__label {
  opacity: 1; visibility: visible;
}
.fk-float__item[data-fk-top] { background: #26384f; }
.fk-float__item[data-fk-top]:hover { background: var(--accent); }
@media (max-width: 640px) {
  .fk-float { right: 10px; }
  .fk-float__list { border-radius: 12px; }
  .fk-float__item { height: 44px; width: 44px; min-width: 44px; }
  .fk-float__ico { flex: 0 0 44px; height: 44px; }
  .fk-float__label { right: calc(100% + 8px); padding: 6px 11px; font-size: .76rem; }
}

/* ------------------------------------------------------------
   15b. BUTTON ON DARK
   ------------------------------------------------------------ */
.btn--on-dark { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn--on-dark:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }

/* ------------------------------------------------------------
   15c. HOMEPAGE BLOCKS (ticket 03)
   ------------------------------------------------------------ */
.hero--carousel { background: linear-gradient(135deg, #08131f 0%, #0e1e33 45%, var(--primary-dark) 100%); }
.hero__eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #7fd0a0; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); padding: 6px 16px; border-radius: var(--radius-pill); margin-bottom: var(--sp-5); }
.hero__dots { display: flex; gap: 10px; margin-top: var(--sp-7); position: relative; z-index: 2; }
.hero__dot { position: relative; width: 38px; height: 6px; border: 0; border-radius: 3px; background: rgba(255,255,255,0.25); cursor: pointer; padding: 0; overflow: hidden; transition: background var(--transition); }
.hero__dot:hover { background: rgba(255,255,255,0.45); }
.hero__dot.is-active { background: rgba(255,255,255,0.25); }
.hero__dot.is-active .hero__dot-bar { width: 100%; }
.hero__dot-bar { position: absolute; inset: 0; background: var(--accent); width: 0; border-radius: 3px; }
.hero__dot.is-paused .hero__dot-bar { animation-play-state: paused; }
@keyframes heroDotFill { from { width: 0; } to { width: 100%; } }
/* Full-bleed hero carousel: each slide's background image covers the ENTIRE
   hero section (edge to edge), with the text laid over it on the left. */
.hero--carousel {
  position: relative;
  background: linear-gradient(135deg, #08131f 0%, #0e1e33 45%, var(--primary-dark) 100%);
  padding: 0;
  overflow: hidden;
  min-height: clamp(460px, 82vh, 720px);
}
.hero--carousel .container {
  position: absolute; inset: 0;
  pointer-events: none;
}
/* Dots sit at the bottom of the full-bleed hero. */
.hero--carousel .hero__dots {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2)); bottom: 24px;
  margin-top: 0; pointer-events: auto;
}
.hero__slides {
  position: absolute; inset: 0; border-radius: 0;
}
.hero__slide {
  position: absolute; inset: 0; border-radius: 0;
  padding: clamp(28px, 5vw, 64px) max(24px, calc((100vw - 1180px) / 2));
  background-repeat: no-repeat; background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; transition: opacity 0.55s ease, visibility 0.55s;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__slide h1 { max-width: 16em; }
@keyframes heroFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__slide.is-active > * { animation: heroFade 0.55s ease both; }

.card--compact .card__body { padding: var(--sp-4); }
.card__thumb--mini { height: 90px; border-radius: var(--radius); background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%); margin-bottom: var(--sp-3); overflow: hidden; }
.card__thumb--mini img { width: 100%; height: 100%; object-fit: cover; }

/* Real-image cards */
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product gallery (detail page main image) */
.product-gallery__main { aspect-ratio: 4/3; width: 100%; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }

/* News cards: optional thumbnail */
.news-card__thumb { height: 168px; border-radius: var(--radius); overflow: hidden; margin-bottom: var(--sp-4); background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%); }
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.section__more { text-align: center; margin-top: var(--sp-6); }

.keys[data-counters] { margin-top: var(--sp-2); }

/* ---- World map (global coverage) ---- */
.worldmap {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0e2238;
}
.worldmap__bg { display: block; width: 100%; height: 100%; object-fit: cover; }
.worldmap__legend {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  font-size: var(--fs-xs); color: rgba(255,255,255,.85); background: rgba(8,18,32,.5);
  padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); white-space: nowrap;
}
/* pins */
.worldmap__pins { position: absolute; inset: 0; pointer-events: none; }
.map-pin { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; }
.map-pin__dot {
  position: relative; display: block; width: 11px; height: 11px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(14,84,158,.25);
  cursor: pointer;
}
.map-pin__pulse {
  position: absolute; inset: -38px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(14,84,158,.35) 0%, transparent 70%);
  opacity: 0; transition: opacity var(--transition);
}
.map-pin__tip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%);
  min-width: 190px; max-width: 240px; background: #0e2a4a; color: #eaf1fa;
  border-radius: 10px; padding: 10px 14px; font-size: var(--fs-sm); line-height: 1.55;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  pointer-events: none; z-index: 5; text-align: left;
}
.map-pin__tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: #0e2a4a;
}
.map-pin__tip strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 4px; }
.map-pin__tip span { color: #c3d4e8; }
.map-pin:hover .map-pin__tip,
.map-pin.is-open .map-pin__tip { opacity: 1; visibility: visible; }
.map-pin:hover .map-pin__pulse,
.map-pin.is-open .map-pin__pulse { opacity: 1; animation: map-ping 1.6s ease-out infinite; }
@keyframes map-ping { 0% { transform: scale(.5); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; }}

/* ---- Partners marquee (white) ---- */
.mpa {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  margin-top: var(--sp-2);
}
.mpa__track {
  display: flex;
  width: max-content;
  animation: mpa-scroll 42s linear infinite;
}
.mpa:hover .mpa__track { animation-play-state: paused; }
.mpa__group {
  display: flex; align-items: stretch;
  gap: var(--sp-5);
  padding-right: var(--sp-5);
}
/* certificates move a touch slower */
[data-marquee-certs] .mpa__track { animation-duration: 60s; }
@keyframes mpa-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.partners__logo {
  flex: 0 0 auto;
  width: 180px; height: 92px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; transition: box-shadow var(--transition), transform var(--transition);
}
.partners__logo:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.partners__logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: saturate(.6) opacity(.75); transition: filter var(--transition); }
.partners__logo:hover img { filter: none; }

/* ---- Certificate marquee (white) ---- */
.cert-card {
  flex: 0 0 auto;
  width: 300px; margin: 0;
}
.cert-card__btn {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; aspect-ratio: 16 / 7; overflow: hidden; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cert-card__btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-card__btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cert-card__caption {
  margin-top: var(--sp-2); text-align: center; font-size: var(--fs-xs); color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .partners__logo { width: 150px; height: 74px; }
  .cert-card { width: 240px; }
}

/* ---- Certificate lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center; gap: 0;
  background: rgba(4, 12, 24, .86); padding: var(--sp-6, 24px);
}
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 86vh; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); object-fit: contain;
}
.lightbox__caption { color: #dfe7f2; font-size: var(--fs-md); margin-top: var(--sp-3); text-align: center; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; cursor: pointer;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff;
  font-size: 26px; line-height: 1; transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,.28); }

.cta-banner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); background: linear-gradient(120deg, var(--primary), var(--primary-light)); padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg); color: #fff; box-shadow: var(--shadow-lg); }
.cta-banner__title { color: #fff; margin-bottom: var(--sp-2); }
.cta-banner__text { color: #c9d6e8; margin: 0; }

.card--service .card__body { align-items: flex-start; }
.service__icon { width: 52px; height: 52px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: grid; place-items: center; margin-bottom: var(--sp-4); position: relative; color: #fff; font-weight: 700; }
/* When an icon has real text/glyph content, hide the decorative ::before box. */
.service__icon:not(:empty)::before { content: none; }
.service__icon::before { content: ""; width: 22px; height: 22px; color: #fff; }

/* Centered stat/card used on the About & global sections. */
.card--center { text-align: center; align-items: center; }
.keystat { display: flex; flex-direction: column; align-items: center; }

/* ---- About page: sticky in-page anchor nav ---- */
.about-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.about-nav__inner { display: flex; gap: var(--sp-1); overflow-x: auto; padding-block: 0; scrollbar-width: none; }
.about-nav__inner::-webkit-scrollbar { display: none; }
.about-nav__link {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
  padding: var(--sp-4) var(--sp-4); font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; text-decoration: none; transition: var(--transition);
}
.about-nav__link span {
  width: 24px; height: 24px; border-radius: 50%; background: var(--surface-alt); color: var(--text);
  display: inline-grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; flex-shrink: 0;
  transition: var(--transition);
}
.about-nav__link:hover { color: var(--primary); }
.about-nav__link.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.about-nav__link.is-active span { background: var(--primary); color: #fff; }

/* Anchor targets: offset for the sticky header + about-nav. */
.about-block { scroll-margin-top: calc(var(--header-h) + 64px); }

/* ---- About page: Block 1 company intro (image on top, text below) ---- */
.about-intro { display: flex; flex-direction: column; gap: var(--sp-6); }
.about-intro__media { display: flex; flex-direction: column; gap: var(--sp-3); }
.about-intro__media .card__thumb {
  aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius-lg); overflow: hidden;
}
.about-intro__media .card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.about-intro__caption { font-size: var(--fs-sm); color: var(--muted); font-style: italic; }
.about-intro__text { display: flex; flex-direction: column; }
.about-lead {
  font-size: var(--fs-lg); font-weight: 500; color: var(--ink); line-height: 1.65;
  padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-4);
}
.about-copy { color: var(--text); line-height: 1.8; margin-bottom: var(--sp-4); }
.about-sublabel {
  font-size: var(--fs-md); font-weight: 700; color: var(--primary);
  margin: var(--sp-2) 0 var(--sp-2); text-transform: uppercase;
}

/* ---- About page: Leader from the GM (image left, text right) ---- */
.leader-grid { display: grid; grid-template-columns: 4fr 6fr; gap: var(--sp-6); align-items: start; }
.leader-photo {
  overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  position: sticky; top: calc(var(--header-h) + 96px);
}
.leader-photo img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; }
.leader-text { display: flex; flex-direction: column; justify-content: center; }
.leader-byline { margin-bottom: var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.leader-byline .card__title { font-size: var(--fs-2xl); margin-bottom: var(--sp-1); }
.leader-byline .card__text { color: var(--muted); }
.quote {
  margin: var(--sp-5) 0 0; padding: var(--sp-5) var(--sp-6); border-left: 4px solid var(--accent);
  background: #fff; border-radius: 0 var(--radius) var(--radius) 0; color: var(--text);
  font-style: italic; box-shadow: var(--shadow-sm);
}

/* ---- About page: Organization structure (reference-site image) ---- */
.org-chart { margin: 0; padding: var(--sp-2); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.org-chart img { width: 100%; height: auto; display: block; border-radius: calc(var(--radius-lg) - 4px); }

/* ---- About page: company development history ---- */
.about-history__media { padding: var(--sp-2); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.about-history__media img { width: 100%; height: auto; display: block; border-radius: calc(var(--radius-lg) - 4px); }

/* ---- About page: Why Choose Us ---- */
.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.why-item { display: flex; gap: var(--sp-4); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm); align-items: flex-start; }
.why-item__num { font-size: 2.2rem; font-weight: 800; color: var(--surface-alt); line-height: 1; flex-shrink: 0; min-width: 46px; }
.why-item__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.why-item__text { color: var(--muted); margin: 0; }

/* Contact page card. */
.contact-card { text-align: center; padding: var(--sp-6); display: flex; flex-direction: column; align-items: center; }

/* Projects page. */
.project-meta { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-3); flex-wrap: wrap; }
.project-meta__region { font-size: var(--fs-sm); color: var(--muted); }
.project-scope { font-size: var(--fs-sm); color: var(--primary); font-weight: 600; }

.news-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.news-card__date { font-size: var(--fs-sm); color: var(--accent); font-weight: 600; margin-bottom: var(--sp-2); }
.news-card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.news-card__title a { color: var(--ink); }
.news-card__text { color: var(--muted); margin-bottom: var(--sp-4); flex: 1; }

/* News list: category filter chips. */
.news-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--sp-6); }
.news-filter {
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--text); font-weight: 600; font-size: var(--fs-sm); cursor: pointer;
  transition: all var(--transition);
}
.news-filter:hover { border-color: var(--primary); color: var(--primary); }
.news-filter[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* News empty state (category with no articles). */
.news-empty {
  text-align: center; padding: var(--sp-8) var(--sp-4); border: 1px dashed var(--line);
  border-radius: var(--radius-lg); background: var(--surface);
}
.news-empty__icon {
  width: 72px; height: 72px; margin: 0 auto var(--sp-4); display: grid; place-items: center;
  border-radius: 50%; background: #eef3fa; color: var(--primary);
}
.news-empty__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.news-empty__text { color: var(--muted); max-width: 460px; margin: 0 auto var(--sp-5); line-height: 1.7; }
.news-empty__text strong { color: var(--text); }
.page-ellipsis { background: transparent; border-color: transparent; cursor: default; color: var(--muted); }
.page-ellipsis:hover { border-color: transparent; color: var(--muted); }
.news-card__meta { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.news-card__date { color: var(--accent); font-weight: 600; }
.news-card__meta .badge { font-weight: 600; }

/* News detail: hero + body figures. */
.news-detail__hero img { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.news-detail__hero { margin: 0 0 var(--sp-6); }
.news-detail__body { color: var(--muted); }
.news-detail__summary { color: var(--text); font-size: var(--fs-lg); line-height: 1.6; margin-bottom: var(--sp-5); }
.news-detail__body p { color: var(--muted); margin-bottom: 18px; line-height: 1.75; }
.news-detail__figure { margin: var(--sp-5) 0; }
.news-detail__figure img { width: 100%; height: auto; max-height: 380px; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.news-detail__figure figcaption { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-2); text-align: center; }
.news-detail__case { border-left: 3px solid var(--primary); background: var(--surface); padding: var(--sp-4) var(--sp-5); border-radius: 0 var(--radius) var(--radius) 0; margin: var(--sp-5) 0; }
.news-detail__case p { margin: var(--sp-2) 0 0; color: var(--text); }
.check-list__item { color: var(--text); }

/* ---- Product filter / pagination (ticket 04) ---- */
.product-filter { margin-bottom: var(--sp-5); }
.product-filter__search { max-width: 420px; }
.search-input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.page-btn {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600;
  color: var(--text); background: #fff; cursor: pointer; transition: var(--transition); font-family: var(--font-sans);
}
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.5; cursor: default; }
.page-btn.prev, .page-btn.next { min-width: 54px; }

/* ---- Product detail (ticket 05) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.product-gallery { position: sticky; top: var(--header-h); }
.product-gallery__main { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); }
.product-cta__text { color: var(--muted); margin-bottom: var(--sp-4); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: var(--sp-4); padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: var(--sp-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 12px; right: 16px; font-size: 2rem; font-weight: 800; color: var(--surface-alt); line-height: 1; }
.inquiry-form { background: #fff; padding: var(--sp-6); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.inquiry-form .grid--2 { gap: var(--sp-4); }

/* ------------------------------------------------------------
   16. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none; padding: var(--sp-3);
  }
  .primary-nav.open { display: block; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; }
  .primary-nav a { padding: 12px 14px; }
  /* Mobile: submenus collapse by default; expand via the tapped .open class. */
  .has-dropdown .dropdown { display: none; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 4px 0 8px 12px; padding: 0 0 0 6px; }
  .has-dropdown.open .dropdown { display: block; }
  .has-submenu .subdropdown { display: none; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 4px 0 8px 18px; padding: 0 0 0 6px; }
  .has-submenu.open .subdropdown { display: block; }
  .has-submenu > a::after { display: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--2, .grid--1-2 { grid-template-columns: 1fr; }
  .grid--1-3 { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: 1fr; }
  .leader-photo { position: static; }
  .leader-photo img { aspect-ratio: 16 / 10; }
  .why-list { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .about-intro__media .card__thumb { min-height: 260px; }
  .about-nav { top: var(--header-h); }
  .hero h1 { font-size: var(--fs-2xl); }
}
@media (max-width: 560px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-6); }
}

/* ------------------------------------------------------------
   PRODUCT SIDEBAR + TWO-LEVEL LAYOUT (list & detail pages)
   ------------------------------------------------------------ */
.layout-side {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}
.layout-side__main { min-width: 0; }

/* Sidebar panel */
.product-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-3);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.product-side__head {
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-2);
}
.product-side__title {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}
.cat-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: var(--transition);
}
.cat-nav__link:hover { background: var(--surface); color: var(--primary); }
.cat-nav__link.is-active { background: var(--primary); color: #fff; }

.sub-nav { list-style: none; margin: 2px 0 6px; padding: 0 0 0 6px; display: grid; gap: 2px; }
.sub-nav__link {
  display: block;
  padding: 8px 12px 8px 22px;
  border-left: 2px solid var(--line);
  margin-left: 6px;
  color: var(--text);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: var(--transition);
}
.sub-nav__link:hover { color: var(--primary); border-left-color: var(--accent); }
.sub-nav__link.is-active { color: var(--primary); font-weight: 700; border-left-color: var(--accent); }

/* Fold secondary categories unless the parent is active (or being hovered). */
.cat-nav__item:not(.is-open) .sub-nav { display: none; }
.cat-nav__item:hover .sub-nav, .cat-nav__item:focus-within .sub-nav { display: grid; }

/* Sub-category quick links (pill badges) at the top of a category page */
.sub-badges { display: flex; flex-wrap: wrap; gap: calc(var(--sp-2) / 2); margin: var(--sp-1) 0 var(--sp-5); }
.sub-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.sub-badge:hover { border-color: var(--primary); color: var(--primary); background: #fff; }

/* Product detail top (photo + summary) */
.product-detail-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
  align-items: start;
}
.product-gallery__main { aspect-ratio: 4 / 3; }

/* Detail: sidebar + content column */
.layout-side--detail .section .container,
.layout-side--detail .section .container--narrow {
  max-width: 100%;
}

@media (max-width: 900px) {
  .layout-side { grid-template-columns: 1fr; }
  .product-side { position: static; }
  .product-detail-top { grid-template-columns: 1fr; }
}
/* ===== Projects (case studies) ===== */
.project-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); }
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--primary); }
.project-card__thumb { aspect-ratio: 16/10; display: block; overflow: hidden; background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%); }
.project-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); display: block; }
.project-card:hover .project-card__thumb img { transform: scale(1.05); }
.project-card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.project-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-3); flex-wrap: wrap; }
.project-card__loc { font-size: var(--fs-sm); color: var(--muted); }
.project-card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); line-height: 1.35; }
.project-card__title a { color: var(--ink); }
.project-card__title a:hover { color: var(--primary); }
.project-card__facts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--sp-3); }
.project-card_fact { font-size: var(--fs-sm); font-weight: 600; color: var(--primary); background: var(--surface); border: 1px solid var(--line); padding: 3px 10px; border-radius: var(--radius-pill); }
.project-card__text { color: var(--muted); margin: 0 0 var(--sp-4); flex: 1; line-height: 1.6; }

/* Project detail */
.project-detail__hero { margin: 0 0 var(--sp-6); }
.project-detail__hero img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.project-detail__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-6); }
.project-detail__fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); }
.project-detail__fact--wide { grid-column: 1 / -1; }
.project-detail__fact-label { display: block; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--sp-2); }
.project-detail__fact > span:last-child { color: var(--text); font-weight: 600; }
.project-detail__fact .badge { margin: 2px 4px 2px 0; }
.project-detail__body p { color: var(--muted); line-height: 1.8; margin-bottom: 18px; }
.project-detail__materials { margin-top: var(--sp-6); }
.project-detail__h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }
.project-detail__material { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); margin-bottom: var(--sp-4); background: #fff; }
.project-detail__material-name { font-size: var(--fs-lg); color: var(--primary); margin-bottom: var(--sp-3); }
.project-detail__material-col h4 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: var(--sp-4) 0 var(--sp-2); }
.project-detail__material-col .check-list { margin: 0 0 0 var(--sp-2); }
@media (max-width: 700px) {
  .project-detail__facts { grid-template-columns: 1fr; }
}