/* ============================================
   euneni — 집안의 모든 순간
   Ohou.se inspired — Clean, photo-first
============================================ */

:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-soft: #F5F5F5;
  --text: #262626;
  --text-soft: #767676;
  --text-muted: #A0A0A0;
  --border: #EEEEEE;
  --border-strong: #DDDDDD;

  /* Primary: soft turquoise, differentiating from ohou.se's cyan */
  --primary: #20C4B5;
  --primary-hover: #1BA89B;
  --primary-soft: #E8F8F6;

  /* Accent: warm coral for hearts/saves */
  --coral: #FF6B6B;
  --amber: #FFB800;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --nav-h: 64px;
  --max-w: 1280px;

  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================
   Top Navigation
============================================ */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.topnav-inner {
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.8px;
  color: var(--primary);
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: grid; place-items: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  flex: 1;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 2px;
  position: relative;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-search {
  flex: 1;
  max-width: 340px;
  background: var(--surface-soft);
  border-radius: 100px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 14px;
}
.nav-search input {
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  font: inherit;
  color: var(--text);
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 9px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease;
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost {
  padding: 9px 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .topnav-inner { padding: 0 16px; gap: 16px; }
  .btn-ghost { display: none; }
}

.menu-toggle {
  display: none;
  font-size: 22px;
  padding: 8px;
}
@media (max-width: 900px) {
  .menu-toggle { display: block; margin-left: auto; }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 600;
}
.mobile-menu a:last-child { border-bottom: none; }

/* ============================================
   Container
============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
}

/* ============================================
   Hero Banner
============================================ */
.hero-banner {
  margin: 24px auto 0;
  max-width: var(--max-w);
  padding: 0 24px;
}
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 24 / 9;
  min-height: 200px;
  background: var(--surface-soft);
}
.hero-card img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  padding: 50px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  background: linear-gradient(110deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}
.hero-tag {
  display: inline-block;
  width: fit-content;
  padding: 5px 12px;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.hero-overlay h2 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 10px;
  max-width: 600px;
}
.hero-overlay p {
  font-size: 16px;
  max-width: 500px;
  opacity: 0.95;
}
@media (max-width: 768px) {
  .hero-overlay { padding: 28px 24px; }
  .hero-overlay h2 { font-size: 24px; }
  .hero-overlay p { font-size: 14px; }
  .hero-card { aspect-ratio: 16/10; }
}

/* ============================================
   Category Pills (top, after hero)
============================================ */
.category-rail {
  max-width: var(--max-w);
  margin: 24px auto;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-rail::-webkit-scrollbar { display: none; }
.category-rail-inner {
  display: flex;
  gap: 10px;
  padding-bottom: 4px;
}
.category-pill {
  flex-shrink: 0;
  padding: 9px 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.category-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.category-pill.active {
  background: var(--text);
  border-color: var(--text);
  color: white;
}

/* ============================================
   Section Heading
============================================ */
.section {
  padding: 20px 0 40px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.section-more {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 600;
}
.section-more:hover { color: var(--primary); }

/* ============================================
   Home Tour Cards (집들이)
============================================ */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .tour-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .tour-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 420px) { .tour-grid { grid-template-columns: 1fr; } }

.tour-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease;
}
.tour-card:hover { transform: translateY(-3px); }

.tour-card-media {
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-soft);
  position: relative;
}
.tour-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tour-card:hover .tour-card-media img { transform: scale(1.04); }

.tour-card-save {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  font-size: 16px;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease;
}
.tour-card-save:hover { background: rgba(0,0,0,0.7); }
.tour-card-save.saved { color: var(--coral); }

.tour-card-body {
  padding: 0 4px;
}
.tour-card-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.tour-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tour-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
}
.tour-card-meta img {
  width: 20px; height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.tour-card-stats {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.tour-card-stats .stat { display: flex; align-items: center; gap: 3px; }

/* ============================================
   Photo Gallery (사진) - masonry-ish
============================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 1024px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 420px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

.photo-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-soft);
}
.photo-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.photo-item.tall { grid-row: span 2; aspect-ratio: 1/2; }
.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-item:hover img { transform: scale(1.05); }
.photo-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent 50%);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.photo-item:hover .photo-item-overlay { opacity: 1; }

/* ============================================
   Tips/Knowhow cards (노하우)
============================================ */
.tip-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .tip-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tip-list { grid-template-columns: 1fr; } }

.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.25s ease;
}
.tip-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.tip-card-media {
  aspect-ratio: 16/9;
  background: var(--surface-soft);
  overflow: hidden;
}
.tip-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tip-card:hover .tip-card-media img { transform: scale(1.03); }

.tip-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tip-card-category {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.tip-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.tip-card-excerpt {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tip-card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   Detail Pages (집들이, 사진, 노하우)
============================================ */
.article {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}
.article-hero {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-soft);
  margin-bottom: 28px;
}
.article-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.article-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.badge {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  background: var(--primary-soft);
  color: var(--primary);
}
.badge-gray {
  background: var(--surface-soft);
  color: var(--text-soft);
}

.article-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 18px;
}
@media (max-width: 640px) { .article-title { font-size: 24px; } }

.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.article-author img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.article-author .name { font-weight: 700; font-size: 14px; }
.article-author .date { font-size: 12px; color: var(--text-muted); }
.article-author-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.article-lead {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 30px;
  padding: 20px 24px;
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

/* Info card (인테리어 정보) */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 640px) {
  .info-card { grid-template-columns: repeat(2, 1fr); padding: 20px; }
}
.info-cell .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.info-cell .value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* Article content */
.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 48px 0 14px;
}
.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.article-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 18px;
}
.article-content ul, .article-content ol {
  margin: 16px 0 22px;
  padding-left: 22px;
  color: var(--text);
}
.article-content li {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 8px;
}
.article-content strong { font-weight: 700; }
.article-content figure {
  margin: 30px 0;
}
.article-content figure img {
  width: 100%;
  border-radius: var(--radius-md);
}
.article-content figcaption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* Room breakdown (집들이 특유) */
.room-section {
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.room-label {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

/* Product tags within photos */
.product-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 12px;
  margin: 4px 6px 4px 0;
}
.product-chip::before {
  content: "🏷";
  font-size: 10px;
}

/* ============================================
   Static Content Pages
============================================ */
.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.page-hero { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.page-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.page h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 14px;
}
@media (max-width: 640px) { .page h1 { font-size: 26px; } }
.page-lead {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.6;
}

.page-section { margin-bottom: 36px; }
.page-section h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.page-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 22px 0 8px;
}
.page-section p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 12px;
}
.page-section ul { padding-left: 20px; margin-bottom: 16px; }
.page-section ul li { line-height: 1.7; margin-bottom: 6px; }

/* Contact form */
.contact-form { display: grid; gap: 14px; margin-top: 18px; }
.contact-form label { font-size: 13px; font-weight: 700; margin-bottom: 6px; display: block; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button[type="submit"] {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  justify-self: start;
  transition: background 0.2s ease;
}
.contact-form button[type="submit"]:hover { background: var(--primary-hover); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.contact-card .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.5px; }
.contact-card .value { font-weight: 700; font-size: 14px; }

/* ============================================
   Footer
============================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer-brand .logo { margin-bottom: 12px; }
.footer-desc { font-size: 13px; color: var(--text-soft); line-height: 1.6; max-width: 340px; }
.footer h4 {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--text-soft); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================
   Heart / save animations
============================================ */
@keyframes heartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  70% { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.heart-pop { animation: heartPop 0.35s ease; }
