/* DS건설기계 홈페이지 리뉴얼 - 스타일시트 */

/* ===== Fonts ===== */
@font-face {
  font-family: 'Paperlogy';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #003247;
  --primary-dark: #001f2e;
  --primary-light: #004d6b;
  --accent: #F5A623;
  --accent-hover: #e09510;
  --bg-white: #FFFFFF;
  --bg-light: #F5F7FA;
  --bg-dark: #0a0a0a;
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-light: #999999;
  --text-white: #FFFFFF;
  --border: #E0E0E0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --header-height: 80px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

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

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: 'Paperlogy', sans-serif;
  font-weight: 800;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 900;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  position: relative;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-item:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.nav-item.active {
  color: var(--primary);
  font-weight: 600;
}

/* 드롭다운 */
.nav-item .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  padding: 8px 0;
  z-index: 100;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.dropdown a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.header-phone:hover {
  background: var(--primary-dark);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  margin-top: var(--header-height);
  position: relative;
  height: 85vh;
  min-height: 650px;
  max-height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero > .container {
  width: 100%;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg img,
.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-bg-img.active {
  opacity: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0,20,35,0.82) 0%, rgba(0,20,35,0.5) 50%, rgba(0,20,35,0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: left;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 20px;
}

.hero h1 .typewriter-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--accent);
  width: 0;
  animation: none;
}

.hero h1 .typewriter-line.typing {
  animation: typewrite 1.2s steps(20, end) forwards;
}

.hero h1 .typewriter-line.done {
  width: 100%;
  border-right: none;
}

.hero h1 .typewriter-line:last-child.typing {
  animation: typewrite 1s steps(15, end) forwards, blink-caret 0.6s step-end infinite;
}

.hero h1 .typewriter-line:last-child.done {
  border-right: none;
}

.hero h1 .accent {
  color: var(--accent);
}

@keyframes typewrite {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent); }
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-sub.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-btns {
  display: flex;
  gap: 16px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero-btns.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245,166,35,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--text-white);
  background: rgba(255,255,255,0.1);
}

.hero-bottom-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: var(--primary-dark);
  border-top: 3px solid var(--accent);
}

.hero-stats {
  display: flex;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-stat {
  flex: 1;
  padding: 24px 32px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ===== Section Common ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0,50,71,0.06);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Services Section ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

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

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.4;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Cases Section ===== */
.section.cases {
  background: var(--bg-light);
}

.cases-slider {
  position: relative;
  overflow: hidden;
}

.cases-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.case-card {
  min-width: calc(33.333% - 16px);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-image {
  height: 220px;
  background: var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.case-image .placeholder {
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
}

.case-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.case-info {
  padding: 24px;
}

.case-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.case-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-light);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.slider-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

/* ===== YouTube Showcase ===== */
.youtube-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.yt-showcase-card {
  text-decoration: none;
  color: inherit;
}

.yt-showcase-thumb {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-light);
}

.yt-showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.yt-showcase-card:hover .yt-showcase-thumb img {
  transform: scale(1.05);
}

.yt-showcase-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  color: #ff0000;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transition: transform 0.3s ease;
}

.yt-showcase-card:hover .yt-showcase-play {
  transform: translate(-50%, -50%) scale(1.15);
}

.yt-showcase-title {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Contact Section ===== */
.contact-section {
  background: var(--bg-light);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.contact-info > p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-detail:last-child {
  border-bottom: none;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0,50,71,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-detail-text span {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.contact-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  transition: var(--transition);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,50,71,0.1);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== Privacy Consent ===== */
.privacy-consent {
  margin-bottom: 20px;
}

.privacy-consent .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  position: relative;
  padding-left: 0;
}

.privacy-consent .checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: var(--primary);
  cursor: pointer;
  margin: 0;
}

.privacy-consent .checkbox-label .checkmark {
  display: none;
}

.privacy-summary {
  margin-top: 8px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.03);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.privacy-summary p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,50,71,0.3);
}

/* ===== Map Section ===== */
.map-section {
  padding: 100px 0 0;
}

.map-nav-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 24px;
}

.map-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

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

.map-nav-btn.tmap {
  background: #6C5CE7;
  color: #fff;
}

.map-nav-btn.naver {
  background: #03C75A;
  color: #fff;
}

.map-nav-btn:hover {
  opacity: 0.85;
}

.map-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}

.map-tab {
  padding: 10px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-white);
  color: var(--text-secondary);
}

.map-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--text-white);
}

.map-container {
  width: 100%;
  height: 400px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1rem;
  border: 1px solid var(--border);
}

.map-info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding-bottom: 80px;
}

.map-info-card {
  padding: 28px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
}

.map-info-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.map-info-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
  background: #000;
  border-top: 1px solid #1a1a1a;
  padding: 64px 0 32px;
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  text-align: left;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 88px;
  width: auto;
  object-fit: contain;
}

.footer-company-meta {
  margin-bottom: 16px;
}

.footer-company-meta p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0;
}

.footer-utility-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-utility-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  text-decoration: underline;
}

.footer-utility-links a:hover {
  color: rgba(255,255,255,0.9);
}

.footer-divider {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

.footer-social-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-social-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  opacity: 0.7;
}

.footer-social a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}

.footer-col a:hover {
  color: rgba(255,255,255,0.9);
}

.footer-contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0 0 12px;
}

.footer-contact-info p i {
  flex-shrink: 0;
  width: 14px;
  margin-top: 4px;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-align: center;
}

.footer-contact-info a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: inline;
  padding: 0;
}

.footer-contact-info a:hover {
  color: rgba(255,255,255,0.9);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.7);
}

/* ===== Floating Buttons ===== */
.floating-btns {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn.phone {
  background: var(--primary);
  color: var(--text-white);
}

.float-btn.kakao {
  background: #FEE500;
  color: #3C1E1E;
}

.float-btn.top {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
}

.float-btn.top.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== Equipment Section (Bento Grid) ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px 220px;
  gap: 16px;
}

.bento-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-item:hover img {
  transform: scale(1.06);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}

.bento-overlay h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.bento-overlay p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-large .bento-overlay h4 {
  font-size: 1.5rem;
}

.bento-large .bento-overlay p {
  font-size: 0.95rem;
}

.bento-wide {
  grid-column: span 2;
}

/* ===== Diagnostic Brands (Logo Cloud) ===== */
.brands-section {
  background: var(--bg-white);
  padding: 80px 0;
}

.brands-section .section-header h2 {
  color: var(--text-primary);
}

.brands-section .section-header p {
  color: var(--text-secondary);
}

.brands-section .section-header {
  margin-bottom: 48px;
}

.logo-cloud {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.logo-cloud-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
}

.logo-cloud-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  padding: 12px 16px;
}

.logo-cloud-item img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.75;
}

/* ===== Subpage: About ===== */
.page-hero {
  margin-top: var(--header-height);
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  text-align: center;
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ===== Mobile Nav ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
}

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

.mobile-nav-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-item a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.mobile-nav-sub {
  padding-left: 16px;
  margin-top: 8px;
}

.mobile-nav-sub a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 8px 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .bento-item {
    min-height: 200px;
  }

  .bento-large {
    grid-column: span 2;
    min-height: 280px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.4rem;
    min-height: 3.5em;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .hero-stat {
    padding: 18px 20px;
  }

  .hero-stat .number {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .logo-cloud-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .logo-cloud-item {
    height: 56px;
  }

  .nav {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    height: auto;
    min-height: 500px;
    padding: 60px 0 0;
  }

  .hero h1 {
    font-size: 1.8rem;
    min-height: 3em;
  }

  .hero h1 .typewriter-line {
    white-space: normal;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    text-align: center;
    justify-content: center;
  }

  .hero-bottom-bar {
    position: relative;
  }

  .hero-stat {
    padding: 14px 16px;
  }

  .hero-stat .number {
    font-size: 1.3rem;
  }

  .hero-stat .label {
    font-size: 0.75rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-width: calc(100% - 16px);
  }

  .youtube-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .map-info-cards {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .bento-item {
    min-height: 200px;
  }

  .bento-large {
    grid-column: span 2;
    min-height: 280px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .bento-grid {
    gap: 12px;
  }
}

/* ===== Enhanced Form Styles ===== */
.required { color: #e53e3e; }

.email-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.email-row .email-id { flex: 1; }
.email-row .email-at { color: var(--text-secondary); font-weight: 600; padding: 0 2px; }
.email-row .email-domain { flex: 1; }
.email-row .email-domain-custom { flex: 1; }

.phone-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.phone-row .phone-prefix { width: 80px; flex-shrink: 0; }
.phone-row .phone-dash { color: var(--text-light); padding: 0 2px; }
.phone-row .phone-mid,
.phone-row .phone-last { flex: 1; }
.phone-row input[type="tel"] { text-align: center; }

/* Service card as link */
a.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.service-card-link:hover .service-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
a.service-card-link .service-card {
  transition: var(--transition);
}

/* ── Legal Modal ─────────────────────────────────────────── */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.legal-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.legal-modal {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 680px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transform: translateY(20px);
  transition: transform .25s;
}
.legal-modal-overlay.active .legal-modal {
  transform: translateY(0);
}
.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
}
.legal-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.legal-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: var(--transition);
}
.legal-modal-close:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}
.legal-modal-body {
  padding: 24px 28px 32px;
  overflow-y: auto;
  font-size: .935rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.legal-modal-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 8px;
}
.legal-modal-body h3:first-child {
  margin-top: 0;
}
.legal-modal-body ul {
  padding-left: 20px;
  margin: 8px 0;
}
.legal-modal-body li {
  margin-bottom: 4px;
}
.legal-modal-body p {
  margin: 8px 0;
}

@media (max-width: 768px) {
  .legal-modal {
    width: 95%;
    max-height: 85vh;
    border-radius: 12px;
  }
  .legal-modal-header { padding: 20px 20px 14px; }
  .legal-modal-body { padding: 20px 20px 28px; }
}

/* ===== Popup Panels (배너 + 캘린더) ===== */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  backdrop-filter: blur(3px);
}
.popup-overlay.active { display: block; }

.popup-panel {
  display: none;
  position: fixed;
  top: 50%;
  z-index: 9999;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  max-height: 85vh;
  width: 380px;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.popup-panel.active { display: flex; opacity: 1; }

/* 왼쪽: 제품 배너 */
.popup-banner {
  left: calc(50% - 400px);
  transform: translateY(-50%) translateX(-10px);
  background: #fff;
}
.popup-banner.active { transform: translateY(-50%) translateX(0); }

.popup-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.popup-banner .popup-subtitle {
  color: var(--text-light);
  font-size: 0.8rem;
}
.popup-banner h2 {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.35;
}
.popup-banner .popup-img {
  width: 100%;
  max-width: 200px;
  margin: 4px auto;
  border-radius: 12px;
}
.popup-banner .popup-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre-line;
}
.popup-banner .popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.popup-banner .popup-cta:hover { background: var(--accent-hover); }
.popup-banner .popup-contact {
  color: var(--text-light);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 오른쪽: 캘린더 */
.popup-calendar-panel {
  left: calc(50% + 20px);
  transform: translateY(-50%) translateX(10px);
  background: #fff;
}
.popup-calendar-panel.active { transform: translateY(-50%) translateX(0); }
.popup-calendar-panel.centered {
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
}
.popup-calendar-panel.centered.active { transform: translateY(-50%) translateX(-50%); }

.popup-calendar-panel h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.popup-calendar-panel h3 i { color: var(--accent); }

.popup-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.popup-cal-nav button {
  background: var(--bg-light);
  border: 1px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.popup-cal-nav button:hover { background: var(--border); }
#cal-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }

.popup-calendar { flex: 1; }
.cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.cal-header .cal-sun { color: #e53e3e; }
.cal-header .cal-sat { color: #3182ce; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  color: var(--text-primary);
}
.cal-cell.empty { background: transparent; }
.cal-cell.today { outline: 2px solid var(--accent); outline-offset: -2px; font-weight: 700; }
.cal-cell.available { background: #FFF3CD; color: #8B6914; font-weight: 700; }
.cal-cell.booked { background: #FED7D7; color: #9B2C2C; font-weight: 600; }
.cal-cell.closed { background: var(--bg-light); color: var(--text-light); }
.cal-cell.past { color: var(--text-light); opacity: 0.5; }
.cal-cell.sun { color: #e53e3e; }
.cal-cell.sat { color: #3182ce; }
.cal-cell.available.sun { color: #9B2C2C; }
.cal-cell.available.sat { color: #2B6CB0; }

.popup-legend { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--border); }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-secondary); }
.legend-dot { width: 12px; height: 12px; border-radius: 4px; }
.legend-dot.available { background: #FFF3CD; border: 1px solid #E6D590; }
.legend-dot.booked { background: #FED7D7; border: 1px solid #F5B7B7; }
.legend-dot.closed { background: var(--bg-light); border: 1px solid var(--border); }

.popup-cal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.popup-cal-cta:hover { background: var(--primary-light); }

/* 패널 하단 바 */
.popup-panel-bottom { display: flex; border-top: 1px solid rgba(128,128,128,0.15); }
.popup-panel-bottom button {
  flex: 1;
  background: none;
  border: none;
  font-size: 0.8rem;
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s;
}
.popup-panel-bottom button:first-child { border-right: 1px solid rgba(128,128,128,0.15); }
.popup-panel-bottom button { color: var(--text-light); }
.popup-panel-bottom button:hover { background: var(--bg-light); color: var(--text-secondary); }

/* Floating button */
.float-btn.reservation {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}
.float-btn.reservation:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* Mobile */
@media (max-width: 840px) {
  .popup-panel {
    width: 92%;
    max-width: 400px;
    left: 50% !important;
    max-height: 65vh;
  }
  .popup-banner { top: 8%; transform: translateX(-50%); }
  .popup-banner.active { transform: translateX(-50%); }
  .popup-calendar-panel { top: auto; bottom: 2%; transform: translateX(-50%); }
  .popup-calendar-panel.active { transform: translateX(-50%); }
  .popup-panel-body { padding: 24px 20px; }
  .popup-banner h2 { font-size: 1.2rem; }
  .popup-banner .popup-img { max-width: 140px; }
}
