/* ==========================================================================
   Hadof brand design system — B2B food processing engineering
   Calm, precise, GEA-aligned industrial look.
   ========================================================================== */
@import url("tokens.css");

:root {
  --ink: #10161d;
  --ink-soft: #3f4a54;
  --line: #d7dde2;
  --bg: #ffffff;
  --bg-soft: #f2f4f6;
  --accent: #0072a3;
  --accent-dark: #00577c;
  --signal: #e8871e;
  --accent-ink: #ffffff;
  --radius: 5px;
  --maxw: 1240px;
  --shadow-sm: 0 1px 2px rgba(11, 32, 51, .06);
  --shadow: 0 10px 34px rgba(11, 25, 38, .12);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  --mono: "Consolas", "SFMono-Regular", "Roboto Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; margin: 0 0 .55em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -.025em; }
h2 { font-size: clamp(23px, 2.5vw, 32px); letter-spacing: -.02em; }
h3 { font-size: 18px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: 17.5px; color: var(--ink-soft); max-width: 70ch; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; z-index: 70; border-radius: 6px; box-shadow: var(--shadow); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border: 1px solid var(--signal);
  border-radius: 5px; background: var(--signal); color: #241405;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; cursor: pointer; transition: .18s ease; line-height: 1;
}
.btn:hover { background: #d17810; border-color: #d17810; color: #241405; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(11, 32, 51, .28); }
.btn-ghost:hover { background: rgba(11, 32, 51, .05); color: var(--ink); }
.hero .btn-ghost, .cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .62); }
.hero .btn-ghost:hover, .cta .btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* topbar ------------------------------------------------------------------ */
.topbar { background: var(--ink); color: #b9c7d4; font-size: 13.5px; }
.topbar .wrap { display: flex; gap: 22px; justify-content: space-between; align-items: center; min-height: 40px; }
.topbar-note { color: #9db0c0; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: inline-flex; align-items: center; gap: 20px; }
.topbar a { color: #e8eef4; font-weight: 500; display: inline-flex; align-items: center; min-height: 28px; }
.topbar-links a + a { position: relative; }
.topbar-links a + a::before { content: ""; position: absolute; left: -11px; top: 50%; transform: translateY(-50%); width: 1px; height: 14px; background: rgba(255, 255, 255, .22); }
.topbar a:hover { color: #fff; }

/* header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; flex: 0 0 auto; }
.brand img { height: 40px; width: auto; }
.brand span { font-size: 13px; color: var(--ink-soft); font-weight: 500; max-width: 210px; line-height: 1.3; }
.main-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a { position: relative; display: flex; align-items: center; min-height: 46px; padding: 0 14px; color: var(--ink); font-weight: 600; font-size: 15px; border-radius: 6px; white-space: nowrap; }
.nav-list > li > a:hover { background: var(--bg-soft); }
.nav-list > li.is-active > a { color: var(--accent); }
.nav-list > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; border-radius: 2px; }
.nav-list > li > a:hover::after, .nav-list > li.is-active > a::after { transform: scaleX(1); }
.nav-caret { display: inline-block; width: 0; height: 0; margin-left: 7px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .55; transition: transform .18s ease; }
.nav-list > li.has-sub:hover > a .nav-caret, .nav-list > li.has-sub.is-active > a .nav-caret { opacity: .9; transform: translateY(1px); }
.sub { list-style: none; margin: 0; padding: 10px; position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 6px; box-shadow: var(--shadow); display: none; z-index: 50; }
.nav-list > li.has-sub:hover > .sub, .nav-list > li.has-sub:focus-within > .sub { display: block; }
.sub a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); font-size: 14.5px; }
.sub a:hover { background: var(--bg-soft); color: var(--accent); }
.sub.sub-cols { min-width: 560px; columns: 2; column-gap: 6px; }
.sub.sub-cols a { break-inside: avoid; }
.sub-toggle { display: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; font-size: 20px; cursor: pointer; color: var(--ink); }
.btn-quote { margin-left: 8px; flex: 0 0 auto; }

.site-search { position: relative; flex: 0 0 auto; }
.site-search input {
  width: 42px; height: 42px; padding: 0 0 0 38px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2341566b' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center / 18px 18px;
  font-size: 15px; color: var(--ink); cursor: pointer; transition: width .2s ease;
}
.site-search input:focus { width: 250px; cursor: text; outline: 2px solid rgba(0, 107, 161, .22); }
.search-results { position: absolute; right: 0; top: calc(100% + 8px); width: 330px; max-height: 62vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 8px; }
.search-results a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); font-size: 14.5px; }
.search-results a:hover { background: var(--bg-soft); }
.search-empty { padding: 10px 12px; margin: 0; color: var(--ink-soft); font-size: 14px; }
.scroll-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--signal); z-index: 80; }

/* hero -------------------------------------------------------------------- */
.hero { position: relative; color: #fff; background: var(--ink); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; }
.hero-inner { padding: 96px 24px 88px; max-width: var(--maxw); }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 24ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .38); }
.hero .lead { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; font-weight: 700; color: #7fb8db; margin-bottom: 14px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ""; width: 30px; height: 3px; background: var(--signal); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 13px; color: rgba(255, 255, 255, .72); margin-bottom: 22px; }
.crumbs a { color: rgba(255, 255, 255, .82); display: inline-flex; align-items: center; min-height: 28px; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .45; }
.crumbs span[aria-current] { color: #fff; font-weight: 500; }
.page-head .crumbs { color: var(--ink-soft); }
.page-head .crumbs a { color: var(--accent); }
.page-head .crumbs span[aria-current] { color: var(--ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 38px; margin: 34px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.hero-facts strong { display: block; font-size: 28px; line-height: 1.05; font-family: var(--mono); font-weight: 700; }
.hero-facts span { font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.page-head { background: linear-gradient(180deg, #eef3f7, #f7fafc); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding: 58px 24px 48px; }
.page-head h1 { color: var(--ink); max-width: 24ch; }
.page-head .lead { max-width: 76ch; }

/* sections ----------------------------------------------------------------- */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 780px; margin-bottom: 34px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); margin: 0; }
.content { max-width: 900px; }
.content h2 { margin-top: 1.7em; position: relative; padding-top: 16px; }
.content h2::before { content: ""; position: absolute; top: 0; left: 0; width: 38px; height: 3px; background: var(--accent); }
.content h2:first-child { margin-top: .2em; }
.content h2, .content h3, .content h4 { scroll-margin-top: 118px; }

.kick { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 700; color: var(--accent); margin: 1.8em 0 .4em; }
.kick:first-child, h2 + .kick, h3 + .kick, h4 + .kick { margin-top: 0; }

/* hub (section landing) pages --------------------------------------------- */
.hub-lead { padding: 56px 0 24px; }
.hub-lead-inner { max-width: 820px; }
.hub-lead .lead { font-size: 19px; margin-bottom: 0; }
.hub-nav { position: sticky; top: 76px; z-index: 30; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hub-nav .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.hub-nav-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-weight: 700; margin-right: 6px; }
.hub-nav a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 13.5px; background: #fff; }
.hub-nav a:hover { color: var(--accent); border-color: var(--accent); }
.hub-section { scroll-margin-top: 118px; }
.hub-section .section-head { margin-bottom: 24px; }
.hub-section-body > p, .hub-section-body > p.lead { max-width: 76ch; }

/* compact cross-section deep links ----------------------------------------- */
.deep-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 0; }
.deep-link { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 42px 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: .16s ease; box-shadow: var(--shadow-sm); }
.deep-link:hover { color: var(--ink); border-color: #c8d6e1; box-shadow: var(--shadow); transform: translateY(-1px); }
.deep-link-title { font-weight: 700; font-size: 15.5px; color: var(--accent); line-height: 1.35; }
.deep-link-note { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.deep-arrow { position: absolute; top: 16px; right: 18px; color: var(--accent); font-size: 17px; line-height: 1; }

/* topic cluster navigation ------------------------------------------------ */
.cluster-index { background: var(--bg-soft); }
.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.link-grid li { margin: 0; }
.link-grid a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 14.5px; line-height: 1.4; box-shadow: var(--shadow-sm); transition: .15s ease; }
.link-grid a:hover { color: var(--accent); border-color: #c8d6e1; box-shadow: var(--shadow); transform: translateY(-1px); }

.cluster-nav { padding: 30px 0 40px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.cluster-nav h2 { margin: 0 0 14px; font-size: 18px; }
.cluster-nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cluster-nav-links a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 13.5px; background: #fff; transition: .15s ease; }
.cluster-nav-links a:hover { color: var(--accent); border-color: var(--accent); }
.cluster-nav-links .cluster-parent { font-weight: 700; color: var(--accent-dark); border-color: #cfe0ea; background: #eef6fb; }

.pillar-strip { padding: 56px 0; }

/* detail layout: reading column + sticky guide rail ------------------------ */
.detail-wrap { max-width: var(--maxw); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; align-items: start; }
.detail-main { min-width: 0; max-width: 780px; }
.detail-main.single { max-width: 780px; margin: 0 auto; }
.detail-rail { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 18px; }
.rail-title { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-weight: 700; margin: 0 0 12px; }
.toc { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); padding: 18px 20px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--ink-soft); font-size: 14px; border-left: 2px solid transparent; line-height: 1.4; }
.toc a:hover { color: var(--accent); background: #fff; }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); background: #fff; font-weight: 600; }
.glance { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 18px 20px; }
.glance ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.glance li { display: flex; flex-direction: column; gap: 2px; }
.glance span { font-size: 12.5px; color: var(--ink-soft); }
.glance strong { font-size: 15.5px; color: var(--ink); font-weight: 700; line-height: 1.35; }
.rail-cta { width: 100%; }
.related { background: var(--bg-soft); }

ul.blocks, ol.blocks { padding-left: 24px; margin: 0 0 1.2em; }
ul.blocks li, ol.blocks li { margin-bottom: 8px; }

/* structured numbered flow & checklist ------------------------------------ */
ol.flow, ul.flow { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 14px; }
ol.flow li, ul.flow li { display: flex; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
ol.flow .flow-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.item-title { font-size: 15.5px; color: var(--ink); }
.item-text { color: var(--ink-soft); font-size: 15px; }
.item-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 6px 0 0; }
.item-meta li { font-size: 12px; color: var(--accent-dark); background: #eef6fb; border: 1px solid #d2e6f2; border-radius: 999px; padding: 2px 10px; }

ul.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.checklist li { position: relative; padding-left: 32px; margin-bottom: 14px; }
ul.checklist .tick { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 5px; background: var(--accent); }
ul.checklist .tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
ul.checklist .item-body { display: flex; flex-direction: column; gap: 3px; }
ul.checklist .item-title { font-size: 15.5px; }
ul.checklist .item-text { color: var(--ink-soft); font-size: 15px; }

/* cards ------------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { display: flex; flex-direction: column; color: inherit; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; transition: .18s ease; box-shadow: var(--shadow-sm); }
.card:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c8d6e1; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: #edf1f5; }
.card img { transition: transform .4s ease; }
.card:hover img { transform: scale(1.045); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 12px; }
.card-meta { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card-meta li { font-size: 12px; font-family: var(--mono); letter-spacing: .02em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; padding: 4px 9px; color: var(--ink-soft); }
.card-link { font-weight: 600; font-size: 14.5px; margin-top: 12px; }

/* tables ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
table caption { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 10px; color: var(--ink); font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-weight: 600; border-bottom: none; font-family: var(--mono); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #fafbfd; }
tbody tr:hover { background: #f0f6fb; }
table.specs caption { border-bottom: 1px solid var(--line); padding: 14px 16px; background: #f6f9fb; }
table.specs th[scope="row"] { width: 32%; background: var(--bg-soft); font-weight: 600; color: var(--ink); border-left: 3px solid var(--accent); }

/* steps ------------------------------------------------------------------- */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.4em; }
ol.steps li { counter-increment: step; position: relative; padding: 0 0 26px 66px; }
ol.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 5px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 14px; border-left: 3px solid var(--signal); }
ol.steps li::after { content: ""; position: absolute; left: 22px; top: 50px; bottom: 4px; width: 2px; background: var(--line); }
ol.steps li:last-child::after { display: none; }
ol.steps h3 { margin: 8px 0 4px; font-size: 17px; }
ol.steps h3 a { color: inherit; }
ol.steps h3 a:hover { color: var(--accent); }
ol.steps p { color: var(--ink-soft); margin: 0; }

/* faq --------------------------------------------------------------------- */
.faq details { border: 1px solid var(--line); border-radius: 6px; background: #fff; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; font-size: 19px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq-a { padding: 0 20px 18px; color: var(--ink-soft); }

/* gallery & media ---------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.gallery figure, figure.wide { margin: 0 0 1.3em; }
.gallery img { border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
figure.wide img { border-radius: 10px; width: 100%; }
figcaption { font-size: 13.5px; color: var(--ink-soft); padding-top: 8px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #08131f; box-shadow: var(--shadow); margin: 0 0 1.4em; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.inquiry { background: #fff; border: 1px solid var(--line); border-radius: 6px; border-top: 3px solid var(--signal); padding: 30px 32px; box-shadow: var(--shadow-sm); margin: 0 0 1.6em; }
.inquiry h2 { margin-top: 0; }
.inquiry-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.inquiry-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.inquiry-form label span { color: var(--accent); margin-left: 3px; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus {
  outline: 2px solid rgba(0, 107, 161, .22); border-color: var(--accent);
}
.inquiry-form textarea { resize: vertical; min-height: 104px; }
.form-note { font-size: 13.5px; color: var(--ink-soft); margin: 14px 0 0; }
.form-note a { display: inline-flex; align-items: center; min-height: 28px; }

/* inquiry modal ------------------------------------------------------------ */
.inquiry-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(9, 17, 26, .64); backdrop-filter: blur(3px); }
.inquiry-modal[hidden] { display: none; }
.inquiry-modal__dialog { position: relative; width: min(720px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; border-radius: 10px; border-top: 3px solid var(--signal); padding: 30px 32px; box-shadow: var(--shadow); }
.inquiry-modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.inquiry-modal__close:hover { background: var(--bg-soft); }
.inquiry-modal h2 { margin: 0 0 8px; padding-right: 48px; }
.inquiry-modal p { color: var(--ink-soft); }

/* callouts & cta ----------------------------------------------------------- */
.cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: space-between; background: var(--ink); color: #fff; border-radius: 6px; border-left: 4px solid var(--signal); padding: 38px 40px; margin: 0 0 1.4em; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 62ch; }
.cta .btn { flex: 0 0 auto; }
blockquote { margin: 0 0 1.4em; padding: 18px 24px; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 8px 8px 0; }
blockquote cite { display: block; font-size: 13.5px; color: var(--ink-soft); font-style: normal; margin-top: 8px; }
.note { background: #f0f4f7; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; padding: 16px 20px; font-size: 15px; color: #31424f; }

/* trust & company sections -------------------------------------------------- */
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .kick { color: #7fb8db; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: rgba(255, 255, 255, .82); }
.section-head { max-width: 780px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kick { margin: 0 0 10px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); margin: 0; }
.section--ink .section-head p { color: rgba(255, 255, 255, .82); }

.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.trust-item .trust-ico { position: relative; flex: 0 0 auto; width: 36px; height: 36px; margin-top: 1px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.trust-item .trust-ico::after { content: ""; position: absolute; left: 12px; top: 9px; width: 9px; height: 15px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.trust-item strong { display: block; font-size: 15.5px; margin-bottom: 3px; }
.trust-item span { display: block; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

.statband { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 1.4em; }
.statband .stat { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.statband dt { font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.statband dd { margin: 7px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.statband--compact { gap: 10px; }
.statband--compact .stat { padding: 14px 16px; }
.statband--compact dt { font-size: 22px; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.pillar { position: relative; display: flex; flex-direction: column; padding: 24px 24px 26px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); transition: .18s ease; color: inherit; }
a.pillar:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c8d6e1; }
.pillar-num { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.pillar h3 { margin: 10px 0 8px; font-size: 17px; }
.pillar p { color: var(--ink-soft); font-size: 15px; margin: 0 0 14px; }
.pillar-link { font-weight: 600; font-size: 14.5px; color: var(--accent); margin-top: auto; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.split.reverse .split-body { order: 2; }
.split.reverse .split-media { order: 1; }
.split-body .kick { margin-top: 0; }
.split-body h2 { max-width: 20ch; }
.split-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.split-facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 18px 0 22px; padding: 0; }
.split-facts li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.split-facts strong { display: block; font-size: 22px; color: var(--accent); line-height: 1.1; }
.split-facts span { font-size: 13px; color: var(--ink-soft); }
.split-media .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.split-media .gallery figure { margin: 0; }
.split-media figure.wide { margin: 0; }

.checklist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4px 24px; }

/* footer ------------------------------------------------------------------- */
.site-footer { background: #0a1219; color: #aebcc9; padding: 62px 0 0; font-size: 15px; border-top: 3px solid var(--signal); background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 52px 52px; }
.foot-grid { display: grid; grid-template-columns: 1.45fr repeat(5, minmax(0, 1fr)); gap: 36px; }
.foot-grid > * { min-width: 0; }
.site-footer h3 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.site-footer a { color: #aebcc9; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.foot-contact { font-size: 14px; line-height: 1.65; color: #8294a5; }
.foot-base { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 44px; padding: 22px 24px 28px; font-size: 13.5px; color: #8b9cac; }
.wa-float { position: fixed; right: 22px; bottom: 28px; z-index: 45; background: #25d366; color: #062f19; font-weight: 700; padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 28px rgba(37, 211, 102, .35); }
.wa-float:hover { color: #062f19; filter: brightness(1.04); }
.mobile-bar { display: none; }

/* responsive ---------------------------------------------------------------- */
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .detail-main { max-width: 720px; }
  .detail-rail { position: static; flex-direction: row; flex-wrap: wrap; align-items: stretch; }
  .detail-rail .toc { display: none; }
  .detail-rail .glance { flex: 1 1 260px; }
  .detail-rail .rail-cta { flex: 1 1 220px; align-self: center; width: auto; }
}
@media (max-width: 1500px) {
  .brand span { display: none; }
  .header-inner { gap: 10px; }
  .nav-list > li > a { padding: 0 10px; font-size: 14.5px; }
  .btn-quote { padding: 0 16px; min-height: 42px; }
}
@media (max-width: 920px) {
  .wrap { padding: 0 18px; }
  .header-inner { gap: 12px; }
  .hub-nav { position: static; }
  .detail-rail { flex-direction: column; }
  .detail-rail .rail-cta { width: 100%; align-self: auto; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 0 auto 0 0; width: min(86vw, 350px); background: #fff; display: none; z-index: 60; padding: 78px 20px 32px; overflow-y: auto; box-shadow: 14px 0 44px rgba(11, 32, 51, .2); }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list > li > a { padding: 13px 8px; border-bottom: 1px solid var(--line); min-height: 48px; }
  .nav-caret { display: none; }
  .sub { position: static; display: none; border: none; box-shadow: none; padding: 2px 0 10px 16px; }
  .nav-list > li.has-sub.is-open > .sub { display: block; }
  .sub-toggle { display: block; position: absolute; right: 0; top: 5px; width: 42px; height: 42px; background: none; border: none; font-size: 19px; color: var(--accent); cursor: pointer; }
  .btn-quote { display: none; }
  .site-search { margin: 0 4px 0 auto; }
  .site-search input { width: 40px; }
  .site-search input:focus { width: 180px; }
  .hero-inner { padding: 72px 18px 66px; }
  .hero-facts { gap: 22px; }
  .hero-facts strong { font-size: 23px; }
  .section { padding: 48px 0; }
  .cta { padding: 30px 26px; }
  .inquiry { padding: 24px 18px; }
  .inquiry-form .form-grid { grid-template-columns: 1fr; gap: 0; }
  .inquiry-modal { align-items: flex-start; padding: 12px; }
  .inquiry-modal__dialog { max-height: calc(100vh - 24px); padding: 22px 18px; border-radius: 8px; }
  .inquiry-modal__close { top: 10px; right: 10px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .site-footer li { margin-bottom: 5px; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 28px; }
  .foot-base span { display: inline-flex; align-items: center; min-height: 28px; }
  .topbar { font-size: 12.5px; }
  .topbar .wrap { gap: 14px; justify-content: center; min-height: 36px; }
  .topbar-note { display: none; }
  .foot-base { padding: 20px 18px 26px; }
  .wa-float { bottom: 80px; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; background: #fff; border-top: 1px solid var(--line); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 58px; font-weight: 600; color: var(--ink); border-right: 1px solid var(--line); font-size: 15px; }
  .mobile-bar a:last-child { border-right: none; }
  .mobile-bar a.strong { background: var(--signal); color: #241405; }
  body { padding-bottom: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 920px) {
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-body { order: 0; }
  .split.reverse .split-media { order: 0; }
}
@media (max-width: 560px) {
  .trust-strip { grid-template-columns: 1fr; }
  .split-facts { grid-template-columns: 1fr; }
  .split-media .gallery { grid-template-columns: 1fr; }
}

/* language switcher ------------------------------------------------------ */
.lang-switch { position: relative; margin-left: 2px; flex: 0 0 auto; }
.lang-switch__btn {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
.lang-switch__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 158px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 6px;
  display: none;
  z-index: 80;
}
.lang-switch:hover .lang-switch__menu,
.lang-switch:focus-within .lang-switch__menu,
.lang-switch__menu.is-open { display: block; }
.lang-switch__menu a {
  display: block;
  padding: 7px 10px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 3px;
  white-space: nowrap;
}
.lang-switch__menu a:hover { background: var(--bg-soft); }
.lang-switch__menu a.is-active { color: var(--accent); font-weight: 700; }

/* RTL ----------------------------------------------------------- */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .lang-switch__menu { left: 0; right: auto; }
html[dir="rtl"] .deep-arrow { transform: scaleX(-1); }
html[dir="rtl"] .crumbs .sep { display: inline-block; }
