/* ============================================================
   ACRO MEDICAL — LAYOUT
   Navigation, section headers, page headers, sidebar, footer
   ============================================================ */

/* ===== NAVIGATION ===== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(213, 216, 224, 0.5);
}
nav {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Source Serif 4', 'Noto Serif KR', serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: 'Source Serif 4', 'Noto Serif KR', serif;
  font-weight: 500;
  font-style: italic;
  font-size: 18px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.contact-btn {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  border: 1px solid var(--ink);
  white-space: nowrap;
}
.contact-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.contact-btn .arr { transition: transform 0.3s; }
.contact-btn:hover .arr { transform: translateX(3px); }

/* ===== SECTION HEADERS ===== */
.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: 'Source Serif 4', 'Noto Serif KR', serif;
  font-weight: 380;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--accent); }

/* ===== PAGE HEADER (sub-page hero strip) ===== */
.page-header {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(45, 79, 174, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(163, 86, 57, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.page-header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
}
.page-header .breadcrumb { color: rgba(246, 247, 250, 0.6); }
.page-header .breadcrumb a { color: rgba(246, 247, 250, 0.7); }
.page-header .breadcrumb a:hover { color: var(--accent-soft); }
.page-header .breadcrumb .sep { color: rgba(246, 247, 250, 0.3); }
.page-header .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  font-weight: 600;
  margin-bottom: 18px;
}
.page-header h1 {
  font-family: 'Source Serif 4', 'Noto Serif KR', serif;
  font-weight: 360;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  max-width: 900px;
}
.page-header h1 em { font-style: italic; color: var(--accent-soft); }
.page-header .lead {
  font-size: 17px;
  max-width: 640px;
  color: rgba(246, 247, 250, 0.78);
  line-height: 1.6;
}

/* ===== SIDEBAR LAYOUT (sub-pages) ===== */
.with-sidebar {
  max-width: 1360px;
  margin: 0 auto;
  padding: 80px 48px 100px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 100px;
}
.sidebar h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 600;
}
.sidebar ul { list-style: none; }
.sidebar li { border-top: 1px solid var(--line); }
.sidebar li:last-child { border-bottom: 1px solid var(--line); }
.sidebar a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s, padding 0.3s;
}
.sidebar a:hover { color: var(--accent); padding-left: 6px; }
.sidebar a.active {
  color: var(--accent);
  font-weight: 600;
}
.sidebar a .chev {
  opacity: 0;
  transition: opacity 0.2s, transform 0.3s;
}
.sidebar a:hover .chev, .sidebar a.active .chev {
  opacity: 1;
  transform: translateX(2px);
}

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 36px;
}
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(246, 247, 250, 0.15);
}
.footer-brand .logo { color: var(--paper); margin-bottom: 20px; }
.footer-brand .logo-mark { background: var(--paper); color: var(--ink); }
.footer-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p {
  font-size: 14px;
  color: rgba(246, 247, 250, 0.65);
  max-width: 320px;
  line-height: 1.65;
}
.footer-col h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  margin-bottom: 22px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: rgba(246, 247, 250, 0.75);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-soft); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: rgba(246, 247, 250, 0.5);
}
.footer-bottom .socials { display: flex; gap: 16px; }
.footer-bottom .socials a { color: rgba(246, 247, 250, 0.7); transition: color 0.2s; }
.footer-bottom .socials a:hover { color: var(--accent-soft); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  nav { padding: 18px 32px; gap: 20px; }
  .nav-links { display: none; }
  .with-sidebar {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 50px 32px 70px;
  }
  .sidebar { position: static; }
  .sidebar ul {
    display: flex;
    overflow-x: auto;
    gap: 2px;
    padding-bottom: 8px;
  }
  .sidebar li {
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
  }
  .sidebar a { padding: 8px 16px; font-size: 13px; }
  .sidebar a:hover { padding-left: 16px; }
  .page-header { padding: 60px 0 50px; }
  .page-header-inner { padding: 0 32px; }
  .block-link, .block-download { grid-template-columns: 1fr; padding: 32px; }
  .block-link .visual, .block-download .doc-icon { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-inner { padding: 0 32px; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
}
