/* ==========================================================================
   대리석계단보수 | 건물집사시설관리 - Design System
   ========================================================================== */

:root {
  --navy-900: #081123;
  --navy-800: #0e2240;
  --navy-700: #163358;
  --navy-600: #1e4270;
  --gold: #c9a15a;
  --gold-light: #e8cf9f;
  --gold-dark: #a9803f;
  --white: #ffffff;
  --gray-50: #f7f6f3;
  --gray-100: #eeece7;
  --gray-200: #e2dfd8;
  --gray-300: #d1cec6;
  --gray-500: #8b8f94;
  --gray-700: #565b62;
  --text: #1c2430;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(10, 20, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 20, 40, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 20, 40, 0.18);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.35;
}
.section-head p {
  margin-top: 16px;
  color: var(--gray-700);
  font-size: 17px;
}
.section-head.light h2 { color: var(--white); }
.section-head.light p { color: var(--gray-200); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 17px 36px; font-size: 18px; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-900); box-shadow: var(--shadow-md); }
.btn-gold:hover { box-shadow: 0 16px 36px rgba(201, 161, 90, 0.4); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); }
.btn-call {
  background: var(--gold);
  color: var(--navy-900);
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 999px;
}
.btn-call:hover { background: var(--gold-light); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 17, 35, 0.92);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.solid { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { font-size: 20px; font-weight: 800; color: var(--white); letter-spacing: -0.01em; }
.main-nav { display: flex; gap: 32px; }
.main-nav a { color: var(--gray-200); font-weight: 600; font-size: 15px; transition: color 0.2s; }
.main-nav a:hover { color: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    gap: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }
  /* height (not max-height) so the open menu always reaches the bottom of the
     viewport and fully occludes the hero content behind it, regardless of
     how many nav links there are. */
  .main-nav.open { height: calc(100vh - var(--header-h, 76px)); overflow-y: auto; }
  .main-nav a { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: flex; }
  .btn-call { padding: 9px 14px; font-size: 13px; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(6,14,30,0.88) 10%, rgba(8,20,42,0.62) 55%, rgba(8,20,42,0.35) 100%), url('/images/web/hero-marble14.jpg') center/cover no-repeat;
  color: var(--white);
}
.hero-inner { max-width: var(--container); margin: 0 auto; padding: 140px 24px 100px; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--gold-light);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.3;
  max-width: 780px;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--gold-light); }
.hero-sub {
  margin-top: 24px;
  font-size: 19px;
  color: var(--gray-200);
  max-width: 640px;
}
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { margin-top: 64px; display: flex; gap: 48px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 32px; color: var(--gold-light); font-weight: 800; }
.hero-stat span { font-size: 14px; color: var(--gray-300); }

/* Regional page hero (smaller) */
.page-hero {
  position: relative;
  padding: 150px 0 80px;
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(6,14,30,0.92), rgba(8,20,42,0.72));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .crumb { color: var(--gold-light); font-weight: 700; font-size: 14px; margin-bottom: 16px; display: block; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; max-width: 760px; }
.page-hero p { margin-top: 18px; color: var(--gray-200); font-size: 17px; max-width: 640px; }

/* Service / content section */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.service-copy h3 { font-size: 22px; font-weight: 800; color: var(--navy-800); margin-bottom: 14px; }
.service-copy p { color: var(--gray-700); font-size: 16px; margin-bottom: 16px; }
.service-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.service-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; gap: 36px; }
}

.feature-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: var(--white); }
.feature-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  margin-bottom: 18px;
}
.feature-card h4 { font-size: 17px; font-weight: 800; color: var(--navy-800); margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--gray-700); }

.bg-alt { background: var(--gray-50); }
.bg-navy { background: var(--navy-900); }

.check-list { margin: 18px 0; }
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 15.5px;
  color: var(--gray-700);
}
.check-list li::before {
  content: "✔";
  position: absolute; left: 0; top: 1px;
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 14px;
}
.check-list li b { color: var(--navy-800); }

/* Regional hub page cards */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .region-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .region-grid { grid-template-columns: 1fr; } }
.region-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.region-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.region-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.region-card .region-body { padding: 22px 20px; }
.region-card h3 { font-size: 18px; font-weight: 800; color: var(--navy-800); margin-bottom: 8px; }
.region-card p { font-size: 14px; color: var(--gray-700); margin-bottom: 12px; }
.region-card .region-link { font-size: 13.5px; font-weight: 700; color: var(--gold-dark); }

/* FAQ blocks on regional SEO pages */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}
.faq-item h4 { font-size: 15.5px; font-weight: 800; color: var(--navy-800); margin-bottom: 8px; }
.faq-item p { font-size: 14.5px; color: var(--gray-700); }

/* Gallery (현장사진) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 14px 12px;
  background: linear-gradient(to top, rgba(6,12,26,0.85), transparent);
  color: var(--white); font-size: 13px; font-weight: 700;
}

/* Testimonials */
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1000px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .review-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.review-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.review-stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; font-size: 15px; }
.review-quote { font-size: 14.5px; color: var(--text); margin-bottom: 18px; }
.review-author { font-size: 13px; font-weight: 700; color: var(--navy-700); }

/* Scroll-reveal is opt-in via the .js class (set by an inline script in <head>),
   so content stays fully visible if JavaScript is disabled or slow to load. */
.js .review-card { opacity: 0; transform: translateY(24px); }
.js .review-card.is-visible { opacity: 1; transform: translateY(0); }
.js .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); padding: 56px 0; }
.cta-band-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.cta-band-text { color: var(--white); font-size: 24px; font-weight: 800; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--navy-900); color: var(--gray-300); padding: 48px 0 28px; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px; }
.footer-logo { font-weight: 800; color: var(--white); font-size: 18px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--gray-300); }
.footer-links a:hover { color: var(--gold-light); }
.footer-info { font-size: 13.5px; line-height: 1.9; }
.footer-copy { font-size: 12.5px; color: var(--gray-500); margin-top: 8px; }

/* Floating call button */
.floating-call {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201,161,90,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(201,161,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,161,90,0); }
}

/* Forms */
.form-wrap { max-width: 680px; margin: 0 auto; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-md); }
@media (max-width: 600px) { .form-wrap { padding: 28px 20px; } }
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-weight: 700; font-size: 14.5px; color: var(--navy-800); margin-bottom: 8px; }
.form-row .req { color: #c0392b; margin-left: 3px; }
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row textarea,
.form-row input[type="file"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--white);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--navy-700); }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-note { text-align: center; font-size: 13.5px; color: var(--gray-500); margin: 18px 0 22px; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 24px; }
.form-alert.success { background: #e9f7ef; color: #1e7e42; border: 1px solid #b7e4c7; }
.form-alert.error { background: #fdecea; color: #b3261e; border: 1px solid #f5c2bd; }

/* Sitemap page */
.sitemap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (max-width: 700px) { .sitemap-grid { grid-template-columns: 1fr; } }
.sitemap-block h3 { font-size: 17px; font-weight: 800; color: var(--navy-800); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.sitemap-block ul li { margin-bottom: 10px; }
.sitemap-block a { font-size: 15px; color: var(--gray-700); }
.sitemap-block a:hover { color: var(--navy-800); text-decoration: underline; }

/* Region info list on SEO pages */
.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 640px) { .info-list { grid-template-columns: 1fr; } }
.info-list li {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--text);
  display: flex; gap: 10px;
}
.info-list li::before { content: "✔"; color: var(--gold-dark); font-weight: 800; }
