/* ============================================================
   KHK — Marketing Website Styles
   Global (English only), single-page + legal pages
   ============================================================ */

:root {
  --green-900: #14361f;
  --green-700: #1f7a4d;
  --green-600: #24915b;
  --green-500: #2fae6d;
  --green-100: #e6f6ee;
  --green-050: #eef9f2;
  --amber-500: #f2a63b;
  --amber-600: #e08a1e;
  --ink-900: #10251a;
  --ink-700: #33473c;
  --ink-500: #5c6f66;
  --paper: #ffffff;
  --paper-soft: #f6faf7;
  --line: #e2ece6;
  --shadow-sm: 0 2px 8px rgba(16, 37, 26, 0.06);
  --shadow-md: 0 12px 34px rgba(16, 37, 26, 0.12);
  --radius: 16px;
  --radius-lg: 26px;
  --max: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-050);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 10px 24px rgba(36, 145, 91, 0.32);
}
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--green-500); background: var(--green-050); }
.btn-amber { background: var(--amber-500); color: #3a2607; }
.btn-amber:hover { background: var(--amber-600); color: #3a2607; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.brand span { color: var(--green-600); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a { color: var(--ink-700); font-weight: 500; }
.nav-links a:hover { color: var(--green-600); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 24px;
  background: var(--ink-900); border-radius: 2px;
  transition: .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% 0%, #eafaf0 0%, rgba(238,249,242,0) 55%),
    linear-gradient(180deg, #ffffff 0%, var(--paper-soft) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 54px;
  align-items: center;
  padding: 74px 0 84px;
}
.hero-copy p.lead {
  font-size: 1.18rem;
  color: var(--ink-500);
  max-width: 40ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 22px;
  color: var(--ink-500); font-size: 0.92rem;
}
.hero-badges strong { color: var(--ink-900); display: block; font-size: 1.35rem; }
.hero-media {
  position: relative;
}
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: auto -18px -22px auto;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(47,174,109,0.22), transparent 70%);
  z-index: -1;
}

/* ---------- Section base ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--paper-soft); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--ink-500); font-size: 1.06rem; }

/* ---------- Feature cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-050);
  color: var(--green-600);
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-500); margin-bottom: 0; }

/* ---------- Split / showcase ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.split.reverse .split-media { order: -1; }
.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.check-list { list-style: none; margin: 20px 0 0; }
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--ink-700);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--green-600); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700;
}

/* ---------- Audience / roles ---------- */
.roles { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.role {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: var(--paper);
}
.role .tag {
  font-size: 0.78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green-600);
}
.role h3 { margin: 6px 0 10px; }
.role p { color: var(--ink-500); margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: step; }
.step { text-align: center; padding: 10px; }
.step .num {
  width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green-600); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(36,145,91,.3);
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--ink-500); font-size: 0.95rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 10px auto 26px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: #cfe4d7;
  padding: 60px 0 26px;
  margin-top: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer p { color: #a9c8b7; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; letter-spacing: .04em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #a9c8b7; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 22px; font-size: 0.88rem; color: #8fb3a0;
}

/* ---------- Legal / content pages ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--green-050), #fff);
  border-bottom: 1px solid var(--line);
  padding: 66px 0 46px;
}
.page-hero .eyebrow { background: #fff; }
.page-hero p { color: var(--ink-500); max-width: 60ch; }
.legal { padding: 56px 0 80px; }
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.legal-toc {
  position: sticky; top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper-soft);
}
.legal-toc h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); margin-bottom: 12px; }
.legal-toc ul { list-style: none; }
.legal-toc li { margin-bottom: 9px; }
.legal-toc a { color: var(--ink-700); font-size: 0.94rem; }
.legal-body h2 { margin: 34px 0 12px; scroll-margin-top: 92px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin: 20px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-700); }
.legal-body ul, .legal-body ol { margin: 0 0 16px 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body .updated { color: var(--ink-500); font-size: 0.92rem; margin-bottom: 26px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: var(--paper); box-shadow: var(--shadow-sm);
}
.contact-card .ic {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 12px; background: var(--green-050); color: var(--green-600);
  display: grid; place-items: center; font-size: 1.25rem;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--ink-500); }
.contact-card a { font-weight: 600; }
.form {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; background: var(--paper-soft);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--ink-900); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 1rem; color: var(--ink-900);
  background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(47,174,109,.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-500); margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 48px 0 56px; }
  .hero-media { order: -1; }
  .grid-3, .roles, .steps { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 22px; box-shadow: var(--shadow-md);
  }
  .nav.open .nav-links li { width: 100%; }
  .nav.open .nav-links a { display: block; padding: 10px 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; }
}
