/* CSS Reset & Variable Definitions */
:root {
  --primary-blue: #0f4c81;
  --primary-blue-hover: #0b3962;
  --light-blue-bg: #f4f8fc;
  --accent-yellow: #ffb703;
  --accent-yellow-hover: #e09f00;
  --dark-text: #0f172a;
  --muted-text: #64748b;
  --border-color: #e2e8f0;
  --white: #ffffff;
  --card-shadow: 0 4px 16px rgba(15, 76, 129, 0.06);
  --hover-shadow: 0 8px 24px rgba(15, 76, 129, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Fix horizontal scroll issue */
  scroll-behavior: smooth;
  font-family: var(--font-family);
  color: var(--dark-text);
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all; /* Prevents awkward middle-of-word text breaks in Korean */
  overflow-wrap: break-word;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.blue-text { color: var(--primary-blue); }

/* Header Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand-logo a {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted-text);
}

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

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-text);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--primary-blue);
}

.header-contact {
  text-align: right;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-blue);
  white-space: nowrap;
}

.work-hours {
  font-size: 0.72rem;
  color: var(--muted-text);
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary-blue);
  cursor: pointer;
  padding: 4px;
}

.mobile-nav {
  display: none;
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 12px 20px;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a {
  font-size: 0.98rem;
  font-weight: 600;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav.open {
  display: block;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-lg {
  padding: 14px 24px;
}

.btn-blue {
  background-color: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.2);
}

.btn-blue:hover {
  background-color: var(--primary-blue-hover);
}

.btn-yellow {
  background-color: var(--accent-yellow);
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(255, 183, 3, 0.3);
}

.btn-yellow:hover {
  background-color: var(--accent-yellow-hover);
}

.btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.btn-main {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.btn-sub {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.9;
  white-space: nowrap;
}

.btn-outline-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--primary-blue);
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap; /* Prevents "상담 신 / 청하기" line break */
  flex-shrink: 0;
}

.btn-outline-blue:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 100%);
  padding: 40px 0 50px;
  border-bottom: 1px solid var(--border-color);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(15, 76, 129, 0.08);
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  color: var(--primary-blue);
  background: linear-gradient(120deg, rgba(15,76,129,0.12) 0%, rgba(15,76,129,0.2) 100%);
  padding: 0 6px;
  border-radius: 4px;
}

.hero-desc {
  font-size: 1.08rem;
  color: #334155;
  margin-bottom: 20px;
  line-height: 1.55;
}

.brand-bar {
  background-color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  font-size: 0.88rem;
}

.brand-label {
  font-weight: 700;
  color: var(--primary-blue);
  margin-right: 4px;
}

.brand-list {
  font-weight: 600;
  color: var(--dark-text);
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image-card {
  background: var(--white);
  padding: 8px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(15, 76, 129, 0.08);
  border: 1px solid var(--border-color);
}

.hero-image-card img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.hero-image-caption {
  padding: 10px 8px 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-align: center;
}

/* Differentiator Bar */
.differentiator-bar {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 20px 0;
}

.diff-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.diff-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.diff-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.diff-text h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.diff-text p {
  font-size: 0.82rem;
  opacity: 0.88;
}

/* Common Section Layout */
.section {
  padding: 50px 0;
}

.section-header {
  margin-bottom: 28px;
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted-text);
}

.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Section 1: Symptoms (Compact 3 col PC / 2 col Mobile) */
.symptoms-section {
  background-color: var(--white);
}

.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.symptom-card {
  background-color: var(--light-blue-bg);
  border: 1px solid #e1ebf5;
  border-radius: var(--radius-md);
  padding: 20px 18px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.symptom-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
  border-color: var(--primary-blue);
}

.symptom-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--white);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.08);
  margin-bottom: 12px;
}

.symptom-name {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #0f172a;
  line-height: 1.3;
}

.symptom-desc {
  font-size: 0.85rem;
  color: var(--muted-text);
  line-height: 1.4;
}

.highlight-card {
  background: linear-gradient(135deg, #eef5fc 0%, #e0edfb 100%);
  border: 1.5px solid var(--primary-blue);
}

.notice-box {
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #475569;
}

.notice-box i {
  color: var(--primary-blue);
  margin-right: 4px;
}

/* Section 2: Equipment */
.equipment-section {
  background-color: #f8fafc;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.equipment-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.equipment-img {
  height: 160px;
  overflow: hidden;
}

.equipment-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equipment-info {
  padding: 14px 12px;
}

.equipment-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.equipment-desc {
  font-size: 0.8rem;
  color: var(--muted-text);
  line-height: 1.35;
}

/* Section 3: Cases (Reference Layout: Horizontal Process Flow) */
.cases-section {
  background-color: var(--white);
}

.cases-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--card-shadow);
}

.case-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: nowrap;
}

.case-badge {
  background-color: var(--primary-blue);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap; /* Prevents "CASE / 01" vertical split */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 26px;
}

.case-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

/* Process Flow (4 steps side by side) */
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-img-box {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 6px;
  background-color: #f1f5f9;
}

.step-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.25;
}

.flow-arrow {
  display: none; /* Clean reference look without messy arrows */
}

.case-desc {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.55;
}

.desc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

/* Section 4: Guide Banner */
.guide-section {
  padding: 30px 0;
}

.guide-banner {
  background: linear-gradient(135deg, #0f4c81 0%, #082d4d 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: center;
}

.guide-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}

.yellow-highlight {
  color: var(--accent-yellow);
}

.guide-desc {
  font-size: 0.88rem;
  opacity: 0.92;
  line-height: 1.55;
}

.guide-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-block {
  width: 100%;
}

/* Section 5: Location */
.location-section {
  background-color: #f8fafc;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.location-info-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.store-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-blue-bg);
}

.store-name .sub {
  font-size: 0.8rem;
  color: var(--muted-text);
  font-weight: 600;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.info-list li {
  display: flex;
  gap: 12px;
}

.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--light-blue-bg);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.info-text strong {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-text);
  margin-bottom: 2px;
}

.info-text p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-text);
}

.map-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-naver {
  background-color: #03cf5d;
  color: var(--white);
}

.btn-kakao-map {
  background-color: #fee500;
  color: #191919;
}

.btn-outline {
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--dark-text);
}

.map-card {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  position: relative;
  min-height: 380px;
}

.map-box {
  width: 100%;
  height: 100%;
  position: relative;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: block;
}

.map-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--white);
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}

.store-photo-card {
  grid-column: 1 / 2;
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.store-img-box {
  height: 180px;
  overflow: hidden;
}

.store-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-img-label {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  background-color: var(--light-blue-bg);
}

/* Site Footer */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 32px 0 85px; /* Extra bottom space for mobile sticky bar */
  font-size: 0.82rem;
  border-top: 1px solid #1e293b;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.footer-info p {
  line-height: 1.5;
}

.copyright {
  margin-top: 8px;
  opacity: 0.6;
}

/* Mobile Fixed Sticky Bottom Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--white);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  grid-template-columns: 1fr 1fr;
  height: 60px;
}

.mobile-sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--white);
  height: 100%;
  text-decoration: none;
}

.mobile-call {
  background-color: var(--primary-blue);
}

.mobile-kakao {
  background-color: var(--accent-yellow);
  color: #1e293b;
}

.sticky-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sticky-text .main {
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.sticky-text .sub {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.9;
  white-space: nowrap;
}

.desktop-only { display: block; }

/* Responsive Mobile Adjustments */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
  .map-card {
    grid-column: 1 / 2;
    grid-row: auto;
    min-height: 320px;
  }
  .store-photo-card {
    grid-column: 1 / 2;
  }
  .guide-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-only { display: none; }
  
  .main-nav, .header-contact {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 36px 0;
  }

  .hero-section {
    padding: 24px 0 32px;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  .hero-image-card img {
    height: 220px;
  }

  .diff-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .diff-item {
    gap: 10px;
  }

  .diff-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  /* Compact 2-column Symptoms Grid on Mobile */
  .symptoms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .symptom-card {
    padding: 12px 10px;
    border-radius: var(--radius-sm);
  }

  .symptom-icon-box {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    margin-bottom: 8px;
    border-radius: 8px;
  }

  .symptom-name {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 2px;
  }

  .symptom-desc {
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .equipment-img {
    height: 120px;
  }

  .equipment-info {
    padding: 10px 8px;
  }

  .equipment-title {
    font-size: 0.88rem;
  }

  .equipment-desc {
    font-size: 0.74rem;
  }

  /* Horizontal Scroll / Compact Grid for Process Steps on Mobile */
  .process-flow {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 8px;
  }

  .process-step {
    flex: 0 0 130px;
    scroll-snap-align: start;
  }

  .step-img-box {
    height: 95px;
  }

  .step-label {
    font-size: 0.76rem;
  }

  .case-card {
    padding: 16px 14px;
  }

  .case-title {
    font-size: 0.98rem;
  }

  .guide-banner {
    padding: 20px 16px;
  }

  .guide-title {
    font-size: 1.3rem;
  }

  .guide-desc {
    font-size: 0.82rem;
  }

  .location-info-card {
    padding: 18px 14px;
  }

  .store-name {
    font-size: 1.15rem;
  }

  .mobile-sticky-bar {
    display: grid;
  }
}
