/* ===== 하나히어링 용인수지센터 - 기본 스타일 ===== */

:root {
  --color-navy: #0f3c4c;
  --color-navy-dark: #0a2a36;
  --color-teal: #1a7a8a;
  --color-teal-light: #e6f2f3;
  --color-gold: #c9954a;
  --color-gold-dark: #a97a35;
  --color-ink: #23303a;
  --color-sub: #5a6b74;
  --color-bg: #ffffff;
  --color-bg-soft: #f7fafa;
  --color-border: #e2e8ea;
  --radius: 14px;
  --max-width: 1080px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic",
    "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
  word-break: keep-all;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  line-height: 1.4;
  color: var(--color-navy-dark);
  margin: 0 0 16px;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 48px; }
h3 { font-size: 1.2rem; margin-top: 32px; }

p { margin: 0 0 16px; color: var(--color-ink); }

ul, ol { padding-left: 1.3em; margin: 0 0 16px; }
li { margin-bottom: 6px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}
caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-navy-dark);
}
th, td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--color-teal-light);
  color: var(--color-navy-dark);
  font-weight: 700;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 32px 0;
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-navy-dark);
  white-space: nowrap;
}
.brand span {
  color: var(--color-teal);
}
.main-nav {
  display: none;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-sub);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-navy-dark);
  border-bottom-color: var(--color-gold);
}
.header-cta {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
}

.nav-toggle {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 12px 0 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav a {
  display: block;
  padding: 10px 4px;
  font-weight: 600;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 900px) {
  .mobile-nav-wrap { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-navy);
  color: #fff;
}
.btn-primary:hover { background: var(--color-navy-dark); }
.btn-outline {
  background: #fff;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover { background: var(--color-teal-light); }
.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}
.btn-gold {
  background: var(--color-gold);
  color: #fff;
}
.btn-gold:hover { background: var(--color-gold-dark); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--color-navy-dark), var(--color-navy) 60%, var(--color-teal));
  color: #fff;
  padding: 64px 0 56px;
}
.hero h1 {
  color: #fff;
  max-width: 780px;
}
.hero p.lead {
  color: #dfeef0;
  font-size: 1.1rem;
  max-width: 620px;
}
.hero .cta-row .btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.hero .cta-row .btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

.page-hero {
  background: var(--color-teal-light);
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 8px;
}
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: var(--color-sub); margin-bottom: 0; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-sub);
  margin-bottom: 10px;
}
.breadcrumb a { color: var(--color-teal); font-weight: 600; }

/* ===== Sections & cards ===== */
main {
  display: block;
}
section {
  padding: 48px 0;
}
section.tight { padding: 24px 0; }
.section-soft {
  background: var(--color-bg-soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--color-navy-dark);
}
.card p { color: var(--color-sub); margin-bottom: 0; font-size: 0.95rem; }
.card a.card-link {
  display: block;
}
.card a.card-link:hover {
  box-shadow: 0 6px 18px rgba(15, 60, 76, 0.08);
}

.badge {
  display: inline-block;
  background: var(--color-teal-light);
  color: var(--color-teal);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ===== Steps (여정형) ===== */
.step-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 0 0 36px 56px;
  border-left: 2px solid var(--color-border);
  margin-left: 20px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -21px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.step h3 { margin-top: 0; }
.step .time {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-gold-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

/* ===== FAQ ===== */
.faq-category {
  margin-top: 40px;
}
details.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 4px 18px;
  margin-bottom: 12px;
  background: #fff;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  color: var(--color-navy-dark);
  list-style: none;
  display: flex;
  gap: 10px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::before {
  content: "Q";
  flex-shrink: 0;
  background: var(--color-navy);
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
details.faq-item .faq-answer {
  padding: 0 0 16px 36px;
  color: var(--color-sub);
}
details.faq-item .faq-answer strong { color: var(--color-ink); }

/* ===== Brand cards ===== */
.brand-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  background: #fff;
}
.brand-card h3 {
  margin-top: 0;
  margin-bottom: 4px;
}
.brand-card .origin {
  color: var(--color-sub);
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: block;
}
.brand-card .trial-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-teal);
}

/* ===== Reviews ===== */
.review-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  margin-bottom: 16px;
}
.review-card .review-date {
  font-size: 0.85rem;
  color: var(--color-sub);
  font-weight: 700;
}
.review-featured {
  border: 2px solid var(--color-gold);
  background: #fffaf2;
}

/* ===== Blog ===== */
.post-list {
  list-style: none;
  padding: 0;
}
.post-list li {
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}
.post-list time {
  display: block;
  font-size: 0.85rem;
  color: var(--color-sub);
  margin-bottom: 4px;
}
.post-list h3 { margin: 0 0 6px; font-size: 1.1rem; }
.post-body img { border-radius: 10px; margin: 20px 0; }
.post-body h2 { border-top: 1px solid var(--color-border); padding-top: 24px; }

/* ===== Callout ===== */
.callout {
  background: var(--color-teal-light);
  border-left: 4px solid var(--color-teal);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout.gold {
  background: #fdf6ea;
  border-left-color: var(--color-gold);
}
.callout.note {
  background: var(--color-bg-soft);
  border-left-color: var(--color-sub);
  font-size: 0.9rem;
  color: var(--color-sub);
}

/* ===== Map / Location ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 24px 0;
}
@media (min-width: 760px) {
  .location-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.info-list .label {
  flex-shrink: 0;
  width: 84px;
  font-weight: 700;
  color: var(--color-navy-dark);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.9rem;
}
.pagination a:hover { background: var(--color-teal-light); }
.pagination .current { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-navy-dark);
  color: #cfe0e4;
  padding: 48px 0 28px;
  margin-top: 64px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.site-footer p { color: #b7ccd1; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfe0e4; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #8fa6ac;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; color: var(--color-sub); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
