/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  background: #faf8f7;
  color: #3d3a3a;
  line-height: 1.7;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Colors ── */
:root {
  --bg: #faf8f7;
  --card-bg: #ffffff;
  --text: #3d3a3a;
  --text-soft: #7a7470;
  --text-light: #b5ada8;
  --primary: #d4a0c0;
  --primary-dark: #b882a8;
  --primary-light: #f0dce8;
  --accent-pink: #f0c8d8;
  --accent-lavender: #d4c8e8;
  --accent-sky: #b8d8e8;
  --border: #f0e8e4;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1100px;
}

/* ── Typography ── */
h1 { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; font-weight: 600; margin-bottom: 1.2rem; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin-bottom: 0.8rem; }
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-lavender));
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.page { padding: 2rem 0 4rem; }

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,247,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 56px;
}
.nav-logo {
  font-size: 1.1rem; font-weight: 700;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-lavender));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: flex; align-items: center; gap: 0.3rem;
}
.nav-links { display: flex; gap: 0.2rem; }
.nav-links a {
  padding: 0.4rem 0.9rem; border-radius: 8px;
  font-size: 0.9rem; color: var(--text-soft);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--primary-light); color: var(--primary-dark);
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* ── Hero ── */
.hero {
  text-align: center; padding: 5rem 1.5rem 3rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--primary-light) 100%);
}
.hero-symbol { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.hero h1 { margin-bottom: 0.8rem; }
.hero p {
  font-size: 1.05rem; color: var(--text-soft);
  max-width: 500px; margin: 0 auto 1.8rem; white-space: pre-line;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.6rem; border-radius: 50px; font-size: 0.95rem;
  font-weight: 500; border: none; cursor: pointer;
  transition: all 0.25s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }

/* ── Cards Grid ── */
.grid { display: grid; gap: 1.2rem; }

/* ── Work Card ── */
.work-card {
  background: var(--card-bg); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.work-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.work-card-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  background: var(--primary-light);
}
.work-card-body { padding: 1rem 1.2rem 1.2rem; }
.work-card-body h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.work-card-tag {
  display: inline-block; font-size: 0.75rem;
  padding: 0.15rem 0.6rem; border-radius: 50px;
  background: var(--primary-light); color: var(--primary-dark);
  margin-bottom: 0.4rem;
}
.work-card-body p { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 0.6rem; }

/* ── Article Card ── */
.article-card {
  background: var(--card-bg); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.25s;
  cursor: pointer;
}
.article-card:hover { transform: translateY(-2px); }
.article-card-body { padding: 1.2rem; }
.article-card-date { font-size: 0.8rem; color: var(--text-light); }
.article-card-body h3 { font-size: 1rem; margin: 0.3rem 0; }
.article-card-body p { font-size: 0.85rem; color: var(--text-soft); }

/* ── Service Card ── */
.service-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.service-card h3 {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem;
}
.service-card h3 .icon { font-size: 1.3rem; }
.service-card p { font-size: 0.9rem; color: var(--text-soft); }
.service-card ul { margin-top: 0.8rem; }
.service-card li {
  font-size: 0.85rem; color: var(--text-soft);
  padding: 0.25rem 0; padding-left: 1.2rem;
  position: relative;
}
.service-card li::before {
  content: "✦"; position: absolute; left: 0;
  color: var(--primary); font-size: 0.7rem;
}

/* ── Status Badge ── */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.85rem;
  font-weight: 500;
}
.status-badge.open { background: #e6f7e6; color: #3a8a3a; }
.status-badge.pending { background: #fff3e0; color: #b8860b; }
.status-badge.closed { background: #f5f0f0; color: #999; }
.status-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block;
}
.status-badge.open .dot { background: #3a8a3a; }
.status-badge.pending .dot { background: #b8860b; }
.status-badge.closed .dot { background: #999; }

/* ── Process Steps ── */
.steps { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0; }
.step {
  flex: 1; min-width: 100px; text-align: center;
  padding: 1rem; background: var(--card-bg); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.4rem; font-size: 0.85rem; font-weight: 600;
}
.step-label { font-size: 0.85rem; color: var(--text-soft); }

/* ── About Page ── */
.about-section { max-width: 600px; margin: 0 auto; }
.about-section h2 { margin-top: 2rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.about-tags span {
  padding: 0.3rem 0.8rem; border-radius: 50px;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 0.85rem;
}

/* ── Detail Page ── */
.detail-header { margin-bottom: 2rem; }
.detail-header h1 { margin-bottom: 0.5rem; }
.detail-meta {
  display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-soft);
  margin-bottom: 1.5rem;
}
.detail-meta span { display: flex; align-items: center; gap: 0.3rem; }
.detail-body p { max-width: 650px; }

/* ── Footer ── */
.footer {
  text-align: center; padding: 2rem 1.5rem;
  font-size: 0.8rem; color: var(--text-light);
  border-top: 1px solid var(--border);
}

/* ── Modal / Lightbox ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--card-bg); border-radius: var(--radius);
  max-width: 720px; width: 100%; max-height: 85vh; overflow-y: auto;
  padding: 2rem; position: relative; box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
  color: var(--text-light); width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.2s;
}
.modal-close:hover { background: var(--border); }
.modal img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 1rem; }

/* ── Loading ── */
.loading {
  text-align: center; padding: 3rem; color: var(--text-light);
}
.loading::after { content: "✦"; animation: spin 1s linear infinite; display: block; font-size: 1.5rem; margin-top: 0.5rem; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }
  .hero { padding: 3rem 1rem 2rem; }
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 0.5rem;
    border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid { grid-template-columns: 1fr !important; }
  .steps { flex-direction: column; }
  .step { min-width: auto; }
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ── Page transition ── */
.page-enter { animation: fadeUp 0.35s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Blog article detail */
.article-content { line-height: 1.9; color: var(--text); }
.article-content p { margin-bottom: 1rem; }
