/*
Design DNA (이번 생성용 – 고정)
스타일 프리셋: Simple Minimal Studio
컬러 전략: Snow White Base + Graphite Text + Single Accent (Clover Green)
레이아웃 패턴: One-Column Clarity + Micro-Sections
섹션 순서 템플릿: Header → Hero → Mobile Game Focus → Services → About → Contact/Location → Business Info → Footer
아이콘 스타일: Minimal Mono Icon (SVG, single-stroke, consistent)
배경 패턴: Subtle Leaf Veins (SVG, ultra low contrast)
*/

:root {
  --white: #f9faf8;
  --graphite: #1f2426;
  --graphite-soft: #2f3538;
  --green: #2d8f5a;
  --border: #d9dfdb;
  --muted: #6b7274;
  --bg-veil: rgba(45, 143, 90, 0.06);
  --shadow: 0 8px 18px rgba(31, 36, 38, 0.05);
  --radius: 16px;
  --space: 24px;
  --space-lg: 64px;
  --space-xl: 96px;
  --max: 1100px;
  --font: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 16px;
  background: var(--graphite);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 50;
}

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

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

.section {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(249, 250, 248, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 12px;
}

.menu-line {
  width: 22px;
  height: 2px;
  background: var(--graphite);
}

.hero {
  position: relative;
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'><path d='M20 60c40 10 80 10 120 0 40-10 80-10 120 0' stroke='%23dfe7e2' stroke-width='1' fill='none' opacity='0.35'/><path d='M40 160c30 10 70 10 110 0 40-10 80-10 120 0' stroke='%23dfe7e2' stroke-width='1' fill='none' opacity='0.35'/><path d='M60 260c30 10 70 10 110 0 40-10 80-10 120 0' stroke='%23dfe7e2' stroke-width='1' fill='none' opacity='0.35'/></svg>");
  opacity: 0.4;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 0 0 16px;
}

.eyebrow {
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 12px;
}

.lead {
  margin: 0 0 24px;
  color: var(--graphite-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

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

.btn.ghost {
  border-color: var(--border);
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.focus-grid,
.service-grid,
.about-grid,
.contact-grid,
.info-grid {
  display: grid;
  gap: 20px;
}

.focus-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.focus-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.focus-toggle {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 0;
  display: grid;
  gap: 6px;
  font-family: inherit;
}

.focus-title {
  font-weight: 600;
}

.focus-line {
  color: var(--muted);
}

.focus-panel {
  margin-top: 12px;
  color: var(--graphite-soft);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.service-card .icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.service-card svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--graphite);
  stroke-width: 1.6;
}

.about-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.about-item {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-info {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.info-list {
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

input,
textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.form-feedback {
  margin: 0;
  min-height: 20px;
  color: var(--green);
}

.info-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}

.label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.to-top {
  color: var(--green);
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 820px) {
  .site-nav {
    position: absolute;
    right: var(--space);
    top: 68px;
    flex-direction: column;
    background: #fff;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}
