/* KZM Global Ltd — site styles */

:root {
  --ink: #141413;
  --ink-2: #3d3d3b;
  --muted: #5f6266;
  --line: #dcdcd8;
  --bg: #ffffff;
  --bg-alt: #f4f4f1;
  --accent: #1f3a5f;      /* navy */
  --accent-soft: #e6ecf3;
  --radius: 10px;
  --wrap: 1180px;
  --font: 'Jost', 'Century Gothic', 'Futura', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--accent); color: #fff;
  border: 2px solid var(--accent); border-radius: 999px;
  font-weight: 500; text-decoration: none; letter-spacing: 0.01em;
  transition: filter .15s, background .15s, color .15s;
}
.btn:hover { filter: brightness(1.15); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; filter: none; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; }

.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand img { width: 220px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; color: var(--ink-2); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav a.btn { color: #fff; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: 88px 0 96px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 600; max-width: 14ch; }
.lead { font-size: 19px; color: var(--ink-2); margin-top: 24px; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.routes {
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 32px 32px 28px;
}
.routes-title { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #c9ccd0; margin-bottom: 20px; }
.route-list { list-style: none; margin: 0; padding: 0; position: relative; }
.route-list::before {
  content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px;
  border-left: 2px dashed #5a5d61;
}
.route-list li {
  position: relative; display: grid; grid-template-columns: 14px 1fr; column-gap: 18px;
  padding: 12px 0;
}
.route-list .dot {
  grid-row: span 2; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%;
  background: var(--ink); border: 3px solid #fff; position: relative; z-index: 1;
}
.route-list strong { font-size: 20px; font-weight: 500; }
.route-list li span:last-child { grid-column: 2; font-size: 15px; color: #c9ccd0; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); max-width: 22ch; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.icon {
  width: 44px; height: 44px; padding: 9px; border-radius: 10px;
  background: var(--accent-soft); stroke: var(--accent); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 21px; }
.card p { color: var(--ink-2); font-size: 16px; flex: 1; }
.more { font-weight: 500; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product {
  background: #fff; border-radius: var(--radius); padding: 40px 36px;
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.product-tag {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px;
}
.product h3 { font-size: 34px; }
.product-sub { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: -6px; }
.product > p:not(.product-sub) { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.num { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; }
.steps h3 { font-size: 22px; margin: 6px 0 8px; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* CTA */
.cta { background: var(--accent); color: #fff; padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); }
.cta p { margin-top: 10px; opacity: .9; }
.cta-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-mail { color: #fff; font-weight: 500; }

/* Footer */
.site-footer { background: var(--ink); color: #c9ccd0; padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 200px; margin-bottom: 18px; }
.footer-note { max-width: 40ch; }
.footer-h { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; font-weight: 500; margin-bottom: 14px; }
.site-footer nav a, .site-footer div > a { display: block; text-decoration: none; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid #333331; margin-top: 48px; padding-top: 22px; font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .products { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; padding: 12px; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand img { width: 170px; }
  .section { padding: 64px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .product { padding: 28px 22px; }
  .routes { padding: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Inner pages ---------- */
.page-hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 20ch; }
.page-hero .lead { margin-top: 18px; }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.split h2 { font-size: clamp(28px, 3.2vw, 38px); }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--ink-2); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.value h3 { font-size: 20px; margin: 14px 0 8px; }
.value p { color: var(--ink-2); font-size: 16px; }


/* Service detail blocks */
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.subnav a {
  text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 16px; min-height: 44px; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.subnav a:hover { border-color: var(--accent); color: var(--accent); }
.service { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; padding: 80px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:last-child { border-bottom: 0; }
.service-intro .icon { margin-bottom: 18px; }
.service-intro h2 { font-size: clamp(28px, 3.2vw, 38px); }
.service-intro p { color: var(--ink-2); margin-top: 16px; }
.service-intro .btn { margin-top: 28px; }
.service-detail h3 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.service-detail .ticks { margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }

/* Projects */
.project-list { display: grid; gap: 24px; }
.project {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px;
  padding: 40px 36px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.project h2 { font-size: 30px; margin-top: 12px; }
.project .meta { margin-top: 18px; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.project .meta strong { color: var(--ink); font-weight: 500; }
.project-body p { color: var(--ink-2); }
.project-body .ticks { margin-top: 16px; }
.note { font-size: 15px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  min-height: 48px; padding: 10px 14px; border: 1px solid #b9b9b4; border-radius: 8px; background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.form .consent { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.form button { grid-column: 1 / -1; justify-self: start; cursor: pointer; font: inherit; font-weight: 500; }
.form button:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; font-size: 15px; min-height: 1.5em; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: #a32020; }
.contact-side { display: grid; gap: 20px; }
.info-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-alt); }
.info-card h2 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.info-card a { font-size: 19px; font-weight: 500; color: var(--accent); word-break: break-word; }
.info-card p { color: var(--ink-2); font-size: 16px; }
.info-card p + p { margin-top: 8px; }

/* Legal text */
.legal { max-width: 760px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--accent); }

/* 404 */
.notfound { padding: 120px 0; text-align: center; }
.notfound h1 { font-size: clamp(36px, 5vw, 56px); }
.notfound p { color: var(--ink-2); margin: 16px auto 32px; max-width: 44ch; }

@media (max-width: 1024px) {
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .split, .service, .project, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .service { padding: 56px 0; }
}
@media (max-width: 560px) {
  .page-hero { padding: 48px 0 44px; }
  .values { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .form button { justify-self: stretch; }
  .project { padding: 28px 22px; }
}
