/* ===========================================================
   레인보우컴퓨터 홈페이지 — 공통 스타일시트
   (2026-10 다크 톤으로 변경 — 아래 :root 변수 참고)
   밝고 친근한 톤: 따뜻한 크림 배경 + 코랄 포인트 색 + 보조 색상들을
   서비스 아이콘 점으로만 살짝 써서 "레인보우"다운 느낌을 과하지
   않게 표현했다.
=========================================================== */

:root {
  /* 2026-10 — 전체 톤을 어두운 남색 + 파란 포인트로 변경.
     색은 거의 전부 여기 변수로 정해지므로, 톤을 바꿀 땐 이 블록만 고치면 된다. */
  --bg: #0b1120;
  --surface: #111827;
  --surface-2: #0f172a;
  --input-bg: #0b1222;
  --text: #e5e9f0;
  --muted: #94a3b8;
  --border: #1f2a3c;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dark: #60a5fa;               /* 포인트 글자색 (링크·강조) */
  --primary-light: rgba(37, 99, 235, 0.16); /* 포인트 배경색 (선택·배지) */

  --accent-blue: #3b82f6;
  --accent-yellow: #fbbf24;
  --accent-green: #34d399;
  --accent-purple: #a78bfa;

  /* 상태 색 (배지·안내 박스) */
  --ok-bg: rgba(16, 185, 129, 0.15);   --ok-fg: #34d399;
  --warn-bg: rgba(245, 158, 11, 0.14); --warn-fg: #fcd34d;
  --err-bg: rgba(239, 68, 68, 0.15);   --err-fg: #fca5a5;
  --info-bg: rgba(59, 130, 246, 0.16); --info-fg: #93c5fd;
  --violet-bg: rgba(139, 92, 246, 0.18); --violet-fg: #c4b5fd;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0 0 .5em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- 헤더 / 네비게이션 ---------------- */
.site-header {
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  background: conic-gradient(from 200deg,
    var(--primary), var(--accent-yellow), var(--accent-green),
    var(--accent-blue), var(--accent-purple), var(--primary));
  flex-shrink: 0;
}

nav.main-nav {
  display: flex;
  gap: 4px;
}

nav.main-nav a {
  color: var(--text);
  font-size: .95rem;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  font-weight: bold;
}
.nav-cta:hover { background: var(--primary-hover); color: #fff !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* 2026-10 — 메뉴 항목이 늘어나서(셀프 진단·수리 사례), 태블릿 폭에서도
   글자가 두 줄로 깨지지 않게 1024px 이하부터 ☰ 메뉴로 접는다. */
nav.main-nav a, .brand { white-space: nowrap; }

@media (max-width: 1024px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--border);
    gap: 2px;
  }
  nav.main-nav.open { display: flex; }
  .menu-toggle { display: block; }
}

/* ---------------- 히어로 ----------------
   배경은 메인보드 회로 패턴을 입힌 이미지(assets/img/circuit-hero.jpg) —
   실제 매장 사진으로 바꾸고 싶다면 이 파일을 같은 이름으로 교체하면 됨.
   이미지 자체에 가운데를 어둡게 하는 보정이 들어있어서 흰 글자가
   잘 보이지만, 아래 그라데이션을 한 겹 더 얹어서 어떤 화면 너비에서도
   글자 대비가 유지되게 했다. */
.hero {
  padding: 96px 0 84px;
  text-align: center;
  position: relative;
  color: #fdf9f2;
  background:
    linear-gradient(180deg, rgba(10,12,18,.35) 0%, rgba(10,12,18,.55) 100%),
    url("img/circuit-hero.jpg") center / cover no-repeat;
}

.hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(2px);
  color: #bfdbfe;
  font-size: .85rem;
  font-weight: bold;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero h1 { font-size: 2.6rem; color: #fff; }
.hero p.lead {
  color: #d8d3ca;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero .btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.hero .btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  border-color: #fff;
  color: #fff;
}

/* ---------------- 소개(일러스트 + 글) 영역 ---------------- */
.intro-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
}
.intro-split img { max-width: 360px; margin: 0 auto; }
.intro-split h2 { margin-bottom: 14px; }
@media (max-width: 760px) {
  .intro-split { grid-template-columns: 1fr; text-align: center; }
}

.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: bold;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); text-decoration: none; }

/* ---------------- 섹션 공통 ---------------- */
section.block { padding: 48px 0; }
section.block.alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; margin-bottom: 32px; }
.section-head p { color: var(--muted); max-width: 480px; margin: 8px auto 0; }

.eyebrow-dark {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .85rem;
  font-weight: bold;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* 서비스·가격 페이지 상단의 수리/신품/중고 바로가기 */
.subnav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.subnav a {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: bold;
}
.subnav a:hover { border-color: var(--primary); color: var(--primary-dark); text-decoration: none; }

.grid {
  display: grid;
  gap: 20px;
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

/* ---------------- 카드 ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 12px;
}
.dot.c1 { background: var(--primary); }
.dot.c2 { background: var(--accent-blue); }
.dot.c3 { background: var(--accent-green); }
.dot.c4 { background: var(--accent-purple); }
.dot.c5 { background: var(--accent-yellow); }

.price-tag {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  color: var(--primary-dark);
}

/* ---------------- 중고 매물 카드 ---------------- */
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.condition-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: bold;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.condition-badge.grade-a { background: var(--ok-bg); color: var(--ok-fg); }
.condition-badge.grade-b { background: var(--warn-bg); color: var(--warn-fg); }

.note {
  font-size: .85rem;
  color: var(--muted);
}

/* ---------------- 테이블 (영업시간 등) ---------------- */
table.simple {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table.simple th, table.simple td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.simple th { background: var(--primary-light); color: var(--primary-dark); }
table.simple tr:last-child td { border-bottom: none; }

/* 2026-10 추가 — "지도가 여기에 표시됩니다" 안내 박스 대신, 실제
   지도 이미지를 넣을 수 없는 자리(저작권상 네이버 지도 타일을 그대로
   파일로 저장해 쓸 수 없음)에 매장 위치를 본떠 그린 작은 일러스트
   카드를 놓고, 눌렀을 때 실제 네이버지도(길찾기 포함)로 이동하게
   한다. */
.map-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.map-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.map-card-art {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.map-card-overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: var(--shadow);
}
.map-card-label { font-weight: bold; color: var(--text); font-size: .95rem; }
.map-card-cta {
  color: var(--primary-dark);
  font-weight: bold;
  font-size: .85rem;
  white-space: nowrap;
}

/* ---------------- 후기 ---------------- */
.review-stars { color: var(--accent-yellow); font-size: 1.1rem; margin-bottom: 8px; }
.review-name { font-weight: bold; margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* ---------------- 폼 (AS접수 / 블로그 글쓰기 공용) ---------------- */
.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 0 auto;
}

label { display: block; font-weight: bold; font-size: .9rem; margin: 16px 0 6px; }
label:first-of-type { margin-top: 0; }
label.required::after { content: " *"; color: var(--primary-dark); }

input[type=text], input[type=tel], input[type=password], input[type=date], input[type=file], select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--text);
  color-scheme: dark;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
::placeholder { color: #5b6b82; }
textarea { min-height: 90px; resize: vertical; }

button.btn-primary {
  width: 100%;
  margin-top: 22px;
  border: none;
  font-size: 16px;
}
button.btn-primary:disabled { background: rgba(37, 99, 235, 0.35); color: rgba(255,255,255,.6); cursor: default; }

#result {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  line-height: 1.5;
  display: none;
}
#result.ok { background: var(--ok-bg); color: var(--ok-fg); display: block; }
#result.err { background: var(--err-bg); color: var(--err-fg); display: block; }

.flash {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: .92rem;
}
.flash.ok { background: var(--ok-bg); color: var(--ok-fg); }
.flash.err { background: var(--err-bg); color: var(--err-fg); }

/* ---------------- 블로그 ---------------- */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.post-card .post-date { color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.post-card h3 { margin-bottom: 8px; }
.post-card .excerpt { color: var(--muted); font-size: .94rem; }
.post-card .post-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  display: block;
}
/* 2026-10 — 수리 전·후 사진을 반반으로 보여주는 목록 썸네일 */
.post-card .post-thumb-ba {
  display: flex;
  gap: 3px;
  overflow: hidden;
  object-fit: initial;
}
.post-card .post-thumb-ba figure {
  position: relative;
  flex: 1 1 0;
  margin: 0;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}
.post-card .post-thumb-ba img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card .post-thumb-ba figcaption {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: .72rem;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 10px;
}

.post-body { background: var(--surface); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.post-body .post-date { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.post-body p { margin-bottom: 1.1em; }
.post-body .post-image {
  margin: 0 -32px 24px;
}
.post-body .post-image img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* 블로그 글에 끼워 넣는 유튜브 영상 (반응형 16:9) */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.admin-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
  font-size: .85rem;
}

/* ---------------- 푸터 (2026-10 3단 구성) ---------------- */
footer.site-footer {
  background: #060a14;
  border-top: 1px solid var(--border);
  color: #cbd5e1;
  margin-top: 40px;
  font-size: .9rem;
}
footer.site-footer a { color: #cbd5e1; }
footer.site-footer a:hover { color: var(--primary-dark); text-decoration: none; }
footer.site-footer h4 {
  color: #fff;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 12px;
}

/* 1. 신뢰 배너 */
.footer-trust {
  background: linear-gradient(90deg, rgba(37,99,235,.18), rgba(99,102,241,.12), rgba(37,99,235,.18));
  border-bottom: 1px solid var(--border);
}
.footer-trust .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  padding-top: 16px;
  padding-bottom: 16px;
  font-weight: bold;
  color: #e2e8f0;
}
.footer-trust b { color: var(--accent-green); }
.footer-trust small { color: var(--muted); font-weight: normal; }

/* 2. 4열 */
.footer-cols {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr 1.1fr;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 32px;
}
.footer-text { color: #94a3b8; line-height: 1.8; margin: 0; }
.footer-list { list-style: none; margin: 0; padding: 0; color: #94a3b8; }
.footer-list li { padding: 3px 0 3px 12px; position: relative; line-height: 1.6; }
.footer-list li::before { content: "•"; position: absolute; left: 0; color: #475569; }
.footer-dim { color: #64748b; font-size: .85rem; }
.footer-off { color: var(--err-fg) !important; font-weight: bold; }
.footer-btns { display: flex; flex-direction: column; gap: 8px; }
.footer-btns a {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .87rem;
  font-weight: bold;
}
.footer-btns a:hover { border-color: var(--primary); }

/* 3. 사업자 정보 */
.footer-biz {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  padding-bottom: 90px; /* 오른쪽 아래 떠 있는 버튼에 가리지 않게 */
  color: #64748b;
  font-size: .8rem;
}
.footer-biz p { margin: 0 0 12px; line-height: 1.8; }
.footer-biz i { font-style: normal; color: #334155; margin: 0 6px; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.footer-legal a { color: #94a3b8; }

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .footer-trust .wrap { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .footer-biz { padding-bottom: 200px; } /* 떠 있는 버튼 3개 높이만큼 */
}

/* ---------------- 오른쪽 아래 전화·예약 버튼 (2026-10 추가) ---------------- */
.quick-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quick-actions a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform .15s ease;
  text-decoration: none;
}
.quick-actions a:hover { transform: scale(1.08); text-decoration: none; }
.quick-actions svg { width: 24px; height: 24px; }
.qa-kakao { background: #fee500; color: #191919; }
.qa-call { background: #22c55e; color: #fff; }
.qa-book { background: var(--primary); color: #fff; }
@media (max-width: 480px) {
  .quick-actions { right: 14px; bottom: 14px; gap: 10px; }
  .quick-actions a { width: 52px; height: 52px; }
}

/* 링크로 된 카드(서비스 카드·블로그 글)의 제목이 파란 링크색으로 보이지 않게 */
a.card, a.post-card { color: var(--text); transition: border-color .15s ease, transform .15s ease; }
a.card:hover, a.post-card:hover { border-color: var(--primary); text-decoration: none; transform: translateY(-2px); }

/* 2026-10 — 블로그 본문 소제목·목록·태그 (에이전트 PC 자동발행 글의 간단한 마크다운 표시) */
.post-body h2.post-sub { font-size: 1.25rem; margin: 1.8em 0 .7em; line-height: 1.4; }
.post-body h3.post-sub { font-size: 1.08rem; margin: 1.4em 0 .6em; line-height: 1.4; }
.post-body ul, .post-body ol { margin: 0 0 1.1em 1.3em; padding: 0; }
.post-body li { margin-bottom: .45em; line-height: 1.75; }
.post-body strong { font-weight: 700; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.post-tag { font-size: .85rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }
