/* 우솔디자인 (woosol.co.kr) — 공통 스타일시트 */

:root {
  --bg: #faf8f4;
  --bg-alt: #f2ede4;
  --ink: #211d17;
  --muted: #6f665a;
  --line: #e6ddce;
  --card: #ffffff;
  --accent: #a9713f;
  --accent-dark: #7c4f28;
  --accent-soft: #f1e3d3;
  --radius: 10px;
  --max: 1120px;
  --shadow: 0 10px 30px -18px rgba(33, 29, 23, 0.35);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI",
    Roboto, "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.6em; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { border-color: var(--accent); color: var(--accent-dark); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent-dark); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 10px 20px 20px;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 14px 4px; }
  .header-actions { display: flex; align-items: center; gap: 10px; }
}
@media (max-width: 420px) {
  .site-header .wrap { height: 60px; }
  .logo { font-size: 1.08rem; }
  .header-cta { padding: 7px 12px; font-size: 0.78rem; }
  .nav-toggle { width: 38px; height: 38px; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  padding: 72px 0 56px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 820px) {
  .hero { padding: 40px 0 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .hero-figure { order: 2; }
  .hero-stats { gap: 18px; }
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.hero .lead { font-size: 1.05rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--line);
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--card); }

.hero-stats { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.5rem; color: var(--accent-dark); }
.hero-stats div span { font-size: 0.82rem; color: var(--muted); }

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.section-head p { color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }
.card .num { font-size: 0.8rem; font-weight: 800; color: var(--accent); display: block; margin-bottom: 10px; }

/* ---------- Portfolio grid ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }

.pf-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pf-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pf-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-body { padding: 16px 18px 20px; }
.pf-tag { font-size: 0.74rem; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.pf-body h3 { font-size: 1.02rem; margin: 10px 0 4px; }
.pf-body .loc { font-size: 0.85rem; color: var(--muted); }

/* ---------- Portfolio detail ---------- */
.pf-hero-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 30px; }
.pf-hero-gallery .main-shot { grid-row: span 2; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; }
.pf-hero-gallery .sub-shot { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; }
.pf-hero-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .pf-hero-gallery { grid-template-columns: 1fr; }
  .pf-hero-gallery .main-shot { grid-row: auto; }
}
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0; }
@media (max-width: 760px) { .gallery-strip { grid-template-columns: repeat(2, 1fr); } }
.gallery-strip a { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Portfolio detail gallery: full-width hero + fitted thumbnail row ---------- */
.pf-gallery-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow); }
.pf-gallery-hero img { width: 100%; height: auto; max-height: 62vh; object-fit: cover; display: block; }
.pf-gallery-thumbs { display: flex; gap: 12px; margin: 0 0 26px; }
.pf-gallery-thumbs a { flex: 1 1 0; min-width: 0; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; }
.pf-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .pf-gallery-hero img { max-height: 42vh; }
  .pf-gallery-thumbs { flex-wrap: wrap; }
  .pf-gallery-thumbs a { flex: 1 1 calc(33.333% - 8px); }
}

.meta-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.meta-table th, .meta-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.meta-table th { width: 130px; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) {
  .meta-table, .meta-table tbody, .meta-table tr, .meta-table th, .meta-table td { display: block; width: 100%; }
  .meta-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .meta-table th, .meta-table td { border-bottom: none; padding: 2px 0; }
  .meta-table th { color: var(--accent-dark); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; }
}

.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--accent-dark); font-weight: 600; }

.prev-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.prev-next a { font-weight: 700; color: var(--accent-dark); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q .plus { transition: transform .2s ease; color: var(--accent); font-size: 1.3rem; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; color: var(--muted); transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 4px 18px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list b { display: block; font-size: 0.82rem; color: var(--muted); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); width: 100%; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-embed .root_daum_roughmap,
.map-embed .root_daum_roughmap .wrap_map,
.map-embed .root_daum_roughmap iframe { width: 100% !important; }
.map-embed .root_daum_roughmap iframe { height: 360px !important; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d8d2c4; padding: 48px 0 30px; margin-top: 30px; }
.site-footer a { color: #d8d2c4; }
.site-footer .foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .site-footer .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.92rem; margin-bottom: 14px; }
.site-footer li { font-size: 0.86rem; margin-bottom: 8px; color: #b9b2a2; }
.site-footer li a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 30px; padding-top: 20px; font-size: 0.78rem; color: #8f8878; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; color: var(--muted); }
.badge-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.badge-list span { background: var(--accent-soft); color: var(--accent-dark); font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }

/* ---------- Lightbox (photo popup gallery) ---------- */
.lightbox-link { cursor: zoom-in; display: block; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 8, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 50px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.85rem;
  opacity: 0.85;
}
@media (max-width: 640px) {
  .lightbox-overlay { padding: 16px; }
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}
