/* ==========================================================================
   Weidmann & Rall – style.css
   Colours and sizes are set once here as variables.
   ========================================================================== */

/* Poppins, self-hosted (no Google request = no GDPR issue).
   Put the woff2 files into assets/fonts/ – see README. Until then the
   system font is used. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-v24-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-v24-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-v24-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-v24-latin-700.woff2") format("woff2"); }

:root {
  --red: #dd1919;
  --red-dark: #b81414;
  --red-soft: #fdeaea;
  --navy: #1f2d3a;
  --slate: #36495a;
  --ink: #111a22;
  --text: #4f5b66;
  --muted: #5d6873;
  --line: #e6e6e6;
  --bg-soft: #f5f6f7;
  --white: #ffffff;
  --radius: 24px;
  --radius-lg: 32px;
  --container: 1280px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--navy); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.icon { flex: none; }

/* ---------- Typography ---------- */
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
.h1 { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.05; letter-spacing: -2px; font-weight: 700; color: var(--ink); }
.h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -1px; font-weight: 700; color: var(--ink); }
.h3 { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--text); }
.accent { color: var(--red); }
.text { font-size: 16px; line-height: 1.65; color: var(--text); }
.text + .text { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px; border-radius: 999px; font: 600 16px/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--ink); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid #ececec; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 44px; width: auto; }
.logo-mark { display: flex; font-size: 38px; font-weight: 700; font-style: italic; letter-spacing: -2px; color: var(--slate); line-height: 1; }
.logo-mark i { display: inline-block; width: 12px; height: 4px; background: var(--red); border-radius: 2px; margin: 6px 3px 0 0; }
.main-nav { display: flex; gap: 36px; font-size: 15px; font-weight: 500; }
.main-nav a:not(.btn) { text-decoration: none; padding: 6px 0; }
.main-nav a[aria-current="page"] { color: var(--red); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: 1px solid #e2e2e2; border-radius: 999px; padding: 3px; }
.lang-switch a { min-width: 40px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current="true"] { background: var(--navy); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid #e2e2e2; border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-tight { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head .lead { max-width: 460px; }
.section-head-center { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.section-head-center .lead { margin-top: 20px; }
.stack > * + * { margin-top: 22px; }

/* Page hero (sub pages) */
.page-hero { background: var(--bg-soft); padding: 80px 0 88px; }
.page-hero .h1 { margin-top: 16px; max-width: 900px; }
.page-hero .lead { margin-top: 24px; max-width: 720px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb span { margin: 0 8px; }

/* Home hero */
.hero { background: var(--bg-soft); padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--slate); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero .h1 { margin-top: 28px; }
.hero .lead { margin-top: 28px; max-width: 540px; }
.hero .btn-row { margin-top: 40px; }
.trust { margin-top: 44px; display: flex; gap: 28px; flex-wrap: wrap; list-style: none; padding: 0; font-size: 14px; font-weight: 500; color: var(--slate); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--red); }
.hero-visual { position: relative; }
.hero-visual > img, .hero-visual > .ph { height: 560px; width: 100%; object-fit: cover; border-radius: 28px; }
.float-card { position: absolute; left: -36px; bottom: 48px; background: #fff; border-radius: 18px; padding: 18px 22px; box-shadow: 0 18px 40px rgba(17,26,34,.14); display: flex; align-items: center; gap: 14px; }
.float-card strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.float-card small { display: block; font-size: 13px; color: var(--muted); }
.float-badge { position: absolute; right: 28px; top: 28px; background: var(--navy); color: #fff; border-radius: 16px; padding: 16px 20px; }
.float-badge strong { display: block; font-size: 30px; font-weight: 700; line-height: 1; }
.float-badge small { display: block; margin-top: 6px; font-size: 13px; color: #c9d1d8; }

/* Icon tile */
.icon-tile { width: 56px; height: 56px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; flex: none; }
.icon-tile-sm { width: 46px; height: 46px; border-radius: 12px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 20px; }
.bento > * { border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.bento .b-big { grid-column: span 2; grid-row: span 2; background: var(--navy); color: #fff; padding: 40px; }
.bento .b-big .kicker { color: #9fb0bf; }
.bento .b-big p.big { margin-top: 18px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.25; font-weight: 600; }
.bento .b-soft { background: var(--bg-soft); }
.bento .b-red { background: var(--red-soft); }
.bento .b-img { padding: 0; overflow: hidden; }
.bento .b-img > img, .bento .b-img > .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.bento .num { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -2px; color: var(--red); }
.bento .icon { color: var(--red); }
.bento strong { display: block; font-size: 18px; font-weight: 600; color: var(--ink); }
.bento small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.chips li { padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 14px; font-weight: 500; }
.chips li:last-child { background: var(--red); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-media > img, .split-media > .ph { width: 100%; height: 520px; object-fit: cover; border-radius: 28px; }
.split .h2 { margin-top: 16px; }
.split .lead, .split .text { margin-top: 22px; }
.split .btn { margin-top: 36px; }

/* Check list */
.checks { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 28px; font-size: 16px; color: var(--navy); }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.checks-2 { grid-template-columns: 1fr 1fr; gap: 18px 48px; }
.checks-red .tick { background: var(--red); }

/* Link rows */
.rows { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.row-text { display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; }
.row-no { font-size: 14px; font-weight: 600; color: #8a949d; }
.row-title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -1px; color: var(--ink); }
.row-sub { font-size: 16px; color: var(--muted); }
.row-arrow { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid #cfd5da; display: flex; align-items: center; justify-content: center; color: var(--navy); transition: all .2s; }
.row:hover .row-arrow { background: var(--red); border-color: var(--red); color: #fff; }
.row:hover .row-title { color: var(--red); }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; }
.card-soft { background: var(--bg-soft); border-color: transparent; }
.card .h3 { margin: 22px 0 10px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; list-style: none; padding: 0; counter-reset: step; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px 24px; }
.steps .no { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.steps li:last-child .no { background: var(--red); }
.steps .h3 { margin: 18px 0 8px; font-size: 18px; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--text); }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person { background: var(--bg-soft); border-radius: var(--radius); padding: 36px 32px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; letter-spacing: 1px; }
.person .h3 { margin-top: 22px; }
.person .role { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--red); }
.person .text { margin-top: 14px; }

/* CTA */
.section:not(.section-soft) + .section-cta { padding-top: 0; }
.cta-card { background: var(--navy); border-radius: var(--radius-lg); padding: 80px 64px; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-card .h2 { color: #fff; max-width: 640px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 16px; margin-top: 32px; }
.contact-list li { display: flex; gap: 16px; align-items: center; background: var(--bg-soft); border-radius: 18px; padding: 18px 20px; }
.contact-list strong { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.contact-list a, .contact-list span { font-size: 16px; font-weight: 500; text-decoration: none; color: var(--ink); }

/* Form */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--bg-soft); border: 1.5px solid transparent; border-radius: 14px; padding: 14px 16px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.req { color: var(--red); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); }
.alert { display: none; grid-column: 1 / -1; padding: 14px 18px; border-radius: 14px; background: var(--red-soft); color: var(--red-dark); font-weight: 500; }
.alert.show { display: block; }

/* Legal text */
.legal { max-width: 820px; }
.legal h2 { font-size: 24px; font-weight: 600; color: var(--ink); margin: 48px 0 12px; }
.legal h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 28px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--text); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin-top: 8px; }
.legal a { color: var(--red); }
.legal b { color: var(--ink); }
.legal-source { margin-top: 48px !important; font-size: 13px !important; color: var(--muted) !important; }

/* Image placeholder (shown until a real image is in assets/img) */
.ph { background: repeating-linear-gradient(135deg, #d9dfe4 0 16px, #e3e8ec 16px 32px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.ph span { background: rgba(255,255,255,.94); color: var(--navy); font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }

/* Footer */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-name { font-weight: 600; color: var(--navy); }
.site-footer a { text-decoration: none; }
.footer-nav { display: flex; gap: 24px; align-items: flex-start; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Chinese page ---------- */
/* Poppins has no Chinese glyphs: use the reader's system font (no download needed). */
:lang(zh) body, html:lang(zh-Hans) body { font-family: "Poppins", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
html:lang(zh-Hans) .h1, html:lang(zh-Hans) .h2, html:lang(zh-Hans) .row-title { letter-spacing: 0; }
html:lang(zh-Hans) .h1 { line-height: 1.2; }
html:lang(zh-Hans) .lead, html:lang(zh-Hans) .text { line-height: 1.8; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .section { padding: 80px 0; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual > img, .hero-visual > .ph { height: 420px; }
  .split-media > img, .split-media > .ph { height: 380px; }
  .float-card { left: 16px; bottom: 16px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(200px, auto); }
  .bento .b-big { grid-column: span 2; grid-row: auto; }
  .grid-3, .team { grid-template-columns: 1fr 1fr; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; gap: 4px; padding: 16px 32px 24px; font-size: 18px; }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px 0; }
  .nav-cta-mobile { display: inline-flex; margin-top: 12px; align-self: flex-start; }
}
@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .page-hero { padding: 56px 0 64px; }
  .bento, .grid-3, .grid-4, .team, .steps, .checks-2 { grid-template-columns: 1fr; }
  .bento .b-big { grid-column: auto; }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .cta-card { padding: 48px 28px; }
  .row-arrow { width: 44px; height: 44px; }
  .main-nav { padding: 12px 20px 20px; }
  .float-badge { right: 16px; top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
