/* =====================================================
   올스타동물의료센터 — Main Stylesheet
   ===================================================== */

/* ─── CSS Variables ─── */
:root {
  --primary: #2E7D6F;
  --primary-dark: #1E5249;
  --primary-light: #4AADA0;
  --accent: #F4A261;
  --accent-dark: #E07A3A;
  --dark: #1A2E28;
  --dark-2: #243B35;
  --white: #FFFFFF;
  --off-white: #F7F3EE;
  --bg-light: #F0F6F4;
  --text: #1F2937;
  --text-mid: #4B5563;
  --text-light: #9CA3AF;
  --border: #E5EAE8;

  --font: 'Noto Sans KR', -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-md: 0 8px 40px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.16);

  --transition: 0.3s ease;
  --header-h: 72px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Container ─── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,162,97,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
}

/* ─── Section Heading ─── */
.section-head { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--bg-light);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-label.dark { color: var(--accent); background: rgba(244,162,97,.12); }
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--dark);
}
.section-head.light h2 { color: var(--white); }
.section-head.light .section-label { color: var(--accent); background: rgba(255,255,255,.1); }
.section-desc { margin-top: 16px; color: var(--text-mid); font-size: 16px; }

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(26,46,40,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
#header.scrolled {
  background: rgba(26,46,40,.98);
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 18px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}
.logo-text strong { font-weight: 900; }
.logo-text small { font-size: 9px; letter-spacing: 1px; opacity: .6; }
.gnb { margin-left: auto; }
.gnb ul {
  display: flex;
  gap: 4px;
}
.gnb a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.gnb a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.header-tel {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.header-tel:hover { background: var(--accent-dark); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,20,16,.97) 0%,
    rgba(18,36,28,.92) 45%,
    rgba(26,46,40,.65) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--accent);
}
.hero-title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.7), 0 1px 5px rgba(0,0,0,.9);
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(255,255,255,.9);
  margin-bottom: 40px;
  max-width: 520px;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-sns {
  display: flex;
  gap: 14px;
}
.hero-sns a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 18px;
  transition: var(--transition);
}
.hero-sns a:hover { border-color: var(--white); color: var(--white); }
.hero-scroll {
  position: absolute;
  bottom: 36px; right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.4);
  font-size: 10px;
  letter-spacing: 2px;
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ═══════════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════════ */
.trust-bar {
  background: var(--primary);
  padding: 0;
}
.trust-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
  text-align: center;
}
.trust-item strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.trust-item span {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
}

/* ═══════════════════════════════════════════════
   WHY SECTION
═══════════════════════════════════════════════ */
.why {
  padding: 100px 0;
  background: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.why-card:hover::before { transform: scaleX(1); }
.why-icon {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 24px;
  margin-bottom: 20px;
}
.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}
.why-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════ */
.services {
  padding: 100px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.services-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(100px, 18vw, 240px);
  font-weight: 900;
  color: rgba(255,255,255,.025);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -4px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border-radius: var(--radius);
  overflow: hidden;
}
.service-item {
  background: rgba(255,255,255,.04);
  padding: 36px 28px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.06);
}
.service-item:hover {
  background: rgba(255,255,255,.08);
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 22px;
  margin-bottom: 18px;
}
.service-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.service-item ul li {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex;
  align-items: center;
}
.service-item ul li::before {
  content: '•';
  color: var(--primary-light);
  margin-right: 8px;
  font-size: 16px;
}

/* ═══════════════════════════════════════════════
   SURGERY HIGHLIGHT
═══════════════════════════════════════════════ */
.surgery-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.surgery-left {
  display: grid;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
}
.surgery-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.surgery-left img:hover { transform: scale(1.03); }
.surgery-right {
  background: var(--bg-light);
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.surgery-right h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 40px;
}
.steps { display: flex; flex-direction: column; gap: 28px; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 900;
}
.step strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.step p { font-size: 13px; color: var(--text-mid); line-height: 1.7; }

/* ═══════════════════════════════════════════════
   DOCTORS
═══════════════════════════════════════════════ */
.doctors {
  padding: 100px 0;
  background: var(--white);
}
.doctors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.doctor-card {
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px 1fr;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.doctor-card.sub {
  grid-template-columns: 180px 1fr;
  align-content: start;
}
.doctor-photo { overflow: hidden; }
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition);
}
.doctor-photo img:hover { transform: scale(1.04); }
.doctor-info {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.doctor-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 1px;
}
.doctor-badge.secondary { background: var(--dark-2); }
.doctor-info h3 {
  font-size: 28px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
}
.doctor-info h3 small {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  margin-left: 4px;
}
.doctor-career li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mid);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.doctor-career li i {
  color: var(--primary);
  width: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.doctor-info blockquote {
  margin-top: 4px;
  padding: 16px 20px;
  background: var(--bg-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--text-mid);
  font-style: italic;
  line-height: 1.8;
}
.doctor-note {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   FACILITIES
═══════════════════════════════════════════════ */
.facilities {
  padding: 100px 0;
  background: var(--off-white);
}
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.facility-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.facility-card:hover img { transform: scale(1.08); }
.facility-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(26,46,40,.9), transparent);
  padding: 40px 16px 16px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  translate: 0 0;
  transition: var(--transition);
}
.facility-label i { color: var(--accent); }

/* ── Facility status badge (진료중) ── */
.facility-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a2e28;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.facility-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e84444;
  box-shadow: 0 0 0 0 rgba(232, 68, 68, 0.55);
  animation: facility-status-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}
@keyframes facility-status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 68, 68, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(232, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 68, 68, 0); }
}

/* ═══════════════════════════════════════════════
   CASES
═══════════════════════════════════════════════ */
.cases {
  padding: 100px 0;
  background: var(--dark-2);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.case-card {
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.case-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}
.case-card:hover img { transform: scale(1.04); }
.case-body { padding: 24px; }
.case-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.case-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.4;
}
.case-body p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.7; }
.cases-disclaimer {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
}

/* ═══════════════════════════════════════════════
   REVIEWS
═══════════════════════════════════════════════ */
.reviews {
  padding: 100px 0;
  background: var(--white);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review-stars {
  color: #FBBF24;
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.review-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
  font-style: italic;
}
.reviewer {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
.contact {
  background: var(--bg-light);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.contact-info {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-info h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: var(--dark);
}
.info-block { display: flex; flex-direction: column; gap: 24px; }
.info-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.info-row > i {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  margin-top: 2px;
}
.info-row strong { font-size: 13px; font-weight: 700; color: var(--text-mid); margin-bottom: 4px; display: block; }
.info-row p { font-size: 15px; color: var(--dark); font-weight: 500; }
.info-row p a { color: var(--primary); font-weight: 700; }
.info-row small { font-size: 12px; color: var(--text-light); margin-top: 4px; display: block; }
.hours-table { margin-top: 8px; width: 100%; border-collapse: collapse; }
.hours-table td {
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.hours-table td:first-child { color: var(--text-mid); width: 130px; }
.hours-lunch td { color: var(--text-light) !important; }
.contact-map {
  position: relative;
  overflow: hidden;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  display: block;
}
.map-overlay {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}
.map-overlay i { color: var(--accent); }

/* ═══════════════════════════════════════════════
   NAVER MAP CARD
═══════════════════════════════════════════════ */
.contact-map { position: relative; overflow: hidden; }
.naver-map-card {
  height: 100%;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.nmap-iframe-wrap {
  flex: 1;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}
.nmap-iframe-wrap img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.nmap-iframe-wrap a:hover img {
  transform: scale(1.02);
}
/* 하단 정보 패널 */
.nmap-info {
  background: var(--white);
  padding: 28px 32px;
  border-top: 3px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nmap-addr {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-mid);
}
.nmap-addr i { color: var(--primary); width: 16px; flex-shrink: 0; margin-top: 2px; }
.nmap-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 22px;
  background: #03C75A;
  color: var(--white);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  align-self: flex-start;
}
.nmap-btn img { height: 18px; width: auto; filter: brightness(0) invert(1); }
.nmap-btn:hover { background: #02A94D; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(3,199,90,.3); }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  padding: 64px 0 0;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
  font-size: 20px;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 10px;
}
.footer-logo strong { font-weight: 900; }
.footer-logo i { color: var(--primary-light); }
.footer-slogan {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}
.footer-sns { display: flex; gap: 12px; }
.footer-sns a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 15px;
  transition: var(--transition);
}
.footer-sns a:hover { border-color: var(--primary-light); color: var(--primary-light); }
.footer-info table { width: 100%; border-collapse: collapse; }
.footer-info th, .footer-info td {
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.6);
  text-align: left;
}
.footer-info th { width: 100px; color: rgba(255,255,255,.4); font-weight: 400; }
.footer-info td a { color: var(--primary-light); }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.3); }
.footer-disclaimer { line-height: 1.6; max-width: 800px; }

/* ═══════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  position: relative;
  max-width: 900px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box { transform: scale(1); }
#modal-img { width: 100%; max-height: 80vh; object-fit: contain; }
#modal-caption { padding: 16px 20px; font-size: 13px; color: rgba(255,255,255,.6); }
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  z-index: 1;
}
.modal-close:hover { background: rgba(255,255,255,.2); }

/* ═══════════════════════════════════════════════
   FLOAT CTA
═══════════════════════════════════════════════ */
.float-cta {
  position: fixed;
  bottom: 80px; right: 24px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: var(--transition);
}
.float-btn.phone { background: var(--accent); color: var(--white); }
.float-btn.blog  { background: #03C75A; color: var(--white); }
.float-btn.insta { background: #E1306C; color: var(--white); }
.float-btn:hover { transform: scale(1.12); }

/* ─── Scroll Top ─── */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 800;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--primary); }

/* ─── Animations ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .facilities-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: 1fr; }
  .doctor-card { grid-template-columns: 240px 1fr; }
  .surgery-right { padding: 48px 40px; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .gnb, .header-tel { display: none; }
  .hamburger { display: flex; }

  .gnb.open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--dark);
    padding: 20px 0 32px;
    flex-direction: column;
  }
  .gnb.open ul { flex-direction: column; padding: 0 16px; gap: 0; }
  .gnb.open a { padding: 14px 16px; font-size: 16px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); }

  .trust-inner { gap: 16px; padding: 20px; }
  .trust-item { padding: 0 16px; }
  .trust-item strong { font-size: 18px; }
  .trust-divider { display: none; }

  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }

  .surgery-highlight { grid-template-columns: 1fr; }
  .surgery-left { grid-template-rows: 240px; grid-template-columns: 1fr 1fr; }
  .surgery-right { padding: 40px 24px; }

  .doctors-grid { grid-template-columns: 1fr; }
  .doctor-card { grid-template-columns: 1fr; }
  .doctor-photo { height: 280px; }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-info { padding: 48px 24px; }
  .contact-map { min-height: 300px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .hero-content { padding: 100px 24px 60px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
  .hero-scroll { display: none; }
}

@media (max-width: 480px) {
  .facilities-grid { grid-template-columns: 1fr 1fr; }
  .trust-inner { flex-wrap: wrap; gap: 12px; }
  .trust-item { padding: 8px 16px; flex-direction: row; gap: 8px; }
  .trust-item strong, .trust-item span { display: inline; }
}

/* ═══════════════════════════════════════════════
   NOTICE POPUP (Carousel)
═══════════════════════════════════════════════ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.notice-popup {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.notice-popup[hidden] { display: none; }
.notice-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.notice-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.notice-popup__card {
  position: relative;
  width: min(92vw, 380px);
  max-height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.32, 1);
}
.notice-popup.is-open .notice-popup__card {
  transform: translateY(0) scale(1);
}

.notice-popup__test-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: #fde68a;
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(146, 64, 14, 0.18);
}

.notice-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a2e28;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.18s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.notice-popup__close:hover {
  background: #ffffff;
  transform: scale(1.06);
}

.notice-popup__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f4f1ec;
}
.notice-popup__track {
  display: flex;
  width: 100%;
  transition: transform 0.42s cubic-bezier(0.22, 0.9, 0.32, 1);
  will-change: transform;
}
.notice-popup__slide {
  margin: 0;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f1ec;
}
.notice-popup__slide img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.notice-popup__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1a2e28;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, opacity 0.2s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  opacity: 0.85;
}
.notice-popup__arrow:hover { background: #ffffff; opacity: 1; }
.notice-popup__arrow--prev { left: 10px; }
.notice-popup__arrow--next { right: 10px; }
.notice-popup__arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}

.notice-popup__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 14px 0 6px;
  background: #ffffff;
}
.notice-popup__dot {
  width: 7px;
  height: 7px;
  border: none;
  border-radius: 50%;
  background: #d4dbd7;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.25s;
}
.notice-popup__dot.is-active {
  background: var(--accent, #4a7d6c);
  width: 22px;
  border-radius: 4px;
}

.notice-popup__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 18px;
  background: #ffffff;
  border-top: 1px solid #f0eee8;
  gap: 12px;
}
.notice-popup__hide-today {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #5a6862;
  cursor: pointer;
  user-select: none;
}
.notice-popup__hide-today input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent, #4a7d6c);
  cursor: pointer;
}
.notice-popup__close-btn {
  background: var(--accent, #4a7d6c);
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.15s;
}
.notice-popup__close-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .notice-popup__card { width: 100%; border-radius: 16px; }
  .notice-popup__slide img { max-height: 60vh; }
  .notice-popup__arrow { width: 32px; height: 32px; }
  .notice-popup__hide-today { font-size: 12px; }
  .notice-popup__close-btn { font-size: 12px; padding: 8px 14px; }
}

/* ─── Service Area Section ─── */
.service-area {
  background: #f8f9fa;
  padding: 80px 0;
}
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0 32px;
}
.area-group {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.area-group h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary, #2a7a4f);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.area-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.area-group li {
  font-size: 13px;
  color: #555;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.6;
}
.area-group li:last-child { border-bottom: none; }
.area-note {
  text-align: center;
  font-size: 14px;
  color: #666;
  background: #fff;
  border-radius: 10px;
  padding: 16px 24px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.area-note a { color: var(--primary, #2a7a4f); font-weight: 700; }
@media (max-width: 900px) {
  .area-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .area-grid { grid-template-columns: 1fr; }
}
