:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --ink: #16181c;
  --text: #3a3d44;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #d7150e;
  --accent-dark: #b01109;
  --accent-soft: #fdeceb;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { padding: 100px 24px; }

.eyebrow {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(33.5px, 3.2vw, 44px);
  text-align: center;
}
.section-sub {
  color: var(--muted);
  margin-top: 10px;
  margin-bottom: 48px;
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; justify-self: start; grid-column: 1; }
.logo img { height: 55px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  justify-self: center;
}
.header-actions { justify-self: end; display: flex; align-items: center; gap: 14px; grid-column: 3; }
.nav-links a {
  font-size: 18.5px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 18.5px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(215,21,14,0.25);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 18px;
  font-size: 17.5px;
  border-radius: 100px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.tel-number { font-size: 23px; font-weight: 700; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  padding: 150px 24px 0;
  overflow: hidden;
  color: #fff;
  background: #0d0f14;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-scan {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(6,8,14,.5) 0%, rgba(6,8,14,.7) 45%, rgba(6,8,14,.94) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero .eyebrow { color: #ff8b83; }
.hero h1 {
  font-size: clamp(49px, 6vw, 80.5px);
  letter-spacing: -0.02em;
  color: #fff;
}
.hero h1 .highlight { color: var(--accent); }
.hero .lead {
  margin-top: 22px;
  color: rgba(255,255,255,.72);
  font-size: 21.5px;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.hero .btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.badge {
  margin: 34px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
}
.badge-logo { height: 14px; width: auto; }
.badge-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.25);
}

.hero-strip {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.14);
}
.strip-card {
  background: rgba(10,12,17,.55);
  padding: 26px 20px;
  text-align: center;
  font-size: 17.5px;
  color: rgba(255,255,255,.65);
}
.strip-card span {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 6px;
}

/* Services */
.services { background: var(--bg); text-align: center; }
.cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(22,24,28,.08);
  transform: translateY(-3px);
}
.card .icon, .why-card .icon {
  width: 42px;
  height: 42px;
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 { font-size: 23.5px; color: var(--ink); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 18px; }

/* About */
.about { background: var(--bg-alt); color: var(--text); text-align: center; }
.about-inner { max-width: 760px; margin: 0 auto; }
.about .statement {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(21px, 2vw, 24.5px);
  line-height: 1.8;
}

/* Why us */
.whyus { text-align: center; background: var(--bg); }
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.why-card:hover { border-color: var(--accent); box-shadow: 0 12px 28px rgba(22,24,28,.08); transform: translateY(-3px); }
.why-card .icon { margin: 0 auto 16px; }
.why-card h3 { color: var(--ink); margin-bottom: 8px; font-size: 22px; }
.why-card p { color: var(--muted); font-size: 18px; }

/* Cases */
.cases { background: var(--bg); text-align: center; }
.case-cards { grid-template-columns: repeat(5, 1fr); }
.case-cards .card {
  padding: 0 0 22px;
  overflow: hidden;
  text-align: left;
}
.case-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
}
.case-cards .card h3 { margin: 0 18px 6px; font-size: 19px; color: var(--ink); }
.case-cards .card p { margin: 0 18px; color: var(--muted); font-size: 16px; line-height: 1.5; }

.cases-more {
  max-width: 760px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 17.5px;
  text-align: center;
}

.partner-case {
  max-width: 1200px;
  margin: 56px auto 0;
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 44px 36px;
}
.partner-case-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.partner-case-head h3 { font-size: 29px; color: var(--ink); margin-bottom: 10px; }
.partner-case-head p { color: var(--muted); font-size: 18px; }
.partner-cards { grid-template-columns: repeat(5, 1fr); max-width: 1120px; margin: 0 auto; gap: 14px; }
.partner-card {
  padding: 0 0 16px;
  overflow: hidden;
  text-align: left;
  border-color: rgba(215,21,14,.12);
}
.partner-card .case-photo { height: 100px; margin-bottom: 10px; }
.partner-card h4 { margin: 0 14px 4px; font-size: 17.5px; color: var(--ink); }
.partner-card p { margin: 0 14px; color: var(--muted); font-size: 15px; line-height: 1.45; }

.cases-cta { margin-top: 40px; text-align: center; }

/* Contact */
.contact { background: var(--bg-alt); color: var(--text); padding: 80px 24px; text-align: center; }
.contact h2 { color: var(--ink); margin-bottom: 32px; }
.contact-grid {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.contact-info, .contact-map {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  text-align: left;
}
.contact-info .brand { font-weight: 800; font-size: 21px; margin-bottom: 14px; color: var(--ink); }
.contact-info .btn-primary { padding: 10px 22px; font-size: 17.5px; }
.contact-info ul { list-style: none; margin-bottom: 18px; }
.contact-info li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 17.5px;
  color: var(--muted);
}
.contact-info li a:hover { color: var(--accent); }
.contact-info li span {
  color: var(--ink);
  font-weight: 700;
  width: 48px;
  flex-shrink: 0;
}
.contact-map {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--accent-soft);
  overflow: hidden;
  text-align: center;
}
.map-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(215,21,14,.16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 85%);
  mask-image: radial-gradient(ellipse at center, #000 45%, transparent 85%);
}
.map-pin {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(215,21,14,.28);
}
.map-pin svg { width: 26px; height: 26px; }
.map-address {
  position: relative;
  font-size: 17.5px;
  color: var(--accent-dark);
  line-height: 1.6;
}
.map-link { position: relative; margin-top: 4px; background: #fff; }
.map-link:hover { background: #fff; }

/* Footer */
.site-footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  border-top: 1px solid var(--border);
}
.footer-logo { height: 42px; width: auto; margin: 0 auto 14px; }
.footer-brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.footer-copy { color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-strip { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .btn-ghost { display: none; }
  .hero-scan { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
}
