:root {
  --forest: #0f3327;
  --green: #1f7a43;
  --leaf: #75b843;
  --teal: #168fa3;
  --navy: #17376d;
  --ink: #17221d;
  --muted: #5e6963;
  --line: #dce4dd;
  --surface: #f7f9f6;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(15, 51, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--forest);
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 228, 221, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
}

.brand strong {
  font-size: 1.18rem;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  justify-content: flex-end;
  margin-left: auto;
  width: auto;
  color: #2d3d35;
  font-weight: 700;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--green);
  border-bottom-color: var(--leaf);
}

.main-nav .blog-link {
  margin-left: auto;
  color: var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 104px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--forest);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(9, 32, 25, 0.28);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4.4vw, 3.65rem);
  line-height: 1.14;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(9, 32, 25, 0.42);
  word-break: keep-all;
}

.hero .eyebrow {
  text-shadow: 0 2px 6px rgba(9, 32, 25, 0.38);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
  text-shadow: 0 2px 7px rgba(9, 32, 25, 0.4);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.primary:hover,
.button.primary:focus {
  background: #176638;
}

.hero-actions .button.primary {
  color: var(--forest);
  background: var(--white);
  border-color: var(--white);
}

.hero-actions .button.primary:hover,
.hero-actions .button.primary:focus {
  color: var(--white);
  background: var(--forest);
  border-color: rgba(255, 255, 255, 0.72);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.button.secondary:hover,
.button.secondary:focus {
  background: rgba(255, 255, 255, 0.16);
}

.mobile-phone-link {
  display: none;
}

@media (max-width: 820px) {
  .desktop-contact-link {
    display: none;
  }

  .mobile-phone-link {
    display: inline-flex;
  }
}

.hero-contact {
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-contact span {
  display: block;
  color: var(--green);
  font-weight: 800;
}

.hero-contact a {
  display: block;
  margin-top: 6px;
  color: var(--forest);
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  font-weight: 900;
  line-height: 1.1;
}

.hero-contact p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.client-strip {
  position: relative;
  max-width: 1180px;
  margin: clamp(30px, 5vw, 46px) auto 0;
  padding: clamp(14px, 2.4vw, 22px) 0;
  color: var(--ink);
  overflow-x: auto;
  overflow-y: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.client-logos {
  display: grid;
  grid-auto-columns: minmax(118px, 150px);
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 46px);
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: clamp(14px, 2.4vw, 24px) clamp(24px, 4vw, 56px);
  min-width: max-content;
}

.logo-slot {
  display: inline-grid;
  width: 100%;
  height: 46px;
  place-items: center;
}

.logo-slot img {
  width: 100%;
  max-width: 150px;
  max-height: 46px;
  object-fit: contain;
  opacity: 0.76;
}

.section {
  padding: clamp(68px, 9vw, 104px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact-copy > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.certifications-section {
  display: none;
  background: var(--white);
}

.cert-panel,
.service-card,
.contact-layout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 36px rgba(23, 34, 29, 0.06);
}

.cert-panel {
  padding: clamp(24px, 3.8vw, 38px);
}

.contact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--green);
  font-weight: 900;
}

dd {
  margin: 0;
  color: #26332d;
}

.cert-panel {
  display: grid;
  gap: 24px;
  background: linear-gradient(180deg, #ffffff, #f7faf7);
}

.cert-panel-wide {
  max-width: 1180px;
  margin: 0 auto;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cert-item {
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cert-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.cert-item h4 {
  margin: 12px 0 4px;
  color: var(--forest);
  font-size: 1rem;
}

.cert-item p {
  margin: 0;
  font-size: 0.9rem;
}

.services-section {
  padding-bottom: clamp(32px, 5vw, 52px);
  background: var(--surface);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  overflow: hidden;
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.service-card div {
  padding: 18px;
}

.service-card h3 {
  margin: 0;
  color: var(--forest);
  font-size: 1.2rem;
}

.service-card p {
  min-height: 72px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.96rem;
}

.service-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 16px;
  color: #28372f;
  font-size: 0.94rem;
}

.service-card li::before {
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--leaf);
  border-radius: 50%;
}

.contact-section {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(22, 143, 163, 0.88), rgba(58, 157, 135, 0.86) 48%, rgba(31, 122, 67, 0.78)),
    var(--teal);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 36px);
  background: var(--white);
}

.contact-copy h2 {
  text-align: left;
}

.contact-copy .button.secondary {
  color: var(--forest);
  border-color: var(--line);
  background: var(--white);
}

.contact-list {
  margin-top: 28px;
}

.map-panel {
  display: block;
  position: relative;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.naver-map {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 72px 24px 24px;
  color: #5d6b64;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  background: var(--surface);
}

.map-fallback[hidden] {
  display: none;
}

.map-open-link {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(17, 54, 41, 0.16);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: clamp(24px, 5vw, 64px);
  padding: 34px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.86);
  background: #0c2119;
}

.site-footer strong {
  color: var(--white);
  font-weight: 900;
}

.site-footer p {
  margin: 4px 0 0;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 0;
}

.footer-info div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}

.footer-info dt {
  color: rgba(255, 255, 255, 0.64);
  font-weight: 800;
}

.footer-info dd {
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card p {
    min-height: auto;
  }

  .client-logos {
    justify-content: start;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    gap: 18px;
    padding-inline: clamp(16px, 4vw, 32px);
  }

  .main-nav {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
    width: auto;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-inner,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-contact {
    max-width: 420px;
  }

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

  .contact-copy h2 {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .main-nav {
    gap: 14px;
    font-size: 0.86rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .contact-list div {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    border-top: 0;
  }

  .contact-list dt {
    white-space: nowrap;
  }

  .site-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .footer-summary {
    display: none;
  }

  .footer-info {
    grid-template-columns: 1fr;
    gap: 4px;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .footer-info div {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 430px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav {
    justify-content: flex-start;
    margin-left: 0;
    width: 100%;
  }
}
