/* =============================================
   이레가든빌리지 — 공개 사이트 스타일
   컨셉: 무채색 큐브/프레임 + 그린 포인트
   ============================================= */
:root {
  --green:       #5c6b3f;   /* 올리브 그린 (원본 #616946 기반) */
  --green-dark:  #3c4826;
  --accent:      #7fa9bd;   /* 소프트 스카이블루 포인트 (원본 #97cadd) */
  --accent-warm: #c98a5e;   /* 테라코타 미세 포인트 */
  --ink:         #24261f;
  --ink-soft:    #5b5f52;
  --line:        #e4e4de;
  --bg:          #ffffff;
  --bg-soft:     #f5f6f1;
  --bg-olive:    #eef0e7;
  --font-body:   'Noto Sans KR', sans-serif;
  --font-title:  'Cormorant Garamond', 'Noto Serif KR', serif;
  --font-display:'Amatic SC', 'Cormorant Garamond', cursive;
  --font-ko-title:'Noto Serif KR', serif;
}

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

html, body { overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow    { max-width: 640px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; line-height: 1.2; }
.logo-img { height: 50px; width: auto; display: block; }

.site-nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.site-nav > ul > li > a {
  position: relative; display: block; padding: 10px 16px;
  font-family: var(--font-title);
  font-size: 1.08rem; font-weight: 600; letter-spacing: .14em;
  color: var(--ink); transition: color .2s;
}
/* 호버/활성 밑줄 슬라이드 */
.site-nav > ul > li > a::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 6px;
  height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.site-nav > ul > li.active > a::after,
.site-nav > ul > li > a:hover::after { transform: scaleX(1); }
.site-nav > ul > li.active > a,
.site-nav > ul > li > a:hover { color: var(--green); }

.site-nav li { position: relative; }
.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 50%;
  min-width: 230px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(30,40,20,.12);
  flex-direction: column; gap: 0 !important; padding: 8px 0; border-radius: 6px;
  /* 기본 숨김 + 등장 애니메이션 */
  display: flex; opacity: 0; visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .26s ease, transform .26s cubic-bezier(.2,.7,.2,1), visibility .26s;
}
.sub-menu::before {  /* 위쪽 작은 삼각형 */
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 11px; height: 11px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.site-nav li.has-sub:hover .sub-menu,
.site-nav li.has-sub:focus-within .sub-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.sub-menu a {
  position: relative; display: block; padding: 10px 22px; font-size: .86rem; color: var(--ink);
  letter-spacing: .02em; transition: background .18s, color .18s, padding-left .18s;
}
.sub-menu li.active a, .sub-menu a:hover { background: var(--bg-soft); color: var(--green); padding-left: 28px; }

.nav-booking a {
  border: 1px solid var(--green); color: var(--green) !important;
  padding: 9px 22px !important; margin-left: 12px; border-radius: 2px;
  font-family: var(--font-title); font-size: 1rem; letter-spacing: .18em;
  transition: all .2s;
}
.nav-booking a::after { display: none !important; }
.nav-booking a:hover, .nav-booking.active a { background: var(--green); color: #fff !important; }

/* 모바일 토글 */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s;
}
/* 햄버거 → X 변형 */
.nav-toggle.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.on span:nth-child(2) { opacity: 0; }
.nav-toggle.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 본문 공통 ---------- */
.page-body { padding: 56px 0 80px; }
.page-body h2 {
  font-family: var(--font-title);
  font-size: 2rem; font-weight: 600; letter-spacing: .14em;
  margin-bottom: 28px; color: var(--ink);
}
.page-body h3 {
  font-size: 1.05rem; font-weight: 700; letter-spacing: .06em;
  margin: 44px 0 14px; color: var(--green-dark);
  padding-left: 14px; border-left: 3px solid var(--green);
}
.page-body p { margin-bottom: 18px; color: var(--ink-soft); }
.page-body strong { color: var(--ink); }

.btn {
  display: inline-block; padding: 12px 34px;
  border: 1px solid var(--ink); color: var(--ink);
  font-size: .85rem; letter-spacing: .16em; font-weight: 500;
  transition: all .2s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ---------- 홈 히어로 ---------- */
.home .hero {
  position: relative; height: 92vh; min-height: 560px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background:
    linear-gradient(rgba(30,36,24,.30), rgba(24,30,18,.55)),
    url('../img/hero.jpg') center/cover no-repeat fixed;
  margin-bottom: 96px; overflow: hidden;
}
.home .hero::after {  /* 하단 페이드로 다음 섹션과 자연스럽게 연결 */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(transparent, rgba(255,255,255,.9) 92%);
}
.home .hero-inner { position: relative; z-index: 2; color: #fff; padding: 0 20px; }
.home .hero-eyebrow {
  font-family: var(--font-body); font-size: .72rem; letter-spacing: .55em;
  opacity: .9; margin-bottom: 10px; padding-left: .55em; font-weight: 300;
}
.home .hero h1 {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 15vw, 11rem); font-weight: 700;
  letter-spacing: .04em; line-height: .92; text-shadow: 0 4px 34px rgba(0,0,0,.4);
}
.home .hero-sub {
  margin-top: 12px; font-size: clamp(.9rem, 2.2vw, 1.1rem);
  letter-spacing: .32em; font-weight: 300; opacity: .95;
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
}
.home .hero-sub::before, .home .hero-sub::after {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: rgba(255,255,255,.6); vertical-align: middle; margin: 0 14px 4px;
}
.btn-hero {
  margin-top: 38px; border-color: rgba(255,255,255,.85); color: #fff;
  letter-spacing: .28em; padding: 14px 40px;
  background: rgba(255,255,255,.04); backdrop-filter: blur(2px);
}
.btn-hero:hover { background: #fff; color: var(--green-dark); border-color:#fff; }

/* ---------- 홈 인트로 ---------- */
.home .intro {
  max-width: 720px; margin: 0 auto 110px; padding: 0 20px; text-align: center;
}
.home .intro .eyebrow {
  display: inline-block; font-family: var(--font-display); font-size: 1.7rem;
  color: var(--accent); letter-spacing: .12em; margin-bottom: 6px;
}
.home .intro h2 {
  font-family: var(--font-ko-title);
  font-size: 1.75rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 30px; color: var(--green-dark); line-height: 1.4;
}
.home .intro h2 .en { font-family: var(--font-title); letter-spacing: .14em; }
.home .intro p { color: var(--ink-soft); line-height: 2.05; margin-bottom: 16px; font-weight: 300; }
.home .intro .divider {
  width: 44px; height: 2px; background: var(--green); margin: 0 auto 34px; opacity: .7;
}

/* ---------- 홈 특징 섹션 (에디토리얼 이미지+텍스트) ---------- */
.home .feature-img {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 0 min(6vw, 74px); max-width: 1200px; margin: 0 auto 110px; padding: 0 24px;
}
.home .feature-img .feature-photo {
  position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(40,50,30,.45);
}
.home .feature-img .feature-photo img {
  width: 100%; aspect-ratio: 5/4; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.home .feature-img:hover .feature-photo img { transform: scale(1.06); }
.home .feature-img .feature-btn {
  position: absolute; right: 0; bottom: 0;
  background: rgba(30,38,22,.82); color: #fff; backdrop-filter: blur(3px);
  font-size: .74rem; letter-spacing: .22em; padding: 14px 26px;
  transition: background .25s;
}
.home .feature-img .feature-btn:hover { background: var(--green); }
.home .feature-img .feature-text { padding: 0 2% ; }
.home .feature-img.reverse .feature-photo { order: 2; }
.home .feature-img .feature-no {
  display: block; font-family: var(--font-display); font-size: 3.4rem;
  line-height: 1; color: var(--accent); opacity: .55; margin-bottom: 6px;
}
.home .feature-img .feature-text h2 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: .1em;
  line-height: 1.15; margin-bottom: 22px; color: var(--green-dark);
}
.home .feature-img .feature-text p {
  color: var(--ink-soft); line-height: 2; margin-bottom: 0; font-weight: 300;
}
.home .feature-img .feature-text .tline {
  width: 40px; height: 2px; background: var(--green); margin: 26px 0 0; opacity: .6;
}

/* ---------- 스크롤 등장 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .home .feature-img { grid-template-columns: 1fr; gap: 22px; margin-bottom: 72px; }
  .home .feature-img.reverse .feature-photo { order: 0; }
  .home .feature-img .feature-text { padding: 0 2px; text-align: center; }
  .home .feature-img .feature-text .tline { margin-left: auto; margin-right: auto; }
  .home .feature-img .feature-no { font-size: 2.6rem; }
  .home .hero { height: 80vh; min-height: 440px; background-attachment: scroll; margin-bottom: 60px; }
  .home .hero h1 { letter-spacing: .02em; }
  .home .intro { margin-bottom: 72px; }
  .home .intro h2 { font-size: 1.3rem; overflow-wrap: anywhere; }
}

/* ---------- 갤러리 ---------- */
.gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 48px;
}
.gallery figure {
  background: var(--bg-soft); overflow: hidden;
}
.gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .35s;
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  padding: 10px 14px; font-size: .82rem; color: var(--ink-soft);
}

/* ---------- 시 (PLANT DESIGN) ---------- */
blockquote.poem {
  background: var(--bg-soft); padding: 40px;
  border-left: 3px solid var(--green);
  font-size: 1.02rem; line-height: 2.1; color: var(--ink-soft);
  max-width: 560px; margin: 0 auto;
}

/* ---------- 폼 ---------- */
.lead { font-size: .95rem; margin-bottom: 36px; }
.booking-form label {
  display: block; margin-bottom: 20px;
  font-size: .88rem; font-weight: 500;
}
.booking-form .req { color: #c0392b; }
.booking-form input,
.booking-form select,
.booking-form textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 11px 14px; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); background: #fff;
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none; border-color: var(--green);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.booking-form button { margin-top: 8px; cursor: pointer; width: 100%; }

.alert { padding: 18px 22px; margin-bottom: 28px; font-size: .92rem; }
.alert.success { background: #eef5ea; border: 1px solid #c8dcbc; color: var(--green-dark); }
.alert.error   { background: #fdf0ef; border: 1px solid #f0c4c0; color: #a5382c; }
.alert ul { margin-left: 18px; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: #1f241d; color: #bfc5ba;
  padding: 56px 0 28px; font-size: .84rem; line-height: 1.9;
}
.site-footer h4 {
  color: #fff; font-size: .82rem; letter-spacing: .18em;
  margin-bottom: 10px; margin-top: 22px;
}
.site-footer h4:first-child { margin-top: 0; }
.site-footer a { color: #d9e0d2; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.sns { list-style: none; display: flex; gap: 18px; }
.copyright { padding-top: 22px; font-size: .78rem; color: #8b9184; }

/* ---------- 반응형 ---------- */
@media (max-width: 860px) {
  .header-inner { height: 58px; }
  .logo-img { height: 34px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 58px; left: 0; right: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(30,40,20,.12);
    /* 슬라이드+페이드 등장 */
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s ease, transform .32s cubic-bezier(.2,.7,.2,1), visibility .3s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 14px; }
  .site-nav > ul > li { border-bottom: 1px solid rgba(0,0,0,.04); }
  .site-nav > ul > li > a {
    padding: 15px 26px; font-size: 1.15rem; letter-spacing: .1em;
  }
  .site-nav > ul > li > a::after { display: none; }  /* 모바일은 밑줄 대신 항목 구분선 */
  /* 모바일 서브메뉴: 정적 표시 (데스크톱 애니메이션 규칙 무효화) */
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; border-radius: 0; padding: 0 0 6px;
    background: var(--bg-soft); min-width: 0; transition: none;
  }
  .sub-menu::before { display: none; }
  .sub-menu a { padding: 11px 26px 11px 42px; font-size: .9rem; }
  .sub-menu a:hover, .sub-menu li.active a { padding-left: 46px; }
  .nav-booking a { display: inline-block; margin: 14px 26px 4px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- 블로그 ---------- */
.page-title {
  font-family: var(--font-display); font-size: 3.6rem; font-weight: 700;
  letter-spacing: .06em; text-align: center; margin: 4px 0 4px; color: var(--green-dark);
  line-height: 1;
}
.page-lead { text-align: center; color: var(--ink-soft); margin-bottom: 52px; letter-spacing: .04em; font-weight: 300; }
.blog-grid {
  display: grid; gap: 30px 26px;
  grid-template-columns: repeat(3, 1fr); margin-bottom: 50px;
}
.blog-card { display: block; color: inherit; }
.blog-thumb { overflow: hidden; background: var(--bg-soft); aspect-ratio: 4/3; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-thumb-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); letter-spacing: .2em; color: #b9c4b1; background: var(--bg-soft);
}
.blog-card-body { padding: 16px 4px 0; }
.blog-card-body h2 {
  font-size: 1rem; font-weight: 500; line-height: 1.5; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card:hover .blog-card-body h2 { color: var(--green); }
.blog-card-body time { display: block; margin-top: 10px; font-size: .8rem; color: var(--ink-soft); letter-spacing: .05em; }
.pagination { display: flex; justify-content: center; gap: 6px; margin: 20px 0 40px; }
.pagination a {
  min-width: 38px; padding: 8px 0; text-align: center; border: 1px solid var(--line);
  color: var(--ink-soft); font-size: .9rem;
}
.pagination a.on, .pagination a:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* 블로그 상세 */
.blog-article { max-width: 820px; }
.blog-article-head { text-align: center; padding: 10px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.blog-article-head h1 { font-size: 1.7rem; line-height: 1.4; font-weight: 600; word-break: keep-all; }
.blog-article-head time { display: block; margin-top: 16px; color: var(--ink-soft); font-size: .85rem; letter-spacing: .08em; }
/* 블로그 본문 — 네이버 원본 서식 재현 (중앙정렬 기조 + 인라인 색상/볼드 보존) */
.blog-article-body { line-height: 1.9; color: #333; font-size: 1.05rem; text-align: center; }
.blog-article-body p { margin: 0 0 4px; word-break: keep-all; min-height: 1.9em; }
.blog-article-body p.blank { min-height: 1.6em; }
.blog-article-body b, .blog-article-body strong { font-weight: 700; }
.blog-article-body figure { margin: 22px auto; text-align: center; }
.blog-article-body img { max-width: 100%; height: auto; display: inline-block; margin: 0 auto; border-radius: 3px; }
.blog-article-body figcaption { margin-top: 8px; font-size: .85rem; color: #999; letter-spacing: .02em; }
.blog-article-body blockquote {
  margin: 26px auto; padding: 6px 0 6px 0; max-width: 90%;
  font-family: var(--font-ko-title); font-size: 1.25rem; line-height: 1.7; color: var(--green-dark);
  border-top: 2px solid var(--green); border-bottom: 2px solid var(--green);
}
.blog-article-body h3 {
  margin: 34px 0 16px; line-height: 1.4; font-size: 1.3rem; font-weight: 700; color: var(--green-dark);
}
.blog-article-body hr { border: 0; border-top: 1px solid var(--line); margin: 30px auto; width: 60%; }
.blog-article-body a { color: var(--accent); text-decoration: underline; }
.blog-article-foot { text-align: center; margin: 50px 0 20px; padding-top: 30px; border-top: 1px solid var(--line); }

@media (max-width: 860px) { .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; } }
@media (max-width: 520px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-article-head h1 { font-size: 1.35rem; }
  .page-title { font-size: 1.9rem; }
}

/* ---------- 브로슈어형 페이지 (제이조은 / 3rd Brochure) ---------- */
.brochure { max-width: 900px; margin: 0 auto; }
.brochure img {
  width: 100%; height: auto; display: block; margin: 0 auto 6px;
}
.page-hero {
  margin: 0 0 40px; overflow: hidden; border-radius: 2px;
  box-shadow: 0 24px 50px -28px rgba(40,50,30,.4);
}
.page-hero img { width: 100%; aspect-ratio: 16/7; object-fit: cover; display: block; }
@media (max-width: 620px) { .page-hero img { aspect-ratio: 4/3; } }

/* ---------- CAFE THE 조은 ---------- */
.cafe-intro { max-width: 720px; margin: 0 auto; text-align: center; }
.cafe-intro .cafe-eyebrow {
  display: inline-block; font-family: var(--font-display); font-size: 1.7rem;
  color: var(--accent); letter-spacing: .1em; margin-bottom: 2px;
}
.cafe-intro h2 {
  font-family: var(--font-title); font-size: 2.6rem; font-weight: 600;
  letter-spacing: .14em; color: var(--green-dark); margin-bottom: 14px;
}
.cafe-intro .cafe-lead {
  font-family: var(--font-ko-title); font-size: 1.15rem; color: var(--green);
  margin-bottom: 30px; letter-spacing: .02em;
}
.cafe-intro p { color: var(--ink-soft); line-height: 2.05; font-weight: 300; margin-bottom: 16px; }

/* ---------- 조은플라워 컨셉 다이어그램 ---------- */
.concept-row {
  display: grid; grid-template-columns: 42% 1fr; align-items: center;
  gap: 10px 40px; margin: 40px 0; max-width: 960px;
}
.concept-row.reverse .concept-fig { order: 2; }
.concept-fig img { width: 100%; max-width: 360px; margin: 0 auto; display: block; }
.concept-txt h3 {
  font-family: var(--font-title); font-size: 1.15rem; font-weight: 600;
  letter-spacing: .02em; line-height: 1.5; color: var(--green-dark);
  margin-bottom: 12px; padding-left: 14px; border-left: 3px solid var(--green);
}
.concept-txt h3 .eq { color: var(--accent); }
.concept-txt p { color: var(--ink-soft); line-height: 1.9; font-weight: 300; }
@media (max-width: 700px) {
  .concept-row {
    grid-template-columns: 1fr; gap: 2px; margin: 30px auto; max-width: 440px;
    text-align: center; padding: 22px 18px 26px; background: var(--bg-soft); border-radius: 10px;
  }
  .concept-row.reverse .concept-fig { order: 0; }
  .concept-fig img { max-width: 190px; }
  .concept-txt h3 {
    border-left: 0; padding-left: 0; font-size: 1rem; line-height: 1.5;
    letter-spacing: 0; margin-bottom: 8px;
  }
  .concept-txt p { font-size: .95rem; }
}
