/*
Theme Name: Door Repair
Description: 도어교체 전문업체 랜딩 사이트 테마
Author: Space Repair
Version: 1.0
*/

:root {
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-50: #eff6ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --font-heading: 'Pretendard', -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", Roboto, sans-serif;
  color: var(--gray-700);
  background: #fff;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  max-width: 100%;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
  color: var(--slate-900);
}
.logo:hover { color: var(--blue-600); }

.primary-nav { display: none; align-items: center; gap: 32px; }
.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--blue-600); }

.call-btn {
  background: var(--blue-600);
  color: #fff;
  padding: 8px 24px;
  border-radius: 6px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  white-space: nowrap;
}
.call-btn:hover { background: var(--blue-700); color: #fff; }

.menu-toggle {
  display: inline-flex;
  background: none;
  border: none;
  padding: 8px;
  color: var(--slate-900);
}
.menu-toggle svg { transition: transform .2s; }
.menu-toggle.is-open svg { transform: rotate(180deg); }

.mobile-nav {
  display: none;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 16px 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  display: block;
  width: 100%;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
}

@media (min-width: 768px) {
  .primary-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Hero */
.hero {
  position: relative;
  height: 480px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.8), rgba(30,41,59,.6));
}
.hero-content { position: relative; z-index: 1; text-align: center; color: #fff; padding: 0 24px; }
.hero-content h1 { font-family: var(--font-heading); font-size: 48px; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 16px; }
.hero-content p { font-size: 20px; color: var(--gray-200); font-weight: 300; margin: 0; }

@media (min-width: 768px) {
  .hero { height: 720px; }
}

/* Sections */
section { padding: 80px 24px; }
.section-narrow { max-width: 896px; margin: 0 auto; }
.section-wide { max-width: 1152px; margin: 0 auto; }
.bg-gray { background: var(--gray-50); }
.bg-dark {
  background: linear-gradient(to right, var(--slate-900), var(--slate-800));
}

h1.page-title { font-family: var(--font-heading); font-size: 40px; font-weight: 900; letter-spacing: -0.02em; color: var(--slate-900); margin: 0 0 32px; }
h2.section-title { font-family: var(--font-heading); font-size: 30px; font-weight: 900; letter-spacing: -0.02em; color: var(--slate-900); margin: 0 0 24px; }
h2.section-title.center { text-align: center; margin-bottom: 48px; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.intro-photo {
  background: linear-gradient(135deg, var(--blue-50), var(--gray-50));
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  height: 320px;
  overflow: hidden;
}
.intro-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280; font-size: 18px;
}

.feature-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 80px; }
.feature-card {
  padding: 32px;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  transition: border-color .2s;
}
.feature-card:hover { border-color: #93c5fd; }
.feature-card h3 { font-size: 20px; font-weight: 500; color: var(--slate-900); margin: 0 0 12px; }
.feature-card p { font-size: 14px; margin: 0; }

.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: box-shadow .2s; }
.case-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.case-card .thumb { aspect-ratio: 1/1; background: linear-gradient(135deg, #e5e7eb, #d1d5db); overflow: hidden; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-card .caption { padding: 16px; font-size: 14px; color: var(--gray-600); }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery-grid .thumb { aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: var(--gray-100); }
.gallery-grid .thumb img { width: 100%; height: 100%; object-fit: cover; }

.cta { text-align: center; color: #fff; }
.cta h2 { font-family: var(--font-heading); font-size: 30px; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 16px; }
.cta p { color: var(--gray-200); margin: 0 0 32px; }
.btn-white {
  background: #fff; color: var(--slate-900); padding: 12px 32px; border-radius: 6px; font-weight: 500; border: none; display: inline-block;
}
.btn-white:hover { background: var(--gray-100); }

.region-list { display: grid; grid-template-columns: 1fr; gap: 24px; }
.region-card {
  padding: 24px; border: 1px solid var(--gray-200); border-radius: 8px; text-align: left;
  background: #fff; display: block; transition: all .15s;
}
.region-card:hover { border-color: #93c5fd; background: var(--blue-50); }
.region-card h3 { font-size: 20px; font-weight: 500; color: var(--slate-900); margin: 0; }
.region-card p { color: var(--gray-600); margin: 8px 0 0; }

.check-list { list-style: none; margin: 0 0 24px; padding: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.check-list .mark { color: var(--blue-600); }

.bullet-list { list-style: none; margin: 0 0 24px; padding: 0; }
.bullet-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.bullet-list .dot { color: var(--blue-600); }

.consult-box {
  background: linear-gradient(135deg, var(--blue-50), var(--gray-50));
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 32px;
}
.consult-box h3 { font-size: 20px; font-weight: 500; color: var(--slate-900); margin: 0 0 24px; }
.consult-step { margin-bottom: 24px; }
.consult-step p.label { font-weight: 500; color: var(--gray-600); margin: 0 0 8px; }
.consult-step p.desc { font-size: 14px; margin: 0 0 12px; }
.btn-block {
  width: 100%; padding: 12px; border-radius: 6px; font-weight: 500; border: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-blue { background: var(--blue-600); color: #fff; }
.btn-blue:hover { background: var(--blue-700); }
.btn-dark { background: #1f2937; color: #fff; }
.btn-dark:hover { background: #111827; }

.region-hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 40px;
}
.region-hero .thumb { aspect-ratio: 16/10; overflow: hidden; border-radius: 8px; background: var(--gray-100); }
.region-hero .thumb img { width: 100%; height: 100%; object-fit: cover; }

.region-body { display: grid; grid-template-columns: 1fr; gap: 40px; }
.region-areas {
  background: linear-gradient(135deg, var(--blue-50), var(--gray-50));
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 28px;
}
.region-areas h3 { font-family: var(--font-heading); font-weight: 900; font-size: 18px; color: var(--slate-900); margin: 0 0 12px; }
.region-areas h3:not(:first-child) { margin-top: 20px; }
.region-areas p { font-size: 14px; margin: 0; color: var(--gray-700); }

@media (min-width: 768px) {
  .region-body { grid-template-columns: 3fr 2fr; align-items: start; }
}

.region-cta {
  background: linear-gradient(to right, var(--blue-50), var(--gray-50));
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 32px;
  margin-top: 32px;
}
.region-cta p { color: var(--slate-900); font-weight: 500; margin: 0 0 16px; }

/* Footer */
.site-footer {
  background: var(--slate-900);
  color: var(--gray-200);
  padding: 48px 24px;
  margin-top: 80px;
  border-top: 1px solid #1f2937;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h3 { color: #fff; font-weight: 500; margin: 0 0 16px; font-size: 16px; }
.footer-grid p { font-size: 14px; margin: 0 0 8px; color: var(--gray-200); }
.footer-bottom { border-top: 1px solid #374151; padding-top: 32px; }
.footer-bottom p { color: #9ca3af; font-size: 14px; text-align: center; margin: 0; }

@media (min-width: 768px) {
  .intro-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .region-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 640px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .case-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
