/* 한길택시 / Hangil Taxi
   Tokens sampled from assets/reference/business-card.png — see .research/derived-tokens.md.
   Do not hardcode colour outside :root. */

:root {
  --ink: #0B0C0D;
  --ink-deep: #030405;
  --ink-raised: #15171A;
  --paper: #F1EAE1;
  --paper-dim: #E3DACE;
  --gold: #C6973C;
  --gold-bright: #F0D68C;
  --gold-deep: #8C6219;
  --muted: #A9A29A;
  --line: rgba(198, 151, 60, 0.22);

  --font-display: 'Gothic A1', system-ui, sans-serif;
  --font-body: 'Pretendard', 'Gothic A1', system-ui, sans-serif;
  --font-num: 'Archivo', 'Gothic A1', system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;           /* Hangul must not break mid-word */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px;           /* clears the sticky mobile bar */
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

/* ---- a11y: shadcn-style ring removal is not in play here, but be explicit ---- */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink); padding: .75rem 1.25rem;
  font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
section { padding-block: clamp(2.5rem, 5.5vw, 4rem); position: relative; }

/* Sections blend rather than butt against each other */
.paper-panel { background: var(--paper); color: var(--ink); }
.paper-panel h2 { color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 12, 13, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; }
.site-header img { height: 42px; width: auto; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }

.nav-links { display: none; gap: 1.35rem; margin-left: 1.5rem; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .92rem; white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--gold-bright); }
@media (min-width: 1080px) { .nav-links { display: flex; } }

/* The header CTA cannot shrink below its number, and logo + toggle + button
   overrun a 390px viewport. The sticky bottom bar already carries the call
   on mobile, so drop the duplicate rather than let it push the page sideways. */
@media (max-width: 760px) {
  .site-header .btn-call { display: none; }
  .site-header img { height: 34px; }
}

.lang-toggle {
  background: none; border: 1px solid var(--line); color: var(--muted);
  font: inherit; font-size: .85rem; padding: .4rem .7rem; border-radius: 999px;
  cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.lang-toggle:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-num); font-weight: 700; font-size: 1.05rem;
  padding: .85rem 1.4rem; border-radius: 999px; text-decoration: none;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-call { background: var(--gold); color: var(--ink); }   /* ink label — paper fails at 2.23:1 */
.btn-call:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-kakao { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-kakao:hover { border-color: var(--gold); color: var(--gold-bright); }
.paper-panel .btn-kakao { color: var(--ink); border-color: rgba(11,12,13,.25); }
.paper-panel .btn-kakao:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

.btn-sms { background: var(--ink-raised); color: var(--paper); border-color: var(--line); }
.btn-sms:hover { background: #22262B; border-color: var(--gold); }
.paper-panel .btn-sms { background: transparent; color: var(--ink); border-color: rgba(11,12,13,.25); }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* hero credential badges */
.hero-badges {
  list-style: none; margin: 0 0 1.4rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem .95rem;
}
.hero-badges li { display: flex; align-items: center; gap: .35rem; font-size: .92rem; color: var(--paper); }
.hero-badges svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* "text us your route" hint under the area grid */
.area-hint {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  margin: 1.25rem 0 0; text-align: center; color: var(--paper); font-size: .96rem;
}
.area-hint svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* ---------- hero: split, echoing the business card ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 4.5rem); overflow: hidden; }
.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }

.hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 900; letter-spacing: -0.02em; }
.hero .lede { color: var(--muted); font-size: 1.06rem; max-width: 34ch; }

.fare-anchor {
  display: inline-flex; align-items: baseline; gap: .5rem;
  margin: 0 0 1.5rem; padding: .5rem .9rem;
  border: 1px solid var(--line); border-radius: 8px;
}
.fare-anchor .num {
  font-family: var(--font-num); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: 1.5rem; color: var(--gold-bright);
}
.fare-anchor .cap { font-size: .85rem; color: var(--muted); }

/* arc mask echoes the card's curved vehicle panel */
.hero-media {
  border-radius: 180px 18px 18px 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,12,13,.72) 0%, rgba(11,12,13,.15) 55%, transparent 100%);
}
@media (max-width: 899px) { .hero-media { border-radius: 18px; } }

/* ---------- pillars ---------- */
.pillars { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pillar {
  display: grid; grid-template-rows: auto auto 1fr; gap: .35rem;
  padding: 1.5rem; border: 1px solid var(--line); border-radius: 14px;
  background: var(--ink-raised);
}
.pillar svg { width: 26px; height: 26px; color: var(--gold); }
.pillar h3 { color: var(--paper); margin: .4rem 0 0; }
.pillar p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- fares ---------- */
/* Hangul route labels are unbreakable (word-break: keep-all), so the 4-column
   table sets a min-width wider than a phone. Scroll it rather than let it push
   the whole document sideways. */
.table-scroll { overflow-x: auto; margin-block: 1.5rem; }
.fare-table { width: 100%; border-collapse: collapse; min-width: 340px; }
.fare-table caption { text-align: left; color: var(--gold-deep); font-weight: 700; padding-bottom: .6rem; }
.fare-table th, .fare-table td { padding: .85rem .6rem; border-bottom: 1px solid rgba(11,12,13,.14); text-align: left; }
.fare-table thead th { font-family: var(--font-display); font-size: .9rem; text-transform: none; color: var(--ink); }
.fare-table td.price {
  font-family: var(--font-num); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: 1.12rem; color: var(--ink);
}
@media (max-width: 520px) {
  .fare-table th, .fare-table td { padding: .7rem .35rem; font-size: .95rem; }
  .fare-table td.price { font-size: 1rem; }
}
.fare-note { font-size: .92rem; color: #4A443C; margin: 0; }
.fare-note strong { color: var(--gold-deep); }

/* ---------- areas ---------- */
/* 8 tiles: 2×4 on phones, 4×2 on desktop. auto-fit left an orphan on the last row. */
.area-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .area-grid { grid-template-columns: repeat(4, 1fr); } }
.area {
  padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; text-align: center;
  background: var(--ink-raised);
}
.area .name { font-family: var(--font-display); font-weight: 700; }
.area .sub { font-size: .82rem; color: var(--muted); }

/* ---------- vehicles ---------- */
.vehicles { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.vehicle {
  display: grid; grid-template-rows: auto auto 1fr auto;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--ink-raised);
}
/* The generated shots came out warmer than the hero's cool dusk. Grade them
   toward ink + brass so all four read as one shoot, per the duotone approach
   in .research/design-patterns.md. */
.veh-media { position: relative; }
.veh-media { position: relative; }
.veh-media img {
  aspect-ratio: 4/3; object-fit: cover;
  /* Pull the warm generated skies down to near-neutral so they sit beside the
     hero's cool dusk. Tinting toward gold made the clash worse, not better. */
  filter: saturate(.3) contrast(1.1) brightness(.86);
}
.veh-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,12,13,.18) 0%, rgba(11,12,13,.62) 100%);
}
.vehicle .body { padding: 1.1rem 1.25rem 1.4rem; display: grid; gap: .3rem; }
.vehicle h3 { color: var(--gold-bright); margin: 0; }
.vehicle p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- how-to ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; counter-reset: s; max-width: 46rem; }
.steps li {
  counter-increment: s; position: relative; padding: .85rem 1rem .85rem 3.1rem;
  border: 1px solid var(--line); border-radius: 12px;
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 1rem; top: .95rem;
  font-family: var(--font-num); font-weight: 700; color: var(--gold);
}

/* ---------- faq ---------- */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .3rem 0; }
.faq summary {
  cursor: pointer; padding: .95rem 0; font-family: var(--font-display); font-weight: 700;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-family: var(--font-num); }
.faq details[open] summary::after { content: '\2212'; }
.faq p { color: var(--muted); margin: 0 0 1rem; }

/* ---------- cta band ---------- */
.cta-band { background: var(--ink-raised); border-block: 1px solid var(--line); text-align: center; }
.cta-band .cta-row { justify-content: center; }

/* ---------- kakao card ---------- */
.kakao-card {
  display: grid; gap: 1.25rem; align-items: center; justify-items: center;
  grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; text-align: center;
}
@media (min-width: 620px) { .kakao-card { grid-template-columns: auto 1fr; text-align: left; justify-items: start; } }
.kakao-card img { width: 150px; border-radius: 10px; }
.kakao-id {
  font-family: var(--font-num); font-weight: 700; font-size: 1.6rem;
  color: var(--gold-bright); letter-spacing: .04em;
}
.copy-btn {
  background: none; border: 1px solid var(--line); color: var(--muted);
  font: inherit; font-size: .85rem; padding: .35rem .7rem; border-radius: 999px; cursor: pointer;
}
.copy-btn:hover { color: var(--gold-bright); border-color: var(--gold); }

/* On cream, light gold is ~2.2:1 and effectively invisible. Only --gold-deep
   is legible there (4.54:1). See DESIGN.md contrast rules. */
.paper-panel .kakao-id { color: var(--gold-deep); }
.paper-panel .copy-btn { color: #45403A; border-color: rgba(11,12,13,.3); }
.paper-panel .copy-btn:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; color: var(--muted); font-size: .93rem; }
.site-footer img { height: 56px; width: auto; margin-bottom: 1rem; }
.site-footer a { color: var(--gold-bright); }
.footer-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- sticky mobile bar — the conversion mechanism ---------- */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(11,12,13,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  padding: 1.05rem .5rem; text-decoration: none; font-weight: 700;
  font-family: var(--font-num); font-size: 1rem;
}
.mobile-bar .call { background: var(--gold); color: var(--ink); }
.mobile-bar .kakao { color: var(--paper); }
.mobile-bar svg { width: 1.1em; height: 1.1em; }
.mobile-bar { grid-template-columns: 1fr 1fr 1fr; }
.mobile-bar .sms { color: var(--paper); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
@media (min-width: 900px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- floating sticker stack (desktop) ---------- */
.float-stack {
  position: fixed; right: 1.1rem; bottom: 1.6rem; z-index: 45;
  display: none; flex-direction: column; gap: .6rem;
}
@media (min-width: 900px) { .float-stack { display: flex; } }

.fab {
  width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center; gap: 2px;
  text-decoration: none; border: 1px solid var(--line);
  background: var(--ink-raised); color: var(--paper);
  box-shadow: 0 12px 32px rgba(0,0,0,.42), 0 2px 5px rgba(0,0,0,.5);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.fab svg { width: 21px; height: 21px; }
.fab-label { font-size: .78rem; font-weight: 700; letter-spacing: .01em; line-height: 1; }
.fab:hover { transform: translateY(-2px); }
.fab-call { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.fab-call:hover { background: var(--gold-bright); }
.fab-kakao:hover, .fab-sms:hover { background: #22262B; }

/* ---------- why us ---------- */
.why { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.why-item {
  display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; align-items: start;
  padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: 14px;
  background: var(--ink-raised);
}
.why-item svg { width: 22px; height: 22px; color: var(--gold); grid-row: span 2; margin-top: .15rem; }
.why-item h3 { margin: 0; color: var(--paper); font-size: 1.02rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- split feature blocks ---------- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > *:first-child { order: 2; } }
.split-media { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.split-media img { aspect-ratio: 16/11; object-fit: cover; filter: saturate(.3) contrast(1.1) brightness(.86); }
.split-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,12,13,.15), rgba(11,12,13,.6));
}
.checklist { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .55rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: baseline; color: var(--muted); }
.checklist svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- area cards with icons ---------- */
.area svg { width: 20px; height: 20px; color: var(--gold); margin: 0 auto .4rem; }

/* ---------- footer contact rows ---------- */
.contact-row { display: grid; grid-template-columns: auto 1fr; gap: .55rem; align-items: baseline; margin-bottom: .5rem; }
.contact-row svg { width: 15px; height: 15px; color: var(--gold); }

/* ---------- motion ---------- */
/* Content is visible by default. Only hide it when JS is confirmed present,
   so a blocked/slow script can never leave sections blank. */
/* Transform only — no opacity fade. A half-faded text node fails axe's contrast
   check while it animates, and full-opacity text can never be invisible if the
   script is blocked. The rise alone reads the same. */
.reveal { transition: transform .5s var(--ease); }
html.js .reveal { transform: translateY(14px); }
html.js .reveal.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
