/* ===========================================================
   patchbay.co.kr — renewal styles
   Committed light brand look with a dark hero / about band.
   Palette: near-black ink, cool off-white, patchbay green,
   navy for the primary (phone) call-to-action.
   =========================================================== */

:root {
  --ink: #0b0f14;
  --ground: #ffffff;
  --alt: #f4f6f9;
  --text: #1b2431;
  --soft: #5a6678;
  --line: #e3e8ef;
  --line-strong: #cfd6e0;

  --accent: #0aa06e;
  --accent-strong: #0b8a60;
  --accent-soft: #e7f6ef;
  --navy: #143a72;
  --navy-strong: #0f2c58;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 25, 45, .05), 0 4px 14px rgba(15, 25, 45, .05);
  --shadow: 0 2px 6px rgba(15, 25, 45, .06), 0 16px 40px rgba(15, 25, 45, .08);
  --maxw: 1120px;
  --sans: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--ground);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 12px 20px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-phone { background: var(--navy); color: #fff; }
.btn-phone:hover { background: var(--navy-strong); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { display: inline-flex; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a { font-size: 15px; font-weight: 600; color: var(--soft); transition: color .15s; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.ext { color: var(--accent-strong); }
.site-nav a.nav-contact { color: var(--ink); }

.header-phone { margin-left: auto; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 10px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 80% -10%, rgba(18,196,139,.20), transparent 55%),
    radial-gradient(100% 100% at 10% 110%, rgba(27,79,176,.28), transparent 55%),
    linear-gradient(180deg, #0d1219, #0b0f14);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 90%);
}
.hero-inner { position: relative; padding: 118px 24px 104px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #4fe0ac; margin-bottom: 20px;
}
.hero-title { font-size: clamp(32px, 6vw, 60px); font-weight: 800; letter-spacing: -.03em; }
.hero-sub { margin-top: 22px; font-size: clamp(15px, 2.4vw, 19px); color: #c3ccd8; max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--ink); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.trust-inner { padding: 34px 24px 40px; }
.trust-lead { text-align: center; color: #8b97a8; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.trust-logos {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 18px 0 26px;
}
.logo-slot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 140px; height: 52px; padding: 0 20px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  color: #cfd6e0; font-weight: 700; letter-spacing: -.01em;
}
.trust-stats {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.trust-stats li {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 26px; border-left: 1px solid rgba(255,255,255,.1);
}
.trust-stats li:first-child { border-left: 0; }
.trust-stats strong { font-size: 20px; color: #fff; letter-spacing: -.02em; }
.trust-stats span { font-size: 13px; color: #8b97a8; }

/* ---------- Section shell ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--alt); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 12px;
}
.section-dark .section-eyebrow { color: #4fe0ac; }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.section-desc { margin-top: 14px; color: var(--soft); font-size: 16px; }
.section-dark .section-desc { color: #b7c0cd; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-ico {
  width: 52px; height: 52px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-strong);
}
.card-benefit { font-size: 19px; font-weight: 700; color: var(--ink); }
.card-target { font-size: 13.5px; color: var(--accent-strong); font-weight: 600; }
.card-checks { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.card-checks li { position: relative; padding-left: 26px; color: var(--soft); font-size: 15px; }
.card-checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}
.card-cta { margin-top: auto; padding-top: 8px; color: var(--navy); font-weight: 700; font-size: 15px; }
.card-cta span { transition: transform .15s; display: inline-block; }
.card:hover .card-cta span { transform: translateX(4px); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step {
  position: relative; background: var(--ground); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; background: var(--accent);
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 14px; font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 16px; color: var(--ink); }
.step p { margin-top: 6px; font-size: 14px; color: var(--soft); }
.process-note {
  margin-top: 30px; text-align: center; color: var(--soft); font-size: 15px;
  background: var(--ground); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 20px;
}
.process-note strong { color: var(--ink); }

/* ---------- Track record ---------- */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.project {
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--accent);
}
.project h3 { font-size: 17px; color: var(--ink); }
.project p { margin-top: 8px; font-size: 14px; color: var(--soft); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.badges li {
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--accent-strong); background: var(--accent-soft); border: 1px solid #cdeadd;
}

/* ---------- About ---------- */
.mission {
  max-width: 780px; margin: 0 auto 54px; text-align: center;
  font-size: clamp(18px, 2.6vw, 23px); font-weight: 600; color: #eef2f7; line-height: 1.6; letter-spacing: -.01em;
}
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.timeline li {
  position: relative; padding: 24px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
}
.timeline li.tl-now { background: rgba(18,196,139,.12); border-color: rgba(18,196,139,.4); }
.tl-year {
  display: inline-block; font-weight: 800; font-size: 15px; color: #4fe0ac;
  margin-bottom: 10px; font-variant-numeric: tabular-nums;
}
.timeline p { font-size: 14.5px; color: #c3ccd8; }

/* ---------- Blog ---------- */
.blog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-thumb {
  height: 150px;
  background: linear-gradient(135deg, #0d1219, #143a72 130%);
  position: relative;
}
.blog-thumb::after {
  content: ""; position: absolute; inset: 0; opacity: .4;
  background-image: radial-gradient(rgba(79,224,172,.5) 1px, transparent 1.4px);
  background-size: 16px 16px;
}
.blog-date { padding: 16px 20px 0; font-size: 12.5px; font-weight: 700; color: var(--accent-strong); }
.blog-title { padding: 6px 20px 22px; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.blog-all {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 34px;
  font-weight: 700; color: var(--navy); font-size: 16px;
  border-bottom: 2px solid transparent; transition: border-color .15s;
}
.blog-all:hover { border-color: var(--navy); }
#blog .container { text-align: center; }
#blog .blog-cards { text-align: left; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info .section-eyebrow, .contact-info .section-title { text-align: left; }
.contact-info .section-title { margin-bottom: 18px; }
.contact-lead { color: var(--soft); font-size: 16px; margin-bottom: 26px; max-width: 40ch; }
.contact-phone { margin-bottom: 22px; }
.contact-line { font-size: 15px; color: var(--soft); margin-top: 8px; }
.contact-line strong { color: var(--ink); display: inline-block; min-width: 56px; }
.contact-line a { color: var(--accent-strong); font-weight: 600; }

.contact-form {
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.req { color: var(--accent-strong); }
.field input, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  background: #fbfcfd; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 96px; }
.consent { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--soft); }
.consent input { width: 17px; height: 17px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.h-captcha { margin-top: 2px; min-height: 78px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.form-hint { font-size: 13.5px; color: var(--soft); }
.form-hint a { color: var(--navy); font-weight: 700; }
.form-result { font-size: 14px; font-weight: 600; }
.form-result.ok { color: var(--accent-strong); }
.form-result.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: #080b0f; color: #aeb8c6; padding: 54px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 32px; align-items: start; }
.footer-brand .brand-name { color: #fff; font-size: 20px; }
.footer-brand p { margin-top: 8px; font-size: 14px; color: #7c8797; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { font-size: 14.5px; color: #aeb8c6; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-meta p { font-size: 13.5px; line-height: 1.9; }
.footer-meta .copyright { margin-top: 10px; color: #6a7484; font-size: 12.5px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .blog-cards { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 66px; }
  .header-inner { height: 60px; gap: 12px; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 0; margin: 0;
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .25s ease;
  }
  .site-nav.open { max-height: 420px; visibility: visible; }
  .site-nav a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .site-nav a:first-child { border-top: 0; }

  .section { padding: 62px 0; }
  .hero-inner { padding: 84px 24px 76px; }
  .br-desktop { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }

  .cards, .process, .projects, .timeline, .blog-cards, .footer-inner { grid-template-columns: 1fr; }
  .trust-stats li { padding: 10px 18px; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-info .section-eyebrow, .contact-info .section-title { text-align: center; }
}
