/* ============================================================
   HIKMA KOREA — hikmakorea.com
   Editorial corporate design · KO base
   Palette: paper #F7F5F0 / ink #1A2620 / green #14532D
            deep #0D2E1C / gold #C9A24B
   ============================================================ */

:root {
  --paper: #F7F5F0;
  --paper-warm: #F1EDE4;
  --ink: #1A2620;
  --ink-soft: #46544C;
  --green: #14532D;
  --deep: #0D2E1C;
  --deep-2: #0A2416;
  --gold: #C9A24B;
  --gold-soft: #D9BC7E;
  --hair: rgba(26, 38, 32, 0.16);
  --hair-light: rgba(247, 245, 240, 0.22);
  --serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif;
}

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

html { scroll-behavior: smooth; }

::selection { background: var(--gold); color: var(--deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Arabic glyphs — elegant naskh instead of system default */
[lang="ar"] { font-family: "Noto Naskh Arabic", "Segoe UI", serif; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* nicer paragraph wrapping where supported (avoids dangling words) */
p, dd, .stat span, .record-item div {
  text-wrap: pretty;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- type utilities ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.sec-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  margin-top: 22px;
  text-wrap: balance;
}
.sec-desc {
  margin-top: 20px;
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 16.5px;
}

/* gentle scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- header ---------- */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
header.scrolled {
  background: rgba(13, 46, 28, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--hair-light);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand svg { display: block; }
.brand-name {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 15px;
}
.brand-name small {
  display: block;
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.34em;
  color: var(--gold-soft);
  margin-top: 2px;
}
.brand-name small[lang="ko"] {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
}
.nav-links > a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.nav-links > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links > a:hover { color: var(--gold-soft); }
.nav-links > a:hover::after { transform: scaleX(1); }
.lang {
  display: flex;
  gap: 2px;
  margin-left: 12px;
  border: 1px solid var(--hair-light);
}
.lang a, .lang span {
  padding: 5px 10px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}
.lang .on { background: var(--gold); color: var(--deep); font-weight: 700; }
.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  padding: 9px 20px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  transition: all 0.25s;
}
.nav-cta:hover { background: var(--gold); color: var(--deep); }

/* mobile menu */
.menu-btn {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
  z-index: 60;
}
.menu-btn span {
  display: block;
  width: 22px; height: 1.5px;
  background: #fff;
  margin: 5px auto;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.m-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--deep-2);
  z-index: 55;
  padding: 120px 36px 48px;
  flex-direction: column;
}
.m-menu.open { display: flex; }
.m-menu a {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair-light);
}
.m-menu a:last-of-type { color: var(--gold-soft); }
.m-menu .m-langs {
  margin-top: auto;
  display: flex;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
}
.m-menu .m-langs .on { color: var(--gold); font-weight: 700; }

/* ---------- hero ---------- */
.hero {
  background: var(--deep);
  color: #fff;
  padding: 190px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.hero-kicker {
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-kicker::before {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.16;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-soft);
}
.hero-sub {
  margin-top: 30px;
  max-width: 560px;
  font-size: 17.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin: 44px 0 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: all 0.25s;
}
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-line { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-line:hover { border-color: var(--gold); color: var(--gold-soft); }

/* hero artwork — suspension bridge illustration, full width */
.hero-bridge { overflow: hidden; }
.hero-bridge img {
  width: 100%;
  height: clamp(220px, 24vw, 330px);
  object-fit: cover;
  object-position: center 56%;
  display: block;
}

/* coordinates bar */
.coords {
  border-top: 1px solid var(--hair-light);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}
.coords b { color: var(--gold-soft); font-weight: 600; }
.coords .dot { color: var(--gold); padding: 0 10px; }

/* ---------- about ---------- */
.about { padding: 140px 0 110px; }
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
}
.about-left { position: sticky; top: 120px; align-self: start; }
.about-story p + p { margin-top: 26px; }
.about-story .lead {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--green);
}
.about-story .arabic-note {
  font-size: 15px;
  color: var(--ink-soft);
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px 20px;
  margin-top: 30px;
}
.about-story .arabic-note b { color: var(--green); }

.about-photo { margin-top: 72px; }
.about-photo figure {
  position: relative;
  margin-inline: calc(50% - 50vw);
}
.about-photo img {
  width: 100%;
  height: clamp(380px, 46vw, 560px);
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05) brightness(1.02);
}
.about-photo figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #14532D;
  mix-blend-mode: color;
  opacity: 0.12;
  pointer-events: none;
}
.about-photo figcaption {
  max-width: 1200px;
  margin: 14px auto 0;
  padding: 12px 32px 0;
}
figcaption {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  margin-top: 14px;
}

/* stats */
.stats {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 90px;
}
.stat {
  padding: 34px 26px;
  border-left: 1px solid var(--hair);
}
.stat:first-child { border-left: 0; }
.stat b {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--green);
  display: block;
  line-height: 1.1;
}
.stat b sup { font-size: 18px; color: var(--gold); }
.stat b i {
  font-style: normal;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 5px;
  letter-spacing: 0.02em;
}
.stat span {
  font-size: 13.5px;
  color: var(--ink-soft);
  display: block;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* ---------- business ---------- */
.business { padding: 130px 0 110px; background: var(--paper-warm); }
.biz-list { margin-top: 70px; border-top: 1px solid var(--hair); }
.biz-row {
  display: grid;
  grid-template-columns: 90px 1fr 380px;
  gap: 40px;
  padding: 52px 24px;
  margin: 0 -24px;
  border-bottom: 1px solid var(--hair);
  align-items: start;
  transition: background 0.35s ease;
}
.biz-row:hover { background: rgba(20, 83, 45, 0.045); }
.biz-num {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-soft);
  font-weight: 700;
  padding-top: 6px;
  letter-spacing: 0.06em;
  transition: color 0.3s;
}
.biz-row:hover .biz-num { color: var(--gold); }
.biz-main h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.biz-main h3 small {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  background: none;
  border: 1px solid var(--gold);
  padding: 3px 9px;
  vertical-align: middle;
  margin-left: 12px;
  transform: translateY(-3px);
}
.biz-main p {
  margin-top: 16px;
  color: var(--ink-soft);
  max-width: 560px;
  font-size: 16px;
}
.biz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 20px;
}
.biz-tags li {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  border: 0;
  padding: 0;
}
.biz-tags li + li::before {
  content: "\00B7";
  color: var(--gold);
  margin: 0 10px;
}
.biz-side img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
}
.biz-side .side-note {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
}
.side-note a, .record-item small a { transition: color 0.2s; }
.side-note a:hover { color: var(--green); }
.record-item small a:hover { color: var(--gold-soft); }
/* text-only rows: quiet placeholder panel */
.biz-panel {
  height: 220px;
  background: var(--deep);
  color: var(--gold-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}
.biz-panel .p-label {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.biz-panel .p-main {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}
.biz-panel .p-main .ar {
  display: block;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
}
/* panel variants — avoid three identical dark cards */
.biz-panel.warm {
  background: #EFE6D2;
  color: var(--green);
  border: 1px solid rgba(201, 162, 75, 0.5);
}
.biz-panel.warm .p-label { color: rgba(20, 83, 45, 0.5); }
.biz-panel.warm .p-main .ar { color: rgba(20, 83, 45, 0.6); }

/* consulting process mini-steps */
.steps {
  height: 220px;
  border: 1px solid rgba(20, 83, 45, 0.35);
  background: var(--paper);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.steps li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 14px;
  color: var(--ink);
  padding: 6px 0;
}
.steps li + li { border-top: 1px dashed rgba(26, 38, 32, 0.18); }
.steps b {
  font-family: var(--serif);
  font-size: 12.5px;
  color: var(--gold);
  min-width: 22px;
  font-weight: 700;
}
.steps li small {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* ---------- track record ---------- */
.record { padding: 140px 0 130px; background: var(--deep); color: #fff; }
@media (min-width: 961px) {
  .record .eyebrow, .record .sec-title { margin-left: 33%; }
}
.record .eyebrow { color: var(--gold-soft); }
.record .sec-title { color: #fff; }
.record-box {
  margin-top: 64px;
  border: 1px solid var(--hair-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.record-main {
  padding: 48px 52px;
  border-right: 1px solid var(--hair-light);
}
.record-label {
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.record-main h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
}
.record-main h3 span {
  display: block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.record-main p {
  margin-top: 24px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
}
.record-side { display: flex; flex-direction: column; }
.record-item {
  flex: 1;
  padding: 30px 44px;
  border-bottom: 1px solid var(--hair-light);
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.record-item b { padding-top: 3px; }
.record-item:last-child { border-bottom: 0; }
.record-item b {
  font-family: var(--serif);
  color: var(--gold-soft);
  font-size: 17px;
  min-width: 30px;
}
.record-item div { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.85); }
.record-item div small { display: block; color: rgba(255,255,255,0.45); font-size: 12.5px; margin-top: 3px; letter-spacing: 0.06em; }

/* ---------- why ---------- */
.why { padding: 96px 0 104px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 70px;
  counter-reset: why-n;
}
.why-item { border-top: 1px solid var(--hair); padding-top: 24px; }
.why-item h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}
.why-item h3::before {
  content: counter(why-n, decimal-leading-zero) "  ";
  counter-increment: why-n;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
  vertical-align: 3px;
}
.why-item p { margin-top: 14px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- contact ---------- */
.contact { background: var(--deep-2); color: #fff; padding: 130px 0 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  padding-bottom: 100px;
}
.contact .sec-title { color: #fff; }
.contact-sub { margin-top: 20px; font-weight: 300; color: rgba(255,255,255,0.65); font-size: 16px; }
.c-rows { margin-top: 48px; }
.c-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hair-light);
  font-size: 15.5px;
  align-items: baseline;
}
.c-row dt {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.c-row dd { font-weight: 300; color: rgba(255,255,255,0.88); }
.c-row dd a:hover { color: var(--gold-soft); }
.msg-btns { display: flex; gap: 12px; margin-top: 36px; }
.msg-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 10px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.25s;
}
.msg-btn svg { width: 19px; height: 19px; }
.msg-btn.wa:hover { background: #1FAF57; border-color: #1FAF57; }
.msg-btn.kk:hover { background: #F7E14E; border-color: #F7E14E; color: #201808; }

/* form */
.form-card { border: 1px solid var(--hair-light); padding: 46px; }
.form-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 34px;
}
.f-field { margin-bottom: 24px; }
.f-field label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 9px;
}
.f-field:focus-within label { color: var(--gold-soft); }
.f-field input, .f-field textarea, .f-field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  padding: 12px 2px;
  outline: none;
  transition: border-color 0.25s;
}
.f-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A24B' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 26px;
}
.f-field select option { color: var(--ink); }
.f-field input:focus, .f-field textarea:focus { border-color: var(--gold); }
.f-field textarea { resize: vertical; min-height: 120px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 10px; }

/* footer */
.footer {
  border-top: 1px solid var(--hair-light);
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.04em;
}
.footer b { font-weight: 600; color: rgba(255,255,255,0.7); }
.footer span:last-child { text-align: right; }
.foot-coords {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold-soft);
  opacity: 0.7;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  body { font-size: 16px; }
  .wrap { padding: 0 24px; }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .hero { padding-top: 150px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-bridge img { height: 170px; object-position: center 56%; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { flex: 1 1 0; justify-content: center; min-height: 50px; }
  .msg-btn { min-height: 50px; }
  figcaption { flex-direction: column; gap: 3px; }
  figcaption span:last-child { color: rgba(26,38,32,0.45); }
  .coords {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    overflow-wrap: anywhere;
  }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about-left { position: static; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { padding: 26px 18px; border-left: 0; border-top: 1px solid var(--hair); }
  .stat:first-child { border-top: 0; }
  .stat span { overflow-wrap: anywhere; }
  .biz-row { grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 0; padding: 44px 0; }
  .biz-row:hover { background: none; }
  .biz-num { padding: 0; }
  .record-box { grid-template-columns: minmax(0, 1fr); }
  .record-main { border-right: 0; border-bottom: 1px solid var(--hair-light); padding: 36px 30px; }
  .record-item { padding: 24px 30px; }
  .why-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .c-row { grid-template-columns: 80px minmax(0, 1fr); }
  .form-card { padding: 32px 24px; }
  .footer { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .footer span:last-child { text-align: center; }
  .about-photo figcaption { padding: 12px 24px 0; }
}
